@trading-game/design-intelligence-layer 0.16.1 → 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/dist/index.cjs +935 -780
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -1
- package/dist/index.d.ts +46 -1
- package/dist/index.js +906 -752
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -817,17 +817,170 @@ function Badge(_a) {
|
|
|
817
817
|
);
|
|
818
818
|
}
|
|
819
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
|
+
|
|
820
973
|
// components/ui/breadcrumb.tsx
|
|
821
974
|
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
822
975
|
import { Slot as Slot3 } from "radix-ui";
|
|
823
|
-
import { jsx as
|
|
976
|
+
import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
824
977
|
function Breadcrumb(_a) {
|
|
825
978
|
var props = __objRest(_a, []);
|
|
826
|
-
return /* @__PURE__ */
|
|
979
|
+
return /* @__PURE__ */ jsx10("nav", __spreadValues({ "aria-label": "breadcrumb", "data-slot": "breadcrumb" }, props));
|
|
827
980
|
}
|
|
828
981
|
function BreadcrumbList(_a) {
|
|
829
982
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
830
|
-
return /* @__PURE__ */
|
|
983
|
+
return /* @__PURE__ */ jsx10(
|
|
831
984
|
"ol",
|
|
832
985
|
__spreadValues({
|
|
833
986
|
"data-slot": "breadcrumb-list",
|
|
@@ -840,7 +993,7 @@ function BreadcrumbList(_a) {
|
|
|
840
993
|
}
|
|
841
994
|
function BreadcrumbItem(_a) {
|
|
842
995
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
843
|
-
return /* @__PURE__ */
|
|
996
|
+
return /* @__PURE__ */ jsx10(
|
|
844
997
|
"li",
|
|
845
998
|
__spreadValues({
|
|
846
999
|
"data-slot": "breadcrumb-item",
|
|
@@ -857,7 +1010,7 @@ function BreadcrumbLink(_a) {
|
|
|
857
1010
|
"className"
|
|
858
1011
|
]);
|
|
859
1012
|
const Comp = asChild ? Slot3.Root : "a";
|
|
860
|
-
return /* @__PURE__ */
|
|
1013
|
+
return /* @__PURE__ */ jsx10(
|
|
861
1014
|
Comp,
|
|
862
1015
|
__spreadValues({
|
|
863
1016
|
"data-slot": "breadcrumb-link",
|
|
@@ -867,7 +1020,7 @@ function BreadcrumbLink(_a) {
|
|
|
867
1020
|
}
|
|
868
1021
|
function BreadcrumbPage(_a) {
|
|
869
1022
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
870
|
-
return /* @__PURE__ */
|
|
1023
|
+
return /* @__PURE__ */ jsx10(
|
|
871
1024
|
"span",
|
|
872
1025
|
__spreadValues({
|
|
873
1026
|
"data-slot": "breadcrumb-page",
|
|
@@ -886,7 +1039,7 @@ function BreadcrumbSeparator(_a) {
|
|
|
886
1039
|
"children",
|
|
887
1040
|
"className"
|
|
888
1041
|
]);
|
|
889
|
-
return /* @__PURE__ */
|
|
1042
|
+
return /* @__PURE__ */ jsx10(
|
|
890
1043
|
"li",
|
|
891
1044
|
__spreadProps(__spreadValues({
|
|
892
1045
|
"data-slot": "breadcrumb-separator",
|
|
@@ -894,7 +1047,7 @@ function BreadcrumbSeparator(_a) {
|
|
|
894
1047
|
"aria-hidden": "true",
|
|
895
1048
|
className: cn("[&>svg]:size-3.5", className)
|
|
896
1049
|
}, props), {
|
|
897
|
-
children: children != null ? children : /* @__PURE__ */
|
|
1050
|
+
children: children != null ? children : /* @__PURE__ */ jsx10(ChevronRight, {})
|
|
898
1051
|
})
|
|
899
1052
|
);
|
|
900
1053
|
}
|
|
@@ -904,7 +1057,7 @@ function BreadcrumbEllipsis(_a) {
|
|
|
904
1057
|
} = _b, props = __objRest(_b, [
|
|
905
1058
|
"className"
|
|
906
1059
|
]);
|
|
907
|
-
return /* @__PURE__ */
|
|
1060
|
+
return /* @__PURE__ */ jsxs7(
|
|
908
1061
|
"span",
|
|
909
1062
|
__spreadProps(__spreadValues({
|
|
910
1063
|
"data-slot": "breadcrumb-ellipsis",
|
|
@@ -913,15 +1066,15 @@ function BreadcrumbEllipsis(_a) {
|
|
|
913
1066
|
className: cn("flex size-9 items-center justify-center", className)
|
|
914
1067
|
}, props), {
|
|
915
1068
|
children: [
|
|
916
|
-
/* @__PURE__ */
|
|
917
|
-
/* @__PURE__ */
|
|
1069
|
+
/* @__PURE__ */ jsx10(MoreHorizontal, { className: "size-4" }),
|
|
1070
|
+
/* @__PURE__ */ jsx10("span", { className: "sr-only", children: "More" })
|
|
918
1071
|
]
|
|
919
1072
|
})
|
|
920
1073
|
);
|
|
921
1074
|
}
|
|
922
1075
|
|
|
923
1076
|
// components/ui/calendar.tsx
|
|
924
|
-
import * as
|
|
1077
|
+
import * as React3 from "react";
|
|
925
1078
|
import {
|
|
926
1079
|
ChevronDownIcon as ChevronDownIcon2,
|
|
927
1080
|
ChevronLeftIcon,
|
|
@@ -931,7 +1084,7 @@ import {
|
|
|
931
1084
|
DayPicker,
|
|
932
1085
|
getDefaultClassNames
|
|
933
1086
|
} from "react-day-picker";
|
|
934
|
-
import { jsx as
|
|
1087
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
935
1088
|
function Calendar(_a) {
|
|
936
1089
|
var _b = _a, {
|
|
937
1090
|
className,
|
|
@@ -951,7 +1104,7 @@ function Calendar(_a) {
|
|
|
951
1104
|
"components"
|
|
952
1105
|
]);
|
|
953
1106
|
const defaultClassNames = getDefaultClassNames();
|
|
954
|
-
return /* @__PURE__ */
|
|
1107
|
+
return /* @__PURE__ */ jsx11(
|
|
955
1108
|
DayPicker,
|
|
956
1109
|
__spreadValues({
|
|
957
1110
|
showOutsideDays,
|
|
@@ -1050,7 +1203,7 @@ function Calendar(_a) {
|
|
|
1050
1203
|
components: __spreadValues({
|
|
1051
1204
|
Root: (_a2) => {
|
|
1052
1205
|
var _b2 = _a2, { className: className2, rootRef } = _b2, props2 = __objRest(_b2, ["className", "rootRef"]);
|
|
1053
|
-
return /* @__PURE__ */
|
|
1206
|
+
return /* @__PURE__ */ jsx11(
|
|
1054
1207
|
"div",
|
|
1055
1208
|
__spreadValues({
|
|
1056
1209
|
"data-slot": "calendar",
|
|
@@ -1062,22 +1215,22 @@ function Calendar(_a) {
|
|
|
1062
1215
|
Chevron: (_c) => {
|
|
1063
1216
|
var _d = _c, { className: className2, orientation } = _d, props2 = __objRest(_d, ["className", "orientation"]);
|
|
1064
1217
|
if (orientation === "left") {
|
|
1065
|
-
return /* @__PURE__ */
|
|
1218
|
+
return /* @__PURE__ */ jsx11(ChevronLeftIcon, __spreadValues({ className: cn("size-4", className2) }, props2));
|
|
1066
1219
|
}
|
|
1067
1220
|
if (orientation === "right") {
|
|
1068
|
-
return /* @__PURE__ */
|
|
1221
|
+
return /* @__PURE__ */ jsx11(
|
|
1069
1222
|
ChevronRightIcon,
|
|
1070
1223
|
__spreadValues({
|
|
1071
1224
|
className: cn("size-4", className2)
|
|
1072
1225
|
}, props2)
|
|
1073
1226
|
);
|
|
1074
1227
|
}
|
|
1075
|
-
return /* @__PURE__ */
|
|
1228
|
+
return /* @__PURE__ */ jsx11(ChevronDownIcon2, __spreadValues({ className: cn("size-4", className2) }, props2));
|
|
1076
1229
|
},
|
|
1077
1230
|
DayButton: CalendarDayButton,
|
|
1078
1231
|
WeekNumber: (_e) => {
|
|
1079
1232
|
var _f = _e, { children } = _f, props2 = __objRest(_f, ["children"]);
|
|
1080
|
-
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 }) }));
|
|
1081
1234
|
}
|
|
1082
1235
|
}, components)
|
|
1083
1236
|
}, props)
|
|
@@ -1094,12 +1247,12 @@ function CalendarDayButton(_a) {
|
|
|
1094
1247
|
"modifiers"
|
|
1095
1248
|
]);
|
|
1096
1249
|
const defaultClassNames = getDefaultClassNames();
|
|
1097
|
-
const ref =
|
|
1098
|
-
|
|
1250
|
+
const ref = React3.useRef(null);
|
|
1251
|
+
React3.useEffect(() => {
|
|
1099
1252
|
var _a2;
|
|
1100
1253
|
if (modifiers.focused) (_a2 = ref.current) == null ? void 0 : _a2.focus();
|
|
1101
1254
|
}, [modifiers.focused]);
|
|
1102
|
-
return /* @__PURE__ */
|
|
1255
|
+
return /* @__PURE__ */ jsx11(
|
|
1103
1256
|
Button,
|
|
1104
1257
|
__spreadValues({
|
|
1105
1258
|
ref,
|
|
@@ -1121,10 +1274,10 @@ function CalendarDayButton(_a) {
|
|
|
1121
1274
|
}
|
|
1122
1275
|
|
|
1123
1276
|
// components/ui/card.tsx
|
|
1124
|
-
import { jsx as
|
|
1277
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1125
1278
|
function Card(_a) {
|
|
1126
1279
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1127
|
-
return /* @__PURE__ */
|
|
1280
|
+
return /* @__PURE__ */ jsx12(
|
|
1128
1281
|
"div",
|
|
1129
1282
|
__spreadValues({
|
|
1130
1283
|
"data-slot": "card",
|
|
@@ -1137,7 +1290,7 @@ function Card(_a) {
|
|
|
1137
1290
|
}
|
|
1138
1291
|
function CardHeader(_a) {
|
|
1139
1292
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1140
|
-
return /* @__PURE__ */
|
|
1293
|
+
return /* @__PURE__ */ jsx12(
|
|
1141
1294
|
"div",
|
|
1142
1295
|
__spreadValues({
|
|
1143
1296
|
"data-slot": "card-header",
|
|
@@ -1150,7 +1303,7 @@ function CardHeader(_a) {
|
|
|
1150
1303
|
}
|
|
1151
1304
|
function CardTitle(_a) {
|
|
1152
1305
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1153
|
-
return /* @__PURE__ */
|
|
1306
|
+
return /* @__PURE__ */ jsx12(
|
|
1154
1307
|
"div",
|
|
1155
1308
|
__spreadValues({
|
|
1156
1309
|
"data-slot": "card-title",
|
|
@@ -1160,7 +1313,7 @@ function CardTitle(_a) {
|
|
|
1160
1313
|
}
|
|
1161
1314
|
function CardDescription(_a) {
|
|
1162
1315
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1163
|
-
return /* @__PURE__ */
|
|
1316
|
+
return /* @__PURE__ */ jsx12(
|
|
1164
1317
|
"div",
|
|
1165
1318
|
__spreadValues({
|
|
1166
1319
|
"data-slot": "card-description",
|
|
@@ -1170,7 +1323,7 @@ function CardDescription(_a) {
|
|
|
1170
1323
|
}
|
|
1171
1324
|
function CardAction(_a) {
|
|
1172
1325
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1173
|
-
return /* @__PURE__ */
|
|
1326
|
+
return /* @__PURE__ */ jsx12(
|
|
1174
1327
|
"div",
|
|
1175
1328
|
__spreadValues({
|
|
1176
1329
|
"data-slot": "card-action",
|
|
@@ -1183,7 +1336,7 @@ function CardAction(_a) {
|
|
|
1183
1336
|
}
|
|
1184
1337
|
function CardContent(_a) {
|
|
1185
1338
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1186
|
-
return /* @__PURE__ */
|
|
1339
|
+
return /* @__PURE__ */ jsx12(
|
|
1187
1340
|
"div",
|
|
1188
1341
|
__spreadValues({
|
|
1189
1342
|
"data-slot": "card-content",
|
|
@@ -1193,7 +1346,7 @@ function CardContent(_a) {
|
|
|
1193
1346
|
}
|
|
1194
1347
|
function CardFooter(_a) {
|
|
1195
1348
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1196
|
-
return /* @__PURE__ */
|
|
1349
|
+
return /* @__PURE__ */ jsx12(
|
|
1197
1350
|
"div",
|
|
1198
1351
|
__spreadValues({
|
|
1199
1352
|
"data-slot": "card-footer",
|
|
@@ -1203,13 +1356,13 @@ function CardFooter(_a) {
|
|
|
1203
1356
|
}
|
|
1204
1357
|
|
|
1205
1358
|
// components/ui/carousel.tsx
|
|
1206
|
-
import * as
|
|
1359
|
+
import * as React4 from "react";
|
|
1207
1360
|
import useEmblaCarousel from "embla-carousel-react";
|
|
1208
1361
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
1209
|
-
import { jsx as
|
|
1210
|
-
var CarouselContext =
|
|
1362
|
+
import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1363
|
+
var CarouselContext = React4.createContext(null);
|
|
1211
1364
|
function useCarousel() {
|
|
1212
|
-
const context =
|
|
1365
|
+
const context = React4.useContext(CarouselContext);
|
|
1213
1366
|
if (!context) {
|
|
1214
1367
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1215
1368
|
}
|
|
@@ -1237,20 +1390,20 @@ function Carousel(_a) {
|
|
|
1237
1390
|
}),
|
|
1238
1391
|
plugins
|
|
1239
1392
|
);
|
|
1240
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
1241
|
-
const [canScrollNext, setCanScrollNext] =
|
|
1242
|
-
const onSelect =
|
|
1393
|
+
const [canScrollPrev, setCanScrollPrev] = React4.useState(false);
|
|
1394
|
+
const [canScrollNext, setCanScrollNext] = React4.useState(false);
|
|
1395
|
+
const onSelect = React4.useCallback((api2) => {
|
|
1243
1396
|
if (!api2) return;
|
|
1244
1397
|
setCanScrollPrev(api2.canScrollPrev());
|
|
1245
1398
|
setCanScrollNext(api2.canScrollNext());
|
|
1246
1399
|
}, []);
|
|
1247
|
-
const scrollPrev =
|
|
1400
|
+
const scrollPrev = React4.useCallback(() => {
|
|
1248
1401
|
api == null ? void 0 : api.scrollPrev();
|
|
1249
1402
|
}, [api]);
|
|
1250
|
-
const scrollNext =
|
|
1403
|
+
const scrollNext = React4.useCallback(() => {
|
|
1251
1404
|
api == null ? void 0 : api.scrollNext();
|
|
1252
1405
|
}, [api]);
|
|
1253
|
-
const handleKeyDown =
|
|
1406
|
+
const handleKeyDown = React4.useCallback(
|
|
1254
1407
|
(event) => {
|
|
1255
1408
|
if (event.key === "ArrowLeft") {
|
|
1256
1409
|
event.preventDefault();
|
|
@@ -1262,11 +1415,11 @@ function Carousel(_a) {
|
|
|
1262
1415
|
},
|
|
1263
1416
|
[scrollPrev, scrollNext]
|
|
1264
1417
|
);
|
|
1265
|
-
|
|
1418
|
+
React4.useEffect(() => {
|
|
1266
1419
|
if (!api || !setApi) return;
|
|
1267
1420
|
setApi(api);
|
|
1268
1421
|
}, [api, setApi]);
|
|
1269
|
-
|
|
1422
|
+
React4.useEffect(() => {
|
|
1270
1423
|
if (!api) return;
|
|
1271
1424
|
onSelect(api);
|
|
1272
1425
|
api.on("reInit", onSelect);
|
|
@@ -1275,7 +1428,7 @@ function Carousel(_a) {
|
|
|
1275
1428
|
api == null ? void 0 : api.off("select", onSelect);
|
|
1276
1429
|
};
|
|
1277
1430
|
}, [api, onSelect]);
|
|
1278
|
-
return /* @__PURE__ */
|
|
1431
|
+
return /* @__PURE__ */ jsx13(
|
|
1279
1432
|
CarouselContext.Provider,
|
|
1280
1433
|
{
|
|
1281
1434
|
value: {
|
|
@@ -1288,7 +1441,7 @@ function Carousel(_a) {
|
|
|
1288
1441
|
canScrollPrev,
|
|
1289
1442
|
canScrollNext
|
|
1290
1443
|
},
|
|
1291
|
-
children: /* @__PURE__ */
|
|
1444
|
+
children: /* @__PURE__ */ jsx13(
|
|
1292
1445
|
"div",
|
|
1293
1446
|
__spreadProps(__spreadValues({
|
|
1294
1447
|
onKeyDownCapture: handleKeyDown,
|
|
@@ -1306,13 +1459,13 @@ function Carousel(_a) {
|
|
|
1306
1459
|
function CarouselContent(_a) {
|
|
1307
1460
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1308
1461
|
const { carouselRef, orientation } = useCarousel();
|
|
1309
|
-
return /* @__PURE__ */
|
|
1462
|
+
return /* @__PURE__ */ jsx13(
|
|
1310
1463
|
"div",
|
|
1311
1464
|
{
|
|
1312
1465
|
ref: carouselRef,
|
|
1313
1466
|
className: "overflow-hidden",
|
|
1314
1467
|
"data-slot": "carousel-content",
|
|
1315
|
-
children: /* @__PURE__ */
|
|
1468
|
+
children: /* @__PURE__ */ jsx13(
|
|
1316
1469
|
"div",
|
|
1317
1470
|
__spreadValues({
|
|
1318
1471
|
className: cn(
|
|
@@ -1328,7 +1481,7 @@ function CarouselContent(_a) {
|
|
|
1328
1481
|
function CarouselItem(_a) {
|
|
1329
1482
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1330
1483
|
const { orientation } = useCarousel();
|
|
1331
|
-
return /* @__PURE__ */
|
|
1484
|
+
return /* @__PURE__ */ jsx13(
|
|
1332
1485
|
"div",
|
|
1333
1486
|
__spreadValues({
|
|
1334
1487
|
role: "group",
|
|
@@ -1353,7 +1506,7 @@ function CarouselPrevious(_a) {
|
|
|
1353
1506
|
"size"
|
|
1354
1507
|
]);
|
|
1355
1508
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1356
|
-
return /* @__PURE__ */
|
|
1509
|
+
return /* @__PURE__ */ jsxs8(
|
|
1357
1510
|
Button,
|
|
1358
1511
|
__spreadProps(__spreadValues({
|
|
1359
1512
|
"data-slot": "carousel-previous",
|
|
@@ -1368,8 +1521,8 @@ function CarouselPrevious(_a) {
|
|
|
1368
1521
|
onClick: scrollPrev
|
|
1369
1522
|
}, props), {
|
|
1370
1523
|
children: [
|
|
1371
|
-
/* @__PURE__ */
|
|
1372
|
-
/* @__PURE__ */
|
|
1524
|
+
/* @__PURE__ */ jsx13(ArrowLeft, {}),
|
|
1525
|
+
/* @__PURE__ */ jsx13("span", { className: "sr-only", children: "Previous slide" })
|
|
1373
1526
|
]
|
|
1374
1527
|
})
|
|
1375
1528
|
);
|
|
@@ -1385,7 +1538,7 @@ function CarouselNext(_a) {
|
|
|
1385
1538
|
"size"
|
|
1386
1539
|
]);
|
|
1387
1540
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1388
|
-
return /* @__PURE__ */
|
|
1541
|
+
return /* @__PURE__ */ jsxs8(
|
|
1389
1542
|
Button,
|
|
1390
1543
|
__spreadProps(__spreadValues({
|
|
1391
1544
|
"data-slot": "carousel-next",
|
|
@@ -1400,21 +1553,21 @@ function CarouselNext(_a) {
|
|
|
1400
1553
|
onClick: scrollNext
|
|
1401
1554
|
}, props), {
|
|
1402
1555
|
children: [
|
|
1403
|
-
/* @__PURE__ */
|
|
1404
|
-
/* @__PURE__ */
|
|
1556
|
+
/* @__PURE__ */ jsx13(ArrowRight, {}),
|
|
1557
|
+
/* @__PURE__ */ jsx13("span", { className: "sr-only", children: "Next slide" })
|
|
1405
1558
|
]
|
|
1406
1559
|
})
|
|
1407
1560
|
);
|
|
1408
1561
|
}
|
|
1409
1562
|
|
|
1410
1563
|
// components/ui/chart.tsx
|
|
1411
|
-
import * as
|
|
1564
|
+
import * as React5 from "react";
|
|
1412
1565
|
import * as RechartsPrimitive from "recharts";
|
|
1413
|
-
import { Fragment as
|
|
1566
|
+
import { Fragment as Fragment4, jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1414
1567
|
var THEMES = { light: "" };
|
|
1415
|
-
var ChartContext =
|
|
1568
|
+
var ChartContext = React5.createContext(null);
|
|
1416
1569
|
function useChart() {
|
|
1417
|
-
const context =
|
|
1570
|
+
const context = React5.useContext(ChartContext);
|
|
1418
1571
|
if (!context) {
|
|
1419
1572
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
1420
1573
|
}
|
|
@@ -1432,9 +1585,9 @@ function ChartContainer(_a) {
|
|
|
1432
1585
|
"children",
|
|
1433
1586
|
"config"
|
|
1434
1587
|
]);
|
|
1435
|
-
const uniqueId =
|
|
1588
|
+
const uniqueId = React5.useId();
|
|
1436
1589
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
1437
|
-
return /* @__PURE__ */
|
|
1590
|
+
return /* @__PURE__ */ jsx14(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs9(
|
|
1438
1591
|
"div",
|
|
1439
1592
|
__spreadProps(__spreadValues({
|
|
1440
1593
|
"data-slot": "chart",
|
|
@@ -1445,8 +1598,8 @@ function ChartContainer(_a) {
|
|
|
1445
1598
|
)
|
|
1446
1599
|
}, props), {
|
|
1447
1600
|
children: [
|
|
1448
|
-
/* @__PURE__ */
|
|
1449
|
-
/* @__PURE__ */
|
|
1601
|
+
/* @__PURE__ */ jsx14(ChartStyle, { id: chartId, config }),
|
|
1602
|
+
/* @__PURE__ */ jsx14(RechartsPrimitive.ResponsiveContainer, { children })
|
|
1450
1603
|
]
|
|
1451
1604
|
})
|
|
1452
1605
|
) });
|
|
@@ -1458,7 +1611,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
1458
1611
|
if (!colorConfig.length) {
|
|
1459
1612
|
return null;
|
|
1460
1613
|
}
|
|
1461
|
-
return /* @__PURE__ */
|
|
1614
|
+
return /* @__PURE__ */ jsx14(
|
|
1462
1615
|
"style",
|
|
1463
1616
|
{
|
|
1464
1617
|
dangerouslySetInnerHTML: {
|
|
@@ -1494,7 +1647,7 @@ function ChartTooltipContent({
|
|
|
1494
1647
|
labelKey
|
|
1495
1648
|
}) {
|
|
1496
1649
|
const { config } = useChart();
|
|
1497
|
-
const tooltipLabel =
|
|
1650
|
+
const tooltipLabel = React5.useMemo(() => {
|
|
1498
1651
|
var _a;
|
|
1499
1652
|
if (hideLabel || !(payload == null ? void 0 : payload.length)) {
|
|
1500
1653
|
return null;
|
|
@@ -1504,12 +1657,12 @@ function ChartTooltipContent({
|
|
|
1504
1657
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1505
1658
|
const value = !labelKey && typeof label === "string" ? ((_a = config[label]) == null ? void 0 : _a.label) || label : itemConfig == null ? void 0 : itemConfig.label;
|
|
1506
1659
|
if (labelFormatter) {
|
|
1507
|
-
return /* @__PURE__ */
|
|
1660
|
+
return /* @__PURE__ */ jsx14("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
1508
1661
|
}
|
|
1509
1662
|
if (!value) {
|
|
1510
1663
|
return null;
|
|
1511
1664
|
}
|
|
1512
|
-
return /* @__PURE__ */
|
|
1665
|
+
return /* @__PURE__ */ jsx14("div", { className: cn("font-medium", labelClassName), children: value });
|
|
1513
1666
|
}, [
|
|
1514
1667
|
label,
|
|
1515
1668
|
labelFormatter,
|
|
@@ -1523,7 +1676,7 @@ function ChartTooltipContent({
|
|
|
1523
1676
|
return null;
|
|
1524
1677
|
}
|
|
1525
1678
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
1526
|
-
return /* @__PURE__ */
|
|
1679
|
+
return /* @__PURE__ */ jsxs9(
|
|
1527
1680
|
"div",
|
|
1528
1681
|
{
|
|
1529
1682
|
className: cn(
|
|
@@ -1532,19 +1685,19 @@ function ChartTooltipContent({
|
|
|
1532
1685
|
),
|
|
1533
1686
|
children: [
|
|
1534
1687
|
!nestLabel ? tooltipLabel : null,
|
|
1535
|
-
/* @__PURE__ */
|
|
1688
|
+
/* @__PURE__ */ jsx14("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
1536
1689
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
1537
1690
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1538
1691
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
1539
|
-
return /* @__PURE__ */
|
|
1692
|
+
return /* @__PURE__ */ jsx14(
|
|
1540
1693
|
"div",
|
|
1541
1694
|
{
|
|
1542
1695
|
className: cn(
|
|
1543
1696
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-on-subtle",
|
|
1544
1697
|
indicator === "dot" && "items-center"
|
|
1545
1698
|
),
|
|
1546
|
-
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */
|
|
1547
|
-
(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(
|
|
1548
1701
|
"div",
|
|
1549
1702
|
{
|
|
1550
1703
|
className: cn(
|
|
@@ -1562,7 +1715,7 @@ function ChartTooltipContent({
|
|
|
1562
1715
|
}
|
|
1563
1716
|
}
|
|
1564
1717
|
),
|
|
1565
|
-
/* @__PURE__ */
|
|
1718
|
+
/* @__PURE__ */ jsxs9(
|
|
1566
1719
|
"div",
|
|
1567
1720
|
{
|
|
1568
1721
|
className: cn(
|
|
@@ -1570,11 +1723,11 @@ function ChartTooltipContent({
|
|
|
1570
1723
|
nestLabel ? "items-end" : "items-center"
|
|
1571
1724
|
),
|
|
1572
1725
|
children: [
|
|
1573
|
-
/* @__PURE__ */
|
|
1726
|
+
/* @__PURE__ */ jsxs9("div", { className: "grid gap-1.5", children: [
|
|
1574
1727
|
nestLabel ? tooltipLabel : null,
|
|
1575
|
-
/* @__PURE__ */
|
|
1728
|
+
/* @__PURE__ */ jsx14("span", { className: "text-on-subtle", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
|
|
1576
1729
|
] }),
|
|
1577
|
-
item.value && /* @__PURE__ */
|
|
1730
|
+
item.value && /* @__PURE__ */ jsx14("span", { className: "font-mono font-medium text-on-prominent tabular-nums", children: item.value.toLocaleString() })
|
|
1578
1731
|
]
|
|
1579
1732
|
}
|
|
1580
1733
|
)
|
|
@@ -1599,7 +1752,7 @@ function ChartLegendContent({
|
|
|
1599
1752
|
if (!(payload == null ? void 0 : payload.length)) {
|
|
1600
1753
|
return null;
|
|
1601
1754
|
}
|
|
1602
|
-
return /* @__PURE__ */
|
|
1755
|
+
return /* @__PURE__ */ jsx14(
|
|
1603
1756
|
"div",
|
|
1604
1757
|
{
|
|
1605
1758
|
className: cn(
|
|
@@ -1610,14 +1763,14 @@ function ChartLegendContent({
|
|
|
1610
1763
|
children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
1611
1764
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1612
1765
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1613
|
-
return /* @__PURE__ */
|
|
1766
|
+
return /* @__PURE__ */ jsxs9(
|
|
1614
1767
|
"div",
|
|
1615
1768
|
{
|
|
1616
1769
|
className: cn(
|
|
1617
1770
|
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-on-subtle"
|
|
1618
1771
|
),
|
|
1619
1772
|
children: [
|
|
1620
|
-
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */
|
|
1773
|
+
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ jsx14(itemConfig.icon, {}) : /* @__PURE__ */ jsx14(
|
|
1621
1774
|
"div",
|
|
1622
1775
|
{
|
|
1623
1776
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -1652,14 +1805,14 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1652
1805
|
// components/ui/checkbox.tsx
|
|
1653
1806
|
import { CheckIcon } from "lucide-react";
|
|
1654
1807
|
import { Checkbox as CheckboxPrimitive } from "radix-ui";
|
|
1655
|
-
import { jsx as
|
|
1808
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1656
1809
|
function Checkbox(_a) {
|
|
1657
1810
|
var _b = _a, {
|
|
1658
1811
|
className
|
|
1659
1812
|
} = _b, props = __objRest(_b, [
|
|
1660
1813
|
"className"
|
|
1661
1814
|
]);
|
|
1662
|
-
return /* @__PURE__ */
|
|
1815
|
+
return /* @__PURE__ */ jsx15(
|
|
1663
1816
|
CheckboxPrimitive.Root,
|
|
1664
1817
|
__spreadProps(__spreadValues({
|
|
1665
1818
|
"data-slot": "checkbox",
|
|
@@ -1668,12 +1821,12 @@ function Checkbox(_a) {
|
|
|
1668
1821
|
className
|
|
1669
1822
|
)
|
|
1670
1823
|
}, props), {
|
|
1671
|
-
children: /* @__PURE__ */
|
|
1824
|
+
children: /* @__PURE__ */ jsx15(
|
|
1672
1825
|
CheckboxPrimitive.Indicator,
|
|
1673
1826
|
{
|
|
1674
1827
|
"data-slot": "checkbox-indicator",
|
|
1675
1828
|
className: "grid place-content-center text-current transition-none",
|
|
1676
|
-
children: /* @__PURE__ */
|
|
1829
|
+
children: /* @__PURE__ */ jsx15(CheckIcon, { className: "size-3.5" })
|
|
1677
1830
|
}
|
|
1678
1831
|
)
|
|
1679
1832
|
})
|
|
@@ -1682,14 +1835,14 @@ function Checkbox(_a) {
|
|
|
1682
1835
|
|
|
1683
1836
|
// components/ui/collapsible.tsx
|
|
1684
1837
|
import { Collapsible as CollapsiblePrimitive } from "radix-ui";
|
|
1685
|
-
import { jsx as
|
|
1838
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1686
1839
|
function Collapsible(_a) {
|
|
1687
1840
|
var props = __objRest(_a, []);
|
|
1688
|
-
return /* @__PURE__ */
|
|
1841
|
+
return /* @__PURE__ */ jsx16(CollapsiblePrimitive.Root, __spreadValues({ "data-slot": "collapsible" }, props));
|
|
1689
1842
|
}
|
|
1690
1843
|
function CollapsibleTrigger(_a) {
|
|
1691
1844
|
var props = __objRest(_a, []);
|
|
1692
|
-
return /* @__PURE__ */
|
|
1845
|
+
return /* @__PURE__ */ jsx16(
|
|
1693
1846
|
CollapsiblePrimitive.CollapsibleTrigger,
|
|
1694
1847
|
__spreadValues({
|
|
1695
1848
|
"data-slot": "collapsible-trigger"
|
|
@@ -1698,7 +1851,7 @@ function CollapsibleTrigger(_a) {
|
|
|
1698
1851
|
}
|
|
1699
1852
|
function CollapsibleContent(_a) {
|
|
1700
1853
|
var props = __objRest(_a, []);
|
|
1701
|
-
return /* @__PURE__ */
|
|
1854
|
+
return /* @__PURE__ */ jsx16(
|
|
1702
1855
|
CollapsiblePrimitive.CollapsibleContent,
|
|
1703
1856
|
__spreadValues({
|
|
1704
1857
|
"data-slot": "collapsible-content"
|
|
@@ -1707,17 +1860,17 @@ function CollapsibleContent(_a) {
|
|
|
1707
1860
|
}
|
|
1708
1861
|
|
|
1709
1862
|
// components/ui/combobox.tsx
|
|
1710
|
-
import * as
|
|
1863
|
+
import * as React7 from "react";
|
|
1711
1864
|
import { Combobox as ComboboxPrimitive } from "@base-ui/react";
|
|
1712
1865
|
import { CheckIcon as CheckIcon2, ChevronDownIcon as ChevronDownIcon3, XIcon } from "lucide-react";
|
|
1713
1866
|
|
|
1714
1867
|
// components/ui/input-group.tsx
|
|
1715
|
-
import * as
|
|
1868
|
+
import * as React6 from "react";
|
|
1716
1869
|
import { cva as cva5 } from "class-variance-authority";
|
|
1717
1870
|
|
|
1718
1871
|
// components/ui/input.tsx
|
|
1719
1872
|
import { cva as cva4 } from "class-variance-authority";
|
|
1720
|
-
import { jsx as
|
|
1873
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1721
1874
|
var inputVariants = cva4(
|
|
1722
1875
|
[
|
|
1723
1876
|
"w-full min-w-0 rounded-sm border border-border-subtle bg-white/5",
|
|
@@ -1751,7 +1904,7 @@ function Input(_a) {
|
|
|
1751
1904
|
"type",
|
|
1752
1905
|
"size"
|
|
1753
1906
|
]);
|
|
1754
|
-
return /* @__PURE__ */
|
|
1907
|
+
return /* @__PURE__ */ jsx17(
|
|
1755
1908
|
"input",
|
|
1756
1909
|
__spreadValues({
|
|
1757
1910
|
type,
|
|
@@ -1763,10 +1916,10 @@ function Input(_a) {
|
|
|
1763
1916
|
}
|
|
1764
1917
|
|
|
1765
1918
|
// components/ui/textarea.tsx
|
|
1766
|
-
import { jsx as
|
|
1919
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1767
1920
|
function Textarea(_a) {
|
|
1768
1921
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1769
|
-
return /* @__PURE__ */
|
|
1922
|
+
return /* @__PURE__ */ jsx18(
|
|
1770
1923
|
"textarea",
|
|
1771
1924
|
__spreadValues({
|
|
1772
1925
|
"data-slot": "textarea",
|
|
@@ -1779,8 +1932,8 @@ function Textarea(_a) {
|
|
|
1779
1932
|
}
|
|
1780
1933
|
|
|
1781
1934
|
// components/ui/input-group.tsx
|
|
1782
|
-
import { jsx as
|
|
1783
|
-
var InputGroupSizeContext =
|
|
1935
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1936
|
+
var InputGroupSizeContext = React6.createContext("md");
|
|
1784
1937
|
var inputGroupVariants = cva5(
|
|
1785
1938
|
[
|
|
1786
1939
|
"group/input-group relative flex w-full items-center rounded-sm border border-border-subtle bg-white/5",
|
|
@@ -1818,7 +1971,7 @@ function InputGroup(_a) {
|
|
|
1818
1971
|
"className",
|
|
1819
1972
|
"size"
|
|
1820
1973
|
]);
|
|
1821
|
-
return /* @__PURE__ */
|
|
1974
|
+
return /* @__PURE__ */ jsx19(InputGroupSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsx19(
|
|
1822
1975
|
"div",
|
|
1823
1976
|
__spreadValues({
|
|
1824
1977
|
"data-slot": "input-group",
|
|
@@ -1863,7 +2016,7 @@ function InputGroupAddon(_a) {
|
|
|
1863
2016
|
"className",
|
|
1864
2017
|
"align"
|
|
1865
2018
|
]);
|
|
1866
|
-
return /* @__PURE__ */
|
|
2019
|
+
return /* @__PURE__ */ jsx19(
|
|
1867
2020
|
"div",
|
|
1868
2021
|
__spreadValues({
|
|
1869
2022
|
role: "group",
|
|
@@ -1908,7 +2061,7 @@ function InputGroupButton(_a) {
|
|
|
1908
2061
|
"variant",
|
|
1909
2062
|
"size"
|
|
1910
2063
|
]);
|
|
1911
|
-
return /* @__PURE__ */
|
|
2064
|
+
return /* @__PURE__ */ jsx19(
|
|
1912
2065
|
Button,
|
|
1913
2066
|
__spreadValues({
|
|
1914
2067
|
type,
|
|
@@ -1920,7 +2073,7 @@ function InputGroupButton(_a) {
|
|
|
1920
2073
|
}
|
|
1921
2074
|
function InputGroupText(_a) {
|
|
1922
2075
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1923
|
-
return /* @__PURE__ */
|
|
2076
|
+
return /* @__PURE__ */ jsx19(
|
|
1924
2077
|
"span",
|
|
1925
2078
|
__spreadValues({
|
|
1926
2079
|
className: cn(
|
|
@@ -1942,9 +2095,9 @@ function InputGroupInput(_a) {
|
|
|
1942
2095
|
"className",
|
|
1943
2096
|
"size"
|
|
1944
2097
|
]);
|
|
1945
|
-
const groupSize =
|
|
2098
|
+
const groupSize = React6.useContext(InputGroupSizeContext);
|
|
1946
2099
|
const size = sizeProp != null ? sizeProp : groupSize;
|
|
1947
|
-
return /* @__PURE__ */
|
|
2100
|
+
return /* @__PURE__ */ jsx19(
|
|
1948
2101
|
Input,
|
|
1949
2102
|
__spreadValues({
|
|
1950
2103
|
"data-slot": "input-group-control",
|
|
@@ -1962,7 +2115,7 @@ function InputGroupTextarea(_a) {
|
|
|
1962
2115
|
} = _b, props = __objRest(_b, [
|
|
1963
2116
|
"className"
|
|
1964
2117
|
]);
|
|
1965
|
-
return /* @__PURE__ */
|
|
2118
|
+
return /* @__PURE__ */ jsx19(
|
|
1966
2119
|
Textarea,
|
|
1967
2120
|
__spreadValues({
|
|
1968
2121
|
"data-slot": "input-group-control",
|
|
@@ -1975,11 +2128,11 @@ function InputGroupTextarea(_a) {
|
|
|
1975
2128
|
}
|
|
1976
2129
|
|
|
1977
2130
|
// components/ui/combobox.tsx
|
|
1978
|
-
import { jsx as
|
|
2131
|
+
import { jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1979
2132
|
var Combobox = ComboboxPrimitive.Root;
|
|
1980
2133
|
function ComboboxValue(_a) {
|
|
1981
2134
|
var props = __objRest(_a, []);
|
|
1982
|
-
return /* @__PURE__ */
|
|
2135
|
+
return /* @__PURE__ */ jsx20(ComboboxPrimitive.Value, __spreadValues({ "data-slot": "combobox-value" }, props));
|
|
1983
2136
|
}
|
|
1984
2137
|
function ComboboxTrigger(_a) {
|
|
1985
2138
|
var _b = _a, {
|
|
@@ -1989,7 +2142,7 @@ function ComboboxTrigger(_a) {
|
|
|
1989
2142
|
"className",
|
|
1990
2143
|
"children"
|
|
1991
2144
|
]);
|
|
1992
|
-
return /* @__PURE__ */
|
|
2145
|
+
return /* @__PURE__ */ jsxs10(
|
|
1993
2146
|
ComboboxPrimitive.Trigger,
|
|
1994
2147
|
__spreadProps(__spreadValues({
|
|
1995
2148
|
"data-slot": "combobox-trigger",
|
|
@@ -1997,7 +2150,7 @@ function ComboboxTrigger(_a) {
|
|
|
1997
2150
|
}, props), {
|
|
1998
2151
|
children: [
|
|
1999
2152
|
children,
|
|
2000
|
-
/* @__PURE__ */
|
|
2153
|
+
/* @__PURE__ */ jsx20(
|
|
2001
2154
|
ChevronDownIcon3,
|
|
2002
2155
|
{
|
|
2003
2156
|
"data-slot": "combobox-trigger-icon",
|
|
@@ -2010,14 +2163,14 @@ function ComboboxTrigger(_a) {
|
|
|
2010
2163
|
}
|
|
2011
2164
|
function ComboboxClear(_a) {
|
|
2012
2165
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2013
|
-
return /* @__PURE__ */
|
|
2166
|
+
return /* @__PURE__ */ jsx20(
|
|
2014
2167
|
ComboboxPrimitive.Clear,
|
|
2015
2168
|
__spreadProps(__spreadValues({
|
|
2016
2169
|
"data-slot": "combobox-clear",
|
|
2017
|
-
render: /* @__PURE__ */
|
|
2170
|
+
render: /* @__PURE__ */ jsx20(InputGroupButton, { variant: "secondary", size: "icon-xs" }),
|
|
2018
2171
|
className: cn(className)
|
|
2019
2172
|
}, props), {
|
|
2020
|
-
children: /* @__PURE__ */
|
|
2173
|
+
children: /* @__PURE__ */ jsx20(XIcon, { className: "pointer-events-none" })
|
|
2021
2174
|
})
|
|
2022
2175
|
);
|
|
2023
2176
|
}
|
|
@@ -2035,15 +2188,15 @@ function ComboboxInput(_a) {
|
|
|
2035
2188
|
"showTrigger",
|
|
2036
2189
|
"showClear"
|
|
2037
2190
|
]);
|
|
2038
|
-
return /* @__PURE__ */
|
|
2039
|
-
/* @__PURE__ */
|
|
2191
|
+
return /* @__PURE__ */ jsxs10(InputGroup, { className: cn("w-auto", className), children: [
|
|
2192
|
+
/* @__PURE__ */ jsx20(
|
|
2040
2193
|
ComboboxPrimitive.Input,
|
|
2041
2194
|
__spreadValues({
|
|
2042
|
-
render: /* @__PURE__ */
|
|
2195
|
+
render: /* @__PURE__ */ jsx20(InputGroupInput, { disabled })
|
|
2043
2196
|
}, props)
|
|
2044
2197
|
),
|
|
2045
|
-
/* @__PURE__ */
|
|
2046
|
-
showTrigger && /* @__PURE__ */
|
|
2198
|
+
/* @__PURE__ */ jsxs10(InputGroupAddon, { align: "inline-end", children: [
|
|
2199
|
+
showTrigger && /* @__PURE__ */ jsx20(
|
|
2047
2200
|
InputGroupButton,
|
|
2048
2201
|
{
|
|
2049
2202
|
size: "icon-xs",
|
|
@@ -2052,10 +2205,10 @@ function ComboboxInput(_a) {
|
|
|
2052
2205
|
"data-slot": "input-group-button",
|
|
2053
2206
|
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
2054
2207
|
disabled,
|
|
2055
|
-
children: /* @__PURE__ */
|
|
2208
|
+
children: /* @__PURE__ */ jsx20(ComboboxTrigger, {})
|
|
2056
2209
|
}
|
|
2057
2210
|
),
|
|
2058
|
-
showClear && /* @__PURE__ */
|
|
2211
|
+
showClear && /* @__PURE__ */ jsx20(ComboboxClear, { disabled })
|
|
2059
2212
|
] }),
|
|
2060
2213
|
children
|
|
2061
2214
|
] });
|
|
@@ -2076,7 +2229,7 @@ function ComboboxContent(_a) {
|
|
|
2076
2229
|
"alignOffset",
|
|
2077
2230
|
"anchor"
|
|
2078
2231
|
]);
|
|
2079
|
-
return /* @__PURE__ */
|
|
2232
|
+
return /* @__PURE__ */ jsx20(ComboboxPrimitive.Portal, { children: /* @__PURE__ */ jsx20(
|
|
2080
2233
|
ComboboxPrimitive.Positioner,
|
|
2081
2234
|
{
|
|
2082
2235
|
side,
|
|
@@ -2085,7 +2238,7 @@ function ComboboxContent(_a) {
|
|
|
2085
2238
|
alignOffset,
|
|
2086
2239
|
anchor,
|
|
2087
2240
|
className: "isolate z-50",
|
|
2088
|
-
children: /* @__PURE__ */
|
|
2241
|
+
children: /* @__PURE__ */ jsx20(
|
|
2089
2242
|
ComboboxPrimitive.Popup,
|
|
2090
2243
|
__spreadValues({
|
|
2091
2244
|
"data-slot": "combobox-content",
|
|
@@ -2101,7 +2254,7 @@ function ComboboxContent(_a) {
|
|
|
2101
2254
|
}
|
|
2102
2255
|
function ComboboxList(_a) {
|
|
2103
2256
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2104
|
-
return /* @__PURE__ */
|
|
2257
|
+
return /* @__PURE__ */ jsx20(
|
|
2105
2258
|
ComboboxPrimitive.List,
|
|
2106
2259
|
__spreadValues({
|
|
2107
2260
|
"data-slot": "combobox-list",
|
|
@@ -2120,7 +2273,7 @@ function ComboboxItem(_a) {
|
|
|
2120
2273
|
"className",
|
|
2121
2274
|
"children"
|
|
2122
2275
|
]);
|
|
2123
|
-
return /* @__PURE__ */
|
|
2276
|
+
return /* @__PURE__ */ jsxs10(
|
|
2124
2277
|
ComboboxPrimitive.Item,
|
|
2125
2278
|
__spreadProps(__spreadValues({
|
|
2126
2279
|
"data-slot": "combobox-item",
|
|
@@ -2131,12 +2284,12 @@ function ComboboxItem(_a) {
|
|
|
2131
2284
|
}, props), {
|
|
2132
2285
|
children: [
|
|
2133
2286
|
children,
|
|
2134
|
-
/* @__PURE__ */
|
|
2287
|
+
/* @__PURE__ */ jsx20(
|
|
2135
2288
|
ComboboxPrimitive.ItemIndicator,
|
|
2136
2289
|
{
|
|
2137
2290
|
"data-slot": "combobox-item-indicator",
|
|
2138
|
-
render: /* @__PURE__ */
|
|
2139
|
-
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" })
|
|
2140
2293
|
}
|
|
2141
2294
|
)
|
|
2142
2295
|
]
|
|
@@ -2145,7 +2298,7 @@ function ComboboxItem(_a) {
|
|
|
2145
2298
|
}
|
|
2146
2299
|
function ComboboxGroup(_a) {
|
|
2147
2300
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2148
|
-
return /* @__PURE__ */
|
|
2301
|
+
return /* @__PURE__ */ jsx20(
|
|
2149
2302
|
ComboboxPrimitive.Group,
|
|
2150
2303
|
__spreadValues({
|
|
2151
2304
|
"data-slot": "combobox-group",
|
|
@@ -2159,7 +2312,7 @@ function ComboboxLabel(_a) {
|
|
|
2159
2312
|
} = _b, props = __objRest(_b, [
|
|
2160
2313
|
"className"
|
|
2161
2314
|
]);
|
|
2162
|
-
return /* @__PURE__ */
|
|
2315
|
+
return /* @__PURE__ */ jsx20(
|
|
2163
2316
|
ComboboxPrimitive.GroupLabel,
|
|
2164
2317
|
__spreadValues({
|
|
2165
2318
|
"data-slot": "combobox-label",
|
|
@@ -2172,11 +2325,11 @@ function ComboboxLabel(_a) {
|
|
|
2172
2325
|
}
|
|
2173
2326
|
function ComboboxCollection(_a) {
|
|
2174
2327
|
var props = __objRest(_a, []);
|
|
2175
|
-
return /* @__PURE__ */
|
|
2328
|
+
return /* @__PURE__ */ jsx20(ComboboxPrimitive.Collection, __spreadValues({ "data-slot": "combobox-collection" }, props));
|
|
2176
2329
|
}
|
|
2177
2330
|
function ComboboxEmpty(_a) {
|
|
2178
2331
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2179
|
-
return /* @__PURE__ */
|
|
2332
|
+
return /* @__PURE__ */ jsx20(
|
|
2180
2333
|
ComboboxPrimitive.Empty,
|
|
2181
2334
|
__spreadValues({
|
|
2182
2335
|
"data-slot": "combobox-empty",
|
|
@@ -2193,7 +2346,7 @@ function ComboboxSeparator(_a) {
|
|
|
2193
2346
|
} = _b, props = __objRest(_b, [
|
|
2194
2347
|
"className"
|
|
2195
2348
|
]);
|
|
2196
|
-
return /* @__PURE__ */
|
|
2349
|
+
return /* @__PURE__ */ jsx20(
|
|
2197
2350
|
ComboboxPrimitive.Separator,
|
|
2198
2351
|
__spreadValues({
|
|
2199
2352
|
"data-slot": "combobox-separator",
|
|
@@ -2207,7 +2360,7 @@ function ComboboxChips(_a) {
|
|
|
2207
2360
|
} = _b, props = __objRest(_b, [
|
|
2208
2361
|
"className"
|
|
2209
2362
|
]);
|
|
2210
|
-
return /* @__PURE__ */
|
|
2363
|
+
return /* @__PURE__ */ jsx20(
|
|
2211
2364
|
ComboboxPrimitive.Chips,
|
|
2212
2365
|
__spreadValues({
|
|
2213
2366
|
"data-slot": "combobox-chips",
|
|
@@ -2228,7 +2381,7 @@ function ComboboxChip(_a) {
|
|
|
2228
2381
|
"children",
|
|
2229
2382
|
"showRemove"
|
|
2230
2383
|
]);
|
|
2231
|
-
return /* @__PURE__ */
|
|
2384
|
+
return /* @__PURE__ */ jsxs10(
|
|
2232
2385
|
ComboboxPrimitive.Chip,
|
|
2233
2386
|
__spreadProps(__spreadValues({
|
|
2234
2387
|
"data-slot": "combobox-chip",
|
|
@@ -2239,13 +2392,13 @@ function ComboboxChip(_a) {
|
|
|
2239
2392
|
}, props), {
|
|
2240
2393
|
children: [
|
|
2241
2394
|
children,
|
|
2242
|
-
showRemove && /* @__PURE__ */
|
|
2395
|
+
showRemove && /* @__PURE__ */ jsx20(
|
|
2243
2396
|
ComboboxPrimitive.ChipRemove,
|
|
2244
2397
|
{
|
|
2245
|
-
render: /* @__PURE__ */
|
|
2398
|
+
render: /* @__PURE__ */ jsx20(Button, { variant: "secondary", size: "icon-xs" }),
|
|
2246
2399
|
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
2247
2400
|
"data-slot": "combobox-chip-remove",
|
|
2248
|
-
children: /* @__PURE__ */
|
|
2401
|
+
children: /* @__PURE__ */ jsx20(XIcon, { className: "pointer-events-none" })
|
|
2249
2402
|
}
|
|
2250
2403
|
)
|
|
2251
2404
|
]
|
|
@@ -2260,7 +2413,7 @@ function ComboboxChipsInput(_a) {
|
|
|
2260
2413
|
"className",
|
|
2261
2414
|
"children"
|
|
2262
2415
|
]);
|
|
2263
|
-
return /* @__PURE__ */
|
|
2416
|
+
return /* @__PURE__ */ jsx20(
|
|
2264
2417
|
ComboboxPrimitive.Input,
|
|
2265
2418
|
__spreadValues({
|
|
2266
2419
|
"data-slot": "combobox-chip-input",
|
|
@@ -2269,7 +2422,7 @@ function ComboboxChipsInput(_a) {
|
|
|
2269
2422
|
);
|
|
2270
2423
|
}
|
|
2271
2424
|
function useComboboxAnchor() {
|
|
2272
|
-
return
|
|
2425
|
+
return React7.useRef(null);
|
|
2273
2426
|
}
|
|
2274
2427
|
|
|
2275
2428
|
// components/ui/command.tsx
|
|
@@ -2279,22 +2432,22 @@ import { SearchIcon } from "lucide-react";
|
|
|
2279
2432
|
// components/ui/dialog.tsx
|
|
2280
2433
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
2281
2434
|
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
2282
|
-
import { jsx as
|
|
2435
|
+
import { jsx as jsx21, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2283
2436
|
function Dialog(_a) {
|
|
2284
2437
|
var props = __objRest(_a, []);
|
|
2285
|
-
return /* @__PURE__ */
|
|
2438
|
+
return /* @__PURE__ */ jsx21(DialogPrimitive.Root, __spreadValues({ "data-slot": "dialog" }, props));
|
|
2286
2439
|
}
|
|
2287
2440
|
function DialogTrigger(_a) {
|
|
2288
2441
|
var props = __objRest(_a, []);
|
|
2289
|
-
return /* @__PURE__ */
|
|
2442
|
+
return /* @__PURE__ */ jsx21(DialogPrimitive.Trigger, __spreadValues({ "data-slot": "dialog-trigger" }, props));
|
|
2290
2443
|
}
|
|
2291
2444
|
function DialogPortal(_a) {
|
|
2292
2445
|
var props = __objRest(_a, []);
|
|
2293
|
-
return /* @__PURE__ */
|
|
2446
|
+
return /* @__PURE__ */ jsx21(DialogPrimitive.Portal, __spreadValues({ "data-slot": "dialog-portal" }, props));
|
|
2294
2447
|
}
|
|
2295
2448
|
function DialogClose(_a) {
|
|
2296
2449
|
var props = __objRest(_a, []);
|
|
2297
|
-
return /* @__PURE__ */
|
|
2450
|
+
return /* @__PURE__ */ jsx21(DialogPrimitive.Close, __spreadValues({ "data-slot": "dialog-close" }, props));
|
|
2298
2451
|
}
|
|
2299
2452
|
function DialogOverlay(_a) {
|
|
2300
2453
|
var _b = _a, {
|
|
@@ -2302,7 +2455,7 @@ function DialogOverlay(_a) {
|
|
|
2302
2455
|
} = _b, props = __objRest(_b, [
|
|
2303
2456
|
"className"
|
|
2304
2457
|
]);
|
|
2305
|
-
return /* @__PURE__ */
|
|
2458
|
+
return /* @__PURE__ */ jsx21(
|
|
2306
2459
|
DialogPrimitive.Overlay,
|
|
2307
2460
|
__spreadValues({
|
|
2308
2461
|
"data-slot": "dialog-overlay",
|
|
@@ -2323,9 +2476,9 @@ function DialogContent(_a) {
|
|
|
2323
2476
|
"children",
|
|
2324
2477
|
"showCloseButton"
|
|
2325
2478
|
]);
|
|
2326
|
-
return /* @__PURE__ */
|
|
2327
|
-
/* @__PURE__ */
|
|
2328
|
-
/* @__PURE__ */
|
|
2479
|
+
return /* @__PURE__ */ jsxs11(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
2480
|
+
/* @__PURE__ */ jsx21(DialogOverlay, {}),
|
|
2481
|
+
/* @__PURE__ */ jsxs11(
|
|
2329
2482
|
DialogPrimitive.Content,
|
|
2330
2483
|
__spreadProps(__spreadValues({
|
|
2331
2484
|
"data-slot": "dialog-content",
|
|
@@ -2336,14 +2489,14 @@ function DialogContent(_a) {
|
|
|
2336
2489
|
}, props), {
|
|
2337
2490
|
children: [
|
|
2338
2491
|
children,
|
|
2339
|
-
showCloseButton && /* @__PURE__ */
|
|
2492
|
+
showCloseButton && /* @__PURE__ */ jsxs11(
|
|
2340
2493
|
DialogPrimitive.Close,
|
|
2341
2494
|
{
|
|
2342
2495
|
"data-slot": "dialog-close",
|
|
2343
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",
|
|
2344
2497
|
children: [
|
|
2345
|
-
/* @__PURE__ */
|
|
2346
|
-
/* @__PURE__ */
|
|
2498
|
+
/* @__PURE__ */ jsx21(XIcon2, {}),
|
|
2499
|
+
/* @__PURE__ */ jsx21("span", { className: "sr-only", children: "Close" })
|
|
2347
2500
|
]
|
|
2348
2501
|
}
|
|
2349
2502
|
)
|
|
@@ -2354,7 +2507,7 @@ function DialogContent(_a) {
|
|
|
2354
2507
|
}
|
|
2355
2508
|
function DialogHeader(_a) {
|
|
2356
2509
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2357
|
-
return /* @__PURE__ */
|
|
2510
|
+
return /* @__PURE__ */ jsx21(
|
|
2358
2511
|
"div",
|
|
2359
2512
|
__spreadValues({
|
|
2360
2513
|
"data-slot": "dialog-header",
|
|
@@ -2372,7 +2525,7 @@ function DialogFooter(_a) {
|
|
|
2372
2525
|
"showCloseButton",
|
|
2373
2526
|
"children"
|
|
2374
2527
|
]);
|
|
2375
|
-
return /* @__PURE__ */
|
|
2528
|
+
return /* @__PURE__ */ jsxs11(
|
|
2376
2529
|
"div",
|
|
2377
2530
|
__spreadProps(__spreadValues({
|
|
2378
2531
|
"data-slot": "dialog-footer",
|
|
@@ -2383,7 +2536,7 @@ function DialogFooter(_a) {
|
|
|
2383
2536
|
}, props), {
|
|
2384
2537
|
children: [
|
|
2385
2538
|
children,
|
|
2386
|
-
showCloseButton && /* @__PURE__ */
|
|
2539
|
+
showCloseButton && /* @__PURE__ */ jsx21(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx21(Button, { variant: "secondary", size: "md", children: "Close" }) })
|
|
2387
2540
|
]
|
|
2388
2541
|
})
|
|
2389
2542
|
);
|
|
@@ -2394,7 +2547,7 @@ function DialogTitle(_a) {
|
|
|
2394
2547
|
} = _b, props = __objRest(_b, [
|
|
2395
2548
|
"className"
|
|
2396
2549
|
]);
|
|
2397
|
-
return /* @__PURE__ */
|
|
2550
|
+
return /* @__PURE__ */ jsx21(
|
|
2398
2551
|
DialogPrimitive.Title,
|
|
2399
2552
|
__spreadValues({
|
|
2400
2553
|
"data-slot": "dialog-title",
|
|
@@ -2408,7 +2561,7 @@ function DialogDescription(_a) {
|
|
|
2408
2561
|
} = _b, props = __objRest(_b, [
|
|
2409
2562
|
"className"
|
|
2410
2563
|
]);
|
|
2411
|
-
return /* @__PURE__ */
|
|
2564
|
+
return /* @__PURE__ */ jsx21(
|
|
2412
2565
|
DialogPrimitive.Description,
|
|
2413
2566
|
__spreadValues({
|
|
2414
2567
|
"data-slot": "dialog-description",
|
|
@@ -2418,14 +2571,14 @@ function DialogDescription(_a) {
|
|
|
2418
2571
|
}
|
|
2419
2572
|
|
|
2420
2573
|
// components/ui/command.tsx
|
|
2421
|
-
import { jsx as
|
|
2574
|
+
import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2422
2575
|
function Command(_a) {
|
|
2423
2576
|
var _b = _a, {
|
|
2424
2577
|
className
|
|
2425
2578
|
} = _b, props = __objRest(_b, [
|
|
2426
2579
|
"className"
|
|
2427
2580
|
]);
|
|
2428
|
-
return /* @__PURE__ */
|
|
2581
|
+
return /* @__PURE__ */ jsx22(
|
|
2429
2582
|
CommandPrimitive,
|
|
2430
2583
|
__spreadValues({
|
|
2431
2584
|
"data-slot": "command",
|
|
@@ -2450,17 +2603,17 @@ function CommandDialog(_a) {
|
|
|
2450
2603
|
"className",
|
|
2451
2604
|
"showCloseButton"
|
|
2452
2605
|
]);
|
|
2453
|
-
return /* @__PURE__ */
|
|
2454
|
-
/* @__PURE__ */
|
|
2455
|
-
/* @__PURE__ */
|
|
2456
|
-
/* @__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 })
|
|
2457
2610
|
] }),
|
|
2458
|
-
/* @__PURE__ */
|
|
2611
|
+
/* @__PURE__ */ jsx22(
|
|
2459
2612
|
DialogContent,
|
|
2460
2613
|
{
|
|
2461
2614
|
className: cn("overflow-hidden p-0", className),
|
|
2462
2615
|
showCloseButton,
|
|
2463
|
-
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 })
|
|
2464
2617
|
}
|
|
2465
2618
|
)
|
|
2466
2619
|
] }));
|
|
@@ -2471,14 +2624,14 @@ function CommandInput(_a) {
|
|
|
2471
2624
|
} = _b, props = __objRest(_b, [
|
|
2472
2625
|
"className"
|
|
2473
2626
|
]);
|
|
2474
|
-
return /* @__PURE__ */
|
|
2627
|
+
return /* @__PURE__ */ jsxs12(
|
|
2475
2628
|
"div",
|
|
2476
2629
|
{
|
|
2477
2630
|
"data-slot": "command-input-wrapper",
|
|
2478
2631
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
2479
2632
|
children: [
|
|
2480
|
-
/* @__PURE__ */
|
|
2481
|
-
/* @__PURE__ */
|
|
2633
|
+
/* @__PURE__ */ jsx22(SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
|
|
2634
|
+
/* @__PURE__ */ jsx22(
|
|
2482
2635
|
CommandPrimitive.Input,
|
|
2483
2636
|
__spreadValues({
|
|
2484
2637
|
"data-slot": "command-input",
|
|
@@ -2498,7 +2651,7 @@ function CommandList(_a) {
|
|
|
2498
2651
|
} = _b, props = __objRest(_b, [
|
|
2499
2652
|
"className"
|
|
2500
2653
|
]);
|
|
2501
|
-
return /* @__PURE__ */
|
|
2654
|
+
return /* @__PURE__ */ jsx22(
|
|
2502
2655
|
CommandPrimitive.List,
|
|
2503
2656
|
__spreadValues({
|
|
2504
2657
|
"data-slot": "command-list",
|
|
@@ -2511,7 +2664,7 @@ function CommandList(_a) {
|
|
|
2511
2664
|
}
|
|
2512
2665
|
function CommandEmpty(_a) {
|
|
2513
2666
|
var props = __objRest(_a, []);
|
|
2514
|
-
return /* @__PURE__ */
|
|
2667
|
+
return /* @__PURE__ */ jsx22(
|
|
2515
2668
|
CommandPrimitive.Empty,
|
|
2516
2669
|
__spreadValues({
|
|
2517
2670
|
"data-slot": "command-empty",
|
|
@@ -2525,7 +2678,7 @@ function CommandGroup(_a) {
|
|
|
2525
2678
|
} = _b, props = __objRest(_b, [
|
|
2526
2679
|
"className"
|
|
2527
2680
|
]);
|
|
2528
|
-
return /* @__PURE__ */
|
|
2681
|
+
return /* @__PURE__ */ jsx22(
|
|
2529
2682
|
CommandPrimitive.Group,
|
|
2530
2683
|
__spreadValues({
|
|
2531
2684
|
"data-slot": "command-group",
|
|
@@ -2542,7 +2695,7 @@ function CommandSeparator(_a) {
|
|
|
2542
2695
|
} = _b, props = __objRest(_b, [
|
|
2543
2696
|
"className"
|
|
2544
2697
|
]);
|
|
2545
|
-
return /* @__PURE__ */
|
|
2698
|
+
return /* @__PURE__ */ jsx22(
|
|
2546
2699
|
CommandPrimitive.Separator,
|
|
2547
2700
|
__spreadValues({
|
|
2548
2701
|
"data-slot": "command-separator",
|
|
@@ -2556,7 +2709,7 @@ function CommandItem(_a) {
|
|
|
2556
2709
|
} = _b, props = __objRest(_b, [
|
|
2557
2710
|
"className"
|
|
2558
2711
|
]);
|
|
2559
|
-
return /* @__PURE__ */
|
|
2712
|
+
return /* @__PURE__ */ jsx22(
|
|
2560
2713
|
CommandPrimitive.Item,
|
|
2561
2714
|
__spreadValues({
|
|
2562
2715
|
"data-slot": "command-item",
|
|
@@ -2573,7 +2726,7 @@ function CommandShortcut(_a) {
|
|
|
2573
2726
|
} = _b, props = __objRest(_b, [
|
|
2574
2727
|
"className"
|
|
2575
2728
|
]);
|
|
2576
|
-
return /* @__PURE__ */
|
|
2729
|
+
return /* @__PURE__ */ jsx22(
|
|
2577
2730
|
"span",
|
|
2578
2731
|
__spreadValues({
|
|
2579
2732
|
"data-slot": "command-shortcut",
|
|
@@ -2588,30 +2741,30 @@ function CommandShortcut(_a) {
|
|
|
2588
2741
|
// components/ui/context-menu.tsx
|
|
2589
2742
|
import { CheckIcon as CheckIcon3, ChevronRightIcon as ChevronRightIcon2, CircleIcon } from "lucide-react";
|
|
2590
2743
|
import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
|
|
2591
|
-
import { jsx as
|
|
2744
|
+
import { jsx as jsx23, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2592
2745
|
function ContextMenu(_a) {
|
|
2593
2746
|
var props = __objRest(_a, []);
|
|
2594
|
-
return /* @__PURE__ */
|
|
2747
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Root, __spreadValues({ "data-slot": "context-menu" }, props));
|
|
2595
2748
|
}
|
|
2596
2749
|
function ContextMenuTrigger(_a) {
|
|
2597
2750
|
var props = __objRest(_a, []);
|
|
2598
|
-
return /* @__PURE__ */
|
|
2751
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Trigger, __spreadValues({ "data-slot": "context-menu-trigger" }, props));
|
|
2599
2752
|
}
|
|
2600
2753
|
function ContextMenuGroup(_a) {
|
|
2601
2754
|
var props = __objRest(_a, []);
|
|
2602
|
-
return /* @__PURE__ */
|
|
2755
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Group, __spreadValues({ "data-slot": "context-menu-group" }, props));
|
|
2603
2756
|
}
|
|
2604
2757
|
function ContextMenuPortal(_a) {
|
|
2605
2758
|
var props = __objRest(_a, []);
|
|
2606
|
-
return /* @__PURE__ */
|
|
2759
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Portal, __spreadValues({ "data-slot": "context-menu-portal" }, props));
|
|
2607
2760
|
}
|
|
2608
2761
|
function ContextMenuSub(_a) {
|
|
2609
2762
|
var props = __objRest(_a, []);
|
|
2610
|
-
return /* @__PURE__ */
|
|
2763
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Sub, __spreadValues({ "data-slot": "context-menu-sub" }, props));
|
|
2611
2764
|
}
|
|
2612
2765
|
function ContextMenuRadioGroup(_a) {
|
|
2613
2766
|
var props = __objRest(_a, []);
|
|
2614
|
-
return /* @__PURE__ */
|
|
2767
|
+
return /* @__PURE__ */ jsx23(
|
|
2615
2768
|
ContextMenuPrimitive.RadioGroup,
|
|
2616
2769
|
__spreadValues({
|
|
2617
2770
|
"data-slot": "context-menu-radio-group"
|
|
@@ -2628,7 +2781,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
2628
2781
|
"inset",
|
|
2629
2782
|
"children"
|
|
2630
2783
|
]);
|
|
2631
|
-
return /* @__PURE__ */
|
|
2784
|
+
return /* @__PURE__ */ jsxs13(
|
|
2632
2785
|
ContextMenuPrimitive.SubTrigger,
|
|
2633
2786
|
__spreadProps(__spreadValues({
|
|
2634
2787
|
"data-slot": "context-menu-sub-trigger",
|
|
@@ -2640,7 +2793,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
2640
2793
|
}, props), {
|
|
2641
2794
|
children: [
|
|
2642
2795
|
children,
|
|
2643
|
-
/* @__PURE__ */
|
|
2796
|
+
/* @__PURE__ */ jsx23(ChevronRightIcon2, { className: "ml-auto" })
|
|
2644
2797
|
]
|
|
2645
2798
|
})
|
|
2646
2799
|
);
|
|
@@ -2651,7 +2804,7 @@ function ContextMenuSubContent(_a) {
|
|
|
2651
2804
|
} = _b, props = __objRest(_b, [
|
|
2652
2805
|
"className"
|
|
2653
2806
|
]);
|
|
2654
|
-
return /* @__PURE__ */
|
|
2807
|
+
return /* @__PURE__ */ jsx23(
|
|
2655
2808
|
ContextMenuPrimitive.SubContent,
|
|
2656
2809
|
__spreadValues({
|
|
2657
2810
|
"data-slot": "context-menu-sub-content",
|
|
@@ -2668,7 +2821,7 @@ function ContextMenuContent(_a) {
|
|
|
2668
2821
|
} = _b, props = __objRest(_b, [
|
|
2669
2822
|
"className"
|
|
2670
2823
|
]);
|
|
2671
|
-
return /* @__PURE__ */
|
|
2824
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx23(
|
|
2672
2825
|
ContextMenuPrimitive.Content,
|
|
2673
2826
|
__spreadValues({
|
|
2674
2827
|
"data-slot": "context-menu-content",
|
|
@@ -2689,7 +2842,7 @@ function ContextMenuItem(_a) {
|
|
|
2689
2842
|
"inset",
|
|
2690
2843
|
"variant"
|
|
2691
2844
|
]);
|
|
2692
|
-
return /* @__PURE__ */
|
|
2845
|
+
return /* @__PURE__ */ jsx23(
|
|
2693
2846
|
ContextMenuPrimitive.Item,
|
|
2694
2847
|
__spreadValues({
|
|
2695
2848
|
"data-slot": "context-menu-item",
|
|
@@ -2712,7 +2865,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
2712
2865
|
"children",
|
|
2713
2866
|
"checked"
|
|
2714
2867
|
]);
|
|
2715
|
-
return /* @__PURE__ */
|
|
2868
|
+
return /* @__PURE__ */ jsxs13(
|
|
2716
2869
|
ContextMenuPrimitive.CheckboxItem,
|
|
2717
2870
|
__spreadProps(__spreadValues({
|
|
2718
2871
|
"data-slot": "context-menu-checkbox-item",
|
|
@@ -2723,7 +2876,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
2723
2876
|
checked
|
|
2724
2877
|
}, props), {
|
|
2725
2878
|
children: [
|
|
2726
|
-
/* @__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" }) }) }),
|
|
2727
2880
|
children
|
|
2728
2881
|
]
|
|
2729
2882
|
})
|
|
@@ -2737,7 +2890,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
2737
2890
|
"className",
|
|
2738
2891
|
"children"
|
|
2739
2892
|
]);
|
|
2740
|
-
return /* @__PURE__ */
|
|
2893
|
+
return /* @__PURE__ */ jsxs13(
|
|
2741
2894
|
ContextMenuPrimitive.RadioItem,
|
|
2742
2895
|
__spreadProps(__spreadValues({
|
|
2743
2896
|
"data-slot": "context-menu-radio-item",
|
|
@@ -2747,7 +2900,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
2747
2900
|
)
|
|
2748
2901
|
}, props), {
|
|
2749
2902
|
children: [
|
|
2750
|
-
/* @__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" }) }) }),
|
|
2751
2904
|
children
|
|
2752
2905
|
]
|
|
2753
2906
|
})
|
|
@@ -2761,7 +2914,7 @@ function ContextMenuLabel(_a) {
|
|
|
2761
2914
|
"className",
|
|
2762
2915
|
"inset"
|
|
2763
2916
|
]);
|
|
2764
|
-
return /* @__PURE__ */
|
|
2917
|
+
return /* @__PURE__ */ jsx23(
|
|
2765
2918
|
ContextMenuPrimitive.Label,
|
|
2766
2919
|
__spreadValues({
|
|
2767
2920
|
"data-slot": "context-menu-label",
|
|
@@ -2779,7 +2932,7 @@ function ContextMenuSeparator(_a) {
|
|
|
2779
2932
|
} = _b, props = __objRest(_b, [
|
|
2780
2933
|
"className"
|
|
2781
2934
|
]);
|
|
2782
|
-
return /* @__PURE__ */
|
|
2935
|
+
return /* @__PURE__ */ jsx23(
|
|
2783
2936
|
ContextMenuPrimitive.Separator,
|
|
2784
2937
|
__spreadValues({
|
|
2785
2938
|
"data-slot": "context-menu-separator",
|
|
@@ -2793,7 +2946,7 @@ function ContextMenuShortcut(_a) {
|
|
|
2793
2946
|
} = _b, props = __objRest(_b, [
|
|
2794
2947
|
"className"
|
|
2795
2948
|
]);
|
|
2796
|
-
return /* @__PURE__ */
|
|
2949
|
+
return /* @__PURE__ */ jsx23(
|
|
2797
2950
|
"span",
|
|
2798
2951
|
__spreadValues({
|
|
2799
2952
|
"data-slot": "context-menu-shortcut",
|
|
@@ -2807,34 +2960,34 @@ function ContextMenuShortcut(_a) {
|
|
|
2807
2960
|
|
|
2808
2961
|
// components/ui/direction.tsx
|
|
2809
2962
|
import { Direction } from "radix-ui";
|
|
2810
|
-
import { jsx as
|
|
2963
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2811
2964
|
function DirectionProvider({
|
|
2812
2965
|
dir,
|
|
2813
2966
|
direction,
|
|
2814
2967
|
children
|
|
2815
2968
|
}) {
|
|
2816
|
-
return /* @__PURE__ */
|
|
2969
|
+
return /* @__PURE__ */ jsx24(Direction.DirectionProvider, { dir: direction != null ? direction : dir, children });
|
|
2817
2970
|
}
|
|
2818
2971
|
var useDirection = Direction.useDirection;
|
|
2819
2972
|
|
|
2820
2973
|
// components/ui/drawer.tsx
|
|
2821
2974
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
2822
|
-
import { jsx as
|
|
2975
|
+
import { jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2823
2976
|
function Drawer(_a) {
|
|
2824
2977
|
var props = __objRest(_a, []);
|
|
2825
|
-
return /* @__PURE__ */
|
|
2978
|
+
return /* @__PURE__ */ jsx25(DrawerPrimitive.Root, __spreadValues({ "data-slot": "drawer" }, props));
|
|
2826
2979
|
}
|
|
2827
2980
|
function DrawerTrigger(_a) {
|
|
2828
2981
|
var props = __objRest(_a, []);
|
|
2829
|
-
return /* @__PURE__ */
|
|
2982
|
+
return /* @__PURE__ */ jsx25(DrawerPrimitive.Trigger, __spreadValues({ "data-slot": "drawer-trigger" }, props));
|
|
2830
2983
|
}
|
|
2831
2984
|
function DrawerPortal(_a) {
|
|
2832
2985
|
var props = __objRest(_a, []);
|
|
2833
|
-
return /* @__PURE__ */
|
|
2986
|
+
return /* @__PURE__ */ jsx25(DrawerPrimitive.Portal, __spreadValues({ "data-slot": "drawer-portal" }, props));
|
|
2834
2987
|
}
|
|
2835
2988
|
function DrawerClose(_a) {
|
|
2836
2989
|
var props = __objRest(_a, []);
|
|
2837
|
-
return /* @__PURE__ */
|
|
2990
|
+
return /* @__PURE__ */ jsx25(DrawerPrimitive.Close, __spreadValues({ "data-slot": "drawer-close" }, props));
|
|
2838
2991
|
}
|
|
2839
2992
|
function DrawerOverlay(_a) {
|
|
2840
2993
|
var _b = _a, {
|
|
@@ -2842,7 +2995,7 @@ function DrawerOverlay(_a) {
|
|
|
2842
2995
|
} = _b, props = __objRest(_b, [
|
|
2843
2996
|
"className"
|
|
2844
2997
|
]);
|
|
2845
|
-
return /* @__PURE__ */
|
|
2998
|
+
return /* @__PURE__ */ jsx25(
|
|
2846
2999
|
DrawerPrimitive.Overlay,
|
|
2847
3000
|
__spreadValues({
|
|
2848
3001
|
"data-slot": "drawer-overlay",
|
|
@@ -2861,9 +3014,9 @@ function DrawerContent(_a) {
|
|
|
2861
3014
|
"className",
|
|
2862
3015
|
"children"
|
|
2863
3016
|
]);
|
|
2864
|
-
return /* @__PURE__ */
|
|
2865
|
-
/* @__PURE__ */
|
|
2866
|
-
/* @__PURE__ */
|
|
3017
|
+
return /* @__PURE__ */ jsxs14(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
3018
|
+
/* @__PURE__ */ jsx25(DrawerOverlay, {}),
|
|
3019
|
+
/* @__PURE__ */ jsxs14(
|
|
2867
3020
|
DrawerPrimitive.Content,
|
|
2868
3021
|
__spreadProps(__spreadValues({
|
|
2869
3022
|
"data-slot": "drawer-content",
|
|
@@ -2877,7 +3030,7 @@ function DrawerContent(_a) {
|
|
|
2877
3030
|
)
|
|
2878
3031
|
}, props), {
|
|
2879
3032
|
children: [
|
|
2880
|
-
/* @__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" }),
|
|
2881
3034
|
children
|
|
2882
3035
|
]
|
|
2883
3036
|
})
|
|
@@ -2886,7 +3039,7 @@ function DrawerContent(_a) {
|
|
|
2886
3039
|
}
|
|
2887
3040
|
function DrawerHeader(_a) {
|
|
2888
3041
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2889
|
-
return /* @__PURE__ */
|
|
3042
|
+
return /* @__PURE__ */ jsx25(
|
|
2890
3043
|
"div",
|
|
2891
3044
|
__spreadValues({
|
|
2892
3045
|
"data-slot": "drawer-header",
|
|
@@ -2899,7 +3052,7 @@ function DrawerHeader(_a) {
|
|
|
2899
3052
|
}
|
|
2900
3053
|
function DrawerFooter(_a) {
|
|
2901
3054
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2902
|
-
return /* @__PURE__ */
|
|
3055
|
+
return /* @__PURE__ */ jsx25(
|
|
2903
3056
|
"div",
|
|
2904
3057
|
__spreadValues({
|
|
2905
3058
|
"data-slot": "drawer-footer",
|
|
@@ -2913,7 +3066,7 @@ function DrawerTitle(_a) {
|
|
|
2913
3066
|
} = _b, props = __objRest(_b, [
|
|
2914
3067
|
"className"
|
|
2915
3068
|
]);
|
|
2916
|
-
return /* @__PURE__ */
|
|
3069
|
+
return /* @__PURE__ */ jsx25(
|
|
2917
3070
|
DrawerPrimitive.Title,
|
|
2918
3071
|
__spreadValues({
|
|
2919
3072
|
"data-slot": "drawer-title",
|
|
@@ -2927,7 +3080,7 @@ function DrawerDescription(_a) {
|
|
|
2927
3080
|
} = _b, props = __objRest(_b, [
|
|
2928
3081
|
"className"
|
|
2929
3082
|
]);
|
|
2930
|
-
return /* @__PURE__ */
|
|
3083
|
+
return /* @__PURE__ */ jsx25(
|
|
2931
3084
|
DrawerPrimitive.Description,
|
|
2932
3085
|
__spreadValues({
|
|
2933
3086
|
"data-slot": "drawer-description",
|
|
@@ -2939,18 +3092,18 @@ function DrawerDescription(_a) {
|
|
|
2939
3092
|
// components/ui/dropdown-menu.tsx
|
|
2940
3093
|
import { CheckIcon as CheckIcon4, ChevronRightIcon as ChevronRightIcon3, CircleIcon as CircleIcon2 } from "lucide-react";
|
|
2941
3094
|
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
2942
|
-
import { jsx as
|
|
3095
|
+
import { jsx as jsx26, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2943
3096
|
function DropdownMenu(_a) {
|
|
2944
3097
|
var props = __objRest(_a, []);
|
|
2945
|
-
return /* @__PURE__ */
|
|
3098
|
+
return /* @__PURE__ */ jsx26(DropdownMenuPrimitive.Root, __spreadValues({ "data-slot": "dropdown-menu" }, props));
|
|
2946
3099
|
}
|
|
2947
3100
|
function DropdownMenuPortal(_a) {
|
|
2948
3101
|
var props = __objRest(_a, []);
|
|
2949
|
-
return /* @__PURE__ */
|
|
3102
|
+
return /* @__PURE__ */ jsx26(DropdownMenuPrimitive.Portal, __spreadValues({ "data-slot": "dropdown-menu-portal" }, props));
|
|
2950
3103
|
}
|
|
2951
3104
|
function DropdownMenuTrigger(_a) {
|
|
2952
3105
|
var props = __objRest(_a, []);
|
|
2953
|
-
return /* @__PURE__ */
|
|
3106
|
+
return /* @__PURE__ */ jsx26(
|
|
2954
3107
|
DropdownMenuPrimitive.Trigger,
|
|
2955
3108
|
__spreadValues({
|
|
2956
3109
|
"data-slot": "dropdown-menu-trigger"
|
|
@@ -2965,7 +3118,7 @@ function DropdownMenuContent(_a) {
|
|
|
2965
3118
|
"className",
|
|
2966
3119
|
"sideOffset"
|
|
2967
3120
|
]);
|
|
2968
|
-
return /* @__PURE__ */
|
|
3121
|
+
return /* @__PURE__ */ jsx26(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx26(
|
|
2969
3122
|
DropdownMenuPrimitive.Content,
|
|
2970
3123
|
__spreadValues({
|
|
2971
3124
|
"data-slot": "dropdown-menu-content",
|
|
@@ -2979,7 +3132,7 @@ function DropdownMenuContent(_a) {
|
|
|
2979
3132
|
}
|
|
2980
3133
|
function DropdownMenuGroup(_a) {
|
|
2981
3134
|
var props = __objRest(_a, []);
|
|
2982
|
-
return /* @__PURE__ */
|
|
3135
|
+
return /* @__PURE__ */ jsx26(DropdownMenuPrimitive.Group, __spreadValues({ "data-slot": "dropdown-menu-group" }, props));
|
|
2983
3136
|
}
|
|
2984
3137
|
function DropdownMenuItem(_a) {
|
|
2985
3138
|
var _b = _a, {
|
|
@@ -2991,7 +3144,7 @@ function DropdownMenuItem(_a) {
|
|
|
2991
3144
|
"inset",
|
|
2992
3145
|
"variant"
|
|
2993
3146
|
]);
|
|
2994
|
-
return /* @__PURE__ */
|
|
3147
|
+
return /* @__PURE__ */ jsx26(
|
|
2995
3148
|
DropdownMenuPrimitive.Item,
|
|
2996
3149
|
__spreadValues({
|
|
2997
3150
|
"data-slot": "dropdown-menu-item",
|
|
@@ -3014,7 +3167,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3014
3167
|
"children",
|
|
3015
3168
|
"checked"
|
|
3016
3169
|
]);
|
|
3017
|
-
return /* @__PURE__ */
|
|
3170
|
+
return /* @__PURE__ */ jsxs15(
|
|
3018
3171
|
DropdownMenuPrimitive.CheckboxItem,
|
|
3019
3172
|
__spreadProps(__spreadValues({
|
|
3020
3173
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
@@ -3025,7 +3178,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3025
3178
|
checked
|
|
3026
3179
|
}, props), {
|
|
3027
3180
|
children: [
|
|
3028
|
-
/* @__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" }) }) }),
|
|
3029
3182
|
children
|
|
3030
3183
|
]
|
|
3031
3184
|
})
|
|
@@ -3033,7 +3186,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3033
3186
|
}
|
|
3034
3187
|
function DropdownMenuRadioGroup(_a) {
|
|
3035
3188
|
var props = __objRest(_a, []);
|
|
3036
|
-
return /* @__PURE__ */
|
|
3189
|
+
return /* @__PURE__ */ jsx26(
|
|
3037
3190
|
DropdownMenuPrimitive.RadioGroup,
|
|
3038
3191
|
__spreadValues({
|
|
3039
3192
|
"data-slot": "dropdown-menu-radio-group"
|
|
@@ -3048,7 +3201,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
3048
3201
|
"className",
|
|
3049
3202
|
"children"
|
|
3050
3203
|
]);
|
|
3051
|
-
return /* @__PURE__ */
|
|
3204
|
+
return /* @__PURE__ */ jsxs15(
|
|
3052
3205
|
DropdownMenuPrimitive.RadioItem,
|
|
3053
3206
|
__spreadProps(__spreadValues({
|
|
3054
3207
|
"data-slot": "dropdown-menu-radio-item",
|
|
@@ -3058,7 +3211,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
3058
3211
|
)
|
|
3059
3212
|
}, props), {
|
|
3060
3213
|
children: [
|
|
3061
|
-
/* @__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" }) }) }),
|
|
3062
3215
|
children
|
|
3063
3216
|
]
|
|
3064
3217
|
})
|
|
@@ -3072,7 +3225,7 @@ function DropdownMenuLabel(_a) {
|
|
|
3072
3225
|
"className",
|
|
3073
3226
|
"inset"
|
|
3074
3227
|
]);
|
|
3075
|
-
return /* @__PURE__ */
|
|
3228
|
+
return /* @__PURE__ */ jsx26(
|
|
3076
3229
|
DropdownMenuPrimitive.Label,
|
|
3077
3230
|
__spreadValues({
|
|
3078
3231
|
"data-slot": "dropdown-menu-label",
|
|
@@ -3090,7 +3243,7 @@ function DropdownMenuSeparator(_a) {
|
|
|
3090
3243
|
} = _b, props = __objRest(_b, [
|
|
3091
3244
|
"className"
|
|
3092
3245
|
]);
|
|
3093
|
-
return /* @__PURE__ */
|
|
3246
|
+
return /* @__PURE__ */ jsx26(
|
|
3094
3247
|
DropdownMenuPrimitive.Separator,
|
|
3095
3248
|
__spreadValues({
|
|
3096
3249
|
"data-slot": "dropdown-menu-separator",
|
|
@@ -3104,7 +3257,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
3104
3257
|
} = _b, props = __objRest(_b, [
|
|
3105
3258
|
"className"
|
|
3106
3259
|
]);
|
|
3107
|
-
return /* @__PURE__ */
|
|
3260
|
+
return /* @__PURE__ */ jsx26(
|
|
3108
3261
|
"span",
|
|
3109
3262
|
__spreadValues({
|
|
3110
3263
|
"data-slot": "dropdown-menu-shortcut",
|
|
@@ -3117,7 +3270,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
3117
3270
|
}
|
|
3118
3271
|
function DropdownMenuSub(_a) {
|
|
3119
3272
|
var props = __objRest(_a, []);
|
|
3120
|
-
return /* @__PURE__ */
|
|
3273
|
+
return /* @__PURE__ */ jsx26(DropdownMenuPrimitive.Sub, __spreadValues({ "data-slot": "dropdown-menu-sub" }, props));
|
|
3121
3274
|
}
|
|
3122
3275
|
function DropdownMenuSubTrigger(_a) {
|
|
3123
3276
|
var _b = _a, {
|
|
@@ -3129,7 +3282,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
3129
3282
|
"inset",
|
|
3130
3283
|
"children"
|
|
3131
3284
|
]);
|
|
3132
|
-
return /* @__PURE__ */
|
|
3285
|
+
return /* @__PURE__ */ jsxs15(
|
|
3133
3286
|
DropdownMenuPrimitive.SubTrigger,
|
|
3134
3287
|
__spreadProps(__spreadValues({
|
|
3135
3288
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
@@ -3141,7 +3294,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
3141
3294
|
}, props), {
|
|
3142
3295
|
children: [
|
|
3143
3296
|
children,
|
|
3144
|
-
/* @__PURE__ */
|
|
3297
|
+
/* @__PURE__ */ jsx26(ChevronRightIcon3, { className: "ml-auto size-4" })
|
|
3145
3298
|
]
|
|
3146
3299
|
})
|
|
3147
3300
|
);
|
|
@@ -3152,7 +3305,7 @@ function DropdownMenuSubContent(_a) {
|
|
|
3152
3305
|
} = _b, props = __objRest(_b, [
|
|
3153
3306
|
"className"
|
|
3154
3307
|
]);
|
|
3155
|
-
return /* @__PURE__ */
|
|
3308
|
+
return /* @__PURE__ */ jsx26(
|
|
3156
3309
|
DropdownMenuPrimitive.SubContent,
|
|
3157
3310
|
__spreadValues({
|
|
3158
3311
|
"data-slot": "dropdown-menu-sub-content",
|
|
@@ -3166,10 +3319,10 @@ function DropdownMenuSubContent(_a) {
|
|
|
3166
3319
|
|
|
3167
3320
|
// components/ui/empty.tsx
|
|
3168
3321
|
import { cva as cva6 } from "class-variance-authority";
|
|
3169
|
-
import { jsx as
|
|
3322
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
3170
3323
|
function Empty(_a) {
|
|
3171
3324
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3172
|
-
return /* @__PURE__ */
|
|
3325
|
+
return /* @__PURE__ */ jsx27(
|
|
3173
3326
|
"div",
|
|
3174
3327
|
__spreadValues({
|
|
3175
3328
|
"data-slot": "empty",
|
|
@@ -3182,7 +3335,7 @@ function Empty(_a) {
|
|
|
3182
3335
|
}
|
|
3183
3336
|
function EmptyHeader(_a) {
|
|
3184
3337
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3185
|
-
return /* @__PURE__ */
|
|
3338
|
+
return /* @__PURE__ */ jsx27(
|
|
3186
3339
|
"div",
|
|
3187
3340
|
__spreadValues({
|
|
3188
3341
|
"data-slot": "empty-header",
|
|
@@ -3215,7 +3368,7 @@ function EmptyMedia(_a) {
|
|
|
3215
3368
|
"className",
|
|
3216
3369
|
"variant"
|
|
3217
3370
|
]);
|
|
3218
|
-
return /* @__PURE__ */
|
|
3371
|
+
return /* @__PURE__ */ jsx27(
|
|
3219
3372
|
"div",
|
|
3220
3373
|
__spreadValues({
|
|
3221
3374
|
"data-slot": "empty-icon",
|
|
@@ -3226,7 +3379,7 @@ function EmptyMedia(_a) {
|
|
|
3226
3379
|
}
|
|
3227
3380
|
function EmptyTitle(_a) {
|
|
3228
3381
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3229
|
-
return /* @__PURE__ */
|
|
3382
|
+
return /* @__PURE__ */ jsx27(
|
|
3230
3383
|
"div",
|
|
3231
3384
|
__spreadValues({
|
|
3232
3385
|
"data-slot": "empty-title",
|
|
@@ -3236,7 +3389,7 @@ function EmptyTitle(_a) {
|
|
|
3236
3389
|
}
|
|
3237
3390
|
function EmptyDescription(_a) {
|
|
3238
3391
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3239
|
-
return /* @__PURE__ */
|
|
3392
|
+
return /* @__PURE__ */ jsx27(
|
|
3240
3393
|
"div",
|
|
3241
3394
|
__spreadValues({
|
|
3242
3395
|
"data-slot": "empty-description",
|
|
@@ -3249,7 +3402,7 @@ function EmptyDescription(_a) {
|
|
|
3249
3402
|
}
|
|
3250
3403
|
function EmptyContent(_a) {
|
|
3251
3404
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3252
|
-
return /* @__PURE__ */
|
|
3405
|
+
return /* @__PURE__ */ jsx27(
|
|
3253
3406
|
"div",
|
|
3254
3407
|
__spreadValues({
|
|
3255
3408
|
"data-slot": "empty-content",
|
|
@@ -3267,14 +3420,14 @@ import { cva as cva7 } from "class-variance-authority";
|
|
|
3267
3420
|
|
|
3268
3421
|
// components/ui/label.tsx
|
|
3269
3422
|
import { Label as LabelPrimitive } from "radix-ui";
|
|
3270
|
-
import { jsx as
|
|
3423
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3271
3424
|
function Label(_a) {
|
|
3272
3425
|
var _b = _a, {
|
|
3273
3426
|
className
|
|
3274
3427
|
} = _b, props = __objRest(_b, [
|
|
3275
3428
|
"className"
|
|
3276
3429
|
]);
|
|
3277
|
-
return /* @__PURE__ */
|
|
3430
|
+
return /* @__PURE__ */ jsx28(
|
|
3278
3431
|
LabelPrimitive.Root,
|
|
3279
3432
|
__spreadValues({
|
|
3280
3433
|
"data-slot": "label",
|
|
@@ -3288,7 +3441,7 @@ function Label(_a) {
|
|
|
3288
3441
|
|
|
3289
3442
|
// components/ui/separator.tsx
|
|
3290
3443
|
import { Separator as SeparatorPrimitive } from "radix-ui";
|
|
3291
|
-
import { jsx as
|
|
3444
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
3292
3445
|
function Separator(_a) {
|
|
3293
3446
|
var _b = _a, {
|
|
3294
3447
|
className,
|
|
@@ -3299,7 +3452,7 @@ function Separator(_a) {
|
|
|
3299
3452
|
"orientation",
|
|
3300
3453
|
"decorative"
|
|
3301
3454
|
]);
|
|
3302
|
-
return /* @__PURE__ */
|
|
3455
|
+
return /* @__PURE__ */ jsx29(
|
|
3303
3456
|
SeparatorPrimitive.Root,
|
|
3304
3457
|
__spreadValues({
|
|
3305
3458
|
"data-slot": "separator",
|
|
@@ -3314,10 +3467,10 @@ function Separator(_a) {
|
|
|
3314
3467
|
}
|
|
3315
3468
|
|
|
3316
3469
|
// components/ui/field.tsx
|
|
3317
|
-
import { jsx as
|
|
3470
|
+
import { jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3318
3471
|
function FieldSet(_a) {
|
|
3319
3472
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3320
|
-
return /* @__PURE__ */
|
|
3473
|
+
return /* @__PURE__ */ jsx30(
|
|
3321
3474
|
"fieldset",
|
|
3322
3475
|
__spreadValues({
|
|
3323
3476
|
"data-slot": "field-set",
|
|
@@ -3337,7 +3490,7 @@ function FieldLegend(_a) {
|
|
|
3337
3490
|
"className",
|
|
3338
3491
|
"variant"
|
|
3339
3492
|
]);
|
|
3340
|
-
return /* @__PURE__ */
|
|
3493
|
+
return /* @__PURE__ */ jsx30(
|
|
3341
3494
|
"legend",
|
|
3342
3495
|
__spreadValues({
|
|
3343
3496
|
"data-slot": "field-legend",
|
|
@@ -3353,7 +3506,7 @@ function FieldLegend(_a) {
|
|
|
3353
3506
|
}
|
|
3354
3507
|
function FieldGroup(_a) {
|
|
3355
3508
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3356
|
-
return /* @__PURE__ */
|
|
3509
|
+
return /* @__PURE__ */ jsx30(
|
|
3357
3510
|
"div",
|
|
3358
3511
|
__spreadValues({
|
|
3359
3512
|
"data-slot": "field-group",
|
|
@@ -3395,7 +3548,7 @@ function Field(_a) {
|
|
|
3395
3548
|
"className",
|
|
3396
3549
|
"orientation"
|
|
3397
3550
|
]);
|
|
3398
|
-
return /* @__PURE__ */
|
|
3551
|
+
return /* @__PURE__ */ jsx30(
|
|
3399
3552
|
"div",
|
|
3400
3553
|
__spreadValues({
|
|
3401
3554
|
role: "group",
|
|
@@ -3407,7 +3560,7 @@ function Field(_a) {
|
|
|
3407
3560
|
}
|
|
3408
3561
|
function FieldContent(_a) {
|
|
3409
3562
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3410
|
-
return /* @__PURE__ */
|
|
3563
|
+
return /* @__PURE__ */ jsx30(
|
|
3411
3564
|
"div",
|
|
3412
3565
|
__spreadValues({
|
|
3413
3566
|
"data-slot": "field-content",
|
|
@@ -3424,7 +3577,7 @@ function FieldLabel(_a) {
|
|
|
3424
3577
|
} = _b, props = __objRest(_b, [
|
|
3425
3578
|
"className"
|
|
3426
3579
|
]);
|
|
3427
|
-
return /* @__PURE__ */
|
|
3580
|
+
return /* @__PURE__ */ jsx30(
|
|
3428
3581
|
Label,
|
|
3429
3582
|
__spreadValues({
|
|
3430
3583
|
"data-slot": "field-label",
|
|
@@ -3439,7 +3592,7 @@ function FieldLabel(_a) {
|
|
|
3439
3592
|
}
|
|
3440
3593
|
function FieldTitle(_a) {
|
|
3441
3594
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3442
|
-
return /* @__PURE__ */
|
|
3595
|
+
return /* @__PURE__ */ jsx30(
|
|
3443
3596
|
"div",
|
|
3444
3597
|
__spreadValues({
|
|
3445
3598
|
"data-slot": "field-label",
|
|
@@ -3452,7 +3605,7 @@ function FieldTitle(_a) {
|
|
|
3452
3605
|
}
|
|
3453
3606
|
function FieldDescription(_a) {
|
|
3454
3607
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3455
|
-
return /* @__PURE__ */
|
|
3608
|
+
return /* @__PURE__ */ jsx30(
|
|
3456
3609
|
"p",
|
|
3457
3610
|
__spreadValues({
|
|
3458
3611
|
"data-slot": "field-description",
|
|
@@ -3473,7 +3626,7 @@ function FieldSeparator(_a) {
|
|
|
3473
3626
|
"children",
|
|
3474
3627
|
"className"
|
|
3475
3628
|
]);
|
|
3476
|
-
return /* @__PURE__ */
|
|
3629
|
+
return /* @__PURE__ */ jsxs16(
|
|
3477
3630
|
"div",
|
|
3478
3631
|
__spreadProps(__spreadValues({
|
|
3479
3632
|
"data-slot": "field-separator",
|
|
@@ -3484,8 +3637,8 @@ function FieldSeparator(_a) {
|
|
|
3484
3637
|
)
|
|
3485
3638
|
}, props), {
|
|
3486
3639
|
children: [
|
|
3487
|
-
/* @__PURE__ */
|
|
3488
|
-
children && /* @__PURE__ */
|
|
3640
|
+
/* @__PURE__ */ jsx30(Separator, { className: "absolute inset-0 top-1/2" }),
|
|
3641
|
+
children && /* @__PURE__ */ jsx30(
|
|
3489
3642
|
"span",
|
|
3490
3643
|
{
|
|
3491
3644
|
className: "relative mx-auto block w-fit bg-prominent px-2 text-on-subtle",
|
|
@@ -3521,14 +3674,14 @@ function FieldError(_a) {
|
|
|
3521
3674
|
if ((uniqueErrors == null ? void 0 : uniqueErrors.length) == 1) {
|
|
3522
3675
|
return (_a2 = uniqueErrors[0]) == null ? void 0 : _a2.message;
|
|
3523
3676
|
}
|
|
3524
|
-
return /* @__PURE__ */
|
|
3525
|
-
(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)
|
|
3526
3679
|
) });
|
|
3527
3680
|
}, [children, errors]);
|
|
3528
3681
|
if (!content) {
|
|
3529
3682
|
return null;
|
|
3530
3683
|
}
|
|
3531
|
-
return /* @__PURE__ */
|
|
3684
|
+
return /* @__PURE__ */ jsx30(
|
|
3532
3685
|
"div",
|
|
3533
3686
|
__spreadProps(__spreadValues({
|
|
3534
3687
|
role: "alert",
|
|
@@ -3541,7 +3694,7 @@ function FieldError(_a) {
|
|
|
3541
3694
|
}
|
|
3542
3695
|
|
|
3543
3696
|
// components/ui/form.tsx
|
|
3544
|
-
import * as
|
|
3697
|
+
import * as React8 from "react";
|
|
3545
3698
|
import { Slot as Slot4 } from "radix-ui";
|
|
3546
3699
|
import {
|
|
3547
3700
|
Controller,
|
|
@@ -3549,18 +3702,18 @@ import {
|
|
|
3549
3702
|
useFormContext,
|
|
3550
3703
|
useFormState
|
|
3551
3704
|
} from "react-hook-form";
|
|
3552
|
-
import { jsx as
|
|
3705
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
3553
3706
|
var Form = FormProvider;
|
|
3554
|
-
var FormFieldContext =
|
|
3707
|
+
var FormFieldContext = React8.createContext(
|
|
3555
3708
|
{}
|
|
3556
3709
|
);
|
|
3557
3710
|
var FormField = (_a) => {
|
|
3558
3711
|
var props = __objRest(_a, []);
|
|
3559
|
-
return /* @__PURE__ */
|
|
3712
|
+
return /* @__PURE__ */ jsx31(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx31(Controller, __spreadValues({}, props)) });
|
|
3560
3713
|
};
|
|
3561
3714
|
var useFormField = () => {
|
|
3562
|
-
const fieldContext =
|
|
3563
|
-
const itemContext =
|
|
3715
|
+
const fieldContext = React8.useContext(FormFieldContext);
|
|
3716
|
+
const itemContext = React8.useContext(FormItemContext);
|
|
3564
3717
|
const { getFieldState } = useFormContext();
|
|
3565
3718
|
const formState = useFormState({ name: fieldContext.name });
|
|
3566
3719
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
@@ -3576,13 +3729,13 @@ var useFormField = () => {
|
|
|
3576
3729
|
formMessageId: `${id}-form-item-message`
|
|
3577
3730
|
}, fieldState);
|
|
3578
3731
|
};
|
|
3579
|
-
var FormItemContext =
|
|
3732
|
+
var FormItemContext = React8.createContext(
|
|
3580
3733
|
{}
|
|
3581
3734
|
);
|
|
3582
3735
|
function FormItem(_a) {
|
|
3583
3736
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3584
|
-
const id =
|
|
3585
|
-
return /* @__PURE__ */
|
|
3737
|
+
const id = React8.useId();
|
|
3738
|
+
return /* @__PURE__ */ jsx31(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx31(
|
|
3586
3739
|
"div",
|
|
3587
3740
|
__spreadValues({
|
|
3588
3741
|
"data-slot": "form-item",
|
|
@@ -3597,7 +3750,7 @@ function FormLabel(_a) {
|
|
|
3597
3750
|
"className"
|
|
3598
3751
|
]);
|
|
3599
3752
|
const { error, formItemId } = useFormField();
|
|
3600
|
-
return /* @__PURE__ */
|
|
3753
|
+
return /* @__PURE__ */ jsx31(
|
|
3601
3754
|
Label,
|
|
3602
3755
|
__spreadValues({
|
|
3603
3756
|
"data-slot": "form-label",
|
|
@@ -3610,7 +3763,7 @@ function FormLabel(_a) {
|
|
|
3610
3763
|
function FormControl(_a) {
|
|
3611
3764
|
var props = __objRest(_a, []);
|
|
3612
3765
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
3613
|
-
return /* @__PURE__ */
|
|
3766
|
+
return /* @__PURE__ */ jsx31(
|
|
3614
3767
|
Slot4.Root,
|
|
3615
3768
|
__spreadValues({
|
|
3616
3769
|
"data-slot": "form-control",
|
|
@@ -3623,7 +3776,7 @@ function FormControl(_a) {
|
|
|
3623
3776
|
function FormDescription(_a) {
|
|
3624
3777
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3625
3778
|
const { formDescriptionId } = useFormField();
|
|
3626
|
-
return /* @__PURE__ */
|
|
3779
|
+
return /* @__PURE__ */ jsx31(
|
|
3627
3780
|
"p",
|
|
3628
3781
|
__spreadValues({
|
|
3629
3782
|
"data-slot": "form-description",
|
|
@@ -3640,7 +3793,7 @@ function FormMessage(_a) {
|
|
|
3640
3793
|
if (!body) {
|
|
3641
3794
|
return null;
|
|
3642
3795
|
}
|
|
3643
|
-
return /* @__PURE__ */
|
|
3796
|
+
return /* @__PURE__ */ jsx31(
|
|
3644
3797
|
"p",
|
|
3645
3798
|
__spreadProps(__spreadValues({
|
|
3646
3799
|
"data-slot": "form-message",
|
|
@@ -3654,14 +3807,14 @@ function FormMessage(_a) {
|
|
|
3654
3807
|
|
|
3655
3808
|
// components/ui/hover-card.tsx
|
|
3656
3809
|
import { HoverCard as HoverCardPrimitive } from "radix-ui";
|
|
3657
|
-
import { jsx as
|
|
3810
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
3658
3811
|
function HoverCard(_a) {
|
|
3659
3812
|
var props = __objRest(_a, []);
|
|
3660
|
-
return /* @__PURE__ */
|
|
3813
|
+
return /* @__PURE__ */ jsx32(HoverCardPrimitive.Root, __spreadValues({ "data-slot": "hover-card" }, props));
|
|
3661
3814
|
}
|
|
3662
3815
|
function HoverCardTrigger(_a) {
|
|
3663
3816
|
var props = __objRest(_a, []);
|
|
3664
|
-
return /* @__PURE__ */
|
|
3817
|
+
return /* @__PURE__ */ jsx32(HoverCardPrimitive.Trigger, __spreadValues({ "data-slot": "hover-card-trigger" }, props));
|
|
3665
3818
|
}
|
|
3666
3819
|
function HoverCardContent(_a) {
|
|
3667
3820
|
var _b = _a, {
|
|
@@ -3673,7 +3826,7 @@ function HoverCardContent(_a) {
|
|
|
3673
3826
|
"align",
|
|
3674
3827
|
"sideOffset"
|
|
3675
3828
|
]);
|
|
3676
|
-
return /* @__PURE__ */
|
|
3829
|
+
return /* @__PURE__ */ jsx32(HoverCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsx32(
|
|
3677
3830
|
HoverCardPrimitive.Content,
|
|
3678
3831
|
__spreadValues({
|
|
3679
3832
|
"data-slot": "hover-card-content",
|
|
@@ -3688,10 +3841,10 @@ function HoverCardContent(_a) {
|
|
|
3688
3841
|
}
|
|
3689
3842
|
|
|
3690
3843
|
// components/ui/input-otp.tsx
|
|
3691
|
-
import * as
|
|
3844
|
+
import * as React9 from "react";
|
|
3692
3845
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
3693
3846
|
import { MinusIcon } from "lucide-react";
|
|
3694
|
-
import { jsx as
|
|
3847
|
+
import { jsx as jsx33, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3695
3848
|
function InputOTP(_a) {
|
|
3696
3849
|
var _b = _a, {
|
|
3697
3850
|
className,
|
|
@@ -3700,7 +3853,7 @@ function InputOTP(_a) {
|
|
|
3700
3853
|
"className",
|
|
3701
3854
|
"containerClassName"
|
|
3702
3855
|
]);
|
|
3703
|
-
return /* @__PURE__ */
|
|
3856
|
+
return /* @__PURE__ */ jsx33(
|
|
3704
3857
|
OTPInput,
|
|
3705
3858
|
__spreadValues({
|
|
3706
3859
|
"data-slot": "input-otp",
|
|
@@ -3714,7 +3867,7 @@ function InputOTP(_a) {
|
|
|
3714
3867
|
}
|
|
3715
3868
|
function InputOTPGroup(_a) {
|
|
3716
3869
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3717
|
-
return /* @__PURE__ */
|
|
3870
|
+
return /* @__PURE__ */ jsx33(
|
|
3718
3871
|
"div",
|
|
3719
3872
|
__spreadValues({
|
|
3720
3873
|
"data-slot": "input-otp-group",
|
|
@@ -3731,9 +3884,9 @@ function InputOTPSlot(_a) {
|
|
|
3731
3884
|
"className"
|
|
3732
3885
|
]);
|
|
3733
3886
|
var _a2;
|
|
3734
|
-
const inputOTPContext =
|
|
3887
|
+
const inputOTPContext = React9.useContext(OTPInputContext);
|
|
3735
3888
|
const { char, hasFakeCaret, isActive } = (_a2 = inputOTPContext == null ? void 0 : inputOTPContext.slots[index]) != null ? _a2 : {};
|
|
3736
|
-
return /* @__PURE__ */
|
|
3889
|
+
return /* @__PURE__ */ jsxs17(
|
|
3737
3890
|
"div",
|
|
3738
3891
|
__spreadProps(__spreadValues({
|
|
3739
3892
|
"data-slot": "input-otp-slot",
|
|
@@ -3745,23 +3898,23 @@ function InputOTPSlot(_a) {
|
|
|
3745
3898
|
}, props), {
|
|
3746
3899
|
children: [
|
|
3747
3900
|
char,
|
|
3748
|
-
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" }) })
|
|
3749
3902
|
]
|
|
3750
3903
|
})
|
|
3751
3904
|
);
|
|
3752
3905
|
}
|
|
3753
3906
|
function InputOTPSeparator(_a) {
|
|
3754
3907
|
var props = __objRest(_a, []);
|
|
3755
|
-
return /* @__PURE__ */
|
|
3908
|
+
return /* @__PURE__ */ jsx33("div", __spreadProps(__spreadValues({ "data-slot": "input-otp-separator", role: "separator" }, props), { children: /* @__PURE__ */ jsx33(MinusIcon, {}) }));
|
|
3756
3909
|
}
|
|
3757
3910
|
|
|
3758
3911
|
// components/ui/item.tsx
|
|
3759
3912
|
import { cva as cva8 } from "class-variance-authority";
|
|
3760
3913
|
import { Slot as Slot5 } from "radix-ui";
|
|
3761
|
-
import { jsx as
|
|
3914
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3762
3915
|
function ItemGroup(_a) {
|
|
3763
3916
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3764
|
-
return /* @__PURE__ */
|
|
3917
|
+
return /* @__PURE__ */ jsx34(
|
|
3765
3918
|
"div",
|
|
3766
3919
|
__spreadValues({
|
|
3767
3920
|
role: "list",
|
|
@@ -3776,7 +3929,7 @@ function ItemSeparator(_a) {
|
|
|
3776
3929
|
} = _b, props = __objRest(_b, [
|
|
3777
3930
|
"className"
|
|
3778
3931
|
]);
|
|
3779
|
-
return /* @__PURE__ */
|
|
3932
|
+
return /* @__PURE__ */ jsx34(
|
|
3780
3933
|
Separator,
|
|
3781
3934
|
__spreadValues({
|
|
3782
3935
|
"data-slot": "item-separator",
|
|
@@ -3818,7 +3971,7 @@ function Item(_a) {
|
|
|
3818
3971
|
"asChild"
|
|
3819
3972
|
]);
|
|
3820
3973
|
const Comp = asChild ? Slot5.Root : "div";
|
|
3821
|
-
return /* @__PURE__ */
|
|
3974
|
+
return /* @__PURE__ */ jsx34(
|
|
3822
3975
|
Comp,
|
|
3823
3976
|
__spreadValues({
|
|
3824
3977
|
"data-slot": "item",
|
|
@@ -3851,7 +4004,7 @@ function ItemMedia(_a) {
|
|
|
3851
4004
|
"className",
|
|
3852
4005
|
"variant"
|
|
3853
4006
|
]);
|
|
3854
|
-
return /* @__PURE__ */
|
|
4007
|
+
return /* @__PURE__ */ jsx34(
|
|
3855
4008
|
"div",
|
|
3856
4009
|
__spreadValues({
|
|
3857
4010
|
"data-slot": "item-media",
|
|
@@ -3862,7 +4015,7 @@ function ItemMedia(_a) {
|
|
|
3862
4015
|
}
|
|
3863
4016
|
function ItemContent(_a) {
|
|
3864
4017
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3865
|
-
return /* @__PURE__ */
|
|
4018
|
+
return /* @__PURE__ */ jsx34(
|
|
3866
4019
|
"div",
|
|
3867
4020
|
__spreadValues({
|
|
3868
4021
|
"data-slot": "item-content",
|
|
@@ -3875,7 +4028,7 @@ function ItemContent(_a) {
|
|
|
3875
4028
|
}
|
|
3876
4029
|
function ItemTitle(_a) {
|
|
3877
4030
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3878
|
-
return /* @__PURE__ */
|
|
4031
|
+
return /* @__PURE__ */ jsx34(
|
|
3879
4032
|
"div",
|
|
3880
4033
|
__spreadValues({
|
|
3881
4034
|
"data-slot": "item-title",
|
|
@@ -3888,7 +4041,7 @@ function ItemTitle(_a) {
|
|
|
3888
4041
|
}
|
|
3889
4042
|
function ItemDescription(_a) {
|
|
3890
4043
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3891
|
-
return /* @__PURE__ */
|
|
4044
|
+
return /* @__PURE__ */ jsx34(
|
|
3892
4045
|
"p",
|
|
3893
4046
|
__spreadValues({
|
|
3894
4047
|
"data-slot": "item-description",
|
|
@@ -3902,7 +4055,7 @@ function ItemDescription(_a) {
|
|
|
3902
4055
|
}
|
|
3903
4056
|
function ItemActions(_a) {
|
|
3904
4057
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3905
|
-
return /* @__PURE__ */
|
|
4058
|
+
return /* @__PURE__ */ jsx34(
|
|
3906
4059
|
"div",
|
|
3907
4060
|
__spreadValues({
|
|
3908
4061
|
"data-slot": "item-actions",
|
|
@@ -3912,7 +4065,7 @@ function ItemActions(_a) {
|
|
|
3912
4065
|
}
|
|
3913
4066
|
function ItemHeader(_a) {
|
|
3914
4067
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3915
|
-
return /* @__PURE__ */
|
|
4068
|
+
return /* @__PURE__ */ jsx34(
|
|
3916
4069
|
"div",
|
|
3917
4070
|
__spreadValues({
|
|
3918
4071
|
"data-slot": "item-header",
|
|
@@ -3925,7 +4078,7 @@ function ItemHeader(_a) {
|
|
|
3925
4078
|
}
|
|
3926
4079
|
function ItemFooter(_a) {
|
|
3927
4080
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3928
|
-
return /* @__PURE__ */
|
|
4081
|
+
return /* @__PURE__ */ jsx34(
|
|
3929
4082
|
"div",
|
|
3930
4083
|
__spreadValues({
|
|
3931
4084
|
"data-slot": "item-footer",
|
|
@@ -3938,10 +4091,10 @@ function ItemFooter(_a) {
|
|
|
3938
4091
|
}
|
|
3939
4092
|
|
|
3940
4093
|
// components/ui/kbd.tsx
|
|
3941
|
-
import { jsx as
|
|
4094
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3942
4095
|
function Kbd(_a) {
|
|
3943
4096
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3944
|
-
return /* @__PURE__ */
|
|
4097
|
+
return /* @__PURE__ */ jsx35(
|
|
3945
4098
|
"kbd",
|
|
3946
4099
|
__spreadValues({
|
|
3947
4100
|
"data-slot": "kbd",
|
|
@@ -3956,7 +4109,7 @@ function Kbd(_a) {
|
|
|
3956
4109
|
}
|
|
3957
4110
|
function KbdGroup(_a) {
|
|
3958
4111
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3959
|
-
return /* @__PURE__ */
|
|
4112
|
+
return /* @__PURE__ */ jsx35(
|
|
3960
4113
|
"kbd",
|
|
3961
4114
|
__spreadValues({
|
|
3962
4115
|
"data-slot": "kbd-group",
|
|
@@ -3968,7 +4121,7 @@ function KbdGroup(_a) {
|
|
|
3968
4121
|
// components/ui/link.tsx
|
|
3969
4122
|
import { cva as cva9 } from "class-variance-authority";
|
|
3970
4123
|
import { Slot as Slot6 } from "radix-ui";
|
|
3971
|
-
import { jsx as
|
|
4124
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3972
4125
|
var linkVariants = cva9(
|
|
3973
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",
|
|
3974
4127
|
{
|
|
@@ -3995,7 +4148,7 @@ function Link(_a) {
|
|
|
3995
4148
|
"asChild"
|
|
3996
4149
|
]);
|
|
3997
4150
|
const Comp = asChild ? Slot6.Root : "a";
|
|
3998
|
-
return /* @__PURE__ */
|
|
4151
|
+
return /* @__PURE__ */ jsx36(
|
|
3999
4152
|
Comp,
|
|
4000
4153
|
__spreadValues({
|
|
4001
4154
|
"data-slot": "link",
|
|
@@ -4008,14 +4161,14 @@ function Link(_a) {
|
|
|
4008
4161
|
// components/ui/menubar.tsx
|
|
4009
4162
|
import { CheckIcon as CheckIcon5, ChevronRightIcon as ChevronRightIcon4, CircleIcon as CircleIcon3 } from "lucide-react";
|
|
4010
4163
|
import { Menubar as MenubarPrimitive } from "radix-ui";
|
|
4011
|
-
import { jsx as
|
|
4164
|
+
import { jsx as jsx37, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4012
4165
|
function Menubar(_a) {
|
|
4013
4166
|
var _b = _a, {
|
|
4014
4167
|
className
|
|
4015
4168
|
} = _b, props = __objRest(_b, [
|
|
4016
4169
|
"className"
|
|
4017
4170
|
]);
|
|
4018
|
-
return /* @__PURE__ */
|
|
4171
|
+
return /* @__PURE__ */ jsx37(
|
|
4019
4172
|
MenubarPrimitive.Root,
|
|
4020
4173
|
__spreadValues({
|
|
4021
4174
|
"data-slot": "menubar",
|
|
@@ -4028,19 +4181,19 @@ function Menubar(_a) {
|
|
|
4028
4181
|
}
|
|
4029
4182
|
function MenubarMenu(_a) {
|
|
4030
4183
|
var props = __objRest(_a, []);
|
|
4031
|
-
return /* @__PURE__ */
|
|
4184
|
+
return /* @__PURE__ */ jsx37(MenubarPrimitive.Menu, __spreadValues({ "data-slot": "menubar-menu" }, props));
|
|
4032
4185
|
}
|
|
4033
4186
|
function MenubarGroup(_a) {
|
|
4034
4187
|
var props = __objRest(_a, []);
|
|
4035
|
-
return /* @__PURE__ */
|
|
4188
|
+
return /* @__PURE__ */ jsx37(MenubarPrimitive.Group, __spreadValues({ "data-slot": "menubar-group" }, props));
|
|
4036
4189
|
}
|
|
4037
4190
|
function MenubarPortal(_a) {
|
|
4038
4191
|
var props = __objRest(_a, []);
|
|
4039
|
-
return /* @__PURE__ */
|
|
4192
|
+
return /* @__PURE__ */ jsx37(MenubarPrimitive.Portal, __spreadValues({ "data-slot": "menubar-portal" }, props));
|
|
4040
4193
|
}
|
|
4041
4194
|
function MenubarRadioGroup(_a) {
|
|
4042
4195
|
var props = __objRest(_a, []);
|
|
4043
|
-
return /* @__PURE__ */
|
|
4196
|
+
return /* @__PURE__ */ jsx37(MenubarPrimitive.RadioGroup, __spreadValues({ "data-slot": "menubar-radio-group" }, props));
|
|
4044
4197
|
}
|
|
4045
4198
|
function MenubarTrigger(_a) {
|
|
4046
4199
|
var _b = _a, {
|
|
@@ -4048,7 +4201,7 @@ function MenubarTrigger(_a) {
|
|
|
4048
4201
|
} = _b, props = __objRest(_b, [
|
|
4049
4202
|
"className"
|
|
4050
4203
|
]);
|
|
4051
|
-
return /* @__PURE__ */
|
|
4204
|
+
return /* @__PURE__ */ jsx37(
|
|
4052
4205
|
MenubarPrimitive.Trigger,
|
|
4053
4206
|
__spreadValues({
|
|
4054
4207
|
"data-slot": "menubar-trigger",
|
|
@@ -4071,7 +4224,7 @@ function MenubarContent(_a) {
|
|
|
4071
4224
|
"alignOffset",
|
|
4072
4225
|
"sideOffset"
|
|
4073
4226
|
]);
|
|
4074
|
-
return /* @__PURE__ */
|
|
4227
|
+
return /* @__PURE__ */ jsx37(MenubarPortal, { children: /* @__PURE__ */ jsx37(
|
|
4075
4228
|
MenubarPrimitive.Content,
|
|
4076
4229
|
__spreadValues({
|
|
4077
4230
|
"data-slot": "menubar-content",
|
|
@@ -4095,7 +4248,7 @@ function MenubarItem(_a) {
|
|
|
4095
4248
|
"inset",
|
|
4096
4249
|
"variant"
|
|
4097
4250
|
]);
|
|
4098
|
-
return /* @__PURE__ */
|
|
4251
|
+
return /* @__PURE__ */ jsx37(
|
|
4099
4252
|
MenubarPrimitive.Item,
|
|
4100
4253
|
__spreadValues({
|
|
4101
4254
|
"data-slot": "menubar-item",
|
|
@@ -4118,7 +4271,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
4118
4271
|
"children",
|
|
4119
4272
|
"checked"
|
|
4120
4273
|
]);
|
|
4121
|
-
return /* @__PURE__ */
|
|
4274
|
+
return /* @__PURE__ */ jsxs18(
|
|
4122
4275
|
MenubarPrimitive.CheckboxItem,
|
|
4123
4276
|
__spreadProps(__spreadValues({
|
|
4124
4277
|
"data-slot": "menubar-checkbox-item",
|
|
@@ -4129,7 +4282,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
4129
4282
|
checked
|
|
4130
4283
|
}, props), {
|
|
4131
4284
|
children: [
|
|
4132
|
-
/* @__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" }) }) }),
|
|
4133
4286
|
children
|
|
4134
4287
|
]
|
|
4135
4288
|
})
|
|
@@ -4143,7 +4296,7 @@ function MenubarRadioItem(_a) {
|
|
|
4143
4296
|
"className",
|
|
4144
4297
|
"children"
|
|
4145
4298
|
]);
|
|
4146
|
-
return /* @__PURE__ */
|
|
4299
|
+
return /* @__PURE__ */ jsxs18(
|
|
4147
4300
|
MenubarPrimitive.RadioItem,
|
|
4148
4301
|
__spreadProps(__spreadValues({
|
|
4149
4302
|
"data-slot": "menubar-radio-item",
|
|
@@ -4153,7 +4306,7 @@ function MenubarRadioItem(_a) {
|
|
|
4153
4306
|
)
|
|
4154
4307
|
}, props), {
|
|
4155
4308
|
children: [
|
|
4156
|
-
/* @__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" }) }) }),
|
|
4157
4310
|
children
|
|
4158
4311
|
]
|
|
4159
4312
|
})
|
|
@@ -4167,7 +4320,7 @@ function MenubarLabel(_a) {
|
|
|
4167
4320
|
"className",
|
|
4168
4321
|
"inset"
|
|
4169
4322
|
]);
|
|
4170
|
-
return /* @__PURE__ */
|
|
4323
|
+
return /* @__PURE__ */ jsx37(
|
|
4171
4324
|
MenubarPrimitive.Label,
|
|
4172
4325
|
__spreadValues({
|
|
4173
4326
|
"data-slot": "menubar-label",
|
|
@@ -4185,7 +4338,7 @@ function MenubarSeparator(_a) {
|
|
|
4185
4338
|
} = _b, props = __objRest(_b, [
|
|
4186
4339
|
"className"
|
|
4187
4340
|
]);
|
|
4188
|
-
return /* @__PURE__ */
|
|
4341
|
+
return /* @__PURE__ */ jsx37(
|
|
4189
4342
|
MenubarPrimitive.Separator,
|
|
4190
4343
|
__spreadValues({
|
|
4191
4344
|
"data-slot": "menubar-separator",
|
|
@@ -4199,7 +4352,7 @@ function MenubarShortcut(_a) {
|
|
|
4199
4352
|
} = _b, props = __objRest(_b, [
|
|
4200
4353
|
"className"
|
|
4201
4354
|
]);
|
|
4202
|
-
return /* @__PURE__ */
|
|
4355
|
+
return /* @__PURE__ */ jsx37(
|
|
4203
4356
|
"span",
|
|
4204
4357
|
__spreadValues({
|
|
4205
4358
|
"data-slot": "menubar-shortcut",
|
|
@@ -4212,7 +4365,7 @@ function MenubarShortcut(_a) {
|
|
|
4212
4365
|
}
|
|
4213
4366
|
function MenubarSub(_a) {
|
|
4214
4367
|
var props = __objRest(_a, []);
|
|
4215
|
-
return /* @__PURE__ */
|
|
4368
|
+
return /* @__PURE__ */ jsx37(MenubarPrimitive.Sub, __spreadValues({ "data-slot": "menubar-sub" }, props));
|
|
4216
4369
|
}
|
|
4217
4370
|
function MenubarSubTrigger(_a) {
|
|
4218
4371
|
var _b = _a, {
|
|
@@ -4224,7 +4377,7 @@ function MenubarSubTrigger(_a) {
|
|
|
4224
4377
|
"inset",
|
|
4225
4378
|
"children"
|
|
4226
4379
|
]);
|
|
4227
|
-
return /* @__PURE__ */
|
|
4380
|
+
return /* @__PURE__ */ jsxs18(
|
|
4228
4381
|
MenubarPrimitive.SubTrigger,
|
|
4229
4382
|
__spreadProps(__spreadValues({
|
|
4230
4383
|
"data-slot": "menubar-sub-trigger",
|
|
@@ -4236,7 +4389,7 @@ function MenubarSubTrigger(_a) {
|
|
|
4236
4389
|
}, props), {
|
|
4237
4390
|
children: [
|
|
4238
4391
|
children,
|
|
4239
|
-
/* @__PURE__ */
|
|
4392
|
+
/* @__PURE__ */ jsx37(ChevronRightIcon4, { className: "ml-auto h-4 w-4" })
|
|
4240
4393
|
]
|
|
4241
4394
|
})
|
|
4242
4395
|
);
|
|
@@ -4247,7 +4400,7 @@ function MenubarSubContent(_a) {
|
|
|
4247
4400
|
} = _b, props = __objRest(_b, [
|
|
4248
4401
|
"className"
|
|
4249
4402
|
]);
|
|
4250
|
-
return /* @__PURE__ */
|
|
4403
|
+
return /* @__PURE__ */ jsx37(
|
|
4251
4404
|
MenubarPrimitive.SubContent,
|
|
4252
4405
|
__spreadValues({
|
|
4253
4406
|
"data-slot": "menubar-sub-content",
|
|
@@ -4261,7 +4414,7 @@ function MenubarSubContent(_a) {
|
|
|
4261
4414
|
|
|
4262
4415
|
// components/ui/native-select.tsx
|
|
4263
4416
|
import { ChevronDownIcon as ChevronDownIcon4 } from "lucide-react";
|
|
4264
|
-
import { jsx as
|
|
4417
|
+
import { jsx as jsx38, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
4265
4418
|
function NativeSelect(_a) {
|
|
4266
4419
|
var _b = _a, {
|
|
4267
4420
|
className,
|
|
@@ -4270,13 +4423,13 @@ function NativeSelect(_a) {
|
|
|
4270
4423
|
"className",
|
|
4271
4424
|
"size"
|
|
4272
4425
|
]);
|
|
4273
|
-
return /* @__PURE__ */
|
|
4426
|
+
return /* @__PURE__ */ jsxs19(
|
|
4274
4427
|
"div",
|
|
4275
4428
|
{
|
|
4276
4429
|
className: "group/native-select relative w-fit has-[select:disabled]:opacity-50",
|
|
4277
4430
|
"data-slot": "native-select-wrapper",
|
|
4278
4431
|
children: [
|
|
4279
|
-
/* @__PURE__ */
|
|
4432
|
+
/* @__PURE__ */ jsx38(
|
|
4280
4433
|
"select",
|
|
4281
4434
|
__spreadValues({
|
|
4282
4435
|
"data-slot": "native-select",
|
|
@@ -4288,7 +4441,7 @@ function NativeSelect(_a) {
|
|
|
4288
4441
|
)
|
|
4289
4442
|
}, props)
|
|
4290
4443
|
),
|
|
4291
|
-
/* @__PURE__ */
|
|
4444
|
+
/* @__PURE__ */ jsx38(
|
|
4292
4445
|
ChevronDownIcon4,
|
|
4293
4446
|
{
|
|
4294
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",
|
|
@@ -4302,7 +4455,7 @@ function NativeSelect(_a) {
|
|
|
4302
4455
|
}
|
|
4303
4456
|
function NativeSelectOption(_a) {
|
|
4304
4457
|
var props = __objRest(_a, []);
|
|
4305
|
-
return /* @__PURE__ */
|
|
4458
|
+
return /* @__PURE__ */ jsx38("option", __spreadValues({ "data-slot": "native-select-option" }, props));
|
|
4306
4459
|
}
|
|
4307
4460
|
function NativeSelectOptGroup(_a) {
|
|
4308
4461
|
var _b = _a, {
|
|
@@ -4310,7 +4463,7 @@ function NativeSelectOptGroup(_a) {
|
|
|
4310
4463
|
} = _b, props = __objRest(_b, [
|
|
4311
4464
|
"className"
|
|
4312
4465
|
]);
|
|
4313
|
-
return /* @__PURE__ */
|
|
4466
|
+
return /* @__PURE__ */ jsx38(
|
|
4314
4467
|
"optgroup",
|
|
4315
4468
|
__spreadValues({
|
|
4316
4469
|
"data-slot": "native-select-optgroup",
|
|
@@ -4322,7 +4475,7 @@ function NativeSelectOptGroup(_a) {
|
|
|
4322
4475
|
// components/ui/navigation-button.tsx
|
|
4323
4476
|
import { cva as cva10 } from "class-variance-authority";
|
|
4324
4477
|
import { Slot as Slot7 } from "radix-ui";
|
|
4325
|
-
import { jsx as
|
|
4478
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
4326
4479
|
var navigationButtonVariants = cva10(
|
|
4327
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",
|
|
4328
4481
|
{
|
|
@@ -4352,7 +4505,7 @@ function NavigationButton(_a) {
|
|
|
4352
4505
|
"children"
|
|
4353
4506
|
]);
|
|
4354
4507
|
const Comp = asChild ? Slot7.Root : "button";
|
|
4355
|
-
return /* @__PURE__ */
|
|
4508
|
+
return /* @__PURE__ */ jsx39(
|
|
4356
4509
|
Comp,
|
|
4357
4510
|
__spreadProps(__spreadValues({
|
|
4358
4511
|
"data-slot": "navigation-button",
|
|
@@ -4368,7 +4521,7 @@ function NavigationButton(_a) {
|
|
|
4368
4521
|
import { cva as cva11 } from "class-variance-authority";
|
|
4369
4522
|
import { ChevronDownIcon as ChevronDownIcon5 } from "lucide-react";
|
|
4370
4523
|
import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
|
|
4371
|
-
import { jsx as
|
|
4524
|
+
import { jsx as jsx40, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4372
4525
|
function NavigationMenu(_a) {
|
|
4373
4526
|
var _b = _a, {
|
|
4374
4527
|
className,
|
|
@@ -4379,7 +4532,7 @@ function NavigationMenu(_a) {
|
|
|
4379
4532
|
"children",
|
|
4380
4533
|
"viewport"
|
|
4381
4534
|
]);
|
|
4382
|
-
return /* @__PURE__ */
|
|
4535
|
+
return /* @__PURE__ */ jsxs20(
|
|
4383
4536
|
NavigationMenuPrimitive.Root,
|
|
4384
4537
|
__spreadProps(__spreadValues({
|
|
4385
4538
|
"data-slot": "navigation-menu",
|
|
@@ -4391,7 +4544,7 @@ function NavigationMenu(_a) {
|
|
|
4391
4544
|
}, props), {
|
|
4392
4545
|
children: [
|
|
4393
4546
|
children,
|
|
4394
|
-
viewport && /* @__PURE__ */
|
|
4547
|
+
viewport && /* @__PURE__ */ jsx40(NavigationMenuViewport, {})
|
|
4395
4548
|
]
|
|
4396
4549
|
})
|
|
4397
4550
|
);
|
|
@@ -4402,7 +4555,7 @@ function NavigationMenuList(_a) {
|
|
|
4402
4555
|
} = _b, props = __objRest(_b, [
|
|
4403
4556
|
"className"
|
|
4404
4557
|
]);
|
|
4405
|
-
return /* @__PURE__ */
|
|
4558
|
+
return /* @__PURE__ */ jsx40(
|
|
4406
4559
|
NavigationMenuPrimitive.List,
|
|
4407
4560
|
__spreadValues({
|
|
4408
4561
|
"data-slot": "navigation-menu-list",
|
|
@@ -4419,7 +4572,7 @@ function NavigationMenuItem(_a) {
|
|
|
4419
4572
|
} = _b, props = __objRest(_b, [
|
|
4420
4573
|
"className"
|
|
4421
4574
|
]);
|
|
4422
|
-
return /* @__PURE__ */
|
|
4575
|
+
return /* @__PURE__ */ jsx40(
|
|
4423
4576
|
NavigationMenuPrimitive.Item,
|
|
4424
4577
|
__spreadValues({
|
|
4425
4578
|
"data-slot": "navigation-menu-item",
|
|
@@ -4438,7 +4591,7 @@ function NavigationMenuTrigger(_a) {
|
|
|
4438
4591
|
"className",
|
|
4439
4592
|
"children"
|
|
4440
4593
|
]);
|
|
4441
|
-
return /* @__PURE__ */
|
|
4594
|
+
return /* @__PURE__ */ jsxs20(
|
|
4442
4595
|
NavigationMenuPrimitive.Trigger,
|
|
4443
4596
|
__spreadProps(__spreadValues({
|
|
4444
4597
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -4447,7 +4600,7 @@ function NavigationMenuTrigger(_a) {
|
|
|
4447
4600
|
children: [
|
|
4448
4601
|
children,
|
|
4449
4602
|
" ",
|
|
4450
|
-
/* @__PURE__ */
|
|
4603
|
+
/* @__PURE__ */ jsx40(
|
|
4451
4604
|
ChevronDownIcon5,
|
|
4452
4605
|
{
|
|
4453
4606
|
className: "relative top-[1px] ml-1 size-3 transition duration-slow group-data-[state=open]:rotate-180",
|
|
@@ -4464,7 +4617,7 @@ function NavigationMenuContent(_a) {
|
|
|
4464
4617
|
} = _b, props = __objRest(_b, [
|
|
4465
4618
|
"className"
|
|
4466
4619
|
]);
|
|
4467
|
-
return /* @__PURE__ */
|
|
4620
|
+
return /* @__PURE__ */ jsx40(
|
|
4468
4621
|
NavigationMenuPrimitive.Content,
|
|
4469
4622
|
__spreadValues({
|
|
4470
4623
|
"data-slot": "navigation-menu-content",
|
|
@@ -4482,13 +4635,13 @@ function NavigationMenuViewport(_a) {
|
|
|
4482
4635
|
} = _b, props = __objRest(_b, [
|
|
4483
4636
|
"className"
|
|
4484
4637
|
]);
|
|
4485
|
-
return /* @__PURE__ */
|
|
4638
|
+
return /* @__PURE__ */ jsx40(
|
|
4486
4639
|
"div",
|
|
4487
4640
|
{
|
|
4488
4641
|
className: cn(
|
|
4489
4642
|
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
4490
4643
|
),
|
|
4491
|
-
children: /* @__PURE__ */
|
|
4644
|
+
children: /* @__PURE__ */ jsx40(
|
|
4492
4645
|
NavigationMenuPrimitive.Viewport,
|
|
4493
4646
|
__spreadValues({
|
|
4494
4647
|
"data-slot": "navigation-menu-viewport",
|
|
@@ -4507,7 +4660,7 @@ function NavigationMenuLink(_a) {
|
|
|
4507
4660
|
} = _b, props = __objRest(_b, [
|
|
4508
4661
|
"className"
|
|
4509
4662
|
]);
|
|
4510
|
-
return /* @__PURE__ */
|
|
4663
|
+
return /* @__PURE__ */ jsx40(
|
|
4511
4664
|
NavigationMenuPrimitive.Link,
|
|
4512
4665
|
__spreadValues({
|
|
4513
4666
|
"data-slot": "navigation-menu-link",
|
|
@@ -4524,7 +4677,7 @@ function NavigationMenuIndicator(_a) {
|
|
|
4524
4677
|
} = _b, props = __objRest(_b, [
|
|
4525
4678
|
"className"
|
|
4526
4679
|
]);
|
|
4527
|
-
return /* @__PURE__ */
|
|
4680
|
+
return /* @__PURE__ */ jsx40(
|
|
4528
4681
|
NavigationMenuPrimitive.Indicator,
|
|
4529
4682
|
__spreadProps(__spreadValues({
|
|
4530
4683
|
"data-slot": "navigation-menu-indicator",
|
|
@@ -4533,7 +4686,7 @@ function NavigationMenuIndicator(_a) {
|
|
|
4533
4686
|
className
|
|
4534
4687
|
)
|
|
4535
4688
|
}, props), {
|
|
4536
|
-
children: /* @__PURE__ */
|
|
4689
|
+
children: /* @__PURE__ */ jsx40("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
4537
4690
|
})
|
|
4538
4691
|
);
|
|
4539
4692
|
}
|
|
@@ -4544,10 +4697,10 @@ import {
|
|
|
4544
4697
|
ChevronRightIcon as ChevronRightIcon5,
|
|
4545
4698
|
MoreHorizontalIcon
|
|
4546
4699
|
} from "lucide-react";
|
|
4547
|
-
import { jsx as
|
|
4700
|
+
import { jsx as jsx41, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4548
4701
|
function Pagination(_a) {
|
|
4549
4702
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4550
|
-
return /* @__PURE__ */
|
|
4703
|
+
return /* @__PURE__ */ jsx41(
|
|
4551
4704
|
"nav",
|
|
4552
4705
|
__spreadValues({
|
|
4553
4706
|
role: "navigation",
|
|
@@ -4563,7 +4716,7 @@ function PaginationContent(_a) {
|
|
|
4563
4716
|
} = _b, props = __objRest(_b, [
|
|
4564
4717
|
"className"
|
|
4565
4718
|
]);
|
|
4566
|
-
return /* @__PURE__ */
|
|
4719
|
+
return /* @__PURE__ */ jsx41(
|
|
4567
4720
|
"ul",
|
|
4568
4721
|
__spreadValues({
|
|
4569
4722
|
"data-slot": "pagination-content",
|
|
@@ -4573,7 +4726,7 @@ function PaginationContent(_a) {
|
|
|
4573
4726
|
}
|
|
4574
4727
|
function PaginationItem(_a) {
|
|
4575
4728
|
var props = __objRest(_a, []);
|
|
4576
|
-
return /* @__PURE__ */
|
|
4729
|
+
return /* @__PURE__ */ jsx41("li", __spreadValues({ "data-slot": "pagination-item" }, props));
|
|
4577
4730
|
}
|
|
4578
4731
|
function PaginationLink(_a) {
|
|
4579
4732
|
var _b = _a, {
|
|
@@ -4585,7 +4738,7 @@ function PaginationLink(_a) {
|
|
|
4585
4738
|
"isActive",
|
|
4586
4739
|
"size"
|
|
4587
4740
|
]);
|
|
4588
|
-
return /* @__PURE__ */
|
|
4741
|
+
return /* @__PURE__ */ jsx41(
|
|
4589
4742
|
"a",
|
|
4590
4743
|
__spreadValues({
|
|
4591
4744
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -4605,7 +4758,7 @@ function PaginationPrevious(_a) {
|
|
|
4605
4758
|
} = _b, props = __objRest(_b, [
|
|
4606
4759
|
"className"
|
|
4607
4760
|
]);
|
|
4608
|
-
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" }) })) });
|
|
4609
4762
|
}
|
|
4610
4763
|
function PaginationNext(_a) {
|
|
4611
4764
|
var _b = _a, {
|
|
@@ -4613,7 +4766,7 @@ function PaginationNext(_a) {
|
|
|
4613
4766
|
} = _b, props = __objRest(_b, [
|
|
4614
4767
|
"className"
|
|
4615
4768
|
]);
|
|
4616
|
-
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" }) })) });
|
|
4617
4770
|
}
|
|
4618
4771
|
function PaginationEllipsis(_a) {
|
|
4619
4772
|
var _b = _a, {
|
|
@@ -4621,7 +4774,7 @@ function PaginationEllipsis(_a) {
|
|
|
4621
4774
|
} = _b, props = __objRest(_b, [
|
|
4622
4775
|
"className"
|
|
4623
4776
|
]);
|
|
4624
|
-
return /* @__PURE__ */
|
|
4777
|
+
return /* @__PURE__ */ jsxs21(
|
|
4625
4778
|
"span",
|
|
4626
4779
|
__spreadProps(__spreadValues({
|
|
4627
4780
|
"aria-hidden": true,
|
|
@@ -4629,8 +4782,8 @@ function PaginationEllipsis(_a) {
|
|
|
4629
4782
|
className: cn("flex size-10 items-center justify-center", className)
|
|
4630
4783
|
}, props), {
|
|
4631
4784
|
children: [
|
|
4632
|
-
/* @__PURE__ */
|
|
4633
|
-
/* @__PURE__ */
|
|
4785
|
+
/* @__PURE__ */ jsx41(MoreHorizontalIcon, { className: "size-4" }),
|
|
4786
|
+
/* @__PURE__ */ jsx41("span", { className: "sr-only", children: "More pages" })
|
|
4634
4787
|
]
|
|
4635
4788
|
})
|
|
4636
4789
|
);
|
|
@@ -4638,14 +4791,14 @@ function PaginationEllipsis(_a) {
|
|
|
4638
4791
|
|
|
4639
4792
|
// components/ui/popover.tsx
|
|
4640
4793
|
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
4641
|
-
import { jsx as
|
|
4794
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
4642
4795
|
function Popover(_a) {
|
|
4643
4796
|
var props = __objRest(_a, []);
|
|
4644
|
-
return /* @__PURE__ */
|
|
4797
|
+
return /* @__PURE__ */ jsx42(PopoverPrimitive.Root, __spreadValues({ "data-slot": "popover" }, props));
|
|
4645
4798
|
}
|
|
4646
4799
|
function PopoverTrigger(_a) {
|
|
4647
4800
|
var props = __objRest(_a, []);
|
|
4648
|
-
return /* @__PURE__ */
|
|
4801
|
+
return /* @__PURE__ */ jsx42(PopoverPrimitive.Trigger, __spreadValues({ "data-slot": "popover-trigger" }, props));
|
|
4649
4802
|
}
|
|
4650
4803
|
function PopoverContent(_a) {
|
|
4651
4804
|
var _b = _a, {
|
|
@@ -4657,7 +4810,7 @@ function PopoverContent(_a) {
|
|
|
4657
4810
|
"align",
|
|
4658
4811
|
"sideOffset"
|
|
4659
4812
|
]);
|
|
4660
|
-
return /* @__PURE__ */
|
|
4813
|
+
return /* @__PURE__ */ jsx42(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx42(
|
|
4661
4814
|
PopoverPrimitive.Content,
|
|
4662
4815
|
__spreadValues({
|
|
4663
4816
|
"data-slot": "popover-content",
|
|
@@ -4672,11 +4825,11 @@ function PopoverContent(_a) {
|
|
|
4672
4825
|
}
|
|
4673
4826
|
function PopoverAnchor(_a) {
|
|
4674
4827
|
var props = __objRest(_a, []);
|
|
4675
|
-
return /* @__PURE__ */
|
|
4828
|
+
return /* @__PURE__ */ jsx42(PopoverPrimitive.Anchor, __spreadValues({ "data-slot": "popover-anchor" }, props));
|
|
4676
4829
|
}
|
|
4677
4830
|
function PopoverHeader(_a) {
|
|
4678
4831
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4679
|
-
return /* @__PURE__ */
|
|
4832
|
+
return /* @__PURE__ */ jsx42(
|
|
4680
4833
|
"div",
|
|
4681
4834
|
__spreadValues({
|
|
4682
4835
|
"data-slot": "popover-header",
|
|
@@ -4686,7 +4839,7 @@ function PopoverHeader(_a) {
|
|
|
4686
4839
|
}
|
|
4687
4840
|
function PopoverTitle(_a) {
|
|
4688
4841
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4689
|
-
return /* @__PURE__ */
|
|
4842
|
+
return /* @__PURE__ */ jsx42(
|
|
4690
4843
|
"div",
|
|
4691
4844
|
__spreadValues({
|
|
4692
4845
|
"data-slot": "popover-title",
|
|
@@ -4700,7 +4853,7 @@ function PopoverDescription(_a) {
|
|
|
4700
4853
|
} = _b, props = __objRest(_b, [
|
|
4701
4854
|
"className"
|
|
4702
4855
|
]);
|
|
4703
|
-
return /* @__PURE__ */
|
|
4856
|
+
return /* @__PURE__ */ jsx42(
|
|
4704
4857
|
"p",
|
|
4705
4858
|
__spreadValues({
|
|
4706
4859
|
"data-slot": "popover-description",
|
|
@@ -4711,7 +4864,7 @@ function PopoverDescription(_a) {
|
|
|
4711
4864
|
|
|
4712
4865
|
// components/ui/progress.tsx
|
|
4713
4866
|
import { Progress as ProgressPrimitive } from "radix-ui";
|
|
4714
|
-
import { jsx as
|
|
4867
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
4715
4868
|
function Progress(_a) {
|
|
4716
4869
|
var _b = _a, {
|
|
4717
4870
|
className,
|
|
@@ -4720,7 +4873,7 @@ function Progress(_a) {
|
|
|
4720
4873
|
"className",
|
|
4721
4874
|
"value"
|
|
4722
4875
|
]);
|
|
4723
|
-
return /* @__PURE__ */
|
|
4876
|
+
return /* @__PURE__ */ jsx43(
|
|
4724
4877
|
ProgressPrimitive.Root,
|
|
4725
4878
|
__spreadProps(__spreadValues({
|
|
4726
4879
|
"data-slot": "progress",
|
|
@@ -4729,7 +4882,7 @@ function Progress(_a) {
|
|
|
4729
4882
|
className
|
|
4730
4883
|
)
|
|
4731
4884
|
}, props), {
|
|
4732
|
-
children: /* @__PURE__ */
|
|
4885
|
+
children: /* @__PURE__ */ jsx43(
|
|
4733
4886
|
ProgressPrimitive.Indicator,
|
|
4734
4887
|
{
|
|
4735
4888
|
"data-slot": "progress-indicator",
|
|
@@ -4744,14 +4897,14 @@ function Progress(_a) {
|
|
|
4744
4897
|
// components/ui/radio-group.tsx
|
|
4745
4898
|
import { CircleIcon as CircleIcon4 } from "lucide-react";
|
|
4746
4899
|
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
4747
|
-
import { jsx as
|
|
4900
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
4748
4901
|
function RadioGroup(_a) {
|
|
4749
4902
|
var _b = _a, {
|
|
4750
4903
|
className
|
|
4751
4904
|
} = _b, props = __objRest(_b, [
|
|
4752
4905
|
"className"
|
|
4753
4906
|
]);
|
|
4754
|
-
return /* @__PURE__ */
|
|
4907
|
+
return /* @__PURE__ */ jsx44(
|
|
4755
4908
|
RadioGroupPrimitive.Root,
|
|
4756
4909
|
__spreadValues({
|
|
4757
4910
|
"data-slot": "radio-group",
|
|
@@ -4765,7 +4918,7 @@ function RadioGroupItem(_a) {
|
|
|
4765
4918
|
} = _b, props = __objRest(_b, [
|
|
4766
4919
|
"className"
|
|
4767
4920
|
]);
|
|
4768
|
-
return /* @__PURE__ */
|
|
4921
|
+
return /* @__PURE__ */ jsx44(
|
|
4769
4922
|
RadioGroupPrimitive.Item,
|
|
4770
4923
|
__spreadProps(__spreadValues({
|
|
4771
4924
|
"data-slot": "radio-group-item",
|
|
@@ -4774,12 +4927,12 @@ function RadioGroupItem(_a) {
|
|
|
4774
4927
|
className
|
|
4775
4928
|
)
|
|
4776
4929
|
}, props), {
|
|
4777
|
-
children: /* @__PURE__ */
|
|
4930
|
+
children: /* @__PURE__ */ jsx44(
|
|
4778
4931
|
RadioGroupPrimitive.Indicator,
|
|
4779
4932
|
{
|
|
4780
4933
|
"data-slot": "radio-group-indicator",
|
|
4781
4934
|
className: "relative flex items-center justify-center",
|
|
4782
|
-
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" })
|
|
4783
4936
|
}
|
|
4784
4937
|
)
|
|
4785
4938
|
})
|
|
@@ -4789,14 +4942,14 @@ function RadioGroupItem(_a) {
|
|
|
4789
4942
|
// components/ui/resizable.tsx
|
|
4790
4943
|
import { GripVerticalIcon } from "lucide-react";
|
|
4791
4944
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
4792
|
-
import { jsx as
|
|
4945
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
4793
4946
|
function ResizablePanelGroup(_a) {
|
|
4794
4947
|
var _b = _a, {
|
|
4795
4948
|
className
|
|
4796
4949
|
} = _b, props = __objRest(_b, [
|
|
4797
4950
|
"className"
|
|
4798
4951
|
]);
|
|
4799
|
-
return /* @__PURE__ */
|
|
4952
|
+
return /* @__PURE__ */ jsx45(
|
|
4800
4953
|
ResizablePrimitive.Group,
|
|
4801
4954
|
__spreadValues({
|
|
4802
4955
|
"data-slot": "resizable-panel-group",
|
|
@@ -4809,7 +4962,7 @@ function ResizablePanelGroup(_a) {
|
|
|
4809
4962
|
}
|
|
4810
4963
|
function ResizablePanel(_a) {
|
|
4811
4964
|
var props = __objRest(_a, []);
|
|
4812
|
-
return /* @__PURE__ */
|
|
4965
|
+
return /* @__PURE__ */ jsx45(ResizablePrimitive.Panel, __spreadValues({ "data-slot": "resizable-panel" }, props));
|
|
4813
4966
|
}
|
|
4814
4967
|
function ResizableHandle(_a) {
|
|
4815
4968
|
var _b = _a, {
|
|
@@ -4819,7 +4972,7 @@ function ResizableHandle(_a) {
|
|
|
4819
4972
|
"withHandle",
|
|
4820
4973
|
"className"
|
|
4821
4974
|
]);
|
|
4822
|
-
return /* @__PURE__ */
|
|
4975
|
+
return /* @__PURE__ */ jsx45(
|
|
4823
4976
|
ResizablePrimitive.Separator,
|
|
4824
4977
|
__spreadProps(__spreadValues({
|
|
4825
4978
|
"data-slot": "resizable-handle",
|
|
@@ -4828,14 +4981,14 @@ function ResizableHandle(_a) {
|
|
|
4828
4981
|
className
|
|
4829
4982
|
)
|
|
4830
4983
|
}, props), {
|
|
4831
|
-
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" }) })
|
|
4832
4985
|
})
|
|
4833
4986
|
);
|
|
4834
4987
|
}
|
|
4835
4988
|
|
|
4836
4989
|
// components/ui/scroll-area.tsx
|
|
4837
4990
|
import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
|
|
4838
|
-
import { jsx as
|
|
4991
|
+
import { jsx as jsx46, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4839
4992
|
function ScrollArea(_a) {
|
|
4840
4993
|
var _b = _a, {
|
|
4841
4994
|
className,
|
|
@@ -4844,14 +4997,14 @@ function ScrollArea(_a) {
|
|
|
4844
4997
|
"className",
|
|
4845
4998
|
"children"
|
|
4846
4999
|
]);
|
|
4847
|
-
return /* @__PURE__ */
|
|
5000
|
+
return /* @__PURE__ */ jsxs22(
|
|
4848
5001
|
ScrollAreaPrimitive.Root,
|
|
4849
5002
|
__spreadProps(__spreadValues({
|
|
4850
5003
|
"data-slot": "scroll-area",
|
|
4851
5004
|
className: cn("relative", className)
|
|
4852
5005
|
}, props), {
|
|
4853
5006
|
children: [
|
|
4854
|
-
/* @__PURE__ */
|
|
5007
|
+
/* @__PURE__ */ jsx46(
|
|
4855
5008
|
ScrollAreaPrimitive.Viewport,
|
|
4856
5009
|
{
|
|
4857
5010
|
"data-slot": "scroll-area-viewport",
|
|
@@ -4859,8 +5012,8 @@ function ScrollArea(_a) {
|
|
|
4859
5012
|
children
|
|
4860
5013
|
}
|
|
4861
5014
|
),
|
|
4862
|
-
/* @__PURE__ */
|
|
4863
|
-
/* @__PURE__ */
|
|
5015
|
+
/* @__PURE__ */ jsx46(ScrollBar, {}),
|
|
5016
|
+
/* @__PURE__ */ jsx46(ScrollAreaPrimitive.Corner, {})
|
|
4864
5017
|
]
|
|
4865
5018
|
})
|
|
4866
5019
|
);
|
|
@@ -4873,7 +5026,7 @@ function ScrollBar(_a) {
|
|
|
4873
5026
|
"className",
|
|
4874
5027
|
"orientation"
|
|
4875
5028
|
]);
|
|
4876
|
-
return /* @__PURE__ */
|
|
5029
|
+
return /* @__PURE__ */ jsx46(
|
|
4877
5030
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
4878
5031
|
__spreadProps(__spreadValues({
|
|
4879
5032
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -4885,7 +5038,7 @@ function ScrollBar(_a) {
|
|
|
4885
5038
|
className
|
|
4886
5039
|
)
|
|
4887
5040
|
}, props), {
|
|
4888
|
-
children: /* @__PURE__ */
|
|
5041
|
+
children: /* @__PURE__ */ jsx46(
|
|
4889
5042
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
4890
5043
|
{
|
|
4891
5044
|
"data-slot": "scroll-area-thumb",
|
|
@@ -4899,18 +5052,18 @@ function ScrollBar(_a) {
|
|
|
4899
5052
|
// components/ui/select.tsx
|
|
4900
5053
|
import { CheckIcon as CheckIcon6, ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon } from "lucide-react";
|
|
4901
5054
|
import { Select as SelectPrimitive } from "radix-ui";
|
|
4902
|
-
import { jsx as
|
|
5055
|
+
import { jsx as jsx47, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4903
5056
|
function Select(_a) {
|
|
4904
5057
|
var props = __objRest(_a, []);
|
|
4905
|
-
return /* @__PURE__ */
|
|
5058
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Root, __spreadValues({ "data-slot": "select" }, props));
|
|
4906
5059
|
}
|
|
4907
5060
|
function SelectGroup(_a) {
|
|
4908
5061
|
var props = __objRest(_a, []);
|
|
4909
|
-
return /* @__PURE__ */
|
|
5062
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Group, __spreadValues({ "data-slot": "select-group" }, props));
|
|
4910
5063
|
}
|
|
4911
5064
|
function SelectValue(_a) {
|
|
4912
5065
|
var props = __objRest(_a, []);
|
|
4913
|
-
return /* @__PURE__ */
|
|
5066
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Value, __spreadValues({ "data-slot": "select-value" }, props));
|
|
4914
5067
|
}
|
|
4915
5068
|
function SelectTrigger(_a) {
|
|
4916
5069
|
var _b = _a, {
|
|
@@ -4924,7 +5077,7 @@ function SelectTrigger(_a) {
|
|
|
4924
5077
|
"readOnly",
|
|
4925
5078
|
"children"
|
|
4926
5079
|
]);
|
|
4927
|
-
return /* @__PURE__ */
|
|
5080
|
+
return /* @__PURE__ */ jsxs23(
|
|
4928
5081
|
SelectPrimitive.Trigger,
|
|
4929
5082
|
__spreadProps(__spreadValues({
|
|
4930
5083
|
"data-slot": "select-trigger",
|
|
@@ -4938,7 +5091,7 @@ function SelectTrigger(_a) {
|
|
|
4938
5091
|
}, props), {
|
|
4939
5092
|
children: [
|
|
4940
5093
|
children,
|
|
4941
|
-
/* @__PURE__ */
|
|
5094
|
+
/* @__PURE__ */ jsx47(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx47(ChevronDownIcon6, { className: cn("size-4", readOnly ? "opacity-30" : "opacity-50") }) })
|
|
4942
5095
|
]
|
|
4943
5096
|
})
|
|
4944
5097
|
);
|
|
@@ -4955,7 +5108,7 @@ function SelectContent(_a) {
|
|
|
4955
5108
|
"position",
|
|
4956
5109
|
"align"
|
|
4957
5110
|
]);
|
|
4958
|
-
return /* @__PURE__ */
|
|
5111
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs23(
|
|
4959
5112
|
SelectPrimitive.Content,
|
|
4960
5113
|
__spreadProps(__spreadValues({
|
|
4961
5114
|
"data-slot": "select-content",
|
|
@@ -4968,8 +5121,8 @@ function SelectContent(_a) {
|
|
|
4968
5121
|
align
|
|
4969
5122
|
}, props), {
|
|
4970
5123
|
children: [
|
|
4971
|
-
/* @__PURE__ */
|
|
4972
|
-
/* @__PURE__ */
|
|
5124
|
+
/* @__PURE__ */ jsx47(SelectScrollUpButton, {}),
|
|
5125
|
+
/* @__PURE__ */ jsx47(
|
|
4973
5126
|
SelectPrimitive.Viewport,
|
|
4974
5127
|
{
|
|
4975
5128
|
className: cn(
|
|
@@ -4979,7 +5132,7 @@ function SelectContent(_a) {
|
|
|
4979
5132
|
children
|
|
4980
5133
|
}
|
|
4981
5134
|
),
|
|
4982
|
-
/* @__PURE__ */
|
|
5135
|
+
/* @__PURE__ */ jsx47(SelectScrollDownButton, {})
|
|
4983
5136
|
]
|
|
4984
5137
|
})
|
|
4985
5138
|
) });
|
|
@@ -4990,7 +5143,7 @@ function SelectLabel(_a) {
|
|
|
4990
5143
|
} = _b, props = __objRest(_b, [
|
|
4991
5144
|
"className"
|
|
4992
5145
|
]);
|
|
4993
|
-
return /* @__PURE__ */
|
|
5146
|
+
return /* @__PURE__ */ jsx47(
|
|
4994
5147
|
SelectPrimitive.Label,
|
|
4995
5148
|
__spreadValues({
|
|
4996
5149
|
"data-slot": "select-label",
|
|
@@ -5006,7 +5159,7 @@ function SelectItem(_a) {
|
|
|
5006
5159
|
"className",
|
|
5007
5160
|
"children"
|
|
5008
5161
|
]);
|
|
5009
|
-
return /* @__PURE__ */
|
|
5162
|
+
return /* @__PURE__ */ jsxs23(
|
|
5010
5163
|
SelectPrimitive.Item,
|
|
5011
5164
|
__spreadProps(__spreadValues({
|
|
5012
5165
|
"data-slot": "select-item",
|
|
@@ -5016,15 +5169,15 @@ function SelectItem(_a) {
|
|
|
5016
5169
|
)
|
|
5017
5170
|
}, props), {
|
|
5018
5171
|
children: [
|
|
5019
|
-
/* @__PURE__ */
|
|
5172
|
+
/* @__PURE__ */ jsx47(
|
|
5020
5173
|
"span",
|
|
5021
5174
|
{
|
|
5022
5175
|
"data-slot": "select-item-indicator",
|
|
5023
5176
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
5024
|
-
children: /* @__PURE__ */
|
|
5177
|
+
children: /* @__PURE__ */ jsx47(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx47(CheckIcon6, { className: "size-4 text-primary" }) })
|
|
5025
5178
|
}
|
|
5026
5179
|
),
|
|
5027
|
-
/* @__PURE__ */
|
|
5180
|
+
/* @__PURE__ */ jsx47(SelectPrimitive.ItemText, { children })
|
|
5028
5181
|
]
|
|
5029
5182
|
})
|
|
5030
5183
|
);
|
|
@@ -5035,7 +5188,7 @@ function SelectSeparator(_a) {
|
|
|
5035
5188
|
} = _b, props = __objRest(_b, [
|
|
5036
5189
|
"className"
|
|
5037
5190
|
]);
|
|
5038
|
-
return /* @__PURE__ */
|
|
5191
|
+
return /* @__PURE__ */ jsx47(
|
|
5039
5192
|
SelectPrimitive.Separator,
|
|
5040
5193
|
__spreadValues({
|
|
5041
5194
|
"data-slot": "select-separator",
|
|
@@ -5049,7 +5202,7 @@ function SelectScrollUpButton(_a) {
|
|
|
5049
5202
|
} = _b, props = __objRest(_b, [
|
|
5050
5203
|
"className"
|
|
5051
5204
|
]);
|
|
5052
|
-
return /* @__PURE__ */
|
|
5205
|
+
return /* @__PURE__ */ jsx47(
|
|
5053
5206
|
SelectPrimitive.ScrollUpButton,
|
|
5054
5207
|
__spreadProps(__spreadValues({
|
|
5055
5208
|
"data-slot": "select-scroll-up-button",
|
|
@@ -5058,7 +5211,7 @@ function SelectScrollUpButton(_a) {
|
|
|
5058
5211
|
className
|
|
5059
5212
|
)
|
|
5060
5213
|
}, props), {
|
|
5061
|
-
children: /* @__PURE__ */
|
|
5214
|
+
children: /* @__PURE__ */ jsx47(ChevronUpIcon, { className: "size-4" })
|
|
5062
5215
|
})
|
|
5063
5216
|
);
|
|
5064
5217
|
}
|
|
@@ -5068,7 +5221,7 @@ function SelectScrollDownButton(_a) {
|
|
|
5068
5221
|
} = _b, props = __objRest(_b, [
|
|
5069
5222
|
"className"
|
|
5070
5223
|
]);
|
|
5071
|
-
return /* @__PURE__ */
|
|
5224
|
+
return /* @__PURE__ */ jsx47(
|
|
5072
5225
|
SelectPrimitive.ScrollDownButton,
|
|
5073
5226
|
__spreadProps(__spreadValues({
|
|
5074
5227
|
"data-slot": "select-scroll-down-button",
|
|
@@ -5077,7 +5230,7 @@ function SelectScrollDownButton(_a) {
|
|
|
5077
5230
|
className
|
|
5078
5231
|
)
|
|
5079
5232
|
}, props), {
|
|
5080
|
-
children: /* @__PURE__ */
|
|
5233
|
+
children: /* @__PURE__ */ jsx47(ChevronDownIcon6, { className: "size-4" })
|
|
5081
5234
|
})
|
|
5082
5235
|
);
|
|
5083
5236
|
}
|
|
@@ -5085,22 +5238,22 @@ function SelectScrollDownButton(_a) {
|
|
|
5085
5238
|
// components/ui/sheet.tsx
|
|
5086
5239
|
import { XIcon as XIcon3 } from "lucide-react";
|
|
5087
5240
|
import { Dialog as SheetPrimitive } from "radix-ui";
|
|
5088
|
-
import { jsx as
|
|
5241
|
+
import { jsx as jsx48, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5089
5242
|
function Sheet(_a) {
|
|
5090
5243
|
var props = __objRest(_a, []);
|
|
5091
|
-
return /* @__PURE__ */
|
|
5244
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Root, __spreadValues({ "data-slot": "sheet" }, props));
|
|
5092
5245
|
}
|
|
5093
5246
|
function SheetTrigger(_a) {
|
|
5094
5247
|
var props = __objRest(_a, []);
|
|
5095
|
-
return /* @__PURE__ */
|
|
5248
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Trigger, __spreadValues({ "data-slot": "sheet-trigger" }, props));
|
|
5096
5249
|
}
|
|
5097
5250
|
function SheetClose(_a) {
|
|
5098
5251
|
var props = __objRest(_a, []);
|
|
5099
|
-
return /* @__PURE__ */
|
|
5252
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Close, __spreadValues({ "data-slot": "sheet-close" }, props));
|
|
5100
5253
|
}
|
|
5101
5254
|
function SheetPortal(_a) {
|
|
5102
5255
|
var props = __objRest(_a, []);
|
|
5103
|
-
return /* @__PURE__ */
|
|
5256
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Portal, __spreadValues({ "data-slot": "sheet-portal" }, props));
|
|
5104
5257
|
}
|
|
5105
5258
|
function SheetOverlay(_a) {
|
|
5106
5259
|
var _b = _a, {
|
|
@@ -5108,7 +5261,7 @@ function SheetOverlay(_a) {
|
|
|
5108
5261
|
} = _b, props = __objRest(_b, [
|
|
5109
5262
|
"className"
|
|
5110
5263
|
]);
|
|
5111
|
-
return /* @__PURE__ */
|
|
5264
|
+
return /* @__PURE__ */ jsx48(
|
|
5112
5265
|
SheetPrimitive.Overlay,
|
|
5113
5266
|
__spreadValues({
|
|
5114
5267
|
"data-slot": "sheet-overlay",
|
|
@@ -5131,9 +5284,9 @@ function SheetContent(_a) {
|
|
|
5131
5284
|
"side",
|
|
5132
5285
|
"showCloseButton"
|
|
5133
5286
|
]);
|
|
5134
|
-
return /* @__PURE__ */
|
|
5135
|
-
/* @__PURE__ */
|
|
5136
|
-
/* @__PURE__ */
|
|
5287
|
+
return /* @__PURE__ */ jsxs24(SheetPortal, { children: [
|
|
5288
|
+
/* @__PURE__ */ jsx48(SheetOverlay, {}),
|
|
5289
|
+
/* @__PURE__ */ jsxs24(
|
|
5137
5290
|
SheetPrimitive.Content,
|
|
5138
5291
|
__spreadProps(__spreadValues({
|
|
5139
5292
|
"data-slot": "sheet-content",
|
|
@@ -5148,9 +5301,9 @@ function SheetContent(_a) {
|
|
|
5148
5301
|
}, props), {
|
|
5149
5302
|
children: [
|
|
5150
5303
|
children,
|
|
5151
|
-
showCloseButton && /* @__PURE__ */
|
|
5152
|
-
/* @__PURE__ */
|
|
5153
|
-
/* @__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" })
|
|
5154
5307
|
] })
|
|
5155
5308
|
]
|
|
5156
5309
|
})
|
|
@@ -5159,7 +5312,7 @@ function SheetContent(_a) {
|
|
|
5159
5312
|
}
|
|
5160
5313
|
function SheetHeader(_a) {
|
|
5161
5314
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5162
|
-
return /* @__PURE__ */
|
|
5315
|
+
return /* @__PURE__ */ jsx48(
|
|
5163
5316
|
"div",
|
|
5164
5317
|
__spreadValues({
|
|
5165
5318
|
"data-slot": "sheet-header",
|
|
@@ -5169,7 +5322,7 @@ function SheetHeader(_a) {
|
|
|
5169
5322
|
}
|
|
5170
5323
|
function SheetFooter(_a) {
|
|
5171
5324
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5172
|
-
return /* @__PURE__ */
|
|
5325
|
+
return /* @__PURE__ */ jsx48(
|
|
5173
5326
|
"div",
|
|
5174
5327
|
__spreadValues({
|
|
5175
5328
|
"data-slot": "sheet-footer",
|
|
@@ -5183,7 +5336,7 @@ function SheetTitle(_a) {
|
|
|
5183
5336
|
} = _b, props = __objRest(_b, [
|
|
5184
5337
|
"className"
|
|
5185
5338
|
]);
|
|
5186
|
-
return /* @__PURE__ */
|
|
5339
|
+
return /* @__PURE__ */ jsx48(
|
|
5187
5340
|
SheetPrimitive.Title,
|
|
5188
5341
|
__spreadValues({
|
|
5189
5342
|
"data-slot": "sheet-title",
|
|
@@ -5197,7 +5350,7 @@ function SheetDescription(_a) {
|
|
|
5197
5350
|
} = _b, props = __objRest(_b, [
|
|
5198
5351
|
"className"
|
|
5199
5352
|
]);
|
|
5200
|
-
return /* @__PURE__ */
|
|
5353
|
+
return /* @__PURE__ */ jsx48(
|
|
5201
5354
|
SheetPrimitive.Description,
|
|
5202
5355
|
__spreadValues({
|
|
5203
5356
|
"data-slot": "sheet-description",
|
|
@@ -5207,17 +5360,17 @@ function SheetDescription(_a) {
|
|
|
5207
5360
|
}
|
|
5208
5361
|
|
|
5209
5362
|
// components/ui/sidebar.tsx
|
|
5210
|
-
import * as
|
|
5363
|
+
import * as React12 from "react";
|
|
5211
5364
|
import { cva as cva12 } from "class-variance-authority";
|
|
5212
5365
|
import { PanelLeftIcon } from "lucide-react";
|
|
5213
5366
|
import { Slot as Slot8 } from "radix-ui";
|
|
5214
5367
|
|
|
5215
5368
|
// hooks/use-mobile.ts
|
|
5216
|
-
import * as
|
|
5369
|
+
import * as React10 from "react";
|
|
5217
5370
|
var MOBILE_BREAKPOINT = 768;
|
|
5218
5371
|
function useIsMobile() {
|
|
5219
|
-
const [isMobile, setIsMobile] =
|
|
5220
|
-
|
|
5372
|
+
const [isMobile, setIsMobile] = React10.useState(void 0);
|
|
5373
|
+
React10.useEffect(() => {
|
|
5221
5374
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
5222
5375
|
const onChange = () => {
|
|
5223
5376
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -5230,10 +5383,10 @@ function useIsMobile() {
|
|
|
5230
5383
|
}
|
|
5231
5384
|
|
|
5232
5385
|
// components/ui/skeleton.tsx
|
|
5233
|
-
import { jsx as
|
|
5386
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
5234
5387
|
function Skeleton(_a) {
|
|
5235
5388
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5236
|
-
return /* @__PURE__ */
|
|
5389
|
+
return /* @__PURE__ */ jsx49(
|
|
5237
5390
|
"div",
|
|
5238
5391
|
__spreadValues({
|
|
5239
5392
|
"data-slot": "skeleton",
|
|
@@ -5243,17 +5396,17 @@ function Skeleton(_a) {
|
|
|
5243
5396
|
}
|
|
5244
5397
|
|
|
5245
5398
|
// components/ui/tooltip.tsx
|
|
5246
|
-
import * as
|
|
5399
|
+
import * as React11 from "react";
|
|
5247
5400
|
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
5248
|
-
import { jsx as
|
|
5249
|
-
var TooltipModeContext =
|
|
5401
|
+
import { jsx as jsx50, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5402
|
+
var TooltipModeContext = React11.createContext("tooltip");
|
|
5250
5403
|
function TooltipProvider(_a) {
|
|
5251
5404
|
var _b = _a, {
|
|
5252
5405
|
delayDuration = 0
|
|
5253
5406
|
} = _b, props = __objRest(_b, [
|
|
5254
5407
|
"delayDuration"
|
|
5255
5408
|
]);
|
|
5256
|
-
return /* @__PURE__ */
|
|
5409
|
+
return /* @__PURE__ */ jsx50(
|
|
5257
5410
|
TooltipPrimitive.Provider,
|
|
5258
5411
|
__spreadValues({
|
|
5259
5412
|
"data-slot": "tooltip-provider",
|
|
@@ -5270,9 +5423,9 @@ function Tooltip2(_a) {
|
|
|
5270
5423
|
const isMobile = useIsMobile();
|
|
5271
5424
|
const mode = isMobile ? "drawer" : "tooltip";
|
|
5272
5425
|
if (mode === "drawer") {
|
|
5273
|
-
return /* @__PURE__ */
|
|
5426
|
+
return /* @__PURE__ */ jsx50(TooltipModeContext.Provider, { value: "drawer", children: /* @__PURE__ */ jsx50(Drawer, { children }) });
|
|
5274
5427
|
}
|
|
5275
|
-
return /* @__PURE__ */
|
|
5428
|
+
return /* @__PURE__ */ jsx50(TooltipModeContext.Provider, { value: "tooltip", children: /* @__PURE__ */ jsx50(TooltipPrimitive.Root, __spreadProps(__spreadValues({ "data-slot": "tooltip" }, props), { children })) });
|
|
5276
5429
|
}
|
|
5277
5430
|
function TooltipTrigger(_a) {
|
|
5278
5431
|
var _b = _a, {
|
|
@@ -5280,11 +5433,11 @@ function TooltipTrigger(_a) {
|
|
|
5280
5433
|
} = _b, props = __objRest(_b, [
|
|
5281
5434
|
"children"
|
|
5282
5435
|
]);
|
|
5283
|
-
const mode =
|
|
5436
|
+
const mode = React11.useContext(TooltipModeContext);
|
|
5284
5437
|
if (mode === "drawer") {
|
|
5285
|
-
return /* @__PURE__ */
|
|
5438
|
+
return /* @__PURE__ */ jsx50(DrawerTrigger, __spreadProps(__spreadValues({ "data-slot": "tooltip-trigger" }, props), { children }));
|
|
5286
5439
|
}
|
|
5287
|
-
return /* @__PURE__ */
|
|
5440
|
+
return /* @__PURE__ */ jsx50(TooltipPrimitive.Trigger, __spreadProps(__spreadValues({ "data-slot": "tooltip-trigger" }, props), { children }));
|
|
5288
5441
|
}
|
|
5289
5442
|
function TooltipContent(_a) {
|
|
5290
5443
|
var _b = _a, {
|
|
@@ -5302,17 +5455,17 @@ function TooltipContent(_a) {
|
|
|
5302
5455
|
"closeLabel",
|
|
5303
5456
|
"children"
|
|
5304
5457
|
]);
|
|
5305
|
-
const mode =
|
|
5458
|
+
const mode = React11.useContext(TooltipModeContext);
|
|
5306
5459
|
if (mode === "drawer") {
|
|
5307
|
-
return /* @__PURE__ */
|
|
5308
|
-
/* @__PURE__ */
|
|
5309
|
-
/* @__PURE__ */
|
|
5310
|
-
/* @__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 }) }) })
|
|
5311
5464
|
] });
|
|
5312
5465
|
}
|
|
5313
5466
|
const surfaceClasses = variant === "inverse" ? "bg-prominent text-on-prominent shadow-sm" : "bg-primary text-on-primary";
|
|
5314
5467
|
const arrowClasses = variant === "inverse" ? "fill-prominent" : "fill-primary";
|
|
5315
|
-
return /* @__PURE__ */
|
|
5468
|
+
return /* @__PURE__ */ jsx50(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs25(
|
|
5316
5469
|
TooltipPrimitive.Content,
|
|
5317
5470
|
__spreadProps(__spreadValues({
|
|
5318
5471
|
"data-slot": "tooltip-content",
|
|
@@ -5326,23 +5479,23 @@ function TooltipContent(_a) {
|
|
|
5326
5479
|
}, props), {
|
|
5327
5480
|
children: [
|
|
5328
5481
|
children,
|
|
5329
|
-
/* @__PURE__ */
|
|
5482
|
+
/* @__PURE__ */ jsx50(TooltipPrimitive.Arrow, { className: arrowClasses })
|
|
5330
5483
|
]
|
|
5331
5484
|
})
|
|
5332
5485
|
) });
|
|
5333
5486
|
}
|
|
5334
5487
|
|
|
5335
5488
|
// components/ui/sidebar.tsx
|
|
5336
|
-
import { jsx as
|
|
5489
|
+
import { jsx as jsx51, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5337
5490
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
5338
5491
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
5339
5492
|
var SIDEBAR_WIDTH = "16rem";
|
|
5340
5493
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
5341
5494
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
5342
5495
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
5343
|
-
var SidebarContext =
|
|
5496
|
+
var SidebarContext = React12.createContext(null);
|
|
5344
5497
|
function useSidebar() {
|
|
5345
|
-
const context =
|
|
5498
|
+
const context = React12.useContext(SidebarContext);
|
|
5346
5499
|
if (!context) {
|
|
5347
5500
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
5348
5501
|
}
|
|
@@ -5365,10 +5518,10 @@ function SidebarProvider(_a) {
|
|
|
5365
5518
|
"children"
|
|
5366
5519
|
]);
|
|
5367
5520
|
const isMobile = useIsMobile();
|
|
5368
|
-
const [openMobile, setOpenMobile] =
|
|
5369
|
-
const [_open, _setOpen] =
|
|
5521
|
+
const [openMobile, setOpenMobile] = React12.useState(false);
|
|
5522
|
+
const [_open, _setOpen] = React12.useState(defaultOpen);
|
|
5370
5523
|
const open = openProp != null ? openProp : _open;
|
|
5371
|
-
const setOpen =
|
|
5524
|
+
const setOpen = React12.useCallback(
|
|
5372
5525
|
(value) => {
|
|
5373
5526
|
const openState = typeof value === "function" ? value(open) : value;
|
|
5374
5527
|
if (setOpenProp) {
|
|
@@ -5380,10 +5533,10 @@ function SidebarProvider(_a) {
|
|
|
5380
5533
|
},
|
|
5381
5534
|
[setOpenProp, open]
|
|
5382
5535
|
);
|
|
5383
|
-
const toggleSidebar =
|
|
5536
|
+
const toggleSidebar = React12.useCallback(() => {
|
|
5384
5537
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
5385
5538
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
5386
|
-
|
|
5539
|
+
React12.useEffect(() => {
|
|
5387
5540
|
const handleKeyDown = (event) => {
|
|
5388
5541
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
5389
5542
|
event.preventDefault();
|
|
@@ -5394,7 +5547,7 @@ function SidebarProvider(_a) {
|
|
|
5394
5547
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
5395
5548
|
}, [toggleSidebar]);
|
|
5396
5549
|
const state = open ? "expanded" : "collapsed";
|
|
5397
|
-
const contextValue =
|
|
5550
|
+
const contextValue = React12.useMemo(
|
|
5398
5551
|
() => ({
|
|
5399
5552
|
state,
|
|
5400
5553
|
open,
|
|
@@ -5406,7 +5559,7 @@ function SidebarProvider(_a) {
|
|
|
5406
5559
|
}),
|
|
5407
5560
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
5408
5561
|
);
|
|
5409
|
-
return /* @__PURE__ */
|
|
5562
|
+
return /* @__PURE__ */ jsx51(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx51(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx51(
|
|
5410
5563
|
"div",
|
|
5411
5564
|
__spreadProps(__spreadValues({
|
|
5412
5565
|
"data-slot": "sidebar-wrapper",
|
|
@@ -5439,7 +5592,7 @@ function Sidebar(_a) {
|
|
|
5439
5592
|
]);
|
|
5440
5593
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
5441
5594
|
if (collapsible === "none") {
|
|
5442
|
-
return /* @__PURE__ */
|
|
5595
|
+
return /* @__PURE__ */ jsx51(
|
|
5443
5596
|
"div",
|
|
5444
5597
|
__spreadProps(__spreadValues({
|
|
5445
5598
|
"data-slot": "sidebar",
|
|
@@ -5453,7 +5606,7 @@ function Sidebar(_a) {
|
|
|
5453
5606
|
);
|
|
5454
5607
|
}
|
|
5455
5608
|
if (isMobile) {
|
|
5456
|
-
return /* @__PURE__ */
|
|
5609
|
+
return /* @__PURE__ */ jsx51(Sheet, __spreadProps(__spreadValues({ open: openMobile, onOpenChange: setOpenMobile }, props), { children: /* @__PURE__ */ jsxs26(
|
|
5457
5610
|
SheetContent,
|
|
5458
5611
|
{
|
|
5459
5612
|
"data-sidebar": "sidebar",
|
|
@@ -5465,16 +5618,16 @@ function Sidebar(_a) {
|
|
|
5465
5618
|
},
|
|
5466
5619
|
side,
|
|
5467
5620
|
children: [
|
|
5468
|
-
/* @__PURE__ */
|
|
5469
|
-
/* @__PURE__ */
|
|
5470
|
-
/* @__PURE__ */
|
|
5621
|
+
/* @__PURE__ */ jsxs26(SheetHeader, { className: "sr-only", children: [
|
|
5622
|
+
/* @__PURE__ */ jsx51(SheetTitle, { children: "Sidebar" }),
|
|
5623
|
+
/* @__PURE__ */ jsx51(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
5471
5624
|
] }),
|
|
5472
|
-
/* @__PURE__ */
|
|
5625
|
+
/* @__PURE__ */ jsx51("div", { className: "flex h-full w-full flex-col", children })
|
|
5473
5626
|
]
|
|
5474
5627
|
}
|
|
5475
5628
|
) }));
|
|
5476
5629
|
}
|
|
5477
|
-
return /* @__PURE__ */
|
|
5630
|
+
return /* @__PURE__ */ jsxs26(
|
|
5478
5631
|
"div",
|
|
5479
5632
|
{
|
|
5480
5633
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -5484,7 +5637,7 @@ function Sidebar(_a) {
|
|
|
5484
5637
|
"data-side": side,
|
|
5485
5638
|
"data-slot": "sidebar",
|
|
5486
5639
|
children: [
|
|
5487
|
-
/* @__PURE__ */
|
|
5640
|
+
/* @__PURE__ */ jsx51(
|
|
5488
5641
|
"div",
|
|
5489
5642
|
{
|
|
5490
5643
|
"data-slot": "sidebar-gap",
|
|
@@ -5496,7 +5649,7 @@ function Sidebar(_a) {
|
|
|
5496
5649
|
)
|
|
5497
5650
|
}
|
|
5498
5651
|
),
|
|
5499
|
-
/* @__PURE__ */
|
|
5652
|
+
/* @__PURE__ */ jsx51(
|
|
5500
5653
|
"div",
|
|
5501
5654
|
__spreadProps(__spreadValues({
|
|
5502
5655
|
"data-slot": "sidebar-container",
|
|
@@ -5508,7 +5661,7 @@ function Sidebar(_a) {
|
|
|
5508
5661
|
className
|
|
5509
5662
|
)
|
|
5510
5663
|
}, props), {
|
|
5511
|
-
children: /* @__PURE__ */
|
|
5664
|
+
children: /* @__PURE__ */ jsx51(
|
|
5512
5665
|
"div",
|
|
5513
5666
|
{
|
|
5514
5667
|
"data-sidebar": "sidebar",
|
|
@@ -5532,7 +5685,7 @@ function SidebarTrigger(_a) {
|
|
|
5532
5685
|
"onClick"
|
|
5533
5686
|
]);
|
|
5534
5687
|
const { toggleSidebar } = useSidebar();
|
|
5535
|
-
return /* @__PURE__ */
|
|
5688
|
+
return /* @__PURE__ */ jsxs26(
|
|
5536
5689
|
Button,
|
|
5537
5690
|
__spreadProps(__spreadValues({
|
|
5538
5691
|
"data-sidebar": "trigger",
|
|
@@ -5546,8 +5699,8 @@ function SidebarTrigger(_a) {
|
|
|
5546
5699
|
}
|
|
5547
5700
|
}, props), {
|
|
5548
5701
|
children: [
|
|
5549
|
-
/* @__PURE__ */
|
|
5550
|
-
/* @__PURE__ */
|
|
5702
|
+
/* @__PURE__ */ jsx51(PanelLeftIcon, {}),
|
|
5703
|
+
/* @__PURE__ */ jsx51("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
5551
5704
|
]
|
|
5552
5705
|
})
|
|
5553
5706
|
);
|
|
@@ -5555,7 +5708,7 @@ function SidebarTrigger(_a) {
|
|
|
5555
5708
|
function SidebarRail(_a) {
|
|
5556
5709
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5557
5710
|
const { toggleSidebar } = useSidebar();
|
|
5558
|
-
return /* @__PURE__ */
|
|
5711
|
+
return /* @__PURE__ */ jsx51(
|
|
5559
5712
|
"button",
|
|
5560
5713
|
__spreadValues({
|
|
5561
5714
|
"data-sidebar": "rail",
|
|
@@ -5578,7 +5731,7 @@ function SidebarRail(_a) {
|
|
|
5578
5731
|
}
|
|
5579
5732
|
function SidebarInset(_a) {
|
|
5580
5733
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5581
|
-
return /* @__PURE__ */
|
|
5734
|
+
return /* @__PURE__ */ jsx51(
|
|
5582
5735
|
"main",
|
|
5583
5736
|
__spreadValues({
|
|
5584
5737
|
"data-slot": "sidebar-inset",
|
|
@@ -5596,7 +5749,7 @@ function SidebarInput(_a) {
|
|
|
5596
5749
|
} = _b, props = __objRest(_b, [
|
|
5597
5750
|
"className"
|
|
5598
5751
|
]);
|
|
5599
|
-
return /* @__PURE__ */
|
|
5752
|
+
return /* @__PURE__ */ jsx51(
|
|
5600
5753
|
Input,
|
|
5601
5754
|
__spreadValues({
|
|
5602
5755
|
"data-slot": "sidebar-input",
|
|
@@ -5607,7 +5760,7 @@ function SidebarInput(_a) {
|
|
|
5607
5760
|
}
|
|
5608
5761
|
function SidebarHeader(_a) {
|
|
5609
5762
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5610
|
-
return /* @__PURE__ */
|
|
5763
|
+
return /* @__PURE__ */ jsx51(
|
|
5611
5764
|
"div",
|
|
5612
5765
|
__spreadValues({
|
|
5613
5766
|
"data-slot": "sidebar-header",
|
|
@@ -5618,7 +5771,7 @@ function SidebarHeader(_a) {
|
|
|
5618
5771
|
}
|
|
5619
5772
|
function SidebarFooter(_a) {
|
|
5620
5773
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5621
|
-
return /* @__PURE__ */
|
|
5774
|
+
return /* @__PURE__ */ jsx51(
|
|
5622
5775
|
"div",
|
|
5623
5776
|
__spreadValues({
|
|
5624
5777
|
"data-slot": "sidebar-footer",
|
|
@@ -5633,7 +5786,7 @@ function SidebarSeparator(_a) {
|
|
|
5633
5786
|
} = _b, props = __objRest(_b, [
|
|
5634
5787
|
"className"
|
|
5635
5788
|
]);
|
|
5636
|
-
return /* @__PURE__ */
|
|
5789
|
+
return /* @__PURE__ */ jsx51(
|
|
5637
5790
|
Separator,
|
|
5638
5791
|
__spreadValues({
|
|
5639
5792
|
"data-slot": "sidebar-separator",
|
|
@@ -5644,7 +5797,7 @@ function SidebarSeparator(_a) {
|
|
|
5644
5797
|
}
|
|
5645
5798
|
function SidebarContent(_a) {
|
|
5646
5799
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5647
|
-
return /* @__PURE__ */
|
|
5800
|
+
return /* @__PURE__ */ jsx51(
|
|
5648
5801
|
"div",
|
|
5649
5802
|
__spreadValues({
|
|
5650
5803
|
"data-slot": "sidebar-content",
|
|
@@ -5658,7 +5811,7 @@ function SidebarContent(_a) {
|
|
|
5658
5811
|
}
|
|
5659
5812
|
function SidebarGroup(_a) {
|
|
5660
5813
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5661
|
-
return /* @__PURE__ */
|
|
5814
|
+
return /* @__PURE__ */ jsx51(
|
|
5662
5815
|
"div",
|
|
5663
5816
|
__spreadValues({
|
|
5664
5817
|
"data-slot": "sidebar-group",
|
|
@@ -5676,7 +5829,7 @@ function SidebarGroupLabel(_a) {
|
|
|
5676
5829
|
"asChild"
|
|
5677
5830
|
]);
|
|
5678
5831
|
const Comp = asChild ? Slot8.Root : "div";
|
|
5679
|
-
return /* @__PURE__ */
|
|
5832
|
+
return /* @__PURE__ */ jsx51(
|
|
5680
5833
|
Comp,
|
|
5681
5834
|
__spreadValues({
|
|
5682
5835
|
"data-slot": "sidebar-group-label",
|
|
@@ -5698,7 +5851,7 @@ function SidebarGroupAction(_a) {
|
|
|
5698
5851
|
"asChild"
|
|
5699
5852
|
]);
|
|
5700
5853
|
const Comp = asChild ? Slot8.Root : "button";
|
|
5701
|
-
return /* @__PURE__ */
|
|
5854
|
+
return /* @__PURE__ */ jsx51(
|
|
5702
5855
|
Comp,
|
|
5703
5856
|
__spreadValues({
|
|
5704
5857
|
"data-slot": "sidebar-group-action",
|
|
@@ -5719,7 +5872,7 @@ function SidebarGroupContent(_a) {
|
|
|
5719
5872
|
} = _b, props = __objRest(_b, [
|
|
5720
5873
|
"className"
|
|
5721
5874
|
]);
|
|
5722
|
-
return /* @__PURE__ */
|
|
5875
|
+
return /* @__PURE__ */ jsx51(
|
|
5723
5876
|
"div",
|
|
5724
5877
|
__spreadValues({
|
|
5725
5878
|
"data-slot": "sidebar-group-content",
|
|
@@ -5730,7 +5883,7 @@ function SidebarGroupContent(_a) {
|
|
|
5730
5883
|
}
|
|
5731
5884
|
function SidebarMenu(_a) {
|
|
5732
5885
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5733
|
-
return /* @__PURE__ */
|
|
5886
|
+
return /* @__PURE__ */ jsx51(
|
|
5734
5887
|
"ul",
|
|
5735
5888
|
__spreadValues({
|
|
5736
5889
|
"data-slot": "sidebar-menu",
|
|
@@ -5741,7 +5894,7 @@ function SidebarMenu(_a) {
|
|
|
5741
5894
|
}
|
|
5742
5895
|
function SidebarMenuItem(_a) {
|
|
5743
5896
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5744
|
-
return /* @__PURE__ */
|
|
5897
|
+
return /* @__PURE__ */ jsx51(
|
|
5745
5898
|
"li",
|
|
5746
5899
|
__spreadValues({
|
|
5747
5900
|
"data-slot": "sidebar-menu-item",
|
|
@@ -5788,7 +5941,7 @@ function SidebarMenuButton(_a) {
|
|
|
5788
5941
|
]);
|
|
5789
5942
|
const Comp = asChild ? Slot8.Root : "button";
|
|
5790
5943
|
const { isMobile, state } = useSidebar();
|
|
5791
|
-
const button = /* @__PURE__ */
|
|
5944
|
+
const button = /* @__PURE__ */ jsx51(
|
|
5792
5945
|
Comp,
|
|
5793
5946
|
__spreadValues({
|
|
5794
5947
|
"data-slot": "sidebar-menu-button",
|
|
@@ -5806,9 +5959,9 @@ function SidebarMenuButton(_a) {
|
|
|
5806
5959
|
children: tooltip
|
|
5807
5960
|
};
|
|
5808
5961
|
}
|
|
5809
|
-
return /* @__PURE__ */
|
|
5810
|
-
/* @__PURE__ */
|
|
5811
|
-
/* @__PURE__ */
|
|
5962
|
+
return /* @__PURE__ */ jsxs26(Tooltip2, { children: [
|
|
5963
|
+
/* @__PURE__ */ jsx51(TooltipTrigger, { asChild: true, children: button }),
|
|
5964
|
+
/* @__PURE__ */ jsx51(
|
|
5812
5965
|
TooltipContent,
|
|
5813
5966
|
__spreadValues({
|
|
5814
5967
|
side: "right",
|
|
@@ -5829,7 +5982,7 @@ function SidebarMenuAction(_a) {
|
|
|
5829
5982
|
"showOnHover"
|
|
5830
5983
|
]);
|
|
5831
5984
|
const Comp = asChild ? Slot8.Root : "button";
|
|
5832
|
-
return /* @__PURE__ */
|
|
5985
|
+
return /* @__PURE__ */ jsx51(
|
|
5833
5986
|
Comp,
|
|
5834
5987
|
__spreadValues({
|
|
5835
5988
|
"data-slot": "sidebar-menu-action",
|
|
@@ -5854,7 +6007,7 @@ function SidebarMenuBadge(_a) {
|
|
|
5854
6007
|
} = _b, props = __objRest(_b, [
|
|
5855
6008
|
"className"
|
|
5856
6009
|
]);
|
|
5857
|
-
return /* @__PURE__ */
|
|
6010
|
+
return /* @__PURE__ */ jsx51(
|
|
5858
6011
|
"div",
|
|
5859
6012
|
__spreadValues({
|
|
5860
6013
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -5880,7 +6033,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5880
6033
|
"showIcon"
|
|
5881
6034
|
]);
|
|
5882
6035
|
const width = "70%";
|
|
5883
|
-
return /* @__PURE__ */
|
|
6036
|
+
return /* @__PURE__ */ jsxs26(
|
|
5884
6037
|
"div",
|
|
5885
6038
|
__spreadProps(__spreadValues({
|
|
5886
6039
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -5888,14 +6041,14 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5888
6041
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className)
|
|
5889
6042
|
}, props), {
|
|
5890
6043
|
children: [
|
|
5891
|
-
showIcon && /* @__PURE__ */
|
|
6044
|
+
showIcon && /* @__PURE__ */ jsx51(
|
|
5892
6045
|
Skeleton,
|
|
5893
6046
|
{
|
|
5894
6047
|
className: "size-4 rounded-md",
|
|
5895
6048
|
"data-sidebar": "menu-skeleton-icon"
|
|
5896
6049
|
}
|
|
5897
6050
|
),
|
|
5898
|
-
/* @__PURE__ */
|
|
6051
|
+
/* @__PURE__ */ jsx51(
|
|
5899
6052
|
Skeleton,
|
|
5900
6053
|
{
|
|
5901
6054
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -5911,7 +6064,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5911
6064
|
}
|
|
5912
6065
|
function SidebarMenuSub(_a) {
|
|
5913
6066
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5914
|
-
return /* @__PURE__ */
|
|
6067
|
+
return /* @__PURE__ */ jsx51(
|
|
5915
6068
|
"ul",
|
|
5916
6069
|
__spreadValues({
|
|
5917
6070
|
"data-slot": "sidebar-menu-sub",
|
|
@@ -5930,7 +6083,7 @@ function SidebarMenuSubItem(_a) {
|
|
|
5930
6083
|
} = _b, props = __objRest(_b, [
|
|
5931
6084
|
"className"
|
|
5932
6085
|
]);
|
|
5933
|
-
return /* @__PURE__ */
|
|
6086
|
+
return /* @__PURE__ */ jsx51(
|
|
5934
6087
|
"li",
|
|
5935
6088
|
__spreadValues({
|
|
5936
6089
|
"data-slot": "sidebar-menu-sub-item",
|
|
@@ -5952,7 +6105,7 @@ function SidebarMenuSubButton(_a) {
|
|
|
5952
6105
|
"className"
|
|
5953
6106
|
]);
|
|
5954
6107
|
const Comp = asChild ? Slot8.Root : "a";
|
|
5955
|
-
return /* @__PURE__ */
|
|
6108
|
+
return /* @__PURE__ */ jsx51(
|
|
5956
6109
|
Comp,
|
|
5957
6110
|
__spreadValues({
|
|
5958
6111
|
"data-slot": "sidebar-menu-sub-button",
|
|
@@ -5972,9 +6125,9 @@ function SidebarMenuSubButton(_a) {
|
|
|
5972
6125
|
}
|
|
5973
6126
|
|
|
5974
6127
|
// components/ui/slider.tsx
|
|
5975
|
-
import * as
|
|
6128
|
+
import * as React13 from "react";
|
|
5976
6129
|
import { Slider as SliderPrimitive } from "radix-ui";
|
|
5977
|
-
import { jsx as
|
|
6130
|
+
import { jsx as jsx52, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5978
6131
|
function Slider(_a) {
|
|
5979
6132
|
var _b = _a, {
|
|
5980
6133
|
className,
|
|
@@ -5989,11 +6142,11 @@ function Slider(_a) {
|
|
|
5989
6142
|
"min",
|
|
5990
6143
|
"max"
|
|
5991
6144
|
]);
|
|
5992
|
-
const _values =
|
|
6145
|
+
const _values = React13.useMemo(
|
|
5993
6146
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
5994
6147
|
[value, defaultValue, min, max]
|
|
5995
6148
|
);
|
|
5996
|
-
return /* @__PURE__ */
|
|
6149
|
+
return /* @__PURE__ */ jsxs27(
|
|
5997
6150
|
SliderPrimitive.Root,
|
|
5998
6151
|
__spreadProps(__spreadValues({
|
|
5999
6152
|
"data-slot": "slider",
|
|
@@ -6007,14 +6160,14 @@ function Slider(_a) {
|
|
|
6007
6160
|
)
|
|
6008
6161
|
}, props), {
|
|
6009
6162
|
children: [
|
|
6010
|
-
/* @__PURE__ */
|
|
6163
|
+
/* @__PURE__ */ jsx52(
|
|
6011
6164
|
SliderPrimitive.Track,
|
|
6012
6165
|
{
|
|
6013
6166
|
"data-slot": "slider-track",
|
|
6014
6167
|
className: cn(
|
|
6015
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"
|
|
6016
6169
|
),
|
|
6017
|
-
children: /* @__PURE__ */
|
|
6170
|
+
children: /* @__PURE__ */ jsx52(
|
|
6018
6171
|
SliderPrimitive.Range,
|
|
6019
6172
|
{
|
|
6020
6173
|
"data-slot": "slider-range",
|
|
@@ -6025,7 +6178,7 @@ function Slider(_a) {
|
|
|
6025
6178
|
)
|
|
6026
6179
|
}
|
|
6027
6180
|
),
|
|
6028
|
-
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */
|
|
6181
|
+
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ jsx52(
|
|
6029
6182
|
SliderPrimitive.Thumb,
|
|
6030
6183
|
{
|
|
6031
6184
|
"data-slot": "slider-thumb",
|
|
@@ -6048,12 +6201,12 @@ import {
|
|
|
6048
6201
|
} from "lucide-react";
|
|
6049
6202
|
import { useTheme } from "next-themes";
|
|
6050
6203
|
import { Toaster as Sonner, toast } from "sonner";
|
|
6051
|
-
import { jsx as
|
|
6204
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
6052
6205
|
var Toaster = (_a) => {
|
|
6053
6206
|
var props = __objRest(_a, []);
|
|
6054
6207
|
const { theme = "system" } = useTheme();
|
|
6055
6208
|
const isMobile = useIsMobile();
|
|
6056
|
-
return /* @__PURE__ */
|
|
6209
|
+
return /* @__PURE__ */ jsx53(
|
|
6057
6210
|
Sonner,
|
|
6058
6211
|
__spreadValues({
|
|
6059
6212
|
theme,
|
|
@@ -6062,11 +6215,11 @@ var Toaster = (_a) => {
|
|
|
6062
6215
|
visibleToasts: isMobile ? 1 : 3,
|
|
6063
6216
|
duration: 4e3,
|
|
6064
6217
|
icons: {
|
|
6065
|
-
success: /* @__PURE__ */
|
|
6066
|
-
info: /* @__PURE__ */
|
|
6067
|
-
warning: /* @__PURE__ */
|
|
6068
|
-
error: /* @__PURE__ */
|
|
6069
|
-
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" })
|
|
6070
6223
|
},
|
|
6071
6224
|
toastOptions: {
|
|
6072
6225
|
classNames: {
|
|
@@ -6087,9 +6240,9 @@ var Toaster = (_a) => {
|
|
|
6087
6240
|
};
|
|
6088
6241
|
|
|
6089
6242
|
// components/ui/stepper.tsx
|
|
6090
|
-
import * as
|
|
6243
|
+
import * as React14 from "react";
|
|
6091
6244
|
import { Minus, Plus } from "lucide-react";
|
|
6092
|
-
import { jsx as
|
|
6245
|
+
import { jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6093
6246
|
function clamp(value, min, max) {
|
|
6094
6247
|
return Math.min(Math.max(value, min), max);
|
|
6095
6248
|
}
|
|
@@ -6123,16 +6276,16 @@ function Stepper({
|
|
|
6123
6276
|
}) {
|
|
6124
6277
|
const { container, buttonSize, iconClass } = stepperSizeConfig[size];
|
|
6125
6278
|
const isControlled = controlledValue !== void 0;
|
|
6126
|
-
const [internalValue, setInternalValue] =
|
|
6279
|
+
const [internalValue, setInternalValue] = React14.useState(
|
|
6127
6280
|
clamp(defaultValue, min, max)
|
|
6128
6281
|
);
|
|
6129
6282
|
const currentValue = isControlled ? controlledValue : internalValue;
|
|
6130
6283
|
const decimalPlaces = getDecimalPlaces(step);
|
|
6131
|
-
const [displayString, setDisplayString] =
|
|
6284
|
+
const [displayString, setDisplayString] = React14.useState(
|
|
6132
6285
|
formatValue(currentValue, decimalPlaces)
|
|
6133
6286
|
);
|
|
6134
|
-
const [isFocused, setIsFocused] =
|
|
6135
|
-
|
|
6287
|
+
const [isFocused, setIsFocused] = React14.useState(false);
|
|
6288
|
+
React14.useEffect(() => {
|
|
6136
6289
|
if (!isFocused) {
|
|
6137
6290
|
setDisplayString(formatValue(currentValue, decimalPlaces));
|
|
6138
6291
|
}
|
|
@@ -6182,14 +6335,14 @@ function Stepper({
|
|
|
6182
6335
|
}
|
|
6183
6336
|
}
|
|
6184
6337
|
}
|
|
6185
|
-
return /* @__PURE__ */
|
|
6338
|
+
return /* @__PURE__ */ jsxs28(
|
|
6186
6339
|
InputGroup,
|
|
6187
6340
|
{
|
|
6188
6341
|
"data-slot": "stepper",
|
|
6189
6342
|
"data-disabled": disabled || void 0,
|
|
6190
6343
|
className: cn("w-32", container, className),
|
|
6191
6344
|
children: [
|
|
6192
|
-
/* @__PURE__ */
|
|
6345
|
+
/* @__PURE__ */ jsx54(InputGroupAddon, { align: "inline-start", children: /* @__PURE__ */ jsx54(
|
|
6193
6346
|
InputGroupButton,
|
|
6194
6347
|
{
|
|
6195
6348
|
size: buttonSize,
|
|
@@ -6197,10 +6350,10 @@ function Stepper({
|
|
|
6197
6350
|
onClick: handleDecrement,
|
|
6198
6351
|
disabled: disabled || currentValue <= min,
|
|
6199
6352
|
"aria-label": "Decrease value",
|
|
6200
|
-
children: /* @__PURE__ */
|
|
6353
|
+
children: /* @__PURE__ */ jsx54(Minus, { className: iconClass })
|
|
6201
6354
|
}
|
|
6202
6355
|
) }),
|
|
6203
|
-
/* @__PURE__ */
|
|
6356
|
+
/* @__PURE__ */ jsx54(
|
|
6204
6357
|
InputGroupInput,
|
|
6205
6358
|
{
|
|
6206
6359
|
type: "text",
|
|
@@ -6222,9 +6375,9 @@ function Stepper({
|
|
|
6222
6375
|
className: "text-center [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
|
|
6223
6376
|
}
|
|
6224
6377
|
),
|
|
6225
|
-
/* @__PURE__ */
|
|
6226
|
-
/* @__PURE__ */
|
|
6227
|
-
/* @__PURE__ */
|
|
6378
|
+
/* @__PURE__ */ jsxs28(InputGroupAddon, { align: "inline-end", children: [
|
|
6379
|
+
/* @__PURE__ */ jsx54(InputGroupText, { className: "font-normal text-on-subtle", children: "USDT" }),
|
|
6380
|
+
/* @__PURE__ */ jsx54(
|
|
6228
6381
|
InputGroupButton,
|
|
6229
6382
|
{
|
|
6230
6383
|
size: buttonSize,
|
|
@@ -6232,7 +6385,7 @@ function Stepper({
|
|
|
6232
6385
|
onClick: handleIncrement,
|
|
6233
6386
|
disabled: disabled || currentValue >= max,
|
|
6234
6387
|
"aria-label": "Increase value",
|
|
6235
|
-
children: /* @__PURE__ */
|
|
6388
|
+
children: /* @__PURE__ */ jsx54(Plus, { className: iconClass })
|
|
6236
6389
|
}
|
|
6237
6390
|
)
|
|
6238
6391
|
] })
|
|
@@ -6243,7 +6396,7 @@ function Stepper({
|
|
|
6243
6396
|
|
|
6244
6397
|
// components/ui/switch.tsx
|
|
6245
6398
|
import { Switch as SwitchPrimitive } from "radix-ui";
|
|
6246
|
-
import { jsx as
|
|
6399
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
6247
6400
|
function Switch(_a) {
|
|
6248
6401
|
var _b = _a, {
|
|
6249
6402
|
className,
|
|
@@ -6252,7 +6405,7 @@ function Switch(_a) {
|
|
|
6252
6405
|
"className",
|
|
6253
6406
|
"size"
|
|
6254
6407
|
]);
|
|
6255
|
-
return /* @__PURE__ */
|
|
6408
|
+
return /* @__PURE__ */ jsx55(
|
|
6256
6409
|
SwitchPrimitive.Root,
|
|
6257
6410
|
__spreadProps(__spreadValues({
|
|
6258
6411
|
"data-slot": "switch",
|
|
@@ -6262,7 +6415,7 @@ function Switch(_a) {
|
|
|
6262
6415
|
className
|
|
6263
6416
|
)
|
|
6264
6417
|
}, props), {
|
|
6265
|
-
children: /* @__PURE__ */
|
|
6418
|
+
children: /* @__PURE__ */ jsx55(
|
|
6266
6419
|
SwitchPrimitive.Thumb,
|
|
6267
6420
|
{
|
|
6268
6421
|
"data-slot": "switch-thumb",
|
|
@@ -6276,15 +6429,15 @@ function Switch(_a) {
|
|
|
6276
6429
|
}
|
|
6277
6430
|
|
|
6278
6431
|
// components/ui/table.tsx
|
|
6279
|
-
import { jsx as
|
|
6432
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
6280
6433
|
function Table(_a) {
|
|
6281
6434
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6282
|
-
return /* @__PURE__ */
|
|
6435
|
+
return /* @__PURE__ */ jsx56(
|
|
6283
6436
|
"div",
|
|
6284
6437
|
{
|
|
6285
6438
|
"data-slot": "table-container",
|
|
6286
6439
|
className: "relative w-full overflow-x-auto",
|
|
6287
|
-
children: /* @__PURE__ */
|
|
6440
|
+
children: /* @__PURE__ */ jsx56(
|
|
6288
6441
|
"table",
|
|
6289
6442
|
__spreadValues({
|
|
6290
6443
|
"data-slot": "table",
|
|
@@ -6296,7 +6449,7 @@ function Table(_a) {
|
|
|
6296
6449
|
}
|
|
6297
6450
|
function TableHeader(_a) {
|
|
6298
6451
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6299
|
-
return /* @__PURE__ */
|
|
6452
|
+
return /* @__PURE__ */ jsx56(
|
|
6300
6453
|
"thead",
|
|
6301
6454
|
__spreadValues({
|
|
6302
6455
|
"data-slot": "table-header",
|
|
@@ -6306,7 +6459,7 @@ function TableHeader(_a) {
|
|
|
6306
6459
|
}
|
|
6307
6460
|
function TableBody(_a) {
|
|
6308
6461
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6309
|
-
return /* @__PURE__ */
|
|
6462
|
+
return /* @__PURE__ */ jsx56(
|
|
6310
6463
|
"tbody",
|
|
6311
6464
|
__spreadValues({
|
|
6312
6465
|
"data-slot": "table-body",
|
|
@@ -6316,7 +6469,7 @@ function TableBody(_a) {
|
|
|
6316
6469
|
}
|
|
6317
6470
|
function TableFooter(_a) {
|
|
6318
6471
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6319
|
-
return /* @__PURE__ */
|
|
6472
|
+
return /* @__PURE__ */ jsx56(
|
|
6320
6473
|
"tfoot",
|
|
6321
6474
|
__spreadValues({
|
|
6322
6475
|
"data-slot": "table-footer",
|
|
@@ -6329,7 +6482,7 @@ function TableFooter(_a) {
|
|
|
6329
6482
|
}
|
|
6330
6483
|
function TableRow(_a) {
|
|
6331
6484
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6332
|
-
return /* @__PURE__ */
|
|
6485
|
+
return /* @__PURE__ */ jsx56(
|
|
6333
6486
|
"tr",
|
|
6334
6487
|
__spreadValues({
|
|
6335
6488
|
"data-slot": "table-row",
|
|
@@ -6342,7 +6495,7 @@ function TableRow(_a) {
|
|
|
6342
6495
|
}
|
|
6343
6496
|
function TableHead(_a) {
|
|
6344
6497
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6345
|
-
return /* @__PURE__ */
|
|
6498
|
+
return /* @__PURE__ */ jsx56(
|
|
6346
6499
|
"th",
|
|
6347
6500
|
__spreadValues({
|
|
6348
6501
|
"data-slot": "table-head",
|
|
@@ -6355,7 +6508,7 @@ function TableHead(_a) {
|
|
|
6355
6508
|
}
|
|
6356
6509
|
function TableCell(_a) {
|
|
6357
6510
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6358
|
-
return /* @__PURE__ */
|
|
6511
|
+
return /* @__PURE__ */ jsx56(
|
|
6359
6512
|
"td",
|
|
6360
6513
|
__spreadValues({
|
|
6361
6514
|
"data-slot": "table-cell",
|
|
@@ -6372,7 +6525,7 @@ function TableCaption(_a) {
|
|
|
6372
6525
|
} = _b, props = __objRest(_b, [
|
|
6373
6526
|
"className"
|
|
6374
6527
|
]);
|
|
6375
|
-
return /* @__PURE__ */
|
|
6528
|
+
return /* @__PURE__ */ jsx56(
|
|
6376
6529
|
"caption",
|
|
6377
6530
|
__spreadValues({
|
|
6378
6531
|
"data-slot": "table-caption",
|
|
@@ -6384,7 +6537,7 @@ function TableCaption(_a) {
|
|
|
6384
6537
|
// components/ui/tabs.tsx
|
|
6385
6538
|
import { cva as cva13 } from "class-variance-authority";
|
|
6386
6539
|
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
6387
|
-
import { jsx as
|
|
6540
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
6388
6541
|
function Tabs(_a) {
|
|
6389
6542
|
var _b = _a, {
|
|
6390
6543
|
className,
|
|
@@ -6393,7 +6546,7 @@ function Tabs(_a) {
|
|
|
6393
6546
|
"className",
|
|
6394
6547
|
"orientation"
|
|
6395
6548
|
]);
|
|
6396
|
-
return /* @__PURE__ */
|
|
6549
|
+
return /* @__PURE__ */ jsx57(
|
|
6397
6550
|
TabsPrimitive.Root,
|
|
6398
6551
|
__spreadValues({
|
|
6399
6552
|
"data-slot": "tabs",
|
|
@@ -6436,7 +6589,7 @@ function TabsList(_a) {
|
|
|
6436
6589
|
"variant",
|
|
6437
6590
|
"size"
|
|
6438
6591
|
]);
|
|
6439
|
-
return /* @__PURE__ */
|
|
6592
|
+
return /* @__PURE__ */ jsx57(
|
|
6440
6593
|
TabsPrimitive.List,
|
|
6441
6594
|
__spreadValues({
|
|
6442
6595
|
"data-slot": "tabs-list",
|
|
@@ -6454,7 +6607,7 @@ function TabsTrigger(_a) {
|
|
|
6454
6607
|
"className",
|
|
6455
6608
|
"iconPosition"
|
|
6456
6609
|
]);
|
|
6457
|
-
return /* @__PURE__ */
|
|
6610
|
+
return /* @__PURE__ */ jsx57(
|
|
6458
6611
|
TabsPrimitive.Trigger,
|
|
6459
6612
|
__spreadValues({
|
|
6460
6613
|
"data-slot": "tabs-trigger",
|
|
@@ -6480,7 +6633,7 @@ function TabsContent(_a) {
|
|
|
6480
6633
|
} = _b, props = __objRest(_b, [
|
|
6481
6634
|
"className"
|
|
6482
6635
|
]);
|
|
6483
|
-
return /* @__PURE__ */
|
|
6636
|
+
return /* @__PURE__ */ jsx57(
|
|
6484
6637
|
TabsPrimitive.Content,
|
|
6485
6638
|
__spreadValues({
|
|
6486
6639
|
"data-slot": "tabs-content",
|
|
@@ -6491,7 +6644,7 @@ function TabsContent(_a) {
|
|
|
6491
6644
|
|
|
6492
6645
|
// components/ui/ticket-card.tsx
|
|
6493
6646
|
import { ArrowRight as ArrowRight2, Info as Info2 } from "lucide-react";
|
|
6494
|
-
import { Fragment as
|
|
6647
|
+
import { Fragment as Fragment5, jsx as jsx58, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6495
6648
|
function formatBalanceValue(raw) {
|
|
6496
6649
|
const match = raw.match(/^(\D*)([\d,]+(?:\.\d+)?)(\D*)$/);
|
|
6497
6650
|
if (!match) return raw;
|
|
@@ -6515,23 +6668,23 @@ function TicketCard({
|
|
|
6515
6668
|
stubDisabled = false,
|
|
6516
6669
|
compact = false
|
|
6517
6670
|
}) {
|
|
6518
|
-
return /* @__PURE__ */
|
|
6519
|
-
/* @__PURE__ */
|
|
6520
|
-
icon && /* @__PURE__ */
|
|
6521
|
-
/* @__PURE__ */
|
|
6522
|
-
/* @__PURE__ */
|
|
6523
|
-
/* @__PURE__ */
|
|
6524
|
-
/* @__PURE__ */
|
|
6525
|
-
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: [
|
|
6526
6679
|
" ",
|
|
6527
|
-
/* @__PURE__ */
|
|
6680
|
+
/* @__PURE__ */ jsx58("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6528
6681
|
] })
|
|
6529
6682
|
] })
|
|
6530
6683
|
] })
|
|
6531
6684
|
] }),
|
|
6532
|
-
/* @__PURE__ */
|
|
6533
|
-
/* @__PURE__ */
|
|
6534
|
-
/* @__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(
|
|
6535
6688
|
"div",
|
|
6536
6689
|
{
|
|
6537
6690
|
"aria-hidden": true,
|
|
@@ -6542,7 +6695,7 @@ function TicketCard({
|
|
|
6542
6695
|
}
|
|
6543
6696
|
}
|
|
6544
6697
|
),
|
|
6545
|
-
/* @__PURE__ */
|
|
6698
|
+
/* @__PURE__ */ jsxs29(
|
|
6546
6699
|
"button",
|
|
6547
6700
|
{
|
|
6548
6701
|
type: "button",
|
|
@@ -6556,7 +6709,7 @@ function TicketCard({
|
|
|
6556
6709
|
stubDisabled ? "cursor-not-allowed opacity-50" : "hover:bg-primary-hover"
|
|
6557
6710
|
),
|
|
6558
6711
|
children: [
|
|
6559
|
-
!stubDisabled && /* @__PURE__ */
|
|
6712
|
+
!stubDisabled && /* @__PURE__ */ jsx58(
|
|
6560
6713
|
"span",
|
|
6561
6714
|
{
|
|
6562
6715
|
"aria-hidden": true,
|
|
@@ -6566,8 +6719,8 @@ function TicketCard({
|
|
|
6566
6719
|
}
|
|
6567
6720
|
}
|
|
6568
6721
|
),
|
|
6569
|
-
/* @__PURE__ */
|
|
6570
|
-
/* @__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 })
|
|
6571
6724
|
]
|
|
6572
6725
|
}
|
|
6573
6726
|
)
|
|
@@ -6593,58 +6746,58 @@ function CreditTicketCard({
|
|
|
6593
6746
|
badgeInfoCloseLabel,
|
|
6594
6747
|
compact = false
|
|
6595
6748
|
}) {
|
|
6596
|
-
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: [
|
|
6597
6750
|
(() => {
|
|
6598
6751
|
const badgeText = badgeValue || badgeCurrency ? `${badgeLabel}: ${badgeValue}${badgeCurrency ? ` ${badgeCurrency}` : ""}` : badgeLabel;
|
|
6599
|
-
const creditBadge = /* @__PURE__ */
|
|
6752
|
+
const creditBadge = /* @__PURE__ */ jsxs29(Badge, { variant: "fill-credit", size: "sm", className: "!gap-1 !font-medium !tracking-normal", children: [
|
|
6600
6753
|
badgeIcon,
|
|
6601
6754
|
badgeText,
|
|
6602
|
-
badgeInfo && /* @__PURE__ */
|
|
6603
|
-
/* @__PURE__ */
|
|
6755
|
+
badgeInfo && /* @__PURE__ */ jsx58(TooltipProvider, { children: /* @__PURE__ */ jsxs29(Tooltip2, { children: [
|
|
6756
|
+
/* @__PURE__ */ jsx58(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx58(
|
|
6604
6757
|
"button",
|
|
6605
6758
|
{
|
|
6606
6759
|
type: "button",
|
|
6607
6760
|
"aria-label": `More info about ${badgeLabel.toLowerCase()}`,
|
|
6608
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",
|
|
6609
|
-
children: /* @__PURE__ */
|
|
6762
|
+
children: /* @__PURE__ */ jsx58(Info2, { className: "!size-3.5", strokeWidth: 2 })
|
|
6610
6763
|
}
|
|
6611
6764
|
) }),
|
|
6612
|
-
/* @__PURE__ */
|
|
6765
|
+
/* @__PURE__ */ jsx58(TooltipContent, { side: badgeInfoSide, align: badgeInfoAlign, title: badgeInfoTitle, closeLabel: badgeInfoCloseLabel, variant: "inverse", className: "max-w-xs whitespace-normal", children: badgeInfo })
|
|
6613
6766
|
] }) })
|
|
6614
6767
|
] });
|
|
6615
|
-
const labelValue = /* @__PURE__ */
|
|
6616
|
-
/* @__PURE__ */
|
|
6617
|
-
/* @__PURE__ */
|
|
6618
|
-
/* @__PURE__ */
|
|
6619
|
-
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: [
|
|
6620
6773
|
" ",
|
|
6621
|
-
/* @__PURE__ */
|
|
6774
|
+
/* @__PURE__ */ jsx58("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6622
6775
|
] })
|
|
6623
6776
|
] })
|
|
6624
6777
|
] });
|
|
6625
|
-
return /* @__PURE__ */
|
|
6778
|
+
return /* @__PURE__ */ jsx58(
|
|
6626
6779
|
"div",
|
|
6627
6780
|
{
|
|
6628
6781
|
className: cn(
|
|
6629
6782
|
"flex flex-1 overflow-hidden",
|
|
6630
6783
|
compact ? "flex-col gap-2 px-2 py-4" : "items-center gap-4 px-4 py-4"
|
|
6631
6784
|
),
|
|
6632
|
-
children: compact ? /* @__PURE__ */
|
|
6633
|
-
/* @__PURE__ */
|
|
6634
|
-
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 }),
|
|
6635
6788
|
labelValue
|
|
6636
6789
|
] }),
|
|
6637
|
-
/* @__PURE__ */
|
|
6638
|
-
] }) : /* @__PURE__ */
|
|
6639
|
-
icon && /* @__PURE__ */
|
|
6640
|
-
/* @__PURE__ */
|
|
6641
|
-
/* @__PURE__ */
|
|
6642
|
-
/* @__PURE__ */
|
|
6643
|
-
/* @__PURE__ */
|
|
6644
|
-
/* @__PURE__ */
|
|
6645
|
-
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: [
|
|
6646
6799
|
" ",
|
|
6647
|
-
/* @__PURE__ */
|
|
6800
|
+
/* @__PURE__ */ jsx58("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6648
6801
|
] })
|
|
6649
6802
|
] }),
|
|
6650
6803
|
creditBadge
|
|
@@ -6654,9 +6807,9 @@ function CreditTicketCard({
|
|
|
6654
6807
|
}
|
|
6655
6808
|
);
|
|
6656
6809
|
})(),
|
|
6657
|
-
/* @__PURE__ */
|
|
6658
|
-
/* @__PURE__ */
|
|
6659
|
-
/* @__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(
|
|
6660
6813
|
"div",
|
|
6661
6814
|
{
|
|
6662
6815
|
"aria-hidden": true,
|
|
@@ -6667,7 +6820,7 @@ function CreditTicketCard({
|
|
|
6667
6820
|
}
|
|
6668
6821
|
}
|
|
6669
6822
|
),
|
|
6670
|
-
/* @__PURE__ */
|
|
6823
|
+
/* @__PURE__ */ jsxs29(
|
|
6671
6824
|
"button",
|
|
6672
6825
|
{
|
|
6673
6826
|
type: "button",
|
|
@@ -6681,7 +6834,7 @@ function CreditTicketCard({
|
|
|
6681
6834
|
stubDisabled ? "cursor-not-allowed opacity-50" : "hover:bg-primary-hover"
|
|
6682
6835
|
),
|
|
6683
6836
|
children: [
|
|
6684
|
-
!stubDisabled && /* @__PURE__ */
|
|
6837
|
+
!stubDisabled && /* @__PURE__ */ jsx58(
|
|
6685
6838
|
"span",
|
|
6686
6839
|
{
|
|
6687
6840
|
"aria-hidden": true,
|
|
@@ -6691,8 +6844,8 @@ function CreditTicketCard({
|
|
|
6691
6844
|
}
|
|
6692
6845
|
}
|
|
6693
6846
|
),
|
|
6694
|
-
/* @__PURE__ */
|
|
6695
|
-
/* @__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 })
|
|
6696
6849
|
]
|
|
6697
6850
|
}
|
|
6698
6851
|
)
|
|
@@ -6703,7 +6856,7 @@ var TicketCardDesktop = TicketCard;
|
|
|
6703
6856
|
// components/ui/toggle.tsx
|
|
6704
6857
|
import { cva as cva14 } from "class-variance-authority";
|
|
6705
6858
|
import { Toggle as TogglePrimitive } from "radix-ui";
|
|
6706
|
-
import { jsx as
|
|
6859
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
6707
6860
|
var toggleVariants = cva14(
|
|
6708
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",
|
|
6709
6862
|
{
|
|
@@ -6734,7 +6887,7 @@ function Toggle(_a) {
|
|
|
6734
6887
|
"variant",
|
|
6735
6888
|
"size"
|
|
6736
6889
|
]);
|
|
6737
|
-
return /* @__PURE__ */
|
|
6890
|
+
return /* @__PURE__ */ jsx59(
|
|
6738
6891
|
TogglePrimitive.Root,
|
|
6739
6892
|
__spreadValues({
|
|
6740
6893
|
"data-slot": "toggle",
|
|
@@ -6744,10 +6897,10 @@ function Toggle(_a) {
|
|
|
6744
6897
|
}
|
|
6745
6898
|
|
|
6746
6899
|
// components/ui/toggle-group.tsx
|
|
6747
|
-
import * as
|
|
6900
|
+
import * as React15 from "react";
|
|
6748
6901
|
import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
|
|
6749
|
-
import { jsx as
|
|
6750
|
-
var ToggleGroupContext =
|
|
6902
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
6903
|
+
var ToggleGroupContext = React15.createContext({
|
|
6751
6904
|
size: "default",
|
|
6752
6905
|
variant: "default",
|
|
6753
6906
|
spacing: 0
|
|
@@ -6766,7 +6919,7 @@ function ToggleGroup(_a) {
|
|
|
6766
6919
|
"spacing",
|
|
6767
6920
|
"children"
|
|
6768
6921
|
]);
|
|
6769
|
-
return /* @__PURE__ */
|
|
6922
|
+
return /* @__PURE__ */ jsx60(
|
|
6770
6923
|
ToggleGroupPrimitive.Root,
|
|
6771
6924
|
__spreadProps(__spreadValues({
|
|
6772
6925
|
"data-slot": "toggle-group",
|
|
@@ -6779,7 +6932,7 @@ function ToggleGroup(_a) {
|
|
|
6779
6932
|
className
|
|
6780
6933
|
)
|
|
6781
6934
|
}, props), {
|
|
6782
|
-
children: /* @__PURE__ */
|
|
6935
|
+
children: /* @__PURE__ */ jsx60(ToggleGroupContext.Provider, { value: { variant, size, spacing }, children })
|
|
6783
6936
|
})
|
|
6784
6937
|
);
|
|
6785
6938
|
}
|
|
@@ -6795,8 +6948,8 @@ function ToggleGroupItem(_a) {
|
|
|
6795
6948
|
"variant",
|
|
6796
6949
|
"size"
|
|
6797
6950
|
]);
|
|
6798
|
-
const context =
|
|
6799
|
-
return /* @__PURE__ */
|
|
6951
|
+
const context = React15.useContext(ToggleGroupContext);
|
|
6952
|
+
return /* @__PURE__ */ jsx60(
|
|
6800
6953
|
ToggleGroupPrimitive.Item,
|
|
6801
6954
|
__spreadProps(__spreadValues({
|
|
6802
6955
|
"data-slot": "toggle-group-item",
|
|
@@ -6819,7 +6972,7 @@ function ToggleGroupItem(_a) {
|
|
|
6819
6972
|
}
|
|
6820
6973
|
|
|
6821
6974
|
// components/blocks/result-block.tsx
|
|
6822
|
-
import { Fragment as
|
|
6975
|
+
import { Fragment as Fragment6, jsx as jsx61, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6823
6976
|
var THUMBS_UP_DATA_URL = "data:image/webp;base64,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";
|
|
6824
6977
|
var THUMBS_DOWN_DATA_URL = "data:image/webp;base64,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";
|
|
6825
6978
|
function ResultBlock({
|
|
@@ -6836,9 +6989,9 @@ function ResultBlock({
|
|
|
6836
6989
|
const signedAmount = isWin ? `+${amount}` : `\u2212${amount}`;
|
|
6837
6990
|
const amountColorClass = isWin ? "text-semantic-win" : "text-semantic-loss";
|
|
6838
6991
|
const haloBgClass = isWin ? "bg-semantic-win" : "bg-semantic-loss";
|
|
6839
|
-
return /* @__PURE__ */
|
|
6840
|
-
/* @__PURE__ */
|
|
6841
|
-
/* @__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(
|
|
6842
6995
|
"span",
|
|
6843
6996
|
{
|
|
6844
6997
|
"aria-hidden": true,
|
|
@@ -6846,7 +6999,7 @@ function ResultBlock({
|
|
|
6846
6999
|
className: `absolute size-24 rounded-full blur-2xl opacity-20 ${haloBgClass}`
|
|
6847
7000
|
}
|
|
6848
7001
|
),
|
|
6849
|
-
/* @__PURE__ */
|
|
7002
|
+
/* @__PURE__ */ jsx61(
|
|
6850
7003
|
"img",
|
|
6851
7004
|
{
|
|
6852
7005
|
"data-results-motion": isWin ? "icon-win" : "icon-loss",
|
|
@@ -6856,28 +7009,28 @@ function ResultBlock({
|
|
|
6856
7009
|
}
|
|
6857
7010
|
)
|
|
6858
7011
|
] }),
|
|
6859
|
-
/* @__PURE__ */
|
|
6860
|
-
/* @__PURE__ */
|
|
6861
|
-
/* @__PURE__ */
|
|
6862
|
-
/* @__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 })
|
|
6863
7016
|
] }),
|
|
6864
|
-
/* @__PURE__ */
|
|
6865
|
-
/* @__PURE__ */
|
|
7017
|
+
/* @__PURE__ */ jsxs30("div", { className: "flex items-center gap-2", children: [
|
|
7018
|
+
/* @__PURE__ */ jsxs30(Badge, { variant: "standard", size: "sm", children: [
|
|
6866
7019
|
contractLabel,
|
|
6867
|
-
pickedDigit !== void 0 && /* @__PURE__ */
|
|
6868
|
-
/* @__PURE__ */
|
|
6869
|
-
/* @__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 })
|
|
6870
7023
|
] })
|
|
6871
7024
|
] }),
|
|
6872
|
-
/* @__PURE__ */
|
|
7025
|
+
/* @__PURE__ */ jsx61(Badge, { variant: "standard", size: "sm", children: duration })
|
|
6873
7026
|
] }),
|
|
6874
|
-
/* @__PURE__ */
|
|
6875
|
-
ctaMode === "next-round" && /* @__PURE__ */
|
|
6876
|
-
ctaMode === "go-again" && /* @__PURE__ */
|
|
6877
|
-
ctaMode === "conversion" && /* @__PURE__ */
|
|
6878
|
-
/* @__PURE__ */
|
|
6879
|
-
/* @__PURE__ */
|
|
6880
|
-
/* @__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" })
|
|
6881
7034
|
] })
|
|
6882
7035
|
] })
|
|
6883
7036
|
] });
|
|
@@ -6888,21 +7041,21 @@ function ResultDialog({
|
|
|
6888
7041
|
primaryLabel,
|
|
6889
7042
|
secondaryLabel
|
|
6890
7043
|
}) {
|
|
6891
|
-
return /* @__PURE__ */
|
|
6892
|
-
/* @__PURE__ */
|
|
6893
|
-
/* @__PURE__ */
|
|
6894
|
-
/* @__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 })
|
|
6895
7048
|
] }),
|
|
6896
|
-
/* @__PURE__ */
|
|
6897
|
-
/* @__PURE__ */
|
|
6898
|
-
/* @__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 })
|
|
6899
7052
|
] })
|
|
6900
7053
|
] });
|
|
6901
7054
|
}
|
|
6902
7055
|
|
|
6903
7056
|
// components/blocks/header-navigation-block.tsx
|
|
6904
7057
|
import { ArrowLeft as ArrowLeft2, History } from "lucide-react";
|
|
6905
|
-
import { jsx as
|
|
7058
|
+
import { jsx as jsx62, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6906
7059
|
function HeaderNavigationBlock({
|
|
6907
7060
|
onBack,
|
|
6908
7061
|
badge,
|
|
@@ -6911,15 +7064,15 @@ function HeaderNavigationBlock({
|
|
|
6911
7064
|
actions
|
|
6912
7065
|
}) {
|
|
6913
7066
|
var _a;
|
|
6914
|
-
return /* @__PURE__ */
|
|
6915
|
-
onBack && /* @__PURE__ */
|
|
6916
|
-
/* @__PURE__ */
|
|
6917
|
-
badge && /* @__PURE__ */
|
|
6918
|
-
/* @__PURE__ */
|
|
6919
|
-
/* @__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 })
|
|
6920
7073
|
] }),
|
|
6921
|
-
/* @__PURE__ */
|
|
6922
|
-
history && /* @__PURE__ */
|
|
7074
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex shrink-0 items-center gap-1", children: [
|
|
7075
|
+
history && /* @__PURE__ */ jsx62(HistoryButton, __spreadValues({}, history)),
|
|
6923
7076
|
actions
|
|
6924
7077
|
] })
|
|
6925
7078
|
] }) });
|
|
@@ -6932,9 +7085,9 @@ function HistoryButton({
|
|
|
6932
7085
|
const show = typeof count === "number" && count > 0;
|
|
6933
7086
|
const label = show ? count > 99 ? "99+" : String(count) : null;
|
|
6934
7087
|
const ariaLabel = ariaLabelOverride != null ? ariaLabelOverride : show ? `Open history, ${count} new` : "Open history";
|
|
6935
|
-
return /* @__PURE__ */
|
|
6936
|
-
/* @__PURE__ */
|
|
6937
|
-
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(
|
|
6938
7091
|
"span",
|
|
6939
7092
|
{
|
|
6940
7093
|
"aria-hidden": true,
|
|
@@ -6946,7 +7099,7 @@ function HistoryButton({
|
|
|
6946
7099
|
}
|
|
6947
7100
|
|
|
6948
7101
|
// components/blocks/faq-block.tsx
|
|
6949
|
-
import { jsx as
|
|
7102
|
+
import { jsx as jsx63, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6950
7103
|
function FAQBlock({
|
|
6951
7104
|
eyebrow = "FAQ Section",
|
|
6952
7105
|
title = "Frequently asked questions",
|
|
@@ -6962,38 +7115,38 @@ function FAQBlock({
|
|
|
6962
7115
|
const helpCardPaddingClass = layout === "desktop" ? "p-8" : "p-6";
|
|
6963
7116
|
const gapClass = layout === "desktop" ? "gap-12" : "gap-10";
|
|
6964
7117
|
const headerGapClass = layout === "desktop" ? "gap-5" : "gap-4";
|
|
6965
|
-
return /* @__PURE__ */
|
|
6966
|
-
/* @__PURE__ */
|
|
6967
|
-
/* @__PURE__ */
|
|
6968
|
-
/* @__PURE__ */
|
|
6969
|
-
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 })
|
|
6970
7123
|
] }),
|
|
6971
|
-
/* @__PURE__ */
|
|
7124
|
+
/* @__PURE__ */ jsx63(
|
|
6972
7125
|
Accordion,
|
|
6973
7126
|
{
|
|
6974
7127
|
type: "single",
|
|
6975
7128
|
collapsible: true,
|
|
6976
7129
|
defaultValue: defaultValue != null ? defaultValue : (_a = items[0]) == null ? void 0 : _a.value,
|
|
6977
7130
|
className: "w-full",
|
|
6978
|
-
children: items.map(({ value, question, answer }) => /* @__PURE__ */
|
|
6979
|
-
/* @__PURE__ */
|
|
6980
|
-
/* @__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 }) })
|
|
6981
7134
|
] }, value))
|
|
6982
7135
|
}
|
|
6983
7136
|
),
|
|
6984
|
-
helpCard && /* @__PURE__ */
|
|
6985
|
-
/* @__PURE__ */
|
|
6986
|
-
/* @__PURE__ */
|
|
6987
|
-
/* @__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 })
|
|
6988
7141
|
] }),
|
|
6989
|
-
/* @__PURE__ */
|
|
7142
|
+
/* @__PURE__ */ jsx63(Button, { size: "sm", onClick: helpCard.onCtaClick, children: helpCard.ctaLabel })
|
|
6990
7143
|
] })
|
|
6991
7144
|
] });
|
|
6992
7145
|
}
|
|
6993
7146
|
|
|
6994
7147
|
// components/blocks/hero-block.tsx
|
|
6995
7148
|
import { ArrowRight as ArrowRight3, ArrowUpRight } from "lucide-react";
|
|
6996
|
-
import { jsx as
|
|
7149
|
+
import { jsx as jsx64, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6997
7150
|
function HeroBlock({
|
|
6998
7151
|
layout = "centered",
|
|
6999
7152
|
tagline,
|
|
@@ -7004,31 +7157,31 @@ function HeroBlock({
|
|
|
7004
7157
|
image
|
|
7005
7158
|
}) {
|
|
7006
7159
|
if (layout === "centered") {
|
|
7007
|
-
return /* @__PURE__ */
|
|
7008
|
-
/* @__PURE__ */
|
|
7009
|
-
tagline && /* @__PURE__ */
|
|
7010
|
-
/* @__PURE__ */
|
|
7011
|
-
/* @__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 })
|
|
7012
7165
|
] }),
|
|
7013
|
-
/* @__PURE__ */
|
|
7166
|
+
/* @__PURE__ */ jsxs33(Button, { size: "sm", onClick: primaryCta.onClick, children: [
|
|
7014
7167
|
primaryCta.label,
|
|
7015
|
-
primaryCta.trailingArrow !== false && /* @__PURE__ */
|
|
7168
|
+
primaryCta.trailingArrow !== false && /* @__PURE__ */ jsx64(ArrowRight3, { className: "size-4" })
|
|
7016
7169
|
] })
|
|
7017
7170
|
] }) });
|
|
7018
7171
|
}
|
|
7019
|
-
return /* @__PURE__ */
|
|
7020
|
-
/* @__PURE__ */
|
|
7021
|
-
/* @__PURE__ */
|
|
7022
|
-
tagline && /* @__PURE__ */
|
|
7023
|
-
/* @__PURE__ */
|
|
7024
|
-
/* @__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 })
|
|
7025
7178
|
] }),
|
|
7026
|
-
/* @__PURE__ */
|
|
7027
|
-
/* @__PURE__ */
|
|
7028
|
-
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 })
|
|
7029
7182
|
] })
|
|
7030
7183
|
] }),
|
|
7031
|
-
/* @__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 })
|
|
7032
7185
|
] }) });
|
|
7033
7186
|
}
|
|
7034
7187
|
function TaglinePill({
|
|
@@ -7036,25 +7189,25 @@ function TaglinePill({
|
|
|
7036
7189
|
suffix,
|
|
7037
7190
|
responsive
|
|
7038
7191
|
}) {
|
|
7039
|
-
return /* @__PURE__ */
|
|
7040
|
-
/* @__PURE__ */
|
|
7041
|
-
responsive && suffix ? /* @__PURE__ */
|
|
7042
|
-
/* @__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: [
|
|
7043
7196
|
label,
|
|
7044
|
-
/* @__PURE__ */
|
|
7197
|
+
/* @__PURE__ */ jsx64("span", { className: "text-on-subtle", children: " \xB7 " })
|
|
7045
7198
|
] }),
|
|
7046
|
-
/* @__PURE__ */
|
|
7047
|
-
] }) : /* @__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: [
|
|
7048
7201
|
label,
|
|
7049
|
-
suffix && /* @__PURE__ */
|
|
7202
|
+
suffix && /* @__PURE__ */ jsx64("span", { className: "text-on-subtle", children: ` \xB7 ${suffix}` })
|
|
7050
7203
|
] }),
|
|
7051
|
-
/* @__PURE__ */
|
|
7204
|
+
/* @__PURE__ */ jsx64(ArrowUpRight, { className: "size-4 text-on-subtle shrink-0", "aria-hidden": "true" })
|
|
7052
7205
|
] });
|
|
7053
7206
|
}
|
|
7054
7207
|
|
|
7055
7208
|
// components/blocks/auth-block.tsx
|
|
7056
|
-
import * as
|
|
7057
|
-
import { jsx as
|
|
7209
|
+
import * as React16 from "react";
|
|
7210
|
+
import { jsx as jsx65, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
7058
7211
|
function AuthBlock({
|
|
7059
7212
|
mode,
|
|
7060
7213
|
logoSrc,
|
|
@@ -7069,20 +7222,20 @@ function AuthBlock({
|
|
|
7069
7222
|
const ctaText = mode === "sign-in" ? "Sign in" : "Sign up";
|
|
7070
7223
|
const footerPrompt = mode === "sign-in" ? "Don't have an account?" : "Already have an account?";
|
|
7071
7224
|
const footerLinkLabel = mode === "sign-in" ? "Sign up" : "Log in";
|
|
7072
|
-
const [email, setEmail] =
|
|
7073
|
-
return /* @__PURE__ */
|
|
7074
|
-
/* @__PURE__ */
|
|
7075
|
-
/* @__PURE__ */
|
|
7076
|
-
/* @__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 })
|
|
7077
7230
|
] }),
|
|
7078
|
-
/* @__PURE__ */
|
|
7079
|
-
/* @__PURE__ */
|
|
7080
|
-
/* @__PURE__ */
|
|
7081
|
-
/* @__PURE__ */
|
|
7082
|
-
/* @__PURE__ */
|
|
7083
|
-
/* @__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" })
|
|
7084
7237
|
] }),
|
|
7085
|
-
/* @__PURE__ */
|
|
7238
|
+
/* @__PURE__ */ jsx65("div", { className: "flex items-center gap-2 w-full", children: /* @__PURE__ */ jsx65(
|
|
7086
7239
|
Input,
|
|
7087
7240
|
{
|
|
7088
7241
|
id: `${idPrefix}-email`,
|
|
@@ -7093,60 +7246,60 @@ function AuthBlock({
|
|
|
7093
7246
|
onChange: (e) => setEmail(e.target.value)
|
|
7094
7247
|
}
|
|
7095
7248
|
) }),
|
|
7096
|
-
/* @__PURE__ */
|
|
7249
|
+
/* @__PURE__ */ jsxs34("p", { className: "text-sm text-on-subtle font-body text-left w-full", children: [
|
|
7097
7250
|
termsText,
|
|
7098
7251
|
", you agree to our",
|
|
7099
7252
|
" ",
|
|
7100
|
-
/* @__PURE__ */
|
|
7253
|
+
/* @__PURE__ */ jsx65(Link, { size: "sm", href: "#", children: "Terms & Conditions" })
|
|
7101
7254
|
] }),
|
|
7102
|
-
/* @__PURE__ */
|
|
7103
|
-
/* @__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: [
|
|
7104
7257
|
footerPrompt,
|
|
7105
7258
|
" ",
|
|
7106
|
-
/* @__PURE__ */
|
|
7259
|
+
/* @__PURE__ */ jsx65(Link, { size: "sm", href: crossLinkHref, children: footerLinkLabel })
|
|
7107
7260
|
] })
|
|
7108
7261
|
] });
|
|
7109
7262
|
}
|
|
7110
7263
|
function ProviderButton({ provider }) {
|
|
7111
7264
|
switch (provider) {
|
|
7112
7265
|
case "google":
|
|
7113
|
-
return /* @__PURE__ */
|
|
7114
|
-
/* @__PURE__ */
|
|
7115
|
-
/* @__PURE__ */
|
|
7116
|
-
/* @__PURE__ */
|
|
7117
|
-
/* @__PURE__ */
|
|
7118
|
-
/* @__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" })
|
|
7119
7272
|
] }),
|
|
7120
7273
|
"Continue with Google"
|
|
7121
7274
|
] });
|
|
7122
7275
|
case "telegram":
|
|
7123
|
-
return /* @__PURE__ */
|
|
7124
|
-
/* @__PURE__ */
|
|
7125
|
-
/* @__PURE__ */
|
|
7126
|
-
/* @__PURE__ */
|
|
7127
|
-
/* @__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" })
|
|
7128
7281
|
] }),
|
|
7129
7282
|
"Continue with Telegram"
|
|
7130
7283
|
] });
|
|
7131
7284
|
case "x":
|
|
7132
|
-
return /* @__PURE__ */
|
|
7133
|
-
/* @__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" }) }),
|
|
7134
7287
|
"Continue with X (Twitter)"
|
|
7135
7288
|
] });
|
|
7136
7289
|
}
|
|
7137
7290
|
}
|
|
7138
7291
|
|
|
7139
7292
|
// components/blocks/navbar-block.tsx
|
|
7140
|
-
import * as
|
|
7141
|
-
import { Menu, X as
|
|
7142
|
-
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";
|
|
7143
7296
|
function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
7144
7297
|
var _a, _b, _c, _d;
|
|
7145
|
-
const [mobileMenuOpen, setMobileMenuOpen] =
|
|
7146
|
-
return /* @__PURE__ */
|
|
7147
|
-
/* @__PURE__ */
|
|
7148
|
-
/* @__PURE__ */
|
|
7149
|
-
/* @__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(
|
|
7150
7303
|
"img",
|
|
7151
7304
|
{
|
|
7152
7305
|
src: brand.fullLogoSrc,
|
|
@@ -7154,7 +7307,7 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7154
7307
|
className: "hidden min-[600px]:block h-7 w-auto shrink-0 object-contain object-left"
|
|
7155
7308
|
}
|
|
7156
7309
|
),
|
|
7157
|
-
/* @__PURE__ */
|
|
7310
|
+
/* @__PURE__ */ jsx66(
|
|
7158
7311
|
"img",
|
|
7159
7312
|
{
|
|
7160
7313
|
src: brand.iconLogoSrc,
|
|
@@ -7162,13 +7315,13 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7162
7315
|
className: "min-[600px]:hidden size-7 shrink-0 object-contain"
|
|
7163
7316
|
}
|
|
7164
7317
|
),
|
|
7165
|
-
/* @__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)) })
|
|
7166
7319
|
] }),
|
|
7167
|
-
/* @__PURE__ */
|
|
7168
|
-
signIn && /* @__PURE__ */
|
|
7169
|
-
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" })
|
|
7170
7323
|
] }),
|
|
7171
|
-
/* @__PURE__ */
|
|
7324
|
+
/* @__PURE__ */ jsx66(
|
|
7172
7325
|
Button,
|
|
7173
7326
|
{
|
|
7174
7327
|
variant: "tertiary",
|
|
@@ -7177,12 +7330,12 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7177
7330
|
"aria-expanded": mobileMenuOpen,
|
|
7178
7331
|
className: "min-[600px]:hidden",
|
|
7179
7332
|
onClick: () => setMobileMenuOpen((prev) => !prev),
|
|
7180
|
-
children: mobileMenuOpen ? /* @__PURE__ */
|
|
7333
|
+
children: mobileMenuOpen ? /* @__PURE__ */ jsx66(X3, { className: "size-4" }) : /* @__PURE__ */ jsx66(Menu, { className: "size-4" })
|
|
7181
7334
|
}
|
|
7182
7335
|
)
|
|
7183
7336
|
] }),
|
|
7184
|
-
mobileMenuOpen && /* @__PURE__ */
|
|
7185
|
-
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(
|
|
7186
7339
|
Button,
|
|
7187
7340
|
{
|
|
7188
7341
|
variant: "tertiary",
|
|
@@ -7193,18 +7346,18 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7193
7346
|
},
|
|
7194
7347
|
l.label
|
|
7195
7348
|
)),
|
|
7196
|
-
(signIn || signUp) && /* @__PURE__ */
|
|
7197
|
-
signIn && /* @__PURE__ */
|
|
7198
|
-
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" })
|
|
7199
7352
|
] })
|
|
7200
7353
|
] })
|
|
7201
7354
|
] }) });
|
|
7202
7355
|
}
|
|
7203
7356
|
|
|
7204
7357
|
// components/blocks/open-positions-block.tsx
|
|
7205
|
-
import * as
|
|
7206
|
-
import { History as History2, X as
|
|
7207
|
-
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";
|
|
7208
7361
|
function OpenPositionsBlock({
|
|
7209
7362
|
trigger,
|
|
7210
7363
|
sheetTitle = "Positions",
|
|
@@ -7213,28 +7366,28 @@ function OpenPositionsBlock({
|
|
|
7213
7366
|
emptyState
|
|
7214
7367
|
}) {
|
|
7215
7368
|
const isMobile = useIsMobile();
|
|
7216
|
-
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 });
|
|
7217
7370
|
if (isMobile) {
|
|
7218
|
-
return /* @__PURE__ */
|
|
7219
|
-
/* @__PURE__ */
|
|
7220
|
-
/* @__PURE__ */
|
|
7221
|
-
/* @__PURE__ */
|
|
7222
|
-
/* @__PURE__ */
|
|
7223
|
-
/* @__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, {}) }) })
|
|
7224
7377
|
] }),
|
|
7225
|
-
/* @__PURE__ */
|
|
7378
|
+
/* @__PURE__ */ jsx67(Separator, {}),
|
|
7226
7379
|
body
|
|
7227
7380
|
] })
|
|
7228
7381
|
] });
|
|
7229
7382
|
}
|
|
7230
|
-
return /* @__PURE__ */
|
|
7231
|
-
/* @__PURE__ */
|
|
7232
|
-
/* @__PURE__ */
|
|
7233
|
-
/* @__PURE__ */
|
|
7234
|
-
/* @__PURE__ */
|
|
7235
|
-
/* @__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, {}) }) })
|
|
7236
7389
|
] }),
|
|
7237
|
-
/* @__PURE__ */
|
|
7390
|
+
/* @__PURE__ */ jsx67(Separator, {}),
|
|
7238
7391
|
body
|
|
7239
7392
|
] })
|
|
7240
7393
|
] });
|
|
@@ -7243,26 +7396,26 @@ function PositionsList({
|
|
|
7243
7396
|
positions,
|
|
7244
7397
|
onViewHistory
|
|
7245
7398
|
}) {
|
|
7246
|
-
return /* @__PURE__ */
|
|
7247
|
-
/* @__PURE__ */
|
|
7248
|
-
/* @__PURE__ */
|
|
7249
|
-
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" })
|
|
7250
7403
|
] }, i)) }),
|
|
7251
|
-
/* @__PURE__ */
|
|
7252
|
-
/* @__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" }) })
|
|
7253
7406
|
] });
|
|
7254
7407
|
}
|
|
7255
7408
|
function PositionRow({ position }) {
|
|
7256
7409
|
const { label, suffix } = positionTitleParts(position);
|
|
7257
|
-
return /* @__PURE__ */
|
|
7258
|
-
/* @__PURE__ */
|
|
7259
|
-
/* @__PURE__ */
|
|
7260
|
-
/* @__PURE__ */
|
|
7261
|
-
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}` })
|
|
7262
7415
|
] }),
|
|
7263
|
-
/* @__PURE__ */
|
|
7416
|
+
/* @__PURE__ */ jsx67(MetaNote, { market: position.market, duration: position.duration })
|
|
7264
7417
|
] }),
|
|
7265
|
-
/* @__PURE__ */
|
|
7418
|
+
/* @__PURE__ */ jsx67(ItemActions, { children: /* @__PURE__ */ jsx67(PnlMeta, { pnl: position.pnl, win: position.win, stake: position.stake }) })
|
|
7266
7419
|
] });
|
|
7267
7420
|
}
|
|
7268
7421
|
var DIGITS_TYPE_LABEL = {
|
|
@@ -7288,23 +7441,23 @@ function positionTitleParts(p) {
|
|
|
7288
7441
|
}
|
|
7289
7442
|
}
|
|
7290
7443
|
function MetaNote({ market, duration }) {
|
|
7291
|
-
return /* @__PURE__ */
|
|
7444
|
+
return /* @__PURE__ */ jsxs36("span", { className: "text-xs text-on-subtle whitespace-nowrap", children: [
|
|
7292
7445
|
market,
|
|
7293
7446
|
" \xB7 ",
|
|
7294
7447
|
duration
|
|
7295
7448
|
] });
|
|
7296
7449
|
}
|
|
7297
7450
|
function PnlMeta({ pnl, win, stake }) {
|
|
7298
|
-
return /* @__PURE__ */
|
|
7299
|
-
/* @__PURE__ */
|
|
7300
|
-
/* @__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 })
|
|
7301
7454
|
] });
|
|
7302
7455
|
}
|
|
7303
7456
|
function DefaultEmptyState({ onViewHistory }) {
|
|
7304
|
-
return /* @__PURE__ */
|
|
7305
|
-
/* @__PURE__ */
|
|
7306
|
-
/* @__PURE__ */
|
|
7307
|
-
/* @__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" })
|
|
7308
7461
|
] }) });
|
|
7309
7462
|
}
|
|
7310
7463
|
export {
|
|
@@ -7334,6 +7487,7 @@ export {
|
|
|
7334
7487
|
AvatarGroupCount,
|
|
7335
7488
|
AvatarImage,
|
|
7336
7489
|
Badge,
|
|
7490
|
+
Banner,
|
|
7337
7491
|
Breadcrumb,
|
|
7338
7492
|
BreadcrumbEllipsis,
|
|
7339
7493
|
BreadcrumbItem,
|