@trading-game/design-intelligence-layer 0.16.0 → 0.16.2
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 +54 -8
- package/dist/index.cjs +944 -801
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -4
- package/dist/index.d.ts +49 -4
- package/dist/index.js +915 -774
- package/dist/index.js.map +1 -1
- package/guides/design-system-guide/trading-game-ds-guide.md +6 -4
- package/package.json +1 -1
- package/src/styles.css +11 -3
package/dist/index.js
CHANGED
|
@@ -112,7 +112,6 @@ import {
|
|
|
112
112
|
AlertTriangle,
|
|
113
113
|
CheckCircle2,
|
|
114
114
|
Info,
|
|
115
|
-
Sparkles,
|
|
116
115
|
X,
|
|
117
116
|
XCircle
|
|
118
117
|
} from "lucide-react";
|
|
@@ -253,8 +252,6 @@ var alertVariants = cva2(
|
|
|
253
252
|
{
|
|
254
253
|
variants: {
|
|
255
254
|
variant: {
|
|
256
|
-
default: "bg-prominent border border-border-subtle",
|
|
257
|
-
brand: "bg-primary",
|
|
258
255
|
info: "bg-semantic-info/10",
|
|
259
256
|
warning: "bg-semantic-warning/10",
|
|
260
257
|
danger: "bg-semantic-error/10",
|
|
@@ -276,32 +273,24 @@ var alertVariants = cva2(
|
|
|
276
273
|
);
|
|
277
274
|
var SINGLE_LINE_CLASSES = "items-center min-h-12 py-2 gap-y-0";
|
|
278
275
|
var TITLE_CLASSES = {
|
|
279
|
-
default: "text-on-prominent",
|
|
280
|
-
brand: "text-on-primary",
|
|
281
276
|
info: "text-on-prominent",
|
|
282
277
|
warning: "text-on-prominent",
|
|
283
278
|
danger: "text-on-prominent",
|
|
284
279
|
success: "text-on-prominent"
|
|
285
280
|
};
|
|
286
281
|
var ICON_CLASSES = {
|
|
287
|
-
default: "text-on-prominent",
|
|
288
|
-
brand: "text-on-primary",
|
|
289
282
|
info: "text-semantic-info",
|
|
290
283
|
warning: "text-semantic-warning",
|
|
291
284
|
danger: "text-semantic-error",
|
|
292
285
|
success: "text-semantic-win"
|
|
293
286
|
};
|
|
294
287
|
var DESC_CLASSES = {
|
|
295
|
-
default: "text-on-subtle",
|
|
296
|
-
brand: "text-on-primary opacity-80",
|
|
297
288
|
info: "text-on-subtle",
|
|
298
289
|
warning: "text-on-subtle",
|
|
299
290
|
danger: "text-on-subtle",
|
|
300
291
|
success: "text-on-subtle"
|
|
301
292
|
};
|
|
302
293
|
var CLOSE_CLASSES = {
|
|
303
|
-
default: "text-on-subtle opacity-70",
|
|
304
|
-
brand: "text-on-primary opacity-70",
|
|
305
294
|
info: "text-on-subtle opacity-70",
|
|
306
295
|
warning: "text-on-subtle opacity-70",
|
|
307
296
|
danger: "text-on-subtle opacity-70",
|
|
@@ -309,10 +298,6 @@ var CLOSE_CLASSES = {
|
|
|
309
298
|
};
|
|
310
299
|
function defaultIconForVariant(variant) {
|
|
311
300
|
switch (variant) {
|
|
312
|
-
case "default":
|
|
313
|
-
return /* @__PURE__ */ jsx4(Info, {});
|
|
314
|
-
case "brand":
|
|
315
|
-
return /* @__PURE__ */ jsx4(Sparkles, {});
|
|
316
301
|
case "info":
|
|
317
302
|
return /* @__PURE__ */ jsx4(Info, {});
|
|
318
303
|
case "warning":
|
|
@@ -323,9 +308,6 @@ function defaultIconForVariant(variant) {
|
|
|
323
308
|
return /* @__PURE__ */ jsx4(CheckCircle2, {});
|
|
324
309
|
}
|
|
325
310
|
}
|
|
326
|
-
function actionButtonVariantFor(variant) {
|
|
327
|
-
return variant === "brand" ? "primary-inverse" : "secondary";
|
|
328
|
-
}
|
|
329
311
|
function Alert(_a) {
|
|
330
312
|
var _b = _a, {
|
|
331
313
|
variant = "info",
|
|
@@ -363,7 +345,7 @@ function Alert(_a) {
|
|
|
363
345
|
const showIcon = icon !== null;
|
|
364
346
|
const resolvedIcon = icon === void 0 ? defaultIconForVariant(variant) : icon;
|
|
365
347
|
const showCloseButton = typeof onDismiss === "function";
|
|
366
|
-
const buttonVariant =
|
|
348
|
+
const buttonVariant = "secondary";
|
|
367
349
|
const isAssertive = variant === "danger" || variant === "warning";
|
|
368
350
|
const role = isAssertive ? "alert" : "status";
|
|
369
351
|
const ariaLive = isAssertive ? "assertive" : "polite";
|
|
@@ -425,9 +407,10 @@ function Alert(_a) {
|
|
|
425
407
|
"aria-hidden": true,
|
|
426
408
|
className: cn(
|
|
427
409
|
"inline-flex shrink-0 size-4 [&_svg]:size-full",
|
|
428
|
-
//
|
|
429
|
-
//
|
|
430
|
-
//
|
|
410
|
+
// Single-line: grid is items-center so the icon centers automatically.
|
|
411
|
+
// Multi-line / card: top-aligned with the title cap-height via a 2px
|
|
412
|
+
// (mt-0.5) optical nudge so the icon reads as introducing the message
|
|
413
|
+
// header, not floating between title and description.
|
|
431
414
|
isSingleLine ? "" : "mt-0.5",
|
|
432
415
|
ICON_CLASSES[variant]
|
|
433
416
|
),
|
|
@@ -789,6 +772,10 @@ var badgeVariants = cva3(
|
|
|
789
772
|
"fill-fail": "bg-semantic-loss/10 border-transparent text-semantic-loss",
|
|
790
773
|
"fill-warning": "bg-semantic-warning/10 border-transparent text-semantic-warning",
|
|
791
774
|
"fill-credit": "bg-semantic-boost-surface border-transparent text-on-semantic-boost !text-xs !font-semibold",
|
|
775
|
+
// Demo / test-mode flag — opaque light-peach surface + red-orange text.
|
|
776
|
+
// Uses --semantic-demo-surface (a solid color-mix of demo @ 10% with white)
|
|
777
|
+
// so the badge looks identical on any background.
|
|
778
|
+
"fill-demo": "bg-semantic-demo-surface border-transparent text-semantic-demo",
|
|
792
779
|
// Ghost (transparent)
|
|
793
780
|
ghost: "bg-transparent border-transparent text-primary [a&]:hover:bg-secondary-hover [a&]:hover:text-primary",
|
|
794
781
|
"ghost-success": "bg-transparent border-transparent text-semantic-win [a&]:hover:bg-semantic-win/10 [a&]:hover:text-semantic-win",
|
|
@@ -830,17 +817,170 @@ function Badge(_a) {
|
|
|
830
817
|
);
|
|
831
818
|
}
|
|
832
819
|
|
|
820
|
+
// components/ui/banner.tsx
|
|
821
|
+
import * as React2 from "react";
|
|
822
|
+
import { Gift, X as X2 } from "lucide-react";
|
|
823
|
+
import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
824
|
+
var SURFACE_CLASSES = "w-full rounded-md border border-primary/20 bg-[linear-gradient(135deg,#EBEBFF_0%,#FFFFFF_100%)] px-4 py-3.5";
|
|
825
|
+
function DefaultIconBadge() {
|
|
826
|
+
return /* @__PURE__ */ jsx9("span", { className: "inline-flex size-10 shrink-0 items-center justify-center rounded-full bg-primary text-on-primary", children: /* @__PURE__ */ jsx9(Gift, { className: "size-5" }) });
|
|
827
|
+
}
|
|
828
|
+
function Banner(_a) {
|
|
829
|
+
var _b = _a, {
|
|
830
|
+
layout = "inline",
|
|
831
|
+
title,
|
|
832
|
+
description,
|
|
833
|
+
icon,
|
|
834
|
+
action,
|
|
835
|
+
actions,
|
|
836
|
+
onDismiss,
|
|
837
|
+
dismissLabel = "Dismiss",
|
|
838
|
+
onClick,
|
|
839
|
+
className
|
|
840
|
+
} = _b, props = __objRest(_b, [
|
|
841
|
+
"layout",
|
|
842
|
+
"title",
|
|
843
|
+
"description",
|
|
844
|
+
"icon",
|
|
845
|
+
"action",
|
|
846
|
+
"actions",
|
|
847
|
+
"onDismiss",
|
|
848
|
+
"dismissLabel",
|
|
849
|
+
"onClick",
|
|
850
|
+
"className"
|
|
851
|
+
]);
|
|
852
|
+
var _a2;
|
|
853
|
+
if (!title && !description) {
|
|
854
|
+
if (process.env.NODE_ENV !== "production") {
|
|
855
|
+
console.warn(
|
|
856
|
+
"Banner: requires at least one of `title` or `description`. Rendering null."
|
|
857
|
+
);
|
|
858
|
+
}
|
|
859
|
+
return null;
|
|
860
|
+
}
|
|
861
|
+
const isInline = layout === "inline";
|
|
862
|
+
const showIcon = icon !== null;
|
|
863
|
+
const resolvedIcon = icon === void 0 ? /* @__PURE__ */ jsx9(DefaultIconBadge, {}) : icon;
|
|
864
|
+
const showCloseButton = typeof onDismiss === "function";
|
|
865
|
+
const isClickable = typeof onClick === "function";
|
|
866
|
+
const buttonsSuppressed = isClickable && (Boolean(action) || ((_a2 = actions == null ? void 0 : actions.length) != null ? _a2 : 0) > 0);
|
|
867
|
+
if (process.env.NODE_ENV !== "production") {
|
|
868
|
+
if (isInline && actions && actions.length > 0) {
|
|
869
|
+
console.warn(
|
|
870
|
+
'Banner: `actions` is ignored when layout="inline". Use `action` instead.'
|
|
871
|
+
);
|
|
872
|
+
}
|
|
873
|
+
if (!isInline && action) {
|
|
874
|
+
console.warn(
|
|
875
|
+
'Banner: `action` is ignored when layout="card". Use `actions` instead.'
|
|
876
|
+
);
|
|
877
|
+
}
|
|
878
|
+
if (buttonsSuppressed) {
|
|
879
|
+
console.warn(
|
|
880
|
+
"Banner: `onClick` (clickable surface) is mutually exclusive with `action` / `actions`. Ignoring the buttons \u2014 the whole banner is the CTA."
|
|
881
|
+
);
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
const effectiveAction = isClickable ? void 0 : action;
|
|
885
|
+
const effectiveActions = isClickable ? void 0 : actions;
|
|
886
|
+
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" : "";
|
|
887
|
+
const handleKeyDown = isClickable ? (e) => {
|
|
888
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
889
|
+
e.preventDefault();
|
|
890
|
+
onClick == null ? void 0 : onClick();
|
|
891
|
+
}
|
|
892
|
+
} : void 0;
|
|
893
|
+
const interactiveProps = isClickable ? {
|
|
894
|
+
role: "button",
|
|
895
|
+
tabIndex: 0,
|
|
896
|
+
onClick,
|
|
897
|
+
onKeyDown: handleKeyDown
|
|
898
|
+
} : {};
|
|
899
|
+
const body = /* @__PURE__ */ jsxs6("div", { className: "min-w-0 flex-1", children: [
|
|
900
|
+
title ? /* @__PURE__ */ jsx9("p", { className: "m-0 text-sm font-bold leading-snug text-on-prominent [&>b]:text-primary", children: title }) : null,
|
|
901
|
+
description ? /* @__PURE__ */ jsx9("p", { className: "m-0 mt-0.5 text-xs font-medium leading-snug text-on-subtle", children: description }) : null
|
|
902
|
+
] });
|
|
903
|
+
const closeButton = showCloseButton ? /* @__PURE__ */ jsx9(
|
|
904
|
+
"button",
|
|
905
|
+
{
|
|
906
|
+
type: "button",
|
|
907
|
+
onClick: (e) => {
|
|
908
|
+
e.stopPropagation();
|
|
909
|
+
onDismiss == null ? void 0 : onDismiss();
|
|
910
|
+
},
|
|
911
|
+
"aria-label": dismissLabel,
|
|
912
|
+
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",
|
|
913
|
+
children: /* @__PURE__ */ jsx9(X2, {})
|
|
914
|
+
}
|
|
915
|
+
) : null;
|
|
916
|
+
const iconColumn = showIcon ? /* @__PURE__ */ jsx9("div", { "aria-hidden": true, className: "inline-flex shrink-0 translate-y-px", children: resolvedIcon }) : null;
|
|
917
|
+
if (isInline) {
|
|
918
|
+
const hasAction = Boolean(effectiveAction);
|
|
919
|
+
const rowTemplate = hasAction ? "grid-rows-[auto_auto] gap-y-3 sm:grid-rows-1 sm:gap-y-0" : "grid-rows-1 gap-y-0";
|
|
920
|
+
return /* @__PURE__ */ jsxs6(
|
|
921
|
+
"div",
|
|
922
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
923
|
+
"data-slot": "banner",
|
|
924
|
+
"data-layout": "inline",
|
|
925
|
+
"data-clickable": isClickable ? "true" : void 0,
|
|
926
|
+
className: cn(
|
|
927
|
+
"grid grid-cols-[auto_1fr_auto] items-center gap-x-4 sm:grid-cols-[auto_1fr_auto_auto]",
|
|
928
|
+
rowTemplate,
|
|
929
|
+
SURFACE_CLASSES,
|
|
930
|
+
clickableClasses,
|
|
931
|
+
className
|
|
932
|
+
)
|
|
933
|
+
}, interactiveProps), props), {
|
|
934
|
+
children: [
|
|
935
|
+
/* @__PURE__ */ jsx9("div", { className: "col-start-1 row-start-1", children: iconColumn }),
|
|
936
|
+
/* @__PURE__ */ jsx9("div", { className: "col-start-2 row-start-1 min-w-0", children: body }),
|
|
937
|
+
/* @__PURE__ */ jsx9("div", { className: "col-start-3 row-start-1 sm:col-start-4", children: closeButton }),
|
|
938
|
+
hasAction ? /* @__PURE__ */ jsx9("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, "primary") }) : null
|
|
939
|
+
]
|
|
940
|
+
})
|
|
941
|
+
);
|
|
942
|
+
}
|
|
943
|
+
return /* @__PURE__ */ jsxs6(
|
|
944
|
+
"div",
|
|
945
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
946
|
+
"data-slot": "banner",
|
|
947
|
+
"data-layout": "card",
|
|
948
|
+
"data-clickable": isClickable ? "true" : void 0,
|
|
949
|
+
className: cn(
|
|
950
|
+
"grid grid-cols-[auto_1fr_auto] grid-rows-[auto_auto] items-center gap-x-4 gap-y-3",
|
|
951
|
+
SURFACE_CLASSES,
|
|
952
|
+
clickableClasses,
|
|
953
|
+
className
|
|
954
|
+
)
|
|
955
|
+
}, interactiveProps), props), {
|
|
956
|
+
children: [
|
|
957
|
+
/* @__PURE__ */ jsx9("div", { className: "col-start-1 row-start-1", children: iconColumn }),
|
|
958
|
+
/* @__PURE__ */ jsx9("div", { className: "col-start-2 row-start-1 min-w-0", children: body }),
|
|
959
|
+
/* @__PURE__ */ jsx9("div", { className: "col-start-3 row-start-1", children: closeButton }),
|
|
960
|
+
effectiveActions && effectiveActions.length > 0 ? /* @__PURE__ */ jsx9("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) => {
|
|
961
|
+
const fallbackVariant = i === 0 ? "secondary" : "primary";
|
|
962
|
+
return /* @__PURE__ */ jsx9(React2.Fragment, { children: wrapAction2(node, fallbackVariant) }, i);
|
|
963
|
+
}) }) : null
|
|
964
|
+
]
|
|
965
|
+
})
|
|
966
|
+
);
|
|
967
|
+
}
|
|
968
|
+
function wrapAction2(node, defaultVariant = "primary") {
|
|
969
|
+
if (React2.isValidElement(node)) return node;
|
|
970
|
+
return /* @__PURE__ */ jsx9(Button, { variant: defaultVariant, size: "sm", children: node });
|
|
971
|
+
}
|
|
972
|
+
|
|
833
973
|
// components/ui/breadcrumb.tsx
|
|
834
974
|
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
835
975
|
import { Slot as Slot3 } from "radix-ui";
|
|
836
|
-
import { jsx as
|
|
976
|
+
import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
837
977
|
function Breadcrumb(_a) {
|
|
838
978
|
var props = __objRest(_a, []);
|
|
839
|
-
return /* @__PURE__ */
|
|
979
|
+
return /* @__PURE__ */ jsx10("nav", __spreadValues({ "aria-label": "breadcrumb", "data-slot": "breadcrumb" }, props));
|
|
840
980
|
}
|
|
841
981
|
function BreadcrumbList(_a) {
|
|
842
982
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
843
|
-
return /* @__PURE__ */
|
|
983
|
+
return /* @__PURE__ */ jsx10(
|
|
844
984
|
"ol",
|
|
845
985
|
__spreadValues({
|
|
846
986
|
"data-slot": "breadcrumb-list",
|
|
@@ -853,7 +993,7 @@ function BreadcrumbList(_a) {
|
|
|
853
993
|
}
|
|
854
994
|
function BreadcrumbItem(_a) {
|
|
855
995
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
856
|
-
return /* @__PURE__ */
|
|
996
|
+
return /* @__PURE__ */ jsx10(
|
|
857
997
|
"li",
|
|
858
998
|
__spreadValues({
|
|
859
999
|
"data-slot": "breadcrumb-item",
|
|
@@ -870,7 +1010,7 @@ function BreadcrumbLink(_a) {
|
|
|
870
1010
|
"className"
|
|
871
1011
|
]);
|
|
872
1012
|
const Comp = asChild ? Slot3.Root : "a";
|
|
873
|
-
return /* @__PURE__ */
|
|
1013
|
+
return /* @__PURE__ */ jsx10(
|
|
874
1014
|
Comp,
|
|
875
1015
|
__spreadValues({
|
|
876
1016
|
"data-slot": "breadcrumb-link",
|
|
@@ -880,7 +1020,7 @@ function BreadcrumbLink(_a) {
|
|
|
880
1020
|
}
|
|
881
1021
|
function BreadcrumbPage(_a) {
|
|
882
1022
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
883
|
-
return /* @__PURE__ */
|
|
1023
|
+
return /* @__PURE__ */ jsx10(
|
|
884
1024
|
"span",
|
|
885
1025
|
__spreadValues({
|
|
886
1026
|
"data-slot": "breadcrumb-page",
|
|
@@ -899,7 +1039,7 @@ function BreadcrumbSeparator(_a) {
|
|
|
899
1039
|
"children",
|
|
900
1040
|
"className"
|
|
901
1041
|
]);
|
|
902
|
-
return /* @__PURE__ */
|
|
1042
|
+
return /* @__PURE__ */ jsx10(
|
|
903
1043
|
"li",
|
|
904
1044
|
__spreadProps(__spreadValues({
|
|
905
1045
|
"data-slot": "breadcrumb-separator",
|
|
@@ -907,7 +1047,7 @@ function BreadcrumbSeparator(_a) {
|
|
|
907
1047
|
"aria-hidden": "true",
|
|
908
1048
|
className: cn("[&>svg]:size-3.5", className)
|
|
909
1049
|
}, props), {
|
|
910
|
-
children: children != null ? children : /* @__PURE__ */
|
|
1050
|
+
children: children != null ? children : /* @__PURE__ */ jsx10(ChevronRight, {})
|
|
911
1051
|
})
|
|
912
1052
|
);
|
|
913
1053
|
}
|
|
@@ -917,7 +1057,7 @@ function BreadcrumbEllipsis(_a) {
|
|
|
917
1057
|
} = _b, props = __objRest(_b, [
|
|
918
1058
|
"className"
|
|
919
1059
|
]);
|
|
920
|
-
return /* @__PURE__ */
|
|
1060
|
+
return /* @__PURE__ */ jsxs7(
|
|
921
1061
|
"span",
|
|
922
1062
|
__spreadProps(__spreadValues({
|
|
923
1063
|
"data-slot": "breadcrumb-ellipsis",
|
|
@@ -926,15 +1066,15 @@ function BreadcrumbEllipsis(_a) {
|
|
|
926
1066
|
className: cn("flex size-9 items-center justify-center", className)
|
|
927
1067
|
}, props), {
|
|
928
1068
|
children: [
|
|
929
|
-
/* @__PURE__ */
|
|
930
|
-
/* @__PURE__ */
|
|
1069
|
+
/* @__PURE__ */ jsx10(MoreHorizontal, { className: "size-4" }),
|
|
1070
|
+
/* @__PURE__ */ jsx10("span", { className: "sr-only", children: "More" })
|
|
931
1071
|
]
|
|
932
1072
|
})
|
|
933
1073
|
);
|
|
934
1074
|
}
|
|
935
1075
|
|
|
936
1076
|
// components/ui/calendar.tsx
|
|
937
|
-
import * as
|
|
1077
|
+
import * as React3 from "react";
|
|
938
1078
|
import {
|
|
939
1079
|
ChevronDownIcon as ChevronDownIcon2,
|
|
940
1080
|
ChevronLeftIcon,
|
|
@@ -944,7 +1084,7 @@ import {
|
|
|
944
1084
|
DayPicker,
|
|
945
1085
|
getDefaultClassNames
|
|
946
1086
|
} from "react-day-picker";
|
|
947
|
-
import { jsx as
|
|
1087
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
948
1088
|
function Calendar(_a) {
|
|
949
1089
|
var _b = _a, {
|
|
950
1090
|
className,
|
|
@@ -964,7 +1104,7 @@ function Calendar(_a) {
|
|
|
964
1104
|
"components"
|
|
965
1105
|
]);
|
|
966
1106
|
const defaultClassNames = getDefaultClassNames();
|
|
967
|
-
return /* @__PURE__ */
|
|
1107
|
+
return /* @__PURE__ */ jsx11(
|
|
968
1108
|
DayPicker,
|
|
969
1109
|
__spreadValues({
|
|
970
1110
|
showOutsideDays,
|
|
@@ -1063,7 +1203,7 @@ function Calendar(_a) {
|
|
|
1063
1203
|
components: __spreadValues({
|
|
1064
1204
|
Root: (_a2) => {
|
|
1065
1205
|
var _b2 = _a2, { className: className2, rootRef } = _b2, props2 = __objRest(_b2, ["className", "rootRef"]);
|
|
1066
|
-
return /* @__PURE__ */
|
|
1206
|
+
return /* @__PURE__ */ jsx11(
|
|
1067
1207
|
"div",
|
|
1068
1208
|
__spreadValues({
|
|
1069
1209
|
"data-slot": "calendar",
|
|
@@ -1075,22 +1215,22 @@ function Calendar(_a) {
|
|
|
1075
1215
|
Chevron: (_c) => {
|
|
1076
1216
|
var _d = _c, { className: className2, orientation } = _d, props2 = __objRest(_d, ["className", "orientation"]);
|
|
1077
1217
|
if (orientation === "left") {
|
|
1078
|
-
return /* @__PURE__ */
|
|
1218
|
+
return /* @__PURE__ */ jsx11(ChevronLeftIcon, __spreadValues({ className: cn("size-4", className2) }, props2));
|
|
1079
1219
|
}
|
|
1080
1220
|
if (orientation === "right") {
|
|
1081
|
-
return /* @__PURE__ */
|
|
1221
|
+
return /* @__PURE__ */ jsx11(
|
|
1082
1222
|
ChevronRightIcon,
|
|
1083
1223
|
__spreadValues({
|
|
1084
1224
|
className: cn("size-4", className2)
|
|
1085
1225
|
}, props2)
|
|
1086
1226
|
);
|
|
1087
1227
|
}
|
|
1088
|
-
return /* @__PURE__ */
|
|
1228
|
+
return /* @__PURE__ */ jsx11(ChevronDownIcon2, __spreadValues({ className: cn("size-4", className2) }, props2));
|
|
1089
1229
|
},
|
|
1090
1230
|
DayButton: CalendarDayButton,
|
|
1091
1231
|
WeekNumber: (_e) => {
|
|
1092
1232
|
var _f = _e, { children } = _f, props2 = __objRest(_f, ["children"]);
|
|
1093
|
-
return /* @__PURE__ */
|
|
1233
|
+
return /* @__PURE__ */ jsx11("td", __spreadProps(__spreadValues({}, props2), { children: /* @__PURE__ */ jsx11("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) }));
|
|
1094
1234
|
}
|
|
1095
1235
|
}, components)
|
|
1096
1236
|
}, props)
|
|
@@ -1107,12 +1247,12 @@ function CalendarDayButton(_a) {
|
|
|
1107
1247
|
"modifiers"
|
|
1108
1248
|
]);
|
|
1109
1249
|
const defaultClassNames = getDefaultClassNames();
|
|
1110
|
-
const ref =
|
|
1111
|
-
|
|
1250
|
+
const ref = React3.useRef(null);
|
|
1251
|
+
React3.useEffect(() => {
|
|
1112
1252
|
var _a2;
|
|
1113
1253
|
if (modifiers.focused) (_a2 = ref.current) == null ? void 0 : _a2.focus();
|
|
1114
1254
|
}, [modifiers.focused]);
|
|
1115
|
-
return /* @__PURE__ */
|
|
1255
|
+
return /* @__PURE__ */ jsx11(
|
|
1116
1256
|
Button,
|
|
1117
1257
|
__spreadValues({
|
|
1118
1258
|
ref,
|
|
@@ -1134,10 +1274,10 @@ function CalendarDayButton(_a) {
|
|
|
1134
1274
|
}
|
|
1135
1275
|
|
|
1136
1276
|
// components/ui/card.tsx
|
|
1137
|
-
import { jsx as
|
|
1277
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1138
1278
|
function Card(_a) {
|
|
1139
1279
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1140
|
-
return /* @__PURE__ */
|
|
1280
|
+
return /* @__PURE__ */ jsx12(
|
|
1141
1281
|
"div",
|
|
1142
1282
|
__spreadValues({
|
|
1143
1283
|
"data-slot": "card",
|
|
@@ -1150,7 +1290,7 @@ function Card(_a) {
|
|
|
1150
1290
|
}
|
|
1151
1291
|
function CardHeader(_a) {
|
|
1152
1292
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1153
|
-
return /* @__PURE__ */
|
|
1293
|
+
return /* @__PURE__ */ jsx12(
|
|
1154
1294
|
"div",
|
|
1155
1295
|
__spreadValues({
|
|
1156
1296
|
"data-slot": "card-header",
|
|
@@ -1163,7 +1303,7 @@ function CardHeader(_a) {
|
|
|
1163
1303
|
}
|
|
1164
1304
|
function CardTitle(_a) {
|
|
1165
1305
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1166
|
-
return /* @__PURE__ */
|
|
1306
|
+
return /* @__PURE__ */ jsx12(
|
|
1167
1307
|
"div",
|
|
1168
1308
|
__spreadValues({
|
|
1169
1309
|
"data-slot": "card-title",
|
|
@@ -1173,7 +1313,7 @@ function CardTitle(_a) {
|
|
|
1173
1313
|
}
|
|
1174
1314
|
function CardDescription(_a) {
|
|
1175
1315
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1176
|
-
return /* @__PURE__ */
|
|
1316
|
+
return /* @__PURE__ */ jsx12(
|
|
1177
1317
|
"div",
|
|
1178
1318
|
__spreadValues({
|
|
1179
1319
|
"data-slot": "card-description",
|
|
@@ -1183,7 +1323,7 @@ function CardDescription(_a) {
|
|
|
1183
1323
|
}
|
|
1184
1324
|
function CardAction(_a) {
|
|
1185
1325
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1186
|
-
return /* @__PURE__ */
|
|
1326
|
+
return /* @__PURE__ */ jsx12(
|
|
1187
1327
|
"div",
|
|
1188
1328
|
__spreadValues({
|
|
1189
1329
|
"data-slot": "card-action",
|
|
@@ -1196,7 +1336,7 @@ function CardAction(_a) {
|
|
|
1196
1336
|
}
|
|
1197
1337
|
function CardContent(_a) {
|
|
1198
1338
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1199
|
-
return /* @__PURE__ */
|
|
1339
|
+
return /* @__PURE__ */ jsx12(
|
|
1200
1340
|
"div",
|
|
1201
1341
|
__spreadValues({
|
|
1202
1342
|
"data-slot": "card-content",
|
|
@@ -1206,7 +1346,7 @@ function CardContent(_a) {
|
|
|
1206
1346
|
}
|
|
1207
1347
|
function CardFooter(_a) {
|
|
1208
1348
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1209
|
-
return /* @__PURE__ */
|
|
1349
|
+
return /* @__PURE__ */ jsx12(
|
|
1210
1350
|
"div",
|
|
1211
1351
|
__spreadValues({
|
|
1212
1352
|
"data-slot": "card-footer",
|
|
@@ -1216,13 +1356,13 @@ function CardFooter(_a) {
|
|
|
1216
1356
|
}
|
|
1217
1357
|
|
|
1218
1358
|
// components/ui/carousel.tsx
|
|
1219
|
-
import * as
|
|
1359
|
+
import * as React4 from "react";
|
|
1220
1360
|
import useEmblaCarousel from "embla-carousel-react";
|
|
1221
1361
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
1222
|
-
import { jsx as
|
|
1223
|
-
var CarouselContext =
|
|
1362
|
+
import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1363
|
+
var CarouselContext = React4.createContext(null);
|
|
1224
1364
|
function useCarousel() {
|
|
1225
|
-
const context =
|
|
1365
|
+
const context = React4.useContext(CarouselContext);
|
|
1226
1366
|
if (!context) {
|
|
1227
1367
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1228
1368
|
}
|
|
@@ -1250,20 +1390,20 @@ function Carousel(_a) {
|
|
|
1250
1390
|
}),
|
|
1251
1391
|
plugins
|
|
1252
1392
|
);
|
|
1253
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
1254
|
-
const [canScrollNext, setCanScrollNext] =
|
|
1255
|
-
const onSelect =
|
|
1393
|
+
const [canScrollPrev, setCanScrollPrev] = React4.useState(false);
|
|
1394
|
+
const [canScrollNext, setCanScrollNext] = React4.useState(false);
|
|
1395
|
+
const onSelect = React4.useCallback((api2) => {
|
|
1256
1396
|
if (!api2) return;
|
|
1257
1397
|
setCanScrollPrev(api2.canScrollPrev());
|
|
1258
1398
|
setCanScrollNext(api2.canScrollNext());
|
|
1259
1399
|
}, []);
|
|
1260
|
-
const scrollPrev =
|
|
1400
|
+
const scrollPrev = React4.useCallback(() => {
|
|
1261
1401
|
api == null ? void 0 : api.scrollPrev();
|
|
1262
1402
|
}, [api]);
|
|
1263
|
-
const scrollNext =
|
|
1403
|
+
const scrollNext = React4.useCallback(() => {
|
|
1264
1404
|
api == null ? void 0 : api.scrollNext();
|
|
1265
1405
|
}, [api]);
|
|
1266
|
-
const handleKeyDown =
|
|
1406
|
+
const handleKeyDown = React4.useCallback(
|
|
1267
1407
|
(event) => {
|
|
1268
1408
|
if (event.key === "ArrowLeft") {
|
|
1269
1409
|
event.preventDefault();
|
|
@@ -1275,11 +1415,11 @@ function Carousel(_a) {
|
|
|
1275
1415
|
},
|
|
1276
1416
|
[scrollPrev, scrollNext]
|
|
1277
1417
|
);
|
|
1278
|
-
|
|
1418
|
+
React4.useEffect(() => {
|
|
1279
1419
|
if (!api || !setApi) return;
|
|
1280
1420
|
setApi(api);
|
|
1281
1421
|
}, [api, setApi]);
|
|
1282
|
-
|
|
1422
|
+
React4.useEffect(() => {
|
|
1283
1423
|
if (!api) return;
|
|
1284
1424
|
onSelect(api);
|
|
1285
1425
|
api.on("reInit", onSelect);
|
|
@@ -1288,7 +1428,7 @@ function Carousel(_a) {
|
|
|
1288
1428
|
api == null ? void 0 : api.off("select", onSelect);
|
|
1289
1429
|
};
|
|
1290
1430
|
}, [api, onSelect]);
|
|
1291
|
-
return /* @__PURE__ */
|
|
1431
|
+
return /* @__PURE__ */ jsx13(
|
|
1292
1432
|
CarouselContext.Provider,
|
|
1293
1433
|
{
|
|
1294
1434
|
value: {
|
|
@@ -1301,7 +1441,7 @@ function Carousel(_a) {
|
|
|
1301
1441
|
canScrollPrev,
|
|
1302
1442
|
canScrollNext
|
|
1303
1443
|
},
|
|
1304
|
-
children: /* @__PURE__ */
|
|
1444
|
+
children: /* @__PURE__ */ jsx13(
|
|
1305
1445
|
"div",
|
|
1306
1446
|
__spreadProps(__spreadValues({
|
|
1307
1447
|
onKeyDownCapture: handleKeyDown,
|
|
@@ -1319,13 +1459,13 @@ function Carousel(_a) {
|
|
|
1319
1459
|
function CarouselContent(_a) {
|
|
1320
1460
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1321
1461
|
const { carouselRef, orientation } = useCarousel();
|
|
1322
|
-
return /* @__PURE__ */
|
|
1462
|
+
return /* @__PURE__ */ jsx13(
|
|
1323
1463
|
"div",
|
|
1324
1464
|
{
|
|
1325
1465
|
ref: carouselRef,
|
|
1326
1466
|
className: "overflow-hidden",
|
|
1327
1467
|
"data-slot": "carousel-content",
|
|
1328
|
-
children: /* @__PURE__ */
|
|
1468
|
+
children: /* @__PURE__ */ jsx13(
|
|
1329
1469
|
"div",
|
|
1330
1470
|
__spreadValues({
|
|
1331
1471
|
className: cn(
|
|
@@ -1341,7 +1481,7 @@ function CarouselContent(_a) {
|
|
|
1341
1481
|
function CarouselItem(_a) {
|
|
1342
1482
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1343
1483
|
const { orientation } = useCarousel();
|
|
1344
|
-
return /* @__PURE__ */
|
|
1484
|
+
return /* @__PURE__ */ jsx13(
|
|
1345
1485
|
"div",
|
|
1346
1486
|
__spreadValues({
|
|
1347
1487
|
role: "group",
|
|
@@ -1366,7 +1506,7 @@ function CarouselPrevious(_a) {
|
|
|
1366
1506
|
"size"
|
|
1367
1507
|
]);
|
|
1368
1508
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1369
|
-
return /* @__PURE__ */
|
|
1509
|
+
return /* @__PURE__ */ jsxs8(
|
|
1370
1510
|
Button,
|
|
1371
1511
|
__spreadProps(__spreadValues({
|
|
1372
1512
|
"data-slot": "carousel-previous",
|
|
@@ -1381,8 +1521,8 @@ function CarouselPrevious(_a) {
|
|
|
1381
1521
|
onClick: scrollPrev
|
|
1382
1522
|
}, props), {
|
|
1383
1523
|
children: [
|
|
1384
|
-
/* @__PURE__ */
|
|
1385
|
-
/* @__PURE__ */
|
|
1524
|
+
/* @__PURE__ */ jsx13(ArrowLeft, {}),
|
|
1525
|
+
/* @__PURE__ */ jsx13("span", { className: "sr-only", children: "Previous slide" })
|
|
1386
1526
|
]
|
|
1387
1527
|
})
|
|
1388
1528
|
);
|
|
@@ -1398,7 +1538,7 @@ function CarouselNext(_a) {
|
|
|
1398
1538
|
"size"
|
|
1399
1539
|
]);
|
|
1400
1540
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1401
|
-
return /* @__PURE__ */
|
|
1541
|
+
return /* @__PURE__ */ jsxs8(
|
|
1402
1542
|
Button,
|
|
1403
1543
|
__spreadProps(__spreadValues({
|
|
1404
1544
|
"data-slot": "carousel-next",
|
|
@@ -1413,21 +1553,21 @@ function CarouselNext(_a) {
|
|
|
1413
1553
|
onClick: scrollNext
|
|
1414
1554
|
}, props), {
|
|
1415
1555
|
children: [
|
|
1416
|
-
/* @__PURE__ */
|
|
1417
|
-
/* @__PURE__ */
|
|
1556
|
+
/* @__PURE__ */ jsx13(ArrowRight, {}),
|
|
1557
|
+
/* @__PURE__ */ jsx13("span", { className: "sr-only", children: "Next slide" })
|
|
1418
1558
|
]
|
|
1419
1559
|
})
|
|
1420
1560
|
);
|
|
1421
1561
|
}
|
|
1422
1562
|
|
|
1423
1563
|
// components/ui/chart.tsx
|
|
1424
|
-
import * as
|
|
1564
|
+
import * as React5 from "react";
|
|
1425
1565
|
import * as RechartsPrimitive from "recharts";
|
|
1426
|
-
import { Fragment as
|
|
1566
|
+
import { Fragment as Fragment4, jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1427
1567
|
var THEMES = { light: "" };
|
|
1428
|
-
var ChartContext =
|
|
1568
|
+
var ChartContext = React5.createContext(null);
|
|
1429
1569
|
function useChart() {
|
|
1430
|
-
const context =
|
|
1570
|
+
const context = React5.useContext(ChartContext);
|
|
1431
1571
|
if (!context) {
|
|
1432
1572
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
1433
1573
|
}
|
|
@@ -1445,9 +1585,9 @@ function ChartContainer(_a) {
|
|
|
1445
1585
|
"children",
|
|
1446
1586
|
"config"
|
|
1447
1587
|
]);
|
|
1448
|
-
const uniqueId =
|
|
1588
|
+
const uniqueId = React5.useId();
|
|
1449
1589
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
1450
|
-
return /* @__PURE__ */
|
|
1590
|
+
return /* @__PURE__ */ jsx14(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs9(
|
|
1451
1591
|
"div",
|
|
1452
1592
|
__spreadProps(__spreadValues({
|
|
1453
1593
|
"data-slot": "chart",
|
|
@@ -1458,8 +1598,8 @@ function ChartContainer(_a) {
|
|
|
1458
1598
|
)
|
|
1459
1599
|
}, props), {
|
|
1460
1600
|
children: [
|
|
1461
|
-
/* @__PURE__ */
|
|
1462
|
-
/* @__PURE__ */
|
|
1601
|
+
/* @__PURE__ */ jsx14(ChartStyle, { id: chartId, config }),
|
|
1602
|
+
/* @__PURE__ */ jsx14(RechartsPrimitive.ResponsiveContainer, { children })
|
|
1463
1603
|
]
|
|
1464
1604
|
})
|
|
1465
1605
|
) });
|
|
@@ -1471,7 +1611,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
1471
1611
|
if (!colorConfig.length) {
|
|
1472
1612
|
return null;
|
|
1473
1613
|
}
|
|
1474
|
-
return /* @__PURE__ */
|
|
1614
|
+
return /* @__PURE__ */ jsx14(
|
|
1475
1615
|
"style",
|
|
1476
1616
|
{
|
|
1477
1617
|
dangerouslySetInnerHTML: {
|
|
@@ -1507,7 +1647,7 @@ function ChartTooltipContent({
|
|
|
1507
1647
|
labelKey
|
|
1508
1648
|
}) {
|
|
1509
1649
|
const { config } = useChart();
|
|
1510
|
-
const tooltipLabel =
|
|
1650
|
+
const tooltipLabel = React5.useMemo(() => {
|
|
1511
1651
|
var _a;
|
|
1512
1652
|
if (hideLabel || !(payload == null ? void 0 : payload.length)) {
|
|
1513
1653
|
return null;
|
|
@@ -1517,12 +1657,12 @@ function ChartTooltipContent({
|
|
|
1517
1657
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1518
1658
|
const value = !labelKey && typeof label === "string" ? ((_a = config[label]) == null ? void 0 : _a.label) || label : itemConfig == null ? void 0 : itemConfig.label;
|
|
1519
1659
|
if (labelFormatter) {
|
|
1520
|
-
return /* @__PURE__ */
|
|
1660
|
+
return /* @__PURE__ */ jsx14("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
1521
1661
|
}
|
|
1522
1662
|
if (!value) {
|
|
1523
1663
|
return null;
|
|
1524
1664
|
}
|
|
1525
|
-
return /* @__PURE__ */
|
|
1665
|
+
return /* @__PURE__ */ jsx14("div", { className: cn("font-medium", labelClassName), children: value });
|
|
1526
1666
|
}, [
|
|
1527
1667
|
label,
|
|
1528
1668
|
labelFormatter,
|
|
@@ -1536,7 +1676,7 @@ function ChartTooltipContent({
|
|
|
1536
1676
|
return null;
|
|
1537
1677
|
}
|
|
1538
1678
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
1539
|
-
return /* @__PURE__ */
|
|
1679
|
+
return /* @__PURE__ */ jsxs9(
|
|
1540
1680
|
"div",
|
|
1541
1681
|
{
|
|
1542
1682
|
className: cn(
|
|
@@ -1545,19 +1685,19 @@ function ChartTooltipContent({
|
|
|
1545
1685
|
),
|
|
1546
1686
|
children: [
|
|
1547
1687
|
!nestLabel ? tooltipLabel : null,
|
|
1548
|
-
/* @__PURE__ */
|
|
1688
|
+
/* @__PURE__ */ jsx14("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
1549
1689
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
1550
1690
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1551
1691
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
1552
|
-
return /* @__PURE__ */
|
|
1692
|
+
return /* @__PURE__ */ jsx14(
|
|
1553
1693
|
"div",
|
|
1554
1694
|
{
|
|
1555
1695
|
className: cn(
|
|
1556
1696
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-on-subtle",
|
|
1557
1697
|
indicator === "dot" && "items-center"
|
|
1558
1698
|
),
|
|
1559
|
-
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */
|
|
1560
|
-
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */
|
|
1699
|
+
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs9(Fragment4, { children: [
|
|
1700
|
+
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ jsx14(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx14(
|
|
1561
1701
|
"div",
|
|
1562
1702
|
{
|
|
1563
1703
|
className: cn(
|
|
@@ -1575,7 +1715,7 @@ function ChartTooltipContent({
|
|
|
1575
1715
|
}
|
|
1576
1716
|
}
|
|
1577
1717
|
),
|
|
1578
|
-
/* @__PURE__ */
|
|
1718
|
+
/* @__PURE__ */ jsxs9(
|
|
1579
1719
|
"div",
|
|
1580
1720
|
{
|
|
1581
1721
|
className: cn(
|
|
@@ -1583,11 +1723,11 @@ function ChartTooltipContent({
|
|
|
1583
1723
|
nestLabel ? "items-end" : "items-center"
|
|
1584
1724
|
),
|
|
1585
1725
|
children: [
|
|
1586
|
-
/* @__PURE__ */
|
|
1726
|
+
/* @__PURE__ */ jsxs9("div", { className: "grid gap-1.5", children: [
|
|
1587
1727
|
nestLabel ? tooltipLabel : null,
|
|
1588
|
-
/* @__PURE__ */
|
|
1728
|
+
/* @__PURE__ */ jsx14("span", { className: "text-on-subtle", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
|
|
1589
1729
|
] }),
|
|
1590
|
-
item.value && /* @__PURE__ */
|
|
1730
|
+
item.value && /* @__PURE__ */ jsx14("span", { className: "font-mono font-medium text-on-prominent tabular-nums", children: item.value.toLocaleString() })
|
|
1591
1731
|
]
|
|
1592
1732
|
}
|
|
1593
1733
|
)
|
|
@@ -1612,7 +1752,7 @@ function ChartLegendContent({
|
|
|
1612
1752
|
if (!(payload == null ? void 0 : payload.length)) {
|
|
1613
1753
|
return null;
|
|
1614
1754
|
}
|
|
1615
|
-
return /* @__PURE__ */
|
|
1755
|
+
return /* @__PURE__ */ jsx14(
|
|
1616
1756
|
"div",
|
|
1617
1757
|
{
|
|
1618
1758
|
className: cn(
|
|
@@ -1623,14 +1763,14 @@ function ChartLegendContent({
|
|
|
1623
1763
|
children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
1624
1764
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1625
1765
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1626
|
-
return /* @__PURE__ */
|
|
1766
|
+
return /* @__PURE__ */ jsxs9(
|
|
1627
1767
|
"div",
|
|
1628
1768
|
{
|
|
1629
1769
|
className: cn(
|
|
1630
1770
|
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-on-subtle"
|
|
1631
1771
|
),
|
|
1632
1772
|
children: [
|
|
1633
|
-
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */
|
|
1773
|
+
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ jsx14(itemConfig.icon, {}) : /* @__PURE__ */ jsx14(
|
|
1634
1774
|
"div",
|
|
1635
1775
|
{
|
|
1636
1776
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -1665,14 +1805,14 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1665
1805
|
// components/ui/checkbox.tsx
|
|
1666
1806
|
import { CheckIcon } from "lucide-react";
|
|
1667
1807
|
import { Checkbox as CheckboxPrimitive } from "radix-ui";
|
|
1668
|
-
import { jsx as
|
|
1808
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1669
1809
|
function Checkbox(_a) {
|
|
1670
1810
|
var _b = _a, {
|
|
1671
1811
|
className
|
|
1672
1812
|
} = _b, props = __objRest(_b, [
|
|
1673
1813
|
"className"
|
|
1674
1814
|
]);
|
|
1675
|
-
return /* @__PURE__ */
|
|
1815
|
+
return /* @__PURE__ */ jsx15(
|
|
1676
1816
|
CheckboxPrimitive.Root,
|
|
1677
1817
|
__spreadProps(__spreadValues({
|
|
1678
1818
|
"data-slot": "checkbox",
|
|
@@ -1681,12 +1821,12 @@ function Checkbox(_a) {
|
|
|
1681
1821
|
className
|
|
1682
1822
|
)
|
|
1683
1823
|
}, props), {
|
|
1684
|
-
children: /* @__PURE__ */
|
|
1824
|
+
children: /* @__PURE__ */ jsx15(
|
|
1685
1825
|
CheckboxPrimitive.Indicator,
|
|
1686
1826
|
{
|
|
1687
1827
|
"data-slot": "checkbox-indicator",
|
|
1688
1828
|
className: "grid place-content-center text-current transition-none",
|
|
1689
|
-
children: /* @__PURE__ */
|
|
1829
|
+
children: /* @__PURE__ */ jsx15(CheckIcon, { className: "size-3.5" })
|
|
1690
1830
|
}
|
|
1691
1831
|
)
|
|
1692
1832
|
})
|
|
@@ -1695,14 +1835,14 @@ function Checkbox(_a) {
|
|
|
1695
1835
|
|
|
1696
1836
|
// components/ui/collapsible.tsx
|
|
1697
1837
|
import { Collapsible as CollapsiblePrimitive } from "radix-ui";
|
|
1698
|
-
import { jsx as
|
|
1838
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1699
1839
|
function Collapsible(_a) {
|
|
1700
1840
|
var props = __objRest(_a, []);
|
|
1701
|
-
return /* @__PURE__ */
|
|
1841
|
+
return /* @__PURE__ */ jsx16(CollapsiblePrimitive.Root, __spreadValues({ "data-slot": "collapsible" }, props));
|
|
1702
1842
|
}
|
|
1703
1843
|
function CollapsibleTrigger(_a) {
|
|
1704
1844
|
var props = __objRest(_a, []);
|
|
1705
|
-
return /* @__PURE__ */
|
|
1845
|
+
return /* @__PURE__ */ jsx16(
|
|
1706
1846
|
CollapsiblePrimitive.CollapsibleTrigger,
|
|
1707
1847
|
__spreadValues({
|
|
1708
1848
|
"data-slot": "collapsible-trigger"
|
|
@@ -1711,7 +1851,7 @@ function CollapsibleTrigger(_a) {
|
|
|
1711
1851
|
}
|
|
1712
1852
|
function CollapsibleContent(_a) {
|
|
1713
1853
|
var props = __objRest(_a, []);
|
|
1714
|
-
return /* @__PURE__ */
|
|
1854
|
+
return /* @__PURE__ */ jsx16(
|
|
1715
1855
|
CollapsiblePrimitive.CollapsibleContent,
|
|
1716
1856
|
__spreadValues({
|
|
1717
1857
|
"data-slot": "collapsible-content"
|
|
@@ -1720,17 +1860,17 @@ function CollapsibleContent(_a) {
|
|
|
1720
1860
|
}
|
|
1721
1861
|
|
|
1722
1862
|
// components/ui/combobox.tsx
|
|
1723
|
-
import * as
|
|
1863
|
+
import * as React7 from "react";
|
|
1724
1864
|
import { Combobox as ComboboxPrimitive } from "@base-ui/react";
|
|
1725
1865
|
import { CheckIcon as CheckIcon2, ChevronDownIcon as ChevronDownIcon3, XIcon } from "lucide-react";
|
|
1726
1866
|
|
|
1727
1867
|
// components/ui/input-group.tsx
|
|
1728
|
-
import * as
|
|
1868
|
+
import * as React6 from "react";
|
|
1729
1869
|
import { cva as cva5 } from "class-variance-authority";
|
|
1730
1870
|
|
|
1731
1871
|
// components/ui/input.tsx
|
|
1732
1872
|
import { cva as cva4 } from "class-variance-authority";
|
|
1733
|
-
import { jsx as
|
|
1873
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1734
1874
|
var inputVariants = cva4(
|
|
1735
1875
|
[
|
|
1736
1876
|
"w-full min-w-0 rounded-sm border border-border-subtle bg-white/5",
|
|
@@ -1764,7 +1904,7 @@ function Input(_a) {
|
|
|
1764
1904
|
"type",
|
|
1765
1905
|
"size"
|
|
1766
1906
|
]);
|
|
1767
|
-
return /* @__PURE__ */
|
|
1907
|
+
return /* @__PURE__ */ jsx17(
|
|
1768
1908
|
"input",
|
|
1769
1909
|
__spreadValues({
|
|
1770
1910
|
type,
|
|
@@ -1776,10 +1916,10 @@ function Input(_a) {
|
|
|
1776
1916
|
}
|
|
1777
1917
|
|
|
1778
1918
|
// components/ui/textarea.tsx
|
|
1779
|
-
import { jsx as
|
|
1919
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1780
1920
|
function Textarea(_a) {
|
|
1781
1921
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1782
|
-
return /* @__PURE__ */
|
|
1922
|
+
return /* @__PURE__ */ jsx18(
|
|
1783
1923
|
"textarea",
|
|
1784
1924
|
__spreadValues({
|
|
1785
1925
|
"data-slot": "textarea",
|
|
@@ -1792,8 +1932,8 @@ function Textarea(_a) {
|
|
|
1792
1932
|
}
|
|
1793
1933
|
|
|
1794
1934
|
// components/ui/input-group.tsx
|
|
1795
|
-
import { jsx as
|
|
1796
|
-
var InputGroupSizeContext =
|
|
1935
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1936
|
+
var InputGroupSizeContext = React6.createContext("md");
|
|
1797
1937
|
var inputGroupVariants = cva5(
|
|
1798
1938
|
[
|
|
1799
1939
|
"group/input-group relative flex w-full items-center rounded-sm border border-border-subtle bg-white/5",
|
|
@@ -1831,7 +1971,7 @@ function InputGroup(_a) {
|
|
|
1831
1971
|
"className",
|
|
1832
1972
|
"size"
|
|
1833
1973
|
]);
|
|
1834
|
-
return /* @__PURE__ */
|
|
1974
|
+
return /* @__PURE__ */ jsx19(InputGroupSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsx19(
|
|
1835
1975
|
"div",
|
|
1836
1976
|
__spreadValues({
|
|
1837
1977
|
"data-slot": "input-group",
|
|
@@ -1876,7 +2016,7 @@ function InputGroupAddon(_a) {
|
|
|
1876
2016
|
"className",
|
|
1877
2017
|
"align"
|
|
1878
2018
|
]);
|
|
1879
|
-
return /* @__PURE__ */
|
|
2019
|
+
return /* @__PURE__ */ jsx19(
|
|
1880
2020
|
"div",
|
|
1881
2021
|
__spreadValues({
|
|
1882
2022
|
role: "group",
|
|
@@ -1921,7 +2061,7 @@ function InputGroupButton(_a) {
|
|
|
1921
2061
|
"variant",
|
|
1922
2062
|
"size"
|
|
1923
2063
|
]);
|
|
1924
|
-
return /* @__PURE__ */
|
|
2064
|
+
return /* @__PURE__ */ jsx19(
|
|
1925
2065
|
Button,
|
|
1926
2066
|
__spreadValues({
|
|
1927
2067
|
type,
|
|
@@ -1933,7 +2073,7 @@ function InputGroupButton(_a) {
|
|
|
1933
2073
|
}
|
|
1934
2074
|
function InputGroupText(_a) {
|
|
1935
2075
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1936
|
-
return /* @__PURE__ */
|
|
2076
|
+
return /* @__PURE__ */ jsx19(
|
|
1937
2077
|
"span",
|
|
1938
2078
|
__spreadValues({
|
|
1939
2079
|
className: cn(
|
|
@@ -1955,9 +2095,9 @@ function InputGroupInput(_a) {
|
|
|
1955
2095
|
"className",
|
|
1956
2096
|
"size"
|
|
1957
2097
|
]);
|
|
1958
|
-
const groupSize =
|
|
2098
|
+
const groupSize = React6.useContext(InputGroupSizeContext);
|
|
1959
2099
|
const size = sizeProp != null ? sizeProp : groupSize;
|
|
1960
|
-
return /* @__PURE__ */
|
|
2100
|
+
return /* @__PURE__ */ jsx19(
|
|
1961
2101
|
Input,
|
|
1962
2102
|
__spreadValues({
|
|
1963
2103
|
"data-slot": "input-group-control",
|
|
@@ -1975,7 +2115,7 @@ function InputGroupTextarea(_a) {
|
|
|
1975
2115
|
} = _b, props = __objRest(_b, [
|
|
1976
2116
|
"className"
|
|
1977
2117
|
]);
|
|
1978
|
-
return /* @__PURE__ */
|
|
2118
|
+
return /* @__PURE__ */ jsx19(
|
|
1979
2119
|
Textarea,
|
|
1980
2120
|
__spreadValues({
|
|
1981
2121
|
"data-slot": "input-group-control",
|
|
@@ -1988,11 +2128,11 @@ function InputGroupTextarea(_a) {
|
|
|
1988
2128
|
}
|
|
1989
2129
|
|
|
1990
2130
|
// components/ui/combobox.tsx
|
|
1991
|
-
import { jsx as
|
|
2131
|
+
import { jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1992
2132
|
var Combobox = ComboboxPrimitive.Root;
|
|
1993
2133
|
function ComboboxValue(_a) {
|
|
1994
2134
|
var props = __objRest(_a, []);
|
|
1995
|
-
return /* @__PURE__ */
|
|
2135
|
+
return /* @__PURE__ */ jsx20(ComboboxPrimitive.Value, __spreadValues({ "data-slot": "combobox-value" }, props));
|
|
1996
2136
|
}
|
|
1997
2137
|
function ComboboxTrigger(_a) {
|
|
1998
2138
|
var _b = _a, {
|
|
@@ -2002,7 +2142,7 @@ function ComboboxTrigger(_a) {
|
|
|
2002
2142
|
"className",
|
|
2003
2143
|
"children"
|
|
2004
2144
|
]);
|
|
2005
|
-
return /* @__PURE__ */
|
|
2145
|
+
return /* @__PURE__ */ jsxs10(
|
|
2006
2146
|
ComboboxPrimitive.Trigger,
|
|
2007
2147
|
__spreadProps(__spreadValues({
|
|
2008
2148
|
"data-slot": "combobox-trigger",
|
|
@@ -2010,7 +2150,7 @@ function ComboboxTrigger(_a) {
|
|
|
2010
2150
|
}, props), {
|
|
2011
2151
|
children: [
|
|
2012
2152
|
children,
|
|
2013
|
-
/* @__PURE__ */
|
|
2153
|
+
/* @__PURE__ */ jsx20(
|
|
2014
2154
|
ChevronDownIcon3,
|
|
2015
2155
|
{
|
|
2016
2156
|
"data-slot": "combobox-trigger-icon",
|
|
@@ -2023,14 +2163,14 @@ function ComboboxTrigger(_a) {
|
|
|
2023
2163
|
}
|
|
2024
2164
|
function ComboboxClear(_a) {
|
|
2025
2165
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2026
|
-
return /* @__PURE__ */
|
|
2166
|
+
return /* @__PURE__ */ jsx20(
|
|
2027
2167
|
ComboboxPrimitive.Clear,
|
|
2028
2168
|
__spreadProps(__spreadValues({
|
|
2029
2169
|
"data-slot": "combobox-clear",
|
|
2030
|
-
render: /* @__PURE__ */
|
|
2170
|
+
render: /* @__PURE__ */ jsx20(InputGroupButton, { variant: "secondary", size: "icon-xs" }),
|
|
2031
2171
|
className: cn(className)
|
|
2032
2172
|
}, props), {
|
|
2033
|
-
children: /* @__PURE__ */
|
|
2173
|
+
children: /* @__PURE__ */ jsx20(XIcon, { className: "pointer-events-none" })
|
|
2034
2174
|
})
|
|
2035
2175
|
);
|
|
2036
2176
|
}
|
|
@@ -2048,15 +2188,15 @@ function ComboboxInput(_a) {
|
|
|
2048
2188
|
"showTrigger",
|
|
2049
2189
|
"showClear"
|
|
2050
2190
|
]);
|
|
2051
|
-
return /* @__PURE__ */
|
|
2052
|
-
/* @__PURE__ */
|
|
2191
|
+
return /* @__PURE__ */ jsxs10(InputGroup, { className: cn("w-auto", className), children: [
|
|
2192
|
+
/* @__PURE__ */ jsx20(
|
|
2053
2193
|
ComboboxPrimitive.Input,
|
|
2054
2194
|
__spreadValues({
|
|
2055
|
-
render: /* @__PURE__ */
|
|
2195
|
+
render: /* @__PURE__ */ jsx20(InputGroupInput, { disabled })
|
|
2056
2196
|
}, props)
|
|
2057
2197
|
),
|
|
2058
|
-
/* @__PURE__ */
|
|
2059
|
-
showTrigger && /* @__PURE__ */
|
|
2198
|
+
/* @__PURE__ */ jsxs10(InputGroupAddon, { align: "inline-end", children: [
|
|
2199
|
+
showTrigger && /* @__PURE__ */ jsx20(
|
|
2060
2200
|
InputGroupButton,
|
|
2061
2201
|
{
|
|
2062
2202
|
size: "icon-xs",
|
|
@@ -2065,10 +2205,10 @@ function ComboboxInput(_a) {
|
|
|
2065
2205
|
"data-slot": "input-group-button",
|
|
2066
2206
|
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
2067
2207
|
disabled,
|
|
2068
|
-
children: /* @__PURE__ */
|
|
2208
|
+
children: /* @__PURE__ */ jsx20(ComboboxTrigger, {})
|
|
2069
2209
|
}
|
|
2070
2210
|
),
|
|
2071
|
-
showClear && /* @__PURE__ */
|
|
2211
|
+
showClear && /* @__PURE__ */ jsx20(ComboboxClear, { disabled })
|
|
2072
2212
|
] }),
|
|
2073
2213
|
children
|
|
2074
2214
|
] });
|
|
@@ -2089,7 +2229,7 @@ function ComboboxContent(_a) {
|
|
|
2089
2229
|
"alignOffset",
|
|
2090
2230
|
"anchor"
|
|
2091
2231
|
]);
|
|
2092
|
-
return /* @__PURE__ */
|
|
2232
|
+
return /* @__PURE__ */ jsx20(ComboboxPrimitive.Portal, { children: /* @__PURE__ */ jsx20(
|
|
2093
2233
|
ComboboxPrimitive.Positioner,
|
|
2094
2234
|
{
|
|
2095
2235
|
side,
|
|
@@ -2098,7 +2238,7 @@ function ComboboxContent(_a) {
|
|
|
2098
2238
|
alignOffset,
|
|
2099
2239
|
anchor,
|
|
2100
2240
|
className: "isolate z-50",
|
|
2101
|
-
children: /* @__PURE__ */
|
|
2241
|
+
children: /* @__PURE__ */ jsx20(
|
|
2102
2242
|
ComboboxPrimitive.Popup,
|
|
2103
2243
|
__spreadValues({
|
|
2104
2244
|
"data-slot": "combobox-content",
|
|
@@ -2114,7 +2254,7 @@ function ComboboxContent(_a) {
|
|
|
2114
2254
|
}
|
|
2115
2255
|
function ComboboxList(_a) {
|
|
2116
2256
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2117
|
-
return /* @__PURE__ */
|
|
2257
|
+
return /* @__PURE__ */ jsx20(
|
|
2118
2258
|
ComboboxPrimitive.List,
|
|
2119
2259
|
__spreadValues({
|
|
2120
2260
|
"data-slot": "combobox-list",
|
|
@@ -2133,7 +2273,7 @@ function ComboboxItem(_a) {
|
|
|
2133
2273
|
"className",
|
|
2134
2274
|
"children"
|
|
2135
2275
|
]);
|
|
2136
|
-
return /* @__PURE__ */
|
|
2276
|
+
return /* @__PURE__ */ jsxs10(
|
|
2137
2277
|
ComboboxPrimitive.Item,
|
|
2138
2278
|
__spreadProps(__spreadValues({
|
|
2139
2279
|
"data-slot": "combobox-item",
|
|
@@ -2144,12 +2284,12 @@ function ComboboxItem(_a) {
|
|
|
2144
2284
|
}, props), {
|
|
2145
2285
|
children: [
|
|
2146
2286
|
children,
|
|
2147
|
-
/* @__PURE__ */
|
|
2287
|
+
/* @__PURE__ */ jsx20(
|
|
2148
2288
|
ComboboxPrimitive.ItemIndicator,
|
|
2149
2289
|
{
|
|
2150
2290
|
"data-slot": "combobox-item-indicator",
|
|
2151
|
-
render: /* @__PURE__ */
|
|
2152
|
-
children: /* @__PURE__ */
|
|
2291
|
+
render: /* @__PURE__ */ jsx20("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
2292
|
+
children: /* @__PURE__ */ jsx20(CheckIcon2, { className: "pointer-events-none size-4 pointer-coarse:size-5" })
|
|
2153
2293
|
}
|
|
2154
2294
|
)
|
|
2155
2295
|
]
|
|
@@ -2158,7 +2298,7 @@ function ComboboxItem(_a) {
|
|
|
2158
2298
|
}
|
|
2159
2299
|
function ComboboxGroup(_a) {
|
|
2160
2300
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2161
|
-
return /* @__PURE__ */
|
|
2301
|
+
return /* @__PURE__ */ jsx20(
|
|
2162
2302
|
ComboboxPrimitive.Group,
|
|
2163
2303
|
__spreadValues({
|
|
2164
2304
|
"data-slot": "combobox-group",
|
|
@@ -2172,7 +2312,7 @@ function ComboboxLabel(_a) {
|
|
|
2172
2312
|
} = _b, props = __objRest(_b, [
|
|
2173
2313
|
"className"
|
|
2174
2314
|
]);
|
|
2175
|
-
return /* @__PURE__ */
|
|
2315
|
+
return /* @__PURE__ */ jsx20(
|
|
2176
2316
|
ComboboxPrimitive.GroupLabel,
|
|
2177
2317
|
__spreadValues({
|
|
2178
2318
|
"data-slot": "combobox-label",
|
|
@@ -2185,11 +2325,11 @@ function ComboboxLabel(_a) {
|
|
|
2185
2325
|
}
|
|
2186
2326
|
function ComboboxCollection(_a) {
|
|
2187
2327
|
var props = __objRest(_a, []);
|
|
2188
|
-
return /* @__PURE__ */
|
|
2328
|
+
return /* @__PURE__ */ jsx20(ComboboxPrimitive.Collection, __spreadValues({ "data-slot": "combobox-collection" }, props));
|
|
2189
2329
|
}
|
|
2190
2330
|
function ComboboxEmpty(_a) {
|
|
2191
2331
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2192
|
-
return /* @__PURE__ */
|
|
2332
|
+
return /* @__PURE__ */ jsx20(
|
|
2193
2333
|
ComboboxPrimitive.Empty,
|
|
2194
2334
|
__spreadValues({
|
|
2195
2335
|
"data-slot": "combobox-empty",
|
|
@@ -2206,7 +2346,7 @@ function ComboboxSeparator(_a) {
|
|
|
2206
2346
|
} = _b, props = __objRest(_b, [
|
|
2207
2347
|
"className"
|
|
2208
2348
|
]);
|
|
2209
|
-
return /* @__PURE__ */
|
|
2349
|
+
return /* @__PURE__ */ jsx20(
|
|
2210
2350
|
ComboboxPrimitive.Separator,
|
|
2211
2351
|
__spreadValues({
|
|
2212
2352
|
"data-slot": "combobox-separator",
|
|
@@ -2220,7 +2360,7 @@ function ComboboxChips(_a) {
|
|
|
2220
2360
|
} = _b, props = __objRest(_b, [
|
|
2221
2361
|
"className"
|
|
2222
2362
|
]);
|
|
2223
|
-
return /* @__PURE__ */
|
|
2363
|
+
return /* @__PURE__ */ jsx20(
|
|
2224
2364
|
ComboboxPrimitive.Chips,
|
|
2225
2365
|
__spreadValues({
|
|
2226
2366
|
"data-slot": "combobox-chips",
|
|
@@ -2241,7 +2381,7 @@ function ComboboxChip(_a) {
|
|
|
2241
2381
|
"children",
|
|
2242
2382
|
"showRemove"
|
|
2243
2383
|
]);
|
|
2244
|
-
return /* @__PURE__ */
|
|
2384
|
+
return /* @__PURE__ */ jsxs10(
|
|
2245
2385
|
ComboboxPrimitive.Chip,
|
|
2246
2386
|
__spreadProps(__spreadValues({
|
|
2247
2387
|
"data-slot": "combobox-chip",
|
|
@@ -2252,13 +2392,13 @@ function ComboboxChip(_a) {
|
|
|
2252
2392
|
}, props), {
|
|
2253
2393
|
children: [
|
|
2254
2394
|
children,
|
|
2255
|
-
showRemove && /* @__PURE__ */
|
|
2395
|
+
showRemove && /* @__PURE__ */ jsx20(
|
|
2256
2396
|
ComboboxPrimitive.ChipRemove,
|
|
2257
2397
|
{
|
|
2258
|
-
render: /* @__PURE__ */
|
|
2398
|
+
render: /* @__PURE__ */ jsx20(Button, { variant: "secondary", size: "icon-xs" }),
|
|
2259
2399
|
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
2260
2400
|
"data-slot": "combobox-chip-remove",
|
|
2261
|
-
children: /* @__PURE__ */
|
|
2401
|
+
children: /* @__PURE__ */ jsx20(XIcon, { className: "pointer-events-none" })
|
|
2262
2402
|
}
|
|
2263
2403
|
)
|
|
2264
2404
|
]
|
|
@@ -2273,7 +2413,7 @@ function ComboboxChipsInput(_a) {
|
|
|
2273
2413
|
"className",
|
|
2274
2414
|
"children"
|
|
2275
2415
|
]);
|
|
2276
|
-
return /* @__PURE__ */
|
|
2416
|
+
return /* @__PURE__ */ jsx20(
|
|
2277
2417
|
ComboboxPrimitive.Input,
|
|
2278
2418
|
__spreadValues({
|
|
2279
2419
|
"data-slot": "combobox-chip-input",
|
|
@@ -2282,7 +2422,7 @@ function ComboboxChipsInput(_a) {
|
|
|
2282
2422
|
);
|
|
2283
2423
|
}
|
|
2284
2424
|
function useComboboxAnchor() {
|
|
2285
|
-
return
|
|
2425
|
+
return React7.useRef(null);
|
|
2286
2426
|
}
|
|
2287
2427
|
|
|
2288
2428
|
// components/ui/command.tsx
|
|
@@ -2292,22 +2432,22 @@ import { SearchIcon } from "lucide-react";
|
|
|
2292
2432
|
// components/ui/dialog.tsx
|
|
2293
2433
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
2294
2434
|
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
2295
|
-
import { jsx as
|
|
2435
|
+
import { jsx as jsx21, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2296
2436
|
function Dialog(_a) {
|
|
2297
2437
|
var props = __objRest(_a, []);
|
|
2298
|
-
return /* @__PURE__ */
|
|
2438
|
+
return /* @__PURE__ */ jsx21(DialogPrimitive.Root, __spreadValues({ "data-slot": "dialog" }, props));
|
|
2299
2439
|
}
|
|
2300
2440
|
function DialogTrigger(_a) {
|
|
2301
2441
|
var props = __objRest(_a, []);
|
|
2302
|
-
return /* @__PURE__ */
|
|
2442
|
+
return /* @__PURE__ */ jsx21(DialogPrimitive.Trigger, __spreadValues({ "data-slot": "dialog-trigger" }, props));
|
|
2303
2443
|
}
|
|
2304
2444
|
function DialogPortal(_a) {
|
|
2305
2445
|
var props = __objRest(_a, []);
|
|
2306
|
-
return /* @__PURE__ */
|
|
2446
|
+
return /* @__PURE__ */ jsx21(DialogPrimitive.Portal, __spreadValues({ "data-slot": "dialog-portal" }, props));
|
|
2307
2447
|
}
|
|
2308
2448
|
function DialogClose(_a) {
|
|
2309
2449
|
var props = __objRest(_a, []);
|
|
2310
|
-
return /* @__PURE__ */
|
|
2450
|
+
return /* @__PURE__ */ jsx21(DialogPrimitive.Close, __spreadValues({ "data-slot": "dialog-close" }, props));
|
|
2311
2451
|
}
|
|
2312
2452
|
function DialogOverlay(_a) {
|
|
2313
2453
|
var _b = _a, {
|
|
@@ -2315,7 +2455,7 @@ function DialogOverlay(_a) {
|
|
|
2315
2455
|
} = _b, props = __objRest(_b, [
|
|
2316
2456
|
"className"
|
|
2317
2457
|
]);
|
|
2318
|
-
return /* @__PURE__ */
|
|
2458
|
+
return /* @__PURE__ */ jsx21(
|
|
2319
2459
|
DialogPrimitive.Overlay,
|
|
2320
2460
|
__spreadValues({
|
|
2321
2461
|
"data-slot": "dialog-overlay",
|
|
@@ -2336,9 +2476,9 @@ function DialogContent(_a) {
|
|
|
2336
2476
|
"children",
|
|
2337
2477
|
"showCloseButton"
|
|
2338
2478
|
]);
|
|
2339
|
-
return /* @__PURE__ */
|
|
2340
|
-
/* @__PURE__ */
|
|
2341
|
-
/* @__PURE__ */
|
|
2479
|
+
return /* @__PURE__ */ jsxs11(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
2480
|
+
/* @__PURE__ */ jsx21(DialogOverlay, {}),
|
|
2481
|
+
/* @__PURE__ */ jsxs11(
|
|
2342
2482
|
DialogPrimitive.Content,
|
|
2343
2483
|
__spreadProps(__spreadValues({
|
|
2344
2484
|
"data-slot": "dialog-content",
|
|
@@ -2349,14 +2489,14 @@ function DialogContent(_a) {
|
|
|
2349
2489
|
}, props), {
|
|
2350
2490
|
children: [
|
|
2351
2491
|
children,
|
|
2352
|
-
showCloseButton && /* @__PURE__ */
|
|
2492
|
+
showCloseButton && /* @__PURE__ */ jsxs11(
|
|
2353
2493
|
DialogPrimitive.Close,
|
|
2354
2494
|
{
|
|
2355
2495
|
"data-slot": "dialog-close",
|
|
2356
2496
|
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",
|
|
2357
2497
|
children: [
|
|
2358
|
-
/* @__PURE__ */
|
|
2359
|
-
/* @__PURE__ */
|
|
2498
|
+
/* @__PURE__ */ jsx21(XIcon2, {}),
|
|
2499
|
+
/* @__PURE__ */ jsx21("span", { className: "sr-only", children: "Close" })
|
|
2360
2500
|
]
|
|
2361
2501
|
}
|
|
2362
2502
|
)
|
|
@@ -2367,7 +2507,7 @@ function DialogContent(_a) {
|
|
|
2367
2507
|
}
|
|
2368
2508
|
function DialogHeader(_a) {
|
|
2369
2509
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2370
|
-
return /* @__PURE__ */
|
|
2510
|
+
return /* @__PURE__ */ jsx21(
|
|
2371
2511
|
"div",
|
|
2372
2512
|
__spreadValues({
|
|
2373
2513
|
"data-slot": "dialog-header",
|
|
@@ -2385,7 +2525,7 @@ function DialogFooter(_a) {
|
|
|
2385
2525
|
"showCloseButton",
|
|
2386
2526
|
"children"
|
|
2387
2527
|
]);
|
|
2388
|
-
return /* @__PURE__ */
|
|
2528
|
+
return /* @__PURE__ */ jsxs11(
|
|
2389
2529
|
"div",
|
|
2390
2530
|
__spreadProps(__spreadValues({
|
|
2391
2531
|
"data-slot": "dialog-footer",
|
|
@@ -2396,7 +2536,7 @@ function DialogFooter(_a) {
|
|
|
2396
2536
|
}, props), {
|
|
2397
2537
|
children: [
|
|
2398
2538
|
children,
|
|
2399
|
-
showCloseButton && /* @__PURE__ */
|
|
2539
|
+
showCloseButton && /* @__PURE__ */ jsx21(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx21(Button, { variant: "secondary", size: "md", children: "Close" }) })
|
|
2400
2540
|
]
|
|
2401
2541
|
})
|
|
2402
2542
|
);
|
|
@@ -2407,7 +2547,7 @@ function DialogTitle(_a) {
|
|
|
2407
2547
|
} = _b, props = __objRest(_b, [
|
|
2408
2548
|
"className"
|
|
2409
2549
|
]);
|
|
2410
|
-
return /* @__PURE__ */
|
|
2550
|
+
return /* @__PURE__ */ jsx21(
|
|
2411
2551
|
DialogPrimitive.Title,
|
|
2412
2552
|
__spreadValues({
|
|
2413
2553
|
"data-slot": "dialog-title",
|
|
@@ -2421,7 +2561,7 @@ function DialogDescription(_a) {
|
|
|
2421
2561
|
} = _b, props = __objRest(_b, [
|
|
2422
2562
|
"className"
|
|
2423
2563
|
]);
|
|
2424
|
-
return /* @__PURE__ */
|
|
2564
|
+
return /* @__PURE__ */ jsx21(
|
|
2425
2565
|
DialogPrimitive.Description,
|
|
2426
2566
|
__spreadValues({
|
|
2427
2567
|
"data-slot": "dialog-description",
|
|
@@ -2431,14 +2571,14 @@ function DialogDescription(_a) {
|
|
|
2431
2571
|
}
|
|
2432
2572
|
|
|
2433
2573
|
// components/ui/command.tsx
|
|
2434
|
-
import { jsx as
|
|
2574
|
+
import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2435
2575
|
function Command(_a) {
|
|
2436
2576
|
var _b = _a, {
|
|
2437
2577
|
className
|
|
2438
2578
|
} = _b, props = __objRest(_b, [
|
|
2439
2579
|
"className"
|
|
2440
2580
|
]);
|
|
2441
|
-
return /* @__PURE__ */
|
|
2581
|
+
return /* @__PURE__ */ jsx22(
|
|
2442
2582
|
CommandPrimitive,
|
|
2443
2583
|
__spreadValues({
|
|
2444
2584
|
"data-slot": "command",
|
|
@@ -2463,17 +2603,17 @@ function CommandDialog(_a) {
|
|
|
2463
2603
|
"className",
|
|
2464
2604
|
"showCloseButton"
|
|
2465
2605
|
]);
|
|
2466
|
-
return /* @__PURE__ */
|
|
2467
|
-
/* @__PURE__ */
|
|
2468
|
-
/* @__PURE__ */
|
|
2469
|
-
/* @__PURE__ */
|
|
2606
|
+
return /* @__PURE__ */ jsxs12(Dialog, __spreadProps(__spreadValues({}, props), { children: [
|
|
2607
|
+
/* @__PURE__ */ jsxs12(DialogHeader, { className: "sr-only", children: [
|
|
2608
|
+
/* @__PURE__ */ jsx22(DialogTitle, { children: title }),
|
|
2609
|
+
/* @__PURE__ */ jsx22(DialogDescription, { children: description })
|
|
2470
2610
|
] }),
|
|
2471
|
-
/* @__PURE__ */
|
|
2611
|
+
/* @__PURE__ */ jsx22(
|
|
2472
2612
|
DialogContent,
|
|
2473
2613
|
{
|
|
2474
2614
|
className: cn("overflow-hidden p-0", className),
|
|
2475
2615
|
showCloseButton,
|
|
2476
|
-
children: /* @__PURE__ */
|
|
2616
|
+
children: /* @__PURE__ */ jsx22(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 })
|
|
2477
2617
|
}
|
|
2478
2618
|
)
|
|
2479
2619
|
] }));
|
|
@@ -2484,14 +2624,14 @@ function CommandInput(_a) {
|
|
|
2484
2624
|
} = _b, props = __objRest(_b, [
|
|
2485
2625
|
"className"
|
|
2486
2626
|
]);
|
|
2487
|
-
return /* @__PURE__ */
|
|
2627
|
+
return /* @__PURE__ */ jsxs12(
|
|
2488
2628
|
"div",
|
|
2489
2629
|
{
|
|
2490
2630
|
"data-slot": "command-input-wrapper",
|
|
2491
2631
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
2492
2632
|
children: [
|
|
2493
|
-
/* @__PURE__ */
|
|
2494
|
-
/* @__PURE__ */
|
|
2633
|
+
/* @__PURE__ */ jsx22(SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
|
|
2634
|
+
/* @__PURE__ */ jsx22(
|
|
2495
2635
|
CommandPrimitive.Input,
|
|
2496
2636
|
__spreadValues({
|
|
2497
2637
|
"data-slot": "command-input",
|
|
@@ -2511,7 +2651,7 @@ function CommandList(_a) {
|
|
|
2511
2651
|
} = _b, props = __objRest(_b, [
|
|
2512
2652
|
"className"
|
|
2513
2653
|
]);
|
|
2514
|
-
return /* @__PURE__ */
|
|
2654
|
+
return /* @__PURE__ */ jsx22(
|
|
2515
2655
|
CommandPrimitive.List,
|
|
2516
2656
|
__spreadValues({
|
|
2517
2657
|
"data-slot": "command-list",
|
|
@@ -2524,7 +2664,7 @@ function CommandList(_a) {
|
|
|
2524
2664
|
}
|
|
2525
2665
|
function CommandEmpty(_a) {
|
|
2526
2666
|
var props = __objRest(_a, []);
|
|
2527
|
-
return /* @__PURE__ */
|
|
2667
|
+
return /* @__PURE__ */ jsx22(
|
|
2528
2668
|
CommandPrimitive.Empty,
|
|
2529
2669
|
__spreadValues({
|
|
2530
2670
|
"data-slot": "command-empty",
|
|
@@ -2538,7 +2678,7 @@ function CommandGroup(_a) {
|
|
|
2538
2678
|
} = _b, props = __objRest(_b, [
|
|
2539
2679
|
"className"
|
|
2540
2680
|
]);
|
|
2541
|
-
return /* @__PURE__ */
|
|
2681
|
+
return /* @__PURE__ */ jsx22(
|
|
2542
2682
|
CommandPrimitive.Group,
|
|
2543
2683
|
__spreadValues({
|
|
2544
2684
|
"data-slot": "command-group",
|
|
@@ -2555,7 +2695,7 @@ function CommandSeparator(_a) {
|
|
|
2555
2695
|
} = _b, props = __objRest(_b, [
|
|
2556
2696
|
"className"
|
|
2557
2697
|
]);
|
|
2558
|
-
return /* @__PURE__ */
|
|
2698
|
+
return /* @__PURE__ */ jsx22(
|
|
2559
2699
|
CommandPrimitive.Separator,
|
|
2560
2700
|
__spreadValues({
|
|
2561
2701
|
"data-slot": "command-separator",
|
|
@@ -2569,7 +2709,7 @@ function CommandItem(_a) {
|
|
|
2569
2709
|
} = _b, props = __objRest(_b, [
|
|
2570
2710
|
"className"
|
|
2571
2711
|
]);
|
|
2572
|
-
return /* @__PURE__ */
|
|
2712
|
+
return /* @__PURE__ */ jsx22(
|
|
2573
2713
|
CommandPrimitive.Item,
|
|
2574
2714
|
__spreadValues({
|
|
2575
2715
|
"data-slot": "command-item",
|
|
@@ -2586,7 +2726,7 @@ function CommandShortcut(_a) {
|
|
|
2586
2726
|
} = _b, props = __objRest(_b, [
|
|
2587
2727
|
"className"
|
|
2588
2728
|
]);
|
|
2589
|
-
return /* @__PURE__ */
|
|
2729
|
+
return /* @__PURE__ */ jsx22(
|
|
2590
2730
|
"span",
|
|
2591
2731
|
__spreadValues({
|
|
2592
2732
|
"data-slot": "command-shortcut",
|
|
@@ -2601,30 +2741,30 @@ function CommandShortcut(_a) {
|
|
|
2601
2741
|
// components/ui/context-menu.tsx
|
|
2602
2742
|
import { CheckIcon as CheckIcon3, ChevronRightIcon as ChevronRightIcon2, CircleIcon } from "lucide-react";
|
|
2603
2743
|
import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
|
|
2604
|
-
import { jsx as
|
|
2744
|
+
import { jsx as jsx23, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2605
2745
|
function ContextMenu(_a) {
|
|
2606
2746
|
var props = __objRest(_a, []);
|
|
2607
|
-
return /* @__PURE__ */
|
|
2747
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Root, __spreadValues({ "data-slot": "context-menu" }, props));
|
|
2608
2748
|
}
|
|
2609
2749
|
function ContextMenuTrigger(_a) {
|
|
2610
2750
|
var props = __objRest(_a, []);
|
|
2611
|
-
return /* @__PURE__ */
|
|
2751
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Trigger, __spreadValues({ "data-slot": "context-menu-trigger" }, props));
|
|
2612
2752
|
}
|
|
2613
2753
|
function ContextMenuGroup(_a) {
|
|
2614
2754
|
var props = __objRest(_a, []);
|
|
2615
|
-
return /* @__PURE__ */
|
|
2755
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Group, __spreadValues({ "data-slot": "context-menu-group" }, props));
|
|
2616
2756
|
}
|
|
2617
2757
|
function ContextMenuPortal(_a) {
|
|
2618
2758
|
var props = __objRest(_a, []);
|
|
2619
|
-
return /* @__PURE__ */
|
|
2759
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Portal, __spreadValues({ "data-slot": "context-menu-portal" }, props));
|
|
2620
2760
|
}
|
|
2621
2761
|
function ContextMenuSub(_a) {
|
|
2622
2762
|
var props = __objRest(_a, []);
|
|
2623
|
-
return /* @__PURE__ */
|
|
2763
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Sub, __spreadValues({ "data-slot": "context-menu-sub" }, props));
|
|
2624
2764
|
}
|
|
2625
2765
|
function ContextMenuRadioGroup(_a) {
|
|
2626
2766
|
var props = __objRest(_a, []);
|
|
2627
|
-
return /* @__PURE__ */
|
|
2767
|
+
return /* @__PURE__ */ jsx23(
|
|
2628
2768
|
ContextMenuPrimitive.RadioGroup,
|
|
2629
2769
|
__spreadValues({
|
|
2630
2770
|
"data-slot": "context-menu-radio-group"
|
|
@@ -2641,7 +2781,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
2641
2781
|
"inset",
|
|
2642
2782
|
"children"
|
|
2643
2783
|
]);
|
|
2644
|
-
return /* @__PURE__ */
|
|
2784
|
+
return /* @__PURE__ */ jsxs13(
|
|
2645
2785
|
ContextMenuPrimitive.SubTrigger,
|
|
2646
2786
|
__spreadProps(__spreadValues({
|
|
2647
2787
|
"data-slot": "context-menu-sub-trigger",
|
|
@@ -2653,7 +2793,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
2653
2793
|
}, props), {
|
|
2654
2794
|
children: [
|
|
2655
2795
|
children,
|
|
2656
|
-
/* @__PURE__ */
|
|
2796
|
+
/* @__PURE__ */ jsx23(ChevronRightIcon2, { className: "ml-auto" })
|
|
2657
2797
|
]
|
|
2658
2798
|
})
|
|
2659
2799
|
);
|
|
@@ -2664,7 +2804,7 @@ function ContextMenuSubContent(_a) {
|
|
|
2664
2804
|
} = _b, props = __objRest(_b, [
|
|
2665
2805
|
"className"
|
|
2666
2806
|
]);
|
|
2667
|
-
return /* @__PURE__ */
|
|
2807
|
+
return /* @__PURE__ */ jsx23(
|
|
2668
2808
|
ContextMenuPrimitive.SubContent,
|
|
2669
2809
|
__spreadValues({
|
|
2670
2810
|
"data-slot": "context-menu-sub-content",
|
|
@@ -2681,7 +2821,7 @@ function ContextMenuContent(_a) {
|
|
|
2681
2821
|
} = _b, props = __objRest(_b, [
|
|
2682
2822
|
"className"
|
|
2683
2823
|
]);
|
|
2684
|
-
return /* @__PURE__ */
|
|
2824
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx23(
|
|
2685
2825
|
ContextMenuPrimitive.Content,
|
|
2686
2826
|
__spreadValues({
|
|
2687
2827
|
"data-slot": "context-menu-content",
|
|
@@ -2702,7 +2842,7 @@ function ContextMenuItem(_a) {
|
|
|
2702
2842
|
"inset",
|
|
2703
2843
|
"variant"
|
|
2704
2844
|
]);
|
|
2705
|
-
return /* @__PURE__ */
|
|
2845
|
+
return /* @__PURE__ */ jsx23(
|
|
2706
2846
|
ContextMenuPrimitive.Item,
|
|
2707
2847
|
__spreadValues({
|
|
2708
2848
|
"data-slot": "context-menu-item",
|
|
@@ -2725,7 +2865,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
2725
2865
|
"children",
|
|
2726
2866
|
"checked"
|
|
2727
2867
|
]);
|
|
2728
|
-
return /* @__PURE__ */
|
|
2868
|
+
return /* @__PURE__ */ jsxs13(
|
|
2729
2869
|
ContextMenuPrimitive.CheckboxItem,
|
|
2730
2870
|
__spreadProps(__spreadValues({
|
|
2731
2871
|
"data-slot": "context-menu-checkbox-item",
|
|
@@ -2736,7 +2876,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
2736
2876
|
checked
|
|
2737
2877
|
}, props), {
|
|
2738
2878
|
children: [
|
|
2739
|
-
/* @__PURE__ */
|
|
2879
|
+
/* @__PURE__ */ jsx23("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx23(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx23(CheckIcon3, { className: "size-4" }) }) }),
|
|
2740
2880
|
children
|
|
2741
2881
|
]
|
|
2742
2882
|
})
|
|
@@ -2750,7 +2890,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
2750
2890
|
"className",
|
|
2751
2891
|
"children"
|
|
2752
2892
|
]);
|
|
2753
|
-
return /* @__PURE__ */
|
|
2893
|
+
return /* @__PURE__ */ jsxs13(
|
|
2754
2894
|
ContextMenuPrimitive.RadioItem,
|
|
2755
2895
|
__spreadProps(__spreadValues({
|
|
2756
2896
|
"data-slot": "context-menu-radio-item",
|
|
@@ -2760,7 +2900,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
2760
2900
|
)
|
|
2761
2901
|
}, props), {
|
|
2762
2902
|
children: [
|
|
2763
|
-
/* @__PURE__ */
|
|
2903
|
+
/* @__PURE__ */ jsx23("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx23(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx23(CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
2764
2904
|
children
|
|
2765
2905
|
]
|
|
2766
2906
|
})
|
|
@@ -2774,7 +2914,7 @@ function ContextMenuLabel(_a) {
|
|
|
2774
2914
|
"className",
|
|
2775
2915
|
"inset"
|
|
2776
2916
|
]);
|
|
2777
|
-
return /* @__PURE__ */
|
|
2917
|
+
return /* @__PURE__ */ jsx23(
|
|
2778
2918
|
ContextMenuPrimitive.Label,
|
|
2779
2919
|
__spreadValues({
|
|
2780
2920
|
"data-slot": "context-menu-label",
|
|
@@ -2792,7 +2932,7 @@ function ContextMenuSeparator(_a) {
|
|
|
2792
2932
|
} = _b, props = __objRest(_b, [
|
|
2793
2933
|
"className"
|
|
2794
2934
|
]);
|
|
2795
|
-
return /* @__PURE__ */
|
|
2935
|
+
return /* @__PURE__ */ jsx23(
|
|
2796
2936
|
ContextMenuPrimitive.Separator,
|
|
2797
2937
|
__spreadValues({
|
|
2798
2938
|
"data-slot": "context-menu-separator",
|
|
@@ -2806,7 +2946,7 @@ function ContextMenuShortcut(_a) {
|
|
|
2806
2946
|
} = _b, props = __objRest(_b, [
|
|
2807
2947
|
"className"
|
|
2808
2948
|
]);
|
|
2809
|
-
return /* @__PURE__ */
|
|
2949
|
+
return /* @__PURE__ */ jsx23(
|
|
2810
2950
|
"span",
|
|
2811
2951
|
__spreadValues({
|
|
2812
2952
|
"data-slot": "context-menu-shortcut",
|
|
@@ -2820,34 +2960,34 @@ function ContextMenuShortcut(_a) {
|
|
|
2820
2960
|
|
|
2821
2961
|
// components/ui/direction.tsx
|
|
2822
2962
|
import { Direction } from "radix-ui";
|
|
2823
|
-
import { jsx as
|
|
2963
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2824
2964
|
function DirectionProvider({
|
|
2825
2965
|
dir,
|
|
2826
2966
|
direction,
|
|
2827
2967
|
children
|
|
2828
2968
|
}) {
|
|
2829
|
-
return /* @__PURE__ */
|
|
2969
|
+
return /* @__PURE__ */ jsx24(Direction.DirectionProvider, { dir: direction != null ? direction : dir, children });
|
|
2830
2970
|
}
|
|
2831
2971
|
var useDirection = Direction.useDirection;
|
|
2832
2972
|
|
|
2833
2973
|
// components/ui/drawer.tsx
|
|
2834
2974
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
2835
|
-
import { jsx as
|
|
2975
|
+
import { jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2836
2976
|
function Drawer(_a) {
|
|
2837
2977
|
var props = __objRest(_a, []);
|
|
2838
|
-
return /* @__PURE__ */
|
|
2978
|
+
return /* @__PURE__ */ jsx25(DrawerPrimitive.Root, __spreadValues({ "data-slot": "drawer" }, props));
|
|
2839
2979
|
}
|
|
2840
2980
|
function DrawerTrigger(_a) {
|
|
2841
2981
|
var props = __objRest(_a, []);
|
|
2842
|
-
return /* @__PURE__ */
|
|
2982
|
+
return /* @__PURE__ */ jsx25(DrawerPrimitive.Trigger, __spreadValues({ "data-slot": "drawer-trigger" }, props));
|
|
2843
2983
|
}
|
|
2844
2984
|
function DrawerPortal(_a) {
|
|
2845
2985
|
var props = __objRest(_a, []);
|
|
2846
|
-
return /* @__PURE__ */
|
|
2986
|
+
return /* @__PURE__ */ jsx25(DrawerPrimitive.Portal, __spreadValues({ "data-slot": "drawer-portal" }, props));
|
|
2847
2987
|
}
|
|
2848
2988
|
function DrawerClose(_a) {
|
|
2849
2989
|
var props = __objRest(_a, []);
|
|
2850
|
-
return /* @__PURE__ */
|
|
2990
|
+
return /* @__PURE__ */ jsx25(DrawerPrimitive.Close, __spreadValues({ "data-slot": "drawer-close" }, props));
|
|
2851
2991
|
}
|
|
2852
2992
|
function DrawerOverlay(_a) {
|
|
2853
2993
|
var _b = _a, {
|
|
@@ -2855,7 +2995,7 @@ function DrawerOverlay(_a) {
|
|
|
2855
2995
|
} = _b, props = __objRest(_b, [
|
|
2856
2996
|
"className"
|
|
2857
2997
|
]);
|
|
2858
|
-
return /* @__PURE__ */
|
|
2998
|
+
return /* @__PURE__ */ jsx25(
|
|
2859
2999
|
DrawerPrimitive.Overlay,
|
|
2860
3000
|
__spreadValues({
|
|
2861
3001
|
"data-slot": "drawer-overlay",
|
|
@@ -2874,9 +3014,9 @@ function DrawerContent(_a) {
|
|
|
2874
3014
|
"className",
|
|
2875
3015
|
"children"
|
|
2876
3016
|
]);
|
|
2877
|
-
return /* @__PURE__ */
|
|
2878
|
-
/* @__PURE__ */
|
|
2879
|
-
/* @__PURE__ */
|
|
3017
|
+
return /* @__PURE__ */ jsxs14(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
3018
|
+
/* @__PURE__ */ jsx25(DrawerOverlay, {}),
|
|
3019
|
+
/* @__PURE__ */ jsxs14(
|
|
2880
3020
|
DrawerPrimitive.Content,
|
|
2881
3021
|
__spreadProps(__spreadValues({
|
|
2882
3022
|
"data-slot": "drawer-content",
|
|
@@ -2890,7 +3030,7 @@ function DrawerContent(_a) {
|
|
|
2890
3030
|
)
|
|
2891
3031
|
}, props), {
|
|
2892
3032
|
children: [
|
|
2893
|
-
/* @__PURE__ */
|
|
3033
|
+
/* @__PURE__ */ jsx25("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" }),
|
|
2894
3034
|
children
|
|
2895
3035
|
]
|
|
2896
3036
|
})
|
|
@@ -2899,7 +3039,7 @@ function DrawerContent(_a) {
|
|
|
2899
3039
|
}
|
|
2900
3040
|
function DrawerHeader(_a) {
|
|
2901
3041
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2902
|
-
return /* @__PURE__ */
|
|
3042
|
+
return /* @__PURE__ */ jsx25(
|
|
2903
3043
|
"div",
|
|
2904
3044
|
__spreadValues({
|
|
2905
3045
|
"data-slot": "drawer-header",
|
|
@@ -2912,7 +3052,7 @@ function DrawerHeader(_a) {
|
|
|
2912
3052
|
}
|
|
2913
3053
|
function DrawerFooter(_a) {
|
|
2914
3054
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2915
|
-
return /* @__PURE__ */
|
|
3055
|
+
return /* @__PURE__ */ jsx25(
|
|
2916
3056
|
"div",
|
|
2917
3057
|
__spreadValues({
|
|
2918
3058
|
"data-slot": "drawer-footer",
|
|
@@ -2926,7 +3066,7 @@ function DrawerTitle(_a) {
|
|
|
2926
3066
|
} = _b, props = __objRest(_b, [
|
|
2927
3067
|
"className"
|
|
2928
3068
|
]);
|
|
2929
|
-
return /* @__PURE__ */
|
|
3069
|
+
return /* @__PURE__ */ jsx25(
|
|
2930
3070
|
DrawerPrimitive.Title,
|
|
2931
3071
|
__spreadValues({
|
|
2932
3072
|
"data-slot": "drawer-title",
|
|
@@ -2940,7 +3080,7 @@ function DrawerDescription(_a) {
|
|
|
2940
3080
|
} = _b, props = __objRest(_b, [
|
|
2941
3081
|
"className"
|
|
2942
3082
|
]);
|
|
2943
|
-
return /* @__PURE__ */
|
|
3083
|
+
return /* @__PURE__ */ jsx25(
|
|
2944
3084
|
DrawerPrimitive.Description,
|
|
2945
3085
|
__spreadValues({
|
|
2946
3086
|
"data-slot": "drawer-description",
|
|
@@ -2952,18 +3092,18 @@ function DrawerDescription(_a) {
|
|
|
2952
3092
|
// components/ui/dropdown-menu.tsx
|
|
2953
3093
|
import { CheckIcon as CheckIcon4, ChevronRightIcon as ChevronRightIcon3, CircleIcon as CircleIcon2 } from "lucide-react";
|
|
2954
3094
|
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
2955
|
-
import { jsx as
|
|
3095
|
+
import { jsx as jsx26, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2956
3096
|
function DropdownMenu(_a) {
|
|
2957
3097
|
var props = __objRest(_a, []);
|
|
2958
|
-
return /* @__PURE__ */
|
|
3098
|
+
return /* @__PURE__ */ jsx26(DropdownMenuPrimitive.Root, __spreadValues({ "data-slot": "dropdown-menu" }, props));
|
|
2959
3099
|
}
|
|
2960
3100
|
function DropdownMenuPortal(_a) {
|
|
2961
3101
|
var props = __objRest(_a, []);
|
|
2962
|
-
return /* @__PURE__ */
|
|
3102
|
+
return /* @__PURE__ */ jsx26(DropdownMenuPrimitive.Portal, __spreadValues({ "data-slot": "dropdown-menu-portal" }, props));
|
|
2963
3103
|
}
|
|
2964
3104
|
function DropdownMenuTrigger(_a) {
|
|
2965
3105
|
var props = __objRest(_a, []);
|
|
2966
|
-
return /* @__PURE__ */
|
|
3106
|
+
return /* @__PURE__ */ jsx26(
|
|
2967
3107
|
DropdownMenuPrimitive.Trigger,
|
|
2968
3108
|
__spreadValues({
|
|
2969
3109
|
"data-slot": "dropdown-menu-trigger"
|
|
@@ -2978,7 +3118,7 @@ function DropdownMenuContent(_a) {
|
|
|
2978
3118
|
"className",
|
|
2979
3119
|
"sideOffset"
|
|
2980
3120
|
]);
|
|
2981
|
-
return /* @__PURE__ */
|
|
3121
|
+
return /* @__PURE__ */ jsx26(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx26(
|
|
2982
3122
|
DropdownMenuPrimitive.Content,
|
|
2983
3123
|
__spreadValues({
|
|
2984
3124
|
"data-slot": "dropdown-menu-content",
|
|
@@ -2992,7 +3132,7 @@ function DropdownMenuContent(_a) {
|
|
|
2992
3132
|
}
|
|
2993
3133
|
function DropdownMenuGroup(_a) {
|
|
2994
3134
|
var props = __objRest(_a, []);
|
|
2995
|
-
return /* @__PURE__ */
|
|
3135
|
+
return /* @__PURE__ */ jsx26(DropdownMenuPrimitive.Group, __spreadValues({ "data-slot": "dropdown-menu-group" }, props));
|
|
2996
3136
|
}
|
|
2997
3137
|
function DropdownMenuItem(_a) {
|
|
2998
3138
|
var _b = _a, {
|
|
@@ -3004,7 +3144,7 @@ function DropdownMenuItem(_a) {
|
|
|
3004
3144
|
"inset",
|
|
3005
3145
|
"variant"
|
|
3006
3146
|
]);
|
|
3007
|
-
return /* @__PURE__ */
|
|
3147
|
+
return /* @__PURE__ */ jsx26(
|
|
3008
3148
|
DropdownMenuPrimitive.Item,
|
|
3009
3149
|
__spreadValues({
|
|
3010
3150
|
"data-slot": "dropdown-menu-item",
|
|
@@ -3027,7 +3167,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3027
3167
|
"children",
|
|
3028
3168
|
"checked"
|
|
3029
3169
|
]);
|
|
3030
|
-
return /* @__PURE__ */
|
|
3170
|
+
return /* @__PURE__ */ jsxs15(
|
|
3031
3171
|
DropdownMenuPrimitive.CheckboxItem,
|
|
3032
3172
|
__spreadProps(__spreadValues({
|
|
3033
3173
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
@@ -3038,7 +3178,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3038
3178
|
checked
|
|
3039
3179
|
}, props), {
|
|
3040
3180
|
children: [
|
|
3041
|
-
/* @__PURE__ */
|
|
3181
|
+
/* @__PURE__ */ jsx26("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx26(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx26(CheckIcon4, { className: "size-4" }) }) }),
|
|
3042
3182
|
children
|
|
3043
3183
|
]
|
|
3044
3184
|
})
|
|
@@ -3046,7 +3186,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3046
3186
|
}
|
|
3047
3187
|
function DropdownMenuRadioGroup(_a) {
|
|
3048
3188
|
var props = __objRest(_a, []);
|
|
3049
|
-
return /* @__PURE__ */
|
|
3189
|
+
return /* @__PURE__ */ jsx26(
|
|
3050
3190
|
DropdownMenuPrimitive.RadioGroup,
|
|
3051
3191
|
__spreadValues({
|
|
3052
3192
|
"data-slot": "dropdown-menu-radio-group"
|
|
@@ -3061,7 +3201,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
3061
3201
|
"className",
|
|
3062
3202
|
"children"
|
|
3063
3203
|
]);
|
|
3064
|
-
return /* @__PURE__ */
|
|
3204
|
+
return /* @__PURE__ */ jsxs15(
|
|
3065
3205
|
DropdownMenuPrimitive.RadioItem,
|
|
3066
3206
|
__spreadProps(__spreadValues({
|
|
3067
3207
|
"data-slot": "dropdown-menu-radio-item",
|
|
@@ -3071,7 +3211,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
3071
3211
|
)
|
|
3072
3212
|
}, props), {
|
|
3073
3213
|
children: [
|
|
3074
|
-
/* @__PURE__ */
|
|
3214
|
+
/* @__PURE__ */ jsx26("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx26(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx26(CircleIcon2, { className: "size-2 fill-current" }) }) }),
|
|
3075
3215
|
children
|
|
3076
3216
|
]
|
|
3077
3217
|
})
|
|
@@ -3085,7 +3225,7 @@ function DropdownMenuLabel(_a) {
|
|
|
3085
3225
|
"className",
|
|
3086
3226
|
"inset"
|
|
3087
3227
|
]);
|
|
3088
|
-
return /* @__PURE__ */
|
|
3228
|
+
return /* @__PURE__ */ jsx26(
|
|
3089
3229
|
DropdownMenuPrimitive.Label,
|
|
3090
3230
|
__spreadValues({
|
|
3091
3231
|
"data-slot": "dropdown-menu-label",
|
|
@@ -3103,7 +3243,7 @@ function DropdownMenuSeparator(_a) {
|
|
|
3103
3243
|
} = _b, props = __objRest(_b, [
|
|
3104
3244
|
"className"
|
|
3105
3245
|
]);
|
|
3106
|
-
return /* @__PURE__ */
|
|
3246
|
+
return /* @__PURE__ */ jsx26(
|
|
3107
3247
|
DropdownMenuPrimitive.Separator,
|
|
3108
3248
|
__spreadValues({
|
|
3109
3249
|
"data-slot": "dropdown-menu-separator",
|
|
@@ -3117,7 +3257,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
3117
3257
|
} = _b, props = __objRest(_b, [
|
|
3118
3258
|
"className"
|
|
3119
3259
|
]);
|
|
3120
|
-
return /* @__PURE__ */
|
|
3260
|
+
return /* @__PURE__ */ jsx26(
|
|
3121
3261
|
"span",
|
|
3122
3262
|
__spreadValues({
|
|
3123
3263
|
"data-slot": "dropdown-menu-shortcut",
|
|
@@ -3130,7 +3270,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
3130
3270
|
}
|
|
3131
3271
|
function DropdownMenuSub(_a) {
|
|
3132
3272
|
var props = __objRest(_a, []);
|
|
3133
|
-
return /* @__PURE__ */
|
|
3273
|
+
return /* @__PURE__ */ jsx26(DropdownMenuPrimitive.Sub, __spreadValues({ "data-slot": "dropdown-menu-sub" }, props));
|
|
3134
3274
|
}
|
|
3135
3275
|
function DropdownMenuSubTrigger(_a) {
|
|
3136
3276
|
var _b = _a, {
|
|
@@ -3142,7 +3282,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
3142
3282
|
"inset",
|
|
3143
3283
|
"children"
|
|
3144
3284
|
]);
|
|
3145
|
-
return /* @__PURE__ */
|
|
3285
|
+
return /* @__PURE__ */ jsxs15(
|
|
3146
3286
|
DropdownMenuPrimitive.SubTrigger,
|
|
3147
3287
|
__spreadProps(__spreadValues({
|
|
3148
3288
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
@@ -3154,7 +3294,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
3154
3294
|
}, props), {
|
|
3155
3295
|
children: [
|
|
3156
3296
|
children,
|
|
3157
|
-
/* @__PURE__ */
|
|
3297
|
+
/* @__PURE__ */ jsx26(ChevronRightIcon3, { className: "ml-auto size-4" })
|
|
3158
3298
|
]
|
|
3159
3299
|
})
|
|
3160
3300
|
);
|
|
@@ -3165,7 +3305,7 @@ function DropdownMenuSubContent(_a) {
|
|
|
3165
3305
|
} = _b, props = __objRest(_b, [
|
|
3166
3306
|
"className"
|
|
3167
3307
|
]);
|
|
3168
|
-
return /* @__PURE__ */
|
|
3308
|
+
return /* @__PURE__ */ jsx26(
|
|
3169
3309
|
DropdownMenuPrimitive.SubContent,
|
|
3170
3310
|
__spreadValues({
|
|
3171
3311
|
"data-slot": "dropdown-menu-sub-content",
|
|
@@ -3179,10 +3319,10 @@ function DropdownMenuSubContent(_a) {
|
|
|
3179
3319
|
|
|
3180
3320
|
// components/ui/empty.tsx
|
|
3181
3321
|
import { cva as cva6 } from "class-variance-authority";
|
|
3182
|
-
import { jsx as
|
|
3322
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
3183
3323
|
function Empty(_a) {
|
|
3184
3324
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3185
|
-
return /* @__PURE__ */
|
|
3325
|
+
return /* @__PURE__ */ jsx27(
|
|
3186
3326
|
"div",
|
|
3187
3327
|
__spreadValues({
|
|
3188
3328
|
"data-slot": "empty",
|
|
@@ -3195,7 +3335,7 @@ function Empty(_a) {
|
|
|
3195
3335
|
}
|
|
3196
3336
|
function EmptyHeader(_a) {
|
|
3197
3337
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3198
|
-
return /* @__PURE__ */
|
|
3338
|
+
return /* @__PURE__ */ jsx27(
|
|
3199
3339
|
"div",
|
|
3200
3340
|
__spreadValues({
|
|
3201
3341
|
"data-slot": "empty-header",
|
|
@@ -3228,7 +3368,7 @@ function EmptyMedia(_a) {
|
|
|
3228
3368
|
"className",
|
|
3229
3369
|
"variant"
|
|
3230
3370
|
]);
|
|
3231
|
-
return /* @__PURE__ */
|
|
3371
|
+
return /* @__PURE__ */ jsx27(
|
|
3232
3372
|
"div",
|
|
3233
3373
|
__spreadValues({
|
|
3234
3374
|
"data-slot": "empty-icon",
|
|
@@ -3239,7 +3379,7 @@ function EmptyMedia(_a) {
|
|
|
3239
3379
|
}
|
|
3240
3380
|
function EmptyTitle(_a) {
|
|
3241
3381
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3242
|
-
return /* @__PURE__ */
|
|
3382
|
+
return /* @__PURE__ */ jsx27(
|
|
3243
3383
|
"div",
|
|
3244
3384
|
__spreadValues({
|
|
3245
3385
|
"data-slot": "empty-title",
|
|
@@ -3249,7 +3389,7 @@ function EmptyTitle(_a) {
|
|
|
3249
3389
|
}
|
|
3250
3390
|
function EmptyDescription(_a) {
|
|
3251
3391
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3252
|
-
return /* @__PURE__ */
|
|
3392
|
+
return /* @__PURE__ */ jsx27(
|
|
3253
3393
|
"div",
|
|
3254
3394
|
__spreadValues({
|
|
3255
3395
|
"data-slot": "empty-description",
|
|
@@ -3262,7 +3402,7 @@ function EmptyDescription(_a) {
|
|
|
3262
3402
|
}
|
|
3263
3403
|
function EmptyContent(_a) {
|
|
3264
3404
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3265
|
-
return /* @__PURE__ */
|
|
3405
|
+
return /* @__PURE__ */ jsx27(
|
|
3266
3406
|
"div",
|
|
3267
3407
|
__spreadValues({
|
|
3268
3408
|
"data-slot": "empty-content",
|
|
@@ -3280,14 +3420,14 @@ import { cva as cva7 } from "class-variance-authority";
|
|
|
3280
3420
|
|
|
3281
3421
|
// components/ui/label.tsx
|
|
3282
3422
|
import { Label as LabelPrimitive } from "radix-ui";
|
|
3283
|
-
import { jsx as
|
|
3423
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3284
3424
|
function Label(_a) {
|
|
3285
3425
|
var _b = _a, {
|
|
3286
3426
|
className
|
|
3287
3427
|
} = _b, props = __objRest(_b, [
|
|
3288
3428
|
"className"
|
|
3289
3429
|
]);
|
|
3290
|
-
return /* @__PURE__ */
|
|
3430
|
+
return /* @__PURE__ */ jsx28(
|
|
3291
3431
|
LabelPrimitive.Root,
|
|
3292
3432
|
__spreadValues({
|
|
3293
3433
|
"data-slot": "label",
|
|
@@ -3301,7 +3441,7 @@ function Label(_a) {
|
|
|
3301
3441
|
|
|
3302
3442
|
// components/ui/separator.tsx
|
|
3303
3443
|
import { Separator as SeparatorPrimitive } from "radix-ui";
|
|
3304
|
-
import { jsx as
|
|
3444
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
3305
3445
|
function Separator(_a) {
|
|
3306
3446
|
var _b = _a, {
|
|
3307
3447
|
className,
|
|
@@ -3312,7 +3452,7 @@ function Separator(_a) {
|
|
|
3312
3452
|
"orientation",
|
|
3313
3453
|
"decorative"
|
|
3314
3454
|
]);
|
|
3315
|
-
return /* @__PURE__ */
|
|
3455
|
+
return /* @__PURE__ */ jsx29(
|
|
3316
3456
|
SeparatorPrimitive.Root,
|
|
3317
3457
|
__spreadValues({
|
|
3318
3458
|
"data-slot": "separator",
|
|
@@ -3327,10 +3467,10 @@ function Separator(_a) {
|
|
|
3327
3467
|
}
|
|
3328
3468
|
|
|
3329
3469
|
// components/ui/field.tsx
|
|
3330
|
-
import { jsx as
|
|
3470
|
+
import { jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3331
3471
|
function FieldSet(_a) {
|
|
3332
3472
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3333
|
-
return /* @__PURE__ */
|
|
3473
|
+
return /* @__PURE__ */ jsx30(
|
|
3334
3474
|
"fieldset",
|
|
3335
3475
|
__spreadValues({
|
|
3336
3476
|
"data-slot": "field-set",
|
|
@@ -3350,7 +3490,7 @@ function FieldLegend(_a) {
|
|
|
3350
3490
|
"className",
|
|
3351
3491
|
"variant"
|
|
3352
3492
|
]);
|
|
3353
|
-
return /* @__PURE__ */
|
|
3493
|
+
return /* @__PURE__ */ jsx30(
|
|
3354
3494
|
"legend",
|
|
3355
3495
|
__spreadValues({
|
|
3356
3496
|
"data-slot": "field-legend",
|
|
@@ -3366,7 +3506,7 @@ function FieldLegend(_a) {
|
|
|
3366
3506
|
}
|
|
3367
3507
|
function FieldGroup(_a) {
|
|
3368
3508
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3369
|
-
return /* @__PURE__ */
|
|
3509
|
+
return /* @__PURE__ */ jsx30(
|
|
3370
3510
|
"div",
|
|
3371
3511
|
__spreadValues({
|
|
3372
3512
|
"data-slot": "field-group",
|
|
@@ -3408,7 +3548,7 @@ function Field(_a) {
|
|
|
3408
3548
|
"className",
|
|
3409
3549
|
"orientation"
|
|
3410
3550
|
]);
|
|
3411
|
-
return /* @__PURE__ */
|
|
3551
|
+
return /* @__PURE__ */ jsx30(
|
|
3412
3552
|
"div",
|
|
3413
3553
|
__spreadValues({
|
|
3414
3554
|
role: "group",
|
|
@@ -3420,7 +3560,7 @@ function Field(_a) {
|
|
|
3420
3560
|
}
|
|
3421
3561
|
function FieldContent(_a) {
|
|
3422
3562
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3423
|
-
return /* @__PURE__ */
|
|
3563
|
+
return /* @__PURE__ */ jsx30(
|
|
3424
3564
|
"div",
|
|
3425
3565
|
__spreadValues({
|
|
3426
3566
|
"data-slot": "field-content",
|
|
@@ -3437,7 +3577,7 @@ function FieldLabel(_a) {
|
|
|
3437
3577
|
} = _b, props = __objRest(_b, [
|
|
3438
3578
|
"className"
|
|
3439
3579
|
]);
|
|
3440
|
-
return /* @__PURE__ */
|
|
3580
|
+
return /* @__PURE__ */ jsx30(
|
|
3441
3581
|
Label,
|
|
3442
3582
|
__spreadValues({
|
|
3443
3583
|
"data-slot": "field-label",
|
|
@@ -3452,7 +3592,7 @@ function FieldLabel(_a) {
|
|
|
3452
3592
|
}
|
|
3453
3593
|
function FieldTitle(_a) {
|
|
3454
3594
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3455
|
-
return /* @__PURE__ */
|
|
3595
|
+
return /* @__PURE__ */ jsx30(
|
|
3456
3596
|
"div",
|
|
3457
3597
|
__spreadValues({
|
|
3458
3598
|
"data-slot": "field-label",
|
|
@@ -3465,7 +3605,7 @@ function FieldTitle(_a) {
|
|
|
3465
3605
|
}
|
|
3466
3606
|
function FieldDescription(_a) {
|
|
3467
3607
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3468
|
-
return /* @__PURE__ */
|
|
3608
|
+
return /* @__PURE__ */ jsx30(
|
|
3469
3609
|
"p",
|
|
3470
3610
|
__spreadValues({
|
|
3471
3611
|
"data-slot": "field-description",
|
|
@@ -3486,7 +3626,7 @@ function FieldSeparator(_a) {
|
|
|
3486
3626
|
"children",
|
|
3487
3627
|
"className"
|
|
3488
3628
|
]);
|
|
3489
|
-
return /* @__PURE__ */
|
|
3629
|
+
return /* @__PURE__ */ jsxs16(
|
|
3490
3630
|
"div",
|
|
3491
3631
|
__spreadProps(__spreadValues({
|
|
3492
3632
|
"data-slot": "field-separator",
|
|
@@ -3497,8 +3637,8 @@ function FieldSeparator(_a) {
|
|
|
3497
3637
|
)
|
|
3498
3638
|
}, props), {
|
|
3499
3639
|
children: [
|
|
3500
|
-
/* @__PURE__ */
|
|
3501
|
-
children && /* @__PURE__ */
|
|
3640
|
+
/* @__PURE__ */ jsx30(Separator, { className: "absolute inset-0 top-1/2" }),
|
|
3641
|
+
children && /* @__PURE__ */ jsx30(
|
|
3502
3642
|
"span",
|
|
3503
3643
|
{
|
|
3504
3644
|
className: "relative mx-auto block w-fit bg-prominent px-2 text-on-subtle",
|
|
@@ -3534,14 +3674,14 @@ function FieldError(_a) {
|
|
|
3534
3674
|
if ((uniqueErrors == null ? void 0 : uniqueErrors.length) == 1) {
|
|
3535
3675
|
return (_a2 = uniqueErrors[0]) == null ? void 0 : _a2.message;
|
|
3536
3676
|
}
|
|
3537
|
-
return /* @__PURE__ */
|
|
3538
|
-
(error, index) => (error == null ? void 0 : error.message) && /* @__PURE__ */
|
|
3677
|
+
return /* @__PURE__ */ jsx30("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
|
|
3678
|
+
(error, index) => (error == null ? void 0 : error.message) && /* @__PURE__ */ jsx30("li", { children: error.message }, index)
|
|
3539
3679
|
) });
|
|
3540
3680
|
}, [children, errors]);
|
|
3541
3681
|
if (!content) {
|
|
3542
3682
|
return null;
|
|
3543
3683
|
}
|
|
3544
|
-
return /* @__PURE__ */
|
|
3684
|
+
return /* @__PURE__ */ jsx30(
|
|
3545
3685
|
"div",
|
|
3546
3686
|
__spreadProps(__spreadValues({
|
|
3547
3687
|
role: "alert",
|
|
@@ -3554,7 +3694,7 @@ function FieldError(_a) {
|
|
|
3554
3694
|
}
|
|
3555
3695
|
|
|
3556
3696
|
// components/ui/form.tsx
|
|
3557
|
-
import * as
|
|
3697
|
+
import * as React8 from "react";
|
|
3558
3698
|
import { Slot as Slot4 } from "radix-ui";
|
|
3559
3699
|
import {
|
|
3560
3700
|
Controller,
|
|
@@ -3562,18 +3702,18 @@ import {
|
|
|
3562
3702
|
useFormContext,
|
|
3563
3703
|
useFormState
|
|
3564
3704
|
} from "react-hook-form";
|
|
3565
|
-
import { jsx as
|
|
3705
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
3566
3706
|
var Form = FormProvider;
|
|
3567
|
-
var FormFieldContext =
|
|
3707
|
+
var FormFieldContext = React8.createContext(
|
|
3568
3708
|
{}
|
|
3569
3709
|
);
|
|
3570
3710
|
var FormField = (_a) => {
|
|
3571
3711
|
var props = __objRest(_a, []);
|
|
3572
|
-
return /* @__PURE__ */
|
|
3712
|
+
return /* @__PURE__ */ jsx31(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx31(Controller, __spreadValues({}, props)) });
|
|
3573
3713
|
};
|
|
3574
3714
|
var useFormField = () => {
|
|
3575
|
-
const fieldContext =
|
|
3576
|
-
const itemContext =
|
|
3715
|
+
const fieldContext = React8.useContext(FormFieldContext);
|
|
3716
|
+
const itemContext = React8.useContext(FormItemContext);
|
|
3577
3717
|
const { getFieldState } = useFormContext();
|
|
3578
3718
|
const formState = useFormState({ name: fieldContext.name });
|
|
3579
3719
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
@@ -3589,13 +3729,13 @@ var useFormField = () => {
|
|
|
3589
3729
|
formMessageId: `${id}-form-item-message`
|
|
3590
3730
|
}, fieldState);
|
|
3591
3731
|
};
|
|
3592
|
-
var FormItemContext =
|
|
3732
|
+
var FormItemContext = React8.createContext(
|
|
3593
3733
|
{}
|
|
3594
3734
|
);
|
|
3595
3735
|
function FormItem(_a) {
|
|
3596
3736
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3597
|
-
const id =
|
|
3598
|
-
return /* @__PURE__ */
|
|
3737
|
+
const id = React8.useId();
|
|
3738
|
+
return /* @__PURE__ */ jsx31(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx31(
|
|
3599
3739
|
"div",
|
|
3600
3740
|
__spreadValues({
|
|
3601
3741
|
"data-slot": "form-item",
|
|
@@ -3610,7 +3750,7 @@ function FormLabel(_a) {
|
|
|
3610
3750
|
"className"
|
|
3611
3751
|
]);
|
|
3612
3752
|
const { error, formItemId } = useFormField();
|
|
3613
|
-
return /* @__PURE__ */
|
|
3753
|
+
return /* @__PURE__ */ jsx31(
|
|
3614
3754
|
Label,
|
|
3615
3755
|
__spreadValues({
|
|
3616
3756
|
"data-slot": "form-label",
|
|
@@ -3623,7 +3763,7 @@ function FormLabel(_a) {
|
|
|
3623
3763
|
function FormControl(_a) {
|
|
3624
3764
|
var props = __objRest(_a, []);
|
|
3625
3765
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
3626
|
-
return /* @__PURE__ */
|
|
3766
|
+
return /* @__PURE__ */ jsx31(
|
|
3627
3767
|
Slot4.Root,
|
|
3628
3768
|
__spreadValues({
|
|
3629
3769
|
"data-slot": "form-control",
|
|
@@ -3636,7 +3776,7 @@ function FormControl(_a) {
|
|
|
3636
3776
|
function FormDescription(_a) {
|
|
3637
3777
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3638
3778
|
const { formDescriptionId } = useFormField();
|
|
3639
|
-
return /* @__PURE__ */
|
|
3779
|
+
return /* @__PURE__ */ jsx31(
|
|
3640
3780
|
"p",
|
|
3641
3781
|
__spreadValues({
|
|
3642
3782
|
"data-slot": "form-description",
|
|
@@ -3653,7 +3793,7 @@ function FormMessage(_a) {
|
|
|
3653
3793
|
if (!body) {
|
|
3654
3794
|
return null;
|
|
3655
3795
|
}
|
|
3656
|
-
return /* @__PURE__ */
|
|
3796
|
+
return /* @__PURE__ */ jsx31(
|
|
3657
3797
|
"p",
|
|
3658
3798
|
__spreadProps(__spreadValues({
|
|
3659
3799
|
"data-slot": "form-message",
|
|
@@ -3667,14 +3807,14 @@ function FormMessage(_a) {
|
|
|
3667
3807
|
|
|
3668
3808
|
// components/ui/hover-card.tsx
|
|
3669
3809
|
import { HoverCard as HoverCardPrimitive } from "radix-ui";
|
|
3670
|
-
import { jsx as
|
|
3810
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
3671
3811
|
function HoverCard(_a) {
|
|
3672
3812
|
var props = __objRest(_a, []);
|
|
3673
|
-
return /* @__PURE__ */
|
|
3813
|
+
return /* @__PURE__ */ jsx32(HoverCardPrimitive.Root, __spreadValues({ "data-slot": "hover-card" }, props));
|
|
3674
3814
|
}
|
|
3675
3815
|
function HoverCardTrigger(_a) {
|
|
3676
3816
|
var props = __objRest(_a, []);
|
|
3677
|
-
return /* @__PURE__ */
|
|
3817
|
+
return /* @__PURE__ */ jsx32(HoverCardPrimitive.Trigger, __spreadValues({ "data-slot": "hover-card-trigger" }, props));
|
|
3678
3818
|
}
|
|
3679
3819
|
function HoverCardContent(_a) {
|
|
3680
3820
|
var _b = _a, {
|
|
@@ -3686,7 +3826,7 @@ function HoverCardContent(_a) {
|
|
|
3686
3826
|
"align",
|
|
3687
3827
|
"sideOffset"
|
|
3688
3828
|
]);
|
|
3689
|
-
return /* @__PURE__ */
|
|
3829
|
+
return /* @__PURE__ */ jsx32(HoverCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsx32(
|
|
3690
3830
|
HoverCardPrimitive.Content,
|
|
3691
3831
|
__spreadValues({
|
|
3692
3832
|
"data-slot": "hover-card-content",
|
|
@@ -3701,10 +3841,10 @@ function HoverCardContent(_a) {
|
|
|
3701
3841
|
}
|
|
3702
3842
|
|
|
3703
3843
|
// components/ui/input-otp.tsx
|
|
3704
|
-
import * as
|
|
3844
|
+
import * as React9 from "react";
|
|
3705
3845
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
3706
3846
|
import { MinusIcon } from "lucide-react";
|
|
3707
|
-
import { jsx as
|
|
3847
|
+
import { jsx as jsx33, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3708
3848
|
function InputOTP(_a) {
|
|
3709
3849
|
var _b = _a, {
|
|
3710
3850
|
className,
|
|
@@ -3713,7 +3853,7 @@ function InputOTP(_a) {
|
|
|
3713
3853
|
"className",
|
|
3714
3854
|
"containerClassName"
|
|
3715
3855
|
]);
|
|
3716
|
-
return /* @__PURE__ */
|
|
3856
|
+
return /* @__PURE__ */ jsx33(
|
|
3717
3857
|
OTPInput,
|
|
3718
3858
|
__spreadValues({
|
|
3719
3859
|
"data-slot": "input-otp",
|
|
@@ -3727,7 +3867,7 @@ function InputOTP(_a) {
|
|
|
3727
3867
|
}
|
|
3728
3868
|
function InputOTPGroup(_a) {
|
|
3729
3869
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3730
|
-
return /* @__PURE__ */
|
|
3870
|
+
return /* @__PURE__ */ jsx33(
|
|
3731
3871
|
"div",
|
|
3732
3872
|
__spreadValues({
|
|
3733
3873
|
"data-slot": "input-otp-group",
|
|
@@ -3744,9 +3884,9 @@ function InputOTPSlot(_a) {
|
|
|
3744
3884
|
"className"
|
|
3745
3885
|
]);
|
|
3746
3886
|
var _a2;
|
|
3747
|
-
const inputOTPContext =
|
|
3887
|
+
const inputOTPContext = React9.useContext(OTPInputContext);
|
|
3748
3888
|
const { char, hasFakeCaret, isActive } = (_a2 = inputOTPContext == null ? void 0 : inputOTPContext.slots[index]) != null ? _a2 : {};
|
|
3749
|
-
return /* @__PURE__ */
|
|
3889
|
+
return /* @__PURE__ */ jsxs17(
|
|
3750
3890
|
"div",
|
|
3751
3891
|
__spreadProps(__spreadValues({
|
|
3752
3892
|
"data-slot": "input-otp-slot",
|
|
@@ -3758,23 +3898,23 @@ function InputOTPSlot(_a) {
|
|
|
3758
3898
|
}, props), {
|
|
3759
3899
|
children: [
|
|
3760
3900
|
char,
|
|
3761
|
-
hasFakeCaret && /* @__PURE__ */
|
|
3901
|
+
hasFakeCaret && /* @__PURE__ */ jsx33("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx33("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
3762
3902
|
]
|
|
3763
3903
|
})
|
|
3764
3904
|
);
|
|
3765
3905
|
}
|
|
3766
3906
|
function InputOTPSeparator(_a) {
|
|
3767
3907
|
var props = __objRest(_a, []);
|
|
3768
|
-
return /* @__PURE__ */
|
|
3908
|
+
return /* @__PURE__ */ jsx33("div", __spreadProps(__spreadValues({ "data-slot": "input-otp-separator", role: "separator" }, props), { children: /* @__PURE__ */ jsx33(MinusIcon, {}) }));
|
|
3769
3909
|
}
|
|
3770
3910
|
|
|
3771
3911
|
// components/ui/item.tsx
|
|
3772
3912
|
import { cva as cva8 } from "class-variance-authority";
|
|
3773
3913
|
import { Slot as Slot5 } from "radix-ui";
|
|
3774
|
-
import { jsx as
|
|
3914
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3775
3915
|
function ItemGroup(_a) {
|
|
3776
3916
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3777
|
-
return /* @__PURE__ */
|
|
3917
|
+
return /* @__PURE__ */ jsx34(
|
|
3778
3918
|
"div",
|
|
3779
3919
|
__spreadValues({
|
|
3780
3920
|
role: "list",
|
|
@@ -3789,7 +3929,7 @@ function ItemSeparator(_a) {
|
|
|
3789
3929
|
} = _b, props = __objRest(_b, [
|
|
3790
3930
|
"className"
|
|
3791
3931
|
]);
|
|
3792
|
-
return /* @__PURE__ */
|
|
3932
|
+
return /* @__PURE__ */ jsx34(
|
|
3793
3933
|
Separator,
|
|
3794
3934
|
__spreadValues({
|
|
3795
3935
|
"data-slot": "item-separator",
|
|
@@ -3831,7 +3971,7 @@ function Item(_a) {
|
|
|
3831
3971
|
"asChild"
|
|
3832
3972
|
]);
|
|
3833
3973
|
const Comp = asChild ? Slot5.Root : "div";
|
|
3834
|
-
return /* @__PURE__ */
|
|
3974
|
+
return /* @__PURE__ */ jsx34(
|
|
3835
3975
|
Comp,
|
|
3836
3976
|
__spreadValues({
|
|
3837
3977
|
"data-slot": "item",
|
|
@@ -3864,7 +4004,7 @@ function ItemMedia(_a) {
|
|
|
3864
4004
|
"className",
|
|
3865
4005
|
"variant"
|
|
3866
4006
|
]);
|
|
3867
|
-
return /* @__PURE__ */
|
|
4007
|
+
return /* @__PURE__ */ jsx34(
|
|
3868
4008
|
"div",
|
|
3869
4009
|
__spreadValues({
|
|
3870
4010
|
"data-slot": "item-media",
|
|
@@ -3875,7 +4015,7 @@ function ItemMedia(_a) {
|
|
|
3875
4015
|
}
|
|
3876
4016
|
function ItemContent(_a) {
|
|
3877
4017
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3878
|
-
return /* @__PURE__ */
|
|
4018
|
+
return /* @__PURE__ */ jsx34(
|
|
3879
4019
|
"div",
|
|
3880
4020
|
__spreadValues({
|
|
3881
4021
|
"data-slot": "item-content",
|
|
@@ -3888,7 +4028,7 @@ function ItemContent(_a) {
|
|
|
3888
4028
|
}
|
|
3889
4029
|
function ItemTitle(_a) {
|
|
3890
4030
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3891
|
-
return /* @__PURE__ */
|
|
4031
|
+
return /* @__PURE__ */ jsx34(
|
|
3892
4032
|
"div",
|
|
3893
4033
|
__spreadValues({
|
|
3894
4034
|
"data-slot": "item-title",
|
|
@@ -3901,7 +4041,7 @@ function ItemTitle(_a) {
|
|
|
3901
4041
|
}
|
|
3902
4042
|
function ItemDescription(_a) {
|
|
3903
4043
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3904
|
-
return /* @__PURE__ */
|
|
4044
|
+
return /* @__PURE__ */ jsx34(
|
|
3905
4045
|
"p",
|
|
3906
4046
|
__spreadValues({
|
|
3907
4047
|
"data-slot": "item-description",
|
|
@@ -3915,7 +4055,7 @@ function ItemDescription(_a) {
|
|
|
3915
4055
|
}
|
|
3916
4056
|
function ItemActions(_a) {
|
|
3917
4057
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3918
|
-
return /* @__PURE__ */
|
|
4058
|
+
return /* @__PURE__ */ jsx34(
|
|
3919
4059
|
"div",
|
|
3920
4060
|
__spreadValues({
|
|
3921
4061
|
"data-slot": "item-actions",
|
|
@@ -3925,7 +4065,7 @@ function ItemActions(_a) {
|
|
|
3925
4065
|
}
|
|
3926
4066
|
function ItemHeader(_a) {
|
|
3927
4067
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3928
|
-
return /* @__PURE__ */
|
|
4068
|
+
return /* @__PURE__ */ jsx34(
|
|
3929
4069
|
"div",
|
|
3930
4070
|
__spreadValues({
|
|
3931
4071
|
"data-slot": "item-header",
|
|
@@ -3938,7 +4078,7 @@ function ItemHeader(_a) {
|
|
|
3938
4078
|
}
|
|
3939
4079
|
function ItemFooter(_a) {
|
|
3940
4080
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3941
|
-
return /* @__PURE__ */
|
|
4081
|
+
return /* @__PURE__ */ jsx34(
|
|
3942
4082
|
"div",
|
|
3943
4083
|
__spreadValues({
|
|
3944
4084
|
"data-slot": "item-footer",
|
|
@@ -3951,10 +4091,10 @@ function ItemFooter(_a) {
|
|
|
3951
4091
|
}
|
|
3952
4092
|
|
|
3953
4093
|
// components/ui/kbd.tsx
|
|
3954
|
-
import { jsx as
|
|
4094
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3955
4095
|
function Kbd(_a) {
|
|
3956
4096
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3957
|
-
return /* @__PURE__ */
|
|
4097
|
+
return /* @__PURE__ */ jsx35(
|
|
3958
4098
|
"kbd",
|
|
3959
4099
|
__spreadValues({
|
|
3960
4100
|
"data-slot": "kbd",
|
|
@@ -3969,7 +4109,7 @@ function Kbd(_a) {
|
|
|
3969
4109
|
}
|
|
3970
4110
|
function KbdGroup(_a) {
|
|
3971
4111
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3972
|
-
return /* @__PURE__ */
|
|
4112
|
+
return /* @__PURE__ */ jsx35(
|
|
3973
4113
|
"kbd",
|
|
3974
4114
|
__spreadValues({
|
|
3975
4115
|
"data-slot": "kbd-group",
|
|
@@ -3981,7 +4121,7 @@ function KbdGroup(_a) {
|
|
|
3981
4121
|
// components/ui/link.tsx
|
|
3982
4122
|
import { cva as cva9 } from "class-variance-authority";
|
|
3983
4123
|
import { Slot as Slot6 } from "radix-ui";
|
|
3984
|
-
import { jsx as
|
|
4124
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3985
4125
|
var linkVariants = cva9(
|
|
3986
4126
|
"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",
|
|
3987
4127
|
{
|
|
@@ -4008,7 +4148,7 @@ function Link(_a) {
|
|
|
4008
4148
|
"asChild"
|
|
4009
4149
|
]);
|
|
4010
4150
|
const Comp = asChild ? Slot6.Root : "a";
|
|
4011
|
-
return /* @__PURE__ */
|
|
4151
|
+
return /* @__PURE__ */ jsx36(
|
|
4012
4152
|
Comp,
|
|
4013
4153
|
__spreadValues({
|
|
4014
4154
|
"data-slot": "link",
|
|
@@ -4021,14 +4161,14 @@ function Link(_a) {
|
|
|
4021
4161
|
// components/ui/menubar.tsx
|
|
4022
4162
|
import { CheckIcon as CheckIcon5, ChevronRightIcon as ChevronRightIcon4, CircleIcon as CircleIcon3 } from "lucide-react";
|
|
4023
4163
|
import { Menubar as MenubarPrimitive } from "radix-ui";
|
|
4024
|
-
import { jsx as
|
|
4164
|
+
import { jsx as jsx37, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4025
4165
|
function Menubar(_a) {
|
|
4026
4166
|
var _b = _a, {
|
|
4027
4167
|
className
|
|
4028
4168
|
} = _b, props = __objRest(_b, [
|
|
4029
4169
|
"className"
|
|
4030
4170
|
]);
|
|
4031
|
-
return /* @__PURE__ */
|
|
4171
|
+
return /* @__PURE__ */ jsx37(
|
|
4032
4172
|
MenubarPrimitive.Root,
|
|
4033
4173
|
__spreadValues({
|
|
4034
4174
|
"data-slot": "menubar",
|
|
@@ -4041,19 +4181,19 @@ function Menubar(_a) {
|
|
|
4041
4181
|
}
|
|
4042
4182
|
function MenubarMenu(_a) {
|
|
4043
4183
|
var props = __objRest(_a, []);
|
|
4044
|
-
return /* @__PURE__ */
|
|
4184
|
+
return /* @__PURE__ */ jsx37(MenubarPrimitive.Menu, __spreadValues({ "data-slot": "menubar-menu" }, props));
|
|
4045
4185
|
}
|
|
4046
4186
|
function MenubarGroup(_a) {
|
|
4047
4187
|
var props = __objRest(_a, []);
|
|
4048
|
-
return /* @__PURE__ */
|
|
4188
|
+
return /* @__PURE__ */ jsx37(MenubarPrimitive.Group, __spreadValues({ "data-slot": "menubar-group" }, props));
|
|
4049
4189
|
}
|
|
4050
4190
|
function MenubarPortal(_a) {
|
|
4051
4191
|
var props = __objRest(_a, []);
|
|
4052
|
-
return /* @__PURE__ */
|
|
4192
|
+
return /* @__PURE__ */ jsx37(MenubarPrimitive.Portal, __spreadValues({ "data-slot": "menubar-portal" }, props));
|
|
4053
4193
|
}
|
|
4054
4194
|
function MenubarRadioGroup(_a) {
|
|
4055
4195
|
var props = __objRest(_a, []);
|
|
4056
|
-
return /* @__PURE__ */
|
|
4196
|
+
return /* @__PURE__ */ jsx37(MenubarPrimitive.RadioGroup, __spreadValues({ "data-slot": "menubar-radio-group" }, props));
|
|
4057
4197
|
}
|
|
4058
4198
|
function MenubarTrigger(_a) {
|
|
4059
4199
|
var _b = _a, {
|
|
@@ -4061,7 +4201,7 @@ function MenubarTrigger(_a) {
|
|
|
4061
4201
|
} = _b, props = __objRest(_b, [
|
|
4062
4202
|
"className"
|
|
4063
4203
|
]);
|
|
4064
|
-
return /* @__PURE__ */
|
|
4204
|
+
return /* @__PURE__ */ jsx37(
|
|
4065
4205
|
MenubarPrimitive.Trigger,
|
|
4066
4206
|
__spreadValues({
|
|
4067
4207
|
"data-slot": "menubar-trigger",
|
|
@@ -4084,7 +4224,7 @@ function MenubarContent(_a) {
|
|
|
4084
4224
|
"alignOffset",
|
|
4085
4225
|
"sideOffset"
|
|
4086
4226
|
]);
|
|
4087
|
-
return /* @__PURE__ */
|
|
4227
|
+
return /* @__PURE__ */ jsx37(MenubarPortal, { children: /* @__PURE__ */ jsx37(
|
|
4088
4228
|
MenubarPrimitive.Content,
|
|
4089
4229
|
__spreadValues({
|
|
4090
4230
|
"data-slot": "menubar-content",
|
|
@@ -4108,7 +4248,7 @@ function MenubarItem(_a) {
|
|
|
4108
4248
|
"inset",
|
|
4109
4249
|
"variant"
|
|
4110
4250
|
]);
|
|
4111
|
-
return /* @__PURE__ */
|
|
4251
|
+
return /* @__PURE__ */ jsx37(
|
|
4112
4252
|
MenubarPrimitive.Item,
|
|
4113
4253
|
__spreadValues({
|
|
4114
4254
|
"data-slot": "menubar-item",
|
|
@@ -4131,7 +4271,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
4131
4271
|
"children",
|
|
4132
4272
|
"checked"
|
|
4133
4273
|
]);
|
|
4134
|
-
return /* @__PURE__ */
|
|
4274
|
+
return /* @__PURE__ */ jsxs18(
|
|
4135
4275
|
MenubarPrimitive.CheckboxItem,
|
|
4136
4276
|
__spreadProps(__spreadValues({
|
|
4137
4277
|
"data-slot": "menubar-checkbox-item",
|
|
@@ -4142,7 +4282,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
4142
4282
|
checked
|
|
4143
4283
|
}, props), {
|
|
4144
4284
|
children: [
|
|
4145
|
-
/* @__PURE__ */
|
|
4285
|
+
/* @__PURE__ */ jsx37("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx37(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx37(CheckIcon5, { className: "size-4" }) }) }),
|
|
4146
4286
|
children
|
|
4147
4287
|
]
|
|
4148
4288
|
})
|
|
@@ -4156,7 +4296,7 @@ function MenubarRadioItem(_a) {
|
|
|
4156
4296
|
"className",
|
|
4157
4297
|
"children"
|
|
4158
4298
|
]);
|
|
4159
|
-
return /* @__PURE__ */
|
|
4299
|
+
return /* @__PURE__ */ jsxs18(
|
|
4160
4300
|
MenubarPrimitive.RadioItem,
|
|
4161
4301
|
__spreadProps(__spreadValues({
|
|
4162
4302
|
"data-slot": "menubar-radio-item",
|
|
@@ -4166,7 +4306,7 @@ function MenubarRadioItem(_a) {
|
|
|
4166
4306
|
)
|
|
4167
4307
|
}, props), {
|
|
4168
4308
|
children: [
|
|
4169
|
-
/* @__PURE__ */
|
|
4309
|
+
/* @__PURE__ */ jsx37("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx37(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx37(CircleIcon3, { className: "size-2 fill-current" }) }) }),
|
|
4170
4310
|
children
|
|
4171
4311
|
]
|
|
4172
4312
|
})
|
|
@@ -4180,7 +4320,7 @@ function MenubarLabel(_a) {
|
|
|
4180
4320
|
"className",
|
|
4181
4321
|
"inset"
|
|
4182
4322
|
]);
|
|
4183
|
-
return /* @__PURE__ */
|
|
4323
|
+
return /* @__PURE__ */ jsx37(
|
|
4184
4324
|
MenubarPrimitive.Label,
|
|
4185
4325
|
__spreadValues({
|
|
4186
4326
|
"data-slot": "menubar-label",
|
|
@@ -4198,7 +4338,7 @@ function MenubarSeparator(_a) {
|
|
|
4198
4338
|
} = _b, props = __objRest(_b, [
|
|
4199
4339
|
"className"
|
|
4200
4340
|
]);
|
|
4201
|
-
return /* @__PURE__ */
|
|
4341
|
+
return /* @__PURE__ */ jsx37(
|
|
4202
4342
|
MenubarPrimitive.Separator,
|
|
4203
4343
|
__spreadValues({
|
|
4204
4344
|
"data-slot": "menubar-separator",
|
|
@@ -4212,7 +4352,7 @@ function MenubarShortcut(_a) {
|
|
|
4212
4352
|
} = _b, props = __objRest(_b, [
|
|
4213
4353
|
"className"
|
|
4214
4354
|
]);
|
|
4215
|
-
return /* @__PURE__ */
|
|
4355
|
+
return /* @__PURE__ */ jsx37(
|
|
4216
4356
|
"span",
|
|
4217
4357
|
__spreadValues({
|
|
4218
4358
|
"data-slot": "menubar-shortcut",
|
|
@@ -4225,7 +4365,7 @@ function MenubarShortcut(_a) {
|
|
|
4225
4365
|
}
|
|
4226
4366
|
function MenubarSub(_a) {
|
|
4227
4367
|
var props = __objRest(_a, []);
|
|
4228
|
-
return /* @__PURE__ */
|
|
4368
|
+
return /* @__PURE__ */ jsx37(MenubarPrimitive.Sub, __spreadValues({ "data-slot": "menubar-sub" }, props));
|
|
4229
4369
|
}
|
|
4230
4370
|
function MenubarSubTrigger(_a) {
|
|
4231
4371
|
var _b = _a, {
|
|
@@ -4237,7 +4377,7 @@ function MenubarSubTrigger(_a) {
|
|
|
4237
4377
|
"inset",
|
|
4238
4378
|
"children"
|
|
4239
4379
|
]);
|
|
4240
|
-
return /* @__PURE__ */
|
|
4380
|
+
return /* @__PURE__ */ jsxs18(
|
|
4241
4381
|
MenubarPrimitive.SubTrigger,
|
|
4242
4382
|
__spreadProps(__spreadValues({
|
|
4243
4383
|
"data-slot": "menubar-sub-trigger",
|
|
@@ -4249,7 +4389,7 @@ function MenubarSubTrigger(_a) {
|
|
|
4249
4389
|
}, props), {
|
|
4250
4390
|
children: [
|
|
4251
4391
|
children,
|
|
4252
|
-
/* @__PURE__ */
|
|
4392
|
+
/* @__PURE__ */ jsx37(ChevronRightIcon4, { className: "ml-auto h-4 w-4" })
|
|
4253
4393
|
]
|
|
4254
4394
|
})
|
|
4255
4395
|
);
|
|
@@ -4260,7 +4400,7 @@ function MenubarSubContent(_a) {
|
|
|
4260
4400
|
} = _b, props = __objRest(_b, [
|
|
4261
4401
|
"className"
|
|
4262
4402
|
]);
|
|
4263
|
-
return /* @__PURE__ */
|
|
4403
|
+
return /* @__PURE__ */ jsx37(
|
|
4264
4404
|
MenubarPrimitive.SubContent,
|
|
4265
4405
|
__spreadValues({
|
|
4266
4406
|
"data-slot": "menubar-sub-content",
|
|
@@ -4274,7 +4414,7 @@ function MenubarSubContent(_a) {
|
|
|
4274
4414
|
|
|
4275
4415
|
// components/ui/native-select.tsx
|
|
4276
4416
|
import { ChevronDownIcon as ChevronDownIcon4 } from "lucide-react";
|
|
4277
|
-
import { jsx as
|
|
4417
|
+
import { jsx as jsx38, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
4278
4418
|
function NativeSelect(_a) {
|
|
4279
4419
|
var _b = _a, {
|
|
4280
4420
|
className,
|
|
@@ -4283,13 +4423,13 @@ function NativeSelect(_a) {
|
|
|
4283
4423
|
"className",
|
|
4284
4424
|
"size"
|
|
4285
4425
|
]);
|
|
4286
|
-
return /* @__PURE__ */
|
|
4426
|
+
return /* @__PURE__ */ jsxs19(
|
|
4287
4427
|
"div",
|
|
4288
4428
|
{
|
|
4289
4429
|
className: "group/native-select relative w-fit has-[select:disabled]:opacity-50",
|
|
4290
4430
|
"data-slot": "native-select-wrapper",
|
|
4291
4431
|
children: [
|
|
4292
|
-
/* @__PURE__ */
|
|
4432
|
+
/* @__PURE__ */ jsx38(
|
|
4293
4433
|
"select",
|
|
4294
4434
|
__spreadValues({
|
|
4295
4435
|
"data-slot": "native-select",
|
|
@@ -4301,7 +4441,7 @@ function NativeSelect(_a) {
|
|
|
4301
4441
|
)
|
|
4302
4442
|
}, props)
|
|
4303
4443
|
),
|
|
4304
|
-
/* @__PURE__ */
|
|
4444
|
+
/* @__PURE__ */ jsx38(
|
|
4305
4445
|
ChevronDownIcon4,
|
|
4306
4446
|
{
|
|
4307
4447
|
className: "pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 text-on-subtle opacity-50 select-none",
|
|
@@ -4315,7 +4455,7 @@ function NativeSelect(_a) {
|
|
|
4315
4455
|
}
|
|
4316
4456
|
function NativeSelectOption(_a) {
|
|
4317
4457
|
var props = __objRest(_a, []);
|
|
4318
|
-
return /* @__PURE__ */
|
|
4458
|
+
return /* @__PURE__ */ jsx38("option", __spreadValues({ "data-slot": "native-select-option" }, props));
|
|
4319
4459
|
}
|
|
4320
4460
|
function NativeSelectOptGroup(_a) {
|
|
4321
4461
|
var _b = _a, {
|
|
@@ -4323,7 +4463,7 @@ function NativeSelectOptGroup(_a) {
|
|
|
4323
4463
|
} = _b, props = __objRest(_b, [
|
|
4324
4464
|
"className"
|
|
4325
4465
|
]);
|
|
4326
|
-
return /* @__PURE__ */
|
|
4466
|
+
return /* @__PURE__ */ jsx38(
|
|
4327
4467
|
"optgroup",
|
|
4328
4468
|
__spreadValues({
|
|
4329
4469
|
"data-slot": "native-select-optgroup",
|
|
@@ -4335,7 +4475,7 @@ function NativeSelectOptGroup(_a) {
|
|
|
4335
4475
|
// components/ui/navigation-button.tsx
|
|
4336
4476
|
import { cva as cva10 } from "class-variance-authority";
|
|
4337
4477
|
import { Slot as Slot7 } from "radix-ui";
|
|
4338
|
-
import { jsx as
|
|
4478
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
4339
4479
|
var navigationButtonVariants = cva10(
|
|
4340
4480
|
"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",
|
|
4341
4481
|
{
|
|
@@ -4365,7 +4505,7 @@ function NavigationButton(_a) {
|
|
|
4365
4505
|
"children"
|
|
4366
4506
|
]);
|
|
4367
4507
|
const Comp = asChild ? Slot7.Root : "button";
|
|
4368
|
-
return /* @__PURE__ */
|
|
4508
|
+
return /* @__PURE__ */ jsx39(
|
|
4369
4509
|
Comp,
|
|
4370
4510
|
__spreadProps(__spreadValues({
|
|
4371
4511
|
"data-slot": "navigation-button",
|
|
@@ -4381,7 +4521,7 @@ function NavigationButton(_a) {
|
|
|
4381
4521
|
import { cva as cva11 } from "class-variance-authority";
|
|
4382
4522
|
import { ChevronDownIcon as ChevronDownIcon5 } from "lucide-react";
|
|
4383
4523
|
import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
|
|
4384
|
-
import { jsx as
|
|
4524
|
+
import { jsx as jsx40, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4385
4525
|
function NavigationMenu(_a) {
|
|
4386
4526
|
var _b = _a, {
|
|
4387
4527
|
className,
|
|
@@ -4392,7 +4532,7 @@ function NavigationMenu(_a) {
|
|
|
4392
4532
|
"children",
|
|
4393
4533
|
"viewport"
|
|
4394
4534
|
]);
|
|
4395
|
-
return /* @__PURE__ */
|
|
4535
|
+
return /* @__PURE__ */ jsxs20(
|
|
4396
4536
|
NavigationMenuPrimitive.Root,
|
|
4397
4537
|
__spreadProps(__spreadValues({
|
|
4398
4538
|
"data-slot": "navigation-menu",
|
|
@@ -4404,7 +4544,7 @@ function NavigationMenu(_a) {
|
|
|
4404
4544
|
}, props), {
|
|
4405
4545
|
children: [
|
|
4406
4546
|
children,
|
|
4407
|
-
viewport && /* @__PURE__ */
|
|
4547
|
+
viewport && /* @__PURE__ */ jsx40(NavigationMenuViewport, {})
|
|
4408
4548
|
]
|
|
4409
4549
|
})
|
|
4410
4550
|
);
|
|
@@ -4415,7 +4555,7 @@ function NavigationMenuList(_a) {
|
|
|
4415
4555
|
} = _b, props = __objRest(_b, [
|
|
4416
4556
|
"className"
|
|
4417
4557
|
]);
|
|
4418
|
-
return /* @__PURE__ */
|
|
4558
|
+
return /* @__PURE__ */ jsx40(
|
|
4419
4559
|
NavigationMenuPrimitive.List,
|
|
4420
4560
|
__spreadValues({
|
|
4421
4561
|
"data-slot": "navigation-menu-list",
|
|
@@ -4432,7 +4572,7 @@ function NavigationMenuItem(_a) {
|
|
|
4432
4572
|
} = _b, props = __objRest(_b, [
|
|
4433
4573
|
"className"
|
|
4434
4574
|
]);
|
|
4435
|
-
return /* @__PURE__ */
|
|
4575
|
+
return /* @__PURE__ */ jsx40(
|
|
4436
4576
|
NavigationMenuPrimitive.Item,
|
|
4437
4577
|
__spreadValues({
|
|
4438
4578
|
"data-slot": "navigation-menu-item",
|
|
@@ -4451,7 +4591,7 @@ function NavigationMenuTrigger(_a) {
|
|
|
4451
4591
|
"className",
|
|
4452
4592
|
"children"
|
|
4453
4593
|
]);
|
|
4454
|
-
return /* @__PURE__ */
|
|
4594
|
+
return /* @__PURE__ */ jsxs20(
|
|
4455
4595
|
NavigationMenuPrimitive.Trigger,
|
|
4456
4596
|
__spreadProps(__spreadValues({
|
|
4457
4597
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -4460,7 +4600,7 @@ function NavigationMenuTrigger(_a) {
|
|
|
4460
4600
|
children: [
|
|
4461
4601
|
children,
|
|
4462
4602
|
" ",
|
|
4463
|
-
/* @__PURE__ */
|
|
4603
|
+
/* @__PURE__ */ jsx40(
|
|
4464
4604
|
ChevronDownIcon5,
|
|
4465
4605
|
{
|
|
4466
4606
|
className: "relative top-[1px] ml-1 size-3 transition duration-slow group-data-[state=open]:rotate-180",
|
|
@@ -4477,7 +4617,7 @@ function NavigationMenuContent(_a) {
|
|
|
4477
4617
|
} = _b, props = __objRest(_b, [
|
|
4478
4618
|
"className"
|
|
4479
4619
|
]);
|
|
4480
|
-
return /* @__PURE__ */
|
|
4620
|
+
return /* @__PURE__ */ jsx40(
|
|
4481
4621
|
NavigationMenuPrimitive.Content,
|
|
4482
4622
|
__spreadValues({
|
|
4483
4623
|
"data-slot": "navigation-menu-content",
|
|
@@ -4495,13 +4635,13 @@ function NavigationMenuViewport(_a) {
|
|
|
4495
4635
|
} = _b, props = __objRest(_b, [
|
|
4496
4636
|
"className"
|
|
4497
4637
|
]);
|
|
4498
|
-
return /* @__PURE__ */
|
|
4638
|
+
return /* @__PURE__ */ jsx40(
|
|
4499
4639
|
"div",
|
|
4500
4640
|
{
|
|
4501
4641
|
className: cn(
|
|
4502
4642
|
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
4503
4643
|
),
|
|
4504
|
-
children: /* @__PURE__ */
|
|
4644
|
+
children: /* @__PURE__ */ jsx40(
|
|
4505
4645
|
NavigationMenuPrimitive.Viewport,
|
|
4506
4646
|
__spreadValues({
|
|
4507
4647
|
"data-slot": "navigation-menu-viewport",
|
|
@@ -4520,7 +4660,7 @@ function NavigationMenuLink(_a) {
|
|
|
4520
4660
|
} = _b, props = __objRest(_b, [
|
|
4521
4661
|
"className"
|
|
4522
4662
|
]);
|
|
4523
|
-
return /* @__PURE__ */
|
|
4663
|
+
return /* @__PURE__ */ jsx40(
|
|
4524
4664
|
NavigationMenuPrimitive.Link,
|
|
4525
4665
|
__spreadValues({
|
|
4526
4666
|
"data-slot": "navigation-menu-link",
|
|
@@ -4537,7 +4677,7 @@ function NavigationMenuIndicator(_a) {
|
|
|
4537
4677
|
} = _b, props = __objRest(_b, [
|
|
4538
4678
|
"className"
|
|
4539
4679
|
]);
|
|
4540
|
-
return /* @__PURE__ */
|
|
4680
|
+
return /* @__PURE__ */ jsx40(
|
|
4541
4681
|
NavigationMenuPrimitive.Indicator,
|
|
4542
4682
|
__spreadProps(__spreadValues({
|
|
4543
4683
|
"data-slot": "navigation-menu-indicator",
|
|
@@ -4546,7 +4686,7 @@ function NavigationMenuIndicator(_a) {
|
|
|
4546
4686
|
className
|
|
4547
4687
|
)
|
|
4548
4688
|
}, props), {
|
|
4549
|
-
children: /* @__PURE__ */
|
|
4689
|
+
children: /* @__PURE__ */ jsx40("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
4550
4690
|
})
|
|
4551
4691
|
);
|
|
4552
4692
|
}
|
|
@@ -4557,10 +4697,10 @@ import {
|
|
|
4557
4697
|
ChevronRightIcon as ChevronRightIcon5,
|
|
4558
4698
|
MoreHorizontalIcon
|
|
4559
4699
|
} from "lucide-react";
|
|
4560
|
-
import { jsx as
|
|
4700
|
+
import { jsx as jsx41, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4561
4701
|
function Pagination(_a) {
|
|
4562
4702
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4563
|
-
return /* @__PURE__ */
|
|
4703
|
+
return /* @__PURE__ */ jsx41(
|
|
4564
4704
|
"nav",
|
|
4565
4705
|
__spreadValues({
|
|
4566
4706
|
role: "navigation",
|
|
@@ -4576,7 +4716,7 @@ function PaginationContent(_a) {
|
|
|
4576
4716
|
} = _b, props = __objRest(_b, [
|
|
4577
4717
|
"className"
|
|
4578
4718
|
]);
|
|
4579
|
-
return /* @__PURE__ */
|
|
4719
|
+
return /* @__PURE__ */ jsx41(
|
|
4580
4720
|
"ul",
|
|
4581
4721
|
__spreadValues({
|
|
4582
4722
|
"data-slot": "pagination-content",
|
|
@@ -4586,7 +4726,7 @@ function PaginationContent(_a) {
|
|
|
4586
4726
|
}
|
|
4587
4727
|
function PaginationItem(_a) {
|
|
4588
4728
|
var props = __objRest(_a, []);
|
|
4589
|
-
return /* @__PURE__ */
|
|
4729
|
+
return /* @__PURE__ */ jsx41("li", __spreadValues({ "data-slot": "pagination-item" }, props));
|
|
4590
4730
|
}
|
|
4591
4731
|
function PaginationLink(_a) {
|
|
4592
4732
|
var _b = _a, {
|
|
@@ -4598,7 +4738,7 @@ function PaginationLink(_a) {
|
|
|
4598
4738
|
"isActive",
|
|
4599
4739
|
"size"
|
|
4600
4740
|
]);
|
|
4601
|
-
return /* @__PURE__ */
|
|
4741
|
+
return /* @__PURE__ */ jsx41(
|
|
4602
4742
|
"a",
|
|
4603
4743
|
__spreadValues({
|
|
4604
4744
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -4618,7 +4758,7 @@ function PaginationPrevious(_a) {
|
|
|
4618
4758
|
} = _b, props = __objRest(_b, [
|
|
4619
4759
|
"className"
|
|
4620
4760
|
]);
|
|
4621
|
-
return /* @__PURE__ */
|
|
4761
|
+
return /* @__PURE__ */ jsx41(Button, { asChild: true, variant: "tertiary", size: "icon-md", className: cn(className), children: /* @__PURE__ */ jsx41("a", __spreadProps(__spreadValues({ "aria-label": "Go to previous page", "data-slot": "pagination-link" }, props), { children: /* @__PURE__ */ jsx41(ChevronLeftIcon2, { className: "size-5" }) })) });
|
|
4622
4762
|
}
|
|
4623
4763
|
function PaginationNext(_a) {
|
|
4624
4764
|
var _b = _a, {
|
|
@@ -4626,7 +4766,7 @@ function PaginationNext(_a) {
|
|
|
4626
4766
|
} = _b, props = __objRest(_b, [
|
|
4627
4767
|
"className"
|
|
4628
4768
|
]);
|
|
4629
|
-
return /* @__PURE__ */
|
|
4769
|
+
return /* @__PURE__ */ jsx41(Button, { asChild: true, variant: "tertiary", size: "icon-md", className: cn(className), children: /* @__PURE__ */ jsx41("a", __spreadProps(__spreadValues({ "aria-label": "Go to next page", "data-slot": "pagination-link" }, props), { children: /* @__PURE__ */ jsx41(ChevronRightIcon5, { className: "size-5" }) })) });
|
|
4630
4770
|
}
|
|
4631
4771
|
function PaginationEllipsis(_a) {
|
|
4632
4772
|
var _b = _a, {
|
|
@@ -4634,7 +4774,7 @@ function PaginationEllipsis(_a) {
|
|
|
4634
4774
|
} = _b, props = __objRest(_b, [
|
|
4635
4775
|
"className"
|
|
4636
4776
|
]);
|
|
4637
|
-
return /* @__PURE__ */
|
|
4777
|
+
return /* @__PURE__ */ jsxs21(
|
|
4638
4778
|
"span",
|
|
4639
4779
|
__spreadProps(__spreadValues({
|
|
4640
4780
|
"aria-hidden": true,
|
|
@@ -4642,8 +4782,8 @@ function PaginationEllipsis(_a) {
|
|
|
4642
4782
|
className: cn("flex size-10 items-center justify-center", className)
|
|
4643
4783
|
}, props), {
|
|
4644
4784
|
children: [
|
|
4645
|
-
/* @__PURE__ */
|
|
4646
|
-
/* @__PURE__ */
|
|
4785
|
+
/* @__PURE__ */ jsx41(MoreHorizontalIcon, { className: "size-4" }),
|
|
4786
|
+
/* @__PURE__ */ jsx41("span", { className: "sr-only", children: "More pages" })
|
|
4647
4787
|
]
|
|
4648
4788
|
})
|
|
4649
4789
|
);
|
|
@@ -4651,14 +4791,14 @@ function PaginationEllipsis(_a) {
|
|
|
4651
4791
|
|
|
4652
4792
|
// components/ui/popover.tsx
|
|
4653
4793
|
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
4654
|
-
import { jsx as
|
|
4794
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
4655
4795
|
function Popover(_a) {
|
|
4656
4796
|
var props = __objRest(_a, []);
|
|
4657
|
-
return /* @__PURE__ */
|
|
4797
|
+
return /* @__PURE__ */ jsx42(PopoverPrimitive.Root, __spreadValues({ "data-slot": "popover" }, props));
|
|
4658
4798
|
}
|
|
4659
4799
|
function PopoverTrigger(_a) {
|
|
4660
4800
|
var props = __objRest(_a, []);
|
|
4661
|
-
return /* @__PURE__ */
|
|
4801
|
+
return /* @__PURE__ */ jsx42(PopoverPrimitive.Trigger, __spreadValues({ "data-slot": "popover-trigger" }, props));
|
|
4662
4802
|
}
|
|
4663
4803
|
function PopoverContent(_a) {
|
|
4664
4804
|
var _b = _a, {
|
|
@@ -4670,7 +4810,7 @@ function PopoverContent(_a) {
|
|
|
4670
4810
|
"align",
|
|
4671
4811
|
"sideOffset"
|
|
4672
4812
|
]);
|
|
4673
|
-
return /* @__PURE__ */
|
|
4813
|
+
return /* @__PURE__ */ jsx42(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx42(
|
|
4674
4814
|
PopoverPrimitive.Content,
|
|
4675
4815
|
__spreadValues({
|
|
4676
4816
|
"data-slot": "popover-content",
|
|
@@ -4685,11 +4825,11 @@ function PopoverContent(_a) {
|
|
|
4685
4825
|
}
|
|
4686
4826
|
function PopoverAnchor(_a) {
|
|
4687
4827
|
var props = __objRest(_a, []);
|
|
4688
|
-
return /* @__PURE__ */
|
|
4828
|
+
return /* @__PURE__ */ jsx42(PopoverPrimitive.Anchor, __spreadValues({ "data-slot": "popover-anchor" }, props));
|
|
4689
4829
|
}
|
|
4690
4830
|
function PopoverHeader(_a) {
|
|
4691
4831
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4692
|
-
return /* @__PURE__ */
|
|
4832
|
+
return /* @__PURE__ */ jsx42(
|
|
4693
4833
|
"div",
|
|
4694
4834
|
__spreadValues({
|
|
4695
4835
|
"data-slot": "popover-header",
|
|
@@ -4699,7 +4839,7 @@ function PopoverHeader(_a) {
|
|
|
4699
4839
|
}
|
|
4700
4840
|
function PopoverTitle(_a) {
|
|
4701
4841
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4702
|
-
return /* @__PURE__ */
|
|
4842
|
+
return /* @__PURE__ */ jsx42(
|
|
4703
4843
|
"div",
|
|
4704
4844
|
__spreadValues({
|
|
4705
4845
|
"data-slot": "popover-title",
|
|
@@ -4713,7 +4853,7 @@ function PopoverDescription(_a) {
|
|
|
4713
4853
|
} = _b, props = __objRest(_b, [
|
|
4714
4854
|
"className"
|
|
4715
4855
|
]);
|
|
4716
|
-
return /* @__PURE__ */
|
|
4856
|
+
return /* @__PURE__ */ jsx42(
|
|
4717
4857
|
"p",
|
|
4718
4858
|
__spreadValues({
|
|
4719
4859
|
"data-slot": "popover-description",
|
|
@@ -4724,7 +4864,7 @@ function PopoverDescription(_a) {
|
|
|
4724
4864
|
|
|
4725
4865
|
// components/ui/progress.tsx
|
|
4726
4866
|
import { Progress as ProgressPrimitive } from "radix-ui";
|
|
4727
|
-
import { jsx as
|
|
4867
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
4728
4868
|
function Progress(_a) {
|
|
4729
4869
|
var _b = _a, {
|
|
4730
4870
|
className,
|
|
@@ -4733,7 +4873,7 @@ function Progress(_a) {
|
|
|
4733
4873
|
"className",
|
|
4734
4874
|
"value"
|
|
4735
4875
|
]);
|
|
4736
|
-
return /* @__PURE__ */
|
|
4876
|
+
return /* @__PURE__ */ jsx43(
|
|
4737
4877
|
ProgressPrimitive.Root,
|
|
4738
4878
|
__spreadProps(__spreadValues({
|
|
4739
4879
|
"data-slot": "progress",
|
|
@@ -4742,7 +4882,7 @@ function Progress(_a) {
|
|
|
4742
4882
|
className
|
|
4743
4883
|
)
|
|
4744
4884
|
}, props), {
|
|
4745
|
-
children: /* @__PURE__ */
|
|
4885
|
+
children: /* @__PURE__ */ jsx43(
|
|
4746
4886
|
ProgressPrimitive.Indicator,
|
|
4747
4887
|
{
|
|
4748
4888
|
"data-slot": "progress-indicator",
|
|
@@ -4757,14 +4897,14 @@ function Progress(_a) {
|
|
|
4757
4897
|
// components/ui/radio-group.tsx
|
|
4758
4898
|
import { CircleIcon as CircleIcon4 } from "lucide-react";
|
|
4759
4899
|
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
4760
|
-
import { jsx as
|
|
4900
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
4761
4901
|
function RadioGroup(_a) {
|
|
4762
4902
|
var _b = _a, {
|
|
4763
4903
|
className
|
|
4764
4904
|
} = _b, props = __objRest(_b, [
|
|
4765
4905
|
"className"
|
|
4766
4906
|
]);
|
|
4767
|
-
return /* @__PURE__ */
|
|
4907
|
+
return /* @__PURE__ */ jsx44(
|
|
4768
4908
|
RadioGroupPrimitive.Root,
|
|
4769
4909
|
__spreadValues({
|
|
4770
4910
|
"data-slot": "radio-group",
|
|
@@ -4778,7 +4918,7 @@ function RadioGroupItem(_a) {
|
|
|
4778
4918
|
} = _b, props = __objRest(_b, [
|
|
4779
4919
|
"className"
|
|
4780
4920
|
]);
|
|
4781
|
-
return /* @__PURE__ */
|
|
4921
|
+
return /* @__PURE__ */ jsx44(
|
|
4782
4922
|
RadioGroupPrimitive.Item,
|
|
4783
4923
|
__spreadProps(__spreadValues({
|
|
4784
4924
|
"data-slot": "radio-group-item",
|
|
@@ -4787,12 +4927,12 @@ function RadioGroupItem(_a) {
|
|
|
4787
4927
|
className
|
|
4788
4928
|
)
|
|
4789
4929
|
}, props), {
|
|
4790
|
-
children: /* @__PURE__ */
|
|
4930
|
+
children: /* @__PURE__ */ jsx44(
|
|
4791
4931
|
RadioGroupPrimitive.Indicator,
|
|
4792
4932
|
{
|
|
4793
4933
|
"data-slot": "radio-group-indicator",
|
|
4794
4934
|
className: "relative flex items-center justify-center",
|
|
4795
|
-
children: /* @__PURE__ */
|
|
4935
|
+
children: /* @__PURE__ */ jsx44(CircleIcon4, { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary" })
|
|
4796
4936
|
}
|
|
4797
4937
|
)
|
|
4798
4938
|
})
|
|
@@ -4802,14 +4942,14 @@ function RadioGroupItem(_a) {
|
|
|
4802
4942
|
// components/ui/resizable.tsx
|
|
4803
4943
|
import { GripVerticalIcon } from "lucide-react";
|
|
4804
4944
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
4805
|
-
import { jsx as
|
|
4945
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
4806
4946
|
function ResizablePanelGroup(_a) {
|
|
4807
4947
|
var _b = _a, {
|
|
4808
4948
|
className
|
|
4809
4949
|
} = _b, props = __objRest(_b, [
|
|
4810
4950
|
"className"
|
|
4811
4951
|
]);
|
|
4812
|
-
return /* @__PURE__ */
|
|
4952
|
+
return /* @__PURE__ */ jsx45(
|
|
4813
4953
|
ResizablePrimitive.Group,
|
|
4814
4954
|
__spreadValues({
|
|
4815
4955
|
"data-slot": "resizable-panel-group",
|
|
@@ -4822,7 +4962,7 @@ function ResizablePanelGroup(_a) {
|
|
|
4822
4962
|
}
|
|
4823
4963
|
function ResizablePanel(_a) {
|
|
4824
4964
|
var props = __objRest(_a, []);
|
|
4825
|
-
return /* @__PURE__ */
|
|
4965
|
+
return /* @__PURE__ */ jsx45(ResizablePrimitive.Panel, __spreadValues({ "data-slot": "resizable-panel" }, props));
|
|
4826
4966
|
}
|
|
4827
4967
|
function ResizableHandle(_a) {
|
|
4828
4968
|
var _b = _a, {
|
|
@@ -4832,7 +4972,7 @@ function ResizableHandle(_a) {
|
|
|
4832
4972
|
"withHandle",
|
|
4833
4973
|
"className"
|
|
4834
4974
|
]);
|
|
4835
|
-
return /* @__PURE__ */
|
|
4975
|
+
return /* @__PURE__ */ jsx45(
|
|
4836
4976
|
ResizablePrimitive.Separator,
|
|
4837
4977
|
__spreadProps(__spreadValues({
|
|
4838
4978
|
"data-slot": "resizable-handle",
|
|
@@ -4841,14 +4981,14 @@ function ResizableHandle(_a) {
|
|
|
4841
4981
|
className
|
|
4842
4982
|
)
|
|
4843
4983
|
}, props), {
|
|
4844
|
-
children: withHandle && /* @__PURE__ */
|
|
4984
|
+
children: withHandle && /* @__PURE__ */ jsx45("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border", children: /* @__PURE__ */ jsx45(GripVerticalIcon, { className: "size-2.5" }) })
|
|
4845
4985
|
})
|
|
4846
4986
|
);
|
|
4847
4987
|
}
|
|
4848
4988
|
|
|
4849
4989
|
// components/ui/scroll-area.tsx
|
|
4850
4990
|
import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
|
|
4851
|
-
import { jsx as
|
|
4991
|
+
import { jsx as jsx46, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4852
4992
|
function ScrollArea(_a) {
|
|
4853
4993
|
var _b = _a, {
|
|
4854
4994
|
className,
|
|
@@ -4857,14 +4997,14 @@ function ScrollArea(_a) {
|
|
|
4857
4997
|
"className",
|
|
4858
4998
|
"children"
|
|
4859
4999
|
]);
|
|
4860
|
-
return /* @__PURE__ */
|
|
5000
|
+
return /* @__PURE__ */ jsxs22(
|
|
4861
5001
|
ScrollAreaPrimitive.Root,
|
|
4862
5002
|
__spreadProps(__spreadValues({
|
|
4863
5003
|
"data-slot": "scroll-area",
|
|
4864
5004
|
className: cn("relative", className)
|
|
4865
5005
|
}, props), {
|
|
4866
5006
|
children: [
|
|
4867
|
-
/* @__PURE__ */
|
|
5007
|
+
/* @__PURE__ */ jsx46(
|
|
4868
5008
|
ScrollAreaPrimitive.Viewport,
|
|
4869
5009
|
{
|
|
4870
5010
|
"data-slot": "scroll-area-viewport",
|
|
@@ -4872,8 +5012,8 @@ function ScrollArea(_a) {
|
|
|
4872
5012
|
children
|
|
4873
5013
|
}
|
|
4874
5014
|
),
|
|
4875
|
-
/* @__PURE__ */
|
|
4876
|
-
/* @__PURE__ */
|
|
5015
|
+
/* @__PURE__ */ jsx46(ScrollBar, {}),
|
|
5016
|
+
/* @__PURE__ */ jsx46(ScrollAreaPrimitive.Corner, {})
|
|
4877
5017
|
]
|
|
4878
5018
|
})
|
|
4879
5019
|
);
|
|
@@ -4886,7 +5026,7 @@ function ScrollBar(_a) {
|
|
|
4886
5026
|
"className",
|
|
4887
5027
|
"orientation"
|
|
4888
5028
|
]);
|
|
4889
|
-
return /* @__PURE__ */
|
|
5029
|
+
return /* @__PURE__ */ jsx46(
|
|
4890
5030
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
4891
5031
|
__spreadProps(__spreadValues({
|
|
4892
5032
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -4898,7 +5038,7 @@ function ScrollBar(_a) {
|
|
|
4898
5038
|
className
|
|
4899
5039
|
)
|
|
4900
5040
|
}, props), {
|
|
4901
|
-
children: /* @__PURE__ */
|
|
5041
|
+
children: /* @__PURE__ */ jsx46(
|
|
4902
5042
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
4903
5043
|
{
|
|
4904
5044
|
"data-slot": "scroll-area-thumb",
|
|
@@ -4912,18 +5052,18 @@ function ScrollBar(_a) {
|
|
|
4912
5052
|
// components/ui/select.tsx
|
|
4913
5053
|
import { CheckIcon as CheckIcon6, ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon } from "lucide-react";
|
|
4914
5054
|
import { Select as SelectPrimitive } from "radix-ui";
|
|
4915
|
-
import { jsx as
|
|
5055
|
+
import { jsx as jsx47, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4916
5056
|
function Select(_a) {
|
|
4917
5057
|
var props = __objRest(_a, []);
|
|
4918
|
-
return /* @__PURE__ */
|
|
5058
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Root, __spreadValues({ "data-slot": "select" }, props));
|
|
4919
5059
|
}
|
|
4920
5060
|
function SelectGroup(_a) {
|
|
4921
5061
|
var props = __objRest(_a, []);
|
|
4922
|
-
return /* @__PURE__ */
|
|
5062
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Group, __spreadValues({ "data-slot": "select-group" }, props));
|
|
4923
5063
|
}
|
|
4924
5064
|
function SelectValue(_a) {
|
|
4925
5065
|
var props = __objRest(_a, []);
|
|
4926
|
-
return /* @__PURE__ */
|
|
5066
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Value, __spreadValues({ "data-slot": "select-value" }, props));
|
|
4927
5067
|
}
|
|
4928
5068
|
function SelectTrigger(_a) {
|
|
4929
5069
|
var _b = _a, {
|
|
@@ -4937,7 +5077,7 @@ function SelectTrigger(_a) {
|
|
|
4937
5077
|
"readOnly",
|
|
4938
5078
|
"children"
|
|
4939
5079
|
]);
|
|
4940
|
-
return /* @__PURE__ */
|
|
5080
|
+
return /* @__PURE__ */ jsxs23(
|
|
4941
5081
|
SelectPrimitive.Trigger,
|
|
4942
5082
|
__spreadProps(__spreadValues({
|
|
4943
5083
|
"data-slot": "select-trigger",
|
|
@@ -4951,7 +5091,7 @@ function SelectTrigger(_a) {
|
|
|
4951
5091
|
}, props), {
|
|
4952
5092
|
children: [
|
|
4953
5093
|
children,
|
|
4954
|
-
/* @__PURE__ */
|
|
5094
|
+
/* @__PURE__ */ jsx47(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx47(ChevronDownIcon6, { className: cn("size-4", readOnly ? "opacity-30" : "opacity-50") }) })
|
|
4955
5095
|
]
|
|
4956
5096
|
})
|
|
4957
5097
|
);
|
|
@@ -4968,7 +5108,7 @@ function SelectContent(_a) {
|
|
|
4968
5108
|
"position",
|
|
4969
5109
|
"align"
|
|
4970
5110
|
]);
|
|
4971
|
-
return /* @__PURE__ */
|
|
5111
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs23(
|
|
4972
5112
|
SelectPrimitive.Content,
|
|
4973
5113
|
__spreadProps(__spreadValues({
|
|
4974
5114
|
"data-slot": "select-content",
|
|
@@ -4981,8 +5121,8 @@ function SelectContent(_a) {
|
|
|
4981
5121
|
align
|
|
4982
5122
|
}, props), {
|
|
4983
5123
|
children: [
|
|
4984
|
-
/* @__PURE__ */
|
|
4985
|
-
/* @__PURE__ */
|
|
5124
|
+
/* @__PURE__ */ jsx47(SelectScrollUpButton, {}),
|
|
5125
|
+
/* @__PURE__ */ jsx47(
|
|
4986
5126
|
SelectPrimitive.Viewport,
|
|
4987
5127
|
{
|
|
4988
5128
|
className: cn(
|
|
@@ -4992,7 +5132,7 @@ function SelectContent(_a) {
|
|
|
4992
5132
|
children
|
|
4993
5133
|
}
|
|
4994
5134
|
),
|
|
4995
|
-
/* @__PURE__ */
|
|
5135
|
+
/* @__PURE__ */ jsx47(SelectScrollDownButton, {})
|
|
4996
5136
|
]
|
|
4997
5137
|
})
|
|
4998
5138
|
) });
|
|
@@ -5003,7 +5143,7 @@ function SelectLabel(_a) {
|
|
|
5003
5143
|
} = _b, props = __objRest(_b, [
|
|
5004
5144
|
"className"
|
|
5005
5145
|
]);
|
|
5006
|
-
return /* @__PURE__ */
|
|
5146
|
+
return /* @__PURE__ */ jsx47(
|
|
5007
5147
|
SelectPrimitive.Label,
|
|
5008
5148
|
__spreadValues({
|
|
5009
5149
|
"data-slot": "select-label",
|
|
@@ -5019,7 +5159,7 @@ function SelectItem(_a) {
|
|
|
5019
5159
|
"className",
|
|
5020
5160
|
"children"
|
|
5021
5161
|
]);
|
|
5022
|
-
return /* @__PURE__ */
|
|
5162
|
+
return /* @__PURE__ */ jsxs23(
|
|
5023
5163
|
SelectPrimitive.Item,
|
|
5024
5164
|
__spreadProps(__spreadValues({
|
|
5025
5165
|
"data-slot": "select-item",
|
|
@@ -5029,15 +5169,15 @@ function SelectItem(_a) {
|
|
|
5029
5169
|
)
|
|
5030
5170
|
}, props), {
|
|
5031
5171
|
children: [
|
|
5032
|
-
/* @__PURE__ */
|
|
5172
|
+
/* @__PURE__ */ jsx47(
|
|
5033
5173
|
"span",
|
|
5034
5174
|
{
|
|
5035
5175
|
"data-slot": "select-item-indicator",
|
|
5036
5176
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
5037
|
-
children: /* @__PURE__ */
|
|
5177
|
+
children: /* @__PURE__ */ jsx47(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx47(CheckIcon6, { className: "size-4 text-primary" }) })
|
|
5038
5178
|
}
|
|
5039
5179
|
),
|
|
5040
|
-
/* @__PURE__ */
|
|
5180
|
+
/* @__PURE__ */ jsx47(SelectPrimitive.ItemText, { children })
|
|
5041
5181
|
]
|
|
5042
5182
|
})
|
|
5043
5183
|
);
|
|
@@ -5048,7 +5188,7 @@ function SelectSeparator(_a) {
|
|
|
5048
5188
|
} = _b, props = __objRest(_b, [
|
|
5049
5189
|
"className"
|
|
5050
5190
|
]);
|
|
5051
|
-
return /* @__PURE__ */
|
|
5191
|
+
return /* @__PURE__ */ jsx47(
|
|
5052
5192
|
SelectPrimitive.Separator,
|
|
5053
5193
|
__spreadValues({
|
|
5054
5194
|
"data-slot": "select-separator",
|
|
@@ -5062,7 +5202,7 @@ function SelectScrollUpButton(_a) {
|
|
|
5062
5202
|
} = _b, props = __objRest(_b, [
|
|
5063
5203
|
"className"
|
|
5064
5204
|
]);
|
|
5065
|
-
return /* @__PURE__ */
|
|
5205
|
+
return /* @__PURE__ */ jsx47(
|
|
5066
5206
|
SelectPrimitive.ScrollUpButton,
|
|
5067
5207
|
__spreadProps(__spreadValues({
|
|
5068
5208
|
"data-slot": "select-scroll-up-button",
|
|
@@ -5071,7 +5211,7 @@ function SelectScrollUpButton(_a) {
|
|
|
5071
5211
|
className
|
|
5072
5212
|
)
|
|
5073
5213
|
}, props), {
|
|
5074
|
-
children: /* @__PURE__ */
|
|
5214
|
+
children: /* @__PURE__ */ jsx47(ChevronUpIcon, { className: "size-4" })
|
|
5075
5215
|
})
|
|
5076
5216
|
);
|
|
5077
5217
|
}
|
|
@@ -5081,7 +5221,7 @@ function SelectScrollDownButton(_a) {
|
|
|
5081
5221
|
} = _b, props = __objRest(_b, [
|
|
5082
5222
|
"className"
|
|
5083
5223
|
]);
|
|
5084
|
-
return /* @__PURE__ */
|
|
5224
|
+
return /* @__PURE__ */ jsx47(
|
|
5085
5225
|
SelectPrimitive.ScrollDownButton,
|
|
5086
5226
|
__spreadProps(__spreadValues({
|
|
5087
5227
|
"data-slot": "select-scroll-down-button",
|
|
@@ -5090,7 +5230,7 @@ function SelectScrollDownButton(_a) {
|
|
|
5090
5230
|
className
|
|
5091
5231
|
)
|
|
5092
5232
|
}, props), {
|
|
5093
|
-
children: /* @__PURE__ */
|
|
5233
|
+
children: /* @__PURE__ */ jsx47(ChevronDownIcon6, { className: "size-4" })
|
|
5094
5234
|
})
|
|
5095
5235
|
);
|
|
5096
5236
|
}
|
|
@@ -5098,22 +5238,22 @@ function SelectScrollDownButton(_a) {
|
|
|
5098
5238
|
// components/ui/sheet.tsx
|
|
5099
5239
|
import { XIcon as XIcon3 } from "lucide-react";
|
|
5100
5240
|
import { Dialog as SheetPrimitive } from "radix-ui";
|
|
5101
|
-
import { jsx as
|
|
5241
|
+
import { jsx as jsx48, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5102
5242
|
function Sheet(_a) {
|
|
5103
5243
|
var props = __objRest(_a, []);
|
|
5104
|
-
return /* @__PURE__ */
|
|
5244
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Root, __spreadValues({ "data-slot": "sheet" }, props));
|
|
5105
5245
|
}
|
|
5106
5246
|
function SheetTrigger(_a) {
|
|
5107
5247
|
var props = __objRest(_a, []);
|
|
5108
|
-
return /* @__PURE__ */
|
|
5248
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Trigger, __spreadValues({ "data-slot": "sheet-trigger" }, props));
|
|
5109
5249
|
}
|
|
5110
5250
|
function SheetClose(_a) {
|
|
5111
5251
|
var props = __objRest(_a, []);
|
|
5112
|
-
return /* @__PURE__ */
|
|
5252
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Close, __spreadValues({ "data-slot": "sheet-close" }, props));
|
|
5113
5253
|
}
|
|
5114
5254
|
function SheetPortal(_a) {
|
|
5115
5255
|
var props = __objRest(_a, []);
|
|
5116
|
-
return /* @__PURE__ */
|
|
5256
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Portal, __spreadValues({ "data-slot": "sheet-portal" }, props));
|
|
5117
5257
|
}
|
|
5118
5258
|
function SheetOverlay(_a) {
|
|
5119
5259
|
var _b = _a, {
|
|
@@ -5121,7 +5261,7 @@ function SheetOverlay(_a) {
|
|
|
5121
5261
|
} = _b, props = __objRest(_b, [
|
|
5122
5262
|
"className"
|
|
5123
5263
|
]);
|
|
5124
|
-
return /* @__PURE__ */
|
|
5264
|
+
return /* @__PURE__ */ jsx48(
|
|
5125
5265
|
SheetPrimitive.Overlay,
|
|
5126
5266
|
__spreadValues({
|
|
5127
5267
|
"data-slot": "sheet-overlay",
|
|
@@ -5144,9 +5284,9 @@ function SheetContent(_a) {
|
|
|
5144
5284
|
"side",
|
|
5145
5285
|
"showCloseButton"
|
|
5146
5286
|
]);
|
|
5147
|
-
return /* @__PURE__ */
|
|
5148
|
-
/* @__PURE__ */
|
|
5149
|
-
/* @__PURE__ */
|
|
5287
|
+
return /* @__PURE__ */ jsxs24(SheetPortal, { children: [
|
|
5288
|
+
/* @__PURE__ */ jsx48(SheetOverlay, {}),
|
|
5289
|
+
/* @__PURE__ */ jsxs24(
|
|
5150
5290
|
SheetPrimitive.Content,
|
|
5151
5291
|
__spreadProps(__spreadValues({
|
|
5152
5292
|
"data-slot": "sheet-content",
|
|
@@ -5161,9 +5301,9 @@ function SheetContent(_a) {
|
|
|
5161
5301
|
}, props), {
|
|
5162
5302
|
children: [
|
|
5163
5303
|
children,
|
|
5164
|
-
showCloseButton && /* @__PURE__ */
|
|
5165
|
-
/* @__PURE__ */
|
|
5166
|
-
/* @__PURE__ */
|
|
5304
|
+
showCloseButton && /* @__PURE__ */ jsxs24(SheetPrimitive.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: [
|
|
5305
|
+
/* @__PURE__ */ jsx48(XIcon3, { className: "size-4" }),
|
|
5306
|
+
/* @__PURE__ */ jsx48("span", { className: "sr-only", children: "Close" })
|
|
5167
5307
|
] })
|
|
5168
5308
|
]
|
|
5169
5309
|
})
|
|
@@ -5172,7 +5312,7 @@ function SheetContent(_a) {
|
|
|
5172
5312
|
}
|
|
5173
5313
|
function SheetHeader(_a) {
|
|
5174
5314
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5175
|
-
return /* @__PURE__ */
|
|
5315
|
+
return /* @__PURE__ */ jsx48(
|
|
5176
5316
|
"div",
|
|
5177
5317
|
__spreadValues({
|
|
5178
5318
|
"data-slot": "sheet-header",
|
|
@@ -5182,7 +5322,7 @@ function SheetHeader(_a) {
|
|
|
5182
5322
|
}
|
|
5183
5323
|
function SheetFooter(_a) {
|
|
5184
5324
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5185
|
-
return /* @__PURE__ */
|
|
5325
|
+
return /* @__PURE__ */ jsx48(
|
|
5186
5326
|
"div",
|
|
5187
5327
|
__spreadValues({
|
|
5188
5328
|
"data-slot": "sheet-footer",
|
|
@@ -5196,7 +5336,7 @@ function SheetTitle(_a) {
|
|
|
5196
5336
|
} = _b, props = __objRest(_b, [
|
|
5197
5337
|
"className"
|
|
5198
5338
|
]);
|
|
5199
|
-
return /* @__PURE__ */
|
|
5339
|
+
return /* @__PURE__ */ jsx48(
|
|
5200
5340
|
SheetPrimitive.Title,
|
|
5201
5341
|
__spreadValues({
|
|
5202
5342
|
"data-slot": "sheet-title",
|
|
@@ -5210,7 +5350,7 @@ function SheetDescription(_a) {
|
|
|
5210
5350
|
} = _b, props = __objRest(_b, [
|
|
5211
5351
|
"className"
|
|
5212
5352
|
]);
|
|
5213
|
-
return /* @__PURE__ */
|
|
5353
|
+
return /* @__PURE__ */ jsx48(
|
|
5214
5354
|
SheetPrimitive.Description,
|
|
5215
5355
|
__spreadValues({
|
|
5216
5356
|
"data-slot": "sheet-description",
|
|
@@ -5220,17 +5360,17 @@ function SheetDescription(_a) {
|
|
|
5220
5360
|
}
|
|
5221
5361
|
|
|
5222
5362
|
// components/ui/sidebar.tsx
|
|
5223
|
-
import * as
|
|
5363
|
+
import * as React12 from "react";
|
|
5224
5364
|
import { cva as cva12 } from "class-variance-authority";
|
|
5225
5365
|
import { PanelLeftIcon } from "lucide-react";
|
|
5226
5366
|
import { Slot as Slot8 } from "radix-ui";
|
|
5227
5367
|
|
|
5228
5368
|
// hooks/use-mobile.ts
|
|
5229
|
-
import * as
|
|
5369
|
+
import * as React10 from "react";
|
|
5230
5370
|
var MOBILE_BREAKPOINT = 768;
|
|
5231
5371
|
function useIsMobile() {
|
|
5232
|
-
const [isMobile, setIsMobile] =
|
|
5233
|
-
|
|
5372
|
+
const [isMobile, setIsMobile] = React10.useState(void 0);
|
|
5373
|
+
React10.useEffect(() => {
|
|
5234
5374
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
5235
5375
|
const onChange = () => {
|
|
5236
5376
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -5243,10 +5383,10 @@ function useIsMobile() {
|
|
|
5243
5383
|
}
|
|
5244
5384
|
|
|
5245
5385
|
// components/ui/skeleton.tsx
|
|
5246
|
-
import { jsx as
|
|
5386
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
5247
5387
|
function Skeleton(_a) {
|
|
5248
5388
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5249
|
-
return /* @__PURE__ */
|
|
5389
|
+
return /* @__PURE__ */ jsx49(
|
|
5250
5390
|
"div",
|
|
5251
5391
|
__spreadValues({
|
|
5252
5392
|
"data-slot": "skeleton",
|
|
@@ -5256,17 +5396,17 @@ function Skeleton(_a) {
|
|
|
5256
5396
|
}
|
|
5257
5397
|
|
|
5258
5398
|
// components/ui/tooltip.tsx
|
|
5259
|
-
import * as
|
|
5399
|
+
import * as React11 from "react";
|
|
5260
5400
|
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
5261
|
-
import { jsx as
|
|
5262
|
-
var TooltipModeContext =
|
|
5401
|
+
import { jsx as jsx50, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5402
|
+
var TooltipModeContext = React11.createContext("tooltip");
|
|
5263
5403
|
function TooltipProvider(_a) {
|
|
5264
5404
|
var _b = _a, {
|
|
5265
5405
|
delayDuration = 0
|
|
5266
5406
|
} = _b, props = __objRest(_b, [
|
|
5267
5407
|
"delayDuration"
|
|
5268
5408
|
]);
|
|
5269
|
-
return /* @__PURE__ */
|
|
5409
|
+
return /* @__PURE__ */ jsx50(
|
|
5270
5410
|
TooltipPrimitive.Provider,
|
|
5271
5411
|
__spreadValues({
|
|
5272
5412
|
"data-slot": "tooltip-provider",
|
|
@@ -5283,9 +5423,9 @@ function Tooltip2(_a) {
|
|
|
5283
5423
|
const isMobile = useIsMobile();
|
|
5284
5424
|
const mode = isMobile ? "drawer" : "tooltip";
|
|
5285
5425
|
if (mode === "drawer") {
|
|
5286
|
-
return /* @__PURE__ */
|
|
5426
|
+
return /* @__PURE__ */ jsx50(TooltipModeContext.Provider, { value: "drawer", children: /* @__PURE__ */ jsx50(Drawer, { children }) });
|
|
5287
5427
|
}
|
|
5288
|
-
return /* @__PURE__ */
|
|
5428
|
+
return /* @__PURE__ */ jsx50(TooltipModeContext.Provider, { value: "tooltip", children: /* @__PURE__ */ jsx50(TooltipPrimitive.Root, __spreadProps(__spreadValues({ "data-slot": "tooltip" }, props), { children })) });
|
|
5289
5429
|
}
|
|
5290
5430
|
function TooltipTrigger(_a) {
|
|
5291
5431
|
var _b = _a, {
|
|
@@ -5293,11 +5433,11 @@ function TooltipTrigger(_a) {
|
|
|
5293
5433
|
} = _b, props = __objRest(_b, [
|
|
5294
5434
|
"children"
|
|
5295
5435
|
]);
|
|
5296
|
-
const mode =
|
|
5436
|
+
const mode = React11.useContext(TooltipModeContext);
|
|
5297
5437
|
if (mode === "drawer") {
|
|
5298
|
-
return /* @__PURE__ */
|
|
5438
|
+
return /* @__PURE__ */ jsx50(DrawerTrigger, __spreadProps(__spreadValues({ "data-slot": "tooltip-trigger" }, props), { children }));
|
|
5299
5439
|
}
|
|
5300
|
-
return /* @__PURE__ */
|
|
5440
|
+
return /* @__PURE__ */ jsx50(TooltipPrimitive.Trigger, __spreadProps(__spreadValues({ "data-slot": "tooltip-trigger" }, props), { children }));
|
|
5301
5441
|
}
|
|
5302
5442
|
function TooltipContent(_a) {
|
|
5303
5443
|
var _b = _a, {
|
|
@@ -5315,17 +5455,17 @@ function TooltipContent(_a) {
|
|
|
5315
5455
|
"closeLabel",
|
|
5316
5456
|
"children"
|
|
5317
5457
|
]);
|
|
5318
|
-
const mode =
|
|
5458
|
+
const mode = React11.useContext(TooltipModeContext);
|
|
5319
5459
|
if (mode === "drawer") {
|
|
5320
|
-
return /* @__PURE__ */
|
|
5321
|
-
/* @__PURE__ */
|
|
5322
|
-
/* @__PURE__ */
|
|
5323
|
-
/* @__PURE__ */
|
|
5460
|
+
return /* @__PURE__ */ jsxs25(DrawerContent, { "data-slot": "tooltip-content", "data-variant": variant, children: [
|
|
5461
|
+
/* @__PURE__ */ jsx50(DrawerHeader, { children: /* @__PURE__ */ jsx50(DrawerTitle, { children: title }) }),
|
|
5462
|
+
/* @__PURE__ */ jsx50("div", { className: cn("p-4 text-sm text-on-subtle", className), children }),
|
|
5463
|
+
/* @__PURE__ */ jsx50(DrawerFooter, { children: /* @__PURE__ */ jsx50(DrawerClose, { asChild: true, children: /* @__PURE__ */ jsx50(Button, { variant: "primary", size: "md", children: closeLabel }) }) })
|
|
5324
5464
|
] });
|
|
5325
5465
|
}
|
|
5326
5466
|
const surfaceClasses = variant === "inverse" ? "bg-prominent text-on-prominent shadow-sm" : "bg-primary text-on-primary";
|
|
5327
5467
|
const arrowClasses = variant === "inverse" ? "fill-prominent" : "fill-primary";
|
|
5328
|
-
return /* @__PURE__ */
|
|
5468
|
+
return /* @__PURE__ */ jsx50(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs25(
|
|
5329
5469
|
TooltipPrimitive.Content,
|
|
5330
5470
|
__spreadProps(__spreadValues({
|
|
5331
5471
|
"data-slot": "tooltip-content",
|
|
@@ -5339,23 +5479,23 @@ function TooltipContent(_a) {
|
|
|
5339
5479
|
}, props), {
|
|
5340
5480
|
children: [
|
|
5341
5481
|
children,
|
|
5342
|
-
/* @__PURE__ */
|
|
5482
|
+
/* @__PURE__ */ jsx50(TooltipPrimitive.Arrow, { className: arrowClasses })
|
|
5343
5483
|
]
|
|
5344
5484
|
})
|
|
5345
5485
|
) });
|
|
5346
5486
|
}
|
|
5347
5487
|
|
|
5348
5488
|
// components/ui/sidebar.tsx
|
|
5349
|
-
import { jsx as
|
|
5489
|
+
import { jsx as jsx51, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5350
5490
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
5351
5491
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
5352
5492
|
var SIDEBAR_WIDTH = "16rem";
|
|
5353
5493
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
5354
5494
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
5355
5495
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
5356
|
-
var SidebarContext =
|
|
5496
|
+
var SidebarContext = React12.createContext(null);
|
|
5357
5497
|
function useSidebar() {
|
|
5358
|
-
const context =
|
|
5498
|
+
const context = React12.useContext(SidebarContext);
|
|
5359
5499
|
if (!context) {
|
|
5360
5500
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
5361
5501
|
}
|
|
@@ -5378,10 +5518,10 @@ function SidebarProvider(_a) {
|
|
|
5378
5518
|
"children"
|
|
5379
5519
|
]);
|
|
5380
5520
|
const isMobile = useIsMobile();
|
|
5381
|
-
const [openMobile, setOpenMobile] =
|
|
5382
|
-
const [_open, _setOpen] =
|
|
5521
|
+
const [openMobile, setOpenMobile] = React12.useState(false);
|
|
5522
|
+
const [_open, _setOpen] = React12.useState(defaultOpen);
|
|
5383
5523
|
const open = openProp != null ? openProp : _open;
|
|
5384
|
-
const setOpen =
|
|
5524
|
+
const setOpen = React12.useCallback(
|
|
5385
5525
|
(value) => {
|
|
5386
5526
|
const openState = typeof value === "function" ? value(open) : value;
|
|
5387
5527
|
if (setOpenProp) {
|
|
@@ -5393,10 +5533,10 @@ function SidebarProvider(_a) {
|
|
|
5393
5533
|
},
|
|
5394
5534
|
[setOpenProp, open]
|
|
5395
5535
|
);
|
|
5396
|
-
const toggleSidebar =
|
|
5536
|
+
const toggleSidebar = React12.useCallback(() => {
|
|
5397
5537
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
5398
5538
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
5399
|
-
|
|
5539
|
+
React12.useEffect(() => {
|
|
5400
5540
|
const handleKeyDown = (event) => {
|
|
5401
5541
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
5402
5542
|
event.preventDefault();
|
|
@@ -5407,7 +5547,7 @@ function SidebarProvider(_a) {
|
|
|
5407
5547
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
5408
5548
|
}, [toggleSidebar]);
|
|
5409
5549
|
const state = open ? "expanded" : "collapsed";
|
|
5410
|
-
const contextValue =
|
|
5550
|
+
const contextValue = React12.useMemo(
|
|
5411
5551
|
() => ({
|
|
5412
5552
|
state,
|
|
5413
5553
|
open,
|
|
@@ -5419,7 +5559,7 @@ function SidebarProvider(_a) {
|
|
|
5419
5559
|
}),
|
|
5420
5560
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
5421
5561
|
);
|
|
5422
|
-
return /* @__PURE__ */
|
|
5562
|
+
return /* @__PURE__ */ jsx51(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx51(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx51(
|
|
5423
5563
|
"div",
|
|
5424
5564
|
__spreadProps(__spreadValues({
|
|
5425
5565
|
"data-slot": "sidebar-wrapper",
|
|
@@ -5452,7 +5592,7 @@ function Sidebar(_a) {
|
|
|
5452
5592
|
]);
|
|
5453
5593
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
5454
5594
|
if (collapsible === "none") {
|
|
5455
|
-
return /* @__PURE__ */
|
|
5595
|
+
return /* @__PURE__ */ jsx51(
|
|
5456
5596
|
"div",
|
|
5457
5597
|
__spreadProps(__spreadValues({
|
|
5458
5598
|
"data-slot": "sidebar",
|
|
@@ -5466,7 +5606,7 @@ function Sidebar(_a) {
|
|
|
5466
5606
|
);
|
|
5467
5607
|
}
|
|
5468
5608
|
if (isMobile) {
|
|
5469
|
-
return /* @__PURE__ */
|
|
5609
|
+
return /* @__PURE__ */ jsx51(Sheet, __spreadProps(__spreadValues({ open: openMobile, onOpenChange: setOpenMobile }, props), { children: /* @__PURE__ */ jsxs26(
|
|
5470
5610
|
SheetContent,
|
|
5471
5611
|
{
|
|
5472
5612
|
"data-sidebar": "sidebar",
|
|
@@ -5478,16 +5618,16 @@ function Sidebar(_a) {
|
|
|
5478
5618
|
},
|
|
5479
5619
|
side,
|
|
5480
5620
|
children: [
|
|
5481
|
-
/* @__PURE__ */
|
|
5482
|
-
/* @__PURE__ */
|
|
5483
|
-
/* @__PURE__ */
|
|
5621
|
+
/* @__PURE__ */ jsxs26(SheetHeader, { className: "sr-only", children: [
|
|
5622
|
+
/* @__PURE__ */ jsx51(SheetTitle, { children: "Sidebar" }),
|
|
5623
|
+
/* @__PURE__ */ jsx51(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
5484
5624
|
] }),
|
|
5485
|
-
/* @__PURE__ */
|
|
5625
|
+
/* @__PURE__ */ jsx51("div", { className: "flex h-full w-full flex-col", children })
|
|
5486
5626
|
]
|
|
5487
5627
|
}
|
|
5488
5628
|
) }));
|
|
5489
5629
|
}
|
|
5490
|
-
return /* @__PURE__ */
|
|
5630
|
+
return /* @__PURE__ */ jsxs26(
|
|
5491
5631
|
"div",
|
|
5492
5632
|
{
|
|
5493
5633
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -5497,7 +5637,7 @@ function Sidebar(_a) {
|
|
|
5497
5637
|
"data-side": side,
|
|
5498
5638
|
"data-slot": "sidebar",
|
|
5499
5639
|
children: [
|
|
5500
|
-
/* @__PURE__ */
|
|
5640
|
+
/* @__PURE__ */ jsx51(
|
|
5501
5641
|
"div",
|
|
5502
5642
|
{
|
|
5503
5643
|
"data-slot": "sidebar-gap",
|
|
@@ -5509,7 +5649,7 @@ function Sidebar(_a) {
|
|
|
5509
5649
|
)
|
|
5510
5650
|
}
|
|
5511
5651
|
),
|
|
5512
|
-
/* @__PURE__ */
|
|
5652
|
+
/* @__PURE__ */ jsx51(
|
|
5513
5653
|
"div",
|
|
5514
5654
|
__spreadProps(__spreadValues({
|
|
5515
5655
|
"data-slot": "sidebar-container",
|
|
@@ -5521,7 +5661,7 @@ function Sidebar(_a) {
|
|
|
5521
5661
|
className
|
|
5522
5662
|
)
|
|
5523
5663
|
}, props), {
|
|
5524
|
-
children: /* @__PURE__ */
|
|
5664
|
+
children: /* @__PURE__ */ jsx51(
|
|
5525
5665
|
"div",
|
|
5526
5666
|
{
|
|
5527
5667
|
"data-sidebar": "sidebar",
|
|
@@ -5545,7 +5685,7 @@ function SidebarTrigger(_a) {
|
|
|
5545
5685
|
"onClick"
|
|
5546
5686
|
]);
|
|
5547
5687
|
const { toggleSidebar } = useSidebar();
|
|
5548
|
-
return /* @__PURE__ */
|
|
5688
|
+
return /* @__PURE__ */ jsxs26(
|
|
5549
5689
|
Button,
|
|
5550
5690
|
__spreadProps(__spreadValues({
|
|
5551
5691
|
"data-sidebar": "trigger",
|
|
@@ -5559,8 +5699,8 @@ function SidebarTrigger(_a) {
|
|
|
5559
5699
|
}
|
|
5560
5700
|
}, props), {
|
|
5561
5701
|
children: [
|
|
5562
|
-
/* @__PURE__ */
|
|
5563
|
-
/* @__PURE__ */
|
|
5702
|
+
/* @__PURE__ */ jsx51(PanelLeftIcon, {}),
|
|
5703
|
+
/* @__PURE__ */ jsx51("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
5564
5704
|
]
|
|
5565
5705
|
})
|
|
5566
5706
|
);
|
|
@@ -5568,7 +5708,7 @@ function SidebarTrigger(_a) {
|
|
|
5568
5708
|
function SidebarRail(_a) {
|
|
5569
5709
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5570
5710
|
const { toggleSidebar } = useSidebar();
|
|
5571
|
-
return /* @__PURE__ */
|
|
5711
|
+
return /* @__PURE__ */ jsx51(
|
|
5572
5712
|
"button",
|
|
5573
5713
|
__spreadValues({
|
|
5574
5714
|
"data-sidebar": "rail",
|
|
@@ -5591,7 +5731,7 @@ function SidebarRail(_a) {
|
|
|
5591
5731
|
}
|
|
5592
5732
|
function SidebarInset(_a) {
|
|
5593
5733
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5594
|
-
return /* @__PURE__ */
|
|
5734
|
+
return /* @__PURE__ */ jsx51(
|
|
5595
5735
|
"main",
|
|
5596
5736
|
__spreadValues({
|
|
5597
5737
|
"data-slot": "sidebar-inset",
|
|
@@ -5609,7 +5749,7 @@ function SidebarInput(_a) {
|
|
|
5609
5749
|
} = _b, props = __objRest(_b, [
|
|
5610
5750
|
"className"
|
|
5611
5751
|
]);
|
|
5612
|
-
return /* @__PURE__ */
|
|
5752
|
+
return /* @__PURE__ */ jsx51(
|
|
5613
5753
|
Input,
|
|
5614
5754
|
__spreadValues({
|
|
5615
5755
|
"data-slot": "sidebar-input",
|
|
@@ -5620,7 +5760,7 @@ function SidebarInput(_a) {
|
|
|
5620
5760
|
}
|
|
5621
5761
|
function SidebarHeader(_a) {
|
|
5622
5762
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5623
|
-
return /* @__PURE__ */
|
|
5763
|
+
return /* @__PURE__ */ jsx51(
|
|
5624
5764
|
"div",
|
|
5625
5765
|
__spreadValues({
|
|
5626
5766
|
"data-slot": "sidebar-header",
|
|
@@ -5631,7 +5771,7 @@ function SidebarHeader(_a) {
|
|
|
5631
5771
|
}
|
|
5632
5772
|
function SidebarFooter(_a) {
|
|
5633
5773
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5634
|
-
return /* @__PURE__ */
|
|
5774
|
+
return /* @__PURE__ */ jsx51(
|
|
5635
5775
|
"div",
|
|
5636
5776
|
__spreadValues({
|
|
5637
5777
|
"data-slot": "sidebar-footer",
|
|
@@ -5646,7 +5786,7 @@ function SidebarSeparator(_a) {
|
|
|
5646
5786
|
} = _b, props = __objRest(_b, [
|
|
5647
5787
|
"className"
|
|
5648
5788
|
]);
|
|
5649
|
-
return /* @__PURE__ */
|
|
5789
|
+
return /* @__PURE__ */ jsx51(
|
|
5650
5790
|
Separator,
|
|
5651
5791
|
__spreadValues({
|
|
5652
5792
|
"data-slot": "sidebar-separator",
|
|
@@ -5657,7 +5797,7 @@ function SidebarSeparator(_a) {
|
|
|
5657
5797
|
}
|
|
5658
5798
|
function SidebarContent(_a) {
|
|
5659
5799
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5660
|
-
return /* @__PURE__ */
|
|
5800
|
+
return /* @__PURE__ */ jsx51(
|
|
5661
5801
|
"div",
|
|
5662
5802
|
__spreadValues({
|
|
5663
5803
|
"data-slot": "sidebar-content",
|
|
@@ -5671,7 +5811,7 @@ function SidebarContent(_a) {
|
|
|
5671
5811
|
}
|
|
5672
5812
|
function SidebarGroup(_a) {
|
|
5673
5813
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5674
|
-
return /* @__PURE__ */
|
|
5814
|
+
return /* @__PURE__ */ jsx51(
|
|
5675
5815
|
"div",
|
|
5676
5816
|
__spreadValues({
|
|
5677
5817
|
"data-slot": "sidebar-group",
|
|
@@ -5689,7 +5829,7 @@ function SidebarGroupLabel(_a) {
|
|
|
5689
5829
|
"asChild"
|
|
5690
5830
|
]);
|
|
5691
5831
|
const Comp = asChild ? Slot8.Root : "div";
|
|
5692
|
-
return /* @__PURE__ */
|
|
5832
|
+
return /* @__PURE__ */ jsx51(
|
|
5693
5833
|
Comp,
|
|
5694
5834
|
__spreadValues({
|
|
5695
5835
|
"data-slot": "sidebar-group-label",
|
|
@@ -5711,7 +5851,7 @@ function SidebarGroupAction(_a) {
|
|
|
5711
5851
|
"asChild"
|
|
5712
5852
|
]);
|
|
5713
5853
|
const Comp = asChild ? Slot8.Root : "button";
|
|
5714
|
-
return /* @__PURE__ */
|
|
5854
|
+
return /* @__PURE__ */ jsx51(
|
|
5715
5855
|
Comp,
|
|
5716
5856
|
__spreadValues({
|
|
5717
5857
|
"data-slot": "sidebar-group-action",
|
|
@@ -5732,7 +5872,7 @@ function SidebarGroupContent(_a) {
|
|
|
5732
5872
|
} = _b, props = __objRest(_b, [
|
|
5733
5873
|
"className"
|
|
5734
5874
|
]);
|
|
5735
|
-
return /* @__PURE__ */
|
|
5875
|
+
return /* @__PURE__ */ jsx51(
|
|
5736
5876
|
"div",
|
|
5737
5877
|
__spreadValues({
|
|
5738
5878
|
"data-slot": "sidebar-group-content",
|
|
@@ -5743,7 +5883,7 @@ function SidebarGroupContent(_a) {
|
|
|
5743
5883
|
}
|
|
5744
5884
|
function SidebarMenu(_a) {
|
|
5745
5885
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5746
|
-
return /* @__PURE__ */
|
|
5886
|
+
return /* @__PURE__ */ jsx51(
|
|
5747
5887
|
"ul",
|
|
5748
5888
|
__spreadValues({
|
|
5749
5889
|
"data-slot": "sidebar-menu",
|
|
@@ -5754,7 +5894,7 @@ function SidebarMenu(_a) {
|
|
|
5754
5894
|
}
|
|
5755
5895
|
function SidebarMenuItem(_a) {
|
|
5756
5896
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5757
|
-
return /* @__PURE__ */
|
|
5897
|
+
return /* @__PURE__ */ jsx51(
|
|
5758
5898
|
"li",
|
|
5759
5899
|
__spreadValues({
|
|
5760
5900
|
"data-slot": "sidebar-menu-item",
|
|
@@ -5801,7 +5941,7 @@ function SidebarMenuButton(_a) {
|
|
|
5801
5941
|
]);
|
|
5802
5942
|
const Comp = asChild ? Slot8.Root : "button";
|
|
5803
5943
|
const { isMobile, state } = useSidebar();
|
|
5804
|
-
const button = /* @__PURE__ */
|
|
5944
|
+
const button = /* @__PURE__ */ jsx51(
|
|
5805
5945
|
Comp,
|
|
5806
5946
|
__spreadValues({
|
|
5807
5947
|
"data-slot": "sidebar-menu-button",
|
|
@@ -5819,9 +5959,9 @@ function SidebarMenuButton(_a) {
|
|
|
5819
5959
|
children: tooltip
|
|
5820
5960
|
};
|
|
5821
5961
|
}
|
|
5822
|
-
return /* @__PURE__ */
|
|
5823
|
-
/* @__PURE__ */
|
|
5824
|
-
/* @__PURE__ */
|
|
5962
|
+
return /* @__PURE__ */ jsxs26(Tooltip2, { children: [
|
|
5963
|
+
/* @__PURE__ */ jsx51(TooltipTrigger, { asChild: true, children: button }),
|
|
5964
|
+
/* @__PURE__ */ jsx51(
|
|
5825
5965
|
TooltipContent,
|
|
5826
5966
|
__spreadValues({
|
|
5827
5967
|
side: "right",
|
|
@@ -5842,7 +5982,7 @@ function SidebarMenuAction(_a) {
|
|
|
5842
5982
|
"showOnHover"
|
|
5843
5983
|
]);
|
|
5844
5984
|
const Comp = asChild ? Slot8.Root : "button";
|
|
5845
|
-
return /* @__PURE__ */
|
|
5985
|
+
return /* @__PURE__ */ jsx51(
|
|
5846
5986
|
Comp,
|
|
5847
5987
|
__spreadValues({
|
|
5848
5988
|
"data-slot": "sidebar-menu-action",
|
|
@@ -5867,7 +6007,7 @@ function SidebarMenuBadge(_a) {
|
|
|
5867
6007
|
} = _b, props = __objRest(_b, [
|
|
5868
6008
|
"className"
|
|
5869
6009
|
]);
|
|
5870
|
-
return /* @__PURE__ */
|
|
6010
|
+
return /* @__PURE__ */ jsx51(
|
|
5871
6011
|
"div",
|
|
5872
6012
|
__spreadValues({
|
|
5873
6013
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -5893,7 +6033,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5893
6033
|
"showIcon"
|
|
5894
6034
|
]);
|
|
5895
6035
|
const width = "70%";
|
|
5896
|
-
return /* @__PURE__ */
|
|
6036
|
+
return /* @__PURE__ */ jsxs26(
|
|
5897
6037
|
"div",
|
|
5898
6038
|
__spreadProps(__spreadValues({
|
|
5899
6039
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -5901,14 +6041,14 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5901
6041
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className)
|
|
5902
6042
|
}, props), {
|
|
5903
6043
|
children: [
|
|
5904
|
-
showIcon && /* @__PURE__ */
|
|
6044
|
+
showIcon && /* @__PURE__ */ jsx51(
|
|
5905
6045
|
Skeleton,
|
|
5906
6046
|
{
|
|
5907
6047
|
className: "size-4 rounded-md",
|
|
5908
6048
|
"data-sidebar": "menu-skeleton-icon"
|
|
5909
6049
|
}
|
|
5910
6050
|
),
|
|
5911
|
-
/* @__PURE__ */
|
|
6051
|
+
/* @__PURE__ */ jsx51(
|
|
5912
6052
|
Skeleton,
|
|
5913
6053
|
{
|
|
5914
6054
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -5924,7 +6064,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5924
6064
|
}
|
|
5925
6065
|
function SidebarMenuSub(_a) {
|
|
5926
6066
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5927
|
-
return /* @__PURE__ */
|
|
6067
|
+
return /* @__PURE__ */ jsx51(
|
|
5928
6068
|
"ul",
|
|
5929
6069
|
__spreadValues({
|
|
5930
6070
|
"data-slot": "sidebar-menu-sub",
|
|
@@ -5943,7 +6083,7 @@ function SidebarMenuSubItem(_a) {
|
|
|
5943
6083
|
} = _b, props = __objRest(_b, [
|
|
5944
6084
|
"className"
|
|
5945
6085
|
]);
|
|
5946
|
-
return /* @__PURE__ */
|
|
6086
|
+
return /* @__PURE__ */ jsx51(
|
|
5947
6087
|
"li",
|
|
5948
6088
|
__spreadValues({
|
|
5949
6089
|
"data-slot": "sidebar-menu-sub-item",
|
|
@@ -5965,7 +6105,7 @@ function SidebarMenuSubButton(_a) {
|
|
|
5965
6105
|
"className"
|
|
5966
6106
|
]);
|
|
5967
6107
|
const Comp = asChild ? Slot8.Root : "a";
|
|
5968
|
-
return /* @__PURE__ */
|
|
6108
|
+
return /* @__PURE__ */ jsx51(
|
|
5969
6109
|
Comp,
|
|
5970
6110
|
__spreadValues({
|
|
5971
6111
|
"data-slot": "sidebar-menu-sub-button",
|
|
@@ -5985,9 +6125,9 @@ function SidebarMenuSubButton(_a) {
|
|
|
5985
6125
|
}
|
|
5986
6126
|
|
|
5987
6127
|
// components/ui/slider.tsx
|
|
5988
|
-
import * as
|
|
6128
|
+
import * as React13 from "react";
|
|
5989
6129
|
import { Slider as SliderPrimitive } from "radix-ui";
|
|
5990
|
-
import { jsx as
|
|
6130
|
+
import { jsx as jsx52, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5991
6131
|
function Slider(_a) {
|
|
5992
6132
|
var _b = _a, {
|
|
5993
6133
|
className,
|
|
@@ -6002,11 +6142,11 @@ function Slider(_a) {
|
|
|
6002
6142
|
"min",
|
|
6003
6143
|
"max"
|
|
6004
6144
|
]);
|
|
6005
|
-
const _values =
|
|
6145
|
+
const _values = React13.useMemo(
|
|
6006
6146
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
6007
6147
|
[value, defaultValue, min, max]
|
|
6008
6148
|
);
|
|
6009
|
-
return /* @__PURE__ */
|
|
6149
|
+
return /* @__PURE__ */ jsxs27(
|
|
6010
6150
|
SliderPrimitive.Root,
|
|
6011
6151
|
__spreadProps(__spreadValues({
|
|
6012
6152
|
"data-slot": "slider",
|
|
@@ -6020,14 +6160,14 @@ function Slider(_a) {
|
|
|
6020
6160
|
)
|
|
6021
6161
|
}, props), {
|
|
6022
6162
|
children: [
|
|
6023
|
-
/* @__PURE__ */
|
|
6163
|
+
/* @__PURE__ */ jsx52(
|
|
6024
6164
|
SliderPrimitive.Track,
|
|
6025
6165
|
{
|
|
6026
6166
|
"data-slot": "slider-track",
|
|
6027
6167
|
className: cn(
|
|
6028
6168
|
"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"
|
|
6029
6169
|
),
|
|
6030
|
-
children: /* @__PURE__ */
|
|
6170
|
+
children: /* @__PURE__ */ jsx52(
|
|
6031
6171
|
SliderPrimitive.Range,
|
|
6032
6172
|
{
|
|
6033
6173
|
"data-slot": "slider-range",
|
|
@@ -6038,7 +6178,7 @@ function Slider(_a) {
|
|
|
6038
6178
|
)
|
|
6039
6179
|
}
|
|
6040
6180
|
),
|
|
6041
|
-
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */
|
|
6181
|
+
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ jsx52(
|
|
6042
6182
|
SliderPrimitive.Thumb,
|
|
6043
6183
|
{
|
|
6044
6184
|
"data-slot": "slider-thumb",
|
|
@@ -6061,12 +6201,12 @@ import {
|
|
|
6061
6201
|
} from "lucide-react";
|
|
6062
6202
|
import { useTheme } from "next-themes";
|
|
6063
6203
|
import { Toaster as Sonner, toast } from "sonner";
|
|
6064
|
-
import { jsx as
|
|
6204
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
6065
6205
|
var Toaster = (_a) => {
|
|
6066
6206
|
var props = __objRest(_a, []);
|
|
6067
6207
|
const { theme = "system" } = useTheme();
|
|
6068
6208
|
const isMobile = useIsMobile();
|
|
6069
|
-
return /* @__PURE__ */
|
|
6209
|
+
return /* @__PURE__ */ jsx53(
|
|
6070
6210
|
Sonner,
|
|
6071
6211
|
__spreadValues({
|
|
6072
6212
|
theme,
|
|
@@ -6075,11 +6215,11 @@ var Toaster = (_a) => {
|
|
|
6075
6215
|
visibleToasts: isMobile ? 1 : 3,
|
|
6076
6216
|
duration: 4e3,
|
|
6077
6217
|
icons: {
|
|
6078
|
-
success: /* @__PURE__ */
|
|
6079
|
-
info: /* @__PURE__ */
|
|
6080
|
-
warning: /* @__PURE__ */
|
|
6081
|
-
error: /* @__PURE__ */
|
|
6082
|
-
loading: /* @__PURE__ */
|
|
6218
|
+
success: /* @__PURE__ */ jsx53(CircleCheckIcon, { className: "size-4" }),
|
|
6219
|
+
info: /* @__PURE__ */ jsx53(InfoIcon, { className: "size-4" }),
|
|
6220
|
+
warning: /* @__PURE__ */ jsx53(TriangleAlertIcon, { className: "size-4" }),
|
|
6221
|
+
error: /* @__PURE__ */ jsx53(OctagonXIcon, { className: "size-4" }),
|
|
6222
|
+
loading: /* @__PURE__ */ jsx53(Loader2Icon, { className: "size-4 animate-spin" })
|
|
6083
6223
|
},
|
|
6084
6224
|
toastOptions: {
|
|
6085
6225
|
classNames: {
|
|
@@ -6100,9 +6240,9 @@ var Toaster = (_a) => {
|
|
|
6100
6240
|
};
|
|
6101
6241
|
|
|
6102
6242
|
// components/ui/stepper.tsx
|
|
6103
|
-
import * as
|
|
6243
|
+
import * as React14 from "react";
|
|
6104
6244
|
import { Minus, Plus } from "lucide-react";
|
|
6105
|
-
import { jsx as
|
|
6245
|
+
import { jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6106
6246
|
function clamp(value, min, max) {
|
|
6107
6247
|
return Math.min(Math.max(value, min), max);
|
|
6108
6248
|
}
|
|
@@ -6136,16 +6276,16 @@ function Stepper({
|
|
|
6136
6276
|
}) {
|
|
6137
6277
|
const { container, buttonSize, iconClass } = stepperSizeConfig[size];
|
|
6138
6278
|
const isControlled = controlledValue !== void 0;
|
|
6139
|
-
const [internalValue, setInternalValue] =
|
|
6279
|
+
const [internalValue, setInternalValue] = React14.useState(
|
|
6140
6280
|
clamp(defaultValue, min, max)
|
|
6141
6281
|
);
|
|
6142
6282
|
const currentValue = isControlled ? controlledValue : internalValue;
|
|
6143
6283
|
const decimalPlaces = getDecimalPlaces(step);
|
|
6144
|
-
const [displayString, setDisplayString] =
|
|
6284
|
+
const [displayString, setDisplayString] = React14.useState(
|
|
6145
6285
|
formatValue(currentValue, decimalPlaces)
|
|
6146
6286
|
);
|
|
6147
|
-
const [isFocused, setIsFocused] =
|
|
6148
|
-
|
|
6287
|
+
const [isFocused, setIsFocused] = React14.useState(false);
|
|
6288
|
+
React14.useEffect(() => {
|
|
6149
6289
|
if (!isFocused) {
|
|
6150
6290
|
setDisplayString(formatValue(currentValue, decimalPlaces));
|
|
6151
6291
|
}
|
|
@@ -6195,14 +6335,14 @@ function Stepper({
|
|
|
6195
6335
|
}
|
|
6196
6336
|
}
|
|
6197
6337
|
}
|
|
6198
|
-
return /* @__PURE__ */
|
|
6338
|
+
return /* @__PURE__ */ jsxs28(
|
|
6199
6339
|
InputGroup,
|
|
6200
6340
|
{
|
|
6201
6341
|
"data-slot": "stepper",
|
|
6202
6342
|
"data-disabled": disabled || void 0,
|
|
6203
6343
|
className: cn("w-32", container, className),
|
|
6204
6344
|
children: [
|
|
6205
|
-
/* @__PURE__ */
|
|
6345
|
+
/* @__PURE__ */ jsx54(InputGroupAddon, { align: "inline-start", children: /* @__PURE__ */ jsx54(
|
|
6206
6346
|
InputGroupButton,
|
|
6207
6347
|
{
|
|
6208
6348
|
size: buttonSize,
|
|
@@ -6210,10 +6350,10 @@ function Stepper({
|
|
|
6210
6350
|
onClick: handleDecrement,
|
|
6211
6351
|
disabled: disabled || currentValue <= min,
|
|
6212
6352
|
"aria-label": "Decrease value",
|
|
6213
|
-
children: /* @__PURE__ */
|
|
6353
|
+
children: /* @__PURE__ */ jsx54(Minus, { className: iconClass })
|
|
6214
6354
|
}
|
|
6215
6355
|
) }),
|
|
6216
|
-
/* @__PURE__ */
|
|
6356
|
+
/* @__PURE__ */ jsx54(
|
|
6217
6357
|
InputGroupInput,
|
|
6218
6358
|
{
|
|
6219
6359
|
type: "text",
|
|
@@ -6235,9 +6375,9 @@ function Stepper({
|
|
|
6235
6375
|
className: "text-center [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
|
|
6236
6376
|
}
|
|
6237
6377
|
),
|
|
6238
|
-
/* @__PURE__ */
|
|
6239
|
-
/* @__PURE__ */
|
|
6240
|
-
/* @__PURE__ */
|
|
6378
|
+
/* @__PURE__ */ jsxs28(InputGroupAddon, { align: "inline-end", children: [
|
|
6379
|
+
/* @__PURE__ */ jsx54(InputGroupText, { className: "font-normal text-on-subtle", children: "USDT" }),
|
|
6380
|
+
/* @__PURE__ */ jsx54(
|
|
6241
6381
|
InputGroupButton,
|
|
6242
6382
|
{
|
|
6243
6383
|
size: buttonSize,
|
|
@@ -6245,7 +6385,7 @@ function Stepper({
|
|
|
6245
6385
|
onClick: handleIncrement,
|
|
6246
6386
|
disabled: disabled || currentValue >= max,
|
|
6247
6387
|
"aria-label": "Increase value",
|
|
6248
|
-
children: /* @__PURE__ */
|
|
6388
|
+
children: /* @__PURE__ */ jsx54(Plus, { className: iconClass })
|
|
6249
6389
|
}
|
|
6250
6390
|
)
|
|
6251
6391
|
] })
|
|
@@ -6256,7 +6396,7 @@ function Stepper({
|
|
|
6256
6396
|
|
|
6257
6397
|
// components/ui/switch.tsx
|
|
6258
6398
|
import { Switch as SwitchPrimitive } from "radix-ui";
|
|
6259
|
-
import { jsx as
|
|
6399
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
6260
6400
|
function Switch(_a) {
|
|
6261
6401
|
var _b = _a, {
|
|
6262
6402
|
className,
|
|
@@ -6265,7 +6405,7 @@ function Switch(_a) {
|
|
|
6265
6405
|
"className",
|
|
6266
6406
|
"size"
|
|
6267
6407
|
]);
|
|
6268
|
-
return /* @__PURE__ */
|
|
6408
|
+
return /* @__PURE__ */ jsx55(
|
|
6269
6409
|
SwitchPrimitive.Root,
|
|
6270
6410
|
__spreadProps(__spreadValues({
|
|
6271
6411
|
"data-slot": "switch",
|
|
@@ -6275,7 +6415,7 @@ function Switch(_a) {
|
|
|
6275
6415
|
className
|
|
6276
6416
|
)
|
|
6277
6417
|
}, props), {
|
|
6278
|
-
children: /* @__PURE__ */
|
|
6418
|
+
children: /* @__PURE__ */ jsx55(
|
|
6279
6419
|
SwitchPrimitive.Thumb,
|
|
6280
6420
|
{
|
|
6281
6421
|
"data-slot": "switch-thumb",
|
|
@@ -6289,15 +6429,15 @@ function Switch(_a) {
|
|
|
6289
6429
|
}
|
|
6290
6430
|
|
|
6291
6431
|
// components/ui/table.tsx
|
|
6292
|
-
import { jsx as
|
|
6432
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
6293
6433
|
function Table(_a) {
|
|
6294
6434
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6295
|
-
return /* @__PURE__ */
|
|
6435
|
+
return /* @__PURE__ */ jsx56(
|
|
6296
6436
|
"div",
|
|
6297
6437
|
{
|
|
6298
6438
|
"data-slot": "table-container",
|
|
6299
6439
|
className: "relative w-full overflow-x-auto",
|
|
6300
|
-
children: /* @__PURE__ */
|
|
6440
|
+
children: /* @__PURE__ */ jsx56(
|
|
6301
6441
|
"table",
|
|
6302
6442
|
__spreadValues({
|
|
6303
6443
|
"data-slot": "table",
|
|
@@ -6309,7 +6449,7 @@ function Table(_a) {
|
|
|
6309
6449
|
}
|
|
6310
6450
|
function TableHeader(_a) {
|
|
6311
6451
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6312
|
-
return /* @__PURE__ */
|
|
6452
|
+
return /* @__PURE__ */ jsx56(
|
|
6313
6453
|
"thead",
|
|
6314
6454
|
__spreadValues({
|
|
6315
6455
|
"data-slot": "table-header",
|
|
@@ -6319,7 +6459,7 @@ function TableHeader(_a) {
|
|
|
6319
6459
|
}
|
|
6320
6460
|
function TableBody(_a) {
|
|
6321
6461
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6322
|
-
return /* @__PURE__ */
|
|
6462
|
+
return /* @__PURE__ */ jsx56(
|
|
6323
6463
|
"tbody",
|
|
6324
6464
|
__spreadValues({
|
|
6325
6465
|
"data-slot": "table-body",
|
|
@@ -6329,7 +6469,7 @@ function TableBody(_a) {
|
|
|
6329
6469
|
}
|
|
6330
6470
|
function TableFooter(_a) {
|
|
6331
6471
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6332
|
-
return /* @__PURE__ */
|
|
6472
|
+
return /* @__PURE__ */ jsx56(
|
|
6333
6473
|
"tfoot",
|
|
6334
6474
|
__spreadValues({
|
|
6335
6475
|
"data-slot": "table-footer",
|
|
@@ -6342,7 +6482,7 @@ function TableFooter(_a) {
|
|
|
6342
6482
|
}
|
|
6343
6483
|
function TableRow(_a) {
|
|
6344
6484
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6345
|
-
return /* @__PURE__ */
|
|
6485
|
+
return /* @__PURE__ */ jsx56(
|
|
6346
6486
|
"tr",
|
|
6347
6487
|
__spreadValues({
|
|
6348
6488
|
"data-slot": "table-row",
|
|
@@ -6355,7 +6495,7 @@ function TableRow(_a) {
|
|
|
6355
6495
|
}
|
|
6356
6496
|
function TableHead(_a) {
|
|
6357
6497
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6358
|
-
return /* @__PURE__ */
|
|
6498
|
+
return /* @__PURE__ */ jsx56(
|
|
6359
6499
|
"th",
|
|
6360
6500
|
__spreadValues({
|
|
6361
6501
|
"data-slot": "table-head",
|
|
@@ -6368,7 +6508,7 @@ function TableHead(_a) {
|
|
|
6368
6508
|
}
|
|
6369
6509
|
function TableCell(_a) {
|
|
6370
6510
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6371
|
-
return /* @__PURE__ */
|
|
6511
|
+
return /* @__PURE__ */ jsx56(
|
|
6372
6512
|
"td",
|
|
6373
6513
|
__spreadValues({
|
|
6374
6514
|
"data-slot": "table-cell",
|
|
@@ -6385,7 +6525,7 @@ function TableCaption(_a) {
|
|
|
6385
6525
|
} = _b, props = __objRest(_b, [
|
|
6386
6526
|
"className"
|
|
6387
6527
|
]);
|
|
6388
|
-
return /* @__PURE__ */
|
|
6528
|
+
return /* @__PURE__ */ jsx56(
|
|
6389
6529
|
"caption",
|
|
6390
6530
|
__spreadValues({
|
|
6391
6531
|
"data-slot": "table-caption",
|
|
@@ -6397,7 +6537,7 @@ function TableCaption(_a) {
|
|
|
6397
6537
|
// components/ui/tabs.tsx
|
|
6398
6538
|
import { cva as cva13 } from "class-variance-authority";
|
|
6399
6539
|
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
6400
|
-
import { jsx as
|
|
6540
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
6401
6541
|
function Tabs(_a) {
|
|
6402
6542
|
var _b = _a, {
|
|
6403
6543
|
className,
|
|
@@ -6406,7 +6546,7 @@ function Tabs(_a) {
|
|
|
6406
6546
|
"className",
|
|
6407
6547
|
"orientation"
|
|
6408
6548
|
]);
|
|
6409
|
-
return /* @__PURE__ */
|
|
6549
|
+
return /* @__PURE__ */ jsx57(
|
|
6410
6550
|
TabsPrimitive.Root,
|
|
6411
6551
|
__spreadValues({
|
|
6412
6552
|
"data-slot": "tabs",
|
|
@@ -6449,7 +6589,7 @@ function TabsList(_a) {
|
|
|
6449
6589
|
"variant",
|
|
6450
6590
|
"size"
|
|
6451
6591
|
]);
|
|
6452
|
-
return /* @__PURE__ */
|
|
6592
|
+
return /* @__PURE__ */ jsx57(
|
|
6453
6593
|
TabsPrimitive.List,
|
|
6454
6594
|
__spreadValues({
|
|
6455
6595
|
"data-slot": "tabs-list",
|
|
@@ -6467,7 +6607,7 @@ function TabsTrigger(_a) {
|
|
|
6467
6607
|
"className",
|
|
6468
6608
|
"iconPosition"
|
|
6469
6609
|
]);
|
|
6470
|
-
return /* @__PURE__ */
|
|
6610
|
+
return /* @__PURE__ */ jsx57(
|
|
6471
6611
|
TabsPrimitive.Trigger,
|
|
6472
6612
|
__spreadValues({
|
|
6473
6613
|
"data-slot": "tabs-trigger",
|
|
@@ -6493,7 +6633,7 @@ function TabsContent(_a) {
|
|
|
6493
6633
|
} = _b, props = __objRest(_b, [
|
|
6494
6634
|
"className"
|
|
6495
6635
|
]);
|
|
6496
|
-
return /* @__PURE__ */
|
|
6636
|
+
return /* @__PURE__ */ jsx57(
|
|
6497
6637
|
TabsPrimitive.Content,
|
|
6498
6638
|
__spreadValues({
|
|
6499
6639
|
"data-slot": "tabs-content",
|
|
@@ -6504,7 +6644,7 @@ function TabsContent(_a) {
|
|
|
6504
6644
|
|
|
6505
6645
|
// components/ui/ticket-card.tsx
|
|
6506
6646
|
import { ArrowRight as ArrowRight2, Info as Info2 } from "lucide-react";
|
|
6507
|
-
import { Fragment as
|
|
6647
|
+
import { Fragment as Fragment5, jsx as jsx58, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6508
6648
|
function formatBalanceValue(raw) {
|
|
6509
6649
|
const match = raw.match(/^(\D*)([\d,]+(?:\.\d+)?)(\D*)$/);
|
|
6510
6650
|
if (!match) return raw;
|
|
@@ -6528,23 +6668,23 @@ function TicketCard({
|
|
|
6528
6668
|
stubDisabled = false,
|
|
6529
6669
|
compact = false
|
|
6530
6670
|
}) {
|
|
6531
|
-
return /* @__PURE__ */
|
|
6532
|
-
/* @__PURE__ */
|
|
6533
|
-
icon && /* @__PURE__ */
|
|
6534
|
-
/* @__PURE__ */
|
|
6535
|
-
/* @__PURE__ */
|
|
6536
|
-
/* @__PURE__ */
|
|
6537
|
-
/* @__PURE__ */
|
|
6538
|
-
currency && /* @__PURE__ */
|
|
6671
|
+
return /* @__PURE__ */ jsx58("div", { className: cn("flex w-full flex-col gap-2", className), children: /* @__PURE__ */ jsxs29("div", { className: "relative flex h-20 w-full items-stretch justify-between rounded-sm bg-subtle", children: [
|
|
6672
|
+
/* @__PURE__ */ jsxs29("div", { className: cn("flex flex-1 items-center overflow-hidden", compact ? "gap-2 px-2" : "gap-4 px-4"), children: [
|
|
6673
|
+
icon && /* @__PURE__ */ jsx58("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
6674
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex h-11 flex-col justify-center gap-1 whitespace-nowrap", children: [
|
|
6675
|
+
/* @__PURE__ */ jsx58("p", { className: "text-xs text-on-subtle", children: label }),
|
|
6676
|
+
/* @__PURE__ */ jsxs29("p", { className: "leading-none", children: [
|
|
6677
|
+
/* @__PURE__ */ jsx58("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
6678
|
+
currency && /* @__PURE__ */ jsxs29(Fragment5, { children: [
|
|
6539
6679
|
" ",
|
|
6540
|
-
/* @__PURE__ */
|
|
6680
|
+
/* @__PURE__ */ jsx58("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6541
6681
|
] })
|
|
6542
6682
|
] })
|
|
6543
6683
|
] })
|
|
6544
6684
|
] }),
|
|
6545
|
-
/* @__PURE__ */
|
|
6546
|
-
/* @__PURE__ */
|
|
6547
|
-
/* @__PURE__ */
|
|
6685
|
+
/* @__PURE__ */ jsx58("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
6686
|
+
/* @__PURE__ */ jsx58("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[68px] z-10 size-6 rounded-full bg-prominent" }),
|
|
6687
|
+
/* @__PURE__ */ jsx58(
|
|
6548
6688
|
"div",
|
|
6549
6689
|
{
|
|
6550
6690
|
"aria-hidden": true,
|
|
@@ -6555,7 +6695,7 @@ function TicketCard({
|
|
|
6555
6695
|
}
|
|
6556
6696
|
}
|
|
6557
6697
|
),
|
|
6558
|
-
/* @__PURE__ */
|
|
6698
|
+
/* @__PURE__ */ jsxs29(
|
|
6559
6699
|
"button",
|
|
6560
6700
|
{
|
|
6561
6701
|
type: "button",
|
|
@@ -6569,7 +6709,7 @@ function TicketCard({
|
|
|
6569
6709
|
stubDisabled ? "cursor-not-allowed opacity-50" : "hover:bg-primary-hover"
|
|
6570
6710
|
),
|
|
6571
6711
|
children: [
|
|
6572
|
-
!stubDisabled && /* @__PURE__ */
|
|
6712
|
+
!stubDisabled && /* @__PURE__ */ jsx58(
|
|
6573
6713
|
"span",
|
|
6574
6714
|
{
|
|
6575
6715
|
"aria-hidden": true,
|
|
@@ -6579,8 +6719,8 @@ function TicketCard({
|
|
|
6579
6719
|
}
|
|
6580
6720
|
}
|
|
6581
6721
|
),
|
|
6582
|
-
/* @__PURE__ */
|
|
6583
|
-
/* @__PURE__ */
|
|
6722
|
+
/* @__PURE__ */ jsx58(ArrowRight2, { className: "size-4 text-on-primary" }),
|
|
6723
|
+
/* @__PURE__ */ jsx58("span", { className: "text-sm font-semibold text-on-primary", children: stubLabel })
|
|
6584
6724
|
]
|
|
6585
6725
|
}
|
|
6586
6726
|
)
|
|
@@ -6606,58 +6746,58 @@ function CreditTicketCard({
|
|
|
6606
6746
|
badgeInfoCloseLabel,
|
|
6607
6747
|
compact = false
|
|
6608
6748
|
}) {
|
|
6609
|
-
return /* @__PURE__ */
|
|
6749
|
+
return /* @__PURE__ */ jsx58("div", { className: cn("flex w-full flex-col gap-2", className), children: /* @__PURE__ */ jsxs29("div", { className: "relative flex w-full items-stretch justify-between rounded-sm bg-subtle", children: [
|
|
6610
6750
|
(() => {
|
|
6611
6751
|
const badgeText = badgeValue || badgeCurrency ? `${badgeLabel}: ${badgeValue}${badgeCurrency ? ` ${badgeCurrency}` : ""}` : badgeLabel;
|
|
6612
|
-
const creditBadge = /* @__PURE__ */
|
|
6752
|
+
const creditBadge = /* @__PURE__ */ jsxs29(Badge, { variant: "fill-credit", size: "sm", className: "!gap-1 !font-medium !tracking-normal", children: [
|
|
6613
6753
|
badgeIcon,
|
|
6614
6754
|
badgeText,
|
|
6615
|
-
badgeInfo && /* @__PURE__ */
|
|
6616
|
-
/* @__PURE__ */
|
|
6755
|
+
badgeInfo && /* @__PURE__ */ jsx58(TooltipProvider, { children: /* @__PURE__ */ jsxs29(Tooltip2, { children: [
|
|
6756
|
+
/* @__PURE__ */ jsx58(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx58(
|
|
6617
6757
|
"button",
|
|
6618
6758
|
{
|
|
6619
6759
|
type: "button",
|
|
6620
6760
|
"aria-label": `More info about ${badgeLabel.toLowerCase()}`,
|
|
6621
6761
|
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",
|
|
6622
|
-
children: /* @__PURE__ */
|
|
6762
|
+
children: /* @__PURE__ */ jsx58(Info2, { className: "!size-3.5", strokeWidth: 2 })
|
|
6623
6763
|
}
|
|
6624
6764
|
) }),
|
|
6625
|
-
/* @__PURE__ */
|
|
6765
|
+
/* @__PURE__ */ jsx58(TooltipContent, { side: badgeInfoSide, align: badgeInfoAlign, title: badgeInfoTitle, closeLabel: badgeInfoCloseLabel, variant: "inverse", className: "max-w-xs whitespace-normal", children: badgeInfo })
|
|
6626
6766
|
] }) })
|
|
6627
6767
|
] });
|
|
6628
|
-
const labelValue = /* @__PURE__ */
|
|
6629
|
-
/* @__PURE__ */
|
|
6630
|
-
/* @__PURE__ */
|
|
6631
|
-
/* @__PURE__ */
|
|
6632
|
-
currency && /* @__PURE__ */
|
|
6768
|
+
const labelValue = /* @__PURE__ */ jsxs29("div", { className: "flex h-11 flex-col justify-center gap-1 whitespace-nowrap", children: [
|
|
6769
|
+
/* @__PURE__ */ jsx58("p", { className: "text-xs text-on-subtle", children: label }),
|
|
6770
|
+
/* @__PURE__ */ jsxs29("p", { className: "leading-none", children: [
|
|
6771
|
+
/* @__PURE__ */ jsx58("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
6772
|
+
currency && /* @__PURE__ */ jsxs29(Fragment5, { children: [
|
|
6633
6773
|
" ",
|
|
6634
|
-
/* @__PURE__ */
|
|
6774
|
+
/* @__PURE__ */ jsx58("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6635
6775
|
] })
|
|
6636
6776
|
] })
|
|
6637
6777
|
] });
|
|
6638
|
-
return /* @__PURE__ */
|
|
6778
|
+
return /* @__PURE__ */ jsx58(
|
|
6639
6779
|
"div",
|
|
6640
6780
|
{
|
|
6641
6781
|
className: cn(
|
|
6642
6782
|
"flex flex-1 overflow-hidden",
|
|
6643
6783
|
compact ? "flex-col gap-2 px-2 py-4" : "items-center gap-4 px-4 py-4"
|
|
6644
6784
|
),
|
|
6645
|
-
children: compact ? /* @__PURE__ */
|
|
6646
|
-
/* @__PURE__ */
|
|
6647
|
-
icon && /* @__PURE__ */
|
|
6785
|
+
children: compact ? /* @__PURE__ */ jsxs29("div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
6786
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex items-center gap-2", children: [
|
|
6787
|
+
icon && /* @__PURE__ */ jsx58("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
6648
6788
|
labelValue
|
|
6649
6789
|
] }),
|
|
6650
|
-
/* @__PURE__ */
|
|
6651
|
-
] }) : /* @__PURE__ */
|
|
6652
|
-
icon && /* @__PURE__ */
|
|
6653
|
-
/* @__PURE__ */
|
|
6654
|
-
/* @__PURE__ */
|
|
6655
|
-
/* @__PURE__ */
|
|
6656
|
-
/* @__PURE__ */
|
|
6657
|
-
/* @__PURE__ */
|
|
6658
|
-
currency && /* @__PURE__ */
|
|
6790
|
+
/* @__PURE__ */ jsx58("div", { className: "flex", children: icon ? /* @__PURE__ */ jsx58("div", { className: "flex w-10 shrink-0 justify-start", children: /* @__PURE__ */ jsx58("div", { className: "w-max", children: creditBadge }) }) : creditBadge })
|
|
6791
|
+
] }) : /* @__PURE__ */ jsxs29(Fragment5, { children: [
|
|
6792
|
+
icon && /* @__PURE__ */ jsx58("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
6793
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex flex-col gap-1 whitespace-nowrap", children: [
|
|
6794
|
+
/* @__PURE__ */ jsx58("p", { className: "text-xs text-on-subtle", children: label }),
|
|
6795
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex items-center gap-4", children: [
|
|
6796
|
+
/* @__PURE__ */ jsxs29("p", { className: "leading-none", children: [
|
|
6797
|
+
/* @__PURE__ */ jsx58("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
6798
|
+
currency && /* @__PURE__ */ jsxs29(Fragment5, { children: [
|
|
6659
6799
|
" ",
|
|
6660
|
-
/* @__PURE__ */
|
|
6800
|
+
/* @__PURE__ */ jsx58("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6661
6801
|
] })
|
|
6662
6802
|
] }),
|
|
6663
6803
|
creditBadge
|
|
@@ -6667,9 +6807,9 @@ function CreditTicketCard({
|
|
|
6667
6807
|
}
|
|
6668
6808
|
);
|
|
6669
6809
|
})(),
|
|
6670
|
-
/* @__PURE__ */
|
|
6671
|
-
/* @__PURE__ */
|
|
6672
|
-
/* @__PURE__ */
|
|
6810
|
+
/* @__PURE__ */ jsx58("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
6811
|
+
/* @__PURE__ */ jsx58("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] bottom-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
6812
|
+
/* @__PURE__ */ jsx58(
|
|
6673
6813
|
"div",
|
|
6674
6814
|
{
|
|
6675
6815
|
"aria-hidden": true,
|
|
@@ -6680,7 +6820,7 @@ function CreditTicketCard({
|
|
|
6680
6820
|
}
|
|
6681
6821
|
}
|
|
6682
6822
|
),
|
|
6683
|
-
/* @__PURE__ */
|
|
6823
|
+
/* @__PURE__ */ jsxs29(
|
|
6684
6824
|
"button",
|
|
6685
6825
|
{
|
|
6686
6826
|
type: "button",
|
|
@@ -6694,7 +6834,7 @@ function CreditTicketCard({
|
|
|
6694
6834
|
stubDisabled ? "cursor-not-allowed opacity-50" : "hover:bg-primary-hover"
|
|
6695
6835
|
),
|
|
6696
6836
|
children: [
|
|
6697
|
-
!stubDisabled && /* @__PURE__ */
|
|
6837
|
+
!stubDisabled && /* @__PURE__ */ jsx58(
|
|
6698
6838
|
"span",
|
|
6699
6839
|
{
|
|
6700
6840
|
"aria-hidden": true,
|
|
@@ -6704,8 +6844,8 @@ function CreditTicketCard({
|
|
|
6704
6844
|
}
|
|
6705
6845
|
}
|
|
6706
6846
|
),
|
|
6707
|
-
/* @__PURE__ */
|
|
6708
|
-
/* @__PURE__ */
|
|
6847
|
+
/* @__PURE__ */ jsx58(ArrowRight2, { className: "size-4 text-on-primary" }),
|
|
6848
|
+
/* @__PURE__ */ jsx58("span", { className: "text-sm font-semibold text-on-primary", children: stubLabel })
|
|
6709
6849
|
]
|
|
6710
6850
|
}
|
|
6711
6851
|
)
|
|
@@ -6716,7 +6856,7 @@ var TicketCardDesktop = TicketCard;
|
|
|
6716
6856
|
// components/ui/toggle.tsx
|
|
6717
6857
|
import { cva as cva14 } from "class-variance-authority";
|
|
6718
6858
|
import { Toggle as TogglePrimitive } from "radix-ui";
|
|
6719
|
-
import { jsx as
|
|
6859
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
6720
6860
|
var toggleVariants = cva14(
|
|
6721
6861
|
"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",
|
|
6722
6862
|
{
|
|
@@ -6747,7 +6887,7 @@ function Toggle(_a) {
|
|
|
6747
6887
|
"variant",
|
|
6748
6888
|
"size"
|
|
6749
6889
|
]);
|
|
6750
|
-
return /* @__PURE__ */
|
|
6890
|
+
return /* @__PURE__ */ jsx59(
|
|
6751
6891
|
TogglePrimitive.Root,
|
|
6752
6892
|
__spreadValues({
|
|
6753
6893
|
"data-slot": "toggle",
|
|
@@ -6757,10 +6897,10 @@ function Toggle(_a) {
|
|
|
6757
6897
|
}
|
|
6758
6898
|
|
|
6759
6899
|
// components/ui/toggle-group.tsx
|
|
6760
|
-
import * as
|
|
6900
|
+
import * as React15 from "react";
|
|
6761
6901
|
import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
|
|
6762
|
-
import { jsx as
|
|
6763
|
-
var ToggleGroupContext =
|
|
6902
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
6903
|
+
var ToggleGroupContext = React15.createContext({
|
|
6764
6904
|
size: "default",
|
|
6765
6905
|
variant: "default",
|
|
6766
6906
|
spacing: 0
|
|
@@ -6779,7 +6919,7 @@ function ToggleGroup(_a) {
|
|
|
6779
6919
|
"spacing",
|
|
6780
6920
|
"children"
|
|
6781
6921
|
]);
|
|
6782
|
-
return /* @__PURE__ */
|
|
6922
|
+
return /* @__PURE__ */ jsx60(
|
|
6783
6923
|
ToggleGroupPrimitive.Root,
|
|
6784
6924
|
__spreadProps(__spreadValues({
|
|
6785
6925
|
"data-slot": "toggle-group",
|
|
@@ -6792,7 +6932,7 @@ function ToggleGroup(_a) {
|
|
|
6792
6932
|
className
|
|
6793
6933
|
)
|
|
6794
6934
|
}, props), {
|
|
6795
|
-
children: /* @__PURE__ */
|
|
6935
|
+
children: /* @__PURE__ */ jsx60(ToggleGroupContext.Provider, { value: { variant, size, spacing }, children })
|
|
6796
6936
|
})
|
|
6797
6937
|
);
|
|
6798
6938
|
}
|
|
@@ -6808,8 +6948,8 @@ function ToggleGroupItem(_a) {
|
|
|
6808
6948
|
"variant",
|
|
6809
6949
|
"size"
|
|
6810
6950
|
]);
|
|
6811
|
-
const context =
|
|
6812
|
-
return /* @__PURE__ */
|
|
6951
|
+
const context = React15.useContext(ToggleGroupContext);
|
|
6952
|
+
return /* @__PURE__ */ jsx60(
|
|
6813
6953
|
ToggleGroupPrimitive.Item,
|
|
6814
6954
|
__spreadProps(__spreadValues({
|
|
6815
6955
|
"data-slot": "toggle-group-item",
|
|
@@ -6832,7 +6972,7 @@ function ToggleGroupItem(_a) {
|
|
|
6832
6972
|
}
|
|
6833
6973
|
|
|
6834
6974
|
// components/blocks/result-block.tsx
|
|
6835
|
-
import { Fragment as
|
|
6975
|
+
import { Fragment as Fragment6, jsx as jsx61, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6836
6976
|
var THUMBS_UP_DATA_URL = "data:image/webp;base64,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";
|
|
6837
6977
|
var THUMBS_DOWN_DATA_URL = "data:image/webp;base64,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";
|
|
6838
6978
|
function ResultBlock({
|
|
@@ -6849,9 +6989,9 @@ function ResultBlock({
|
|
|
6849
6989
|
const signedAmount = isWin ? `+${amount}` : `\u2212${amount}`;
|
|
6850
6990
|
const amountColorClass = isWin ? "text-semantic-win" : "text-semantic-loss";
|
|
6851
6991
|
const haloBgClass = isWin ? "bg-semantic-win" : "bg-semantic-loss";
|
|
6852
|
-
return /* @__PURE__ */
|
|
6853
|
-
/* @__PURE__ */
|
|
6854
|
-
/* @__PURE__ */
|
|
6992
|
+
return /* @__PURE__ */ jsxs30(Card, { className: "w-80 shrink-0 overflow-hidden rounded-md shadow-sm px-5 py-5 items-center gap-3", children: [
|
|
6993
|
+
/* @__PURE__ */ jsxs30("div", { className: "relative flex items-center justify-center py-2", children: [
|
|
6994
|
+
/* @__PURE__ */ jsx61(
|
|
6855
6995
|
"span",
|
|
6856
6996
|
{
|
|
6857
6997
|
"aria-hidden": true,
|
|
@@ -6859,7 +6999,7 @@ function ResultBlock({
|
|
|
6859
6999
|
className: `absolute size-24 rounded-full blur-2xl opacity-20 ${haloBgClass}`
|
|
6860
7000
|
}
|
|
6861
7001
|
),
|
|
6862
|
-
/* @__PURE__ */
|
|
7002
|
+
/* @__PURE__ */ jsx61(
|
|
6863
7003
|
"img",
|
|
6864
7004
|
{
|
|
6865
7005
|
"data-results-motion": isWin ? "icon-win" : "icon-loss",
|
|
@@ -6869,28 +7009,28 @@ function ResultBlock({
|
|
|
6869
7009
|
}
|
|
6870
7010
|
)
|
|
6871
7011
|
] }),
|
|
6872
|
-
/* @__PURE__ */
|
|
6873
|
-
/* @__PURE__ */
|
|
6874
|
-
/* @__PURE__ */
|
|
6875
|
-
/* @__PURE__ */
|
|
7012
|
+
/* @__PURE__ */ jsx61("p", { className: "text-lg font-semibold text-on-prominent", children: titleText }),
|
|
7013
|
+
/* @__PURE__ */ jsxs30("p", { className: `flex items-baseline gap-1.5 ${amountColorClass}`, children: [
|
|
7014
|
+
/* @__PURE__ */ jsx61("span", { className: "font-display text-4xl font-bold tabular-nums tracking-tight", children: signedAmount }),
|
|
7015
|
+
/* @__PURE__ */ jsx61("span", { className: "text-lg font-semibold", children: currency })
|
|
6876
7016
|
] }),
|
|
6877
|
-
/* @__PURE__ */
|
|
6878
|
-
/* @__PURE__ */
|
|
7017
|
+
/* @__PURE__ */ jsxs30("div", { className: "flex items-center gap-2", children: [
|
|
7018
|
+
/* @__PURE__ */ jsxs30(Badge, { variant: "standard", size: "sm", children: [
|
|
6879
7019
|
contractLabel,
|
|
6880
|
-
pickedDigit !== void 0 && /* @__PURE__ */
|
|
6881
|
-
/* @__PURE__ */
|
|
6882
|
-
/* @__PURE__ */
|
|
7020
|
+
pickedDigit !== void 0 && /* @__PURE__ */ jsxs30(Fragment6, { children: [
|
|
7021
|
+
/* @__PURE__ */ jsx61("span", { "aria-hidden": true, className: "h-3 w-px bg-border-prominent/40 mx-1" }),
|
|
7022
|
+
/* @__PURE__ */ jsx61("span", { className: "tabular-nums", children: pickedDigit })
|
|
6883
7023
|
] })
|
|
6884
7024
|
] }),
|
|
6885
|
-
/* @__PURE__ */
|
|
7025
|
+
/* @__PURE__ */ jsx61(Badge, { variant: "standard", size: "sm", children: duration })
|
|
6886
7026
|
] }),
|
|
6887
|
-
/* @__PURE__ */
|
|
6888
|
-
ctaMode === "next-round" && /* @__PURE__ */
|
|
6889
|
-
ctaMode === "go-again" && /* @__PURE__ */
|
|
6890
|
-
ctaMode === "conversion" && /* @__PURE__ */
|
|
6891
|
-
/* @__PURE__ */
|
|
6892
|
-
/* @__PURE__ */
|
|
6893
|
-
/* @__PURE__ */
|
|
7027
|
+
/* @__PURE__ */ jsxs30("div", { className: "w-full pt-2", children: [
|
|
7028
|
+
ctaMode === "next-round" && /* @__PURE__ */ jsx61(Button, { className: "w-full", children: "Next round" }),
|
|
7029
|
+
ctaMode === "go-again" && /* @__PURE__ */ jsx61(Button, { className: "w-full", children: "Go again" }),
|
|
7030
|
+
ctaMode === "conversion" && /* @__PURE__ */ jsxs30("div", { className: "w-full flex flex-col gap-3", children: [
|
|
7031
|
+
/* @__PURE__ */ jsx61("p", { className: "text-center text-base font-semibold text-on-prominent", children: "Ready to play for real?" }),
|
|
7032
|
+
/* @__PURE__ */ jsx61(Button, { className: "w-full", children: "Deposit now" }),
|
|
7033
|
+
/* @__PURE__ */ jsx61(Button, { variant: "secondary", className: "w-full", children: "Stay in demo" })
|
|
6894
7034
|
] })
|
|
6895
7035
|
] })
|
|
6896
7036
|
] });
|
|
@@ -6901,21 +7041,21 @@ function ResultDialog({
|
|
|
6901
7041
|
primaryLabel,
|
|
6902
7042
|
secondaryLabel
|
|
6903
7043
|
}) {
|
|
6904
|
-
return /* @__PURE__ */
|
|
6905
|
-
/* @__PURE__ */
|
|
6906
|
-
/* @__PURE__ */
|
|
6907
|
-
/* @__PURE__ */
|
|
7044
|
+
return /* @__PURE__ */ jsxs30(Card, { className: "w-80 shrink-0 overflow-hidden rounded-md shadow-sm px-5 py-6 items-center gap-4", children: [
|
|
7045
|
+
/* @__PURE__ */ jsxs30("div", { className: "flex flex-col items-center gap-2 text-center", children: [
|
|
7046
|
+
/* @__PURE__ */ jsx61("p", { className: "text-lg font-semibold text-on-prominent", children: title }),
|
|
7047
|
+
/* @__PURE__ */ jsx61("p", { className: "text-sm text-on-subtle", children: body })
|
|
6908
7048
|
] }),
|
|
6909
|
-
/* @__PURE__ */
|
|
6910
|
-
/* @__PURE__ */
|
|
6911
|
-
/* @__PURE__ */
|
|
7049
|
+
/* @__PURE__ */ jsxs30("div", { className: "w-full flex flex-col gap-2", children: [
|
|
7050
|
+
/* @__PURE__ */ jsx61(Button, { className: "w-full", children: primaryLabel }),
|
|
7051
|
+
/* @__PURE__ */ jsx61(Button, { variant: "secondary", className: "w-full", children: secondaryLabel })
|
|
6912
7052
|
] })
|
|
6913
7053
|
] });
|
|
6914
7054
|
}
|
|
6915
7055
|
|
|
6916
7056
|
// components/blocks/header-navigation-block.tsx
|
|
6917
7057
|
import { ArrowLeft as ArrowLeft2, History } from "lucide-react";
|
|
6918
|
-
import { jsx as
|
|
7058
|
+
import { jsx as jsx62, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6919
7059
|
function HeaderNavigationBlock({
|
|
6920
7060
|
onBack,
|
|
6921
7061
|
badge,
|
|
@@ -6924,15 +7064,15 @@ function HeaderNavigationBlock({
|
|
|
6924
7064
|
actions
|
|
6925
7065
|
}) {
|
|
6926
7066
|
var _a;
|
|
6927
|
-
return /* @__PURE__ */
|
|
6928
|
-
onBack && /* @__PURE__ */
|
|
6929
|
-
/* @__PURE__ */
|
|
6930
|
-
badge && /* @__PURE__ */
|
|
6931
|
-
/* @__PURE__ */
|
|
6932
|
-
/* @__PURE__ */
|
|
7067
|
+
return /* @__PURE__ */ jsx62("div", { className: "w-full min-w-80 max-w-layout-diagram-small rounded-md overflow-hidden bg-prominent", children: /* @__PURE__ */ jsxs31("header", { className: "flex items-center gap-2 border-b border-border-subtle bg-prominent px-layout-margin-inline py-3", children: [
|
|
7068
|
+
onBack && /* @__PURE__ */ jsx62(NavigationButton, { type: "button", size: "md", "aria-label": "Back", onClick: onBack, children: /* @__PURE__ */ jsx62(ArrowLeft2, { className: "size-5" }) }),
|
|
7069
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex min-w-0 flex-1 items-center justify-center gap-2", children: [
|
|
7070
|
+
badge && /* @__PURE__ */ jsx62(Badge, { variant: (_a = badge.variant) != null ? _a : "fill-warning", size: "sm", children: badge.label }),
|
|
7071
|
+
/* @__PURE__ */ jsx62("span", { className: "font-display font-semibold tabular-nums text-on-prominent", children: balance.amount }),
|
|
7072
|
+
/* @__PURE__ */ jsx62("span", { className: "text-sm text-on-subtle", children: balance.currency })
|
|
6933
7073
|
] }),
|
|
6934
|
-
/* @__PURE__ */
|
|
6935
|
-
history && /* @__PURE__ */
|
|
7074
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex shrink-0 items-center gap-1", children: [
|
|
7075
|
+
history && /* @__PURE__ */ jsx62(HistoryButton, __spreadValues({}, history)),
|
|
6936
7076
|
actions
|
|
6937
7077
|
] })
|
|
6938
7078
|
] }) });
|
|
@@ -6945,9 +7085,9 @@ function HistoryButton({
|
|
|
6945
7085
|
const show = typeof count === "number" && count > 0;
|
|
6946
7086
|
const label = show ? count > 99 ? "99+" : String(count) : null;
|
|
6947
7087
|
const ariaLabel = ariaLabelOverride != null ? ariaLabelOverride : show ? `Open history, ${count} new` : "Open history";
|
|
6948
|
-
return /* @__PURE__ */
|
|
6949
|
-
/* @__PURE__ */
|
|
6950
|
-
show && /* @__PURE__ */
|
|
7088
|
+
return /* @__PURE__ */ jsxs31("div", { className: "relative inline-flex", children: [
|
|
7089
|
+
/* @__PURE__ */ jsx62(NavigationButton, { type: "button", size: "md", "aria-label": ariaLabel, onClick, children: /* @__PURE__ */ jsx62(History, { className: "size-5" }) }),
|
|
7090
|
+
show && /* @__PURE__ */ jsx62(
|
|
6951
7091
|
"span",
|
|
6952
7092
|
{
|
|
6953
7093
|
"aria-hidden": true,
|
|
@@ -6959,7 +7099,7 @@ function HistoryButton({
|
|
|
6959
7099
|
}
|
|
6960
7100
|
|
|
6961
7101
|
// components/blocks/faq-block.tsx
|
|
6962
|
-
import { jsx as
|
|
7102
|
+
import { jsx as jsx63, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6963
7103
|
function FAQBlock({
|
|
6964
7104
|
eyebrow = "FAQ Section",
|
|
6965
7105
|
title = "Frequently asked questions",
|
|
@@ -6975,38 +7115,38 @@ function FAQBlock({
|
|
|
6975
7115
|
const helpCardPaddingClass = layout === "desktop" ? "p-8" : "p-6";
|
|
6976
7116
|
const gapClass = layout === "desktop" ? "gap-12" : "gap-10";
|
|
6977
7117
|
const headerGapClass = layout === "desktop" ? "gap-5" : "gap-4";
|
|
6978
|
-
return /* @__PURE__ */
|
|
6979
|
-
/* @__PURE__ */
|
|
6980
|
-
/* @__PURE__ */
|
|
6981
|
-
/* @__PURE__ */
|
|
6982
|
-
intro && /* @__PURE__ */
|
|
7118
|
+
return /* @__PURE__ */ jsxs32("div", { className: `w-full flex flex-col ${gapClass}`, children: [
|
|
7119
|
+
/* @__PURE__ */ jsxs32("div", { className: `flex flex-col ${headerGapClass} items-center w-full`, children: [
|
|
7120
|
+
/* @__PURE__ */ jsx63("span", { className: "text-sm text-on-subtle font-body", children: eyebrow }),
|
|
7121
|
+
/* @__PURE__ */ jsx63("h2", { className: headingClass, children: title }),
|
|
7122
|
+
intro && /* @__PURE__ */ jsx63("p", { className: "text-lg text-on-subtle font-body text-center", children: intro })
|
|
6983
7123
|
] }),
|
|
6984
|
-
/* @__PURE__ */
|
|
7124
|
+
/* @__PURE__ */ jsx63(
|
|
6985
7125
|
Accordion,
|
|
6986
7126
|
{
|
|
6987
7127
|
type: "single",
|
|
6988
7128
|
collapsible: true,
|
|
6989
7129
|
defaultValue: defaultValue != null ? defaultValue : (_a = items[0]) == null ? void 0 : _a.value,
|
|
6990
7130
|
className: "w-full",
|
|
6991
|
-
children: items.map(({ value, question, answer }) => /* @__PURE__ */
|
|
6992
|
-
/* @__PURE__ */
|
|
6993
|
-
/* @__PURE__ */
|
|
7131
|
+
children: items.map(({ value, question, answer }) => /* @__PURE__ */ jsxs32(AccordionItem, { value, children: [
|
|
7132
|
+
/* @__PURE__ */ jsx63(AccordionTrigger, { className: "text-base font-medium font-body text-on-prominent hover:no-underline", children: question }),
|
|
7133
|
+
/* @__PURE__ */ jsx63(AccordionContent, { children: /* @__PURE__ */ jsx63("p", { className: "text-sm text-on-subtle font-body pb-4", children: answer }) })
|
|
6994
7134
|
] }, value))
|
|
6995
7135
|
}
|
|
6996
7136
|
),
|
|
6997
|
-
helpCard && /* @__PURE__ */
|
|
6998
|
-
/* @__PURE__ */
|
|
6999
|
-
/* @__PURE__ */
|
|
7000
|
-
/* @__PURE__ */
|
|
7137
|
+
helpCard && /* @__PURE__ */ jsxs32("div", { className: `flex flex-col gap-6 items-center w-full bg-subtle rounded-xl ${helpCardPaddingClass}`, children: [
|
|
7138
|
+
/* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-2 w-full", children: [
|
|
7139
|
+
/* @__PURE__ */ jsx63("h3", { className: helpTitleClass, children: helpCard.title }),
|
|
7140
|
+
/* @__PURE__ */ jsx63("p", { className: "text-base text-on-subtle font-body", children: helpCard.body })
|
|
7001
7141
|
] }),
|
|
7002
|
-
/* @__PURE__ */
|
|
7142
|
+
/* @__PURE__ */ jsx63(Button, { size: "sm", onClick: helpCard.onCtaClick, children: helpCard.ctaLabel })
|
|
7003
7143
|
] })
|
|
7004
7144
|
] });
|
|
7005
7145
|
}
|
|
7006
7146
|
|
|
7007
7147
|
// components/blocks/hero-block.tsx
|
|
7008
7148
|
import { ArrowRight as ArrowRight3, ArrowUpRight } from "lucide-react";
|
|
7009
|
-
import { jsx as
|
|
7149
|
+
import { jsx as jsx64, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
7010
7150
|
function HeroBlock({
|
|
7011
7151
|
layout = "centered",
|
|
7012
7152
|
tagline,
|
|
@@ -7017,31 +7157,31 @@ function HeroBlock({
|
|
|
7017
7157
|
image
|
|
7018
7158
|
}) {
|
|
7019
7159
|
if (layout === "centered") {
|
|
7020
|
-
return /* @__PURE__ */
|
|
7021
|
-
/* @__PURE__ */
|
|
7022
|
-
tagline && /* @__PURE__ */
|
|
7023
|
-
/* @__PURE__ */
|
|
7024
|
-
/* @__PURE__ */
|
|
7160
|
+
return /* @__PURE__ */ jsx64("div", { className: "w-full border border-border-subtle rounded-xl overflow-hidden bg-prominent", children: /* @__PURE__ */ jsxs33("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: [
|
|
7161
|
+
/* @__PURE__ */ jsxs33("div", { className: "flex flex-col items-center gap-6 w-full", children: [
|
|
7162
|
+
tagline && /* @__PURE__ */ jsx64(TaglinePill, __spreadValues({}, tagline)),
|
|
7163
|
+
/* @__PURE__ */ jsx64("h1", { className: "text-5xl font-semibold font-display tracking-tight text-on-prominent text-center", children: heading }),
|
|
7164
|
+
/* @__PURE__ */ jsx64("p", { className: "text-lg font-body text-on-subtle text-center", children: body })
|
|
7025
7165
|
] }),
|
|
7026
|
-
/* @__PURE__ */
|
|
7166
|
+
/* @__PURE__ */ jsxs33(Button, { size: "sm", onClick: primaryCta.onClick, children: [
|
|
7027
7167
|
primaryCta.label,
|
|
7028
|
-
primaryCta.trailingArrow !== false && /* @__PURE__ */
|
|
7168
|
+
primaryCta.trailingArrow !== false && /* @__PURE__ */ jsx64(ArrowRight3, { className: "size-4" })
|
|
7029
7169
|
] })
|
|
7030
7170
|
] }) });
|
|
7031
7171
|
}
|
|
7032
|
-
return /* @__PURE__ */
|
|
7033
|
-
/* @__PURE__ */
|
|
7034
|
-
/* @__PURE__ */
|
|
7035
|
-
tagline && /* @__PURE__ */
|
|
7036
|
-
/* @__PURE__ */
|
|
7037
|
-
/* @__PURE__ */
|
|
7172
|
+
return /* @__PURE__ */ jsx64("div", { className: "w-full border border-border-subtle rounded-xl overflow-hidden bg-prominent", children: /* @__PURE__ */ jsxs33("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: [
|
|
7173
|
+
/* @__PURE__ */ jsxs33("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: [
|
|
7174
|
+
/* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-5 min-[600px]:gap-6 items-center min-[600px]:items-start w-full", children: [
|
|
7175
|
+
tagline && /* @__PURE__ */ jsx64(TaglinePill, __spreadProps(__spreadValues({}, tagline), { responsive: true })),
|
|
7176
|
+
/* @__PURE__ */ jsx64("h1", { className: "text-4xl min-[600px]:text-5xl font-semibold font-display tracking-tight text-on-prominent", children: heading }),
|
|
7177
|
+
/* @__PURE__ */ jsx64("p", { className: "text-lg font-body text-on-subtle", children: body })
|
|
7038
7178
|
] }),
|
|
7039
|
-
/* @__PURE__ */
|
|
7040
|
-
/* @__PURE__ */
|
|
7041
|
-
secondaryCta && /* @__PURE__ */
|
|
7179
|
+
/* @__PURE__ */ jsxs33("div", { className: "flex items-center justify-center min-[600px]:justify-start gap-2", children: [
|
|
7180
|
+
/* @__PURE__ */ jsx64(Button, { size: "sm", onClick: primaryCta.onClick, children: primaryCta.label }),
|
|
7181
|
+
secondaryCta && /* @__PURE__ */ jsx64(Button, { variant: "secondary", size: "sm", onClick: secondaryCta.onClick, children: secondaryCta.label })
|
|
7042
7182
|
] })
|
|
7043
7183
|
] }),
|
|
7044
|
-
/* @__PURE__ */
|
|
7184
|
+
/* @__PURE__ */ jsx64("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 })
|
|
7045
7185
|
] }) });
|
|
7046
7186
|
}
|
|
7047
7187
|
function TaglinePill({
|
|
@@ -7049,25 +7189,25 @@ function TaglinePill({
|
|
|
7049
7189
|
suffix,
|
|
7050
7190
|
responsive
|
|
7051
7191
|
}) {
|
|
7052
|
-
return /* @__PURE__ */
|
|
7053
|
-
/* @__PURE__ */
|
|
7054
|
-
responsive && suffix ? /* @__PURE__ */
|
|
7055
|
-
/* @__PURE__ */
|
|
7192
|
+
return /* @__PURE__ */ jsxs33("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: [
|
|
7193
|
+
/* @__PURE__ */ jsx64("span", { className: "size-1.5 rounded-full bg-semantic-win shrink-0", "aria-hidden": "true" }),
|
|
7194
|
+
responsive && suffix ? /* @__PURE__ */ jsxs33("span", { className: "text-sm font-body text-on-prominent whitespace-nowrap", children: [
|
|
7195
|
+
/* @__PURE__ */ jsxs33("span", { className: "hidden min-[600px]:inline", children: [
|
|
7056
7196
|
label,
|
|
7057
|
-
/* @__PURE__ */
|
|
7197
|
+
/* @__PURE__ */ jsx64("span", { className: "text-on-subtle", children: " \xB7 " })
|
|
7058
7198
|
] }),
|
|
7059
|
-
/* @__PURE__ */
|
|
7060
|
-
] }) : /* @__PURE__ */
|
|
7199
|
+
/* @__PURE__ */ jsx64("span", { className: "text-on-subtle min-[600px]:text-on-prominent", children: suffix })
|
|
7200
|
+
] }) : /* @__PURE__ */ jsxs33("span", { className: "text-sm font-body text-on-prominent whitespace-nowrap", children: [
|
|
7061
7201
|
label,
|
|
7062
|
-
suffix && /* @__PURE__ */
|
|
7202
|
+
suffix && /* @__PURE__ */ jsx64("span", { className: "text-on-subtle", children: ` \xB7 ${suffix}` })
|
|
7063
7203
|
] }),
|
|
7064
|
-
/* @__PURE__ */
|
|
7204
|
+
/* @__PURE__ */ jsx64(ArrowUpRight, { className: "size-4 text-on-subtle shrink-0", "aria-hidden": "true" })
|
|
7065
7205
|
] });
|
|
7066
7206
|
}
|
|
7067
7207
|
|
|
7068
7208
|
// components/blocks/auth-block.tsx
|
|
7069
|
-
import * as
|
|
7070
|
-
import { jsx as
|
|
7209
|
+
import * as React16 from "react";
|
|
7210
|
+
import { jsx as jsx65, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
7071
7211
|
function AuthBlock({
|
|
7072
7212
|
mode,
|
|
7073
7213
|
logoSrc,
|
|
@@ -7082,20 +7222,20 @@ function AuthBlock({
|
|
|
7082
7222
|
const ctaText = mode === "sign-in" ? "Sign in" : "Sign up";
|
|
7083
7223
|
const footerPrompt = mode === "sign-in" ? "Don't have an account?" : "Already have an account?";
|
|
7084
7224
|
const footerLinkLabel = mode === "sign-in" ? "Sign up" : "Log in";
|
|
7085
|
-
const [email, setEmail] =
|
|
7086
|
-
return /* @__PURE__ */
|
|
7087
|
-
/* @__PURE__ */
|
|
7088
|
-
/* @__PURE__ */
|
|
7089
|
-
/* @__PURE__ */
|
|
7225
|
+
const [email, setEmail] = React16.useState("");
|
|
7226
|
+
return /* @__PURE__ */ jsxs34("div", { className: "flex flex-col items-center gap-6 w-full", children: [
|
|
7227
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-2", children: [
|
|
7228
|
+
/* @__PURE__ */ jsx65("img", { src: logoSrc, alt: wordmark, className: "size-8 object-contain" }),
|
|
7229
|
+
/* @__PURE__ */ jsx65("span", { className: "font-display font-semibold text-base text-on-prominent tracking-tight", children: wordmark })
|
|
7090
7230
|
] }),
|
|
7091
|
-
/* @__PURE__ */
|
|
7092
|
-
/* @__PURE__ */
|
|
7093
|
-
/* @__PURE__ */
|
|
7094
|
-
/* @__PURE__ */
|
|
7095
|
-
/* @__PURE__ */
|
|
7096
|
-
/* @__PURE__ */
|
|
7231
|
+
/* @__PURE__ */ jsx65("h2", { className: "text-3xl font-bold font-display text-on-prominent text-center", children: headingText }),
|
|
7232
|
+
/* @__PURE__ */ jsx65("div", { className: "flex flex-col gap-3 w-full", children: providers.map((p) => /* @__PURE__ */ jsx65(ProviderButton, { provider: p }, p)) }),
|
|
7233
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-3 w-full", children: [
|
|
7234
|
+
/* @__PURE__ */ jsx65("div", { className: "flex-1 h-px bg-border-subtle" }),
|
|
7235
|
+
/* @__PURE__ */ jsx65("span", { className: "text-sm text-on-subtle font-body", children: "or" }),
|
|
7236
|
+
/* @__PURE__ */ jsx65("div", { className: "flex-1 h-px bg-border-subtle" })
|
|
7097
7237
|
] }),
|
|
7098
|
-
/* @__PURE__ */
|
|
7238
|
+
/* @__PURE__ */ jsx65("div", { className: "flex items-center gap-2 w-full", children: /* @__PURE__ */ jsx65(
|
|
7099
7239
|
Input,
|
|
7100
7240
|
{
|
|
7101
7241
|
id: `${idPrefix}-email`,
|
|
@@ -7106,60 +7246,60 @@ function AuthBlock({
|
|
|
7106
7246
|
onChange: (e) => setEmail(e.target.value)
|
|
7107
7247
|
}
|
|
7108
7248
|
) }),
|
|
7109
|
-
/* @__PURE__ */
|
|
7249
|
+
/* @__PURE__ */ jsxs34("p", { className: "text-sm text-on-subtle font-body text-left w-full", children: [
|
|
7110
7250
|
termsText,
|
|
7111
7251
|
", you agree to our",
|
|
7112
7252
|
" ",
|
|
7113
|
-
/* @__PURE__ */
|
|
7253
|
+
/* @__PURE__ */ jsx65(Link, { size: "sm", href: "#", children: "Terms & Conditions" })
|
|
7114
7254
|
] }),
|
|
7115
|
-
/* @__PURE__ */
|
|
7116
|
-
/* @__PURE__ */
|
|
7255
|
+
/* @__PURE__ */ jsx65(Button, { size: "md", className: "w-full", onClick: () => onSubmit == null ? void 0 : onSubmit({ email }), children: ctaText }),
|
|
7256
|
+
/* @__PURE__ */ jsxs34("p", { className: "text-sm text-on-subtle font-body text-center", children: [
|
|
7117
7257
|
footerPrompt,
|
|
7118
7258
|
" ",
|
|
7119
|
-
/* @__PURE__ */
|
|
7259
|
+
/* @__PURE__ */ jsx65(Link, { size: "sm", href: crossLinkHref, children: footerLinkLabel })
|
|
7120
7260
|
] })
|
|
7121
7261
|
] });
|
|
7122
7262
|
}
|
|
7123
7263
|
function ProviderButton({ provider }) {
|
|
7124
7264
|
switch (provider) {
|
|
7125
7265
|
case "google":
|
|
7126
|
-
return /* @__PURE__ */
|
|
7127
|
-
/* @__PURE__ */
|
|
7128
|
-
/* @__PURE__ */
|
|
7129
|
-
/* @__PURE__ */
|
|
7130
|
-
/* @__PURE__ */
|
|
7131
|
-
/* @__PURE__ */
|
|
7266
|
+
return /* @__PURE__ */ jsxs34(Button, { variant: "secondary", size: "lg", className: "w-full", children: [
|
|
7267
|
+
/* @__PURE__ */ jsxs34("svg", { width: "18", height: "18", viewBox: "0 0 18 18", "aria-hidden": "true", fill: "none", className: "shrink-0", children: [
|
|
7268
|
+
/* @__PURE__ */ jsx65("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" }),
|
|
7269
|
+
/* @__PURE__ */ jsx65("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" }),
|
|
7270
|
+
/* @__PURE__ */ jsx65("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" }),
|
|
7271
|
+
/* @__PURE__ */ jsx65("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" })
|
|
7132
7272
|
] }),
|
|
7133
7273
|
"Continue with Google"
|
|
7134
7274
|
] });
|
|
7135
7275
|
case "telegram":
|
|
7136
|
-
return /* @__PURE__ */
|
|
7137
|
-
/* @__PURE__ */
|
|
7138
|
-
/* @__PURE__ */
|
|
7139
|
-
/* @__PURE__ */
|
|
7140
|
-
/* @__PURE__ */
|
|
7276
|
+
return /* @__PURE__ */ jsxs34(Button, { variant: "secondary", size: "lg", className: "w-full", children: [
|
|
7277
|
+
/* @__PURE__ */ jsxs34("svg", { width: "18", height: "18", viewBox: "0 0 18 18", "aria-hidden": "true", fill: "none", className: "shrink-0", children: [
|
|
7278
|
+
/* @__PURE__ */ jsx65("circle", { cx: "9", cy: "9", r: "9", fill: "#29B6F6" }),
|
|
7279
|
+
/* @__PURE__ */ jsx65("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" }),
|
|
7280
|
+
/* @__PURE__ */ jsx65("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" })
|
|
7141
7281
|
] }),
|
|
7142
7282
|
"Continue with Telegram"
|
|
7143
7283
|
] });
|
|
7144
7284
|
case "x":
|
|
7145
|
-
return /* @__PURE__ */
|
|
7146
|
-
/* @__PURE__ */
|
|
7285
|
+
return /* @__PURE__ */ jsxs34(Button, { variant: "secondary", size: "lg", className: "w-full", children: [
|
|
7286
|
+
/* @__PURE__ */ jsx65("svg", { width: "18", height: "18", viewBox: "0 0 18 18", "aria-hidden": "true", fill: "currentColor", className: "shrink-0", children: /* @__PURE__ */ jsx65("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" }) }),
|
|
7147
7287
|
"Continue with X (Twitter)"
|
|
7148
7288
|
] });
|
|
7149
7289
|
}
|
|
7150
7290
|
}
|
|
7151
7291
|
|
|
7152
7292
|
// components/blocks/navbar-block.tsx
|
|
7153
|
-
import * as
|
|
7154
|
-
import { Menu, X as
|
|
7155
|
-
import { jsx as
|
|
7293
|
+
import * as React17 from "react";
|
|
7294
|
+
import { Menu, X as X3 } from "lucide-react";
|
|
7295
|
+
import { jsx as jsx66, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
7156
7296
|
function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
7157
7297
|
var _a, _b, _c, _d;
|
|
7158
|
-
const [mobileMenuOpen, setMobileMenuOpen] =
|
|
7159
|
-
return /* @__PURE__ */
|
|
7160
|
-
/* @__PURE__ */
|
|
7161
|
-
/* @__PURE__ */
|
|
7162
|
-
/* @__PURE__ */
|
|
7298
|
+
const [mobileMenuOpen, setMobileMenuOpen] = React17.useState(false);
|
|
7299
|
+
return /* @__PURE__ */ jsx66("div", { className: "w-full border border-border-subtle rounded-md overflow-hidden", children: /* @__PURE__ */ jsxs35("nav", { className: "bg-prominent", children: [
|
|
7300
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex items-center justify-between px-layout-margin-inline py-3", children: [
|
|
7301
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex items-center gap-6", children: [
|
|
7302
|
+
/* @__PURE__ */ jsx66(
|
|
7163
7303
|
"img",
|
|
7164
7304
|
{
|
|
7165
7305
|
src: brand.fullLogoSrc,
|
|
@@ -7167,7 +7307,7 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7167
7307
|
className: "hidden min-[600px]:block h-7 w-auto shrink-0 object-contain object-left"
|
|
7168
7308
|
}
|
|
7169
7309
|
),
|
|
7170
|
-
/* @__PURE__ */
|
|
7310
|
+
/* @__PURE__ */ jsx66(
|
|
7171
7311
|
"img",
|
|
7172
7312
|
{
|
|
7173
7313
|
src: brand.iconLogoSrc,
|
|
@@ -7175,13 +7315,13 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7175
7315
|
className: "min-[600px]:hidden size-7 shrink-0 object-contain"
|
|
7176
7316
|
}
|
|
7177
7317
|
),
|
|
7178
|
-
/* @__PURE__ */
|
|
7318
|
+
/* @__PURE__ */ jsx66("div", { className: "hidden min-[600px]:flex items-center gap-1", children: links.map((l) => /* @__PURE__ */ jsx66(Button, { variant: "tertiary", size: "sm", onClick: l.onClick, children: l.label }, l.label)) })
|
|
7179
7319
|
] }),
|
|
7180
|
-
/* @__PURE__ */
|
|
7181
|
-
signIn && /* @__PURE__ */
|
|
7182
|
-
signUp && /* @__PURE__ */
|
|
7320
|
+
/* @__PURE__ */ jsxs35("div", { className: "hidden min-[600px]:flex items-center gap-2", children: [
|
|
7321
|
+
signIn && /* @__PURE__ */ jsx66(Button, { variant: "tertiary", size: "sm", onClick: signIn.onClick, children: (_a = signIn.label) != null ? _a : "Sign in" }),
|
|
7322
|
+
signUp && /* @__PURE__ */ jsx66(Button, { size: "sm", onClick: signUp.onClick, children: (_b = signUp.label) != null ? _b : "Sign up" })
|
|
7183
7323
|
] }),
|
|
7184
|
-
/* @__PURE__ */
|
|
7324
|
+
/* @__PURE__ */ jsx66(
|
|
7185
7325
|
Button,
|
|
7186
7326
|
{
|
|
7187
7327
|
variant: "tertiary",
|
|
@@ -7190,12 +7330,12 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7190
7330
|
"aria-expanded": mobileMenuOpen,
|
|
7191
7331
|
className: "min-[600px]:hidden",
|
|
7192
7332
|
onClick: () => setMobileMenuOpen((prev) => !prev),
|
|
7193
|
-
children: mobileMenuOpen ? /* @__PURE__ */
|
|
7333
|
+
children: mobileMenuOpen ? /* @__PURE__ */ jsx66(X3, { className: "size-4" }) : /* @__PURE__ */ jsx66(Menu, { className: "size-4" })
|
|
7194
7334
|
}
|
|
7195
7335
|
)
|
|
7196
7336
|
] }),
|
|
7197
|
-
mobileMenuOpen && /* @__PURE__ */
|
|
7198
|
-
links.map((l) => /* @__PURE__ */
|
|
7337
|
+
mobileMenuOpen && /* @__PURE__ */ jsxs35("div", { className: "min-[600px]:hidden flex flex-col border-t border-border-subtle px-layout-margin-inline py-3 gap-1", children: [
|
|
7338
|
+
links.map((l) => /* @__PURE__ */ jsx66(
|
|
7199
7339
|
Button,
|
|
7200
7340
|
{
|
|
7201
7341
|
variant: "tertiary",
|
|
@@ -7206,18 +7346,18 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7206
7346
|
},
|
|
7207
7347
|
l.label
|
|
7208
7348
|
)),
|
|
7209
|
-
(signIn || signUp) && /* @__PURE__ */
|
|
7210
|
-
signIn && /* @__PURE__ */
|
|
7211
|
-
signUp && /* @__PURE__ */
|
|
7349
|
+
(signIn || signUp) && /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-2 pt-3 mt-2 border-t border-border-subtle", children: [
|
|
7350
|
+
signIn && /* @__PURE__ */ jsx66(Button, { variant: "secondary", size: "sm", className: "w-full", onClick: signIn.onClick, children: (_c = signIn.label) != null ? _c : "Sign in" }),
|
|
7351
|
+
signUp && /* @__PURE__ */ jsx66(Button, { size: "sm", className: "w-full", onClick: signUp.onClick, children: (_d = signUp.label) != null ? _d : "Sign up" })
|
|
7212
7352
|
] })
|
|
7213
7353
|
] })
|
|
7214
7354
|
] }) });
|
|
7215
7355
|
}
|
|
7216
7356
|
|
|
7217
7357
|
// components/blocks/open-positions-block.tsx
|
|
7218
|
-
import * as
|
|
7219
|
-
import { History as History2, X as
|
|
7220
|
-
import { jsx as
|
|
7358
|
+
import * as React18 from "react";
|
|
7359
|
+
import { History as History2, X as X4 } from "lucide-react";
|
|
7360
|
+
import { jsx as jsx67, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
7221
7361
|
function OpenPositionsBlock({
|
|
7222
7362
|
trigger,
|
|
7223
7363
|
sheetTitle = "Positions",
|
|
@@ -7226,28 +7366,28 @@ function OpenPositionsBlock({
|
|
|
7226
7366
|
emptyState
|
|
7227
7367
|
}) {
|
|
7228
7368
|
const isMobile = useIsMobile();
|
|
7229
|
-
const body = positions.length === 0 ? emptyState != null ? emptyState : /* @__PURE__ */
|
|
7369
|
+
const body = positions.length === 0 ? emptyState != null ? emptyState : /* @__PURE__ */ jsx67(DefaultEmptyState, { onViewHistory }) : /* @__PURE__ */ jsx67(PositionsList, { positions, onViewHistory });
|
|
7230
7370
|
if (isMobile) {
|
|
7231
|
-
return /* @__PURE__ */
|
|
7232
|
-
/* @__PURE__ */
|
|
7233
|
-
/* @__PURE__ */
|
|
7234
|
-
/* @__PURE__ */
|
|
7235
|
-
/* @__PURE__ */
|
|
7236
|
-
/* @__PURE__ */
|
|
7371
|
+
return /* @__PURE__ */ jsxs36(Drawer, { children: [
|
|
7372
|
+
/* @__PURE__ */ jsx67(DrawerTrigger, { asChild: true, children: trigger }),
|
|
7373
|
+
/* @__PURE__ */ jsxs36(DrawerContent, { className: "p-0 flex flex-col", children: [
|
|
7374
|
+
/* @__PURE__ */ jsxs36(DrawerHeader, { className: "flex-row items-center justify-between px-4 py-3 shrink-0 text-left", children: [
|
|
7375
|
+
/* @__PURE__ */ jsx67(DrawerTitle, { className: "text-base font-semibold font-display text-on-prominent", children: sheetTitle }),
|
|
7376
|
+
/* @__PURE__ */ jsx67(DrawerClose, { asChild: true, children: /* @__PURE__ */ jsx67(NavigationButton, { size: "sm", "aria-label": "Close", children: /* @__PURE__ */ jsx67(X4, {}) }) })
|
|
7237
7377
|
] }),
|
|
7238
|
-
/* @__PURE__ */
|
|
7378
|
+
/* @__PURE__ */ jsx67(Separator, {}),
|
|
7239
7379
|
body
|
|
7240
7380
|
] })
|
|
7241
7381
|
] });
|
|
7242
7382
|
}
|
|
7243
|
-
return /* @__PURE__ */
|
|
7244
|
-
/* @__PURE__ */
|
|
7245
|
-
/* @__PURE__ */
|
|
7246
|
-
/* @__PURE__ */
|
|
7247
|
-
/* @__PURE__ */
|
|
7248
|
-
/* @__PURE__ */
|
|
7383
|
+
return /* @__PURE__ */ jsxs36(Sheet, { children: [
|
|
7384
|
+
/* @__PURE__ */ jsx67(SheetTrigger, { asChild: true, children: trigger }),
|
|
7385
|
+
/* @__PURE__ */ jsxs36(SheetContent, { side: "right", showCloseButton: false, className: "p-0 flex flex-col w-80 sm:max-w-xs", children: [
|
|
7386
|
+
/* @__PURE__ */ jsxs36(SheetHeader, { className: "flex-row items-center justify-between px-4 py-3 shrink-0", children: [
|
|
7387
|
+
/* @__PURE__ */ jsx67(SheetTitle, { className: "text-base font-semibold font-display text-on-prominent", children: sheetTitle }),
|
|
7388
|
+
/* @__PURE__ */ jsx67(SheetClose, { asChild: true, children: /* @__PURE__ */ jsx67(NavigationButton, { size: "sm", "aria-label": "Close", children: /* @__PURE__ */ jsx67(X4, {}) }) })
|
|
7249
7389
|
] }),
|
|
7250
|
-
/* @__PURE__ */
|
|
7390
|
+
/* @__PURE__ */ jsx67(Separator, {}),
|
|
7251
7391
|
body
|
|
7252
7392
|
] })
|
|
7253
7393
|
] });
|
|
@@ -7256,26 +7396,26 @@ function PositionsList({
|
|
|
7256
7396
|
positions,
|
|
7257
7397
|
onViewHistory
|
|
7258
7398
|
}) {
|
|
7259
|
-
return /* @__PURE__ */
|
|
7260
|
-
/* @__PURE__ */
|
|
7261
|
-
/* @__PURE__ */
|
|
7262
|
-
i < positions.length - 1 && /* @__PURE__ */
|
|
7399
|
+
return /* @__PURE__ */ jsxs36("div", { className: "flex flex-col flex-1 min-h-0", children: [
|
|
7400
|
+
/* @__PURE__ */ jsx67(ItemGroup, { className: "min-h-0 overflow-y-auto", children: positions.map((pos, i) => /* @__PURE__ */ jsxs36(React18.Fragment, { children: [
|
|
7401
|
+
/* @__PURE__ */ jsx67(PositionRow, { position: pos }),
|
|
7402
|
+
i < positions.length - 1 && /* @__PURE__ */ jsx67("div", { className: "h-px mx-4 bg-border-subtle" })
|
|
7263
7403
|
] }, i)) }),
|
|
7264
|
-
/* @__PURE__ */
|
|
7265
|
-
/* @__PURE__ */
|
|
7404
|
+
/* @__PURE__ */ jsx67(Separator, {}),
|
|
7405
|
+
/* @__PURE__ */ jsx67("div", { className: "shrink-0 flex justify-center py-4", children: /* @__PURE__ */ jsx67(Button, { variant: "tertiary", size: "md", onClick: onViewHistory, children: "View transaction history" }) })
|
|
7266
7406
|
] });
|
|
7267
7407
|
}
|
|
7268
7408
|
function PositionRow({ position }) {
|
|
7269
7409
|
const { label, suffix } = positionTitleParts(position);
|
|
7270
|
-
return /* @__PURE__ */
|
|
7271
|
-
/* @__PURE__ */
|
|
7272
|
-
/* @__PURE__ */
|
|
7273
|
-
/* @__PURE__ */
|
|
7274
|
-
suffix && /* @__PURE__ */
|
|
7410
|
+
return /* @__PURE__ */ jsxs36(Item, { size: "sm", children: [
|
|
7411
|
+
/* @__PURE__ */ jsxs36(ItemContent, { children: [
|
|
7412
|
+
/* @__PURE__ */ jsxs36(ItemTitle, { children: [
|
|
7413
|
+
/* @__PURE__ */ jsx67("span", { className: "text-on-prominent", children: label }),
|
|
7414
|
+
suffix && /* @__PURE__ */ jsx67("span", { className: "text-on-subtle", children: ` ${suffix}` })
|
|
7275
7415
|
] }),
|
|
7276
|
-
/* @__PURE__ */
|
|
7416
|
+
/* @__PURE__ */ jsx67(MetaNote, { market: position.market, duration: position.duration })
|
|
7277
7417
|
] }),
|
|
7278
|
-
/* @__PURE__ */
|
|
7418
|
+
/* @__PURE__ */ jsx67(ItemActions, { children: /* @__PURE__ */ jsx67(PnlMeta, { pnl: position.pnl, win: position.win, stake: position.stake }) })
|
|
7279
7419
|
] });
|
|
7280
7420
|
}
|
|
7281
7421
|
var DIGITS_TYPE_LABEL = {
|
|
@@ -7301,23 +7441,23 @@ function positionTitleParts(p) {
|
|
|
7301
7441
|
}
|
|
7302
7442
|
}
|
|
7303
7443
|
function MetaNote({ market, duration }) {
|
|
7304
|
-
return /* @__PURE__ */
|
|
7444
|
+
return /* @__PURE__ */ jsxs36("span", { className: "text-xs text-on-subtle whitespace-nowrap", children: [
|
|
7305
7445
|
market,
|
|
7306
7446
|
" \xB7 ",
|
|
7307
7447
|
duration
|
|
7308
7448
|
] });
|
|
7309
7449
|
}
|
|
7310
7450
|
function PnlMeta({ pnl, win, stake }) {
|
|
7311
|
-
return /* @__PURE__ */
|
|
7312
|
-
/* @__PURE__ */
|
|
7313
|
-
/* @__PURE__ */
|
|
7451
|
+
return /* @__PURE__ */ jsxs36("div", { className: "flex flex-col items-end gap-0.5", children: [
|
|
7452
|
+
/* @__PURE__ */ jsx67("span", { className: `font-display font-bold tabular-nums text-base ${win ? "text-semantic-win" : "text-semantic-loss"}`, children: pnl }),
|
|
7453
|
+
/* @__PURE__ */ jsx67("span", { className: "tabular-nums text-xs text-on-subtle", children: stake })
|
|
7314
7454
|
] });
|
|
7315
7455
|
}
|
|
7316
7456
|
function DefaultEmptyState({ onViewHistory }) {
|
|
7317
|
-
return /* @__PURE__ */
|
|
7318
|
-
/* @__PURE__ */
|
|
7319
|
-
/* @__PURE__ */
|
|
7320
|
-
/* @__PURE__ */
|
|
7457
|
+
return /* @__PURE__ */ jsx67(Empty, { className: "flex min-h-0 flex-1 flex-col justify-center border-none rounded-none p-6 text-center", children: /* @__PURE__ */ jsxs36(EmptyHeader, { className: "gap-4", children: [
|
|
7458
|
+
/* @__PURE__ */ jsx67(EmptyMedia, { children: /* @__PURE__ */ jsx67(History2, { className: "size-8 text-on-subtle" }) }),
|
|
7459
|
+
/* @__PURE__ */ jsx67(EmptyTitle, { className: "text-base leading-6 font-semibold tracking-normal body-md text-on-subtle", children: "No trades yet." }),
|
|
7460
|
+
/* @__PURE__ */ jsx67(Button, { variant: "tertiary", size: "md", onClick: onViewHistory, children: "View transaction history" })
|
|
7321
7461
|
] }) });
|
|
7322
7462
|
}
|
|
7323
7463
|
export {
|
|
@@ -7347,6 +7487,7 @@ export {
|
|
|
7347
7487
|
AvatarGroupCount,
|
|
7348
7488
|
AvatarImage,
|
|
7349
7489
|
Badge,
|
|
7490
|
+
Banner,
|
|
7350
7491
|
Breadcrumb,
|
|
7351
7492
|
BreadcrumbEllipsis,
|
|
7352
7493
|
BreadcrumbItem,
|