@trading-game/design-intelligence-layer 0.16.1 → 0.16.3
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/AGENTS.md +21 -0
- package/README.md +4 -3
- package/dist/index.cjs +939 -780
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +54 -1
- package/dist/index.d.ts +54 -1
- package/dist/index.js +910 -752
- package/dist/index.js.map +1 -1
- package/guides/design-system-guide/trading-game-ds-guide.md +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -86,6 +86,7 @@ __export(index_exports, {
|
|
|
86
86
|
AvatarGroupCount: () => AvatarGroupCount,
|
|
87
87
|
AvatarImage: () => AvatarImage,
|
|
88
88
|
Badge: () => Badge,
|
|
89
|
+
Banner: () => Banner,
|
|
89
90
|
Breadcrumb: () => Breadcrumb,
|
|
90
91
|
BreadcrumbEllipsis: () => BreadcrumbEllipsis,
|
|
91
92
|
BreadcrumbItem: () => BreadcrumbItem,
|
|
@@ -1171,17 +1172,174 @@ function Badge(_a) {
|
|
|
1171
1172
|
);
|
|
1172
1173
|
}
|
|
1173
1174
|
|
|
1174
|
-
// components/ui/
|
|
1175
|
+
// components/ui/banner.tsx
|
|
1176
|
+
var React2 = __toESM(require("react"), 1);
|
|
1175
1177
|
var import_lucide_react3 = require("lucide-react");
|
|
1176
|
-
var import_radix_ui7 = require("radix-ui");
|
|
1177
1178
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1179
|
+
var SURFACE_CLASSES = "w-full rounded-md border border-primary/[0.16] bg-primary/[0.08] px-4 py-3.5";
|
|
1180
|
+
function IconBadge({ glyph }) {
|
|
1181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "inline-flex size-10 shrink-0 items-center justify-center rounded-xs bg-primary text-on-primary", children: glyph });
|
|
1182
|
+
}
|
|
1183
|
+
function Banner(_a) {
|
|
1184
|
+
var _b = _a, {
|
|
1185
|
+
layout = "inline",
|
|
1186
|
+
title,
|
|
1187
|
+
description,
|
|
1188
|
+
glyph,
|
|
1189
|
+
icon,
|
|
1190
|
+
action,
|
|
1191
|
+
actions,
|
|
1192
|
+
onDismiss,
|
|
1193
|
+
dismissLabel = "Dismiss",
|
|
1194
|
+
onClick,
|
|
1195
|
+
className
|
|
1196
|
+
} = _b, props = __objRest(_b, [
|
|
1197
|
+
"layout",
|
|
1198
|
+
"title",
|
|
1199
|
+
"description",
|
|
1200
|
+
"glyph",
|
|
1201
|
+
"icon",
|
|
1202
|
+
"action",
|
|
1203
|
+
"actions",
|
|
1204
|
+
"onDismiss",
|
|
1205
|
+
"dismissLabel",
|
|
1206
|
+
"onClick",
|
|
1207
|
+
"className"
|
|
1208
|
+
]);
|
|
1209
|
+
var _a2;
|
|
1210
|
+
if (!title && !description) {
|
|
1211
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1212
|
+
console.warn(
|
|
1213
|
+
"Banner: requires at least one of `title` or `description`. Rendering null."
|
|
1214
|
+
);
|
|
1215
|
+
}
|
|
1216
|
+
return null;
|
|
1217
|
+
}
|
|
1218
|
+
const isInline = layout === "inline";
|
|
1219
|
+
const showIcon = icon !== null;
|
|
1220
|
+
const resolvedIcon = icon === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(IconBadge, { glyph: glyph != null ? glyph : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.Gift, { className: "size-5" }) }) : icon;
|
|
1221
|
+
if (process.env.NODE_ENV !== "production" && icon !== void 0 && glyph !== void 0) {
|
|
1222
|
+
console.warn(
|
|
1223
|
+
"Banner: `glyph` is ignored when `icon` is also set. `icon` overrides the entire badge; `glyph` only swaps the inner icon of the default badge."
|
|
1224
|
+
);
|
|
1225
|
+
}
|
|
1226
|
+
const showCloseButton = typeof onDismiss === "function";
|
|
1227
|
+
const isClickable = typeof onClick === "function";
|
|
1228
|
+
const buttonsSuppressed = isClickable && (Boolean(action) || ((_a2 = actions == null ? void 0 : actions.length) != null ? _a2 : 0) > 0);
|
|
1229
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1230
|
+
if (isInline && actions && actions.length > 0) {
|
|
1231
|
+
console.warn(
|
|
1232
|
+
'Banner: `actions` is ignored when layout="inline". Use `action` instead.'
|
|
1233
|
+
);
|
|
1234
|
+
}
|
|
1235
|
+
if (!isInline && action) {
|
|
1236
|
+
console.warn(
|
|
1237
|
+
'Banner: `action` is ignored when layout="card". Use `actions` instead.'
|
|
1238
|
+
);
|
|
1239
|
+
}
|
|
1240
|
+
if (buttonsSuppressed) {
|
|
1241
|
+
console.warn(
|
|
1242
|
+
"Banner: `onClick` (clickable surface) is mutually exclusive with `action` / `actions`. Ignoring the buttons \u2014 the whole banner is the CTA."
|
|
1243
|
+
);
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
const effectiveAction = isClickable ? void 0 : action;
|
|
1247
|
+
const effectiveActions = isClickable ? void 0 : actions;
|
|
1248
|
+
const clickableClasses = isClickable ? "cursor-pointer transition-opacity hover:opacity-90 active:opacity-80 outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:ring-offset-2" : "";
|
|
1249
|
+
const handleKeyDown = isClickable ? (e) => {
|
|
1250
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
1251
|
+
e.preventDefault();
|
|
1252
|
+
onClick == null ? void 0 : onClick();
|
|
1253
|
+
}
|
|
1254
|
+
} : void 0;
|
|
1255
|
+
const interactiveProps = isClickable ? {
|
|
1256
|
+
role: "button",
|
|
1257
|
+
tabIndex: 0,
|
|
1258
|
+
onClick,
|
|
1259
|
+
onKeyDown: handleKeyDown
|
|
1260
|
+
} : {};
|
|
1261
|
+
const body = /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
1262
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "m-0 text-sm font-bold leading-snug text-on-prominent [&>b]:text-primary", children: title }) : null,
|
|
1263
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "m-0 mt-0.5 text-xs font-medium leading-snug text-on-subtle", children: description }) : null
|
|
1264
|
+
] });
|
|
1265
|
+
const closeButton = showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1266
|
+
"button",
|
|
1267
|
+
{
|
|
1268
|
+
type: "button",
|
|
1269
|
+
onClick: (e) => {
|
|
1270
|
+
e.stopPropagation();
|
|
1271
|
+
onDismiss == null ? void 0 : onDismiss();
|
|
1272
|
+
},
|
|
1273
|
+
"aria-label": dismissLabel,
|
|
1274
|
+
className: "inline-flex size-8 shrink-0 items-center justify-center rounded-xs cursor-pointer text-on-subtle outline-none transition-colors hover:bg-secondary-hover hover:text-on-prominent focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [&_svg]:size-4 [&_svg]:pointer-events-none",
|
|
1275
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react3.X, {})
|
|
1276
|
+
}
|
|
1277
|
+
) : null;
|
|
1278
|
+
const iconColumn = showIcon ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { "aria-hidden": true, className: "inline-flex shrink-0 translate-y-px", children: resolvedIcon }) : null;
|
|
1279
|
+
if (isInline) {
|
|
1280
|
+
const hasAction = Boolean(effectiveAction);
|
|
1281
|
+
const rowTemplate = hasAction ? "grid-rows-[auto_auto] gap-y-3 sm:grid-rows-1 sm:gap-y-0" : "grid-rows-1 gap-y-0";
|
|
1282
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1283
|
+
"div",
|
|
1284
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
1285
|
+
"data-slot": "banner",
|
|
1286
|
+
"data-layout": "inline",
|
|
1287
|
+
"data-clickable": isClickable ? "true" : void 0,
|
|
1288
|
+
className: cn(
|
|
1289
|
+
"grid grid-cols-[auto_1fr_auto] items-center gap-x-4 sm:grid-cols-[auto_1fr_auto_auto]",
|
|
1290
|
+
rowTemplate,
|
|
1291
|
+
SURFACE_CLASSES,
|
|
1292
|
+
clickableClasses,
|
|
1293
|
+
className
|
|
1294
|
+
)
|
|
1295
|
+
}, interactiveProps), props), {
|
|
1296
|
+
children: [
|
|
1297
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "col-start-1 row-start-1", children: iconColumn }),
|
|
1298
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "col-start-2 row-start-1 min-w-0", children: body }),
|
|
1299
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "col-start-3 row-start-1 sm:col-start-4", children: closeButton }),
|
|
1300
|
+
hasAction ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "col-start-2 row-start-2 justify-self-start sm:col-start-3 sm:row-start-1 sm:self-center sm:justify-self-end", children: wrapAction2(effectiveAction) }) : null
|
|
1301
|
+
]
|
|
1302
|
+
})
|
|
1303
|
+
);
|
|
1304
|
+
}
|
|
1305
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1306
|
+
"div",
|
|
1307
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
1308
|
+
"data-slot": "banner",
|
|
1309
|
+
"data-layout": "card",
|
|
1310
|
+
"data-clickable": isClickable ? "true" : void 0,
|
|
1311
|
+
className: cn(
|
|
1312
|
+
"grid grid-cols-[auto_1fr_auto] grid-rows-[auto_auto] items-center gap-x-4 gap-y-3",
|
|
1313
|
+
SURFACE_CLASSES,
|
|
1314
|
+
clickableClasses,
|
|
1315
|
+
className
|
|
1316
|
+
)
|
|
1317
|
+
}, interactiveProps), props), {
|
|
1318
|
+
children: [
|
|
1319
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "col-start-1 row-start-1", children: iconColumn }),
|
|
1320
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "col-start-2 row-start-1 min-w-0", children: body }),
|
|
1321
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "col-start-3 row-start-1", children: closeButton }),
|
|
1322
|
+
effectiveActions && effectiveActions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "col-span-3 col-start-2 row-start-2 flex flex-wrap items-center justify-start gap-2", children: effectiveActions.slice(0, 2).map((node, i) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(React2.Fragment, { children: wrapAction2(node) }, i)) }) : null
|
|
1323
|
+
]
|
|
1324
|
+
})
|
|
1325
|
+
);
|
|
1326
|
+
}
|
|
1327
|
+
function wrapAction2(node) {
|
|
1328
|
+
if (React2.isValidElement(node)) return node;
|
|
1329
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Button, { variant: "secondary", size: "sm", children: node });
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
// components/ui/breadcrumb.tsx
|
|
1333
|
+
var import_lucide_react4 = require("lucide-react");
|
|
1334
|
+
var import_radix_ui7 = require("radix-ui");
|
|
1335
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1178
1336
|
function Breadcrumb(_a) {
|
|
1179
1337
|
var props = __objRest(_a, []);
|
|
1180
|
-
return /* @__PURE__ */ (0,
|
|
1338
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("nav", __spreadValues({ "aria-label": "breadcrumb", "data-slot": "breadcrumb" }, props));
|
|
1181
1339
|
}
|
|
1182
1340
|
function BreadcrumbList(_a) {
|
|
1183
1341
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1184
|
-
return /* @__PURE__ */ (0,
|
|
1342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1185
1343
|
"ol",
|
|
1186
1344
|
__spreadValues({
|
|
1187
1345
|
"data-slot": "breadcrumb-list",
|
|
@@ -1194,7 +1352,7 @@ function BreadcrumbList(_a) {
|
|
|
1194
1352
|
}
|
|
1195
1353
|
function BreadcrumbItem(_a) {
|
|
1196
1354
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1197
|
-
return /* @__PURE__ */ (0,
|
|
1355
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1198
1356
|
"li",
|
|
1199
1357
|
__spreadValues({
|
|
1200
1358
|
"data-slot": "breadcrumb-item",
|
|
@@ -1211,7 +1369,7 @@ function BreadcrumbLink(_a) {
|
|
|
1211
1369
|
"className"
|
|
1212
1370
|
]);
|
|
1213
1371
|
const Comp = asChild ? import_radix_ui7.Slot.Root : "a";
|
|
1214
|
-
return /* @__PURE__ */ (0,
|
|
1372
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1215
1373
|
Comp,
|
|
1216
1374
|
__spreadValues({
|
|
1217
1375
|
"data-slot": "breadcrumb-link",
|
|
@@ -1221,7 +1379,7 @@ function BreadcrumbLink(_a) {
|
|
|
1221
1379
|
}
|
|
1222
1380
|
function BreadcrumbPage(_a) {
|
|
1223
1381
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1224
|
-
return /* @__PURE__ */ (0,
|
|
1382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1225
1383
|
"span",
|
|
1226
1384
|
__spreadValues({
|
|
1227
1385
|
"data-slot": "breadcrumb-page",
|
|
@@ -1240,7 +1398,7 @@ function BreadcrumbSeparator(_a) {
|
|
|
1240
1398
|
"children",
|
|
1241
1399
|
"className"
|
|
1242
1400
|
]);
|
|
1243
|
-
return /* @__PURE__ */ (0,
|
|
1401
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1244
1402
|
"li",
|
|
1245
1403
|
__spreadProps(__spreadValues({
|
|
1246
1404
|
"data-slot": "breadcrumb-separator",
|
|
@@ -1248,7 +1406,7 @@ function BreadcrumbSeparator(_a) {
|
|
|
1248
1406
|
"aria-hidden": "true",
|
|
1249
1407
|
className: cn("[&>svg]:size-3.5", className)
|
|
1250
1408
|
}, props), {
|
|
1251
|
-
children: children != null ? children : /* @__PURE__ */ (0,
|
|
1409
|
+
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.ChevronRight, {})
|
|
1252
1410
|
})
|
|
1253
1411
|
);
|
|
1254
1412
|
}
|
|
@@ -1258,7 +1416,7 @@ function BreadcrumbEllipsis(_a) {
|
|
|
1258
1416
|
} = _b, props = __objRest(_b, [
|
|
1259
1417
|
"className"
|
|
1260
1418
|
]);
|
|
1261
|
-
return /* @__PURE__ */ (0,
|
|
1419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
1262
1420
|
"span",
|
|
1263
1421
|
__spreadProps(__spreadValues({
|
|
1264
1422
|
"data-slot": "breadcrumb-ellipsis",
|
|
@@ -1267,18 +1425,18 @@ function BreadcrumbEllipsis(_a) {
|
|
|
1267
1425
|
className: cn("flex size-9 items-center justify-center", className)
|
|
1268
1426
|
}, props), {
|
|
1269
1427
|
children: [
|
|
1270
|
-
/* @__PURE__ */ (0,
|
|
1271
|
-
/* @__PURE__ */ (0,
|
|
1428
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.MoreHorizontal, { className: "size-4" }),
|
|
1429
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "sr-only", children: "More" })
|
|
1272
1430
|
]
|
|
1273
1431
|
})
|
|
1274
1432
|
);
|
|
1275
1433
|
}
|
|
1276
1434
|
|
|
1277
1435
|
// components/ui/calendar.tsx
|
|
1278
|
-
var
|
|
1279
|
-
var
|
|
1436
|
+
var React3 = __toESM(require("react"), 1);
|
|
1437
|
+
var import_lucide_react5 = require("lucide-react");
|
|
1280
1438
|
var import_react_day_picker = require("react-day-picker");
|
|
1281
|
-
var
|
|
1439
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1282
1440
|
function Calendar(_a) {
|
|
1283
1441
|
var _b = _a, {
|
|
1284
1442
|
className,
|
|
@@ -1298,7 +1456,7 @@ function Calendar(_a) {
|
|
|
1298
1456
|
"components"
|
|
1299
1457
|
]);
|
|
1300
1458
|
const defaultClassNames = (0, import_react_day_picker.getDefaultClassNames)();
|
|
1301
|
-
return /* @__PURE__ */ (0,
|
|
1459
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1302
1460
|
import_react_day_picker.DayPicker,
|
|
1303
1461
|
__spreadValues({
|
|
1304
1462
|
showOutsideDays,
|
|
@@ -1397,7 +1555,7 @@ function Calendar(_a) {
|
|
|
1397
1555
|
components: __spreadValues({
|
|
1398
1556
|
Root: (_a2) => {
|
|
1399
1557
|
var _b2 = _a2, { className: className2, rootRef } = _b2, props2 = __objRest(_b2, ["className", "rootRef"]);
|
|
1400
|
-
return /* @__PURE__ */ (0,
|
|
1558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1401
1559
|
"div",
|
|
1402
1560
|
__spreadValues({
|
|
1403
1561
|
"data-slot": "calendar",
|
|
@@ -1409,22 +1567,22 @@ function Calendar(_a) {
|
|
|
1409
1567
|
Chevron: (_c) => {
|
|
1410
1568
|
var _d = _c, { className: className2, orientation } = _d, props2 = __objRest(_d, ["className", "orientation"]);
|
|
1411
1569
|
if (orientation === "left") {
|
|
1412
|
-
return /* @__PURE__ */ (0,
|
|
1570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react5.ChevronLeftIcon, __spreadValues({ className: cn("size-4", className2) }, props2));
|
|
1413
1571
|
}
|
|
1414
1572
|
if (orientation === "right") {
|
|
1415
|
-
return /* @__PURE__ */ (0,
|
|
1416
|
-
|
|
1573
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1574
|
+
import_lucide_react5.ChevronRightIcon,
|
|
1417
1575
|
__spreadValues({
|
|
1418
1576
|
className: cn("size-4", className2)
|
|
1419
1577
|
}, props2)
|
|
1420
1578
|
);
|
|
1421
1579
|
}
|
|
1422
|
-
return /* @__PURE__ */ (0,
|
|
1580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react5.ChevronDownIcon, __spreadValues({ className: cn("size-4", className2) }, props2));
|
|
1423
1581
|
},
|
|
1424
1582
|
DayButton: CalendarDayButton,
|
|
1425
1583
|
WeekNumber: (_e) => {
|
|
1426
1584
|
var _f = _e, { children } = _f, props2 = __objRest(_f, ["children"]);
|
|
1427
|
-
return /* @__PURE__ */ (0,
|
|
1585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("td", __spreadProps(__spreadValues({}, props2), { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) }));
|
|
1428
1586
|
}
|
|
1429
1587
|
}, components)
|
|
1430
1588
|
}, props)
|
|
@@ -1441,12 +1599,12 @@ function CalendarDayButton(_a) {
|
|
|
1441
1599
|
"modifiers"
|
|
1442
1600
|
]);
|
|
1443
1601
|
const defaultClassNames = (0, import_react_day_picker.getDefaultClassNames)();
|
|
1444
|
-
const ref =
|
|
1445
|
-
|
|
1602
|
+
const ref = React3.useRef(null);
|
|
1603
|
+
React3.useEffect(() => {
|
|
1446
1604
|
var _a2;
|
|
1447
1605
|
if (modifiers.focused) (_a2 = ref.current) == null ? void 0 : _a2.focus();
|
|
1448
1606
|
}, [modifiers.focused]);
|
|
1449
|
-
return /* @__PURE__ */ (0,
|
|
1607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1450
1608
|
Button,
|
|
1451
1609
|
__spreadValues({
|
|
1452
1610
|
ref,
|
|
@@ -1468,10 +1626,10 @@ function CalendarDayButton(_a) {
|
|
|
1468
1626
|
}
|
|
1469
1627
|
|
|
1470
1628
|
// components/ui/card.tsx
|
|
1471
|
-
var
|
|
1629
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1472
1630
|
function Card(_a) {
|
|
1473
1631
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1474
|
-
return /* @__PURE__ */ (0,
|
|
1632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1475
1633
|
"div",
|
|
1476
1634
|
__spreadValues({
|
|
1477
1635
|
"data-slot": "card",
|
|
@@ -1484,7 +1642,7 @@ function Card(_a) {
|
|
|
1484
1642
|
}
|
|
1485
1643
|
function CardHeader(_a) {
|
|
1486
1644
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1487
|
-
return /* @__PURE__ */ (0,
|
|
1645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1488
1646
|
"div",
|
|
1489
1647
|
__spreadValues({
|
|
1490
1648
|
"data-slot": "card-header",
|
|
@@ -1497,7 +1655,7 @@ function CardHeader(_a) {
|
|
|
1497
1655
|
}
|
|
1498
1656
|
function CardTitle(_a) {
|
|
1499
1657
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1500
|
-
return /* @__PURE__ */ (0,
|
|
1658
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1501
1659
|
"div",
|
|
1502
1660
|
__spreadValues({
|
|
1503
1661
|
"data-slot": "card-title",
|
|
@@ -1507,7 +1665,7 @@ function CardTitle(_a) {
|
|
|
1507
1665
|
}
|
|
1508
1666
|
function CardDescription(_a) {
|
|
1509
1667
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1510
|
-
return /* @__PURE__ */ (0,
|
|
1668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1511
1669
|
"div",
|
|
1512
1670
|
__spreadValues({
|
|
1513
1671
|
"data-slot": "card-description",
|
|
@@ -1517,7 +1675,7 @@ function CardDescription(_a) {
|
|
|
1517
1675
|
}
|
|
1518
1676
|
function CardAction(_a) {
|
|
1519
1677
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1520
|
-
return /* @__PURE__ */ (0,
|
|
1678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1521
1679
|
"div",
|
|
1522
1680
|
__spreadValues({
|
|
1523
1681
|
"data-slot": "card-action",
|
|
@@ -1530,7 +1688,7 @@ function CardAction(_a) {
|
|
|
1530
1688
|
}
|
|
1531
1689
|
function CardContent(_a) {
|
|
1532
1690
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1533
|
-
return /* @__PURE__ */ (0,
|
|
1691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1534
1692
|
"div",
|
|
1535
1693
|
__spreadValues({
|
|
1536
1694
|
"data-slot": "card-content",
|
|
@@ -1540,7 +1698,7 @@ function CardContent(_a) {
|
|
|
1540
1698
|
}
|
|
1541
1699
|
function CardFooter(_a) {
|
|
1542
1700
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1543
|
-
return /* @__PURE__ */ (0,
|
|
1701
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1544
1702
|
"div",
|
|
1545
1703
|
__spreadValues({
|
|
1546
1704
|
"data-slot": "card-footer",
|
|
@@ -1550,13 +1708,13 @@ function CardFooter(_a) {
|
|
|
1550
1708
|
}
|
|
1551
1709
|
|
|
1552
1710
|
// components/ui/carousel.tsx
|
|
1553
|
-
var
|
|
1711
|
+
var React4 = __toESM(require("react"), 1);
|
|
1554
1712
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
1555
|
-
var
|
|
1556
|
-
var
|
|
1557
|
-
var CarouselContext =
|
|
1713
|
+
var import_lucide_react6 = require("lucide-react");
|
|
1714
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1715
|
+
var CarouselContext = React4.createContext(null);
|
|
1558
1716
|
function useCarousel() {
|
|
1559
|
-
const context =
|
|
1717
|
+
const context = React4.useContext(CarouselContext);
|
|
1560
1718
|
if (!context) {
|
|
1561
1719
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1562
1720
|
}
|
|
@@ -1584,20 +1742,20 @@ function Carousel(_a) {
|
|
|
1584
1742
|
}),
|
|
1585
1743
|
plugins
|
|
1586
1744
|
);
|
|
1587
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
1588
|
-
const [canScrollNext, setCanScrollNext] =
|
|
1589
|
-
const onSelect =
|
|
1745
|
+
const [canScrollPrev, setCanScrollPrev] = React4.useState(false);
|
|
1746
|
+
const [canScrollNext, setCanScrollNext] = React4.useState(false);
|
|
1747
|
+
const onSelect = React4.useCallback((api2) => {
|
|
1590
1748
|
if (!api2) return;
|
|
1591
1749
|
setCanScrollPrev(api2.canScrollPrev());
|
|
1592
1750
|
setCanScrollNext(api2.canScrollNext());
|
|
1593
1751
|
}, []);
|
|
1594
|
-
const scrollPrev =
|
|
1752
|
+
const scrollPrev = React4.useCallback(() => {
|
|
1595
1753
|
api == null ? void 0 : api.scrollPrev();
|
|
1596
1754
|
}, [api]);
|
|
1597
|
-
const scrollNext =
|
|
1755
|
+
const scrollNext = React4.useCallback(() => {
|
|
1598
1756
|
api == null ? void 0 : api.scrollNext();
|
|
1599
1757
|
}, [api]);
|
|
1600
|
-
const handleKeyDown =
|
|
1758
|
+
const handleKeyDown = React4.useCallback(
|
|
1601
1759
|
(event) => {
|
|
1602
1760
|
if (event.key === "ArrowLeft") {
|
|
1603
1761
|
event.preventDefault();
|
|
@@ -1609,11 +1767,11 @@ function Carousel(_a) {
|
|
|
1609
1767
|
},
|
|
1610
1768
|
[scrollPrev, scrollNext]
|
|
1611
1769
|
);
|
|
1612
|
-
|
|
1770
|
+
React4.useEffect(() => {
|
|
1613
1771
|
if (!api || !setApi) return;
|
|
1614
1772
|
setApi(api);
|
|
1615
1773
|
}, [api, setApi]);
|
|
1616
|
-
|
|
1774
|
+
React4.useEffect(() => {
|
|
1617
1775
|
if (!api) return;
|
|
1618
1776
|
onSelect(api);
|
|
1619
1777
|
api.on("reInit", onSelect);
|
|
@@ -1622,7 +1780,7 @@ function Carousel(_a) {
|
|
|
1622
1780
|
api == null ? void 0 : api.off("select", onSelect);
|
|
1623
1781
|
};
|
|
1624
1782
|
}, [api, onSelect]);
|
|
1625
|
-
return /* @__PURE__ */ (0,
|
|
1783
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1626
1784
|
CarouselContext.Provider,
|
|
1627
1785
|
{
|
|
1628
1786
|
value: {
|
|
@@ -1635,7 +1793,7 @@ function Carousel(_a) {
|
|
|
1635
1793
|
canScrollPrev,
|
|
1636
1794
|
canScrollNext
|
|
1637
1795
|
},
|
|
1638
|
-
children: /* @__PURE__ */ (0,
|
|
1796
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1639
1797
|
"div",
|
|
1640
1798
|
__spreadProps(__spreadValues({
|
|
1641
1799
|
onKeyDownCapture: handleKeyDown,
|
|
@@ -1653,13 +1811,13 @@ function Carousel(_a) {
|
|
|
1653
1811
|
function CarouselContent(_a) {
|
|
1654
1812
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1655
1813
|
const { carouselRef, orientation } = useCarousel();
|
|
1656
|
-
return /* @__PURE__ */ (0,
|
|
1814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1657
1815
|
"div",
|
|
1658
1816
|
{
|
|
1659
1817
|
ref: carouselRef,
|
|
1660
1818
|
className: "overflow-hidden",
|
|
1661
1819
|
"data-slot": "carousel-content",
|
|
1662
|
-
children: /* @__PURE__ */ (0,
|
|
1820
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1663
1821
|
"div",
|
|
1664
1822
|
__spreadValues({
|
|
1665
1823
|
className: cn(
|
|
@@ -1675,7 +1833,7 @@ function CarouselContent(_a) {
|
|
|
1675
1833
|
function CarouselItem(_a) {
|
|
1676
1834
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1677
1835
|
const { orientation } = useCarousel();
|
|
1678
|
-
return /* @__PURE__ */ (0,
|
|
1836
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1679
1837
|
"div",
|
|
1680
1838
|
__spreadValues({
|
|
1681
1839
|
role: "group",
|
|
@@ -1700,7 +1858,7 @@ function CarouselPrevious(_a) {
|
|
|
1700
1858
|
"size"
|
|
1701
1859
|
]);
|
|
1702
1860
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1703
|
-
return /* @__PURE__ */ (0,
|
|
1861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1704
1862
|
Button,
|
|
1705
1863
|
__spreadProps(__spreadValues({
|
|
1706
1864
|
"data-slot": "carousel-previous",
|
|
@@ -1715,8 +1873,8 @@ function CarouselPrevious(_a) {
|
|
|
1715
1873
|
onClick: scrollPrev
|
|
1716
1874
|
}, props), {
|
|
1717
1875
|
children: [
|
|
1718
|
-
/* @__PURE__ */ (0,
|
|
1719
|
-
/* @__PURE__ */ (0,
|
|
1876
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react6.ArrowLeft, {}),
|
|
1877
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "sr-only", children: "Previous slide" })
|
|
1720
1878
|
]
|
|
1721
1879
|
})
|
|
1722
1880
|
);
|
|
@@ -1732,7 +1890,7 @@ function CarouselNext(_a) {
|
|
|
1732
1890
|
"size"
|
|
1733
1891
|
]);
|
|
1734
1892
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1735
|
-
return /* @__PURE__ */ (0,
|
|
1893
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1736
1894
|
Button,
|
|
1737
1895
|
__spreadProps(__spreadValues({
|
|
1738
1896
|
"data-slot": "carousel-next",
|
|
@@ -1747,21 +1905,21 @@ function CarouselNext(_a) {
|
|
|
1747
1905
|
onClick: scrollNext
|
|
1748
1906
|
}, props), {
|
|
1749
1907
|
children: [
|
|
1750
|
-
/* @__PURE__ */ (0,
|
|
1751
|
-
/* @__PURE__ */ (0,
|
|
1908
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react6.ArrowRight, {}),
|
|
1909
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "sr-only", children: "Next slide" })
|
|
1752
1910
|
]
|
|
1753
1911
|
})
|
|
1754
1912
|
);
|
|
1755
1913
|
}
|
|
1756
1914
|
|
|
1757
1915
|
// components/ui/chart.tsx
|
|
1758
|
-
var
|
|
1916
|
+
var React5 = __toESM(require("react"), 1);
|
|
1759
1917
|
var RechartsPrimitive = __toESM(require("recharts"), 1);
|
|
1760
|
-
var
|
|
1918
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1761
1919
|
var THEMES = { light: "" };
|
|
1762
|
-
var ChartContext =
|
|
1920
|
+
var ChartContext = React5.createContext(null);
|
|
1763
1921
|
function useChart() {
|
|
1764
|
-
const context =
|
|
1922
|
+
const context = React5.useContext(ChartContext);
|
|
1765
1923
|
if (!context) {
|
|
1766
1924
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
1767
1925
|
}
|
|
@@ -1779,9 +1937,9 @@ function ChartContainer(_a) {
|
|
|
1779
1937
|
"children",
|
|
1780
1938
|
"config"
|
|
1781
1939
|
]);
|
|
1782
|
-
const uniqueId =
|
|
1940
|
+
const uniqueId = React5.useId();
|
|
1783
1941
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
1784
|
-
return /* @__PURE__ */ (0,
|
|
1942
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1785
1943
|
"div",
|
|
1786
1944
|
__spreadProps(__spreadValues({
|
|
1787
1945
|
"data-slot": "chart",
|
|
@@ -1792,8 +1950,8 @@ function ChartContainer(_a) {
|
|
|
1792
1950
|
)
|
|
1793
1951
|
}, props), {
|
|
1794
1952
|
children: [
|
|
1795
|
-
/* @__PURE__ */ (0,
|
|
1796
|
-
/* @__PURE__ */ (0,
|
|
1953
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ChartStyle, { id: chartId, config }),
|
|
1954
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(RechartsPrimitive.ResponsiveContainer, { children })
|
|
1797
1955
|
]
|
|
1798
1956
|
})
|
|
1799
1957
|
) });
|
|
@@ -1805,7 +1963,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
1805
1963
|
if (!colorConfig.length) {
|
|
1806
1964
|
return null;
|
|
1807
1965
|
}
|
|
1808
|
-
return /* @__PURE__ */ (0,
|
|
1966
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1809
1967
|
"style",
|
|
1810
1968
|
{
|
|
1811
1969
|
dangerouslySetInnerHTML: {
|
|
@@ -1841,7 +1999,7 @@ function ChartTooltipContent({
|
|
|
1841
1999
|
labelKey
|
|
1842
2000
|
}) {
|
|
1843
2001
|
const { config } = useChart();
|
|
1844
|
-
const tooltipLabel =
|
|
2002
|
+
const tooltipLabel = React5.useMemo(() => {
|
|
1845
2003
|
var _a;
|
|
1846
2004
|
if (hideLabel || !(payload == null ? void 0 : payload.length)) {
|
|
1847
2005
|
return null;
|
|
@@ -1851,12 +2009,12 @@ function ChartTooltipContent({
|
|
|
1851
2009
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1852
2010
|
const value = !labelKey && typeof label === "string" ? ((_a = config[label]) == null ? void 0 : _a.label) || label : itemConfig == null ? void 0 : itemConfig.label;
|
|
1853
2011
|
if (labelFormatter) {
|
|
1854
|
-
return /* @__PURE__ */ (0,
|
|
2012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
1855
2013
|
}
|
|
1856
2014
|
if (!value) {
|
|
1857
2015
|
return null;
|
|
1858
2016
|
}
|
|
1859
|
-
return /* @__PURE__ */ (0,
|
|
2017
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: cn("font-medium", labelClassName), children: value });
|
|
1860
2018
|
}, [
|
|
1861
2019
|
label,
|
|
1862
2020
|
labelFormatter,
|
|
@@ -1870,7 +2028,7 @@ function ChartTooltipContent({
|
|
|
1870
2028
|
return null;
|
|
1871
2029
|
}
|
|
1872
2030
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
1873
|
-
return /* @__PURE__ */ (0,
|
|
2031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1874
2032
|
"div",
|
|
1875
2033
|
{
|
|
1876
2034
|
className: cn(
|
|
@@ -1879,19 +2037,19 @@ function ChartTooltipContent({
|
|
|
1879
2037
|
),
|
|
1880
2038
|
children: [
|
|
1881
2039
|
!nestLabel ? tooltipLabel : null,
|
|
1882
|
-
/* @__PURE__ */ (0,
|
|
2040
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
1883
2041
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
1884
2042
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1885
2043
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
1886
|
-
return /* @__PURE__ */ (0,
|
|
2044
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1887
2045
|
"div",
|
|
1888
2046
|
{
|
|
1889
2047
|
className: cn(
|
|
1890
2048
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-on-subtle",
|
|
1891
2049
|
indicator === "dot" && "items-center"
|
|
1892
2050
|
),
|
|
1893
|
-
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0,
|
|
1894
|
-
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ (0,
|
|
2051
|
+
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
|
|
2052
|
+
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1895
2053
|
"div",
|
|
1896
2054
|
{
|
|
1897
2055
|
className: cn(
|
|
@@ -1909,7 +2067,7 @@ function ChartTooltipContent({
|
|
|
1909
2067
|
}
|
|
1910
2068
|
}
|
|
1911
2069
|
),
|
|
1912
|
-
/* @__PURE__ */ (0,
|
|
2070
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1913
2071
|
"div",
|
|
1914
2072
|
{
|
|
1915
2073
|
className: cn(
|
|
@@ -1917,11 +2075,11 @@ function ChartTooltipContent({
|
|
|
1917
2075
|
nestLabel ? "items-end" : "items-center"
|
|
1918
2076
|
),
|
|
1919
2077
|
children: [
|
|
1920
|
-
/* @__PURE__ */ (0,
|
|
2078
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "grid gap-1.5", children: [
|
|
1921
2079
|
nestLabel ? tooltipLabel : null,
|
|
1922
|
-
/* @__PURE__ */ (0,
|
|
2080
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-on-subtle", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
|
|
1923
2081
|
] }),
|
|
1924
|
-
item.value && /* @__PURE__ */ (0,
|
|
2082
|
+
item.value && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "font-mono font-medium text-on-prominent tabular-nums", children: item.value.toLocaleString() })
|
|
1925
2083
|
]
|
|
1926
2084
|
}
|
|
1927
2085
|
)
|
|
@@ -1946,7 +2104,7 @@ function ChartLegendContent({
|
|
|
1946
2104
|
if (!(payload == null ? void 0 : payload.length)) {
|
|
1947
2105
|
return null;
|
|
1948
2106
|
}
|
|
1949
|
-
return /* @__PURE__ */ (0,
|
|
2107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1950
2108
|
"div",
|
|
1951
2109
|
{
|
|
1952
2110
|
className: cn(
|
|
@@ -1957,14 +2115,14 @@ function ChartLegendContent({
|
|
|
1957
2115
|
children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
1958
2116
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1959
2117
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1960
|
-
return /* @__PURE__ */ (0,
|
|
2118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1961
2119
|
"div",
|
|
1962
2120
|
{
|
|
1963
2121
|
className: cn(
|
|
1964
2122
|
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-on-subtle"
|
|
1965
2123
|
),
|
|
1966
2124
|
children: [
|
|
1967
|
-
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ (0,
|
|
2125
|
+
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(itemConfig.icon, {}) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1968
2126
|
"div",
|
|
1969
2127
|
{
|
|
1970
2128
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -1997,16 +2155,16 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1997
2155
|
}
|
|
1998
2156
|
|
|
1999
2157
|
// components/ui/checkbox.tsx
|
|
2000
|
-
var
|
|
2158
|
+
var import_lucide_react7 = require("lucide-react");
|
|
2001
2159
|
var import_radix_ui8 = require("radix-ui");
|
|
2002
|
-
var
|
|
2160
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
2003
2161
|
function Checkbox(_a) {
|
|
2004
2162
|
var _b = _a, {
|
|
2005
2163
|
className
|
|
2006
2164
|
} = _b, props = __objRest(_b, [
|
|
2007
2165
|
"className"
|
|
2008
2166
|
]);
|
|
2009
|
-
return /* @__PURE__ */ (0,
|
|
2167
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2010
2168
|
import_radix_ui8.Checkbox.Root,
|
|
2011
2169
|
__spreadProps(__spreadValues({
|
|
2012
2170
|
"data-slot": "checkbox",
|
|
@@ -2015,12 +2173,12 @@ function Checkbox(_a) {
|
|
|
2015
2173
|
className
|
|
2016
2174
|
)
|
|
2017
2175
|
}, props), {
|
|
2018
|
-
children: /* @__PURE__ */ (0,
|
|
2176
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2019
2177
|
import_radix_ui8.Checkbox.Indicator,
|
|
2020
2178
|
{
|
|
2021
2179
|
"data-slot": "checkbox-indicator",
|
|
2022
2180
|
className: "grid place-content-center text-current transition-none",
|
|
2023
|
-
children: /* @__PURE__ */ (0,
|
|
2181
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react7.CheckIcon, { className: "size-3.5" })
|
|
2024
2182
|
}
|
|
2025
2183
|
)
|
|
2026
2184
|
})
|
|
@@ -2029,14 +2187,14 @@ function Checkbox(_a) {
|
|
|
2029
2187
|
|
|
2030
2188
|
// components/ui/collapsible.tsx
|
|
2031
2189
|
var import_radix_ui9 = require("radix-ui");
|
|
2032
|
-
var
|
|
2190
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
2033
2191
|
function Collapsible(_a) {
|
|
2034
2192
|
var props = __objRest(_a, []);
|
|
2035
|
-
return /* @__PURE__ */ (0,
|
|
2193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_radix_ui9.Collapsible.Root, __spreadValues({ "data-slot": "collapsible" }, props));
|
|
2036
2194
|
}
|
|
2037
2195
|
function CollapsibleTrigger(_a) {
|
|
2038
2196
|
var props = __objRest(_a, []);
|
|
2039
|
-
return /* @__PURE__ */ (0,
|
|
2197
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
2040
2198
|
import_radix_ui9.Collapsible.CollapsibleTrigger,
|
|
2041
2199
|
__spreadValues({
|
|
2042
2200
|
"data-slot": "collapsible-trigger"
|
|
@@ -2045,7 +2203,7 @@ function CollapsibleTrigger(_a) {
|
|
|
2045
2203
|
}
|
|
2046
2204
|
function CollapsibleContent(_a) {
|
|
2047
2205
|
var props = __objRest(_a, []);
|
|
2048
|
-
return /* @__PURE__ */ (0,
|
|
2206
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
2049
2207
|
import_radix_ui9.Collapsible.CollapsibleContent,
|
|
2050
2208
|
__spreadValues({
|
|
2051
2209
|
"data-slot": "collapsible-content"
|
|
@@ -2054,17 +2212,17 @@ function CollapsibleContent(_a) {
|
|
|
2054
2212
|
}
|
|
2055
2213
|
|
|
2056
2214
|
// components/ui/combobox.tsx
|
|
2057
|
-
var
|
|
2215
|
+
var React7 = __toESM(require("react"), 1);
|
|
2058
2216
|
var import_react = require("@base-ui/react");
|
|
2059
|
-
var
|
|
2217
|
+
var import_lucide_react8 = require("lucide-react");
|
|
2060
2218
|
|
|
2061
2219
|
// components/ui/input-group.tsx
|
|
2062
|
-
var
|
|
2220
|
+
var React6 = __toESM(require("react"), 1);
|
|
2063
2221
|
var import_class_variance_authority5 = require("class-variance-authority");
|
|
2064
2222
|
|
|
2065
2223
|
// components/ui/input.tsx
|
|
2066
2224
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
2067
|
-
var
|
|
2225
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
2068
2226
|
var inputVariants = (0, import_class_variance_authority4.cva)(
|
|
2069
2227
|
[
|
|
2070
2228
|
"w-full min-w-0 rounded-sm border border-border-subtle bg-white/5",
|
|
@@ -2098,7 +2256,7 @@ function Input(_a) {
|
|
|
2098
2256
|
"type",
|
|
2099
2257
|
"size"
|
|
2100
2258
|
]);
|
|
2101
|
-
return /* @__PURE__ */ (0,
|
|
2259
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2102
2260
|
"input",
|
|
2103
2261
|
__spreadValues({
|
|
2104
2262
|
type,
|
|
@@ -2110,10 +2268,10 @@ function Input(_a) {
|
|
|
2110
2268
|
}
|
|
2111
2269
|
|
|
2112
2270
|
// components/ui/textarea.tsx
|
|
2113
|
-
var
|
|
2271
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
2114
2272
|
function Textarea(_a) {
|
|
2115
2273
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2116
|
-
return /* @__PURE__ */ (0,
|
|
2274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2117
2275
|
"textarea",
|
|
2118
2276
|
__spreadValues({
|
|
2119
2277
|
"data-slot": "textarea",
|
|
@@ -2126,8 +2284,8 @@ function Textarea(_a) {
|
|
|
2126
2284
|
}
|
|
2127
2285
|
|
|
2128
2286
|
// components/ui/input-group.tsx
|
|
2129
|
-
var
|
|
2130
|
-
var InputGroupSizeContext =
|
|
2287
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
2288
|
+
var InputGroupSizeContext = React6.createContext("md");
|
|
2131
2289
|
var inputGroupVariants = (0, import_class_variance_authority5.cva)(
|
|
2132
2290
|
[
|
|
2133
2291
|
"group/input-group relative flex w-full items-center rounded-sm border border-border-subtle bg-white/5",
|
|
@@ -2165,7 +2323,7 @@ function InputGroup(_a) {
|
|
|
2165
2323
|
"className",
|
|
2166
2324
|
"size"
|
|
2167
2325
|
]);
|
|
2168
|
-
return /* @__PURE__ */ (0,
|
|
2326
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(InputGroupSizeContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2169
2327
|
"div",
|
|
2170
2328
|
__spreadValues({
|
|
2171
2329
|
"data-slot": "input-group",
|
|
@@ -2210,7 +2368,7 @@ function InputGroupAddon(_a) {
|
|
|
2210
2368
|
"className",
|
|
2211
2369
|
"align"
|
|
2212
2370
|
]);
|
|
2213
|
-
return /* @__PURE__ */ (0,
|
|
2371
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2214
2372
|
"div",
|
|
2215
2373
|
__spreadValues({
|
|
2216
2374
|
role: "group",
|
|
@@ -2255,7 +2413,7 @@ function InputGroupButton(_a) {
|
|
|
2255
2413
|
"variant",
|
|
2256
2414
|
"size"
|
|
2257
2415
|
]);
|
|
2258
|
-
return /* @__PURE__ */ (0,
|
|
2416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2259
2417
|
Button,
|
|
2260
2418
|
__spreadValues({
|
|
2261
2419
|
type,
|
|
@@ -2267,7 +2425,7 @@ function InputGroupButton(_a) {
|
|
|
2267
2425
|
}
|
|
2268
2426
|
function InputGroupText(_a) {
|
|
2269
2427
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2270
|
-
return /* @__PURE__ */ (0,
|
|
2428
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2271
2429
|
"span",
|
|
2272
2430
|
__spreadValues({
|
|
2273
2431
|
className: cn(
|
|
@@ -2289,9 +2447,9 @@ function InputGroupInput(_a) {
|
|
|
2289
2447
|
"className",
|
|
2290
2448
|
"size"
|
|
2291
2449
|
]);
|
|
2292
|
-
const groupSize =
|
|
2450
|
+
const groupSize = React6.useContext(InputGroupSizeContext);
|
|
2293
2451
|
const size = sizeProp != null ? sizeProp : groupSize;
|
|
2294
|
-
return /* @__PURE__ */ (0,
|
|
2452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2295
2453
|
Input,
|
|
2296
2454
|
__spreadValues({
|
|
2297
2455
|
"data-slot": "input-group-control",
|
|
@@ -2309,7 +2467,7 @@ function InputGroupTextarea(_a) {
|
|
|
2309
2467
|
} = _b, props = __objRest(_b, [
|
|
2310
2468
|
"className"
|
|
2311
2469
|
]);
|
|
2312
|
-
return /* @__PURE__ */ (0,
|
|
2470
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2313
2471
|
Textarea,
|
|
2314
2472
|
__spreadValues({
|
|
2315
2473
|
"data-slot": "input-group-control",
|
|
@@ -2322,11 +2480,11 @@ function InputGroupTextarea(_a) {
|
|
|
2322
2480
|
}
|
|
2323
2481
|
|
|
2324
2482
|
// components/ui/combobox.tsx
|
|
2325
|
-
var
|
|
2483
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
2326
2484
|
var Combobox = import_react.Combobox.Root;
|
|
2327
2485
|
function ComboboxValue(_a) {
|
|
2328
2486
|
var props = __objRest(_a, []);
|
|
2329
|
-
return /* @__PURE__ */ (0,
|
|
2487
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react.Combobox.Value, __spreadValues({ "data-slot": "combobox-value" }, props));
|
|
2330
2488
|
}
|
|
2331
2489
|
function ComboboxTrigger(_a) {
|
|
2332
2490
|
var _b = _a, {
|
|
@@ -2336,7 +2494,7 @@ function ComboboxTrigger(_a) {
|
|
|
2336
2494
|
"className",
|
|
2337
2495
|
"children"
|
|
2338
2496
|
]);
|
|
2339
|
-
return /* @__PURE__ */ (0,
|
|
2497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
2340
2498
|
import_react.Combobox.Trigger,
|
|
2341
2499
|
__spreadProps(__spreadValues({
|
|
2342
2500
|
"data-slot": "combobox-trigger",
|
|
@@ -2344,8 +2502,8 @@ function ComboboxTrigger(_a) {
|
|
|
2344
2502
|
}, props), {
|
|
2345
2503
|
children: [
|
|
2346
2504
|
children,
|
|
2347
|
-
/* @__PURE__ */ (0,
|
|
2348
|
-
|
|
2505
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2506
|
+
import_lucide_react8.ChevronDownIcon,
|
|
2349
2507
|
{
|
|
2350
2508
|
"data-slot": "combobox-trigger-icon",
|
|
2351
2509
|
className: "pointer-events-none size-4 text-on-subtle"
|
|
@@ -2357,14 +2515,14 @@ function ComboboxTrigger(_a) {
|
|
|
2357
2515
|
}
|
|
2358
2516
|
function ComboboxClear(_a) {
|
|
2359
2517
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2360
|
-
return /* @__PURE__ */ (0,
|
|
2518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2361
2519
|
import_react.Combobox.Clear,
|
|
2362
2520
|
__spreadProps(__spreadValues({
|
|
2363
2521
|
"data-slot": "combobox-clear",
|
|
2364
|
-
render: /* @__PURE__ */ (0,
|
|
2522
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InputGroupButton, { variant: "secondary", size: "icon-xs" }),
|
|
2365
2523
|
className: cn(className)
|
|
2366
2524
|
}, props), {
|
|
2367
|
-
children: /* @__PURE__ */ (0,
|
|
2525
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react8.XIcon, { className: "pointer-events-none" })
|
|
2368
2526
|
})
|
|
2369
2527
|
);
|
|
2370
2528
|
}
|
|
@@ -2382,15 +2540,15 @@ function ComboboxInput(_a) {
|
|
|
2382
2540
|
"showTrigger",
|
|
2383
2541
|
"showClear"
|
|
2384
2542
|
]);
|
|
2385
|
-
return /* @__PURE__ */ (0,
|
|
2386
|
-
/* @__PURE__ */ (0,
|
|
2543
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(InputGroup, { className: cn("w-auto", className), children: [
|
|
2544
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2387
2545
|
import_react.Combobox.Input,
|
|
2388
2546
|
__spreadValues({
|
|
2389
|
-
render: /* @__PURE__ */ (0,
|
|
2547
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InputGroupInput, { disabled })
|
|
2390
2548
|
}, props)
|
|
2391
2549
|
),
|
|
2392
|
-
/* @__PURE__ */ (0,
|
|
2393
|
-
showTrigger && /* @__PURE__ */ (0,
|
|
2550
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(InputGroupAddon, { align: "inline-end", children: [
|
|
2551
|
+
showTrigger && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2394
2552
|
InputGroupButton,
|
|
2395
2553
|
{
|
|
2396
2554
|
size: "icon-xs",
|
|
@@ -2399,10 +2557,10 @@ function ComboboxInput(_a) {
|
|
|
2399
2557
|
"data-slot": "input-group-button",
|
|
2400
2558
|
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
2401
2559
|
disabled,
|
|
2402
|
-
children: /* @__PURE__ */ (0,
|
|
2560
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ComboboxTrigger, {})
|
|
2403
2561
|
}
|
|
2404
2562
|
),
|
|
2405
|
-
showClear && /* @__PURE__ */ (0,
|
|
2563
|
+
showClear && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ComboboxClear, { disabled })
|
|
2406
2564
|
] }),
|
|
2407
2565
|
children
|
|
2408
2566
|
] });
|
|
@@ -2423,7 +2581,7 @@ function ComboboxContent(_a) {
|
|
|
2423
2581
|
"alignOffset",
|
|
2424
2582
|
"anchor"
|
|
2425
2583
|
]);
|
|
2426
|
-
return /* @__PURE__ */ (0,
|
|
2584
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react.Combobox.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2427
2585
|
import_react.Combobox.Positioner,
|
|
2428
2586
|
{
|
|
2429
2587
|
side,
|
|
@@ -2432,7 +2590,7 @@ function ComboboxContent(_a) {
|
|
|
2432
2590
|
alignOffset,
|
|
2433
2591
|
anchor,
|
|
2434
2592
|
className: "isolate z-50",
|
|
2435
|
-
children: /* @__PURE__ */ (0,
|
|
2593
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2436
2594
|
import_react.Combobox.Popup,
|
|
2437
2595
|
__spreadValues({
|
|
2438
2596
|
"data-slot": "combobox-content",
|
|
@@ -2448,7 +2606,7 @@ function ComboboxContent(_a) {
|
|
|
2448
2606
|
}
|
|
2449
2607
|
function ComboboxList(_a) {
|
|
2450
2608
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2451
|
-
return /* @__PURE__ */ (0,
|
|
2609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2452
2610
|
import_react.Combobox.List,
|
|
2453
2611
|
__spreadValues({
|
|
2454
2612
|
"data-slot": "combobox-list",
|
|
@@ -2467,7 +2625,7 @@ function ComboboxItem(_a) {
|
|
|
2467
2625
|
"className",
|
|
2468
2626
|
"children"
|
|
2469
2627
|
]);
|
|
2470
|
-
return /* @__PURE__ */ (0,
|
|
2628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
2471
2629
|
import_react.Combobox.Item,
|
|
2472
2630
|
__spreadProps(__spreadValues({
|
|
2473
2631
|
"data-slot": "combobox-item",
|
|
@@ -2478,12 +2636,12 @@ function ComboboxItem(_a) {
|
|
|
2478
2636
|
}, props), {
|
|
2479
2637
|
children: [
|
|
2480
2638
|
children,
|
|
2481
|
-
/* @__PURE__ */ (0,
|
|
2639
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2482
2640
|
import_react.Combobox.ItemIndicator,
|
|
2483
2641
|
{
|
|
2484
2642
|
"data-slot": "combobox-item-indicator",
|
|
2485
|
-
render: /* @__PURE__ */ (0,
|
|
2486
|
-
children: /* @__PURE__ */ (0,
|
|
2643
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
2644
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react8.CheckIcon, { className: "pointer-events-none size-4 pointer-coarse:size-5" })
|
|
2487
2645
|
}
|
|
2488
2646
|
)
|
|
2489
2647
|
]
|
|
@@ -2492,7 +2650,7 @@ function ComboboxItem(_a) {
|
|
|
2492
2650
|
}
|
|
2493
2651
|
function ComboboxGroup(_a) {
|
|
2494
2652
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2495
|
-
return /* @__PURE__ */ (0,
|
|
2653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2496
2654
|
import_react.Combobox.Group,
|
|
2497
2655
|
__spreadValues({
|
|
2498
2656
|
"data-slot": "combobox-group",
|
|
@@ -2506,7 +2664,7 @@ function ComboboxLabel(_a) {
|
|
|
2506
2664
|
} = _b, props = __objRest(_b, [
|
|
2507
2665
|
"className"
|
|
2508
2666
|
]);
|
|
2509
|
-
return /* @__PURE__ */ (0,
|
|
2667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2510
2668
|
import_react.Combobox.GroupLabel,
|
|
2511
2669
|
__spreadValues({
|
|
2512
2670
|
"data-slot": "combobox-label",
|
|
@@ -2519,11 +2677,11 @@ function ComboboxLabel(_a) {
|
|
|
2519
2677
|
}
|
|
2520
2678
|
function ComboboxCollection(_a) {
|
|
2521
2679
|
var props = __objRest(_a, []);
|
|
2522
|
-
return /* @__PURE__ */ (0,
|
|
2680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react.Combobox.Collection, __spreadValues({ "data-slot": "combobox-collection" }, props));
|
|
2523
2681
|
}
|
|
2524
2682
|
function ComboboxEmpty(_a) {
|
|
2525
2683
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2526
|
-
return /* @__PURE__ */ (0,
|
|
2684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2527
2685
|
import_react.Combobox.Empty,
|
|
2528
2686
|
__spreadValues({
|
|
2529
2687
|
"data-slot": "combobox-empty",
|
|
@@ -2540,7 +2698,7 @@ function ComboboxSeparator(_a) {
|
|
|
2540
2698
|
} = _b, props = __objRest(_b, [
|
|
2541
2699
|
"className"
|
|
2542
2700
|
]);
|
|
2543
|
-
return /* @__PURE__ */ (0,
|
|
2701
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2544
2702
|
import_react.Combobox.Separator,
|
|
2545
2703
|
__spreadValues({
|
|
2546
2704
|
"data-slot": "combobox-separator",
|
|
@@ -2554,7 +2712,7 @@ function ComboboxChips(_a) {
|
|
|
2554
2712
|
} = _b, props = __objRest(_b, [
|
|
2555
2713
|
"className"
|
|
2556
2714
|
]);
|
|
2557
|
-
return /* @__PURE__ */ (0,
|
|
2715
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2558
2716
|
import_react.Combobox.Chips,
|
|
2559
2717
|
__spreadValues({
|
|
2560
2718
|
"data-slot": "combobox-chips",
|
|
@@ -2575,7 +2733,7 @@ function ComboboxChip(_a) {
|
|
|
2575
2733
|
"children",
|
|
2576
2734
|
"showRemove"
|
|
2577
2735
|
]);
|
|
2578
|
-
return /* @__PURE__ */ (0,
|
|
2736
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
2579
2737
|
import_react.Combobox.Chip,
|
|
2580
2738
|
__spreadProps(__spreadValues({
|
|
2581
2739
|
"data-slot": "combobox-chip",
|
|
@@ -2586,13 +2744,13 @@ function ComboboxChip(_a) {
|
|
|
2586
2744
|
}, props), {
|
|
2587
2745
|
children: [
|
|
2588
2746
|
children,
|
|
2589
|
-
showRemove && /* @__PURE__ */ (0,
|
|
2747
|
+
showRemove && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2590
2748
|
import_react.Combobox.ChipRemove,
|
|
2591
2749
|
{
|
|
2592
|
-
render: /* @__PURE__ */ (0,
|
|
2750
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { variant: "secondary", size: "icon-xs" }),
|
|
2593
2751
|
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
2594
2752
|
"data-slot": "combobox-chip-remove",
|
|
2595
|
-
children: /* @__PURE__ */ (0,
|
|
2753
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react8.XIcon, { className: "pointer-events-none" })
|
|
2596
2754
|
}
|
|
2597
2755
|
)
|
|
2598
2756
|
]
|
|
@@ -2607,7 +2765,7 @@ function ComboboxChipsInput(_a) {
|
|
|
2607
2765
|
"className",
|
|
2608
2766
|
"children"
|
|
2609
2767
|
]);
|
|
2610
|
-
return /* @__PURE__ */ (0,
|
|
2768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2611
2769
|
import_react.Combobox.Input,
|
|
2612
2770
|
__spreadValues({
|
|
2613
2771
|
"data-slot": "combobox-chip-input",
|
|
@@ -2616,32 +2774,32 @@ function ComboboxChipsInput(_a) {
|
|
|
2616
2774
|
);
|
|
2617
2775
|
}
|
|
2618
2776
|
function useComboboxAnchor() {
|
|
2619
|
-
return
|
|
2777
|
+
return React7.useRef(null);
|
|
2620
2778
|
}
|
|
2621
2779
|
|
|
2622
2780
|
// components/ui/command.tsx
|
|
2623
2781
|
var import_cmdk = require("cmdk");
|
|
2624
|
-
var
|
|
2782
|
+
var import_lucide_react10 = require("lucide-react");
|
|
2625
2783
|
|
|
2626
2784
|
// components/ui/dialog.tsx
|
|
2627
|
-
var
|
|
2785
|
+
var import_lucide_react9 = require("lucide-react");
|
|
2628
2786
|
var import_radix_ui10 = require("radix-ui");
|
|
2629
|
-
var
|
|
2787
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
2630
2788
|
function Dialog(_a) {
|
|
2631
2789
|
var props = __objRest(_a, []);
|
|
2632
|
-
return /* @__PURE__ */ (0,
|
|
2790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui10.Dialog.Root, __spreadValues({ "data-slot": "dialog" }, props));
|
|
2633
2791
|
}
|
|
2634
2792
|
function DialogTrigger(_a) {
|
|
2635
2793
|
var props = __objRest(_a, []);
|
|
2636
|
-
return /* @__PURE__ */ (0,
|
|
2794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui10.Dialog.Trigger, __spreadValues({ "data-slot": "dialog-trigger" }, props));
|
|
2637
2795
|
}
|
|
2638
2796
|
function DialogPortal(_a) {
|
|
2639
2797
|
var props = __objRest(_a, []);
|
|
2640
|
-
return /* @__PURE__ */ (0,
|
|
2798
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui10.Dialog.Portal, __spreadValues({ "data-slot": "dialog-portal" }, props));
|
|
2641
2799
|
}
|
|
2642
2800
|
function DialogClose(_a) {
|
|
2643
2801
|
var props = __objRest(_a, []);
|
|
2644
|
-
return /* @__PURE__ */ (0,
|
|
2802
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui10.Dialog.Close, __spreadValues({ "data-slot": "dialog-close" }, props));
|
|
2645
2803
|
}
|
|
2646
2804
|
function DialogOverlay(_a) {
|
|
2647
2805
|
var _b = _a, {
|
|
@@ -2649,7 +2807,7 @@ function DialogOverlay(_a) {
|
|
|
2649
2807
|
} = _b, props = __objRest(_b, [
|
|
2650
2808
|
"className"
|
|
2651
2809
|
]);
|
|
2652
|
-
return /* @__PURE__ */ (0,
|
|
2810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2653
2811
|
import_radix_ui10.Dialog.Overlay,
|
|
2654
2812
|
__spreadValues({
|
|
2655
2813
|
"data-slot": "dialog-overlay",
|
|
@@ -2670,9 +2828,9 @@ function DialogContent(_a) {
|
|
|
2670
2828
|
"children",
|
|
2671
2829
|
"showCloseButton"
|
|
2672
2830
|
]);
|
|
2673
|
-
return /* @__PURE__ */ (0,
|
|
2674
|
-
/* @__PURE__ */ (0,
|
|
2675
|
-
/* @__PURE__ */ (0,
|
|
2831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
2832
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DialogOverlay, {}),
|
|
2833
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2676
2834
|
import_radix_ui10.Dialog.Content,
|
|
2677
2835
|
__spreadProps(__spreadValues({
|
|
2678
2836
|
"data-slot": "dialog-content",
|
|
@@ -2683,14 +2841,14 @@ function DialogContent(_a) {
|
|
|
2683
2841
|
}, props), {
|
|
2684
2842
|
children: [
|
|
2685
2843
|
children,
|
|
2686
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
2844
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2687
2845
|
import_radix_ui10.Dialog.Close,
|
|
2688
2846
|
{
|
|
2689
2847
|
"data-slot": "dialog-close",
|
|
2690
2848
|
className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-prominent transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-on-subtle [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
2691
2849
|
children: [
|
|
2692
|
-
/* @__PURE__ */ (0,
|
|
2693
|
-
/* @__PURE__ */ (0,
|
|
2850
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react9.XIcon, {}),
|
|
2851
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "sr-only", children: "Close" })
|
|
2694
2852
|
]
|
|
2695
2853
|
}
|
|
2696
2854
|
)
|
|
@@ -2701,7 +2859,7 @@ function DialogContent(_a) {
|
|
|
2701
2859
|
}
|
|
2702
2860
|
function DialogHeader(_a) {
|
|
2703
2861
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2704
|
-
return /* @__PURE__ */ (0,
|
|
2862
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2705
2863
|
"div",
|
|
2706
2864
|
__spreadValues({
|
|
2707
2865
|
"data-slot": "dialog-header",
|
|
@@ -2719,7 +2877,7 @@ function DialogFooter(_a) {
|
|
|
2719
2877
|
"showCloseButton",
|
|
2720
2878
|
"children"
|
|
2721
2879
|
]);
|
|
2722
|
-
return /* @__PURE__ */ (0,
|
|
2880
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
2723
2881
|
"div",
|
|
2724
2882
|
__spreadProps(__spreadValues({
|
|
2725
2883
|
"data-slot": "dialog-footer",
|
|
@@ -2730,7 +2888,7 @@ function DialogFooter(_a) {
|
|
|
2730
2888
|
}, props), {
|
|
2731
2889
|
children: [
|
|
2732
2890
|
children,
|
|
2733
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
2891
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_radix_ui10.Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Button, { variant: "secondary", size: "md", children: "Close" }) })
|
|
2734
2892
|
]
|
|
2735
2893
|
})
|
|
2736
2894
|
);
|
|
@@ -2741,7 +2899,7 @@ function DialogTitle(_a) {
|
|
|
2741
2899
|
} = _b, props = __objRest(_b, [
|
|
2742
2900
|
"className"
|
|
2743
2901
|
]);
|
|
2744
|
-
return /* @__PURE__ */ (0,
|
|
2902
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2745
2903
|
import_radix_ui10.Dialog.Title,
|
|
2746
2904
|
__spreadValues({
|
|
2747
2905
|
"data-slot": "dialog-title",
|
|
@@ -2755,7 +2913,7 @@ function DialogDescription(_a) {
|
|
|
2755
2913
|
} = _b, props = __objRest(_b, [
|
|
2756
2914
|
"className"
|
|
2757
2915
|
]);
|
|
2758
|
-
return /* @__PURE__ */ (0,
|
|
2916
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2759
2917
|
import_radix_ui10.Dialog.Description,
|
|
2760
2918
|
__spreadValues({
|
|
2761
2919
|
"data-slot": "dialog-description",
|
|
@@ -2765,14 +2923,14 @@ function DialogDescription(_a) {
|
|
|
2765
2923
|
}
|
|
2766
2924
|
|
|
2767
2925
|
// components/ui/command.tsx
|
|
2768
|
-
var
|
|
2926
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2769
2927
|
function Command(_a) {
|
|
2770
2928
|
var _b = _a, {
|
|
2771
2929
|
className
|
|
2772
2930
|
} = _b, props = __objRest(_b, [
|
|
2773
2931
|
"className"
|
|
2774
2932
|
]);
|
|
2775
|
-
return /* @__PURE__ */ (0,
|
|
2933
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2776
2934
|
import_cmdk.Command,
|
|
2777
2935
|
__spreadValues({
|
|
2778
2936
|
"data-slot": "command",
|
|
@@ -2797,17 +2955,17 @@ function CommandDialog(_a) {
|
|
|
2797
2955
|
"className",
|
|
2798
2956
|
"showCloseButton"
|
|
2799
2957
|
]);
|
|
2800
|
-
return /* @__PURE__ */ (0,
|
|
2801
|
-
/* @__PURE__ */ (0,
|
|
2802
|
-
/* @__PURE__ */ (0,
|
|
2803
|
-
/* @__PURE__ */ (0,
|
|
2958
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Dialog, __spreadProps(__spreadValues({}, props), { children: [
|
|
2959
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(DialogHeader, { className: "sr-only", children: [
|
|
2960
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DialogTitle, { children: title }),
|
|
2961
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DialogDescription, { children: description })
|
|
2804
2962
|
] }),
|
|
2805
|
-
/* @__PURE__ */ (0,
|
|
2963
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2806
2964
|
DialogContent,
|
|
2807
2965
|
{
|
|
2808
2966
|
className: cn("overflow-hidden p-0", className),
|
|
2809
2967
|
showCloseButton,
|
|
2810
|
-
children: /* @__PURE__ */ (0,
|
|
2968
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Command, { className: "**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-on-subtle [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children })
|
|
2811
2969
|
}
|
|
2812
2970
|
)
|
|
2813
2971
|
] }));
|
|
@@ -2818,14 +2976,14 @@ function CommandInput(_a) {
|
|
|
2818
2976
|
} = _b, props = __objRest(_b, [
|
|
2819
2977
|
"className"
|
|
2820
2978
|
]);
|
|
2821
|
-
return /* @__PURE__ */ (0,
|
|
2979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
2822
2980
|
"div",
|
|
2823
2981
|
{
|
|
2824
2982
|
"data-slot": "command-input-wrapper",
|
|
2825
2983
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
2826
2984
|
children: [
|
|
2827
|
-
/* @__PURE__ */ (0,
|
|
2828
|
-
/* @__PURE__ */ (0,
|
|
2985
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react10.SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
|
|
2986
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2829
2987
|
import_cmdk.Command.Input,
|
|
2830
2988
|
__spreadValues({
|
|
2831
2989
|
"data-slot": "command-input",
|
|
@@ -2845,7 +3003,7 @@ function CommandList(_a) {
|
|
|
2845
3003
|
} = _b, props = __objRest(_b, [
|
|
2846
3004
|
"className"
|
|
2847
3005
|
]);
|
|
2848
|
-
return /* @__PURE__ */ (0,
|
|
3006
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2849
3007
|
import_cmdk.Command.List,
|
|
2850
3008
|
__spreadValues({
|
|
2851
3009
|
"data-slot": "command-list",
|
|
@@ -2858,7 +3016,7 @@ function CommandList(_a) {
|
|
|
2858
3016
|
}
|
|
2859
3017
|
function CommandEmpty(_a) {
|
|
2860
3018
|
var props = __objRest(_a, []);
|
|
2861
|
-
return /* @__PURE__ */ (0,
|
|
3019
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2862
3020
|
import_cmdk.Command.Empty,
|
|
2863
3021
|
__spreadValues({
|
|
2864
3022
|
"data-slot": "command-empty",
|
|
@@ -2872,7 +3030,7 @@ function CommandGroup(_a) {
|
|
|
2872
3030
|
} = _b, props = __objRest(_b, [
|
|
2873
3031
|
"className"
|
|
2874
3032
|
]);
|
|
2875
|
-
return /* @__PURE__ */ (0,
|
|
3033
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2876
3034
|
import_cmdk.Command.Group,
|
|
2877
3035
|
__spreadValues({
|
|
2878
3036
|
"data-slot": "command-group",
|
|
@@ -2889,7 +3047,7 @@ function CommandSeparator(_a) {
|
|
|
2889
3047
|
} = _b, props = __objRest(_b, [
|
|
2890
3048
|
"className"
|
|
2891
3049
|
]);
|
|
2892
|
-
return /* @__PURE__ */ (0,
|
|
3050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2893
3051
|
import_cmdk.Command.Separator,
|
|
2894
3052
|
__spreadValues({
|
|
2895
3053
|
"data-slot": "command-separator",
|
|
@@ -2903,7 +3061,7 @@ function CommandItem(_a) {
|
|
|
2903
3061
|
} = _b, props = __objRest(_b, [
|
|
2904
3062
|
"className"
|
|
2905
3063
|
]);
|
|
2906
|
-
return /* @__PURE__ */ (0,
|
|
3064
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2907
3065
|
import_cmdk.Command.Item,
|
|
2908
3066
|
__spreadValues({
|
|
2909
3067
|
"data-slot": "command-item",
|
|
@@ -2920,7 +3078,7 @@ function CommandShortcut(_a) {
|
|
|
2920
3078
|
} = _b, props = __objRest(_b, [
|
|
2921
3079
|
"className"
|
|
2922
3080
|
]);
|
|
2923
|
-
return /* @__PURE__ */ (0,
|
|
3081
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2924
3082
|
"span",
|
|
2925
3083
|
__spreadValues({
|
|
2926
3084
|
"data-slot": "command-shortcut",
|
|
@@ -2933,32 +3091,32 @@ function CommandShortcut(_a) {
|
|
|
2933
3091
|
}
|
|
2934
3092
|
|
|
2935
3093
|
// components/ui/context-menu.tsx
|
|
2936
|
-
var
|
|
3094
|
+
var import_lucide_react11 = require("lucide-react");
|
|
2937
3095
|
var import_radix_ui11 = require("radix-ui");
|
|
2938
|
-
var
|
|
3096
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2939
3097
|
function ContextMenu(_a) {
|
|
2940
3098
|
var props = __objRest(_a, []);
|
|
2941
|
-
return /* @__PURE__ */ (0,
|
|
3099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui11.ContextMenu.Root, __spreadValues({ "data-slot": "context-menu" }, props));
|
|
2942
3100
|
}
|
|
2943
3101
|
function ContextMenuTrigger(_a) {
|
|
2944
3102
|
var props = __objRest(_a, []);
|
|
2945
|
-
return /* @__PURE__ */ (0,
|
|
3103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui11.ContextMenu.Trigger, __spreadValues({ "data-slot": "context-menu-trigger" }, props));
|
|
2946
3104
|
}
|
|
2947
3105
|
function ContextMenuGroup(_a) {
|
|
2948
3106
|
var props = __objRest(_a, []);
|
|
2949
|
-
return /* @__PURE__ */ (0,
|
|
3107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui11.ContextMenu.Group, __spreadValues({ "data-slot": "context-menu-group" }, props));
|
|
2950
3108
|
}
|
|
2951
3109
|
function ContextMenuPortal(_a) {
|
|
2952
3110
|
var props = __objRest(_a, []);
|
|
2953
|
-
return /* @__PURE__ */ (0,
|
|
3111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui11.ContextMenu.Portal, __spreadValues({ "data-slot": "context-menu-portal" }, props));
|
|
2954
3112
|
}
|
|
2955
3113
|
function ContextMenuSub(_a) {
|
|
2956
3114
|
var props = __objRest(_a, []);
|
|
2957
|
-
return /* @__PURE__ */ (0,
|
|
3115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui11.ContextMenu.Sub, __spreadValues({ "data-slot": "context-menu-sub" }, props));
|
|
2958
3116
|
}
|
|
2959
3117
|
function ContextMenuRadioGroup(_a) {
|
|
2960
3118
|
var props = __objRest(_a, []);
|
|
2961
|
-
return /* @__PURE__ */ (0,
|
|
3119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2962
3120
|
import_radix_ui11.ContextMenu.RadioGroup,
|
|
2963
3121
|
__spreadValues({
|
|
2964
3122
|
"data-slot": "context-menu-radio-group"
|
|
@@ -2975,7 +3133,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
2975
3133
|
"inset",
|
|
2976
3134
|
"children"
|
|
2977
3135
|
]);
|
|
2978
|
-
return /* @__PURE__ */ (0,
|
|
3136
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
2979
3137
|
import_radix_ui11.ContextMenu.SubTrigger,
|
|
2980
3138
|
__spreadProps(__spreadValues({
|
|
2981
3139
|
"data-slot": "context-menu-sub-trigger",
|
|
@@ -2987,7 +3145,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
2987
3145
|
}, props), {
|
|
2988
3146
|
children: [
|
|
2989
3147
|
children,
|
|
2990
|
-
/* @__PURE__ */ (0,
|
|
3148
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react11.ChevronRightIcon, { className: "ml-auto" })
|
|
2991
3149
|
]
|
|
2992
3150
|
})
|
|
2993
3151
|
);
|
|
@@ -2998,7 +3156,7 @@ function ContextMenuSubContent(_a) {
|
|
|
2998
3156
|
} = _b, props = __objRest(_b, [
|
|
2999
3157
|
"className"
|
|
3000
3158
|
]);
|
|
3001
|
-
return /* @__PURE__ */ (0,
|
|
3159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3002
3160
|
import_radix_ui11.ContextMenu.SubContent,
|
|
3003
3161
|
__spreadValues({
|
|
3004
3162
|
"data-slot": "context-menu-sub-content",
|
|
@@ -3015,7 +3173,7 @@ function ContextMenuContent(_a) {
|
|
|
3015
3173
|
} = _b, props = __objRest(_b, [
|
|
3016
3174
|
"className"
|
|
3017
3175
|
]);
|
|
3018
|
-
return /* @__PURE__ */ (0,
|
|
3176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui11.ContextMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3019
3177
|
import_radix_ui11.ContextMenu.Content,
|
|
3020
3178
|
__spreadValues({
|
|
3021
3179
|
"data-slot": "context-menu-content",
|
|
@@ -3036,7 +3194,7 @@ function ContextMenuItem(_a) {
|
|
|
3036
3194
|
"inset",
|
|
3037
3195
|
"variant"
|
|
3038
3196
|
]);
|
|
3039
|
-
return /* @__PURE__ */ (0,
|
|
3197
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3040
3198
|
import_radix_ui11.ContextMenu.Item,
|
|
3041
3199
|
__spreadValues({
|
|
3042
3200
|
"data-slot": "context-menu-item",
|
|
@@ -3059,7 +3217,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
3059
3217
|
"children",
|
|
3060
3218
|
"checked"
|
|
3061
3219
|
]);
|
|
3062
|
-
return /* @__PURE__ */ (0,
|
|
3220
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
3063
3221
|
import_radix_ui11.ContextMenu.CheckboxItem,
|
|
3064
3222
|
__spreadProps(__spreadValues({
|
|
3065
3223
|
"data-slot": "context-menu-checkbox-item",
|
|
@@ -3070,7 +3228,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
3070
3228
|
checked
|
|
3071
3229
|
}, props), {
|
|
3072
3230
|
children: [
|
|
3073
|
-
/* @__PURE__ */ (0,
|
|
3231
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui11.ContextMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react11.CheckIcon, { className: "size-4" }) }) }),
|
|
3074
3232
|
children
|
|
3075
3233
|
]
|
|
3076
3234
|
})
|
|
@@ -3084,7 +3242,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
3084
3242
|
"className",
|
|
3085
3243
|
"children"
|
|
3086
3244
|
]);
|
|
3087
|
-
return /* @__PURE__ */ (0,
|
|
3245
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
3088
3246
|
import_radix_ui11.ContextMenu.RadioItem,
|
|
3089
3247
|
__spreadProps(__spreadValues({
|
|
3090
3248
|
"data-slot": "context-menu-radio-item",
|
|
@@ -3094,7 +3252,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
3094
3252
|
)
|
|
3095
3253
|
}, props), {
|
|
3096
3254
|
children: [
|
|
3097
|
-
/* @__PURE__ */ (0,
|
|
3255
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_radix_ui11.ContextMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react11.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
3098
3256
|
children
|
|
3099
3257
|
]
|
|
3100
3258
|
})
|
|
@@ -3108,7 +3266,7 @@ function ContextMenuLabel(_a) {
|
|
|
3108
3266
|
"className",
|
|
3109
3267
|
"inset"
|
|
3110
3268
|
]);
|
|
3111
|
-
return /* @__PURE__ */ (0,
|
|
3269
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3112
3270
|
import_radix_ui11.ContextMenu.Label,
|
|
3113
3271
|
__spreadValues({
|
|
3114
3272
|
"data-slot": "context-menu-label",
|
|
@@ -3126,7 +3284,7 @@ function ContextMenuSeparator(_a) {
|
|
|
3126
3284
|
} = _b, props = __objRest(_b, [
|
|
3127
3285
|
"className"
|
|
3128
3286
|
]);
|
|
3129
|
-
return /* @__PURE__ */ (0,
|
|
3287
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3130
3288
|
import_radix_ui11.ContextMenu.Separator,
|
|
3131
3289
|
__spreadValues({
|
|
3132
3290
|
"data-slot": "context-menu-separator",
|
|
@@ -3140,7 +3298,7 @@ function ContextMenuShortcut(_a) {
|
|
|
3140
3298
|
} = _b, props = __objRest(_b, [
|
|
3141
3299
|
"className"
|
|
3142
3300
|
]);
|
|
3143
|
-
return /* @__PURE__ */ (0,
|
|
3301
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3144
3302
|
"span",
|
|
3145
3303
|
__spreadValues({
|
|
3146
3304
|
"data-slot": "context-menu-shortcut",
|
|
@@ -3154,34 +3312,34 @@ function ContextMenuShortcut(_a) {
|
|
|
3154
3312
|
|
|
3155
3313
|
// components/ui/direction.tsx
|
|
3156
3314
|
var import_radix_ui12 = require("radix-ui");
|
|
3157
|
-
var
|
|
3315
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
3158
3316
|
function DirectionProvider({
|
|
3159
3317
|
dir,
|
|
3160
3318
|
direction,
|
|
3161
3319
|
children
|
|
3162
3320
|
}) {
|
|
3163
|
-
return /* @__PURE__ */ (0,
|
|
3321
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_radix_ui12.Direction.DirectionProvider, { dir: direction != null ? direction : dir, children });
|
|
3164
3322
|
}
|
|
3165
3323
|
var useDirection = import_radix_ui12.Direction.useDirection;
|
|
3166
3324
|
|
|
3167
3325
|
// components/ui/drawer.tsx
|
|
3168
3326
|
var import_vaul = require("vaul");
|
|
3169
|
-
var
|
|
3327
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
3170
3328
|
function Drawer(_a) {
|
|
3171
3329
|
var props = __objRest(_a, []);
|
|
3172
|
-
return /* @__PURE__ */ (0,
|
|
3330
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_vaul.Drawer.Root, __spreadValues({ "data-slot": "drawer" }, props));
|
|
3173
3331
|
}
|
|
3174
3332
|
function DrawerTrigger(_a) {
|
|
3175
3333
|
var props = __objRest(_a, []);
|
|
3176
|
-
return /* @__PURE__ */ (0,
|
|
3334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_vaul.Drawer.Trigger, __spreadValues({ "data-slot": "drawer-trigger" }, props));
|
|
3177
3335
|
}
|
|
3178
3336
|
function DrawerPortal(_a) {
|
|
3179
3337
|
var props = __objRest(_a, []);
|
|
3180
|
-
return /* @__PURE__ */ (0,
|
|
3338
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_vaul.Drawer.Portal, __spreadValues({ "data-slot": "drawer-portal" }, props));
|
|
3181
3339
|
}
|
|
3182
3340
|
function DrawerClose(_a) {
|
|
3183
3341
|
var props = __objRest(_a, []);
|
|
3184
|
-
return /* @__PURE__ */ (0,
|
|
3342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_vaul.Drawer.Close, __spreadValues({ "data-slot": "drawer-close" }, props));
|
|
3185
3343
|
}
|
|
3186
3344
|
function DrawerOverlay(_a) {
|
|
3187
3345
|
var _b = _a, {
|
|
@@ -3189,7 +3347,7 @@ function DrawerOverlay(_a) {
|
|
|
3189
3347
|
} = _b, props = __objRest(_b, [
|
|
3190
3348
|
"className"
|
|
3191
3349
|
]);
|
|
3192
|
-
return /* @__PURE__ */ (0,
|
|
3350
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3193
3351
|
import_vaul.Drawer.Overlay,
|
|
3194
3352
|
__spreadValues({
|
|
3195
3353
|
"data-slot": "drawer-overlay",
|
|
@@ -3208,9 +3366,9 @@ function DrawerContent(_a) {
|
|
|
3208
3366
|
"className",
|
|
3209
3367
|
"children"
|
|
3210
3368
|
]);
|
|
3211
|
-
return /* @__PURE__ */ (0,
|
|
3212
|
-
/* @__PURE__ */ (0,
|
|
3213
|
-
/* @__PURE__ */ (0,
|
|
3369
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
3370
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DrawerOverlay, {}),
|
|
3371
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
3214
3372
|
import_vaul.Drawer.Content,
|
|
3215
3373
|
__spreadProps(__spreadValues({
|
|
3216
3374
|
"data-slot": "drawer-content",
|
|
@@ -3224,7 +3382,7 @@ function DrawerContent(_a) {
|
|
|
3224
3382
|
)
|
|
3225
3383
|
}, props), {
|
|
3226
3384
|
children: [
|
|
3227
|
-
/* @__PURE__ */ (0,
|
|
3385
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-subtle group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
3228
3386
|
children
|
|
3229
3387
|
]
|
|
3230
3388
|
})
|
|
@@ -3233,7 +3391,7 @@ function DrawerContent(_a) {
|
|
|
3233
3391
|
}
|
|
3234
3392
|
function DrawerHeader(_a) {
|
|
3235
3393
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3236
|
-
return /* @__PURE__ */ (0,
|
|
3394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3237
3395
|
"div",
|
|
3238
3396
|
__spreadValues({
|
|
3239
3397
|
"data-slot": "drawer-header",
|
|
@@ -3246,7 +3404,7 @@ function DrawerHeader(_a) {
|
|
|
3246
3404
|
}
|
|
3247
3405
|
function DrawerFooter(_a) {
|
|
3248
3406
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3249
|
-
return /* @__PURE__ */ (0,
|
|
3407
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3250
3408
|
"div",
|
|
3251
3409
|
__spreadValues({
|
|
3252
3410
|
"data-slot": "drawer-footer",
|
|
@@ -3260,7 +3418,7 @@ function DrawerTitle(_a) {
|
|
|
3260
3418
|
} = _b, props = __objRest(_b, [
|
|
3261
3419
|
"className"
|
|
3262
3420
|
]);
|
|
3263
|
-
return /* @__PURE__ */ (0,
|
|
3421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3264
3422
|
import_vaul.Drawer.Title,
|
|
3265
3423
|
__spreadValues({
|
|
3266
3424
|
"data-slot": "drawer-title",
|
|
@@ -3274,7 +3432,7 @@ function DrawerDescription(_a) {
|
|
|
3274
3432
|
} = _b, props = __objRest(_b, [
|
|
3275
3433
|
"className"
|
|
3276
3434
|
]);
|
|
3277
|
-
return /* @__PURE__ */ (0,
|
|
3435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3278
3436
|
import_vaul.Drawer.Description,
|
|
3279
3437
|
__spreadValues({
|
|
3280
3438
|
"data-slot": "drawer-description",
|
|
@@ -3284,20 +3442,20 @@ function DrawerDescription(_a) {
|
|
|
3284
3442
|
}
|
|
3285
3443
|
|
|
3286
3444
|
// components/ui/dropdown-menu.tsx
|
|
3287
|
-
var
|
|
3445
|
+
var import_lucide_react12 = require("lucide-react");
|
|
3288
3446
|
var import_radix_ui13 = require("radix-ui");
|
|
3289
|
-
var
|
|
3447
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
3290
3448
|
function DropdownMenu(_a) {
|
|
3291
3449
|
var props = __objRest(_a, []);
|
|
3292
|
-
return /* @__PURE__ */ (0,
|
|
3450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_radix_ui13.DropdownMenu.Root, __spreadValues({ "data-slot": "dropdown-menu" }, props));
|
|
3293
3451
|
}
|
|
3294
3452
|
function DropdownMenuPortal(_a) {
|
|
3295
3453
|
var props = __objRest(_a, []);
|
|
3296
|
-
return /* @__PURE__ */ (0,
|
|
3454
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_radix_ui13.DropdownMenu.Portal, __spreadValues({ "data-slot": "dropdown-menu-portal" }, props));
|
|
3297
3455
|
}
|
|
3298
3456
|
function DropdownMenuTrigger(_a) {
|
|
3299
3457
|
var props = __objRest(_a, []);
|
|
3300
|
-
return /* @__PURE__ */ (0,
|
|
3458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3301
3459
|
import_radix_ui13.DropdownMenu.Trigger,
|
|
3302
3460
|
__spreadValues({
|
|
3303
3461
|
"data-slot": "dropdown-menu-trigger"
|
|
@@ -3312,7 +3470,7 @@ function DropdownMenuContent(_a) {
|
|
|
3312
3470
|
"className",
|
|
3313
3471
|
"sideOffset"
|
|
3314
3472
|
]);
|
|
3315
|
-
return /* @__PURE__ */ (0,
|
|
3473
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_radix_ui13.DropdownMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3316
3474
|
import_radix_ui13.DropdownMenu.Content,
|
|
3317
3475
|
__spreadValues({
|
|
3318
3476
|
"data-slot": "dropdown-menu-content",
|
|
@@ -3326,7 +3484,7 @@ function DropdownMenuContent(_a) {
|
|
|
3326
3484
|
}
|
|
3327
3485
|
function DropdownMenuGroup(_a) {
|
|
3328
3486
|
var props = __objRest(_a, []);
|
|
3329
|
-
return /* @__PURE__ */ (0,
|
|
3487
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_radix_ui13.DropdownMenu.Group, __spreadValues({ "data-slot": "dropdown-menu-group" }, props));
|
|
3330
3488
|
}
|
|
3331
3489
|
function DropdownMenuItem(_a) {
|
|
3332
3490
|
var _b = _a, {
|
|
@@ -3338,7 +3496,7 @@ function DropdownMenuItem(_a) {
|
|
|
3338
3496
|
"inset",
|
|
3339
3497
|
"variant"
|
|
3340
3498
|
]);
|
|
3341
|
-
return /* @__PURE__ */ (0,
|
|
3499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3342
3500
|
import_radix_ui13.DropdownMenu.Item,
|
|
3343
3501
|
__spreadValues({
|
|
3344
3502
|
"data-slot": "dropdown-menu-item",
|
|
@@ -3361,7 +3519,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3361
3519
|
"children",
|
|
3362
3520
|
"checked"
|
|
3363
3521
|
]);
|
|
3364
|
-
return /* @__PURE__ */ (0,
|
|
3522
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
3365
3523
|
import_radix_ui13.DropdownMenu.CheckboxItem,
|
|
3366
3524
|
__spreadProps(__spreadValues({
|
|
3367
3525
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
@@ -3372,7 +3530,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3372
3530
|
checked
|
|
3373
3531
|
}, props), {
|
|
3374
3532
|
children: [
|
|
3375
|
-
/* @__PURE__ */ (0,
|
|
3533
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_radix_ui13.DropdownMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react12.CheckIcon, { className: "size-4" }) }) }),
|
|
3376
3534
|
children
|
|
3377
3535
|
]
|
|
3378
3536
|
})
|
|
@@ -3380,7 +3538,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3380
3538
|
}
|
|
3381
3539
|
function DropdownMenuRadioGroup(_a) {
|
|
3382
3540
|
var props = __objRest(_a, []);
|
|
3383
|
-
return /* @__PURE__ */ (0,
|
|
3541
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3384
3542
|
import_radix_ui13.DropdownMenu.RadioGroup,
|
|
3385
3543
|
__spreadValues({
|
|
3386
3544
|
"data-slot": "dropdown-menu-radio-group"
|
|
@@ -3395,7 +3553,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
3395
3553
|
"className",
|
|
3396
3554
|
"children"
|
|
3397
3555
|
]);
|
|
3398
|
-
return /* @__PURE__ */ (0,
|
|
3556
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
3399
3557
|
import_radix_ui13.DropdownMenu.RadioItem,
|
|
3400
3558
|
__spreadProps(__spreadValues({
|
|
3401
3559
|
"data-slot": "dropdown-menu-radio-item",
|
|
@@ -3405,7 +3563,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
3405
3563
|
)
|
|
3406
3564
|
}, props), {
|
|
3407
3565
|
children: [
|
|
3408
|
-
/* @__PURE__ */ (0,
|
|
3566
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_radix_ui13.DropdownMenu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react12.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
3409
3567
|
children
|
|
3410
3568
|
]
|
|
3411
3569
|
})
|
|
@@ -3419,7 +3577,7 @@ function DropdownMenuLabel(_a) {
|
|
|
3419
3577
|
"className",
|
|
3420
3578
|
"inset"
|
|
3421
3579
|
]);
|
|
3422
|
-
return /* @__PURE__ */ (0,
|
|
3580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3423
3581
|
import_radix_ui13.DropdownMenu.Label,
|
|
3424
3582
|
__spreadValues({
|
|
3425
3583
|
"data-slot": "dropdown-menu-label",
|
|
@@ -3437,7 +3595,7 @@ function DropdownMenuSeparator(_a) {
|
|
|
3437
3595
|
} = _b, props = __objRest(_b, [
|
|
3438
3596
|
"className"
|
|
3439
3597
|
]);
|
|
3440
|
-
return /* @__PURE__ */ (0,
|
|
3598
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3441
3599
|
import_radix_ui13.DropdownMenu.Separator,
|
|
3442
3600
|
__spreadValues({
|
|
3443
3601
|
"data-slot": "dropdown-menu-separator",
|
|
@@ -3451,7 +3609,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
3451
3609
|
} = _b, props = __objRest(_b, [
|
|
3452
3610
|
"className"
|
|
3453
3611
|
]);
|
|
3454
|
-
return /* @__PURE__ */ (0,
|
|
3612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3455
3613
|
"span",
|
|
3456
3614
|
__spreadValues({
|
|
3457
3615
|
"data-slot": "dropdown-menu-shortcut",
|
|
@@ -3464,7 +3622,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
3464
3622
|
}
|
|
3465
3623
|
function DropdownMenuSub(_a) {
|
|
3466
3624
|
var props = __objRest(_a, []);
|
|
3467
|
-
return /* @__PURE__ */ (0,
|
|
3625
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_radix_ui13.DropdownMenu.Sub, __spreadValues({ "data-slot": "dropdown-menu-sub" }, props));
|
|
3468
3626
|
}
|
|
3469
3627
|
function DropdownMenuSubTrigger(_a) {
|
|
3470
3628
|
var _b = _a, {
|
|
@@ -3476,7 +3634,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
3476
3634
|
"inset",
|
|
3477
3635
|
"children"
|
|
3478
3636
|
]);
|
|
3479
|
-
return /* @__PURE__ */ (0,
|
|
3637
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
3480
3638
|
import_radix_ui13.DropdownMenu.SubTrigger,
|
|
3481
3639
|
__spreadProps(__spreadValues({
|
|
3482
3640
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
@@ -3488,7 +3646,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
3488
3646
|
}, props), {
|
|
3489
3647
|
children: [
|
|
3490
3648
|
children,
|
|
3491
|
-
/* @__PURE__ */ (0,
|
|
3649
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react12.ChevronRightIcon, { className: "ml-auto size-4" })
|
|
3492
3650
|
]
|
|
3493
3651
|
})
|
|
3494
3652
|
);
|
|
@@ -3499,7 +3657,7 @@ function DropdownMenuSubContent(_a) {
|
|
|
3499
3657
|
} = _b, props = __objRest(_b, [
|
|
3500
3658
|
"className"
|
|
3501
3659
|
]);
|
|
3502
|
-
return /* @__PURE__ */ (0,
|
|
3660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3503
3661
|
import_radix_ui13.DropdownMenu.SubContent,
|
|
3504
3662
|
__spreadValues({
|
|
3505
3663
|
"data-slot": "dropdown-menu-sub-content",
|
|
@@ -3513,10 +3671,10 @@ function DropdownMenuSubContent(_a) {
|
|
|
3513
3671
|
|
|
3514
3672
|
// components/ui/empty.tsx
|
|
3515
3673
|
var import_class_variance_authority6 = require("class-variance-authority");
|
|
3516
|
-
var
|
|
3674
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3517
3675
|
function Empty(_a) {
|
|
3518
3676
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3519
|
-
return /* @__PURE__ */ (0,
|
|
3677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3520
3678
|
"div",
|
|
3521
3679
|
__spreadValues({
|
|
3522
3680
|
"data-slot": "empty",
|
|
@@ -3529,7 +3687,7 @@ function Empty(_a) {
|
|
|
3529
3687
|
}
|
|
3530
3688
|
function EmptyHeader(_a) {
|
|
3531
3689
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3532
|
-
return /* @__PURE__ */ (0,
|
|
3690
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3533
3691
|
"div",
|
|
3534
3692
|
__spreadValues({
|
|
3535
3693
|
"data-slot": "empty-header",
|
|
@@ -3562,7 +3720,7 @@ function EmptyMedia(_a) {
|
|
|
3562
3720
|
"className",
|
|
3563
3721
|
"variant"
|
|
3564
3722
|
]);
|
|
3565
|
-
return /* @__PURE__ */ (0,
|
|
3723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3566
3724
|
"div",
|
|
3567
3725
|
__spreadValues({
|
|
3568
3726
|
"data-slot": "empty-icon",
|
|
@@ -3573,7 +3731,7 @@ function EmptyMedia(_a) {
|
|
|
3573
3731
|
}
|
|
3574
3732
|
function EmptyTitle(_a) {
|
|
3575
3733
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3576
|
-
return /* @__PURE__ */ (0,
|
|
3734
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3577
3735
|
"div",
|
|
3578
3736
|
__spreadValues({
|
|
3579
3737
|
"data-slot": "empty-title",
|
|
@@ -3583,7 +3741,7 @@ function EmptyTitle(_a) {
|
|
|
3583
3741
|
}
|
|
3584
3742
|
function EmptyDescription(_a) {
|
|
3585
3743
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3586
|
-
return /* @__PURE__ */ (0,
|
|
3744
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3587
3745
|
"div",
|
|
3588
3746
|
__spreadValues({
|
|
3589
3747
|
"data-slot": "empty-description",
|
|
@@ -3596,7 +3754,7 @@ function EmptyDescription(_a) {
|
|
|
3596
3754
|
}
|
|
3597
3755
|
function EmptyContent(_a) {
|
|
3598
3756
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3599
|
-
return /* @__PURE__ */ (0,
|
|
3757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3600
3758
|
"div",
|
|
3601
3759
|
__spreadValues({
|
|
3602
3760
|
"data-slot": "empty-content",
|
|
@@ -3614,14 +3772,14 @@ var import_class_variance_authority7 = require("class-variance-authority");
|
|
|
3614
3772
|
|
|
3615
3773
|
// components/ui/label.tsx
|
|
3616
3774
|
var import_radix_ui14 = require("radix-ui");
|
|
3617
|
-
var
|
|
3775
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
3618
3776
|
function Label(_a) {
|
|
3619
3777
|
var _b = _a, {
|
|
3620
3778
|
className
|
|
3621
3779
|
} = _b, props = __objRest(_b, [
|
|
3622
3780
|
"className"
|
|
3623
3781
|
]);
|
|
3624
|
-
return /* @__PURE__ */ (0,
|
|
3782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3625
3783
|
import_radix_ui14.Label.Root,
|
|
3626
3784
|
__spreadValues({
|
|
3627
3785
|
"data-slot": "label",
|
|
@@ -3635,7 +3793,7 @@ function Label(_a) {
|
|
|
3635
3793
|
|
|
3636
3794
|
// components/ui/separator.tsx
|
|
3637
3795
|
var import_radix_ui15 = require("radix-ui");
|
|
3638
|
-
var
|
|
3796
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3639
3797
|
function Separator(_a) {
|
|
3640
3798
|
var _b = _a, {
|
|
3641
3799
|
className,
|
|
@@ -3646,7 +3804,7 @@ function Separator(_a) {
|
|
|
3646
3804
|
"orientation",
|
|
3647
3805
|
"decorative"
|
|
3648
3806
|
]);
|
|
3649
|
-
return /* @__PURE__ */ (0,
|
|
3807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3650
3808
|
import_radix_ui15.Separator.Root,
|
|
3651
3809
|
__spreadValues({
|
|
3652
3810
|
"data-slot": "separator",
|
|
@@ -3661,10 +3819,10 @@ function Separator(_a) {
|
|
|
3661
3819
|
}
|
|
3662
3820
|
|
|
3663
3821
|
// components/ui/field.tsx
|
|
3664
|
-
var
|
|
3822
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3665
3823
|
function FieldSet(_a) {
|
|
3666
3824
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3667
|
-
return /* @__PURE__ */ (0,
|
|
3825
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3668
3826
|
"fieldset",
|
|
3669
3827
|
__spreadValues({
|
|
3670
3828
|
"data-slot": "field-set",
|
|
@@ -3684,7 +3842,7 @@ function FieldLegend(_a) {
|
|
|
3684
3842
|
"className",
|
|
3685
3843
|
"variant"
|
|
3686
3844
|
]);
|
|
3687
|
-
return /* @__PURE__ */ (0,
|
|
3845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3688
3846
|
"legend",
|
|
3689
3847
|
__spreadValues({
|
|
3690
3848
|
"data-slot": "field-legend",
|
|
@@ -3700,7 +3858,7 @@ function FieldLegend(_a) {
|
|
|
3700
3858
|
}
|
|
3701
3859
|
function FieldGroup(_a) {
|
|
3702
3860
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3703
|
-
return /* @__PURE__ */ (0,
|
|
3861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3704
3862
|
"div",
|
|
3705
3863
|
__spreadValues({
|
|
3706
3864
|
"data-slot": "field-group",
|
|
@@ -3742,7 +3900,7 @@ function Field(_a) {
|
|
|
3742
3900
|
"className",
|
|
3743
3901
|
"orientation"
|
|
3744
3902
|
]);
|
|
3745
|
-
return /* @__PURE__ */ (0,
|
|
3903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3746
3904
|
"div",
|
|
3747
3905
|
__spreadValues({
|
|
3748
3906
|
role: "group",
|
|
@@ -3754,7 +3912,7 @@ function Field(_a) {
|
|
|
3754
3912
|
}
|
|
3755
3913
|
function FieldContent(_a) {
|
|
3756
3914
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3757
|
-
return /* @__PURE__ */ (0,
|
|
3915
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3758
3916
|
"div",
|
|
3759
3917
|
__spreadValues({
|
|
3760
3918
|
"data-slot": "field-content",
|
|
@@ -3771,7 +3929,7 @@ function FieldLabel(_a) {
|
|
|
3771
3929
|
} = _b, props = __objRest(_b, [
|
|
3772
3930
|
"className"
|
|
3773
3931
|
]);
|
|
3774
|
-
return /* @__PURE__ */ (0,
|
|
3932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3775
3933
|
Label,
|
|
3776
3934
|
__spreadValues({
|
|
3777
3935
|
"data-slot": "field-label",
|
|
@@ -3786,7 +3944,7 @@ function FieldLabel(_a) {
|
|
|
3786
3944
|
}
|
|
3787
3945
|
function FieldTitle(_a) {
|
|
3788
3946
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3789
|
-
return /* @__PURE__ */ (0,
|
|
3947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3790
3948
|
"div",
|
|
3791
3949
|
__spreadValues({
|
|
3792
3950
|
"data-slot": "field-label",
|
|
@@ -3799,7 +3957,7 @@ function FieldTitle(_a) {
|
|
|
3799
3957
|
}
|
|
3800
3958
|
function FieldDescription(_a) {
|
|
3801
3959
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3802
|
-
return /* @__PURE__ */ (0,
|
|
3960
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3803
3961
|
"p",
|
|
3804
3962
|
__spreadValues({
|
|
3805
3963
|
"data-slot": "field-description",
|
|
@@ -3820,7 +3978,7 @@ function FieldSeparator(_a) {
|
|
|
3820
3978
|
"children",
|
|
3821
3979
|
"className"
|
|
3822
3980
|
]);
|
|
3823
|
-
return /* @__PURE__ */ (0,
|
|
3981
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
3824
3982
|
"div",
|
|
3825
3983
|
__spreadProps(__spreadValues({
|
|
3826
3984
|
"data-slot": "field-separator",
|
|
@@ -3831,8 +3989,8 @@ function FieldSeparator(_a) {
|
|
|
3831
3989
|
)
|
|
3832
3990
|
}, props), {
|
|
3833
3991
|
children: [
|
|
3834
|
-
/* @__PURE__ */ (0,
|
|
3835
|
-
children && /* @__PURE__ */ (0,
|
|
3992
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Separator, { className: "absolute inset-0 top-1/2" }),
|
|
3993
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3836
3994
|
"span",
|
|
3837
3995
|
{
|
|
3838
3996
|
className: "relative mx-auto block w-fit bg-prominent px-2 text-on-subtle",
|
|
@@ -3868,14 +4026,14 @@ function FieldError(_a) {
|
|
|
3868
4026
|
if ((uniqueErrors == null ? void 0 : uniqueErrors.length) == 1) {
|
|
3869
4027
|
return (_a2 = uniqueErrors[0]) == null ? void 0 : _a2.message;
|
|
3870
4028
|
}
|
|
3871
|
-
return /* @__PURE__ */ (0,
|
|
3872
|
-
(error, index) => (error == null ? void 0 : error.message) && /* @__PURE__ */ (0,
|
|
4029
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
|
|
4030
|
+
(error, index) => (error == null ? void 0 : error.message) && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("li", { children: error.message }, index)
|
|
3873
4031
|
) });
|
|
3874
4032
|
}, [children, errors]);
|
|
3875
4033
|
if (!content) {
|
|
3876
4034
|
return null;
|
|
3877
4035
|
}
|
|
3878
|
-
return /* @__PURE__ */ (0,
|
|
4036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3879
4037
|
"div",
|
|
3880
4038
|
__spreadProps(__spreadValues({
|
|
3881
4039
|
role: "alert",
|
|
@@ -3888,21 +4046,21 @@ function FieldError(_a) {
|
|
|
3888
4046
|
}
|
|
3889
4047
|
|
|
3890
4048
|
// components/ui/form.tsx
|
|
3891
|
-
var
|
|
4049
|
+
var React8 = __toESM(require("react"), 1);
|
|
3892
4050
|
var import_radix_ui16 = require("radix-ui");
|
|
3893
4051
|
var import_react_hook_form = require("react-hook-form");
|
|
3894
|
-
var
|
|
4052
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3895
4053
|
var Form = import_react_hook_form.FormProvider;
|
|
3896
|
-
var FormFieldContext =
|
|
4054
|
+
var FormFieldContext = React8.createContext(
|
|
3897
4055
|
{}
|
|
3898
4056
|
);
|
|
3899
4057
|
var FormField = (_a) => {
|
|
3900
4058
|
var props = __objRest(_a, []);
|
|
3901
|
-
return /* @__PURE__ */ (0,
|
|
4059
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_hook_form.Controller, __spreadValues({}, props)) });
|
|
3902
4060
|
};
|
|
3903
4061
|
var useFormField = () => {
|
|
3904
|
-
const fieldContext =
|
|
3905
|
-
const itemContext =
|
|
4062
|
+
const fieldContext = React8.useContext(FormFieldContext);
|
|
4063
|
+
const itemContext = React8.useContext(FormItemContext);
|
|
3906
4064
|
const { getFieldState } = (0, import_react_hook_form.useFormContext)();
|
|
3907
4065
|
const formState = (0, import_react_hook_form.useFormState)({ name: fieldContext.name });
|
|
3908
4066
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
@@ -3918,13 +4076,13 @@ var useFormField = () => {
|
|
|
3918
4076
|
formMessageId: `${id}-form-item-message`
|
|
3919
4077
|
}, fieldState);
|
|
3920
4078
|
};
|
|
3921
|
-
var FormItemContext =
|
|
4079
|
+
var FormItemContext = React8.createContext(
|
|
3922
4080
|
{}
|
|
3923
4081
|
);
|
|
3924
4082
|
function FormItem(_a) {
|
|
3925
4083
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3926
|
-
const id =
|
|
3927
|
-
return /* @__PURE__ */ (0,
|
|
4084
|
+
const id = React8.useId();
|
|
4085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3928
4086
|
"div",
|
|
3929
4087
|
__spreadValues({
|
|
3930
4088
|
"data-slot": "form-item",
|
|
@@ -3939,7 +4097,7 @@ function FormLabel(_a) {
|
|
|
3939
4097
|
"className"
|
|
3940
4098
|
]);
|
|
3941
4099
|
const { error, formItemId } = useFormField();
|
|
3942
|
-
return /* @__PURE__ */ (0,
|
|
4100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3943
4101
|
Label,
|
|
3944
4102
|
__spreadValues({
|
|
3945
4103
|
"data-slot": "form-label",
|
|
@@ -3952,7 +4110,7 @@ function FormLabel(_a) {
|
|
|
3952
4110
|
function FormControl(_a) {
|
|
3953
4111
|
var props = __objRest(_a, []);
|
|
3954
4112
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
3955
|
-
return /* @__PURE__ */ (0,
|
|
4113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3956
4114
|
import_radix_ui16.Slot.Root,
|
|
3957
4115
|
__spreadValues({
|
|
3958
4116
|
"data-slot": "form-control",
|
|
@@ -3965,7 +4123,7 @@ function FormControl(_a) {
|
|
|
3965
4123
|
function FormDescription(_a) {
|
|
3966
4124
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3967
4125
|
const { formDescriptionId } = useFormField();
|
|
3968
|
-
return /* @__PURE__ */ (0,
|
|
4126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3969
4127
|
"p",
|
|
3970
4128
|
__spreadValues({
|
|
3971
4129
|
"data-slot": "form-description",
|
|
@@ -3982,7 +4140,7 @@ function FormMessage(_a) {
|
|
|
3982
4140
|
if (!body) {
|
|
3983
4141
|
return null;
|
|
3984
4142
|
}
|
|
3985
|
-
return /* @__PURE__ */ (0,
|
|
4143
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3986
4144
|
"p",
|
|
3987
4145
|
__spreadProps(__spreadValues({
|
|
3988
4146
|
"data-slot": "form-message",
|
|
@@ -3996,14 +4154,14 @@ function FormMessage(_a) {
|
|
|
3996
4154
|
|
|
3997
4155
|
// components/ui/hover-card.tsx
|
|
3998
4156
|
var import_radix_ui17 = require("radix-ui");
|
|
3999
|
-
var
|
|
4157
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
4000
4158
|
function HoverCard(_a) {
|
|
4001
4159
|
var props = __objRest(_a, []);
|
|
4002
|
-
return /* @__PURE__ */ (0,
|
|
4160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_radix_ui17.HoverCard.Root, __spreadValues({ "data-slot": "hover-card" }, props));
|
|
4003
4161
|
}
|
|
4004
4162
|
function HoverCardTrigger(_a) {
|
|
4005
4163
|
var props = __objRest(_a, []);
|
|
4006
|
-
return /* @__PURE__ */ (0,
|
|
4164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_radix_ui17.HoverCard.Trigger, __spreadValues({ "data-slot": "hover-card-trigger" }, props));
|
|
4007
4165
|
}
|
|
4008
4166
|
function HoverCardContent(_a) {
|
|
4009
4167
|
var _b = _a, {
|
|
@@ -4015,7 +4173,7 @@ function HoverCardContent(_a) {
|
|
|
4015
4173
|
"align",
|
|
4016
4174
|
"sideOffset"
|
|
4017
4175
|
]);
|
|
4018
|
-
return /* @__PURE__ */ (0,
|
|
4176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_radix_ui17.HoverCard.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4019
4177
|
import_radix_ui17.HoverCard.Content,
|
|
4020
4178
|
__spreadValues({
|
|
4021
4179
|
"data-slot": "hover-card-content",
|
|
@@ -4030,10 +4188,10 @@ function HoverCardContent(_a) {
|
|
|
4030
4188
|
}
|
|
4031
4189
|
|
|
4032
4190
|
// components/ui/input-otp.tsx
|
|
4033
|
-
var
|
|
4191
|
+
var React9 = __toESM(require("react"), 1);
|
|
4034
4192
|
var import_input_otp = require("input-otp");
|
|
4035
|
-
var
|
|
4036
|
-
var
|
|
4193
|
+
var import_lucide_react13 = require("lucide-react");
|
|
4194
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
4037
4195
|
function InputOTP(_a) {
|
|
4038
4196
|
var _b = _a, {
|
|
4039
4197
|
className,
|
|
@@ -4042,7 +4200,7 @@ function InputOTP(_a) {
|
|
|
4042
4200
|
"className",
|
|
4043
4201
|
"containerClassName"
|
|
4044
4202
|
]);
|
|
4045
|
-
return /* @__PURE__ */ (0,
|
|
4203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
4046
4204
|
import_input_otp.OTPInput,
|
|
4047
4205
|
__spreadValues({
|
|
4048
4206
|
"data-slot": "input-otp",
|
|
@@ -4056,7 +4214,7 @@ function InputOTP(_a) {
|
|
|
4056
4214
|
}
|
|
4057
4215
|
function InputOTPGroup(_a) {
|
|
4058
4216
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4059
|
-
return /* @__PURE__ */ (0,
|
|
4217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
4060
4218
|
"div",
|
|
4061
4219
|
__spreadValues({
|
|
4062
4220
|
"data-slot": "input-otp-group",
|
|
@@ -4073,9 +4231,9 @@ function InputOTPSlot(_a) {
|
|
|
4073
4231
|
"className"
|
|
4074
4232
|
]);
|
|
4075
4233
|
var _a2;
|
|
4076
|
-
const inputOTPContext =
|
|
4234
|
+
const inputOTPContext = React9.useContext(import_input_otp.OTPInputContext);
|
|
4077
4235
|
const { char, hasFakeCaret, isActive } = (_a2 = inputOTPContext == null ? void 0 : inputOTPContext.slots[index]) != null ? _a2 : {};
|
|
4078
|
-
return /* @__PURE__ */ (0,
|
|
4236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
4079
4237
|
"div",
|
|
4080
4238
|
__spreadProps(__spreadValues({
|
|
4081
4239
|
"data-slot": "input-otp-slot",
|
|
@@ -4087,23 +4245,23 @@ function InputOTPSlot(_a) {
|
|
|
4087
4245
|
}, props), {
|
|
4088
4246
|
children: [
|
|
4089
4247
|
char,
|
|
4090
|
-
hasFakeCaret && /* @__PURE__ */ (0,
|
|
4248
|
+
hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
4091
4249
|
]
|
|
4092
4250
|
})
|
|
4093
4251
|
);
|
|
4094
4252
|
}
|
|
4095
4253
|
function InputOTPSeparator(_a) {
|
|
4096
4254
|
var props = __objRest(_a, []);
|
|
4097
|
-
return /* @__PURE__ */ (0,
|
|
4255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", __spreadProps(__spreadValues({ "data-slot": "input-otp-separator", role: "separator" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react13.MinusIcon, {}) }));
|
|
4098
4256
|
}
|
|
4099
4257
|
|
|
4100
4258
|
// components/ui/item.tsx
|
|
4101
4259
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
4102
4260
|
var import_radix_ui18 = require("radix-ui");
|
|
4103
|
-
var
|
|
4261
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
4104
4262
|
function ItemGroup(_a) {
|
|
4105
4263
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4106
|
-
return /* @__PURE__ */ (0,
|
|
4264
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4107
4265
|
"div",
|
|
4108
4266
|
__spreadValues({
|
|
4109
4267
|
role: "list",
|
|
@@ -4118,7 +4276,7 @@ function ItemSeparator(_a) {
|
|
|
4118
4276
|
} = _b, props = __objRest(_b, [
|
|
4119
4277
|
"className"
|
|
4120
4278
|
]);
|
|
4121
|
-
return /* @__PURE__ */ (0,
|
|
4279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4122
4280
|
Separator,
|
|
4123
4281
|
__spreadValues({
|
|
4124
4282
|
"data-slot": "item-separator",
|
|
@@ -4160,7 +4318,7 @@ function Item(_a) {
|
|
|
4160
4318
|
"asChild"
|
|
4161
4319
|
]);
|
|
4162
4320
|
const Comp = asChild ? import_radix_ui18.Slot.Root : "div";
|
|
4163
|
-
return /* @__PURE__ */ (0,
|
|
4321
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4164
4322
|
Comp,
|
|
4165
4323
|
__spreadValues({
|
|
4166
4324
|
"data-slot": "item",
|
|
@@ -4193,7 +4351,7 @@ function ItemMedia(_a) {
|
|
|
4193
4351
|
"className",
|
|
4194
4352
|
"variant"
|
|
4195
4353
|
]);
|
|
4196
|
-
return /* @__PURE__ */ (0,
|
|
4354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4197
4355
|
"div",
|
|
4198
4356
|
__spreadValues({
|
|
4199
4357
|
"data-slot": "item-media",
|
|
@@ -4204,7 +4362,7 @@ function ItemMedia(_a) {
|
|
|
4204
4362
|
}
|
|
4205
4363
|
function ItemContent(_a) {
|
|
4206
4364
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4207
|
-
return /* @__PURE__ */ (0,
|
|
4365
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4208
4366
|
"div",
|
|
4209
4367
|
__spreadValues({
|
|
4210
4368
|
"data-slot": "item-content",
|
|
@@ -4217,7 +4375,7 @@ function ItemContent(_a) {
|
|
|
4217
4375
|
}
|
|
4218
4376
|
function ItemTitle(_a) {
|
|
4219
4377
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4220
|
-
return /* @__PURE__ */ (0,
|
|
4378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4221
4379
|
"div",
|
|
4222
4380
|
__spreadValues({
|
|
4223
4381
|
"data-slot": "item-title",
|
|
@@ -4230,7 +4388,7 @@ function ItemTitle(_a) {
|
|
|
4230
4388
|
}
|
|
4231
4389
|
function ItemDescription(_a) {
|
|
4232
4390
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4233
|
-
return /* @__PURE__ */ (0,
|
|
4391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4234
4392
|
"p",
|
|
4235
4393
|
__spreadValues({
|
|
4236
4394
|
"data-slot": "item-description",
|
|
@@ -4244,7 +4402,7 @@ function ItemDescription(_a) {
|
|
|
4244
4402
|
}
|
|
4245
4403
|
function ItemActions(_a) {
|
|
4246
4404
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4247
|
-
return /* @__PURE__ */ (0,
|
|
4405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4248
4406
|
"div",
|
|
4249
4407
|
__spreadValues({
|
|
4250
4408
|
"data-slot": "item-actions",
|
|
@@ -4254,7 +4412,7 @@ function ItemActions(_a) {
|
|
|
4254
4412
|
}
|
|
4255
4413
|
function ItemHeader(_a) {
|
|
4256
4414
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4257
|
-
return /* @__PURE__ */ (0,
|
|
4415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4258
4416
|
"div",
|
|
4259
4417
|
__spreadValues({
|
|
4260
4418
|
"data-slot": "item-header",
|
|
@@ -4267,7 +4425,7 @@ function ItemHeader(_a) {
|
|
|
4267
4425
|
}
|
|
4268
4426
|
function ItemFooter(_a) {
|
|
4269
4427
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4270
|
-
return /* @__PURE__ */ (0,
|
|
4428
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4271
4429
|
"div",
|
|
4272
4430
|
__spreadValues({
|
|
4273
4431
|
"data-slot": "item-footer",
|
|
@@ -4280,10 +4438,10 @@ function ItemFooter(_a) {
|
|
|
4280
4438
|
}
|
|
4281
4439
|
|
|
4282
4440
|
// components/ui/kbd.tsx
|
|
4283
|
-
var
|
|
4441
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
4284
4442
|
function Kbd(_a) {
|
|
4285
4443
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4286
|
-
return /* @__PURE__ */ (0,
|
|
4444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4287
4445
|
"kbd",
|
|
4288
4446
|
__spreadValues({
|
|
4289
4447
|
"data-slot": "kbd",
|
|
@@ -4298,7 +4456,7 @@ function Kbd(_a) {
|
|
|
4298
4456
|
}
|
|
4299
4457
|
function KbdGroup(_a) {
|
|
4300
4458
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4301
|
-
return /* @__PURE__ */ (0,
|
|
4459
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4302
4460
|
"kbd",
|
|
4303
4461
|
__spreadValues({
|
|
4304
4462
|
"data-slot": "kbd-group",
|
|
@@ -4310,7 +4468,7 @@ function KbdGroup(_a) {
|
|
|
4310
4468
|
// components/ui/link.tsx
|
|
4311
4469
|
var import_class_variance_authority9 = require("class-variance-authority");
|
|
4312
4470
|
var import_radix_ui19 = require("radix-ui");
|
|
4313
|
-
var
|
|
4471
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
4314
4472
|
var linkVariants = (0, import_class_variance_authority9.cva)(
|
|
4315
4473
|
"inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 active:opacity-60 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:inline font-display font-bold normal-case text-primary hover:underline decoration-2 underline-offset-4",
|
|
4316
4474
|
{
|
|
@@ -4337,7 +4495,7 @@ function Link(_a) {
|
|
|
4337
4495
|
"asChild"
|
|
4338
4496
|
]);
|
|
4339
4497
|
const Comp = asChild ? import_radix_ui19.Slot.Root : "a";
|
|
4340
|
-
return /* @__PURE__ */ (0,
|
|
4498
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4341
4499
|
Comp,
|
|
4342
4500
|
__spreadValues({
|
|
4343
4501
|
"data-slot": "link",
|
|
@@ -4348,16 +4506,16 @@ function Link(_a) {
|
|
|
4348
4506
|
}
|
|
4349
4507
|
|
|
4350
4508
|
// components/ui/menubar.tsx
|
|
4351
|
-
var
|
|
4509
|
+
var import_lucide_react14 = require("lucide-react");
|
|
4352
4510
|
var import_radix_ui20 = require("radix-ui");
|
|
4353
|
-
var
|
|
4511
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
4354
4512
|
function Menubar(_a) {
|
|
4355
4513
|
var _b = _a, {
|
|
4356
4514
|
className
|
|
4357
4515
|
} = _b, props = __objRest(_b, [
|
|
4358
4516
|
"className"
|
|
4359
4517
|
]);
|
|
4360
|
-
return /* @__PURE__ */ (0,
|
|
4518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4361
4519
|
import_radix_ui20.Menubar.Root,
|
|
4362
4520
|
__spreadValues({
|
|
4363
4521
|
"data-slot": "menubar",
|
|
@@ -4370,19 +4528,19 @@ function Menubar(_a) {
|
|
|
4370
4528
|
}
|
|
4371
4529
|
function MenubarMenu(_a) {
|
|
4372
4530
|
var props = __objRest(_a, []);
|
|
4373
|
-
return /* @__PURE__ */ (0,
|
|
4531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui20.Menubar.Menu, __spreadValues({ "data-slot": "menubar-menu" }, props));
|
|
4374
4532
|
}
|
|
4375
4533
|
function MenubarGroup(_a) {
|
|
4376
4534
|
var props = __objRest(_a, []);
|
|
4377
|
-
return /* @__PURE__ */ (0,
|
|
4535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui20.Menubar.Group, __spreadValues({ "data-slot": "menubar-group" }, props));
|
|
4378
4536
|
}
|
|
4379
4537
|
function MenubarPortal(_a) {
|
|
4380
4538
|
var props = __objRest(_a, []);
|
|
4381
|
-
return /* @__PURE__ */ (0,
|
|
4539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui20.Menubar.Portal, __spreadValues({ "data-slot": "menubar-portal" }, props));
|
|
4382
4540
|
}
|
|
4383
4541
|
function MenubarRadioGroup(_a) {
|
|
4384
4542
|
var props = __objRest(_a, []);
|
|
4385
|
-
return /* @__PURE__ */ (0,
|
|
4543
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui20.Menubar.RadioGroup, __spreadValues({ "data-slot": "menubar-radio-group" }, props));
|
|
4386
4544
|
}
|
|
4387
4545
|
function MenubarTrigger(_a) {
|
|
4388
4546
|
var _b = _a, {
|
|
@@ -4390,7 +4548,7 @@ function MenubarTrigger(_a) {
|
|
|
4390
4548
|
} = _b, props = __objRest(_b, [
|
|
4391
4549
|
"className"
|
|
4392
4550
|
]);
|
|
4393
|
-
return /* @__PURE__ */ (0,
|
|
4551
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4394
4552
|
import_radix_ui20.Menubar.Trigger,
|
|
4395
4553
|
__spreadValues({
|
|
4396
4554
|
"data-slot": "menubar-trigger",
|
|
@@ -4413,7 +4571,7 @@ function MenubarContent(_a) {
|
|
|
4413
4571
|
"alignOffset",
|
|
4414
4572
|
"sideOffset"
|
|
4415
4573
|
]);
|
|
4416
|
-
return /* @__PURE__ */ (0,
|
|
4574
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(MenubarPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4417
4575
|
import_radix_ui20.Menubar.Content,
|
|
4418
4576
|
__spreadValues({
|
|
4419
4577
|
"data-slot": "menubar-content",
|
|
@@ -4437,7 +4595,7 @@ function MenubarItem(_a) {
|
|
|
4437
4595
|
"inset",
|
|
4438
4596
|
"variant"
|
|
4439
4597
|
]);
|
|
4440
|
-
return /* @__PURE__ */ (0,
|
|
4598
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4441
4599
|
import_radix_ui20.Menubar.Item,
|
|
4442
4600
|
__spreadValues({
|
|
4443
4601
|
"data-slot": "menubar-item",
|
|
@@ -4460,7 +4618,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
4460
4618
|
"children",
|
|
4461
4619
|
"checked"
|
|
4462
4620
|
]);
|
|
4463
|
-
return /* @__PURE__ */ (0,
|
|
4621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
4464
4622
|
import_radix_ui20.Menubar.CheckboxItem,
|
|
4465
4623
|
__spreadProps(__spreadValues({
|
|
4466
4624
|
"data-slot": "menubar-checkbox-item",
|
|
@@ -4471,7 +4629,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
4471
4629
|
checked
|
|
4472
4630
|
}, props), {
|
|
4473
4631
|
children: [
|
|
4474
|
-
/* @__PURE__ */ (0,
|
|
4632
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui20.Menubar.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react14.CheckIcon, { className: "size-4" }) }) }),
|
|
4475
4633
|
children
|
|
4476
4634
|
]
|
|
4477
4635
|
})
|
|
@@ -4485,7 +4643,7 @@ function MenubarRadioItem(_a) {
|
|
|
4485
4643
|
"className",
|
|
4486
4644
|
"children"
|
|
4487
4645
|
]);
|
|
4488
|
-
return /* @__PURE__ */ (0,
|
|
4646
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
4489
4647
|
import_radix_ui20.Menubar.RadioItem,
|
|
4490
4648
|
__spreadProps(__spreadValues({
|
|
4491
4649
|
"data-slot": "menubar-radio-item",
|
|
@@ -4495,7 +4653,7 @@ function MenubarRadioItem(_a) {
|
|
|
4495
4653
|
)
|
|
4496
4654
|
}, props), {
|
|
4497
4655
|
children: [
|
|
4498
|
-
/* @__PURE__ */ (0,
|
|
4656
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui20.Menubar.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react14.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
4499
4657
|
children
|
|
4500
4658
|
]
|
|
4501
4659
|
})
|
|
@@ -4509,7 +4667,7 @@ function MenubarLabel(_a) {
|
|
|
4509
4667
|
"className",
|
|
4510
4668
|
"inset"
|
|
4511
4669
|
]);
|
|
4512
|
-
return /* @__PURE__ */ (0,
|
|
4670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4513
4671
|
import_radix_ui20.Menubar.Label,
|
|
4514
4672
|
__spreadValues({
|
|
4515
4673
|
"data-slot": "menubar-label",
|
|
@@ -4527,7 +4685,7 @@ function MenubarSeparator(_a) {
|
|
|
4527
4685
|
} = _b, props = __objRest(_b, [
|
|
4528
4686
|
"className"
|
|
4529
4687
|
]);
|
|
4530
|
-
return /* @__PURE__ */ (0,
|
|
4688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4531
4689
|
import_radix_ui20.Menubar.Separator,
|
|
4532
4690
|
__spreadValues({
|
|
4533
4691
|
"data-slot": "menubar-separator",
|
|
@@ -4541,7 +4699,7 @@ function MenubarShortcut(_a) {
|
|
|
4541
4699
|
} = _b, props = __objRest(_b, [
|
|
4542
4700
|
"className"
|
|
4543
4701
|
]);
|
|
4544
|
-
return /* @__PURE__ */ (0,
|
|
4702
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4545
4703
|
"span",
|
|
4546
4704
|
__spreadValues({
|
|
4547
4705
|
"data-slot": "menubar-shortcut",
|
|
@@ -4554,7 +4712,7 @@ function MenubarShortcut(_a) {
|
|
|
4554
4712
|
}
|
|
4555
4713
|
function MenubarSub(_a) {
|
|
4556
4714
|
var props = __objRest(_a, []);
|
|
4557
|
-
return /* @__PURE__ */ (0,
|
|
4715
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui20.Menubar.Sub, __spreadValues({ "data-slot": "menubar-sub" }, props));
|
|
4558
4716
|
}
|
|
4559
4717
|
function MenubarSubTrigger(_a) {
|
|
4560
4718
|
var _b = _a, {
|
|
@@ -4566,7 +4724,7 @@ function MenubarSubTrigger(_a) {
|
|
|
4566
4724
|
"inset",
|
|
4567
4725
|
"children"
|
|
4568
4726
|
]);
|
|
4569
|
-
return /* @__PURE__ */ (0,
|
|
4727
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
4570
4728
|
import_radix_ui20.Menubar.SubTrigger,
|
|
4571
4729
|
__spreadProps(__spreadValues({
|
|
4572
4730
|
"data-slot": "menubar-sub-trigger",
|
|
@@ -4578,7 +4736,7 @@ function MenubarSubTrigger(_a) {
|
|
|
4578
4736
|
}, props), {
|
|
4579
4737
|
children: [
|
|
4580
4738
|
children,
|
|
4581
|
-
/* @__PURE__ */ (0,
|
|
4739
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react14.ChevronRightIcon, { className: "ml-auto h-4 w-4" })
|
|
4582
4740
|
]
|
|
4583
4741
|
})
|
|
4584
4742
|
);
|
|
@@ -4589,7 +4747,7 @@ function MenubarSubContent(_a) {
|
|
|
4589
4747
|
} = _b, props = __objRest(_b, [
|
|
4590
4748
|
"className"
|
|
4591
4749
|
]);
|
|
4592
|
-
return /* @__PURE__ */ (0,
|
|
4750
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4593
4751
|
import_radix_ui20.Menubar.SubContent,
|
|
4594
4752
|
__spreadValues({
|
|
4595
4753
|
"data-slot": "menubar-sub-content",
|
|
@@ -4602,8 +4760,8 @@ function MenubarSubContent(_a) {
|
|
|
4602
4760
|
}
|
|
4603
4761
|
|
|
4604
4762
|
// components/ui/native-select.tsx
|
|
4605
|
-
var
|
|
4606
|
-
var
|
|
4763
|
+
var import_lucide_react15 = require("lucide-react");
|
|
4764
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
4607
4765
|
function NativeSelect(_a) {
|
|
4608
4766
|
var _b = _a, {
|
|
4609
4767
|
className,
|
|
@@ -4612,13 +4770,13 @@ function NativeSelect(_a) {
|
|
|
4612
4770
|
"className",
|
|
4613
4771
|
"size"
|
|
4614
4772
|
]);
|
|
4615
|
-
return /* @__PURE__ */ (0,
|
|
4773
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
4616
4774
|
"div",
|
|
4617
4775
|
{
|
|
4618
4776
|
className: "group/native-select relative w-fit has-[select:disabled]:opacity-50",
|
|
4619
4777
|
"data-slot": "native-select-wrapper",
|
|
4620
4778
|
children: [
|
|
4621
|
-
/* @__PURE__ */ (0,
|
|
4779
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4622
4780
|
"select",
|
|
4623
4781
|
__spreadValues({
|
|
4624
4782
|
"data-slot": "native-select",
|
|
@@ -4630,8 +4788,8 @@ function NativeSelect(_a) {
|
|
|
4630
4788
|
)
|
|
4631
4789
|
}, props)
|
|
4632
4790
|
),
|
|
4633
|
-
/* @__PURE__ */ (0,
|
|
4634
|
-
|
|
4791
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4792
|
+
import_lucide_react15.ChevronDownIcon,
|
|
4635
4793
|
{
|
|
4636
4794
|
className: "pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 text-on-subtle opacity-50 select-none",
|
|
4637
4795
|
"aria-hidden": "true",
|
|
@@ -4644,7 +4802,7 @@ function NativeSelect(_a) {
|
|
|
4644
4802
|
}
|
|
4645
4803
|
function NativeSelectOption(_a) {
|
|
4646
4804
|
var props = __objRest(_a, []);
|
|
4647
|
-
return /* @__PURE__ */ (0,
|
|
4805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("option", __spreadValues({ "data-slot": "native-select-option" }, props));
|
|
4648
4806
|
}
|
|
4649
4807
|
function NativeSelectOptGroup(_a) {
|
|
4650
4808
|
var _b = _a, {
|
|
@@ -4652,7 +4810,7 @@ function NativeSelectOptGroup(_a) {
|
|
|
4652
4810
|
} = _b, props = __objRest(_b, [
|
|
4653
4811
|
"className"
|
|
4654
4812
|
]);
|
|
4655
|
-
return /* @__PURE__ */ (0,
|
|
4813
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4656
4814
|
"optgroup",
|
|
4657
4815
|
__spreadValues({
|
|
4658
4816
|
"data-slot": "native-select-optgroup",
|
|
@@ -4664,7 +4822,7 @@ function NativeSelectOptGroup(_a) {
|
|
|
4664
4822
|
// components/ui/navigation-button.tsx
|
|
4665
4823
|
var import_class_variance_authority10 = require("class-variance-authority");
|
|
4666
4824
|
var import_radix_ui21 = require("radix-ui");
|
|
4667
|
-
var
|
|
4825
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
4668
4826
|
var navigationButtonVariants = (0, import_class_variance_authority10.cva)(
|
|
4669
4827
|
"inline-flex shrink-0 items-center justify-center bg-transparent text-on-prominent hover:bg-secondary-hover transition-all duration-fast ease-standard outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 active:opacity-60 disabled:pointer-events-none disabled:opacity-24 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
4670
4828
|
{
|
|
@@ -4694,7 +4852,7 @@ function NavigationButton(_a) {
|
|
|
4694
4852
|
"children"
|
|
4695
4853
|
]);
|
|
4696
4854
|
const Comp = asChild ? import_radix_ui21.Slot.Root : "button";
|
|
4697
|
-
return /* @__PURE__ */ (0,
|
|
4855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4698
4856
|
Comp,
|
|
4699
4857
|
__spreadProps(__spreadValues({
|
|
4700
4858
|
"data-slot": "navigation-button",
|
|
@@ -4708,9 +4866,9 @@ function NavigationButton(_a) {
|
|
|
4708
4866
|
|
|
4709
4867
|
// components/ui/navigation-menu.tsx
|
|
4710
4868
|
var import_class_variance_authority11 = require("class-variance-authority");
|
|
4711
|
-
var
|
|
4869
|
+
var import_lucide_react16 = require("lucide-react");
|
|
4712
4870
|
var import_radix_ui22 = require("radix-ui");
|
|
4713
|
-
var
|
|
4871
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4714
4872
|
function NavigationMenu(_a) {
|
|
4715
4873
|
var _b = _a, {
|
|
4716
4874
|
className,
|
|
@@ -4721,7 +4879,7 @@ function NavigationMenu(_a) {
|
|
|
4721
4879
|
"children",
|
|
4722
4880
|
"viewport"
|
|
4723
4881
|
]);
|
|
4724
|
-
return /* @__PURE__ */ (0,
|
|
4882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
4725
4883
|
import_radix_ui22.NavigationMenu.Root,
|
|
4726
4884
|
__spreadProps(__spreadValues({
|
|
4727
4885
|
"data-slot": "navigation-menu",
|
|
@@ -4733,7 +4891,7 @@ function NavigationMenu(_a) {
|
|
|
4733
4891
|
}, props), {
|
|
4734
4892
|
children: [
|
|
4735
4893
|
children,
|
|
4736
|
-
viewport && /* @__PURE__ */ (0,
|
|
4894
|
+
viewport && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(NavigationMenuViewport, {})
|
|
4737
4895
|
]
|
|
4738
4896
|
})
|
|
4739
4897
|
);
|
|
@@ -4744,7 +4902,7 @@ function NavigationMenuList(_a) {
|
|
|
4744
4902
|
} = _b, props = __objRest(_b, [
|
|
4745
4903
|
"className"
|
|
4746
4904
|
]);
|
|
4747
|
-
return /* @__PURE__ */ (0,
|
|
4905
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4748
4906
|
import_radix_ui22.NavigationMenu.List,
|
|
4749
4907
|
__spreadValues({
|
|
4750
4908
|
"data-slot": "navigation-menu-list",
|
|
@@ -4761,7 +4919,7 @@ function NavigationMenuItem(_a) {
|
|
|
4761
4919
|
} = _b, props = __objRest(_b, [
|
|
4762
4920
|
"className"
|
|
4763
4921
|
]);
|
|
4764
|
-
return /* @__PURE__ */ (0,
|
|
4922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4765
4923
|
import_radix_ui22.NavigationMenu.Item,
|
|
4766
4924
|
__spreadValues({
|
|
4767
4925
|
"data-slot": "navigation-menu-item",
|
|
@@ -4780,7 +4938,7 @@ function NavigationMenuTrigger(_a) {
|
|
|
4780
4938
|
"className",
|
|
4781
4939
|
"children"
|
|
4782
4940
|
]);
|
|
4783
|
-
return /* @__PURE__ */ (0,
|
|
4941
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
4784
4942
|
import_radix_ui22.NavigationMenu.Trigger,
|
|
4785
4943
|
__spreadProps(__spreadValues({
|
|
4786
4944
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -4789,8 +4947,8 @@ function NavigationMenuTrigger(_a) {
|
|
|
4789
4947
|
children: [
|
|
4790
4948
|
children,
|
|
4791
4949
|
" ",
|
|
4792
|
-
/* @__PURE__ */ (0,
|
|
4793
|
-
|
|
4950
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4951
|
+
import_lucide_react16.ChevronDownIcon,
|
|
4794
4952
|
{
|
|
4795
4953
|
className: "relative top-[1px] ml-1 size-3 transition duration-slow group-data-[state=open]:rotate-180",
|
|
4796
4954
|
"aria-hidden": "true"
|
|
@@ -4806,7 +4964,7 @@ function NavigationMenuContent(_a) {
|
|
|
4806
4964
|
} = _b, props = __objRest(_b, [
|
|
4807
4965
|
"className"
|
|
4808
4966
|
]);
|
|
4809
|
-
return /* @__PURE__ */ (0,
|
|
4967
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4810
4968
|
import_radix_ui22.NavigationMenu.Content,
|
|
4811
4969
|
__spreadValues({
|
|
4812
4970
|
"data-slot": "navigation-menu-content",
|
|
@@ -4824,13 +4982,13 @@ function NavigationMenuViewport(_a) {
|
|
|
4824
4982
|
} = _b, props = __objRest(_b, [
|
|
4825
4983
|
"className"
|
|
4826
4984
|
]);
|
|
4827
|
-
return /* @__PURE__ */ (0,
|
|
4985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4828
4986
|
"div",
|
|
4829
4987
|
{
|
|
4830
4988
|
className: cn(
|
|
4831
4989
|
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
4832
4990
|
),
|
|
4833
|
-
children: /* @__PURE__ */ (0,
|
|
4991
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4834
4992
|
import_radix_ui22.NavigationMenu.Viewport,
|
|
4835
4993
|
__spreadValues({
|
|
4836
4994
|
"data-slot": "navigation-menu-viewport",
|
|
@@ -4849,7 +5007,7 @@ function NavigationMenuLink(_a) {
|
|
|
4849
5007
|
} = _b, props = __objRest(_b, [
|
|
4850
5008
|
"className"
|
|
4851
5009
|
]);
|
|
4852
|
-
return /* @__PURE__ */ (0,
|
|
5010
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4853
5011
|
import_radix_ui22.NavigationMenu.Link,
|
|
4854
5012
|
__spreadValues({
|
|
4855
5013
|
"data-slot": "navigation-menu-link",
|
|
@@ -4866,7 +5024,7 @@ function NavigationMenuIndicator(_a) {
|
|
|
4866
5024
|
} = _b, props = __objRest(_b, [
|
|
4867
5025
|
"className"
|
|
4868
5026
|
]);
|
|
4869
|
-
return /* @__PURE__ */ (0,
|
|
5027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4870
5028
|
import_radix_ui22.NavigationMenu.Indicator,
|
|
4871
5029
|
__spreadProps(__spreadValues({
|
|
4872
5030
|
"data-slot": "navigation-menu-indicator",
|
|
@@ -4875,17 +5033,17 @@ function NavigationMenuIndicator(_a) {
|
|
|
4875
5033
|
className
|
|
4876
5034
|
)
|
|
4877
5035
|
}, props), {
|
|
4878
|
-
children: /* @__PURE__ */ (0,
|
|
5036
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
4879
5037
|
})
|
|
4880
5038
|
);
|
|
4881
5039
|
}
|
|
4882
5040
|
|
|
4883
5041
|
// components/ui/pagination.tsx
|
|
4884
|
-
var
|
|
4885
|
-
var
|
|
5042
|
+
var import_lucide_react17 = require("lucide-react");
|
|
5043
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4886
5044
|
function Pagination(_a) {
|
|
4887
5045
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4888
|
-
return /* @__PURE__ */ (0,
|
|
5046
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4889
5047
|
"nav",
|
|
4890
5048
|
__spreadValues({
|
|
4891
5049
|
role: "navigation",
|
|
@@ -4901,7 +5059,7 @@ function PaginationContent(_a) {
|
|
|
4901
5059
|
} = _b, props = __objRest(_b, [
|
|
4902
5060
|
"className"
|
|
4903
5061
|
]);
|
|
4904
|
-
return /* @__PURE__ */ (0,
|
|
5062
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4905
5063
|
"ul",
|
|
4906
5064
|
__spreadValues({
|
|
4907
5065
|
"data-slot": "pagination-content",
|
|
@@ -4911,7 +5069,7 @@ function PaginationContent(_a) {
|
|
|
4911
5069
|
}
|
|
4912
5070
|
function PaginationItem(_a) {
|
|
4913
5071
|
var props = __objRest(_a, []);
|
|
4914
|
-
return /* @__PURE__ */ (0,
|
|
5072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("li", __spreadValues({ "data-slot": "pagination-item" }, props));
|
|
4915
5073
|
}
|
|
4916
5074
|
function PaginationLink(_a) {
|
|
4917
5075
|
var _b = _a, {
|
|
@@ -4923,7 +5081,7 @@ function PaginationLink(_a) {
|
|
|
4923
5081
|
"isActive",
|
|
4924
5082
|
"size"
|
|
4925
5083
|
]);
|
|
4926
|
-
return /* @__PURE__ */ (0,
|
|
5084
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4927
5085
|
"a",
|
|
4928
5086
|
__spreadValues({
|
|
4929
5087
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -4943,7 +5101,7 @@ function PaginationPrevious(_a) {
|
|
|
4943
5101
|
} = _b, props = __objRest(_b, [
|
|
4944
5102
|
"className"
|
|
4945
5103
|
]);
|
|
4946
|
-
return /* @__PURE__ */ (0,
|
|
5104
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Button, { asChild: true, variant: "tertiary", size: "icon-md", className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("a", __spreadProps(__spreadValues({ "aria-label": "Go to previous page", "data-slot": "pagination-link" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react17.ChevronLeftIcon, { className: "size-5" }) })) });
|
|
4947
5105
|
}
|
|
4948
5106
|
function PaginationNext(_a) {
|
|
4949
5107
|
var _b = _a, {
|
|
@@ -4951,7 +5109,7 @@ function PaginationNext(_a) {
|
|
|
4951
5109
|
} = _b, props = __objRest(_b, [
|
|
4952
5110
|
"className"
|
|
4953
5111
|
]);
|
|
4954
|
-
return /* @__PURE__ */ (0,
|
|
5112
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Button, { asChild: true, variant: "tertiary", size: "icon-md", className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("a", __spreadProps(__spreadValues({ "aria-label": "Go to next page", "data-slot": "pagination-link" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react17.ChevronRightIcon, { className: "size-5" }) })) });
|
|
4955
5113
|
}
|
|
4956
5114
|
function PaginationEllipsis(_a) {
|
|
4957
5115
|
var _b = _a, {
|
|
@@ -4959,7 +5117,7 @@ function PaginationEllipsis(_a) {
|
|
|
4959
5117
|
} = _b, props = __objRest(_b, [
|
|
4960
5118
|
"className"
|
|
4961
5119
|
]);
|
|
4962
|
-
return /* @__PURE__ */ (0,
|
|
5120
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
4963
5121
|
"span",
|
|
4964
5122
|
__spreadProps(__spreadValues({
|
|
4965
5123
|
"aria-hidden": true,
|
|
@@ -4967,8 +5125,8 @@ function PaginationEllipsis(_a) {
|
|
|
4967
5125
|
className: cn("flex size-10 items-center justify-center", className)
|
|
4968
5126
|
}, props), {
|
|
4969
5127
|
children: [
|
|
4970
|
-
/* @__PURE__ */ (0,
|
|
4971
|
-
/* @__PURE__ */ (0,
|
|
5128
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react17.MoreHorizontalIcon, { className: "size-4" }),
|
|
5129
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "sr-only", children: "More pages" })
|
|
4972
5130
|
]
|
|
4973
5131
|
})
|
|
4974
5132
|
);
|
|
@@ -4976,14 +5134,14 @@ function PaginationEllipsis(_a) {
|
|
|
4976
5134
|
|
|
4977
5135
|
// components/ui/popover.tsx
|
|
4978
5136
|
var import_radix_ui23 = require("radix-ui");
|
|
4979
|
-
var
|
|
5137
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4980
5138
|
function Popover(_a) {
|
|
4981
5139
|
var props = __objRest(_a, []);
|
|
4982
|
-
return /* @__PURE__ */ (0,
|
|
5140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_radix_ui23.Popover.Root, __spreadValues({ "data-slot": "popover" }, props));
|
|
4983
5141
|
}
|
|
4984
5142
|
function PopoverTrigger(_a) {
|
|
4985
5143
|
var props = __objRest(_a, []);
|
|
4986
|
-
return /* @__PURE__ */ (0,
|
|
5144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_radix_ui23.Popover.Trigger, __spreadValues({ "data-slot": "popover-trigger" }, props));
|
|
4987
5145
|
}
|
|
4988
5146
|
function PopoverContent(_a) {
|
|
4989
5147
|
var _b = _a, {
|
|
@@ -4995,7 +5153,7 @@ function PopoverContent(_a) {
|
|
|
4995
5153
|
"align",
|
|
4996
5154
|
"sideOffset"
|
|
4997
5155
|
]);
|
|
4998
|
-
return /* @__PURE__ */ (0,
|
|
5156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_radix_ui23.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4999
5157
|
import_radix_ui23.Popover.Content,
|
|
5000
5158
|
__spreadValues({
|
|
5001
5159
|
"data-slot": "popover-content",
|
|
@@ -5010,11 +5168,11 @@ function PopoverContent(_a) {
|
|
|
5010
5168
|
}
|
|
5011
5169
|
function PopoverAnchor(_a) {
|
|
5012
5170
|
var props = __objRest(_a, []);
|
|
5013
|
-
return /* @__PURE__ */ (0,
|
|
5171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_radix_ui23.Popover.Anchor, __spreadValues({ "data-slot": "popover-anchor" }, props));
|
|
5014
5172
|
}
|
|
5015
5173
|
function PopoverHeader(_a) {
|
|
5016
5174
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5017
|
-
return /* @__PURE__ */ (0,
|
|
5175
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5018
5176
|
"div",
|
|
5019
5177
|
__spreadValues({
|
|
5020
5178
|
"data-slot": "popover-header",
|
|
@@ -5024,7 +5182,7 @@ function PopoverHeader(_a) {
|
|
|
5024
5182
|
}
|
|
5025
5183
|
function PopoverTitle(_a) {
|
|
5026
5184
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5027
|
-
return /* @__PURE__ */ (0,
|
|
5185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5028
5186
|
"div",
|
|
5029
5187
|
__spreadValues({
|
|
5030
5188
|
"data-slot": "popover-title",
|
|
@@ -5038,7 +5196,7 @@ function PopoverDescription(_a) {
|
|
|
5038
5196
|
} = _b, props = __objRest(_b, [
|
|
5039
5197
|
"className"
|
|
5040
5198
|
]);
|
|
5041
|
-
return /* @__PURE__ */ (0,
|
|
5199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5042
5200
|
"p",
|
|
5043
5201
|
__spreadValues({
|
|
5044
5202
|
"data-slot": "popover-description",
|
|
@@ -5049,7 +5207,7 @@ function PopoverDescription(_a) {
|
|
|
5049
5207
|
|
|
5050
5208
|
// components/ui/progress.tsx
|
|
5051
5209
|
var import_radix_ui24 = require("radix-ui");
|
|
5052
|
-
var
|
|
5210
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
5053
5211
|
function Progress(_a) {
|
|
5054
5212
|
var _b = _a, {
|
|
5055
5213
|
className,
|
|
@@ -5058,7 +5216,7 @@ function Progress(_a) {
|
|
|
5058
5216
|
"className",
|
|
5059
5217
|
"value"
|
|
5060
5218
|
]);
|
|
5061
|
-
return /* @__PURE__ */ (0,
|
|
5219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5062
5220
|
import_radix_ui24.Progress.Root,
|
|
5063
5221
|
__spreadProps(__spreadValues({
|
|
5064
5222
|
"data-slot": "progress",
|
|
@@ -5067,7 +5225,7 @@ function Progress(_a) {
|
|
|
5067
5225
|
className
|
|
5068
5226
|
)
|
|
5069
5227
|
}, props), {
|
|
5070
|
-
children: /* @__PURE__ */ (0,
|
|
5228
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5071
5229
|
import_radix_ui24.Progress.Indicator,
|
|
5072
5230
|
{
|
|
5073
5231
|
"data-slot": "progress-indicator",
|
|
@@ -5080,16 +5238,16 @@ function Progress(_a) {
|
|
|
5080
5238
|
}
|
|
5081
5239
|
|
|
5082
5240
|
// components/ui/radio-group.tsx
|
|
5083
|
-
var
|
|
5241
|
+
var import_lucide_react18 = require("lucide-react");
|
|
5084
5242
|
var import_radix_ui25 = require("radix-ui");
|
|
5085
|
-
var
|
|
5243
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
5086
5244
|
function RadioGroup(_a) {
|
|
5087
5245
|
var _b = _a, {
|
|
5088
5246
|
className
|
|
5089
5247
|
} = _b, props = __objRest(_b, [
|
|
5090
5248
|
"className"
|
|
5091
5249
|
]);
|
|
5092
|
-
return /* @__PURE__ */ (0,
|
|
5250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5093
5251
|
import_radix_ui25.RadioGroup.Root,
|
|
5094
5252
|
__spreadValues({
|
|
5095
5253
|
"data-slot": "radio-group",
|
|
@@ -5103,7 +5261,7 @@ function RadioGroupItem(_a) {
|
|
|
5103
5261
|
} = _b, props = __objRest(_b, [
|
|
5104
5262
|
"className"
|
|
5105
5263
|
]);
|
|
5106
|
-
return /* @__PURE__ */ (0,
|
|
5264
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5107
5265
|
import_radix_ui25.RadioGroup.Item,
|
|
5108
5266
|
__spreadProps(__spreadValues({
|
|
5109
5267
|
"data-slot": "radio-group-item",
|
|
@@ -5112,12 +5270,12 @@ function RadioGroupItem(_a) {
|
|
|
5112
5270
|
className
|
|
5113
5271
|
)
|
|
5114
5272
|
}, props), {
|
|
5115
|
-
children: /* @__PURE__ */ (0,
|
|
5273
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5116
5274
|
import_radix_ui25.RadioGroup.Indicator,
|
|
5117
5275
|
{
|
|
5118
5276
|
"data-slot": "radio-group-indicator",
|
|
5119
5277
|
className: "relative flex items-center justify-center",
|
|
5120
|
-
children: /* @__PURE__ */ (0,
|
|
5278
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react18.CircleIcon, { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary" })
|
|
5121
5279
|
}
|
|
5122
5280
|
)
|
|
5123
5281
|
})
|
|
@@ -5125,16 +5283,16 @@ function RadioGroupItem(_a) {
|
|
|
5125
5283
|
}
|
|
5126
5284
|
|
|
5127
5285
|
// components/ui/resizable.tsx
|
|
5128
|
-
var
|
|
5286
|
+
var import_lucide_react19 = require("lucide-react");
|
|
5129
5287
|
var ResizablePrimitive = __toESM(require("react-resizable-panels"), 1);
|
|
5130
|
-
var
|
|
5288
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
5131
5289
|
function ResizablePanelGroup(_a) {
|
|
5132
5290
|
var _b = _a, {
|
|
5133
5291
|
className
|
|
5134
5292
|
} = _b, props = __objRest(_b, [
|
|
5135
5293
|
"className"
|
|
5136
5294
|
]);
|
|
5137
|
-
return /* @__PURE__ */ (0,
|
|
5295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5138
5296
|
ResizablePrimitive.Group,
|
|
5139
5297
|
__spreadValues({
|
|
5140
5298
|
"data-slot": "resizable-panel-group",
|
|
@@ -5147,7 +5305,7 @@ function ResizablePanelGroup(_a) {
|
|
|
5147
5305
|
}
|
|
5148
5306
|
function ResizablePanel(_a) {
|
|
5149
5307
|
var props = __objRest(_a, []);
|
|
5150
|
-
return /* @__PURE__ */ (0,
|
|
5308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ResizablePrimitive.Panel, __spreadValues({ "data-slot": "resizable-panel" }, props));
|
|
5151
5309
|
}
|
|
5152
5310
|
function ResizableHandle(_a) {
|
|
5153
5311
|
var _b = _a, {
|
|
@@ -5157,7 +5315,7 @@ function ResizableHandle(_a) {
|
|
|
5157
5315
|
"withHandle",
|
|
5158
5316
|
"className"
|
|
5159
5317
|
]);
|
|
5160
|
-
return /* @__PURE__ */ (0,
|
|
5318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5161
5319
|
ResizablePrimitive.Separator,
|
|
5162
5320
|
__spreadProps(__spreadValues({
|
|
5163
5321
|
"data-slot": "resizable-handle",
|
|
@@ -5166,14 +5324,14 @@ function ResizableHandle(_a) {
|
|
|
5166
5324
|
className
|
|
5167
5325
|
)
|
|
5168
5326
|
}, props), {
|
|
5169
|
-
children: withHandle && /* @__PURE__ */ (0,
|
|
5327
|
+
children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react19.GripVerticalIcon, { className: "size-2.5" }) })
|
|
5170
5328
|
})
|
|
5171
5329
|
);
|
|
5172
5330
|
}
|
|
5173
5331
|
|
|
5174
5332
|
// components/ui/scroll-area.tsx
|
|
5175
5333
|
var import_radix_ui26 = require("radix-ui");
|
|
5176
|
-
var
|
|
5334
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
5177
5335
|
function ScrollArea(_a) {
|
|
5178
5336
|
var _b = _a, {
|
|
5179
5337
|
className,
|
|
@@ -5182,14 +5340,14 @@ function ScrollArea(_a) {
|
|
|
5182
5340
|
"className",
|
|
5183
5341
|
"children"
|
|
5184
5342
|
]);
|
|
5185
|
-
return /* @__PURE__ */ (0,
|
|
5343
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
5186
5344
|
import_radix_ui26.ScrollArea.Root,
|
|
5187
5345
|
__spreadProps(__spreadValues({
|
|
5188
5346
|
"data-slot": "scroll-area",
|
|
5189
5347
|
className: cn("relative", className)
|
|
5190
5348
|
}, props), {
|
|
5191
5349
|
children: [
|
|
5192
|
-
/* @__PURE__ */ (0,
|
|
5350
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5193
5351
|
import_radix_ui26.ScrollArea.Viewport,
|
|
5194
5352
|
{
|
|
5195
5353
|
"data-slot": "scroll-area-viewport",
|
|
@@ -5197,8 +5355,8 @@ function ScrollArea(_a) {
|
|
|
5197
5355
|
children
|
|
5198
5356
|
}
|
|
5199
5357
|
),
|
|
5200
|
-
/* @__PURE__ */ (0,
|
|
5201
|
-
/* @__PURE__ */ (0,
|
|
5358
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ScrollBar, {}),
|
|
5359
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_radix_ui26.ScrollArea.Corner, {})
|
|
5202
5360
|
]
|
|
5203
5361
|
})
|
|
5204
5362
|
);
|
|
@@ -5211,7 +5369,7 @@ function ScrollBar(_a) {
|
|
|
5211
5369
|
"className",
|
|
5212
5370
|
"orientation"
|
|
5213
5371
|
]);
|
|
5214
|
-
return /* @__PURE__ */ (0,
|
|
5372
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5215
5373
|
import_radix_ui26.ScrollArea.ScrollAreaScrollbar,
|
|
5216
5374
|
__spreadProps(__spreadValues({
|
|
5217
5375
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -5223,7 +5381,7 @@ function ScrollBar(_a) {
|
|
|
5223
5381
|
className
|
|
5224
5382
|
)
|
|
5225
5383
|
}, props), {
|
|
5226
|
-
children: /* @__PURE__ */ (0,
|
|
5384
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5227
5385
|
import_radix_ui26.ScrollArea.ScrollAreaThumb,
|
|
5228
5386
|
{
|
|
5229
5387
|
"data-slot": "scroll-area-thumb",
|
|
@@ -5235,20 +5393,20 @@ function ScrollBar(_a) {
|
|
|
5235
5393
|
}
|
|
5236
5394
|
|
|
5237
5395
|
// components/ui/select.tsx
|
|
5238
|
-
var
|
|
5396
|
+
var import_lucide_react20 = require("lucide-react");
|
|
5239
5397
|
var import_radix_ui27 = require("radix-ui");
|
|
5240
|
-
var
|
|
5398
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
5241
5399
|
function Select(_a) {
|
|
5242
5400
|
var props = __objRest(_a, []);
|
|
5243
|
-
return /* @__PURE__ */ (0,
|
|
5401
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui27.Select.Root, __spreadValues({ "data-slot": "select" }, props));
|
|
5244
5402
|
}
|
|
5245
5403
|
function SelectGroup(_a) {
|
|
5246
5404
|
var props = __objRest(_a, []);
|
|
5247
|
-
return /* @__PURE__ */ (0,
|
|
5405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui27.Select.Group, __spreadValues({ "data-slot": "select-group" }, props));
|
|
5248
5406
|
}
|
|
5249
5407
|
function SelectValue(_a) {
|
|
5250
5408
|
var props = __objRest(_a, []);
|
|
5251
|
-
return /* @__PURE__ */ (0,
|
|
5409
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui27.Select.Value, __spreadValues({ "data-slot": "select-value" }, props));
|
|
5252
5410
|
}
|
|
5253
5411
|
function SelectTrigger(_a) {
|
|
5254
5412
|
var _b = _a, {
|
|
@@ -5262,7 +5420,7 @@ function SelectTrigger(_a) {
|
|
|
5262
5420
|
"readOnly",
|
|
5263
5421
|
"children"
|
|
5264
5422
|
]);
|
|
5265
|
-
return /* @__PURE__ */ (0,
|
|
5423
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
5266
5424
|
import_radix_ui27.Select.Trigger,
|
|
5267
5425
|
__spreadProps(__spreadValues({
|
|
5268
5426
|
"data-slot": "select-trigger",
|
|
@@ -5276,7 +5434,7 @@ function SelectTrigger(_a) {
|
|
|
5276
5434
|
}, props), {
|
|
5277
5435
|
children: [
|
|
5278
5436
|
children,
|
|
5279
|
-
/* @__PURE__ */ (0,
|
|
5437
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui27.Select.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react20.ChevronDownIcon, { className: cn("size-4", readOnly ? "opacity-30" : "opacity-50") }) })
|
|
5280
5438
|
]
|
|
5281
5439
|
})
|
|
5282
5440
|
);
|
|
@@ -5293,7 +5451,7 @@ function SelectContent(_a) {
|
|
|
5293
5451
|
"position",
|
|
5294
5452
|
"align"
|
|
5295
5453
|
]);
|
|
5296
|
-
return /* @__PURE__ */ (0,
|
|
5454
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui27.Select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
5297
5455
|
import_radix_ui27.Select.Content,
|
|
5298
5456
|
__spreadProps(__spreadValues({
|
|
5299
5457
|
"data-slot": "select-content",
|
|
@@ -5306,8 +5464,8 @@ function SelectContent(_a) {
|
|
|
5306
5464
|
align
|
|
5307
5465
|
}, props), {
|
|
5308
5466
|
children: [
|
|
5309
|
-
/* @__PURE__ */ (0,
|
|
5310
|
-
/* @__PURE__ */ (0,
|
|
5467
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectScrollUpButton, {}),
|
|
5468
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5311
5469
|
import_radix_ui27.Select.Viewport,
|
|
5312
5470
|
{
|
|
5313
5471
|
className: cn(
|
|
@@ -5317,7 +5475,7 @@ function SelectContent(_a) {
|
|
|
5317
5475
|
children
|
|
5318
5476
|
}
|
|
5319
5477
|
),
|
|
5320
|
-
/* @__PURE__ */ (0,
|
|
5478
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectScrollDownButton, {})
|
|
5321
5479
|
]
|
|
5322
5480
|
})
|
|
5323
5481
|
) });
|
|
@@ -5328,7 +5486,7 @@ function SelectLabel(_a) {
|
|
|
5328
5486
|
} = _b, props = __objRest(_b, [
|
|
5329
5487
|
"className"
|
|
5330
5488
|
]);
|
|
5331
|
-
return /* @__PURE__ */ (0,
|
|
5489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5332
5490
|
import_radix_ui27.Select.Label,
|
|
5333
5491
|
__spreadValues({
|
|
5334
5492
|
"data-slot": "select-label",
|
|
@@ -5344,7 +5502,7 @@ function SelectItem(_a) {
|
|
|
5344
5502
|
"className",
|
|
5345
5503
|
"children"
|
|
5346
5504
|
]);
|
|
5347
|
-
return /* @__PURE__ */ (0,
|
|
5505
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
5348
5506
|
import_radix_ui27.Select.Item,
|
|
5349
5507
|
__spreadProps(__spreadValues({
|
|
5350
5508
|
"data-slot": "select-item",
|
|
@@ -5354,15 +5512,15 @@ function SelectItem(_a) {
|
|
|
5354
5512
|
)
|
|
5355
5513
|
}, props), {
|
|
5356
5514
|
children: [
|
|
5357
|
-
/* @__PURE__ */ (0,
|
|
5515
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5358
5516
|
"span",
|
|
5359
5517
|
{
|
|
5360
5518
|
"data-slot": "select-item-indicator",
|
|
5361
5519
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
5362
|
-
children: /* @__PURE__ */ (0,
|
|
5520
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui27.Select.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react20.CheckIcon, { className: "size-4 text-primary" }) })
|
|
5363
5521
|
}
|
|
5364
5522
|
),
|
|
5365
|
-
/* @__PURE__ */ (0,
|
|
5523
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_radix_ui27.Select.ItemText, { children })
|
|
5366
5524
|
]
|
|
5367
5525
|
})
|
|
5368
5526
|
);
|
|
@@ -5373,7 +5531,7 @@ function SelectSeparator(_a) {
|
|
|
5373
5531
|
} = _b, props = __objRest(_b, [
|
|
5374
5532
|
"className"
|
|
5375
5533
|
]);
|
|
5376
|
-
return /* @__PURE__ */ (0,
|
|
5534
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5377
5535
|
import_radix_ui27.Select.Separator,
|
|
5378
5536
|
__spreadValues({
|
|
5379
5537
|
"data-slot": "select-separator",
|
|
@@ -5387,7 +5545,7 @@ function SelectScrollUpButton(_a) {
|
|
|
5387
5545
|
} = _b, props = __objRest(_b, [
|
|
5388
5546
|
"className"
|
|
5389
5547
|
]);
|
|
5390
|
-
return /* @__PURE__ */ (0,
|
|
5548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5391
5549
|
import_radix_ui27.Select.ScrollUpButton,
|
|
5392
5550
|
__spreadProps(__spreadValues({
|
|
5393
5551
|
"data-slot": "select-scroll-up-button",
|
|
@@ -5396,7 +5554,7 @@ function SelectScrollUpButton(_a) {
|
|
|
5396
5554
|
className
|
|
5397
5555
|
)
|
|
5398
5556
|
}, props), {
|
|
5399
|
-
children: /* @__PURE__ */ (0,
|
|
5557
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react20.ChevronUpIcon, { className: "size-4" })
|
|
5400
5558
|
})
|
|
5401
5559
|
);
|
|
5402
5560
|
}
|
|
@@ -5406,7 +5564,7 @@ function SelectScrollDownButton(_a) {
|
|
|
5406
5564
|
} = _b, props = __objRest(_b, [
|
|
5407
5565
|
"className"
|
|
5408
5566
|
]);
|
|
5409
|
-
return /* @__PURE__ */ (0,
|
|
5567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
5410
5568
|
import_radix_ui27.Select.ScrollDownButton,
|
|
5411
5569
|
__spreadProps(__spreadValues({
|
|
5412
5570
|
"data-slot": "select-scroll-down-button",
|
|
@@ -5415,30 +5573,30 @@ function SelectScrollDownButton(_a) {
|
|
|
5415
5573
|
className
|
|
5416
5574
|
)
|
|
5417
5575
|
}, props), {
|
|
5418
|
-
children: /* @__PURE__ */ (0,
|
|
5576
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react20.ChevronDownIcon, { className: "size-4" })
|
|
5419
5577
|
})
|
|
5420
5578
|
);
|
|
5421
5579
|
}
|
|
5422
5580
|
|
|
5423
5581
|
// components/ui/sheet.tsx
|
|
5424
|
-
var
|
|
5582
|
+
var import_lucide_react21 = require("lucide-react");
|
|
5425
5583
|
var import_radix_ui28 = require("radix-ui");
|
|
5426
|
-
var
|
|
5584
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
5427
5585
|
function Sheet(_a) {
|
|
5428
5586
|
var props = __objRest(_a, []);
|
|
5429
|
-
return /* @__PURE__ */ (0,
|
|
5587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui28.Dialog.Root, __spreadValues({ "data-slot": "sheet" }, props));
|
|
5430
5588
|
}
|
|
5431
5589
|
function SheetTrigger(_a) {
|
|
5432
5590
|
var props = __objRest(_a, []);
|
|
5433
|
-
return /* @__PURE__ */ (0,
|
|
5591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui28.Dialog.Trigger, __spreadValues({ "data-slot": "sheet-trigger" }, props));
|
|
5434
5592
|
}
|
|
5435
5593
|
function SheetClose(_a) {
|
|
5436
5594
|
var props = __objRest(_a, []);
|
|
5437
|
-
return /* @__PURE__ */ (0,
|
|
5595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui28.Dialog.Close, __spreadValues({ "data-slot": "sheet-close" }, props));
|
|
5438
5596
|
}
|
|
5439
5597
|
function SheetPortal(_a) {
|
|
5440
5598
|
var props = __objRest(_a, []);
|
|
5441
|
-
return /* @__PURE__ */ (0,
|
|
5599
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_radix_ui28.Dialog.Portal, __spreadValues({ "data-slot": "sheet-portal" }, props));
|
|
5442
5600
|
}
|
|
5443
5601
|
function SheetOverlay(_a) {
|
|
5444
5602
|
var _b = _a, {
|
|
@@ -5446,7 +5604,7 @@ function SheetOverlay(_a) {
|
|
|
5446
5604
|
} = _b, props = __objRest(_b, [
|
|
5447
5605
|
"className"
|
|
5448
5606
|
]);
|
|
5449
|
-
return /* @__PURE__ */ (0,
|
|
5607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5450
5608
|
import_radix_ui28.Dialog.Overlay,
|
|
5451
5609
|
__spreadValues({
|
|
5452
5610
|
"data-slot": "sheet-overlay",
|
|
@@ -5469,9 +5627,9 @@ function SheetContent(_a) {
|
|
|
5469
5627
|
"side",
|
|
5470
5628
|
"showCloseButton"
|
|
5471
5629
|
]);
|
|
5472
|
-
return /* @__PURE__ */ (0,
|
|
5473
|
-
/* @__PURE__ */ (0,
|
|
5474
|
-
/* @__PURE__ */ (0,
|
|
5630
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(SheetPortal, { children: [
|
|
5631
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SheetOverlay, {}),
|
|
5632
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
5475
5633
|
import_radix_ui28.Dialog.Content,
|
|
5476
5634
|
__spreadProps(__spreadValues({
|
|
5477
5635
|
"data-slot": "sheet-content",
|
|
@@ -5486,9 +5644,9 @@ function SheetContent(_a) {
|
|
|
5486
5644
|
}, props), {
|
|
5487
5645
|
children: [
|
|
5488
5646
|
children,
|
|
5489
|
-
showCloseButton && /* @__PURE__ */ (0,
|
|
5490
|
-
/* @__PURE__ */ (0,
|
|
5491
|
-
/* @__PURE__ */ (0,
|
|
5647
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_radix_ui28.Dialog.Close, { className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-prominent transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
5648
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react21.XIcon, { className: "size-4" }),
|
|
5649
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "sr-only", children: "Close" })
|
|
5492
5650
|
] })
|
|
5493
5651
|
]
|
|
5494
5652
|
})
|
|
@@ -5497,7 +5655,7 @@ function SheetContent(_a) {
|
|
|
5497
5655
|
}
|
|
5498
5656
|
function SheetHeader(_a) {
|
|
5499
5657
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5500
|
-
return /* @__PURE__ */ (0,
|
|
5658
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5501
5659
|
"div",
|
|
5502
5660
|
__spreadValues({
|
|
5503
5661
|
"data-slot": "sheet-header",
|
|
@@ -5507,7 +5665,7 @@ function SheetHeader(_a) {
|
|
|
5507
5665
|
}
|
|
5508
5666
|
function SheetFooter(_a) {
|
|
5509
5667
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5510
|
-
return /* @__PURE__ */ (0,
|
|
5668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5511
5669
|
"div",
|
|
5512
5670
|
__spreadValues({
|
|
5513
5671
|
"data-slot": "sheet-footer",
|
|
@@ -5521,7 +5679,7 @@ function SheetTitle(_a) {
|
|
|
5521
5679
|
} = _b, props = __objRest(_b, [
|
|
5522
5680
|
"className"
|
|
5523
5681
|
]);
|
|
5524
|
-
return /* @__PURE__ */ (0,
|
|
5682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5525
5683
|
import_radix_ui28.Dialog.Title,
|
|
5526
5684
|
__spreadValues({
|
|
5527
5685
|
"data-slot": "sheet-title",
|
|
@@ -5535,7 +5693,7 @@ function SheetDescription(_a) {
|
|
|
5535
5693
|
} = _b, props = __objRest(_b, [
|
|
5536
5694
|
"className"
|
|
5537
5695
|
]);
|
|
5538
|
-
return /* @__PURE__ */ (0,
|
|
5696
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5539
5697
|
import_radix_ui28.Dialog.Description,
|
|
5540
5698
|
__spreadValues({
|
|
5541
5699
|
"data-slot": "sheet-description",
|
|
@@ -5545,17 +5703,17 @@ function SheetDescription(_a) {
|
|
|
5545
5703
|
}
|
|
5546
5704
|
|
|
5547
5705
|
// components/ui/sidebar.tsx
|
|
5548
|
-
var
|
|
5706
|
+
var React12 = __toESM(require("react"), 1);
|
|
5549
5707
|
var import_class_variance_authority12 = require("class-variance-authority");
|
|
5550
|
-
var
|
|
5708
|
+
var import_lucide_react22 = require("lucide-react");
|
|
5551
5709
|
var import_radix_ui30 = require("radix-ui");
|
|
5552
5710
|
|
|
5553
5711
|
// hooks/use-mobile.ts
|
|
5554
|
-
var
|
|
5712
|
+
var React10 = __toESM(require("react"), 1);
|
|
5555
5713
|
var MOBILE_BREAKPOINT = 768;
|
|
5556
5714
|
function useIsMobile() {
|
|
5557
|
-
const [isMobile, setIsMobile] =
|
|
5558
|
-
|
|
5715
|
+
const [isMobile, setIsMobile] = React10.useState(void 0);
|
|
5716
|
+
React10.useEffect(() => {
|
|
5559
5717
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
5560
5718
|
const onChange = () => {
|
|
5561
5719
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -5568,10 +5726,10 @@ function useIsMobile() {
|
|
|
5568
5726
|
}
|
|
5569
5727
|
|
|
5570
5728
|
// components/ui/skeleton.tsx
|
|
5571
|
-
var
|
|
5729
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
5572
5730
|
function Skeleton(_a) {
|
|
5573
5731
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5574
|
-
return /* @__PURE__ */ (0,
|
|
5732
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
5575
5733
|
"div",
|
|
5576
5734
|
__spreadValues({
|
|
5577
5735
|
"data-slot": "skeleton",
|
|
@@ -5581,17 +5739,17 @@ function Skeleton(_a) {
|
|
|
5581
5739
|
}
|
|
5582
5740
|
|
|
5583
5741
|
// components/ui/tooltip.tsx
|
|
5584
|
-
var
|
|
5742
|
+
var React11 = __toESM(require("react"), 1);
|
|
5585
5743
|
var import_radix_ui29 = require("radix-ui");
|
|
5586
|
-
var
|
|
5587
|
-
var TooltipModeContext =
|
|
5744
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
5745
|
+
var TooltipModeContext = React11.createContext("tooltip");
|
|
5588
5746
|
function TooltipProvider(_a) {
|
|
5589
5747
|
var _b = _a, {
|
|
5590
5748
|
delayDuration = 0
|
|
5591
5749
|
} = _b, props = __objRest(_b, [
|
|
5592
5750
|
"delayDuration"
|
|
5593
5751
|
]);
|
|
5594
|
-
return /* @__PURE__ */ (0,
|
|
5752
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
5595
5753
|
import_radix_ui29.Tooltip.Provider,
|
|
5596
5754
|
__spreadValues({
|
|
5597
5755
|
"data-slot": "tooltip-provider",
|
|
@@ -5608,9 +5766,9 @@ function Tooltip2(_a) {
|
|
|
5608
5766
|
const isMobile = useIsMobile();
|
|
5609
5767
|
const mode = isMobile ? "drawer" : "tooltip";
|
|
5610
5768
|
if (mode === "drawer") {
|
|
5611
|
-
return /* @__PURE__ */ (0,
|
|
5769
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TooltipModeContext.Provider, { value: "drawer", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Drawer, { children }) });
|
|
5612
5770
|
}
|
|
5613
|
-
return /* @__PURE__ */ (0,
|
|
5771
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TooltipModeContext.Provider, { value: "tooltip", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_radix_ui29.Tooltip.Root, __spreadProps(__spreadValues({ "data-slot": "tooltip" }, props), { children })) });
|
|
5614
5772
|
}
|
|
5615
5773
|
function TooltipTrigger(_a) {
|
|
5616
5774
|
var _b = _a, {
|
|
@@ -5618,11 +5776,11 @@ function TooltipTrigger(_a) {
|
|
|
5618
5776
|
} = _b, props = __objRest(_b, [
|
|
5619
5777
|
"children"
|
|
5620
5778
|
]);
|
|
5621
|
-
const mode =
|
|
5779
|
+
const mode = React11.useContext(TooltipModeContext);
|
|
5622
5780
|
if (mode === "drawer") {
|
|
5623
|
-
return /* @__PURE__ */ (0,
|
|
5781
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DrawerTrigger, __spreadProps(__spreadValues({ "data-slot": "tooltip-trigger" }, props), { children }));
|
|
5624
5782
|
}
|
|
5625
|
-
return /* @__PURE__ */ (0,
|
|
5783
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_radix_ui29.Tooltip.Trigger, __spreadProps(__spreadValues({ "data-slot": "tooltip-trigger" }, props), { children }));
|
|
5626
5784
|
}
|
|
5627
5785
|
function TooltipContent(_a) {
|
|
5628
5786
|
var _b = _a, {
|
|
@@ -5640,17 +5798,17 @@ function TooltipContent(_a) {
|
|
|
5640
5798
|
"closeLabel",
|
|
5641
5799
|
"children"
|
|
5642
5800
|
]);
|
|
5643
|
-
const mode =
|
|
5801
|
+
const mode = React11.useContext(TooltipModeContext);
|
|
5644
5802
|
if (mode === "drawer") {
|
|
5645
|
-
return /* @__PURE__ */ (0,
|
|
5646
|
-
/* @__PURE__ */ (0,
|
|
5647
|
-
/* @__PURE__ */ (0,
|
|
5648
|
-
/* @__PURE__ */ (0,
|
|
5803
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(DrawerContent, { "data-slot": "tooltip-content", "data-variant": variant, children: [
|
|
5804
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DrawerHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DrawerTitle, { children: title }) }),
|
|
5805
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: cn("p-4 text-sm text-on-subtle", className), children }),
|
|
5806
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DrawerFooter, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DrawerClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Button, { variant: "primary", size: "md", children: closeLabel }) }) })
|
|
5649
5807
|
] });
|
|
5650
5808
|
}
|
|
5651
5809
|
const surfaceClasses = variant === "inverse" ? "bg-prominent text-on-prominent shadow-sm" : "bg-primary text-on-primary";
|
|
5652
5810
|
const arrowClasses = variant === "inverse" ? "fill-prominent" : "fill-primary";
|
|
5653
|
-
return /* @__PURE__ */ (0,
|
|
5811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_radix_ui29.Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
5654
5812
|
import_radix_ui29.Tooltip.Content,
|
|
5655
5813
|
__spreadProps(__spreadValues({
|
|
5656
5814
|
"data-slot": "tooltip-content",
|
|
@@ -5664,23 +5822,23 @@ function TooltipContent(_a) {
|
|
|
5664
5822
|
}, props), {
|
|
5665
5823
|
children: [
|
|
5666
5824
|
children,
|
|
5667
|
-
/* @__PURE__ */ (0,
|
|
5825
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_radix_ui29.Tooltip.Arrow, { className: arrowClasses })
|
|
5668
5826
|
]
|
|
5669
5827
|
})
|
|
5670
5828
|
) });
|
|
5671
5829
|
}
|
|
5672
5830
|
|
|
5673
5831
|
// components/ui/sidebar.tsx
|
|
5674
|
-
var
|
|
5832
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
5675
5833
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
5676
5834
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
5677
5835
|
var SIDEBAR_WIDTH = "16rem";
|
|
5678
5836
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
5679
5837
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
5680
5838
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
5681
|
-
var SidebarContext =
|
|
5839
|
+
var SidebarContext = React12.createContext(null);
|
|
5682
5840
|
function useSidebar() {
|
|
5683
|
-
const context =
|
|
5841
|
+
const context = React12.useContext(SidebarContext);
|
|
5684
5842
|
if (!context) {
|
|
5685
5843
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
5686
5844
|
}
|
|
@@ -5703,10 +5861,10 @@ function SidebarProvider(_a) {
|
|
|
5703
5861
|
"children"
|
|
5704
5862
|
]);
|
|
5705
5863
|
const isMobile = useIsMobile();
|
|
5706
|
-
const [openMobile, setOpenMobile] =
|
|
5707
|
-
const [_open, _setOpen] =
|
|
5864
|
+
const [openMobile, setOpenMobile] = React12.useState(false);
|
|
5865
|
+
const [_open, _setOpen] = React12.useState(defaultOpen);
|
|
5708
5866
|
const open = openProp != null ? openProp : _open;
|
|
5709
|
-
const setOpen =
|
|
5867
|
+
const setOpen = React12.useCallback(
|
|
5710
5868
|
(value) => {
|
|
5711
5869
|
const openState = typeof value === "function" ? value(open) : value;
|
|
5712
5870
|
if (setOpenProp) {
|
|
@@ -5718,10 +5876,10 @@ function SidebarProvider(_a) {
|
|
|
5718
5876
|
},
|
|
5719
5877
|
[setOpenProp, open]
|
|
5720
5878
|
);
|
|
5721
|
-
const toggleSidebar =
|
|
5879
|
+
const toggleSidebar = React12.useCallback(() => {
|
|
5722
5880
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
5723
5881
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
5724
|
-
|
|
5882
|
+
React12.useEffect(() => {
|
|
5725
5883
|
const handleKeyDown = (event) => {
|
|
5726
5884
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
5727
5885
|
event.preventDefault();
|
|
@@ -5732,7 +5890,7 @@ function SidebarProvider(_a) {
|
|
|
5732
5890
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
5733
5891
|
}, [toggleSidebar]);
|
|
5734
5892
|
const state = open ? "expanded" : "collapsed";
|
|
5735
|
-
const contextValue =
|
|
5893
|
+
const contextValue = React12.useMemo(
|
|
5736
5894
|
() => ({
|
|
5737
5895
|
state,
|
|
5738
5896
|
open,
|
|
@@ -5744,7 +5902,7 @@ function SidebarProvider(_a) {
|
|
|
5744
5902
|
}),
|
|
5745
5903
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
5746
5904
|
);
|
|
5747
|
-
return /* @__PURE__ */ (0,
|
|
5905
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5748
5906
|
"div",
|
|
5749
5907
|
__spreadProps(__spreadValues({
|
|
5750
5908
|
"data-slot": "sidebar-wrapper",
|
|
@@ -5777,7 +5935,7 @@ function Sidebar(_a) {
|
|
|
5777
5935
|
]);
|
|
5778
5936
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
5779
5937
|
if (collapsible === "none") {
|
|
5780
|
-
return /* @__PURE__ */ (0,
|
|
5938
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5781
5939
|
"div",
|
|
5782
5940
|
__spreadProps(__spreadValues({
|
|
5783
5941
|
"data-slot": "sidebar",
|
|
@@ -5791,7 +5949,7 @@ function Sidebar(_a) {
|
|
|
5791
5949
|
);
|
|
5792
5950
|
}
|
|
5793
5951
|
if (isMobile) {
|
|
5794
|
-
return /* @__PURE__ */ (0,
|
|
5952
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Sheet, __spreadProps(__spreadValues({ open: openMobile, onOpenChange: setOpenMobile }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
5795
5953
|
SheetContent,
|
|
5796
5954
|
{
|
|
5797
5955
|
"data-sidebar": "sidebar",
|
|
@@ -5803,16 +5961,16 @@ function Sidebar(_a) {
|
|
|
5803
5961
|
},
|
|
5804
5962
|
side,
|
|
5805
5963
|
children: [
|
|
5806
|
-
/* @__PURE__ */ (0,
|
|
5807
|
-
/* @__PURE__ */ (0,
|
|
5808
|
-
/* @__PURE__ */ (0,
|
|
5964
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(SheetHeader, { className: "sr-only", children: [
|
|
5965
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SheetTitle, { children: "Sidebar" }),
|
|
5966
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
5809
5967
|
] }),
|
|
5810
|
-
/* @__PURE__ */ (0,
|
|
5968
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex h-full w-full flex-col", children })
|
|
5811
5969
|
]
|
|
5812
5970
|
}
|
|
5813
5971
|
) }));
|
|
5814
5972
|
}
|
|
5815
|
-
return /* @__PURE__ */ (0,
|
|
5973
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
5816
5974
|
"div",
|
|
5817
5975
|
{
|
|
5818
5976
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -5822,7 +5980,7 @@ function Sidebar(_a) {
|
|
|
5822
5980
|
"data-side": side,
|
|
5823
5981
|
"data-slot": "sidebar",
|
|
5824
5982
|
children: [
|
|
5825
|
-
/* @__PURE__ */ (0,
|
|
5983
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5826
5984
|
"div",
|
|
5827
5985
|
{
|
|
5828
5986
|
"data-slot": "sidebar-gap",
|
|
@@ -5834,7 +5992,7 @@ function Sidebar(_a) {
|
|
|
5834
5992
|
)
|
|
5835
5993
|
}
|
|
5836
5994
|
),
|
|
5837
|
-
/* @__PURE__ */ (0,
|
|
5995
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5838
5996
|
"div",
|
|
5839
5997
|
__spreadProps(__spreadValues({
|
|
5840
5998
|
"data-slot": "sidebar-container",
|
|
@@ -5846,7 +6004,7 @@ function Sidebar(_a) {
|
|
|
5846
6004
|
className
|
|
5847
6005
|
)
|
|
5848
6006
|
}, props), {
|
|
5849
|
-
children: /* @__PURE__ */ (0,
|
|
6007
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5850
6008
|
"div",
|
|
5851
6009
|
{
|
|
5852
6010
|
"data-sidebar": "sidebar",
|
|
@@ -5870,7 +6028,7 @@ function SidebarTrigger(_a) {
|
|
|
5870
6028
|
"onClick"
|
|
5871
6029
|
]);
|
|
5872
6030
|
const { toggleSidebar } = useSidebar();
|
|
5873
|
-
return /* @__PURE__ */ (0,
|
|
6031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
5874
6032
|
Button,
|
|
5875
6033
|
__spreadProps(__spreadValues({
|
|
5876
6034
|
"data-sidebar": "trigger",
|
|
@@ -5884,8 +6042,8 @@ function SidebarTrigger(_a) {
|
|
|
5884
6042
|
}
|
|
5885
6043
|
}, props), {
|
|
5886
6044
|
children: [
|
|
5887
|
-
/* @__PURE__ */ (0,
|
|
5888
|
-
/* @__PURE__ */ (0,
|
|
6045
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react22.PanelLeftIcon, {}),
|
|
6046
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
5889
6047
|
]
|
|
5890
6048
|
})
|
|
5891
6049
|
);
|
|
@@ -5893,7 +6051,7 @@ function SidebarTrigger(_a) {
|
|
|
5893
6051
|
function SidebarRail(_a) {
|
|
5894
6052
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5895
6053
|
const { toggleSidebar } = useSidebar();
|
|
5896
|
-
return /* @__PURE__ */ (0,
|
|
6054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5897
6055
|
"button",
|
|
5898
6056
|
__spreadValues({
|
|
5899
6057
|
"data-sidebar": "rail",
|
|
@@ -5916,7 +6074,7 @@ function SidebarRail(_a) {
|
|
|
5916
6074
|
}
|
|
5917
6075
|
function SidebarInset(_a) {
|
|
5918
6076
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5919
|
-
return /* @__PURE__ */ (0,
|
|
6077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5920
6078
|
"main",
|
|
5921
6079
|
__spreadValues({
|
|
5922
6080
|
"data-slot": "sidebar-inset",
|
|
@@ -5934,7 +6092,7 @@ function SidebarInput(_a) {
|
|
|
5934
6092
|
} = _b, props = __objRest(_b, [
|
|
5935
6093
|
"className"
|
|
5936
6094
|
]);
|
|
5937
|
-
return /* @__PURE__ */ (0,
|
|
6095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5938
6096
|
Input,
|
|
5939
6097
|
__spreadValues({
|
|
5940
6098
|
"data-slot": "sidebar-input",
|
|
@@ -5945,7 +6103,7 @@ function SidebarInput(_a) {
|
|
|
5945
6103
|
}
|
|
5946
6104
|
function SidebarHeader(_a) {
|
|
5947
6105
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5948
|
-
return /* @__PURE__ */ (0,
|
|
6106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5949
6107
|
"div",
|
|
5950
6108
|
__spreadValues({
|
|
5951
6109
|
"data-slot": "sidebar-header",
|
|
@@ -5956,7 +6114,7 @@ function SidebarHeader(_a) {
|
|
|
5956
6114
|
}
|
|
5957
6115
|
function SidebarFooter(_a) {
|
|
5958
6116
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5959
|
-
return /* @__PURE__ */ (0,
|
|
6117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5960
6118
|
"div",
|
|
5961
6119
|
__spreadValues({
|
|
5962
6120
|
"data-slot": "sidebar-footer",
|
|
@@ -5971,7 +6129,7 @@ function SidebarSeparator(_a) {
|
|
|
5971
6129
|
} = _b, props = __objRest(_b, [
|
|
5972
6130
|
"className"
|
|
5973
6131
|
]);
|
|
5974
|
-
return /* @__PURE__ */ (0,
|
|
6132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5975
6133
|
Separator,
|
|
5976
6134
|
__spreadValues({
|
|
5977
6135
|
"data-slot": "sidebar-separator",
|
|
@@ -5982,7 +6140,7 @@ function SidebarSeparator(_a) {
|
|
|
5982
6140
|
}
|
|
5983
6141
|
function SidebarContent(_a) {
|
|
5984
6142
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5985
|
-
return /* @__PURE__ */ (0,
|
|
6143
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5986
6144
|
"div",
|
|
5987
6145
|
__spreadValues({
|
|
5988
6146
|
"data-slot": "sidebar-content",
|
|
@@ -5996,7 +6154,7 @@ function SidebarContent(_a) {
|
|
|
5996
6154
|
}
|
|
5997
6155
|
function SidebarGroup(_a) {
|
|
5998
6156
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5999
|
-
return /* @__PURE__ */ (0,
|
|
6157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6000
6158
|
"div",
|
|
6001
6159
|
__spreadValues({
|
|
6002
6160
|
"data-slot": "sidebar-group",
|
|
@@ -6014,7 +6172,7 @@ function SidebarGroupLabel(_a) {
|
|
|
6014
6172
|
"asChild"
|
|
6015
6173
|
]);
|
|
6016
6174
|
const Comp = asChild ? import_radix_ui30.Slot.Root : "div";
|
|
6017
|
-
return /* @__PURE__ */ (0,
|
|
6175
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6018
6176
|
Comp,
|
|
6019
6177
|
__spreadValues({
|
|
6020
6178
|
"data-slot": "sidebar-group-label",
|
|
@@ -6036,7 +6194,7 @@ function SidebarGroupAction(_a) {
|
|
|
6036
6194
|
"asChild"
|
|
6037
6195
|
]);
|
|
6038
6196
|
const Comp = asChild ? import_radix_ui30.Slot.Root : "button";
|
|
6039
|
-
return /* @__PURE__ */ (0,
|
|
6197
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6040
6198
|
Comp,
|
|
6041
6199
|
__spreadValues({
|
|
6042
6200
|
"data-slot": "sidebar-group-action",
|
|
@@ -6057,7 +6215,7 @@ function SidebarGroupContent(_a) {
|
|
|
6057
6215
|
} = _b, props = __objRest(_b, [
|
|
6058
6216
|
"className"
|
|
6059
6217
|
]);
|
|
6060
|
-
return /* @__PURE__ */ (0,
|
|
6218
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6061
6219
|
"div",
|
|
6062
6220
|
__spreadValues({
|
|
6063
6221
|
"data-slot": "sidebar-group-content",
|
|
@@ -6068,7 +6226,7 @@ function SidebarGroupContent(_a) {
|
|
|
6068
6226
|
}
|
|
6069
6227
|
function SidebarMenu(_a) {
|
|
6070
6228
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6071
|
-
return /* @__PURE__ */ (0,
|
|
6229
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6072
6230
|
"ul",
|
|
6073
6231
|
__spreadValues({
|
|
6074
6232
|
"data-slot": "sidebar-menu",
|
|
@@ -6079,7 +6237,7 @@ function SidebarMenu(_a) {
|
|
|
6079
6237
|
}
|
|
6080
6238
|
function SidebarMenuItem(_a) {
|
|
6081
6239
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6082
|
-
return /* @__PURE__ */ (0,
|
|
6240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6083
6241
|
"li",
|
|
6084
6242
|
__spreadValues({
|
|
6085
6243
|
"data-slot": "sidebar-menu-item",
|
|
@@ -6126,7 +6284,7 @@ function SidebarMenuButton(_a) {
|
|
|
6126
6284
|
]);
|
|
6127
6285
|
const Comp = asChild ? import_radix_ui30.Slot.Root : "button";
|
|
6128
6286
|
const { isMobile, state } = useSidebar();
|
|
6129
|
-
const button = /* @__PURE__ */ (0,
|
|
6287
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6130
6288
|
Comp,
|
|
6131
6289
|
__spreadValues({
|
|
6132
6290
|
"data-slot": "sidebar-menu-button",
|
|
@@ -6144,9 +6302,9 @@ function SidebarMenuButton(_a) {
|
|
|
6144
6302
|
children: tooltip
|
|
6145
6303
|
};
|
|
6146
6304
|
}
|
|
6147
|
-
return /* @__PURE__ */ (0,
|
|
6148
|
-
/* @__PURE__ */ (0,
|
|
6149
|
-
/* @__PURE__ */ (0,
|
|
6305
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Tooltip2, { children: [
|
|
6306
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TooltipTrigger, { asChild: true, children: button }),
|
|
6307
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6150
6308
|
TooltipContent,
|
|
6151
6309
|
__spreadValues({
|
|
6152
6310
|
side: "right",
|
|
@@ -6167,7 +6325,7 @@ function SidebarMenuAction(_a) {
|
|
|
6167
6325
|
"showOnHover"
|
|
6168
6326
|
]);
|
|
6169
6327
|
const Comp = asChild ? import_radix_ui30.Slot.Root : "button";
|
|
6170
|
-
return /* @__PURE__ */ (0,
|
|
6328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6171
6329
|
Comp,
|
|
6172
6330
|
__spreadValues({
|
|
6173
6331
|
"data-slot": "sidebar-menu-action",
|
|
@@ -6192,7 +6350,7 @@ function SidebarMenuBadge(_a) {
|
|
|
6192
6350
|
} = _b, props = __objRest(_b, [
|
|
6193
6351
|
"className"
|
|
6194
6352
|
]);
|
|
6195
|
-
return /* @__PURE__ */ (0,
|
|
6353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6196
6354
|
"div",
|
|
6197
6355
|
__spreadValues({
|
|
6198
6356
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -6218,7 +6376,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
6218
6376
|
"showIcon"
|
|
6219
6377
|
]);
|
|
6220
6378
|
const width = "70%";
|
|
6221
|
-
return /* @__PURE__ */ (0,
|
|
6379
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
6222
6380
|
"div",
|
|
6223
6381
|
__spreadProps(__spreadValues({
|
|
6224
6382
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -6226,14 +6384,14 @@ function SidebarMenuSkeleton(_a) {
|
|
|
6226
6384
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className)
|
|
6227
6385
|
}, props), {
|
|
6228
6386
|
children: [
|
|
6229
|
-
showIcon && /* @__PURE__ */ (0,
|
|
6387
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6230
6388
|
Skeleton,
|
|
6231
6389
|
{
|
|
6232
6390
|
className: "size-4 rounded-md",
|
|
6233
6391
|
"data-sidebar": "menu-skeleton-icon"
|
|
6234
6392
|
}
|
|
6235
6393
|
),
|
|
6236
|
-
/* @__PURE__ */ (0,
|
|
6394
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6237
6395
|
Skeleton,
|
|
6238
6396
|
{
|
|
6239
6397
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -6249,7 +6407,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
6249
6407
|
}
|
|
6250
6408
|
function SidebarMenuSub(_a) {
|
|
6251
6409
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6252
|
-
return /* @__PURE__ */ (0,
|
|
6410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6253
6411
|
"ul",
|
|
6254
6412
|
__spreadValues({
|
|
6255
6413
|
"data-slot": "sidebar-menu-sub",
|
|
@@ -6268,7 +6426,7 @@ function SidebarMenuSubItem(_a) {
|
|
|
6268
6426
|
} = _b, props = __objRest(_b, [
|
|
6269
6427
|
"className"
|
|
6270
6428
|
]);
|
|
6271
|
-
return /* @__PURE__ */ (0,
|
|
6429
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6272
6430
|
"li",
|
|
6273
6431
|
__spreadValues({
|
|
6274
6432
|
"data-slot": "sidebar-menu-sub-item",
|
|
@@ -6290,7 +6448,7 @@ function SidebarMenuSubButton(_a) {
|
|
|
6290
6448
|
"className"
|
|
6291
6449
|
]);
|
|
6292
6450
|
const Comp = asChild ? import_radix_ui30.Slot.Root : "a";
|
|
6293
|
-
return /* @__PURE__ */ (0,
|
|
6451
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6294
6452
|
Comp,
|
|
6295
6453
|
__spreadValues({
|
|
6296
6454
|
"data-slot": "sidebar-menu-sub-button",
|
|
@@ -6310,9 +6468,9 @@ function SidebarMenuSubButton(_a) {
|
|
|
6310
6468
|
}
|
|
6311
6469
|
|
|
6312
6470
|
// components/ui/slider.tsx
|
|
6313
|
-
var
|
|
6471
|
+
var React13 = __toESM(require("react"), 1);
|
|
6314
6472
|
var import_radix_ui31 = require("radix-ui");
|
|
6315
|
-
var
|
|
6473
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
6316
6474
|
function Slider(_a) {
|
|
6317
6475
|
var _b = _a, {
|
|
6318
6476
|
className,
|
|
@@ -6327,11 +6485,11 @@ function Slider(_a) {
|
|
|
6327
6485
|
"min",
|
|
6328
6486
|
"max"
|
|
6329
6487
|
]);
|
|
6330
|
-
const _values =
|
|
6488
|
+
const _values = React13.useMemo(
|
|
6331
6489
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
6332
6490
|
[value, defaultValue, min, max]
|
|
6333
6491
|
);
|
|
6334
|
-
return /* @__PURE__ */ (0,
|
|
6492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
6335
6493
|
import_radix_ui31.Slider.Root,
|
|
6336
6494
|
__spreadProps(__spreadValues({
|
|
6337
6495
|
"data-slot": "slider",
|
|
@@ -6345,14 +6503,14 @@ function Slider(_a) {
|
|
|
6345
6503
|
)
|
|
6346
6504
|
}, props), {
|
|
6347
6505
|
children: [
|
|
6348
|
-
/* @__PURE__ */ (0,
|
|
6506
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6349
6507
|
import_radix_ui31.Slider.Track,
|
|
6350
6508
|
{
|
|
6351
6509
|
"data-slot": "slider-track",
|
|
6352
6510
|
className: cn(
|
|
6353
6511
|
"relative grow overflow-hidden rounded-full bg-subtle data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
|
|
6354
6512
|
),
|
|
6355
|
-
children: /* @__PURE__ */ (0,
|
|
6513
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6356
6514
|
import_radix_ui31.Slider.Range,
|
|
6357
6515
|
{
|
|
6358
6516
|
"data-slot": "slider-range",
|
|
@@ -6363,7 +6521,7 @@ function Slider(_a) {
|
|
|
6363
6521
|
)
|
|
6364
6522
|
}
|
|
6365
6523
|
),
|
|
6366
|
-
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0,
|
|
6524
|
+
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6367
6525
|
import_radix_ui31.Slider.Thumb,
|
|
6368
6526
|
{
|
|
6369
6527
|
"data-slot": "slider-thumb",
|
|
@@ -6377,15 +6535,15 @@ function Slider(_a) {
|
|
|
6377
6535
|
}
|
|
6378
6536
|
|
|
6379
6537
|
// components/ui/toast.tsx
|
|
6380
|
-
var
|
|
6538
|
+
var import_lucide_react23 = require("lucide-react");
|
|
6381
6539
|
var import_next_themes = require("next-themes");
|
|
6382
6540
|
var import_sonner = require("sonner");
|
|
6383
|
-
var
|
|
6541
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
6384
6542
|
var Toaster = (_a) => {
|
|
6385
6543
|
var props = __objRest(_a, []);
|
|
6386
6544
|
const { theme = "system" } = (0, import_next_themes.useTheme)();
|
|
6387
6545
|
const isMobile = useIsMobile();
|
|
6388
|
-
return /* @__PURE__ */ (0,
|
|
6546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
6389
6547
|
import_sonner.Toaster,
|
|
6390
6548
|
__spreadValues({
|
|
6391
6549
|
theme,
|
|
@@ -6394,11 +6552,11 @@ var Toaster = (_a) => {
|
|
|
6394
6552
|
visibleToasts: isMobile ? 1 : 3,
|
|
6395
6553
|
duration: 4e3,
|
|
6396
6554
|
icons: {
|
|
6397
|
-
success: /* @__PURE__ */ (0,
|
|
6398
|
-
info: /* @__PURE__ */ (0,
|
|
6399
|
-
warning: /* @__PURE__ */ (0,
|
|
6400
|
-
error: /* @__PURE__ */ (0,
|
|
6401
|
-
loading: /* @__PURE__ */ (0,
|
|
6555
|
+
success: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react23.CircleCheckIcon, { className: "size-4" }),
|
|
6556
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react23.InfoIcon, { className: "size-4" }),
|
|
6557
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react23.TriangleAlertIcon, { className: "size-4" }),
|
|
6558
|
+
error: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react23.OctagonXIcon, { className: "size-4" }),
|
|
6559
|
+
loading: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react23.Loader2Icon, { className: "size-4 animate-spin" })
|
|
6402
6560
|
},
|
|
6403
6561
|
toastOptions: {
|
|
6404
6562
|
classNames: {
|
|
@@ -6419,9 +6577,9 @@ var Toaster = (_a) => {
|
|
|
6419
6577
|
};
|
|
6420
6578
|
|
|
6421
6579
|
// components/ui/stepper.tsx
|
|
6422
|
-
var
|
|
6423
|
-
var
|
|
6424
|
-
var
|
|
6580
|
+
var React14 = __toESM(require("react"), 1);
|
|
6581
|
+
var import_lucide_react24 = require("lucide-react");
|
|
6582
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
6425
6583
|
function clamp(value, min, max) {
|
|
6426
6584
|
return Math.min(Math.max(value, min), max);
|
|
6427
6585
|
}
|
|
@@ -6455,16 +6613,16 @@ function Stepper({
|
|
|
6455
6613
|
}) {
|
|
6456
6614
|
const { container, buttonSize, iconClass } = stepperSizeConfig[size];
|
|
6457
6615
|
const isControlled = controlledValue !== void 0;
|
|
6458
|
-
const [internalValue, setInternalValue] =
|
|
6616
|
+
const [internalValue, setInternalValue] = React14.useState(
|
|
6459
6617
|
clamp(defaultValue, min, max)
|
|
6460
6618
|
);
|
|
6461
6619
|
const currentValue = isControlled ? controlledValue : internalValue;
|
|
6462
6620
|
const decimalPlaces = getDecimalPlaces(step);
|
|
6463
|
-
const [displayString, setDisplayString] =
|
|
6621
|
+
const [displayString, setDisplayString] = React14.useState(
|
|
6464
6622
|
formatValue(currentValue, decimalPlaces)
|
|
6465
6623
|
);
|
|
6466
|
-
const [isFocused, setIsFocused] =
|
|
6467
|
-
|
|
6624
|
+
const [isFocused, setIsFocused] = React14.useState(false);
|
|
6625
|
+
React14.useEffect(() => {
|
|
6468
6626
|
if (!isFocused) {
|
|
6469
6627
|
setDisplayString(formatValue(currentValue, decimalPlaces));
|
|
6470
6628
|
}
|
|
@@ -6514,14 +6672,14 @@ function Stepper({
|
|
|
6514
6672
|
}
|
|
6515
6673
|
}
|
|
6516
6674
|
}
|
|
6517
|
-
return /* @__PURE__ */ (0,
|
|
6675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
6518
6676
|
InputGroup,
|
|
6519
6677
|
{
|
|
6520
6678
|
"data-slot": "stepper",
|
|
6521
6679
|
"data-disabled": disabled || void 0,
|
|
6522
6680
|
className: cn("w-32", container, className),
|
|
6523
6681
|
children: [
|
|
6524
|
-
/* @__PURE__ */ (0,
|
|
6682
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(InputGroupAddon, { align: "inline-start", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6525
6683
|
InputGroupButton,
|
|
6526
6684
|
{
|
|
6527
6685
|
size: buttonSize,
|
|
@@ -6529,10 +6687,10 @@ function Stepper({
|
|
|
6529
6687
|
onClick: handleDecrement,
|
|
6530
6688
|
disabled: disabled || currentValue <= min,
|
|
6531
6689
|
"aria-label": "Decrease value",
|
|
6532
|
-
children: /* @__PURE__ */ (0,
|
|
6690
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_lucide_react24.Minus, { className: iconClass })
|
|
6533
6691
|
}
|
|
6534
6692
|
) }),
|
|
6535
|
-
/* @__PURE__ */ (0,
|
|
6693
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6536
6694
|
InputGroupInput,
|
|
6537
6695
|
{
|
|
6538
6696
|
type: "text",
|
|
@@ -6554,9 +6712,9 @@ function Stepper({
|
|
|
6554
6712
|
className: "text-center [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
|
|
6555
6713
|
}
|
|
6556
6714
|
),
|
|
6557
|
-
/* @__PURE__ */ (0,
|
|
6558
|
-
/* @__PURE__ */ (0,
|
|
6559
|
-
/* @__PURE__ */ (0,
|
|
6715
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(InputGroupAddon, { align: "inline-end", children: [
|
|
6716
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(InputGroupText, { className: "font-normal text-on-subtle", children: "USDT" }),
|
|
6717
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6560
6718
|
InputGroupButton,
|
|
6561
6719
|
{
|
|
6562
6720
|
size: buttonSize,
|
|
@@ -6564,7 +6722,7 @@ function Stepper({
|
|
|
6564
6722
|
onClick: handleIncrement,
|
|
6565
6723
|
disabled: disabled || currentValue >= max,
|
|
6566
6724
|
"aria-label": "Increase value",
|
|
6567
|
-
children: /* @__PURE__ */ (0,
|
|
6725
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_lucide_react24.Plus, { className: iconClass })
|
|
6568
6726
|
}
|
|
6569
6727
|
)
|
|
6570
6728
|
] })
|
|
@@ -6575,7 +6733,7 @@ function Stepper({
|
|
|
6575
6733
|
|
|
6576
6734
|
// components/ui/switch.tsx
|
|
6577
6735
|
var import_radix_ui32 = require("radix-ui");
|
|
6578
|
-
var
|
|
6736
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
6579
6737
|
function Switch(_a) {
|
|
6580
6738
|
var _b = _a, {
|
|
6581
6739
|
className,
|
|
@@ -6584,7 +6742,7 @@ function Switch(_a) {
|
|
|
6584
6742
|
"className",
|
|
6585
6743
|
"size"
|
|
6586
6744
|
]);
|
|
6587
|
-
return /* @__PURE__ */ (0,
|
|
6745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6588
6746
|
import_radix_ui32.Switch.Root,
|
|
6589
6747
|
__spreadProps(__spreadValues({
|
|
6590
6748
|
"data-slot": "switch",
|
|
@@ -6594,7 +6752,7 @@ function Switch(_a) {
|
|
|
6594
6752
|
className
|
|
6595
6753
|
)
|
|
6596
6754
|
}, props), {
|
|
6597
|
-
children: /* @__PURE__ */ (0,
|
|
6755
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
6598
6756
|
import_radix_ui32.Switch.Thumb,
|
|
6599
6757
|
{
|
|
6600
6758
|
"data-slot": "switch-thumb",
|
|
@@ -6608,15 +6766,15 @@ function Switch(_a) {
|
|
|
6608
6766
|
}
|
|
6609
6767
|
|
|
6610
6768
|
// components/ui/table.tsx
|
|
6611
|
-
var
|
|
6769
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
6612
6770
|
function Table(_a) {
|
|
6613
6771
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6614
|
-
return /* @__PURE__ */ (0,
|
|
6772
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6615
6773
|
"div",
|
|
6616
6774
|
{
|
|
6617
6775
|
"data-slot": "table-container",
|
|
6618
6776
|
className: "relative w-full overflow-x-auto",
|
|
6619
|
-
children: /* @__PURE__ */ (0,
|
|
6777
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6620
6778
|
"table",
|
|
6621
6779
|
__spreadValues({
|
|
6622
6780
|
"data-slot": "table",
|
|
@@ -6628,7 +6786,7 @@ function Table(_a) {
|
|
|
6628
6786
|
}
|
|
6629
6787
|
function TableHeader(_a) {
|
|
6630
6788
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6631
|
-
return /* @__PURE__ */ (0,
|
|
6789
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6632
6790
|
"thead",
|
|
6633
6791
|
__spreadValues({
|
|
6634
6792
|
"data-slot": "table-header",
|
|
@@ -6638,7 +6796,7 @@ function TableHeader(_a) {
|
|
|
6638
6796
|
}
|
|
6639
6797
|
function TableBody(_a) {
|
|
6640
6798
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6641
|
-
return /* @__PURE__ */ (0,
|
|
6799
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6642
6800
|
"tbody",
|
|
6643
6801
|
__spreadValues({
|
|
6644
6802
|
"data-slot": "table-body",
|
|
@@ -6648,7 +6806,7 @@ function TableBody(_a) {
|
|
|
6648
6806
|
}
|
|
6649
6807
|
function TableFooter(_a) {
|
|
6650
6808
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6651
|
-
return /* @__PURE__ */ (0,
|
|
6809
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6652
6810
|
"tfoot",
|
|
6653
6811
|
__spreadValues({
|
|
6654
6812
|
"data-slot": "table-footer",
|
|
@@ -6661,7 +6819,7 @@ function TableFooter(_a) {
|
|
|
6661
6819
|
}
|
|
6662
6820
|
function TableRow(_a) {
|
|
6663
6821
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6664
|
-
return /* @__PURE__ */ (0,
|
|
6822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6665
6823
|
"tr",
|
|
6666
6824
|
__spreadValues({
|
|
6667
6825
|
"data-slot": "table-row",
|
|
@@ -6674,7 +6832,7 @@ function TableRow(_a) {
|
|
|
6674
6832
|
}
|
|
6675
6833
|
function TableHead(_a) {
|
|
6676
6834
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6677
|
-
return /* @__PURE__ */ (0,
|
|
6835
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6678
6836
|
"th",
|
|
6679
6837
|
__spreadValues({
|
|
6680
6838
|
"data-slot": "table-head",
|
|
@@ -6687,7 +6845,7 @@ function TableHead(_a) {
|
|
|
6687
6845
|
}
|
|
6688
6846
|
function TableCell(_a) {
|
|
6689
6847
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6690
|
-
return /* @__PURE__ */ (0,
|
|
6848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6691
6849
|
"td",
|
|
6692
6850
|
__spreadValues({
|
|
6693
6851
|
"data-slot": "table-cell",
|
|
@@ -6704,7 +6862,7 @@ function TableCaption(_a) {
|
|
|
6704
6862
|
} = _b, props = __objRest(_b, [
|
|
6705
6863
|
"className"
|
|
6706
6864
|
]);
|
|
6707
|
-
return /* @__PURE__ */ (0,
|
|
6865
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6708
6866
|
"caption",
|
|
6709
6867
|
__spreadValues({
|
|
6710
6868
|
"data-slot": "table-caption",
|
|
@@ -6716,7 +6874,7 @@ function TableCaption(_a) {
|
|
|
6716
6874
|
// components/ui/tabs.tsx
|
|
6717
6875
|
var import_class_variance_authority13 = require("class-variance-authority");
|
|
6718
6876
|
var import_radix_ui33 = require("radix-ui");
|
|
6719
|
-
var
|
|
6877
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
6720
6878
|
function Tabs(_a) {
|
|
6721
6879
|
var _b = _a, {
|
|
6722
6880
|
className,
|
|
@@ -6725,7 +6883,7 @@ function Tabs(_a) {
|
|
|
6725
6883
|
"className",
|
|
6726
6884
|
"orientation"
|
|
6727
6885
|
]);
|
|
6728
|
-
return /* @__PURE__ */ (0,
|
|
6886
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6729
6887
|
import_radix_ui33.Tabs.Root,
|
|
6730
6888
|
__spreadValues({
|
|
6731
6889
|
"data-slot": "tabs",
|
|
@@ -6768,7 +6926,7 @@ function TabsList(_a) {
|
|
|
6768
6926
|
"variant",
|
|
6769
6927
|
"size"
|
|
6770
6928
|
]);
|
|
6771
|
-
return /* @__PURE__ */ (0,
|
|
6929
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6772
6930
|
import_radix_ui33.Tabs.List,
|
|
6773
6931
|
__spreadValues({
|
|
6774
6932
|
"data-slot": "tabs-list",
|
|
@@ -6786,7 +6944,7 @@ function TabsTrigger(_a) {
|
|
|
6786
6944
|
"className",
|
|
6787
6945
|
"iconPosition"
|
|
6788
6946
|
]);
|
|
6789
|
-
return /* @__PURE__ */ (0,
|
|
6947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6790
6948
|
import_radix_ui33.Tabs.Trigger,
|
|
6791
6949
|
__spreadValues({
|
|
6792
6950
|
"data-slot": "tabs-trigger",
|
|
@@ -6812,7 +6970,7 @@ function TabsContent(_a) {
|
|
|
6812
6970
|
} = _b, props = __objRest(_b, [
|
|
6813
6971
|
"className"
|
|
6814
6972
|
]);
|
|
6815
|
-
return /* @__PURE__ */ (0,
|
|
6973
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6816
6974
|
import_radix_ui33.Tabs.Content,
|
|
6817
6975
|
__spreadValues({
|
|
6818
6976
|
"data-slot": "tabs-content",
|
|
@@ -6822,8 +6980,8 @@ function TabsContent(_a) {
|
|
|
6822
6980
|
}
|
|
6823
6981
|
|
|
6824
6982
|
// components/ui/ticket-card.tsx
|
|
6825
|
-
var
|
|
6826
|
-
var
|
|
6983
|
+
var import_lucide_react25 = require("lucide-react");
|
|
6984
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
6827
6985
|
function formatBalanceValue(raw) {
|
|
6828
6986
|
const match = raw.match(/^(\D*)([\d,]+(?:\.\d+)?)(\D*)$/);
|
|
6829
6987
|
if (!match) return raw;
|
|
@@ -6847,23 +7005,23 @@ function TicketCard({
|
|
|
6847
7005
|
stubDisabled = false,
|
|
6848
7006
|
compact = false
|
|
6849
7007
|
}) {
|
|
6850
|
-
return /* @__PURE__ */ (0,
|
|
6851
|
-
/* @__PURE__ */ (0,
|
|
6852
|
-
icon && /* @__PURE__ */ (0,
|
|
6853
|
-
/* @__PURE__ */ (0,
|
|
6854
|
-
/* @__PURE__ */ (0,
|
|
6855
|
-
/* @__PURE__ */ (0,
|
|
6856
|
-
/* @__PURE__ */ (0,
|
|
6857
|
-
currency && /* @__PURE__ */ (0,
|
|
7008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: cn("flex w-full flex-col gap-2", className), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "relative flex h-20 w-full items-stretch justify-between rounded-sm bg-subtle", children: [
|
|
7009
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: cn("flex flex-1 items-center overflow-hidden", compact ? "gap-2 px-2" : "gap-4 px-4"), children: [
|
|
7010
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
7011
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex h-11 flex-col justify-center gap-1 whitespace-nowrap", children: [
|
|
7012
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "text-xs text-on-subtle", children: label }),
|
|
7013
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("p", { className: "leading-none", children: [
|
|
7014
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
7015
|
+
currency && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
6858
7016
|
" ",
|
|
6859
|
-
/* @__PURE__ */ (0,
|
|
7017
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6860
7018
|
] })
|
|
6861
7019
|
] })
|
|
6862
7020
|
] })
|
|
6863
7021
|
] }),
|
|
6864
|
-
/* @__PURE__ */ (0,
|
|
6865
|
-
/* @__PURE__ */ (0,
|
|
6866
|
-
/* @__PURE__ */ (0,
|
|
7022
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
7023
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[68px] z-10 size-6 rounded-full bg-prominent" }),
|
|
7024
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6867
7025
|
"div",
|
|
6868
7026
|
{
|
|
6869
7027
|
"aria-hidden": true,
|
|
@@ -6874,7 +7032,7 @@ function TicketCard({
|
|
|
6874
7032
|
}
|
|
6875
7033
|
}
|
|
6876
7034
|
),
|
|
6877
|
-
/* @__PURE__ */ (0,
|
|
7035
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
6878
7036
|
"button",
|
|
6879
7037
|
{
|
|
6880
7038
|
type: "button",
|
|
@@ -6888,7 +7046,7 @@ function TicketCard({
|
|
|
6888
7046
|
stubDisabled ? "cursor-not-allowed opacity-50" : "hover:bg-primary-hover"
|
|
6889
7047
|
),
|
|
6890
7048
|
children: [
|
|
6891
|
-
!stubDisabled && /* @__PURE__ */ (0,
|
|
7049
|
+
!stubDisabled && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6892
7050
|
"span",
|
|
6893
7051
|
{
|
|
6894
7052
|
"aria-hidden": true,
|
|
@@ -6898,8 +7056,8 @@ function TicketCard({
|
|
|
6898
7056
|
}
|
|
6899
7057
|
}
|
|
6900
7058
|
),
|
|
6901
|
-
/* @__PURE__ */ (0,
|
|
6902
|
-
/* @__PURE__ */ (0,
|
|
7059
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react25.ArrowRight, { className: "size-4 text-on-primary" }),
|
|
7060
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm font-semibold text-on-primary", children: stubLabel })
|
|
6903
7061
|
]
|
|
6904
7062
|
}
|
|
6905
7063
|
)
|
|
@@ -6925,58 +7083,58 @@ function CreditTicketCard({
|
|
|
6925
7083
|
badgeInfoCloseLabel,
|
|
6926
7084
|
compact = false
|
|
6927
7085
|
}) {
|
|
6928
|
-
return /* @__PURE__ */ (0,
|
|
7086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: cn("flex w-full flex-col gap-2", className), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "relative flex w-full items-stretch justify-between rounded-sm bg-subtle", children: [
|
|
6929
7087
|
(() => {
|
|
6930
7088
|
const badgeText = badgeValue || badgeCurrency ? `${badgeLabel}: ${badgeValue}${badgeCurrency ? ` ${badgeCurrency}` : ""}` : badgeLabel;
|
|
6931
|
-
const creditBadge = /* @__PURE__ */ (0,
|
|
7089
|
+
const creditBadge = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Badge, { variant: "fill-credit", size: "sm", className: "!gap-1 !font-medium !tracking-normal", children: [
|
|
6932
7090
|
badgeIcon,
|
|
6933
7091
|
badgeText,
|
|
6934
|
-
badgeInfo && /* @__PURE__ */ (0,
|
|
6935
|
-
/* @__PURE__ */ (0,
|
|
7092
|
+
badgeInfo && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Tooltip2, { children: [
|
|
7093
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6936
7094
|
"button",
|
|
6937
7095
|
{
|
|
6938
7096
|
type: "button",
|
|
6939
7097
|
"aria-label": `More info about ${badgeLabel.toLowerCase()}`,
|
|
6940
7098
|
className: "inline-flex shrink-0 items-center justify-center rounded-full text-on-semantic-boost outline-none transition-opacity hover:opacity-70 focus-visible:opacity-70 focus-visible:ring-2 focus-visible:ring-on-semantic-boost/40 cursor-pointer",
|
|
6941
|
-
children: /* @__PURE__ */ (0,
|
|
7099
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react25.Info, { className: "!size-3.5", strokeWidth: 2 })
|
|
6942
7100
|
}
|
|
6943
7101
|
) }),
|
|
6944
|
-
/* @__PURE__ */ (0,
|
|
7102
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TooltipContent, { side: badgeInfoSide, align: badgeInfoAlign, title: badgeInfoTitle, closeLabel: badgeInfoCloseLabel, variant: "inverse", className: "max-w-xs whitespace-normal", children: badgeInfo })
|
|
6945
7103
|
] }) })
|
|
6946
7104
|
] });
|
|
6947
|
-
const labelValue = /* @__PURE__ */ (0,
|
|
6948
|
-
/* @__PURE__ */ (0,
|
|
6949
|
-
/* @__PURE__ */ (0,
|
|
6950
|
-
/* @__PURE__ */ (0,
|
|
6951
|
-
currency && /* @__PURE__ */ (0,
|
|
7105
|
+
const labelValue = /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex h-11 flex-col justify-center gap-1 whitespace-nowrap", children: [
|
|
7106
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "text-xs text-on-subtle", children: label }),
|
|
7107
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("p", { className: "leading-none", children: [
|
|
7108
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
7109
|
+
currency && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
6952
7110
|
" ",
|
|
6953
|
-
/* @__PURE__ */ (0,
|
|
7111
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6954
7112
|
] })
|
|
6955
7113
|
] })
|
|
6956
7114
|
] });
|
|
6957
|
-
return /* @__PURE__ */ (0,
|
|
7115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6958
7116
|
"div",
|
|
6959
7117
|
{
|
|
6960
7118
|
className: cn(
|
|
6961
7119
|
"flex flex-1 overflow-hidden",
|
|
6962
7120
|
compact ? "flex-col gap-2 px-2 py-4" : "items-center gap-4 px-4 py-4"
|
|
6963
7121
|
),
|
|
6964
|
-
children: compact ? /* @__PURE__ */ (0,
|
|
6965
|
-
/* @__PURE__ */ (0,
|
|
6966
|
-
icon && /* @__PURE__ */ (0,
|
|
7122
|
+
children: compact ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
7123
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
7124
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
6967
7125
|
labelValue
|
|
6968
7126
|
] }),
|
|
6969
|
-
/* @__PURE__ */ (0,
|
|
6970
|
-
] }) : /* @__PURE__ */ (0,
|
|
6971
|
-
icon && /* @__PURE__ */ (0,
|
|
6972
|
-
/* @__PURE__ */ (0,
|
|
6973
|
-
/* @__PURE__ */ (0,
|
|
6974
|
-
/* @__PURE__ */ (0,
|
|
6975
|
-
/* @__PURE__ */ (0,
|
|
6976
|
-
/* @__PURE__ */ (0,
|
|
6977
|
-
currency && /* @__PURE__ */ (0,
|
|
7127
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex", children: icon ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex w-10 shrink-0 justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "w-max", children: creditBadge }) }) : creditBadge })
|
|
7128
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
7129
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
7130
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-col gap-1 whitespace-nowrap", children: [
|
|
7131
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "text-xs text-on-subtle", children: label }),
|
|
7132
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center gap-4", children: [
|
|
7133
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("p", { className: "leading-none", children: [
|
|
7134
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
7135
|
+
currency && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
6978
7136
|
" ",
|
|
6979
|
-
/* @__PURE__ */ (0,
|
|
7137
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6980
7138
|
] })
|
|
6981
7139
|
] }),
|
|
6982
7140
|
creditBadge
|
|
@@ -6986,9 +7144,9 @@ function CreditTicketCard({
|
|
|
6986
7144
|
}
|
|
6987
7145
|
);
|
|
6988
7146
|
})(),
|
|
6989
|
-
/* @__PURE__ */ (0,
|
|
6990
|
-
/* @__PURE__ */ (0,
|
|
6991
|
-
/* @__PURE__ */ (0,
|
|
7147
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
7148
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] bottom-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
7149
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6992
7150
|
"div",
|
|
6993
7151
|
{
|
|
6994
7152
|
"aria-hidden": true,
|
|
@@ -6999,7 +7157,7 @@ function CreditTicketCard({
|
|
|
6999
7157
|
}
|
|
7000
7158
|
}
|
|
7001
7159
|
),
|
|
7002
|
-
/* @__PURE__ */ (0,
|
|
7160
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
7003
7161
|
"button",
|
|
7004
7162
|
{
|
|
7005
7163
|
type: "button",
|
|
@@ -7013,7 +7171,7 @@ function CreditTicketCard({
|
|
|
7013
7171
|
stubDisabled ? "cursor-not-allowed opacity-50" : "hover:bg-primary-hover"
|
|
7014
7172
|
),
|
|
7015
7173
|
children: [
|
|
7016
|
-
!stubDisabled && /* @__PURE__ */ (0,
|
|
7174
|
+
!stubDisabled && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
7017
7175
|
"span",
|
|
7018
7176
|
{
|
|
7019
7177
|
"aria-hidden": true,
|
|
@@ -7023,8 +7181,8 @@ function CreditTicketCard({
|
|
|
7023
7181
|
}
|
|
7024
7182
|
}
|
|
7025
7183
|
),
|
|
7026
|
-
/* @__PURE__ */ (0,
|
|
7027
|
-
/* @__PURE__ */ (0,
|
|
7184
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react25.ArrowRight, { className: "size-4 text-on-primary" }),
|
|
7185
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm font-semibold text-on-primary", children: stubLabel })
|
|
7028
7186
|
]
|
|
7029
7187
|
}
|
|
7030
7188
|
)
|
|
@@ -7035,7 +7193,7 @@ var TicketCardDesktop = TicketCard;
|
|
|
7035
7193
|
// components/ui/toggle.tsx
|
|
7036
7194
|
var import_class_variance_authority14 = require("class-variance-authority");
|
|
7037
7195
|
var import_radix_ui34 = require("radix-ui");
|
|
7038
|
-
var
|
|
7196
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
7039
7197
|
var toggleVariants = (0, import_class_variance_authority14.cva)(
|
|
7040
7198
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-secondary-hover hover:text-on-prominent focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-secondary-hover data-[state=on]:border-transparent data-[state=on]:text-primary [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
7041
7199
|
{
|
|
@@ -7066,7 +7224,7 @@ function Toggle(_a) {
|
|
|
7066
7224
|
"variant",
|
|
7067
7225
|
"size"
|
|
7068
7226
|
]);
|
|
7069
|
-
return /* @__PURE__ */ (0,
|
|
7227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7070
7228
|
import_radix_ui34.Toggle.Root,
|
|
7071
7229
|
__spreadValues({
|
|
7072
7230
|
"data-slot": "toggle",
|
|
@@ -7076,10 +7234,10 @@ function Toggle(_a) {
|
|
|
7076
7234
|
}
|
|
7077
7235
|
|
|
7078
7236
|
// components/ui/toggle-group.tsx
|
|
7079
|
-
var
|
|
7237
|
+
var React15 = __toESM(require("react"), 1);
|
|
7080
7238
|
var import_radix_ui35 = require("radix-ui");
|
|
7081
|
-
var
|
|
7082
|
-
var ToggleGroupContext =
|
|
7239
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
7240
|
+
var ToggleGroupContext = React15.createContext({
|
|
7083
7241
|
size: "default",
|
|
7084
7242
|
variant: "default",
|
|
7085
7243
|
spacing: 0
|
|
@@ -7098,7 +7256,7 @@ function ToggleGroup(_a) {
|
|
|
7098
7256
|
"spacing",
|
|
7099
7257
|
"children"
|
|
7100
7258
|
]);
|
|
7101
|
-
return /* @__PURE__ */ (0,
|
|
7259
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
7102
7260
|
import_radix_ui35.ToggleGroup.Root,
|
|
7103
7261
|
__spreadProps(__spreadValues({
|
|
7104
7262
|
"data-slot": "toggle-group",
|
|
@@ -7111,7 +7269,7 @@ function ToggleGroup(_a) {
|
|
|
7111
7269
|
className
|
|
7112
7270
|
)
|
|
7113
7271
|
}, props), {
|
|
7114
|
-
children: /* @__PURE__ */ (0,
|
|
7272
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ToggleGroupContext.Provider, { value: { variant, size, spacing }, children })
|
|
7115
7273
|
})
|
|
7116
7274
|
);
|
|
7117
7275
|
}
|
|
@@ -7127,8 +7285,8 @@ function ToggleGroupItem(_a) {
|
|
|
7127
7285
|
"variant",
|
|
7128
7286
|
"size"
|
|
7129
7287
|
]);
|
|
7130
|
-
const context =
|
|
7131
|
-
return /* @__PURE__ */ (0,
|
|
7288
|
+
const context = React15.useContext(ToggleGroupContext);
|
|
7289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
7132
7290
|
import_radix_ui35.ToggleGroup.Item,
|
|
7133
7291
|
__spreadProps(__spreadValues({
|
|
7134
7292
|
"data-slot": "toggle-group-item",
|
|
@@ -7151,7 +7309,7 @@ function ToggleGroupItem(_a) {
|
|
|
7151
7309
|
}
|
|
7152
7310
|
|
|
7153
7311
|
// components/blocks/result-block.tsx
|
|
7154
|
-
var
|
|
7312
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
7155
7313
|
var THUMBS_UP_DATA_URL = "data:image/webp;base64,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";
|
|
7156
7314
|
var THUMBS_DOWN_DATA_URL = "data:image/webp;base64,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";
|
|
7157
7315
|
function ResultBlock({
|
|
@@ -7168,9 +7326,9 @@ function ResultBlock({
|
|
|
7168
7326
|
const signedAmount = isWin ? `+${amount}` : `\u2212${amount}`;
|
|
7169
7327
|
const amountColorClass = isWin ? "text-semantic-win" : "text-semantic-loss";
|
|
7170
7328
|
const haloBgClass = isWin ? "bg-semantic-win" : "bg-semantic-loss";
|
|
7171
|
-
return /* @__PURE__ */ (0,
|
|
7172
|
-
/* @__PURE__ */ (0,
|
|
7173
|
-
/* @__PURE__ */ (0,
|
|
7329
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Card, { className: "w-80 shrink-0 overflow-hidden rounded-md shadow-sm px-5 py-5 items-center gap-3", children: [
|
|
7330
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "relative flex items-center justify-center py-2", children: [
|
|
7331
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
7174
7332
|
"span",
|
|
7175
7333
|
{
|
|
7176
7334
|
"aria-hidden": true,
|
|
@@ -7178,7 +7336,7 @@ function ResultBlock({
|
|
|
7178
7336
|
className: `absolute size-24 rounded-full blur-2xl opacity-20 ${haloBgClass}`
|
|
7179
7337
|
}
|
|
7180
7338
|
),
|
|
7181
|
-
/* @__PURE__ */ (0,
|
|
7339
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
7182
7340
|
"img",
|
|
7183
7341
|
{
|
|
7184
7342
|
"data-results-motion": isWin ? "icon-win" : "icon-loss",
|
|
@@ -7188,28 +7346,28 @@ function ResultBlock({
|
|
|
7188
7346
|
}
|
|
7189
7347
|
)
|
|
7190
7348
|
] }),
|
|
7191
|
-
/* @__PURE__ */ (0,
|
|
7192
|
-
/* @__PURE__ */ (0,
|
|
7193
|
-
/* @__PURE__ */ (0,
|
|
7194
|
-
/* @__PURE__ */ (0,
|
|
7349
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-lg font-semibold text-on-prominent", children: titleText }),
|
|
7350
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("p", { className: `flex items-baseline gap-1.5 ${amountColorClass}`, children: [
|
|
7351
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "font-display text-4xl font-bold tabular-nums tracking-tight", children: signedAmount }),
|
|
7352
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-lg font-semibold", children: currency })
|
|
7195
7353
|
] }),
|
|
7196
|
-
/* @__PURE__ */ (0,
|
|
7197
|
-
/* @__PURE__ */ (0,
|
|
7354
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
7355
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Badge, { variant: "standard", size: "sm", children: [
|
|
7198
7356
|
contractLabel,
|
|
7199
|
-
pickedDigit !== void 0 && /* @__PURE__ */ (0,
|
|
7200
|
-
/* @__PURE__ */ (0,
|
|
7201
|
-
/* @__PURE__ */ (0,
|
|
7357
|
+
pickedDigit !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
|
|
7358
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { "aria-hidden": true, className: "h-3 w-px bg-border-prominent/40 mx-1" }),
|
|
7359
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "tabular-nums", children: pickedDigit })
|
|
7202
7360
|
] })
|
|
7203
7361
|
] }),
|
|
7204
|
-
/* @__PURE__ */ (0,
|
|
7362
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Badge, { variant: "standard", size: "sm", children: duration })
|
|
7205
7363
|
] }),
|
|
7206
|
-
/* @__PURE__ */ (0,
|
|
7207
|
-
ctaMode === "next-round" && /* @__PURE__ */ (0,
|
|
7208
|
-
ctaMode === "go-again" && /* @__PURE__ */ (0,
|
|
7209
|
-
ctaMode === "conversion" && /* @__PURE__ */ (0,
|
|
7210
|
-
/* @__PURE__ */ (0,
|
|
7211
|
-
/* @__PURE__ */ (0,
|
|
7212
|
-
/* @__PURE__ */ (0,
|
|
7364
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "w-full pt-2", children: [
|
|
7365
|
+
ctaMode === "next-round" && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { className: "w-full", children: "Next round" }),
|
|
7366
|
+
ctaMode === "go-again" && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { className: "w-full", children: "Go again" }),
|
|
7367
|
+
ctaMode === "conversion" && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "w-full flex flex-col gap-3", children: [
|
|
7368
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-center text-base font-semibold text-on-prominent", children: "Ready to play for real?" }),
|
|
7369
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { className: "w-full", children: "Deposit now" }),
|
|
7370
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { variant: "secondary", className: "w-full", children: "Stay in demo" })
|
|
7213
7371
|
] })
|
|
7214
7372
|
] })
|
|
7215
7373
|
] });
|
|
@@ -7220,21 +7378,21 @@ function ResultDialog({
|
|
|
7220
7378
|
primaryLabel,
|
|
7221
7379
|
secondaryLabel
|
|
7222
7380
|
}) {
|
|
7223
|
-
return /* @__PURE__ */ (0,
|
|
7224
|
-
/* @__PURE__ */ (0,
|
|
7225
|
-
/* @__PURE__ */ (0,
|
|
7226
|
-
/* @__PURE__ */ (0,
|
|
7381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Card, { className: "w-80 shrink-0 overflow-hidden rounded-md shadow-sm px-5 py-6 items-center gap-4", children: [
|
|
7382
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-col items-center gap-2 text-center", children: [
|
|
7383
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-lg font-semibold text-on-prominent", children: title }),
|
|
7384
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-sm text-on-subtle", children: body })
|
|
7227
7385
|
] }),
|
|
7228
|
-
/* @__PURE__ */ (0,
|
|
7229
|
-
/* @__PURE__ */ (0,
|
|
7230
|
-
/* @__PURE__ */ (0,
|
|
7386
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "w-full flex flex-col gap-2", children: [
|
|
7387
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { className: "w-full", children: primaryLabel }),
|
|
7388
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { variant: "secondary", className: "w-full", children: secondaryLabel })
|
|
7231
7389
|
] })
|
|
7232
7390
|
] });
|
|
7233
7391
|
}
|
|
7234
7392
|
|
|
7235
7393
|
// components/blocks/header-navigation-block.tsx
|
|
7236
|
-
var
|
|
7237
|
-
var
|
|
7394
|
+
var import_lucide_react26 = require("lucide-react");
|
|
7395
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
7238
7396
|
function HeaderNavigationBlock({
|
|
7239
7397
|
onBack,
|
|
7240
7398
|
badge,
|
|
@@ -7243,15 +7401,15 @@ function HeaderNavigationBlock({
|
|
|
7243
7401
|
actions
|
|
7244
7402
|
}) {
|
|
7245
7403
|
var _a;
|
|
7246
|
-
return /* @__PURE__ */ (0,
|
|
7247
|
-
onBack && /* @__PURE__ */ (0,
|
|
7248
|
-
/* @__PURE__ */ (0,
|
|
7249
|
-
badge && /* @__PURE__ */ (0,
|
|
7250
|
-
/* @__PURE__ */ (0,
|
|
7251
|
-
/* @__PURE__ */ (0,
|
|
7404
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "w-full min-w-80 max-w-layout-diagram-small rounded-md overflow-hidden bg-prominent", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("header", { className: "flex items-center gap-2 border-b border-border-subtle bg-prominent px-layout-margin-inline py-3", children: [
|
|
7405
|
+
onBack && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(NavigationButton, { type: "button", size: "md", "aria-label": "Back", onClick: onBack, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react26.ArrowLeft, { className: "size-5" }) }),
|
|
7406
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex min-w-0 flex-1 items-center justify-center gap-2", children: [
|
|
7407
|
+
badge && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Badge, { variant: (_a = badge.variant) != null ? _a : "fill-warning", size: "sm", children: badge.label }),
|
|
7408
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "font-display font-semibold tabular-nums text-on-prominent", children: balance.amount }),
|
|
7409
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-sm text-on-subtle", children: balance.currency })
|
|
7252
7410
|
] }),
|
|
7253
|
-
/* @__PURE__ */ (0,
|
|
7254
|
-
history && /* @__PURE__ */ (0,
|
|
7411
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex shrink-0 items-center gap-1", children: [
|
|
7412
|
+
history && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(HistoryButton, __spreadValues({}, history)),
|
|
7255
7413
|
actions
|
|
7256
7414
|
] })
|
|
7257
7415
|
] }) });
|
|
@@ -7264,9 +7422,9 @@ function HistoryButton({
|
|
|
7264
7422
|
const show = typeof count === "number" && count > 0;
|
|
7265
7423
|
const label = show ? count > 99 ? "99+" : String(count) : null;
|
|
7266
7424
|
const ariaLabel = ariaLabelOverride != null ? ariaLabelOverride : show ? `Open history, ${count} new` : "Open history";
|
|
7267
|
-
return /* @__PURE__ */ (0,
|
|
7268
|
-
/* @__PURE__ */ (0,
|
|
7269
|
-
show && /* @__PURE__ */ (0,
|
|
7425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "relative inline-flex", children: [
|
|
7426
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(NavigationButton, { type: "button", size: "md", "aria-label": ariaLabel, onClick, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react26.History, { className: "size-5" }) }),
|
|
7427
|
+
show && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
7270
7428
|
"span",
|
|
7271
7429
|
{
|
|
7272
7430
|
"aria-hidden": true,
|
|
@@ -7278,7 +7436,7 @@ function HistoryButton({
|
|
|
7278
7436
|
}
|
|
7279
7437
|
|
|
7280
7438
|
// components/blocks/faq-block.tsx
|
|
7281
|
-
var
|
|
7439
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
7282
7440
|
function FAQBlock({
|
|
7283
7441
|
eyebrow = "FAQ Section",
|
|
7284
7442
|
title = "Frequently asked questions",
|
|
@@ -7294,38 +7452,38 @@ function FAQBlock({
|
|
|
7294
7452
|
const helpCardPaddingClass = layout === "desktop" ? "p-8" : "p-6";
|
|
7295
7453
|
const gapClass = layout === "desktop" ? "gap-12" : "gap-10";
|
|
7296
7454
|
const headerGapClass = layout === "desktop" ? "gap-5" : "gap-4";
|
|
7297
|
-
return /* @__PURE__ */ (0,
|
|
7298
|
-
/* @__PURE__ */ (0,
|
|
7299
|
-
/* @__PURE__ */ (0,
|
|
7300
|
-
/* @__PURE__ */ (0,
|
|
7301
|
-
intro && /* @__PURE__ */ (0,
|
|
7455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: `w-full flex flex-col ${gapClass}`, children: [
|
|
7456
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: `flex flex-col ${headerGapClass} items-center w-full`, children: [
|
|
7457
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm text-on-subtle font-body", children: eyebrow }),
|
|
7458
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("h2", { className: headingClass, children: title }),
|
|
7459
|
+
intro && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: "text-lg text-on-subtle font-body text-center", children: intro })
|
|
7302
7460
|
] }),
|
|
7303
|
-
/* @__PURE__ */ (0,
|
|
7461
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
7304
7462
|
Accordion,
|
|
7305
7463
|
{
|
|
7306
7464
|
type: "single",
|
|
7307
7465
|
collapsible: true,
|
|
7308
7466
|
defaultValue: defaultValue != null ? defaultValue : (_a = items[0]) == null ? void 0 : _a.value,
|
|
7309
7467
|
className: "w-full",
|
|
7310
|
-
children: items.map(({ value, question, answer }) => /* @__PURE__ */ (0,
|
|
7311
|
-
/* @__PURE__ */ (0,
|
|
7312
|
-
/* @__PURE__ */ (0,
|
|
7468
|
+
children: items.map(({ value, question, answer }) => /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(AccordionItem, { value, children: [
|
|
7469
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(AccordionTrigger, { className: "text-base font-medium font-body text-on-prominent hover:no-underline", children: question }),
|
|
7470
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(AccordionContent, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: "text-sm text-on-subtle font-body pb-4", children: answer }) })
|
|
7313
7471
|
] }, value))
|
|
7314
7472
|
}
|
|
7315
7473
|
),
|
|
7316
|
-
helpCard && /* @__PURE__ */ (0,
|
|
7317
|
-
/* @__PURE__ */ (0,
|
|
7318
|
-
/* @__PURE__ */ (0,
|
|
7319
|
-
/* @__PURE__ */ (0,
|
|
7474
|
+
helpCard && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: `flex flex-col gap-6 items-center w-full bg-subtle rounded-xl ${helpCardPaddingClass}`, children: [
|
|
7475
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-col gap-2 w-full", children: [
|
|
7476
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("h3", { className: helpTitleClass, children: helpCard.title }),
|
|
7477
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: "text-base text-on-subtle font-body", children: helpCard.body })
|
|
7320
7478
|
] }),
|
|
7321
|
-
/* @__PURE__ */ (0,
|
|
7479
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Button, { size: "sm", onClick: helpCard.onCtaClick, children: helpCard.ctaLabel })
|
|
7322
7480
|
] })
|
|
7323
7481
|
] });
|
|
7324
7482
|
}
|
|
7325
7483
|
|
|
7326
7484
|
// components/blocks/hero-block.tsx
|
|
7327
|
-
var
|
|
7328
|
-
var
|
|
7485
|
+
var import_lucide_react27 = require("lucide-react");
|
|
7486
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
7329
7487
|
function HeroBlock({
|
|
7330
7488
|
layout = "centered",
|
|
7331
7489
|
tagline,
|
|
@@ -7336,31 +7494,31 @@ function HeroBlock({
|
|
|
7336
7494
|
image
|
|
7337
7495
|
}) {
|
|
7338
7496
|
if (layout === "centered") {
|
|
7339
|
-
return /* @__PURE__ */ (0,
|
|
7340
|
-
/* @__PURE__ */ (0,
|
|
7341
|
-
tagline && /* @__PURE__ */ (0,
|
|
7342
|
-
/* @__PURE__ */ (0,
|
|
7343
|
-
/* @__PURE__ */ (0,
|
|
7497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "w-full border border-border-subtle rounded-xl overflow-hidden bg-prominent", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col items-center justify-center gap-8 px-layout-margin-inline py-24 max-w-2xl mx-auto text-center", children: [
|
|
7498
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col items-center gap-6 w-full", children: [
|
|
7499
|
+
tagline && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TaglinePill, __spreadValues({}, tagline)),
|
|
7500
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("h1", { className: "text-5xl font-semibold font-display tracking-tight text-on-prominent text-center", children: heading }),
|
|
7501
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "text-lg font-body text-on-subtle text-center", children: body })
|
|
7344
7502
|
] }),
|
|
7345
|
-
/* @__PURE__ */ (0,
|
|
7503
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Button, { size: "sm", onClick: primaryCta.onClick, children: [
|
|
7346
7504
|
primaryCta.label,
|
|
7347
|
-
primaryCta.trailingArrow !== false && /* @__PURE__ */ (0,
|
|
7505
|
+
primaryCta.trailingArrow !== false && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_lucide_react27.ArrowRight, { className: "size-4" })
|
|
7348
7506
|
] })
|
|
7349
7507
|
] }) });
|
|
7350
7508
|
}
|
|
7351
|
-
return /* @__PURE__ */ (0,
|
|
7352
|
-
/* @__PURE__ */ (0,
|
|
7353
|
-
/* @__PURE__ */ (0,
|
|
7354
|
-
tagline && /* @__PURE__ */ (0,
|
|
7355
|
-
/* @__PURE__ */ (0,
|
|
7356
|
-
/* @__PURE__ */ (0,
|
|
7509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "w-full border border-border-subtle rounded-xl overflow-hidden bg-prominent", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col min-[600px]:flex-row items-center gap-layout-gutter px-layout-margin-inline py-16 min-[600px]:py-24 max-w-5xl mx-auto", children: [
|
|
7510
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col gap-6 min-[600px]:gap-8 flex-1 min-w-0 items-center min-[600px]:items-start text-center min-[600px]:text-left w-full", children: [
|
|
7511
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col gap-5 min-[600px]:gap-6 items-center min-[600px]:items-start w-full", children: [
|
|
7512
|
+
tagline && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TaglinePill, __spreadProps(__spreadValues({}, tagline), { responsive: true })),
|
|
7513
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("h1", { className: "text-4xl min-[600px]:text-5xl font-semibold font-display tracking-tight text-on-prominent", children: heading }),
|
|
7514
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "text-lg font-body text-on-subtle", children: body })
|
|
7357
7515
|
] }),
|
|
7358
|
-
/* @__PURE__ */ (0,
|
|
7359
|
-
/* @__PURE__ */ (0,
|
|
7360
|
-
secondaryCta && /* @__PURE__ */ (0,
|
|
7516
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center justify-center min-[600px]:justify-start gap-2", children: [
|
|
7517
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button, { size: "sm", onClick: primaryCta.onClick, children: primaryCta.label }),
|
|
7518
|
+
secondaryCta && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button, { variant: "secondary", size: "sm", onClick: secondaryCta.onClick, children: secondaryCta.label })
|
|
7361
7519
|
] })
|
|
7362
7520
|
] }),
|
|
7363
|
-
/* @__PURE__ */ (0,
|
|
7521
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "w-full min-[600px]:flex-1 min-[600px]:min-w-0 aspect-square rounded-xl bg-subtle shrink-0", "aria-hidden": "true", children: image })
|
|
7364
7522
|
] }) });
|
|
7365
7523
|
}
|
|
7366
7524
|
function TaglinePill({
|
|
@@ -7368,25 +7526,25 @@ function TaglinePill({
|
|
|
7368
7526
|
suffix,
|
|
7369
7527
|
responsive
|
|
7370
7528
|
}) {
|
|
7371
|
-
return /* @__PURE__ */ (0,
|
|
7372
|
-
/* @__PURE__ */ (0,
|
|
7373
|
-
responsive && suffix ? /* @__PURE__ */ (0,
|
|
7374
|
-
/* @__PURE__ */ (0,
|
|
7529
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "inline-flex items-center gap-1.5 h-7 px-3 rounded-full border border-border-subtle bg-prominent shadow-sm shrink-0", children: [
|
|
7530
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "size-1.5 rounded-full bg-semantic-win shrink-0", "aria-hidden": "true" }),
|
|
7531
|
+
responsive && suffix ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { className: "text-sm font-body text-on-prominent whitespace-nowrap", children: [
|
|
7532
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { className: "hidden min-[600px]:inline", children: [
|
|
7375
7533
|
label,
|
|
7376
|
-
/* @__PURE__ */ (0,
|
|
7534
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-on-subtle", children: " \xB7 " })
|
|
7377
7535
|
] }),
|
|
7378
|
-
/* @__PURE__ */ (0,
|
|
7379
|
-
] }) : /* @__PURE__ */ (0,
|
|
7536
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-on-subtle min-[600px]:text-on-prominent", children: suffix })
|
|
7537
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { className: "text-sm font-body text-on-prominent whitespace-nowrap", children: [
|
|
7380
7538
|
label,
|
|
7381
|
-
suffix && /* @__PURE__ */ (0,
|
|
7539
|
+
suffix && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-on-subtle", children: ` \xB7 ${suffix}` })
|
|
7382
7540
|
] }),
|
|
7383
|
-
/* @__PURE__ */ (0,
|
|
7541
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_lucide_react27.ArrowUpRight, { className: "size-4 text-on-subtle shrink-0", "aria-hidden": "true" })
|
|
7384
7542
|
] });
|
|
7385
7543
|
}
|
|
7386
7544
|
|
|
7387
7545
|
// components/blocks/auth-block.tsx
|
|
7388
|
-
var
|
|
7389
|
-
var
|
|
7546
|
+
var React16 = __toESM(require("react"), 1);
|
|
7547
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
7390
7548
|
function AuthBlock({
|
|
7391
7549
|
mode,
|
|
7392
7550
|
logoSrc,
|
|
@@ -7401,20 +7559,20 @@ function AuthBlock({
|
|
|
7401
7559
|
const ctaText = mode === "sign-in" ? "Sign in" : "Sign up";
|
|
7402
7560
|
const footerPrompt = mode === "sign-in" ? "Don't have an account?" : "Already have an account?";
|
|
7403
7561
|
const footerLinkLabel = mode === "sign-in" ? "Sign up" : "Log in";
|
|
7404
|
-
const [email, setEmail] =
|
|
7405
|
-
return /* @__PURE__ */ (0,
|
|
7406
|
-
/* @__PURE__ */ (0,
|
|
7407
|
-
/* @__PURE__ */ (0,
|
|
7408
|
-
/* @__PURE__ */ (0,
|
|
7562
|
+
const [email, setEmail] = React16.useState("");
|
|
7563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-col items-center gap-6 w-full", children: [
|
|
7564
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
7565
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("img", { src: logoSrc, alt: wordmark, className: "size-8 object-contain" }),
|
|
7566
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "font-display font-semibold text-base text-on-prominent tracking-tight", children: wordmark })
|
|
7409
7567
|
] }),
|
|
7410
|
-
/* @__PURE__ */ (0,
|
|
7411
|
-
/* @__PURE__ */ (0,
|
|
7412
|
-
/* @__PURE__ */ (0,
|
|
7413
|
-
/* @__PURE__ */ (0,
|
|
7414
|
-
/* @__PURE__ */ (0,
|
|
7415
|
-
/* @__PURE__ */ (0,
|
|
7568
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("h2", { className: "text-3xl font-bold font-display text-on-prominent text-center", children: headingText }),
|
|
7569
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex flex-col gap-3 w-full", children: providers.map((p) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ProviderButton, { provider: p }, p)) }),
|
|
7570
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex items-center gap-3 w-full", children: [
|
|
7571
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex-1 h-px bg-border-subtle" }),
|
|
7572
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-sm text-on-subtle font-body", children: "or" }),
|
|
7573
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex-1 h-px bg-border-subtle" })
|
|
7416
7574
|
] }),
|
|
7417
|
-
/* @__PURE__ */ (0,
|
|
7575
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex items-center gap-2 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
7418
7576
|
Input,
|
|
7419
7577
|
{
|
|
7420
7578
|
id: `${idPrefix}-email`,
|
|
@@ -7425,60 +7583,60 @@ function AuthBlock({
|
|
|
7425
7583
|
onChange: (e) => setEmail(e.target.value)
|
|
7426
7584
|
}
|
|
7427
7585
|
) }),
|
|
7428
|
-
/* @__PURE__ */ (0,
|
|
7586
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("p", { className: "text-sm text-on-subtle font-body text-left w-full", children: [
|
|
7429
7587
|
termsText,
|
|
7430
7588
|
", you agree to our",
|
|
7431
7589
|
" ",
|
|
7432
|
-
/* @__PURE__ */ (0,
|
|
7590
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Link, { size: "sm", href: "#", children: "Terms & Conditions" })
|
|
7433
7591
|
] }),
|
|
7434
|
-
/* @__PURE__ */ (0,
|
|
7435
|
-
/* @__PURE__ */ (0,
|
|
7592
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Button, { size: "md", className: "w-full", onClick: () => onSubmit == null ? void 0 : onSubmit({ email }), children: ctaText }),
|
|
7593
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("p", { className: "text-sm text-on-subtle font-body text-center", children: [
|
|
7436
7594
|
footerPrompt,
|
|
7437
7595
|
" ",
|
|
7438
|
-
/* @__PURE__ */ (0,
|
|
7596
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Link, { size: "sm", href: crossLinkHref, children: footerLinkLabel })
|
|
7439
7597
|
] })
|
|
7440
7598
|
] });
|
|
7441
7599
|
}
|
|
7442
7600
|
function ProviderButton({ provider }) {
|
|
7443
7601
|
switch (provider) {
|
|
7444
7602
|
case "google":
|
|
7445
|
-
return /* @__PURE__ */ (0,
|
|
7446
|
-
/* @__PURE__ */ (0,
|
|
7447
|
-
/* @__PURE__ */ (0,
|
|
7448
|
-
/* @__PURE__ */ (0,
|
|
7449
|
-
/* @__PURE__ */ (0,
|
|
7450
|
-
/* @__PURE__ */ (0,
|
|
7603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Button, { variant: "secondary", size: "lg", className: "w-full", children: [
|
|
7604
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("svg", { width: "18", height: "18", viewBox: "0 0 18 18", "aria-hidden": "true", fill: "none", className: "shrink-0", children: [
|
|
7605
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { d: "M17.64 9.205c0-.639-.057-1.252-.164-1.841H9v3.481h4.844a4.14 4.14 0 0 1-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615Z", fill: "#4285F4" }),
|
|
7606
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { d: "M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 0 0 9 18Z", fill: "#34A853" }),
|
|
7607
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { d: "M3.964 10.71A5.41 5.41 0 0 1 3.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 0 0 0 9c0 1.452.348 2.827.957 4.042l3.007-2.332Z", fill: "#FBBC05" }),
|
|
7608
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { d: "M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 0 0 .957 4.958L3.964 7.29C4.672 5.163 6.656 3.58 9 3.58Z", fill: "#EA4335" })
|
|
7451
7609
|
] }),
|
|
7452
7610
|
"Continue with Google"
|
|
7453
7611
|
] });
|
|
7454
7612
|
case "telegram":
|
|
7455
|
-
return /* @__PURE__ */ (0,
|
|
7456
|
-
/* @__PURE__ */ (0,
|
|
7457
|
-
/* @__PURE__ */ (0,
|
|
7458
|
-
/* @__PURE__ */ (0,
|
|
7459
|
-
/* @__PURE__ */ (0,
|
|
7613
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Button, { variant: "secondary", size: "lg", className: "w-full", children: [
|
|
7614
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("svg", { width: "18", height: "18", viewBox: "0 0 18 18", "aria-hidden": "true", fill: "none", className: "shrink-0", children: [
|
|
7615
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("circle", { cx: "9", cy: "9", r: "9", fill: "#29B6F6" }),
|
|
7616
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { d: "M13.5 5.25 11.25 13.5l-2.25-3-3 1.5 1.5-5.25 6-1.5Z", fill: "white", opacity: "0.3" }),
|
|
7617
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { d: "m4.5 8.625 7.5-3-1.125 7.125-2.625-2.25-1.5 1.5.375-3.375Z", fill: "white" })
|
|
7460
7618
|
] }),
|
|
7461
7619
|
"Continue with Telegram"
|
|
7462
7620
|
] });
|
|
7463
7621
|
case "x":
|
|
7464
|
-
return /* @__PURE__ */ (0,
|
|
7465
|
-
/* @__PURE__ */ (0,
|
|
7622
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Button, { variant: "secondary", size: "lg", className: "w-full", children: [
|
|
7623
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 18 18", "aria-hidden": "true", fill: "currentColor", className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { d: "M13.955 2.25h2.423L10.977 8.28 17.25 15.75h-4.812l-3.913-5.116-4.477 5.116H1.645l5.703-6.52L1.125 2.25h4.934l3.538 4.678 4.358-4.678Zm-.85 12.105h1.343L5.025 3.627H3.579l9.526 10.728Z" }) }),
|
|
7466
7624
|
"Continue with X (Twitter)"
|
|
7467
7625
|
] });
|
|
7468
7626
|
}
|
|
7469
7627
|
}
|
|
7470
7628
|
|
|
7471
7629
|
// components/blocks/navbar-block.tsx
|
|
7472
|
-
var
|
|
7473
|
-
var
|
|
7474
|
-
var
|
|
7630
|
+
var React17 = __toESM(require("react"), 1);
|
|
7631
|
+
var import_lucide_react28 = require("lucide-react");
|
|
7632
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
7475
7633
|
function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
7476
7634
|
var _a, _b, _c, _d;
|
|
7477
|
-
const [mobileMenuOpen, setMobileMenuOpen] =
|
|
7478
|
-
return /* @__PURE__ */ (0,
|
|
7479
|
-
/* @__PURE__ */ (0,
|
|
7480
|
-
/* @__PURE__ */ (0,
|
|
7481
|
-
/* @__PURE__ */ (0,
|
|
7635
|
+
const [mobileMenuOpen, setMobileMenuOpen] = React17.useState(false);
|
|
7636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "w-full border border-border-subtle rounded-md overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("nav", { className: "bg-prominent", children: [
|
|
7637
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center justify-between px-layout-margin-inline py-3", children: [
|
|
7638
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center gap-6", children: [
|
|
7639
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7482
7640
|
"img",
|
|
7483
7641
|
{
|
|
7484
7642
|
src: brand.fullLogoSrc,
|
|
@@ -7486,7 +7644,7 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7486
7644
|
className: "hidden min-[600px]:block h-7 w-auto shrink-0 object-contain object-left"
|
|
7487
7645
|
}
|
|
7488
7646
|
),
|
|
7489
|
-
/* @__PURE__ */ (0,
|
|
7647
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7490
7648
|
"img",
|
|
7491
7649
|
{
|
|
7492
7650
|
src: brand.iconLogoSrc,
|
|
@@ -7494,13 +7652,13 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7494
7652
|
className: "min-[600px]:hidden size-7 shrink-0 object-contain"
|
|
7495
7653
|
}
|
|
7496
7654
|
),
|
|
7497
|
-
/* @__PURE__ */ (0,
|
|
7655
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "hidden min-[600px]:flex items-center gap-1", children: links.map((l) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { variant: "tertiary", size: "sm", onClick: l.onClick, children: l.label }, l.label)) })
|
|
7498
7656
|
] }),
|
|
7499
|
-
/* @__PURE__ */ (0,
|
|
7500
|
-
signIn && /* @__PURE__ */ (0,
|
|
7501
|
-
signUp && /* @__PURE__ */ (0,
|
|
7657
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "hidden min-[600px]:flex items-center gap-2", children: [
|
|
7658
|
+
signIn && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { variant: "tertiary", size: "sm", onClick: signIn.onClick, children: (_a = signIn.label) != null ? _a : "Sign in" }),
|
|
7659
|
+
signUp && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { size: "sm", onClick: signUp.onClick, children: (_b = signUp.label) != null ? _b : "Sign up" })
|
|
7502
7660
|
] }),
|
|
7503
|
-
/* @__PURE__ */ (0,
|
|
7661
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7504
7662
|
Button,
|
|
7505
7663
|
{
|
|
7506
7664
|
variant: "tertiary",
|
|
@@ -7509,12 +7667,12 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7509
7667
|
"aria-expanded": mobileMenuOpen,
|
|
7510
7668
|
className: "min-[600px]:hidden",
|
|
7511
7669
|
onClick: () => setMobileMenuOpen((prev) => !prev),
|
|
7512
|
-
children: mobileMenuOpen ? /* @__PURE__ */ (0,
|
|
7670
|
+
children: mobileMenuOpen ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_lucide_react28.X, { className: "size-4" }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_lucide_react28.Menu, { className: "size-4" })
|
|
7513
7671
|
}
|
|
7514
7672
|
)
|
|
7515
7673
|
] }),
|
|
7516
|
-
mobileMenuOpen && /* @__PURE__ */ (0,
|
|
7517
|
-
links.map((l) => /* @__PURE__ */ (0,
|
|
7674
|
+
mobileMenuOpen && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "min-[600px]:hidden flex flex-col border-t border-border-subtle px-layout-margin-inline py-3 gap-1", children: [
|
|
7675
|
+
links.map((l) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7518
7676
|
Button,
|
|
7519
7677
|
{
|
|
7520
7678
|
variant: "tertiary",
|
|
@@ -7525,18 +7683,18 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7525
7683
|
},
|
|
7526
7684
|
l.label
|
|
7527
7685
|
)),
|
|
7528
|
-
(signIn || signUp) && /* @__PURE__ */ (0,
|
|
7529
|
-
signIn && /* @__PURE__ */ (0,
|
|
7530
|
-
signUp && /* @__PURE__ */ (0,
|
|
7686
|
+
(signIn || signUp) && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex flex-col gap-2 pt-3 mt-2 border-t border-border-subtle", children: [
|
|
7687
|
+
signIn && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { variant: "secondary", size: "sm", className: "w-full", onClick: signIn.onClick, children: (_c = signIn.label) != null ? _c : "Sign in" }),
|
|
7688
|
+
signUp && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { size: "sm", className: "w-full", onClick: signUp.onClick, children: (_d = signUp.label) != null ? _d : "Sign up" })
|
|
7531
7689
|
] })
|
|
7532
7690
|
] })
|
|
7533
7691
|
] }) });
|
|
7534
7692
|
}
|
|
7535
7693
|
|
|
7536
7694
|
// components/blocks/open-positions-block.tsx
|
|
7537
|
-
var
|
|
7538
|
-
var
|
|
7539
|
-
var
|
|
7695
|
+
var React18 = __toESM(require("react"), 1);
|
|
7696
|
+
var import_lucide_react29 = require("lucide-react");
|
|
7697
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
7540
7698
|
function OpenPositionsBlock({
|
|
7541
7699
|
trigger,
|
|
7542
7700
|
sheetTitle = "Positions",
|
|
@@ -7545,28 +7703,28 @@ function OpenPositionsBlock({
|
|
|
7545
7703
|
emptyState
|
|
7546
7704
|
}) {
|
|
7547
7705
|
const isMobile = useIsMobile();
|
|
7548
|
-
const body = positions.length === 0 ? emptyState != null ? emptyState : /* @__PURE__ */ (0,
|
|
7706
|
+
const body = positions.length === 0 ? emptyState != null ? emptyState : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DefaultEmptyState, { onViewHistory }) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(PositionsList, { positions, onViewHistory });
|
|
7549
7707
|
if (isMobile) {
|
|
7550
|
-
return /* @__PURE__ */ (0,
|
|
7551
|
-
/* @__PURE__ */ (0,
|
|
7552
|
-
/* @__PURE__ */ (0,
|
|
7553
|
-
/* @__PURE__ */ (0,
|
|
7554
|
-
/* @__PURE__ */ (0,
|
|
7555
|
-
/* @__PURE__ */ (0,
|
|
7708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Drawer, { children: [
|
|
7709
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DrawerTrigger, { asChild: true, children: trigger }),
|
|
7710
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(DrawerContent, { className: "p-0 flex flex-col", children: [
|
|
7711
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(DrawerHeader, { className: "flex-row items-center justify-between px-4 py-3 shrink-0 text-left", children: [
|
|
7712
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DrawerTitle, { className: "text-base font-semibold font-display text-on-prominent", children: sheetTitle }),
|
|
7713
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DrawerClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NavigationButton, { size: "sm", "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react29.X, {}) }) })
|
|
7556
7714
|
] }),
|
|
7557
|
-
/* @__PURE__ */ (0,
|
|
7715
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Separator, {}),
|
|
7558
7716
|
body
|
|
7559
7717
|
] })
|
|
7560
7718
|
] });
|
|
7561
7719
|
}
|
|
7562
|
-
return /* @__PURE__ */ (0,
|
|
7563
|
-
/* @__PURE__ */ (0,
|
|
7564
|
-
/* @__PURE__ */ (0,
|
|
7565
|
-
/* @__PURE__ */ (0,
|
|
7566
|
-
/* @__PURE__ */ (0,
|
|
7567
|
-
/* @__PURE__ */ (0,
|
|
7720
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Sheet, { children: [
|
|
7721
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SheetTrigger, { asChild: true, children: trigger }),
|
|
7722
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(SheetContent, { side: "right", showCloseButton: false, className: "p-0 flex flex-col w-80 sm:max-w-xs", children: [
|
|
7723
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(SheetHeader, { className: "flex-row items-center justify-between px-4 py-3 shrink-0", children: [
|
|
7724
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SheetTitle, { className: "text-base font-semibold font-display text-on-prominent", children: sheetTitle }),
|
|
7725
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SheetClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(NavigationButton, { size: "sm", "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react29.X, {}) }) })
|
|
7568
7726
|
] }),
|
|
7569
|
-
/* @__PURE__ */ (0,
|
|
7727
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Separator, {}),
|
|
7570
7728
|
body
|
|
7571
7729
|
] })
|
|
7572
7730
|
] });
|
|
@@ -7575,26 +7733,26 @@ function PositionsList({
|
|
|
7575
7733
|
positions,
|
|
7576
7734
|
onViewHistory
|
|
7577
7735
|
}) {
|
|
7578
|
-
return /* @__PURE__ */ (0,
|
|
7579
|
-
/* @__PURE__ */ (0,
|
|
7580
|
-
/* @__PURE__ */ (0,
|
|
7581
|
-
i < positions.length - 1 && /* @__PURE__ */ (0,
|
|
7736
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col flex-1 min-h-0", children: [
|
|
7737
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ItemGroup, { className: "min-h-0 overflow-y-auto", children: positions.map((pos, i) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(React18.Fragment, { children: [
|
|
7738
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(PositionRow, { position: pos }),
|
|
7739
|
+
i < positions.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "h-px mx-4 bg-border-subtle" })
|
|
7582
7740
|
] }, i)) }),
|
|
7583
|
-
/* @__PURE__ */ (0,
|
|
7584
|
-
/* @__PURE__ */ (0,
|
|
7741
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Separator, {}),
|
|
7742
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "shrink-0 flex justify-center py-4", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { variant: "tertiary", size: "md", onClick: onViewHistory, children: "View transaction history" }) })
|
|
7585
7743
|
] });
|
|
7586
7744
|
}
|
|
7587
7745
|
function PositionRow({ position }) {
|
|
7588
7746
|
const { label, suffix } = positionTitleParts(position);
|
|
7589
|
-
return /* @__PURE__ */ (0,
|
|
7590
|
-
/* @__PURE__ */ (0,
|
|
7591
|
-
/* @__PURE__ */ (0,
|
|
7592
|
-
/* @__PURE__ */ (0,
|
|
7593
|
-
suffix && /* @__PURE__ */ (0,
|
|
7747
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Item, { size: "sm", children: [
|
|
7748
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(ItemContent, { children: [
|
|
7749
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(ItemTitle, { children: [
|
|
7750
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-on-prominent", children: label }),
|
|
7751
|
+
suffix && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-on-subtle", children: ` ${suffix}` })
|
|
7594
7752
|
] }),
|
|
7595
|
-
/* @__PURE__ */ (0,
|
|
7753
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(MetaNote, { market: position.market, duration: position.duration })
|
|
7596
7754
|
] }),
|
|
7597
|
-
/* @__PURE__ */ (0,
|
|
7755
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ItemActions, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(PnlMeta, { pnl: position.pnl, win: position.win, stake: position.stake }) })
|
|
7598
7756
|
] });
|
|
7599
7757
|
}
|
|
7600
7758
|
var DIGITS_TYPE_LABEL = {
|
|
@@ -7620,23 +7778,23 @@ function positionTitleParts(p) {
|
|
|
7620
7778
|
}
|
|
7621
7779
|
}
|
|
7622
7780
|
function MetaNote({ market, duration }) {
|
|
7623
|
-
return /* @__PURE__ */ (0,
|
|
7781
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { className: "text-xs text-on-subtle whitespace-nowrap", children: [
|
|
7624
7782
|
market,
|
|
7625
7783
|
" \xB7 ",
|
|
7626
7784
|
duration
|
|
7627
7785
|
] });
|
|
7628
7786
|
}
|
|
7629
7787
|
function PnlMeta({ pnl, win, stake }) {
|
|
7630
|
-
return /* @__PURE__ */ (0,
|
|
7631
|
-
/* @__PURE__ */ (0,
|
|
7632
|
-
/* @__PURE__ */ (0,
|
|
7788
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col items-end gap-0.5", children: [
|
|
7789
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: `font-display font-bold tabular-nums text-base ${win ? "text-semantic-win" : "text-semantic-loss"}`, children: pnl }),
|
|
7790
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "tabular-nums text-xs text-on-subtle", children: stake })
|
|
7633
7791
|
] });
|
|
7634
7792
|
}
|
|
7635
7793
|
function DefaultEmptyState({ onViewHistory }) {
|
|
7636
|
-
return /* @__PURE__ */ (0,
|
|
7637
|
-
/* @__PURE__ */ (0,
|
|
7638
|
-
/* @__PURE__ */ (0,
|
|
7639
|
-
/* @__PURE__ */ (0,
|
|
7794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Empty, { className: "flex min-h-0 flex-1 flex-col justify-center border-none rounded-none p-6 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(EmptyHeader, { className: "gap-4", children: [
|
|
7795
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(EmptyMedia, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_lucide_react29.History, { className: "size-8 text-on-subtle" }) }),
|
|
7796
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(EmptyTitle, { className: "text-base leading-6 font-semibold tracking-normal body-md text-on-subtle", children: "No trades yet." }),
|
|
7797
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { variant: "tertiary", size: "md", onClick: onViewHistory, children: "View transaction history" })
|
|
7640
7798
|
] }) });
|
|
7641
7799
|
}
|
|
7642
7800
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -7667,6 +7825,7 @@ function DefaultEmptyState({ onViewHistory }) {
|
|
|
7667
7825
|
AvatarGroupCount,
|
|
7668
7826
|
AvatarImage,
|
|
7669
7827
|
Badge,
|
|
7828
|
+
Banner,
|
|
7670
7829
|
Breadcrumb,
|
|
7671
7830
|
BreadcrumbEllipsis,
|
|
7672
7831
|
BreadcrumbItem,
|