@trading-game/design-intelligence-layer 0.16.1 → 0.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +21 -0
- package/README.md +4 -3
- package/dist/index.cjs +939 -780
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +54 -1
- package/dist/index.d.ts +54 -1
- package/dist/index.js +910 -752
- package/dist/index.js.map +1 -1
- package/guides/design-system-guide/trading-game-ds-guide.md +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -817,17 +817,174 @@ 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/[0.16] bg-primary/[0.08] px-4 py-3.5";
|
|
825
|
+
function IconBadge({ glyph }) {
|
|
826
|
+
return /* @__PURE__ */ jsx9("span", { className: "inline-flex size-10 shrink-0 items-center justify-center rounded-xs bg-primary text-on-primary", children: glyph });
|
|
827
|
+
}
|
|
828
|
+
function Banner(_a) {
|
|
829
|
+
var _b = _a, {
|
|
830
|
+
layout = "inline",
|
|
831
|
+
title,
|
|
832
|
+
description,
|
|
833
|
+
glyph,
|
|
834
|
+
icon,
|
|
835
|
+
action,
|
|
836
|
+
actions,
|
|
837
|
+
onDismiss,
|
|
838
|
+
dismissLabel = "Dismiss",
|
|
839
|
+
onClick,
|
|
840
|
+
className
|
|
841
|
+
} = _b, props = __objRest(_b, [
|
|
842
|
+
"layout",
|
|
843
|
+
"title",
|
|
844
|
+
"description",
|
|
845
|
+
"glyph",
|
|
846
|
+
"icon",
|
|
847
|
+
"action",
|
|
848
|
+
"actions",
|
|
849
|
+
"onDismiss",
|
|
850
|
+
"dismissLabel",
|
|
851
|
+
"onClick",
|
|
852
|
+
"className"
|
|
853
|
+
]);
|
|
854
|
+
var _a2;
|
|
855
|
+
if (!title && !description) {
|
|
856
|
+
if (process.env.NODE_ENV !== "production") {
|
|
857
|
+
console.warn(
|
|
858
|
+
"Banner: requires at least one of `title` or `description`. Rendering null."
|
|
859
|
+
);
|
|
860
|
+
}
|
|
861
|
+
return null;
|
|
862
|
+
}
|
|
863
|
+
const isInline = layout === "inline";
|
|
864
|
+
const showIcon = icon !== null;
|
|
865
|
+
const resolvedIcon = icon === void 0 ? /* @__PURE__ */ jsx9(IconBadge, { glyph: glyph != null ? glyph : /* @__PURE__ */ jsx9(Gift, { className: "size-5" }) }) : icon;
|
|
866
|
+
if (process.env.NODE_ENV !== "production" && icon !== void 0 && glyph !== void 0) {
|
|
867
|
+
console.warn(
|
|
868
|
+
"Banner: `glyph` is ignored when `icon` is also set. `icon` overrides the entire badge; `glyph` only swaps the inner icon of the default badge."
|
|
869
|
+
);
|
|
870
|
+
}
|
|
871
|
+
const showCloseButton = typeof onDismiss === "function";
|
|
872
|
+
const isClickable = typeof onClick === "function";
|
|
873
|
+
const buttonsSuppressed = isClickable && (Boolean(action) || ((_a2 = actions == null ? void 0 : actions.length) != null ? _a2 : 0) > 0);
|
|
874
|
+
if (process.env.NODE_ENV !== "production") {
|
|
875
|
+
if (isInline && actions && actions.length > 0) {
|
|
876
|
+
console.warn(
|
|
877
|
+
'Banner: `actions` is ignored when layout="inline". Use `action` instead.'
|
|
878
|
+
);
|
|
879
|
+
}
|
|
880
|
+
if (!isInline && action) {
|
|
881
|
+
console.warn(
|
|
882
|
+
'Banner: `action` is ignored when layout="card". Use `actions` instead.'
|
|
883
|
+
);
|
|
884
|
+
}
|
|
885
|
+
if (buttonsSuppressed) {
|
|
886
|
+
console.warn(
|
|
887
|
+
"Banner: `onClick` (clickable surface) is mutually exclusive with `action` / `actions`. Ignoring the buttons \u2014 the whole banner is the CTA."
|
|
888
|
+
);
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
const effectiveAction = isClickable ? void 0 : action;
|
|
892
|
+
const effectiveActions = isClickable ? void 0 : actions;
|
|
893
|
+
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" : "";
|
|
894
|
+
const handleKeyDown = isClickable ? (e) => {
|
|
895
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
896
|
+
e.preventDefault();
|
|
897
|
+
onClick == null ? void 0 : onClick();
|
|
898
|
+
}
|
|
899
|
+
} : void 0;
|
|
900
|
+
const interactiveProps = isClickable ? {
|
|
901
|
+
role: "button",
|
|
902
|
+
tabIndex: 0,
|
|
903
|
+
onClick,
|
|
904
|
+
onKeyDown: handleKeyDown
|
|
905
|
+
} : {};
|
|
906
|
+
const body = /* @__PURE__ */ jsxs6("div", { className: "min-w-0 flex-1", children: [
|
|
907
|
+
title ? /* @__PURE__ */ jsx9("p", { className: "m-0 text-sm font-bold leading-snug text-on-prominent [&>b]:text-primary", children: title }) : null,
|
|
908
|
+
description ? /* @__PURE__ */ jsx9("p", { className: "m-0 mt-0.5 text-xs font-medium leading-snug text-on-subtle", children: description }) : null
|
|
909
|
+
] });
|
|
910
|
+
const closeButton = showCloseButton ? /* @__PURE__ */ jsx9(
|
|
911
|
+
"button",
|
|
912
|
+
{
|
|
913
|
+
type: "button",
|
|
914
|
+
onClick: (e) => {
|
|
915
|
+
e.stopPropagation();
|
|
916
|
+
onDismiss == null ? void 0 : onDismiss();
|
|
917
|
+
},
|
|
918
|
+
"aria-label": dismissLabel,
|
|
919
|
+
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",
|
|
920
|
+
children: /* @__PURE__ */ jsx9(X2, {})
|
|
921
|
+
}
|
|
922
|
+
) : null;
|
|
923
|
+
const iconColumn = showIcon ? /* @__PURE__ */ jsx9("div", { "aria-hidden": true, className: "inline-flex shrink-0 translate-y-px", children: resolvedIcon }) : null;
|
|
924
|
+
if (isInline) {
|
|
925
|
+
const hasAction = Boolean(effectiveAction);
|
|
926
|
+
const rowTemplate = hasAction ? "grid-rows-[auto_auto] gap-y-3 sm:grid-rows-1 sm:gap-y-0" : "grid-rows-1 gap-y-0";
|
|
927
|
+
return /* @__PURE__ */ jsxs6(
|
|
928
|
+
"div",
|
|
929
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
930
|
+
"data-slot": "banner",
|
|
931
|
+
"data-layout": "inline",
|
|
932
|
+
"data-clickable": isClickable ? "true" : void 0,
|
|
933
|
+
className: cn(
|
|
934
|
+
"grid grid-cols-[auto_1fr_auto] items-center gap-x-4 sm:grid-cols-[auto_1fr_auto_auto]",
|
|
935
|
+
rowTemplate,
|
|
936
|
+
SURFACE_CLASSES,
|
|
937
|
+
clickableClasses,
|
|
938
|
+
className
|
|
939
|
+
)
|
|
940
|
+
}, interactiveProps), props), {
|
|
941
|
+
children: [
|
|
942
|
+
/* @__PURE__ */ jsx9("div", { className: "col-start-1 row-start-1", children: iconColumn }),
|
|
943
|
+
/* @__PURE__ */ jsx9("div", { className: "col-start-2 row-start-1 min-w-0", children: body }),
|
|
944
|
+
/* @__PURE__ */ jsx9("div", { className: "col-start-3 row-start-1 sm:col-start-4", children: closeButton }),
|
|
945
|
+
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) }) : null
|
|
946
|
+
]
|
|
947
|
+
})
|
|
948
|
+
);
|
|
949
|
+
}
|
|
950
|
+
return /* @__PURE__ */ jsxs6(
|
|
951
|
+
"div",
|
|
952
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
953
|
+
"data-slot": "banner",
|
|
954
|
+
"data-layout": "card",
|
|
955
|
+
"data-clickable": isClickable ? "true" : void 0,
|
|
956
|
+
className: cn(
|
|
957
|
+
"grid grid-cols-[auto_1fr_auto] grid-rows-[auto_auto] items-center gap-x-4 gap-y-3",
|
|
958
|
+
SURFACE_CLASSES,
|
|
959
|
+
clickableClasses,
|
|
960
|
+
className
|
|
961
|
+
)
|
|
962
|
+
}, interactiveProps), props), {
|
|
963
|
+
children: [
|
|
964
|
+
/* @__PURE__ */ jsx9("div", { className: "col-start-1 row-start-1", children: iconColumn }),
|
|
965
|
+
/* @__PURE__ */ jsx9("div", { className: "col-start-2 row-start-1 min-w-0", children: body }),
|
|
966
|
+
/* @__PURE__ */ jsx9("div", { className: "col-start-3 row-start-1", children: closeButton }),
|
|
967
|
+
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) => /* @__PURE__ */ jsx9(React2.Fragment, { children: wrapAction2(node) }, i)) }) : null
|
|
968
|
+
]
|
|
969
|
+
})
|
|
970
|
+
);
|
|
971
|
+
}
|
|
972
|
+
function wrapAction2(node) {
|
|
973
|
+
if (React2.isValidElement(node)) return node;
|
|
974
|
+
return /* @__PURE__ */ jsx9(Button, { variant: "secondary", size: "sm", children: node });
|
|
975
|
+
}
|
|
976
|
+
|
|
820
977
|
// components/ui/breadcrumb.tsx
|
|
821
978
|
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
822
979
|
import { Slot as Slot3 } from "radix-ui";
|
|
823
|
-
import { jsx as
|
|
980
|
+
import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
824
981
|
function Breadcrumb(_a) {
|
|
825
982
|
var props = __objRest(_a, []);
|
|
826
|
-
return /* @__PURE__ */
|
|
983
|
+
return /* @__PURE__ */ jsx10("nav", __spreadValues({ "aria-label": "breadcrumb", "data-slot": "breadcrumb" }, props));
|
|
827
984
|
}
|
|
828
985
|
function BreadcrumbList(_a) {
|
|
829
986
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
830
|
-
return /* @__PURE__ */
|
|
987
|
+
return /* @__PURE__ */ jsx10(
|
|
831
988
|
"ol",
|
|
832
989
|
__spreadValues({
|
|
833
990
|
"data-slot": "breadcrumb-list",
|
|
@@ -840,7 +997,7 @@ function BreadcrumbList(_a) {
|
|
|
840
997
|
}
|
|
841
998
|
function BreadcrumbItem(_a) {
|
|
842
999
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
843
|
-
return /* @__PURE__ */
|
|
1000
|
+
return /* @__PURE__ */ jsx10(
|
|
844
1001
|
"li",
|
|
845
1002
|
__spreadValues({
|
|
846
1003
|
"data-slot": "breadcrumb-item",
|
|
@@ -857,7 +1014,7 @@ function BreadcrumbLink(_a) {
|
|
|
857
1014
|
"className"
|
|
858
1015
|
]);
|
|
859
1016
|
const Comp = asChild ? Slot3.Root : "a";
|
|
860
|
-
return /* @__PURE__ */
|
|
1017
|
+
return /* @__PURE__ */ jsx10(
|
|
861
1018
|
Comp,
|
|
862
1019
|
__spreadValues({
|
|
863
1020
|
"data-slot": "breadcrumb-link",
|
|
@@ -867,7 +1024,7 @@ function BreadcrumbLink(_a) {
|
|
|
867
1024
|
}
|
|
868
1025
|
function BreadcrumbPage(_a) {
|
|
869
1026
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
870
|
-
return /* @__PURE__ */
|
|
1027
|
+
return /* @__PURE__ */ jsx10(
|
|
871
1028
|
"span",
|
|
872
1029
|
__spreadValues({
|
|
873
1030
|
"data-slot": "breadcrumb-page",
|
|
@@ -886,7 +1043,7 @@ function BreadcrumbSeparator(_a) {
|
|
|
886
1043
|
"children",
|
|
887
1044
|
"className"
|
|
888
1045
|
]);
|
|
889
|
-
return /* @__PURE__ */
|
|
1046
|
+
return /* @__PURE__ */ jsx10(
|
|
890
1047
|
"li",
|
|
891
1048
|
__spreadProps(__spreadValues({
|
|
892
1049
|
"data-slot": "breadcrumb-separator",
|
|
@@ -894,7 +1051,7 @@ function BreadcrumbSeparator(_a) {
|
|
|
894
1051
|
"aria-hidden": "true",
|
|
895
1052
|
className: cn("[&>svg]:size-3.5", className)
|
|
896
1053
|
}, props), {
|
|
897
|
-
children: children != null ? children : /* @__PURE__ */
|
|
1054
|
+
children: children != null ? children : /* @__PURE__ */ jsx10(ChevronRight, {})
|
|
898
1055
|
})
|
|
899
1056
|
);
|
|
900
1057
|
}
|
|
@@ -904,7 +1061,7 @@ function BreadcrumbEllipsis(_a) {
|
|
|
904
1061
|
} = _b, props = __objRest(_b, [
|
|
905
1062
|
"className"
|
|
906
1063
|
]);
|
|
907
|
-
return /* @__PURE__ */
|
|
1064
|
+
return /* @__PURE__ */ jsxs7(
|
|
908
1065
|
"span",
|
|
909
1066
|
__spreadProps(__spreadValues({
|
|
910
1067
|
"data-slot": "breadcrumb-ellipsis",
|
|
@@ -913,15 +1070,15 @@ function BreadcrumbEllipsis(_a) {
|
|
|
913
1070
|
className: cn("flex size-9 items-center justify-center", className)
|
|
914
1071
|
}, props), {
|
|
915
1072
|
children: [
|
|
916
|
-
/* @__PURE__ */
|
|
917
|
-
/* @__PURE__ */
|
|
1073
|
+
/* @__PURE__ */ jsx10(MoreHorizontal, { className: "size-4" }),
|
|
1074
|
+
/* @__PURE__ */ jsx10("span", { className: "sr-only", children: "More" })
|
|
918
1075
|
]
|
|
919
1076
|
})
|
|
920
1077
|
);
|
|
921
1078
|
}
|
|
922
1079
|
|
|
923
1080
|
// components/ui/calendar.tsx
|
|
924
|
-
import * as
|
|
1081
|
+
import * as React3 from "react";
|
|
925
1082
|
import {
|
|
926
1083
|
ChevronDownIcon as ChevronDownIcon2,
|
|
927
1084
|
ChevronLeftIcon,
|
|
@@ -931,7 +1088,7 @@ import {
|
|
|
931
1088
|
DayPicker,
|
|
932
1089
|
getDefaultClassNames
|
|
933
1090
|
} from "react-day-picker";
|
|
934
|
-
import { jsx as
|
|
1091
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
935
1092
|
function Calendar(_a) {
|
|
936
1093
|
var _b = _a, {
|
|
937
1094
|
className,
|
|
@@ -951,7 +1108,7 @@ function Calendar(_a) {
|
|
|
951
1108
|
"components"
|
|
952
1109
|
]);
|
|
953
1110
|
const defaultClassNames = getDefaultClassNames();
|
|
954
|
-
return /* @__PURE__ */
|
|
1111
|
+
return /* @__PURE__ */ jsx11(
|
|
955
1112
|
DayPicker,
|
|
956
1113
|
__spreadValues({
|
|
957
1114
|
showOutsideDays,
|
|
@@ -1050,7 +1207,7 @@ function Calendar(_a) {
|
|
|
1050
1207
|
components: __spreadValues({
|
|
1051
1208
|
Root: (_a2) => {
|
|
1052
1209
|
var _b2 = _a2, { className: className2, rootRef } = _b2, props2 = __objRest(_b2, ["className", "rootRef"]);
|
|
1053
|
-
return /* @__PURE__ */
|
|
1210
|
+
return /* @__PURE__ */ jsx11(
|
|
1054
1211
|
"div",
|
|
1055
1212
|
__spreadValues({
|
|
1056
1213
|
"data-slot": "calendar",
|
|
@@ -1062,22 +1219,22 @@ function Calendar(_a) {
|
|
|
1062
1219
|
Chevron: (_c) => {
|
|
1063
1220
|
var _d = _c, { className: className2, orientation } = _d, props2 = __objRest(_d, ["className", "orientation"]);
|
|
1064
1221
|
if (orientation === "left") {
|
|
1065
|
-
return /* @__PURE__ */
|
|
1222
|
+
return /* @__PURE__ */ jsx11(ChevronLeftIcon, __spreadValues({ className: cn("size-4", className2) }, props2));
|
|
1066
1223
|
}
|
|
1067
1224
|
if (orientation === "right") {
|
|
1068
|
-
return /* @__PURE__ */
|
|
1225
|
+
return /* @__PURE__ */ jsx11(
|
|
1069
1226
|
ChevronRightIcon,
|
|
1070
1227
|
__spreadValues({
|
|
1071
1228
|
className: cn("size-4", className2)
|
|
1072
1229
|
}, props2)
|
|
1073
1230
|
);
|
|
1074
1231
|
}
|
|
1075
|
-
return /* @__PURE__ */
|
|
1232
|
+
return /* @__PURE__ */ jsx11(ChevronDownIcon2, __spreadValues({ className: cn("size-4", className2) }, props2));
|
|
1076
1233
|
},
|
|
1077
1234
|
DayButton: CalendarDayButton,
|
|
1078
1235
|
WeekNumber: (_e) => {
|
|
1079
1236
|
var _f = _e, { children } = _f, props2 = __objRest(_f, ["children"]);
|
|
1080
|
-
return /* @__PURE__ */
|
|
1237
|
+
return /* @__PURE__ */ jsx11("td", __spreadProps(__spreadValues({}, props2), { children: /* @__PURE__ */ jsx11("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) }));
|
|
1081
1238
|
}
|
|
1082
1239
|
}, components)
|
|
1083
1240
|
}, props)
|
|
@@ -1094,12 +1251,12 @@ function CalendarDayButton(_a) {
|
|
|
1094
1251
|
"modifiers"
|
|
1095
1252
|
]);
|
|
1096
1253
|
const defaultClassNames = getDefaultClassNames();
|
|
1097
|
-
const ref =
|
|
1098
|
-
|
|
1254
|
+
const ref = React3.useRef(null);
|
|
1255
|
+
React3.useEffect(() => {
|
|
1099
1256
|
var _a2;
|
|
1100
1257
|
if (modifiers.focused) (_a2 = ref.current) == null ? void 0 : _a2.focus();
|
|
1101
1258
|
}, [modifiers.focused]);
|
|
1102
|
-
return /* @__PURE__ */
|
|
1259
|
+
return /* @__PURE__ */ jsx11(
|
|
1103
1260
|
Button,
|
|
1104
1261
|
__spreadValues({
|
|
1105
1262
|
ref,
|
|
@@ -1121,10 +1278,10 @@ function CalendarDayButton(_a) {
|
|
|
1121
1278
|
}
|
|
1122
1279
|
|
|
1123
1280
|
// components/ui/card.tsx
|
|
1124
|
-
import { jsx as
|
|
1281
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1125
1282
|
function Card(_a) {
|
|
1126
1283
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1127
|
-
return /* @__PURE__ */
|
|
1284
|
+
return /* @__PURE__ */ jsx12(
|
|
1128
1285
|
"div",
|
|
1129
1286
|
__spreadValues({
|
|
1130
1287
|
"data-slot": "card",
|
|
@@ -1137,7 +1294,7 @@ function Card(_a) {
|
|
|
1137
1294
|
}
|
|
1138
1295
|
function CardHeader(_a) {
|
|
1139
1296
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1140
|
-
return /* @__PURE__ */
|
|
1297
|
+
return /* @__PURE__ */ jsx12(
|
|
1141
1298
|
"div",
|
|
1142
1299
|
__spreadValues({
|
|
1143
1300
|
"data-slot": "card-header",
|
|
@@ -1150,7 +1307,7 @@ function CardHeader(_a) {
|
|
|
1150
1307
|
}
|
|
1151
1308
|
function CardTitle(_a) {
|
|
1152
1309
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1153
|
-
return /* @__PURE__ */
|
|
1310
|
+
return /* @__PURE__ */ jsx12(
|
|
1154
1311
|
"div",
|
|
1155
1312
|
__spreadValues({
|
|
1156
1313
|
"data-slot": "card-title",
|
|
@@ -1160,7 +1317,7 @@ function CardTitle(_a) {
|
|
|
1160
1317
|
}
|
|
1161
1318
|
function CardDescription(_a) {
|
|
1162
1319
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1163
|
-
return /* @__PURE__ */
|
|
1320
|
+
return /* @__PURE__ */ jsx12(
|
|
1164
1321
|
"div",
|
|
1165
1322
|
__spreadValues({
|
|
1166
1323
|
"data-slot": "card-description",
|
|
@@ -1170,7 +1327,7 @@ function CardDescription(_a) {
|
|
|
1170
1327
|
}
|
|
1171
1328
|
function CardAction(_a) {
|
|
1172
1329
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1173
|
-
return /* @__PURE__ */
|
|
1330
|
+
return /* @__PURE__ */ jsx12(
|
|
1174
1331
|
"div",
|
|
1175
1332
|
__spreadValues({
|
|
1176
1333
|
"data-slot": "card-action",
|
|
@@ -1183,7 +1340,7 @@ function CardAction(_a) {
|
|
|
1183
1340
|
}
|
|
1184
1341
|
function CardContent(_a) {
|
|
1185
1342
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1186
|
-
return /* @__PURE__ */
|
|
1343
|
+
return /* @__PURE__ */ jsx12(
|
|
1187
1344
|
"div",
|
|
1188
1345
|
__spreadValues({
|
|
1189
1346
|
"data-slot": "card-content",
|
|
@@ -1193,7 +1350,7 @@ function CardContent(_a) {
|
|
|
1193
1350
|
}
|
|
1194
1351
|
function CardFooter(_a) {
|
|
1195
1352
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1196
|
-
return /* @__PURE__ */
|
|
1353
|
+
return /* @__PURE__ */ jsx12(
|
|
1197
1354
|
"div",
|
|
1198
1355
|
__spreadValues({
|
|
1199
1356
|
"data-slot": "card-footer",
|
|
@@ -1203,13 +1360,13 @@ function CardFooter(_a) {
|
|
|
1203
1360
|
}
|
|
1204
1361
|
|
|
1205
1362
|
// components/ui/carousel.tsx
|
|
1206
|
-
import * as
|
|
1363
|
+
import * as React4 from "react";
|
|
1207
1364
|
import useEmblaCarousel from "embla-carousel-react";
|
|
1208
1365
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
1209
|
-
import { jsx as
|
|
1210
|
-
var CarouselContext =
|
|
1366
|
+
import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1367
|
+
var CarouselContext = React4.createContext(null);
|
|
1211
1368
|
function useCarousel() {
|
|
1212
|
-
const context =
|
|
1369
|
+
const context = React4.useContext(CarouselContext);
|
|
1213
1370
|
if (!context) {
|
|
1214
1371
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1215
1372
|
}
|
|
@@ -1237,20 +1394,20 @@ function Carousel(_a) {
|
|
|
1237
1394
|
}),
|
|
1238
1395
|
plugins
|
|
1239
1396
|
);
|
|
1240
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
1241
|
-
const [canScrollNext, setCanScrollNext] =
|
|
1242
|
-
const onSelect =
|
|
1397
|
+
const [canScrollPrev, setCanScrollPrev] = React4.useState(false);
|
|
1398
|
+
const [canScrollNext, setCanScrollNext] = React4.useState(false);
|
|
1399
|
+
const onSelect = React4.useCallback((api2) => {
|
|
1243
1400
|
if (!api2) return;
|
|
1244
1401
|
setCanScrollPrev(api2.canScrollPrev());
|
|
1245
1402
|
setCanScrollNext(api2.canScrollNext());
|
|
1246
1403
|
}, []);
|
|
1247
|
-
const scrollPrev =
|
|
1404
|
+
const scrollPrev = React4.useCallback(() => {
|
|
1248
1405
|
api == null ? void 0 : api.scrollPrev();
|
|
1249
1406
|
}, [api]);
|
|
1250
|
-
const scrollNext =
|
|
1407
|
+
const scrollNext = React4.useCallback(() => {
|
|
1251
1408
|
api == null ? void 0 : api.scrollNext();
|
|
1252
1409
|
}, [api]);
|
|
1253
|
-
const handleKeyDown =
|
|
1410
|
+
const handleKeyDown = React4.useCallback(
|
|
1254
1411
|
(event) => {
|
|
1255
1412
|
if (event.key === "ArrowLeft") {
|
|
1256
1413
|
event.preventDefault();
|
|
@@ -1262,11 +1419,11 @@ function Carousel(_a) {
|
|
|
1262
1419
|
},
|
|
1263
1420
|
[scrollPrev, scrollNext]
|
|
1264
1421
|
);
|
|
1265
|
-
|
|
1422
|
+
React4.useEffect(() => {
|
|
1266
1423
|
if (!api || !setApi) return;
|
|
1267
1424
|
setApi(api);
|
|
1268
1425
|
}, [api, setApi]);
|
|
1269
|
-
|
|
1426
|
+
React4.useEffect(() => {
|
|
1270
1427
|
if (!api) return;
|
|
1271
1428
|
onSelect(api);
|
|
1272
1429
|
api.on("reInit", onSelect);
|
|
@@ -1275,7 +1432,7 @@ function Carousel(_a) {
|
|
|
1275
1432
|
api == null ? void 0 : api.off("select", onSelect);
|
|
1276
1433
|
};
|
|
1277
1434
|
}, [api, onSelect]);
|
|
1278
|
-
return /* @__PURE__ */
|
|
1435
|
+
return /* @__PURE__ */ jsx13(
|
|
1279
1436
|
CarouselContext.Provider,
|
|
1280
1437
|
{
|
|
1281
1438
|
value: {
|
|
@@ -1288,7 +1445,7 @@ function Carousel(_a) {
|
|
|
1288
1445
|
canScrollPrev,
|
|
1289
1446
|
canScrollNext
|
|
1290
1447
|
},
|
|
1291
|
-
children: /* @__PURE__ */
|
|
1448
|
+
children: /* @__PURE__ */ jsx13(
|
|
1292
1449
|
"div",
|
|
1293
1450
|
__spreadProps(__spreadValues({
|
|
1294
1451
|
onKeyDownCapture: handleKeyDown,
|
|
@@ -1306,13 +1463,13 @@ function Carousel(_a) {
|
|
|
1306
1463
|
function CarouselContent(_a) {
|
|
1307
1464
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1308
1465
|
const { carouselRef, orientation } = useCarousel();
|
|
1309
|
-
return /* @__PURE__ */
|
|
1466
|
+
return /* @__PURE__ */ jsx13(
|
|
1310
1467
|
"div",
|
|
1311
1468
|
{
|
|
1312
1469
|
ref: carouselRef,
|
|
1313
1470
|
className: "overflow-hidden",
|
|
1314
1471
|
"data-slot": "carousel-content",
|
|
1315
|
-
children: /* @__PURE__ */
|
|
1472
|
+
children: /* @__PURE__ */ jsx13(
|
|
1316
1473
|
"div",
|
|
1317
1474
|
__spreadValues({
|
|
1318
1475
|
className: cn(
|
|
@@ -1328,7 +1485,7 @@ function CarouselContent(_a) {
|
|
|
1328
1485
|
function CarouselItem(_a) {
|
|
1329
1486
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1330
1487
|
const { orientation } = useCarousel();
|
|
1331
|
-
return /* @__PURE__ */
|
|
1488
|
+
return /* @__PURE__ */ jsx13(
|
|
1332
1489
|
"div",
|
|
1333
1490
|
__spreadValues({
|
|
1334
1491
|
role: "group",
|
|
@@ -1353,7 +1510,7 @@ function CarouselPrevious(_a) {
|
|
|
1353
1510
|
"size"
|
|
1354
1511
|
]);
|
|
1355
1512
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1356
|
-
return /* @__PURE__ */
|
|
1513
|
+
return /* @__PURE__ */ jsxs8(
|
|
1357
1514
|
Button,
|
|
1358
1515
|
__spreadProps(__spreadValues({
|
|
1359
1516
|
"data-slot": "carousel-previous",
|
|
@@ -1368,8 +1525,8 @@ function CarouselPrevious(_a) {
|
|
|
1368
1525
|
onClick: scrollPrev
|
|
1369
1526
|
}, props), {
|
|
1370
1527
|
children: [
|
|
1371
|
-
/* @__PURE__ */
|
|
1372
|
-
/* @__PURE__ */
|
|
1528
|
+
/* @__PURE__ */ jsx13(ArrowLeft, {}),
|
|
1529
|
+
/* @__PURE__ */ jsx13("span", { className: "sr-only", children: "Previous slide" })
|
|
1373
1530
|
]
|
|
1374
1531
|
})
|
|
1375
1532
|
);
|
|
@@ -1385,7 +1542,7 @@ function CarouselNext(_a) {
|
|
|
1385
1542
|
"size"
|
|
1386
1543
|
]);
|
|
1387
1544
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1388
|
-
return /* @__PURE__ */
|
|
1545
|
+
return /* @__PURE__ */ jsxs8(
|
|
1389
1546
|
Button,
|
|
1390
1547
|
__spreadProps(__spreadValues({
|
|
1391
1548
|
"data-slot": "carousel-next",
|
|
@@ -1400,21 +1557,21 @@ function CarouselNext(_a) {
|
|
|
1400
1557
|
onClick: scrollNext
|
|
1401
1558
|
}, props), {
|
|
1402
1559
|
children: [
|
|
1403
|
-
/* @__PURE__ */
|
|
1404
|
-
/* @__PURE__ */
|
|
1560
|
+
/* @__PURE__ */ jsx13(ArrowRight, {}),
|
|
1561
|
+
/* @__PURE__ */ jsx13("span", { className: "sr-only", children: "Next slide" })
|
|
1405
1562
|
]
|
|
1406
1563
|
})
|
|
1407
1564
|
);
|
|
1408
1565
|
}
|
|
1409
1566
|
|
|
1410
1567
|
// components/ui/chart.tsx
|
|
1411
|
-
import * as
|
|
1568
|
+
import * as React5 from "react";
|
|
1412
1569
|
import * as RechartsPrimitive from "recharts";
|
|
1413
|
-
import { Fragment as
|
|
1570
|
+
import { Fragment as Fragment4, jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1414
1571
|
var THEMES = { light: "" };
|
|
1415
|
-
var ChartContext =
|
|
1572
|
+
var ChartContext = React5.createContext(null);
|
|
1416
1573
|
function useChart() {
|
|
1417
|
-
const context =
|
|
1574
|
+
const context = React5.useContext(ChartContext);
|
|
1418
1575
|
if (!context) {
|
|
1419
1576
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
1420
1577
|
}
|
|
@@ -1432,9 +1589,9 @@ function ChartContainer(_a) {
|
|
|
1432
1589
|
"children",
|
|
1433
1590
|
"config"
|
|
1434
1591
|
]);
|
|
1435
|
-
const uniqueId =
|
|
1592
|
+
const uniqueId = React5.useId();
|
|
1436
1593
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
1437
|
-
return /* @__PURE__ */
|
|
1594
|
+
return /* @__PURE__ */ jsx14(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs9(
|
|
1438
1595
|
"div",
|
|
1439
1596
|
__spreadProps(__spreadValues({
|
|
1440
1597
|
"data-slot": "chart",
|
|
@@ -1445,8 +1602,8 @@ function ChartContainer(_a) {
|
|
|
1445
1602
|
)
|
|
1446
1603
|
}, props), {
|
|
1447
1604
|
children: [
|
|
1448
|
-
/* @__PURE__ */
|
|
1449
|
-
/* @__PURE__ */
|
|
1605
|
+
/* @__PURE__ */ jsx14(ChartStyle, { id: chartId, config }),
|
|
1606
|
+
/* @__PURE__ */ jsx14(RechartsPrimitive.ResponsiveContainer, { children })
|
|
1450
1607
|
]
|
|
1451
1608
|
})
|
|
1452
1609
|
) });
|
|
@@ -1458,7 +1615,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
1458
1615
|
if (!colorConfig.length) {
|
|
1459
1616
|
return null;
|
|
1460
1617
|
}
|
|
1461
|
-
return /* @__PURE__ */
|
|
1618
|
+
return /* @__PURE__ */ jsx14(
|
|
1462
1619
|
"style",
|
|
1463
1620
|
{
|
|
1464
1621
|
dangerouslySetInnerHTML: {
|
|
@@ -1494,7 +1651,7 @@ function ChartTooltipContent({
|
|
|
1494
1651
|
labelKey
|
|
1495
1652
|
}) {
|
|
1496
1653
|
const { config } = useChart();
|
|
1497
|
-
const tooltipLabel =
|
|
1654
|
+
const tooltipLabel = React5.useMemo(() => {
|
|
1498
1655
|
var _a;
|
|
1499
1656
|
if (hideLabel || !(payload == null ? void 0 : payload.length)) {
|
|
1500
1657
|
return null;
|
|
@@ -1504,12 +1661,12 @@ function ChartTooltipContent({
|
|
|
1504
1661
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1505
1662
|
const value = !labelKey && typeof label === "string" ? ((_a = config[label]) == null ? void 0 : _a.label) || label : itemConfig == null ? void 0 : itemConfig.label;
|
|
1506
1663
|
if (labelFormatter) {
|
|
1507
|
-
return /* @__PURE__ */
|
|
1664
|
+
return /* @__PURE__ */ jsx14("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
1508
1665
|
}
|
|
1509
1666
|
if (!value) {
|
|
1510
1667
|
return null;
|
|
1511
1668
|
}
|
|
1512
|
-
return /* @__PURE__ */
|
|
1669
|
+
return /* @__PURE__ */ jsx14("div", { className: cn("font-medium", labelClassName), children: value });
|
|
1513
1670
|
}, [
|
|
1514
1671
|
label,
|
|
1515
1672
|
labelFormatter,
|
|
@@ -1523,7 +1680,7 @@ function ChartTooltipContent({
|
|
|
1523
1680
|
return null;
|
|
1524
1681
|
}
|
|
1525
1682
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
1526
|
-
return /* @__PURE__ */
|
|
1683
|
+
return /* @__PURE__ */ jsxs9(
|
|
1527
1684
|
"div",
|
|
1528
1685
|
{
|
|
1529
1686
|
className: cn(
|
|
@@ -1532,19 +1689,19 @@ function ChartTooltipContent({
|
|
|
1532
1689
|
),
|
|
1533
1690
|
children: [
|
|
1534
1691
|
!nestLabel ? tooltipLabel : null,
|
|
1535
|
-
/* @__PURE__ */
|
|
1692
|
+
/* @__PURE__ */ jsx14("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
1536
1693
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
1537
1694
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1538
1695
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
1539
|
-
return /* @__PURE__ */
|
|
1696
|
+
return /* @__PURE__ */ jsx14(
|
|
1540
1697
|
"div",
|
|
1541
1698
|
{
|
|
1542
1699
|
className: cn(
|
|
1543
1700
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-on-subtle",
|
|
1544
1701
|
indicator === "dot" && "items-center"
|
|
1545
1702
|
),
|
|
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__ */
|
|
1703
|
+
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: [
|
|
1704
|
+
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ jsx14(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx14(
|
|
1548
1705
|
"div",
|
|
1549
1706
|
{
|
|
1550
1707
|
className: cn(
|
|
@@ -1562,7 +1719,7 @@ function ChartTooltipContent({
|
|
|
1562
1719
|
}
|
|
1563
1720
|
}
|
|
1564
1721
|
),
|
|
1565
|
-
/* @__PURE__ */
|
|
1722
|
+
/* @__PURE__ */ jsxs9(
|
|
1566
1723
|
"div",
|
|
1567
1724
|
{
|
|
1568
1725
|
className: cn(
|
|
@@ -1570,11 +1727,11 @@ function ChartTooltipContent({
|
|
|
1570
1727
|
nestLabel ? "items-end" : "items-center"
|
|
1571
1728
|
),
|
|
1572
1729
|
children: [
|
|
1573
|
-
/* @__PURE__ */
|
|
1730
|
+
/* @__PURE__ */ jsxs9("div", { className: "grid gap-1.5", children: [
|
|
1574
1731
|
nestLabel ? tooltipLabel : null,
|
|
1575
|
-
/* @__PURE__ */
|
|
1732
|
+
/* @__PURE__ */ jsx14("span", { className: "text-on-subtle", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
|
|
1576
1733
|
] }),
|
|
1577
|
-
item.value && /* @__PURE__ */
|
|
1734
|
+
item.value && /* @__PURE__ */ jsx14("span", { className: "font-mono font-medium text-on-prominent tabular-nums", children: item.value.toLocaleString() })
|
|
1578
1735
|
]
|
|
1579
1736
|
}
|
|
1580
1737
|
)
|
|
@@ -1599,7 +1756,7 @@ function ChartLegendContent({
|
|
|
1599
1756
|
if (!(payload == null ? void 0 : payload.length)) {
|
|
1600
1757
|
return null;
|
|
1601
1758
|
}
|
|
1602
|
-
return /* @__PURE__ */
|
|
1759
|
+
return /* @__PURE__ */ jsx14(
|
|
1603
1760
|
"div",
|
|
1604
1761
|
{
|
|
1605
1762
|
className: cn(
|
|
@@ -1610,14 +1767,14 @@ function ChartLegendContent({
|
|
|
1610
1767
|
children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
1611
1768
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1612
1769
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1613
|
-
return /* @__PURE__ */
|
|
1770
|
+
return /* @__PURE__ */ jsxs9(
|
|
1614
1771
|
"div",
|
|
1615
1772
|
{
|
|
1616
1773
|
className: cn(
|
|
1617
1774
|
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-on-subtle"
|
|
1618
1775
|
),
|
|
1619
1776
|
children: [
|
|
1620
|
-
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */
|
|
1777
|
+
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ jsx14(itemConfig.icon, {}) : /* @__PURE__ */ jsx14(
|
|
1621
1778
|
"div",
|
|
1622
1779
|
{
|
|
1623
1780
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -1652,14 +1809,14 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1652
1809
|
// components/ui/checkbox.tsx
|
|
1653
1810
|
import { CheckIcon } from "lucide-react";
|
|
1654
1811
|
import { Checkbox as CheckboxPrimitive } from "radix-ui";
|
|
1655
|
-
import { jsx as
|
|
1812
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1656
1813
|
function Checkbox(_a) {
|
|
1657
1814
|
var _b = _a, {
|
|
1658
1815
|
className
|
|
1659
1816
|
} = _b, props = __objRest(_b, [
|
|
1660
1817
|
"className"
|
|
1661
1818
|
]);
|
|
1662
|
-
return /* @__PURE__ */
|
|
1819
|
+
return /* @__PURE__ */ jsx15(
|
|
1663
1820
|
CheckboxPrimitive.Root,
|
|
1664
1821
|
__spreadProps(__spreadValues({
|
|
1665
1822
|
"data-slot": "checkbox",
|
|
@@ -1668,12 +1825,12 @@ function Checkbox(_a) {
|
|
|
1668
1825
|
className
|
|
1669
1826
|
)
|
|
1670
1827
|
}, props), {
|
|
1671
|
-
children: /* @__PURE__ */
|
|
1828
|
+
children: /* @__PURE__ */ jsx15(
|
|
1672
1829
|
CheckboxPrimitive.Indicator,
|
|
1673
1830
|
{
|
|
1674
1831
|
"data-slot": "checkbox-indicator",
|
|
1675
1832
|
className: "grid place-content-center text-current transition-none",
|
|
1676
|
-
children: /* @__PURE__ */
|
|
1833
|
+
children: /* @__PURE__ */ jsx15(CheckIcon, { className: "size-3.5" })
|
|
1677
1834
|
}
|
|
1678
1835
|
)
|
|
1679
1836
|
})
|
|
@@ -1682,14 +1839,14 @@ function Checkbox(_a) {
|
|
|
1682
1839
|
|
|
1683
1840
|
// components/ui/collapsible.tsx
|
|
1684
1841
|
import { Collapsible as CollapsiblePrimitive } from "radix-ui";
|
|
1685
|
-
import { jsx as
|
|
1842
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1686
1843
|
function Collapsible(_a) {
|
|
1687
1844
|
var props = __objRest(_a, []);
|
|
1688
|
-
return /* @__PURE__ */
|
|
1845
|
+
return /* @__PURE__ */ jsx16(CollapsiblePrimitive.Root, __spreadValues({ "data-slot": "collapsible" }, props));
|
|
1689
1846
|
}
|
|
1690
1847
|
function CollapsibleTrigger(_a) {
|
|
1691
1848
|
var props = __objRest(_a, []);
|
|
1692
|
-
return /* @__PURE__ */
|
|
1849
|
+
return /* @__PURE__ */ jsx16(
|
|
1693
1850
|
CollapsiblePrimitive.CollapsibleTrigger,
|
|
1694
1851
|
__spreadValues({
|
|
1695
1852
|
"data-slot": "collapsible-trigger"
|
|
@@ -1698,7 +1855,7 @@ function CollapsibleTrigger(_a) {
|
|
|
1698
1855
|
}
|
|
1699
1856
|
function CollapsibleContent(_a) {
|
|
1700
1857
|
var props = __objRest(_a, []);
|
|
1701
|
-
return /* @__PURE__ */
|
|
1858
|
+
return /* @__PURE__ */ jsx16(
|
|
1702
1859
|
CollapsiblePrimitive.CollapsibleContent,
|
|
1703
1860
|
__spreadValues({
|
|
1704
1861
|
"data-slot": "collapsible-content"
|
|
@@ -1707,17 +1864,17 @@ function CollapsibleContent(_a) {
|
|
|
1707
1864
|
}
|
|
1708
1865
|
|
|
1709
1866
|
// components/ui/combobox.tsx
|
|
1710
|
-
import * as
|
|
1867
|
+
import * as React7 from "react";
|
|
1711
1868
|
import { Combobox as ComboboxPrimitive } from "@base-ui/react";
|
|
1712
1869
|
import { CheckIcon as CheckIcon2, ChevronDownIcon as ChevronDownIcon3, XIcon } from "lucide-react";
|
|
1713
1870
|
|
|
1714
1871
|
// components/ui/input-group.tsx
|
|
1715
|
-
import * as
|
|
1872
|
+
import * as React6 from "react";
|
|
1716
1873
|
import { cva as cva5 } from "class-variance-authority";
|
|
1717
1874
|
|
|
1718
1875
|
// components/ui/input.tsx
|
|
1719
1876
|
import { cva as cva4 } from "class-variance-authority";
|
|
1720
|
-
import { jsx as
|
|
1877
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1721
1878
|
var inputVariants = cva4(
|
|
1722
1879
|
[
|
|
1723
1880
|
"w-full min-w-0 rounded-sm border border-border-subtle bg-white/5",
|
|
@@ -1751,7 +1908,7 @@ function Input(_a) {
|
|
|
1751
1908
|
"type",
|
|
1752
1909
|
"size"
|
|
1753
1910
|
]);
|
|
1754
|
-
return /* @__PURE__ */
|
|
1911
|
+
return /* @__PURE__ */ jsx17(
|
|
1755
1912
|
"input",
|
|
1756
1913
|
__spreadValues({
|
|
1757
1914
|
type,
|
|
@@ -1763,10 +1920,10 @@ function Input(_a) {
|
|
|
1763
1920
|
}
|
|
1764
1921
|
|
|
1765
1922
|
// components/ui/textarea.tsx
|
|
1766
|
-
import { jsx as
|
|
1923
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1767
1924
|
function Textarea(_a) {
|
|
1768
1925
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1769
|
-
return /* @__PURE__ */
|
|
1926
|
+
return /* @__PURE__ */ jsx18(
|
|
1770
1927
|
"textarea",
|
|
1771
1928
|
__spreadValues({
|
|
1772
1929
|
"data-slot": "textarea",
|
|
@@ -1779,8 +1936,8 @@ function Textarea(_a) {
|
|
|
1779
1936
|
}
|
|
1780
1937
|
|
|
1781
1938
|
// components/ui/input-group.tsx
|
|
1782
|
-
import { jsx as
|
|
1783
|
-
var InputGroupSizeContext =
|
|
1939
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1940
|
+
var InputGroupSizeContext = React6.createContext("md");
|
|
1784
1941
|
var inputGroupVariants = cva5(
|
|
1785
1942
|
[
|
|
1786
1943
|
"group/input-group relative flex w-full items-center rounded-sm border border-border-subtle bg-white/5",
|
|
@@ -1818,7 +1975,7 @@ function InputGroup(_a) {
|
|
|
1818
1975
|
"className",
|
|
1819
1976
|
"size"
|
|
1820
1977
|
]);
|
|
1821
|
-
return /* @__PURE__ */
|
|
1978
|
+
return /* @__PURE__ */ jsx19(InputGroupSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsx19(
|
|
1822
1979
|
"div",
|
|
1823
1980
|
__spreadValues({
|
|
1824
1981
|
"data-slot": "input-group",
|
|
@@ -1863,7 +2020,7 @@ function InputGroupAddon(_a) {
|
|
|
1863
2020
|
"className",
|
|
1864
2021
|
"align"
|
|
1865
2022
|
]);
|
|
1866
|
-
return /* @__PURE__ */
|
|
2023
|
+
return /* @__PURE__ */ jsx19(
|
|
1867
2024
|
"div",
|
|
1868
2025
|
__spreadValues({
|
|
1869
2026
|
role: "group",
|
|
@@ -1908,7 +2065,7 @@ function InputGroupButton(_a) {
|
|
|
1908
2065
|
"variant",
|
|
1909
2066
|
"size"
|
|
1910
2067
|
]);
|
|
1911
|
-
return /* @__PURE__ */
|
|
2068
|
+
return /* @__PURE__ */ jsx19(
|
|
1912
2069
|
Button,
|
|
1913
2070
|
__spreadValues({
|
|
1914
2071
|
type,
|
|
@@ -1920,7 +2077,7 @@ function InputGroupButton(_a) {
|
|
|
1920
2077
|
}
|
|
1921
2078
|
function InputGroupText(_a) {
|
|
1922
2079
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
1923
|
-
return /* @__PURE__ */
|
|
2080
|
+
return /* @__PURE__ */ jsx19(
|
|
1924
2081
|
"span",
|
|
1925
2082
|
__spreadValues({
|
|
1926
2083
|
className: cn(
|
|
@@ -1942,9 +2099,9 @@ function InputGroupInput(_a) {
|
|
|
1942
2099
|
"className",
|
|
1943
2100
|
"size"
|
|
1944
2101
|
]);
|
|
1945
|
-
const groupSize =
|
|
2102
|
+
const groupSize = React6.useContext(InputGroupSizeContext);
|
|
1946
2103
|
const size = sizeProp != null ? sizeProp : groupSize;
|
|
1947
|
-
return /* @__PURE__ */
|
|
2104
|
+
return /* @__PURE__ */ jsx19(
|
|
1948
2105
|
Input,
|
|
1949
2106
|
__spreadValues({
|
|
1950
2107
|
"data-slot": "input-group-control",
|
|
@@ -1962,7 +2119,7 @@ function InputGroupTextarea(_a) {
|
|
|
1962
2119
|
} = _b, props = __objRest(_b, [
|
|
1963
2120
|
"className"
|
|
1964
2121
|
]);
|
|
1965
|
-
return /* @__PURE__ */
|
|
2122
|
+
return /* @__PURE__ */ jsx19(
|
|
1966
2123
|
Textarea,
|
|
1967
2124
|
__spreadValues({
|
|
1968
2125
|
"data-slot": "input-group-control",
|
|
@@ -1975,11 +2132,11 @@ function InputGroupTextarea(_a) {
|
|
|
1975
2132
|
}
|
|
1976
2133
|
|
|
1977
2134
|
// components/ui/combobox.tsx
|
|
1978
|
-
import { jsx as
|
|
2135
|
+
import { jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1979
2136
|
var Combobox = ComboboxPrimitive.Root;
|
|
1980
2137
|
function ComboboxValue(_a) {
|
|
1981
2138
|
var props = __objRest(_a, []);
|
|
1982
|
-
return /* @__PURE__ */
|
|
2139
|
+
return /* @__PURE__ */ jsx20(ComboboxPrimitive.Value, __spreadValues({ "data-slot": "combobox-value" }, props));
|
|
1983
2140
|
}
|
|
1984
2141
|
function ComboboxTrigger(_a) {
|
|
1985
2142
|
var _b = _a, {
|
|
@@ -1989,7 +2146,7 @@ function ComboboxTrigger(_a) {
|
|
|
1989
2146
|
"className",
|
|
1990
2147
|
"children"
|
|
1991
2148
|
]);
|
|
1992
|
-
return /* @__PURE__ */
|
|
2149
|
+
return /* @__PURE__ */ jsxs10(
|
|
1993
2150
|
ComboboxPrimitive.Trigger,
|
|
1994
2151
|
__spreadProps(__spreadValues({
|
|
1995
2152
|
"data-slot": "combobox-trigger",
|
|
@@ -1997,7 +2154,7 @@ function ComboboxTrigger(_a) {
|
|
|
1997
2154
|
}, props), {
|
|
1998
2155
|
children: [
|
|
1999
2156
|
children,
|
|
2000
|
-
/* @__PURE__ */
|
|
2157
|
+
/* @__PURE__ */ jsx20(
|
|
2001
2158
|
ChevronDownIcon3,
|
|
2002
2159
|
{
|
|
2003
2160
|
"data-slot": "combobox-trigger-icon",
|
|
@@ -2010,14 +2167,14 @@ function ComboboxTrigger(_a) {
|
|
|
2010
2167
|
}
|
|
2011
2168
|
function ComboboxClear(_a) {
|
|
2012
2169
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2013
|
-
return /* @__PURE__ */
|
|
2170
|
+
return /* @__PURE__ */ jsx20(
|
|
2014
2171
|
ComboboxPrimitive.Clear,
|
|
2015
2172
|
__spreadProps(__spreadValues({
|
|
2016
2173
|
"data-slot": "combobox-clear",
|
|
2017
|
-
render: /* @__PURE__ */
|
|
2174
|
+
render: /* @__PURE__ */ jsx20(InputGroupButton, { variant: "secondary", size: "icon-xs" }),
|
|
2018
2175
|
className: cn(className)
|
|
2019
2176
|
}, props), {
|
|
2020
|
-
children: /* @__PURE__ */
|
|
2177
|
+
children: /* @__PURE__ */ jsx20(XIcon, { className: "pointer-events-none" })
|
|
2021
2178
|
})
|
|
2022
2179
|
);
|
|
2023
2180
|
}
|
|
@@ -2035,15 +2192,15 @@ function ComboboxInput(_a) {
|
|
|
2035
2192
|
"showTrigger",
|
|
2036
2193
|
"showClear"
|
|
2037
2194
|
]);
|
|
2038
|
-
return /* @__PURE__ */
|
|
2039
|
-
/* @__PURE__ */
|
|
2195
|
+
return /* @__PURE__ */ jsxs10(InputGroup, { className: cn("w-auto", className), children: [
|
|
2196
|
+
/* @__PURE__ */ jsx20(
|
|
2040
2197
|
ComboboxPrimitive.Input,
|
|
2041
2198
|
__spreadValues({
|
|
2042
|
-
render: /* @__PURE__ */
|
|
2199
|
+
render: /* @__PURE__ */ jsx20(InputGroupInput, { disabled })
|
|
2043
2200
|
}, props)
|
|
2044
2201
|
),
|
|
2045
|
-
/* @__PURE__ */
|
|
2046
|
-
showTrigger && /* @__PURE__ */
|
|
2202
|
+
/* @__PURE__ */ jsxs10(InputGroupAddon, { align: "inline-end", children: [
|
|
2203
|
+
showTrigger && /* @__PURE__ */ jsx20(
|
|
2047
2204
|
InputGroupButton,
|
|
2048
2205
|
{
|
|
2049
2206
|
size: "icon-xs",
|
|
@@ -2052,10 +2209,10 @@ function ComboboxInput(_a) {
|
|
|
2052
2209
|
"data-slot": "input-group-button",
|
|
2053
2210
|
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
2054
2211
|
disabled,
|
|
2055
|
-
children: /* @__PURE__ */
|
|
2212
|
+
children: /* @__PURE__ */ jsx20(ComboboxTrigger, {})
|
|
2056
2213
|
}
|
|
2057
2214
|
),
|
|
2058
|
-
showClear && /* @__PURE__ */
|
|
2215
|
+
showClear && /* @__PURE__ */ jsx20(ComboboxClear, { disabled })
|
|
2059
2216
|
] }),
|
|
2060
2217
|
children
|
|
2061
2218
|
] });
|
|
@@ -2076,7 +2233,7 @@ function ComboboxContent(_a) {
|
|
|
2076
2233
|
"alignOffset",
|
|
2077
2234
|
"anchor"
|
|
2078
2235
|
]);
|
|
2079
|
-
return /* @__PURE__ */
|
|
2236
|
+
return /* @__PURE__ */ jsx20(ComboboxPrimitive.Portal, { children: /* @__PURE__ */ jsx20(
|
|
2080
2237
|
ComboboxPrimitive.Positioner,
|
|
2081
2238
|
{
|
|
2082
2239
|
side,
|
|
@@ -2085,7 +2242,7 @@ function ComboboxContent(_a) {
|
|
|
2085
2242
|
alignOffset,
|
|
2086
2243
|
anchor,
|
|
2087
2244
|
className: "isolate z-50",
|
|
2088
|
-
children: /* @__PURE__ */
|
|
2245
|
+
children: /* @__PURE__ */ jsx20(
|
|
2089
2246
|
ComboboxPrimitive.Popup,
|
|
2090
2247
|
__spreadValues({
|
|
2091
2248
|
"data-slot": "combobox-content",
|
|
@@ -2101,7 +2258,7 @@ function ComboboxContent(_a) {
|
|
|
2101
2258
|
}
|
|
2102
2259
|
function ComboboxList(_a) {
|
|
2103
2260
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2104
|
-
return /* @__PURE__ */
|
|
2261
|
+
return /* @__PURE__ */ jsx20(
|
|
2105
2262
|
ComboboxPrimitive.List,
|
|
2106
2263
|
__spreadValues({
|
|
2107
2264
|
"data-slot": "combobox-list",
|
|
@@ -2120,7 +2277,7 @@ function ComboboxItem(_a) {
|
|
|
2120
2277
|
"className",
|
|
2121
2278
|
"children"
|
|
2122
2279
|
]);
|
|
2123
|
-
return /* @__PURE__ */
|
|
2280
|
+
return /* @__PURE__ */ jsxs10(
|
|
2124
2281
|
ComboboxPrimitive.Item,
|
|
2125
2282
|
__spreadProps(__spreadValues({
|
|
2126
2283
|
"data-slot": "combobox-item",
|
|
@@ -2131,12 +2288,12 @@ function ComboboxItem(_a) {
|
|
|
2131
2288
|
}, props), {
|
|
2132
2289
|
children: [
|
|
2133
2290
|
children,
|
|
2134
|
-
/* @__PURE__ */
|
|
2291
|
+
/* @__PURE__ */ jsx20(
|
|
2135
2292
|
ComboboxPrimitive.ItemIndicator,
|
|
2136
2293
|
{
|
|
2137
2294
|
"data-slot": "combobox-item-indicator",
|
|
2138
|
-
render: /* @__PURE__ */
|
|
2139
|
-
children: /* @__PURE__ */
|
|
2295
|
+
render: /* @__PURE__ */ jsx20("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
2296
|
+
children: /* @__PURE__ */ jsx20(CheckIcon2, { className: "pointer-events-none size-4 pointer-coarse:size-5" })
|
|
2140
2297
|
}
|
|
2141
2298
|
)
|
|
2142
2299
|
]
|
|
@@ -2145,7 +2302,7 @@ function ComboboxItem(_a) {
|
|
|
2145
2302
|
}
|
|
2146
2303
|
function ComboboxGroup(_a) {
|
|
2147
2304
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2148
|
-
return /* @__PURE__ */
|
|
2305
|
+
return /* @__PURE__ */ jsx20(
|
|
2149
2306
|
ComboboxPrimitive.Group,
|
|
2150
2307
|
__spreadValues({
|
|
2151
2308
|
"data-slot": "combobox-group",
|
|
@@ -2159,7 +2316,7 @@ function ComboboxLabel(_a) {
|
|
|
2159
2316
|
} = _b, props = __objRest(_b, [
|
|
2160
2317
|
"className"
|
|
2161
2318
|
]);
|
|
2162
|
-
return /* @__PURE__ */
|
|
2319
|
+
return /* @__PURE__ */ jsx20(
|
|
2163
2320
|
ComboboxPrimitive.GroupLabel,
|
|
2164
2321
|
__spreadValues({
|
|
2165
2322
|
"data-slot": "combobox-label",
|
|
@@ -2172,11 +2329,11 @@ function ComboboxLabel(_a) {
|
|
|
2172
2329
|
}
|
|
2173
2330
|
function ComboboxCollection(_a) {
|
|
2174
2331
|
var props = __objRest(_a, []);
|
|
2175
|
-
return /* @__PURE__ */
|
|
2332
|
+
return /* @__PURE__ */ jsx20(ComboboxPrimitive.Collection, __spreadValues({ "data-slot": "combobox-collection" }, props));
|
|
2176
2333
|
}
|
|
2177
2334
|
function ComboboxEmpty(_a) {
|
|
2178
2335
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2179
|
-
return /* @__PURE__ */
|
|
2336
|
+
return /* @__PURE__ */ jsx20(
|
|
2180
2337
|
ComboboxPrimitive.Empty,
|
|
2181
2338
|
__spreadValues({
|
|
2182
2339
|
"data-slot": "combobox-empty",
|
|
@@ -2193,7 +2350,7 @@ function ComboboxSeparator(_a) {
|
|
|
2193
2350
|
} = _b, props = __objRest(_b, [
|
|
2194
2351
|
"className"
|
|
2195
2352
|
]);
|
|
2196
|
-
return /* @__PURE__ */
|
|
2353
|
+
return /* @__PURE__ */ jsx20(
|
|
2197
2354
|
ComboboxPrimitive.Separator,
|
|
2198
2355
|
__spreadValues({
|
|
2199
2356
|
"data-slot": "combobox-separator",
|
|
@@ -2207,7 +2364,7 @@ function ComboboxChips(_a) {
|
|
|
2207
2364
|
} = _b, props = __objRest(_b, [
|
|
2208
2365
|
"className"
|
|
2209
2366
|
]);
|
|
2210
|
-
return /* @__PURE__ */
|
|
2367
|
+
return /* @__PURE__ */ jsx20(
|
|
2211
2368
|
ComboboxPrimitive.Chips,
|
|
2212
2369
|
__spreadValues({
|
|
2213
2370
|
"data-slot": "combobox-chips",
|
|
@@ -2228,7 +2385,7 @@ function ComboboxChip(_a) {
|
|
|
2228
2385
|
"children",
|
|
2229
2386
|
"showRemove"
|
|
2230
2387
|
]);
|
|
2231
|
-
return /* @__PURE__ */
|
|
2388
|
+
return /* @__PURE__ */ jsxs10(
|
|
2232
2389
|
ComboboxPrimitive.Chip,
|
|
2233
2390
|
__spreadProps(__spreadValues({
|
|
2234
2391
|
"data-slot": "combobox-chip",
|
|
@@ -2239,13 +2396,13 @@ function ComboboxChip(_a) {
|
|
|
2239
2396
|
}, props), {
|
|
2240
2397
|
children: [
|
|
2241
2398
|
children,
|
|
2242
|
-
showRemove && /* @__PURE__ */
|
|
2399
|
+
showRemove && /* @__PURE__ */ jsx20(
|
|
2243
2400
|
ComboboxPrimitive.ChipRemove,
|
|
2244
2401
|
{
|
|
2245
|
-
render: /* @__PURE__ */
|
|
2402
|
+
render: /* @__PURE__ */ jsx20(Button, { variant: "secondary", size: "icon-xs" }),
|
|
2246
2403
|
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
2247
2404
|
"data-slot": "combobox-chip-remove",
|
|
2248
|
-
children: /* @__PURE__ */
|
|
2405
|
+
children: /* @__PURE__ */ jsx20(XIcon, { className: "pointer-events-none" })
|
|
2249
2406
|
}
|
|
2250
2407
|
)
|
|
2251
2408
|
]
|
|
@@ -2260,7 +2417,7 @@ function ComboboxChipsInput(_a) {
|
|
|
2260
2417
|
"className",
|
|
2261
2418
|
"children"
|
|
2262
2419
|
]);
|
|
2263
|
-
return /* @__PURE__ */
|
|
2420
|
+
return /* @__PURE__ */ jsx20(
|
|
2264
2421
|
ComboboxPrimitive.Input,
|
|
2265
2422
|
__spreadValues({
|
|
2266
2423
|
"data-slot": "combobox-chip-input",
|
|
@@ -2269,7 +2426,7 @@ function ComboboxChipsInput(_a) {
|
|
|
2269
2426
|
);
|
|
2270
2427
|
}
|
|
2271
2428
|
function useComboboxAnchor() {
|
|
2272
|
-
return
|
|
2429
|
+
return React7.useRef(null);
|
|
2273
2430
|
}
|
|
2274
2431
|
|
|
2275
2432
|
// components/ui/command.tsx
|
|
@@ -2279,22 +2436,22 @@ import { SearchIcon } from "lucide-react";
|
|
|
2279
2436
|
// components/ui/dialog.tsx
|
|
2280
2437
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
2281
2438
|
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
2282
|
-
import { jsx as
|
|
2439
|
+
import { jsx as jsx21, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2283
2440
|
function Dialog(_a) {
|
|
2284
2441
|
var props = __objRest(_a, []);
|
|
2285
|
-
return /* @__PURE__ */
|
|
2442
|
+
return /* @__PURE__ */ jsx21(DialogPrimitive.Root, __spreadValues({ "data-slot": "dialog" }, props));
|
|
2286
2443
|
}
|
|
2287
2444
|
function DialogTrigger(_a) {
|
|
2288
2445
|
var props = __objRest(_a, []);
|
|
2289
|
-
return /* @__PURE__ */
|
|
2446
|
+
return /* @__PURE__ */ jsx21(DialogPrimitive.Trigger, __spreadValues({ "data-slot": "dialog-trigger" }, props));
|
|
2290
2447
|
}
|
|
2291
2448
|
function DialogPortal(_a) {
|
|
2292
2449
|
var props = __objRest(_a, []);
|
|
2293
|
-
return /* @__PURE__ */
|
|
2450
|
+
return /* @__PURE__ */ jsx21(DialogPrimitive.Portal, __spreadValues({ "data-slot": "dialog-portal" }, props));
|
|
2294
2451
|
}
|
|
2295
2452
|
function DialogClose(_a) {
|
|
2296
2453
|
var props = __objRest(_a, []);
|
|
2297
|
-
return /* @__PURE__ */
|
|
2454
|
+
return /* @__PURE__ */ jsx21(DialogPrimitive.Close, __spreadValues({ "data-slot": "dialog-close" }, props));
|
|
2298
2455
|
}
|
|
2299
2456
|
function DialogOverlay(_a) {
|
|
2300
2457
|
var _b = _a, {
|
|
@@ -2302,7 +2459,7 @@ function DialogOverlay(_a) {
|
|
|
2302
2459
|
} = _b, props = __objRest(_b, [
|
|
2303
2460
|
"className"
|
|
2304
2461
|
]);
|
|
2305
|
-
return /* @__PURE__ */
|
|
2462
|
+
return /* @__PURE__ */ jsx21(
|
|
2306
2463
|
DialogPrimitive.Overlay,
|
|
2307
2464
|
__spreadValues({
|
|
2308
2465
|
"data-slot": "dialog-overlay",
|
|
@@ -2323,9 +2480,9 @@ function DialogContent(_a) {
|
|
|
2323
2480
|
"children",
|
|
2324
2481
|
"showCloseButton"
|
|
2325
2482
|
]);
|
|
2326
|
-
return /* @__PURE__ */
|
|
2327
|
-
/* @__PURE__ */
|
|
2328
|
-
/* @__PURE__ */
|
|
2483
|
+
return /* @__PURE__ */ jsxs11(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
2484
|
+
/* @__PURE__ */ jsx21(DialogOverlay, {}),
|
|
2485
|
+
/* @__PURE__ */ jsxs11(
|
|
2329
2486
|
DialogPrimitive.Content,
|
|
2330
2487
|
__spreadProps(__spreadValues({
|
|
2331
2488
|
"data-slot": "dialog-content",
|
|
@@ -2336,14 +2493,14 @@ function DialogContent(_a) {
|
|
|
2336
2493
|
}, props), {
|
|
2337
2494
|
children: [
|
|
2338
2495
|
children,
|
|
2339
|
-
showCloseButton && /* @__PURE__ */
|
|
2496
|
+
showCloseButton && /* @__PURE__ */ jsxs11(
|
|
2340
2497
|
DialogPrimitive.Close,
|
|
2341
2498
|
{
|
|
2342
2499
|
"data-slot": "dialog-close",
|
|
2343
2500
|
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
2501
|
children: [
|
|
2345
|
-
/* @__PURE__ */
|
|
2346
|
-
/* @__PURE__ */
|
|
2502
|
+
/* @__PURE__ */ jsx21(XIcon2, {}),
|
|
2503
|
+
/* @__PURE__ */ jsx21("span", { className: "sr-only", children: "Close" })
|
|
2347
2504
|
]
|
|
2348
2505
|
}
|
|
2349
2506
|
)
|
|
@@ -2354,7 +2511,7 @@ function DialogContent(_a) {
|
|
|
2354
2511
|
}
|
|
2355
2512
|
function DialogHeader(_a) {
|
|
2356
2513
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2357
|
-
return /* @__PURE__ */
|
|
2514
|
+
return /* @__PURE__ */ jsx21(
|
|
2358
2515
|
"div",
|
|
2359
2516
|
__spreadValues({
|
|
2360
2517
|
"data-slot": "dialog-header",
|
|
@@ -2372,7 +2529,7 @@ function DialogFooter(_a) {
|
|
|
2372
2529
|
"showCloseButton",
|
|
2373
2530
|
"children"
|
|
2374
2531
|
]);
|
|
2375
|
-
return /* @__PURE__ */
|
|
2532
|
+
return /* @__PURE__ */ jsxs11(
|
|
2376
2533
|
"div",
|
|
2377
2534
|
__spreadProps(__spreadValues({
|
|
2378
2535
|
"data-slot": "dialog-footer",
|
|
@@ -2383,7 +2540,7 @@ function DialogFooter(_a) {
|
|
|
2383
2540
|
}, props), {
|
|
2384
2541
|
children: [
|
|
2385
2542
|
children,
|
|
2386
|
-
showCloseButton && /* @__PURE__ */
|
|
2543
|
+
showCloseButton && /* @__PURE__ */ jsx21(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx21(Button, { variant: "secondary", size: "md", children: "Close" }) })
|
|
2387
2544
|
]
|
|
2388
2545
|
})
|
|
2389
2546
|
);
|
|
@@ -2394,7 +2551,7 @@ function DialogTitle(_a) {
|
|
|
2394
2551
|
} = _b, props = __objRest(_b, [
|
|
2395
2552
|
"className"
|
|
2396
2553
|
]);
|
|
2397
|
-
return /* @__PURE__ */
|
|
2554
|
+
return /* @__PURE__ */ jsx21(
|
|
2398
2555
|
DialogPrimitive.Title,
|
|
2399
2556
|
__spreadValues({
|
|
2400
2557
|
"data-slot": "dialog-title",
|
|
@@ -2408,7 +2565,7 @@ function DialogDescription(_a) {
|
|
|
2408
2565
|
} = _b, props = __objRest(_b, [
|
|
2409
2566
|
"className"
|
|
2410
2567
|
]);
|
|
2411
|
-
return /* @__PURE__ */
|
|
2568
|
+
return /* @__PURE__ */ jsx21(
|
|
2412
2569
|
DialogPrimitive.Description,
|
|
2413
2570
|
__spreadValues({
|
|
2414
2571
|
"data-slot": "dialog-description",
|
|
@@ -2418,14 +2575,14 @@ function DialogDescription(_a) {
|
|
|
2418
2575
|
}
|
|
2419
2576
|
|
|
2420
2577
|
// components/ui/command.tsx
|
|
2421
|
-
import { jsx as
|
|
2578
|
+
import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2422
2579
|
function Command(_a) {
|
|
2423
2580
|
var _b = _a, {
|
|
2424
2581
|
className
|
|
2425
2582
|
} = _b, props = __objRest(_b, [
|
|
2426
2583
|
"className"
|
|
2427
2584
|
]);
|
|
2428
|
-
return /* @__PURE__ */
|
|
2585
|
+
return /* @__PURE__ */ jsx22(
|
|
2429
2586
|
CommandPrimitive,
|
|
2430
2587
|
__spreadValues({
|
|
2431
2588
|
"data-slot": "command",
|
|
@@ -2450,17 +2607,17 @@ function CommandDialog(_a) {
|
|
|
2450
2607
|
"className",
|
|
2451
2608
|
"showCloseButton"
|
|
2452
2609
|
]);
|
|
2453
|
-
return /* @__PURE__ */
|
|
2454
|
-
/* @__PURE__ */
|
|
2455
|
-
/* @__PURE__ */
|
|
2456
|
-
/* @__PURE__ */
|
|
2610
|
+
return /* @__PURE__ */ jsxs12(Dialog, __spreadProps(__spreadValues({}, props), { children: [
|
|
2611
|
+
/* @__PURE__ */ jsxs12(DialogHeader, { className: "sr-only", children: [
|
|
2612
|
+
/* @__PURE__ */ jsx22(DialogTitle, { children: title }),
|
|
2613
|
+
/* @__PURE__ */ jsx22(DialogDescription, { children: description })
|
|
2457
2614
|
] }),
|
|
2458
|
-
/* @__PURE__ */
|
|
2615
|
+
/* @__PURE__ */ jsx22(
|
|
2459
2616
|
DialogContent,
|
|
2460
2617
|
{
|
|
2461
2618
|
className: cn("overflow-hidden p-0", className),
|
|
2462
2619
|
showCloseButton,
|
|
2463
|
-
children: /* @__PURE__ */
|
|
2620
|
+
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
2621
|
}
|
|
2465
2622
|
)
|
|
2466
2623
|
] }));
|
|
@@ -2471,14 +2628,14 @@ function CommandInput(_a) {
|
|
|
2471
2628
|
} = _b, props = __objRest(_b, [
|
|
2472
2629
|
"className"
|
|
2473
2630
|
]);
|
|
2474
|
-
return /* @__PURE__ */
|
|
2631
|
+
return /* @__PURE__ */ jsxs12(
|
|
2475
2632
|
"div",
|
|
2476
2633
|
{
|
|
2477
2634
|
"data-slot": "command-input-wrapper",
|
|
2478
2635
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
2479
2636
|
children: [
|
|
2480
|
-
/* @__PURE__ */
|
|
2481
|
-
/* @__PURE__ */
|
|
2637
|
+
/* @__PURE__ */ jsx22(SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
|
|
2638
|
+
/* @__PURE__ */ jsx22(
|
|
2482
2639
|
CommandPrimitive.Input,
|
|
2483
2640
|
__spreadValues({
|
|
2484
2641
|
"data-slot": "command-input",
|
|
@@ -2498,7 +2655,7 @@ function CommandList(_a) {
|
|
|
2498
2655
|
} = _b, props = __objRest(_b, [
|
|
2499
2656
|
"className"
|
|
2500
2657
|
]);
|
|
2501
|
-
return /* @__PURE__ */
|
|
2658
|
+
return /* @__PURE__ */ jsx22(
|
|
2502
2659
|
CommandPrimitive.List,
|
|
2503
2660
|
__spreadValues({
|
|
2504
2661
|
"data-slot": "command-list",
|
|
@@ -2511,7 +2668,7 @@ function CommandList(_a) {
|
|
|
2511
2668
|
}
|
|
2512
2669
|
function CommandEmpty(_a) {
|
|
2513
2670
|
var props = __objRest(_a, []);
|
|
2514
|
-
return /* @__PURE__ */
|
|
2671
|
+
return /* @__PURE__ */ jsx22(
|
|
2515
2672
|
CommandPrimitive.Empty,
|
|
2516
2673
|
__spreadValues({
|
|
2517
2674
|
"data-slot": "command-empty",
|
|
@@ -2525,7 +2682,7 @@ function CommandGroup(_a) {
|
|
|
2525
2682
|
} = _b, props = __objRest(_b, [
|
|
2526
2683
|
"className"
|
|
2527
2684
|
]);
|
|
2528
|
-
return /* @__PURE__ */
|
|
2685
|
+
return /* @__PURE__ */ jsx22(
|
|
2529
2686
|
CommandPrimitive.Group,
|
|
2530
2687
|
__spreadValues({
|
|
2531
2688
|
"data-slot": "command-group",
|
|
@@ -2542,7 +2699,7 @@ function CommandSeparator(_a) {
|
|
|
2542
2699
|
} = _b, props = __objRest(_b, [
|
|
2543
2700
|
"className"
|
|
2544
2701
|
]);
|
|
2545
|
-
return /* @__PURE__ */
|
|
2702
|
+
return /* @__PURE__ */ jsx22(
|
|
2546
2703
|
CommandPrimitive.Separator,
|
|
2547
2704
|
__spreadValues({
|
|
2548
2705
|
"data-slot": "command-separator",
|
|
@@ -2556,7 +2713,7 @@ function CommandItem(_a) {
|
|
|
2556
2713
|
} = _b, props = __objRest(_b, [
|
|
2557
2714
|
"className"
|
|
2558
2715
|
]);
|
|
2559
|
-
return /* @__PURE__ */
|
|
2716
|
+
return /* @__PURE__ */ jsx22(
|
|
2560
2717
|
CommandPrimitive.Item,
|
|
2561
2718
|
__spreadValues({
|
|
2562
2719
|
"data-slot": "command-item",
|
|
@@ -2573,7 +2730,7 @@ function CommandShortcut(_a) {
|
|
|
2573
2730
|
} = _b, props = __objRest(_b, [
|
|
2574
2731
|
"className"
|
|
2575
2732
|
]);
|
|
2576
|
-
return /* @__PURE__ */
|
|
2733
|
+
return /* @__PURE__ */ jsx22(
|
|
2577
2734
|
"span",
|
|
2578
2735
|
__spreadValues({
|
|
2579
2736
|
"data-slot": "command-shortcut",
|
|
@@ -2588,30 +2745,30 @@ function CommandShortcut(_a) {
|
|
|
2588
2745
|
// components/ui/context-menu.tsx
|
|
2589
2746
|
import { CheckIcon as CheckIcon3, ChevronRightIcon as ChevronRightIcon2, CircleIcon } from "lucide-react";
|
|
2590
2747
|
import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
|
|
2591
|
-
import { jsx as
|
|
2748
|
+
import { jsx as jsx23, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2592
2749
|
function ContextMenu(_a) {
|
|
2593
2750
|
var props = __objRest(_a, []);
|
|
2594
|
-
return /* @__PURE__ */
|
|
2751
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Root, __spreadValues({ "data-slot": "context-menu" }, props));
|
|
2595
2752
|
}
|
|
2596
2753
|
function ContextMenuTrigger(_a) {
|
|
2597
2754
|
var props = __objRest(_a, []);
|
|
2598
|
-
return /* @__PURE__ */
|
|
2755
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Trigger, __spreadValues({ "data-slot": "context-menu-trigger" }, props));
|
|
2599
2756
|
}
|
|
2600
2757
|
function ContextMenuGroup(_a) {
|
|
2601
2758
|
var props = __objRest(_a, []);
|
|
2602
|
-
return /* @__PURE__ */
|
|
2759
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Group, __spreadValues({ "data-slot": "context-menu-group" }, props));
|
|
2603
2760
|
}
|
|
2604
2761
|
function ContextMenuPortal(_a) {
|
|
2605
2762
|
var props = __objRest(_a, []);
|
|
2606
|
-
return /* @__PURE__ */
|
|
2763
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Portal, __spreadValues({ "data-slot": "context-menu-portal" }, props));
|
|
2607
2764
|
}
|
|
2608
2765
|
function ContextMenuSub(_a) {
|
|
2609
2766
|
var props = __objRest(_a, []);
|
|
2610
|
-
return /* @__PURE__ */
|
|
2767
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Sub, __spreadValues({ "data-slot": "context-menu-sub" }, props));
|
|
2611
2768
|
}
|
|
2612
2769
|
function ContextMenuRadioGroup(_a) {
|
|
2613
2770
|
var props = __objRest(_a, []);
|
|
2614
|
-
return /* @__PURE__ */
|
|
2771
|
+
return /* @__PURE__ */ jsx23(
|
|
2615
2772
|
ContextMenuPrimitive.RadioGroup,
|
|
2616
2773
|
__spreadValues({
|
|
2617
2774
|
"data-slot": "context-menu-radio-group"
|
|
@@ -2628,7 +2785,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
2628
2785
|
"inset",
|
|
2629
2786
|
"children"
|
|
2630
2787
|
]);
|
|
2631
|
-
return /* @__PURE__ */
|
|
2788
|
+
return /* @__PURE__ */ jsxs13(
|
|
2632
2789
|
ContextMenuPrimitive.SubTrigger,
|
|
2633
2790
|
__spreadProps(__spreadValues({
|
|
2634
2791
|
"data-slot": "context-menu-sub-trigger",
|
|
@@ -2640,7 +2797,7 @@ function ContextMenuSubTrigger(_a) {
|
|
|
2640
2797
|
}, props), {
|
|
2641
2798
|
children: [
|
|
2642
2799
|
children,
|
|
2643
|
-
/* @__PURE__ */
|
|
2800
|
+
/* @__PURE__ */ jsx23(ChevronRightIcon2, { className: "ml-auto" })
|
|
2644
2801
|
]
|
|
2645
2802
|
})
|
|
2646
2803
|
);
|
|
@@ -2651,7 +2808,7 @@ function ContextMenuSubContent(_a) {
|
|
|
2651
2808
|
} = _b, props = __objRest(_b, [
|
|
2652
2809
|
"className"
|
|
2653
2810
|
]);
|
|
2654
|
-
return /* @__PURE__ */
|
|
2811
|
+
return /* @__PURE__ */ jsx23(
|
|
2655
2812
|
ContextMenuPrimitive.SubContent,
|
|
2656
2813
|
__spreadValues({
|
|
2657
2814
|
"data-slot": "context-menu-sub-content",
|
|
@@ -2668,7 +2825,7 @@ function ContextMenuContent(_a) {
|
|
|
2668
2825
|
} = _b, props = __objRest(_b, [
|
|
2669
2826
|
"className"
|
|
2670
2827
|
]);
|
|
2671
|
-
return /* @__PURE__ */
|
|
2828
|
+
return /* @__PURE__ */ jsx23(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx23(
|
|
2672
2829
|
ContextMenuPrimitive.Content,
|
|
2673
2830
|
__spreadValues({
|
|
2674
2831
|
"data-slot": "context-menu-content",
|
|
@@ -2689,7 +2846,7 @@ function ContextMenuItem(_a) {
|
|
|
2689
2846
|
"inset",
|
|
2690
2847
|
"variant"
|
|
2691
2848
|
]);
|
|
2692
|
-
return /* @__PURE__ */
|
|
2849
|
+
return /* @__PURE__ */ jsx23(
|
|
2693
2850
|
ContextMenuPrimitive.Item,
|
|
2694
2851
|
__spreadValues({
|
|
2695
2852
|
"data-slot": "context-menu-item",
|
|
@@ -2712,7 +2869,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
2712
2869
|
"children",
|
|
2713
2870
|
"checked"
|
|
2714
2871
|
]);
|
|
2715
|
-
return /* @__PURE__ */
|
|
2872
|
+
return /* @__PURE__ */ jsxs13(
|
|
2716
2873
|
ContextMenuPrimitive.CheckboxItem,
|
|
2717
2874
|
__spreadProps(__spreadValues({
|
|
2718
2875
|
"data-slot": "context-menu-checkbox-item",
|
|
@@ -2723,7 +2880,7 @@ function ContextMenuCheckboxItem(_a) {
|
|
|
2723
2880
|
checked
|
|
2724
2881
|
}, props), {
|
|
2725
2882
|
children: [
|
|
2726
|
-
/* @__PURE__ */
|
|
2883
|
+
/* @__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
2884
|
children
|
|
2728
2885
|
]
|
|
2729
2886
|
})
|
|
@@ -2737,7 +2894,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
2737
2894
|
"className",
|
|
2738
2895
|
"children"
|
|
2739
2896
|
]);
|
|
2740
|
-
return /* @__PURE__ */
|
|
2897
|
+
return /* @__PURE__ */ jsxs13(
|
|
2741
2898
|
ContextMenuPrimitive.RadioItem,
|
|
2742
2899
|
__spreadProps(__spreadValues({
|
|
2743
2900
|
"data-slot": "context-menu-radio-item",
|
|
@@ -2747,7 +2904,7 @@ function ContextMenuRadioItem(_a) {
|
|
|
2747
2904
|
)
|
|
2748
2905
|
}, props), {
|
|
2749
2906
|
children: [
|
|
2750
|
-
/* @__PURE__ */
|
|
2907
|
+
/* @__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
2908
|
children
|
|
2752
2909
|
]
|
|
2753
2910
|
})
|
|
@@ -2761,7 +2918,7 @@ function ContextMenuLabel(_a) {
|
|
|
2761
2918
|
"className",
|
|
2762
2919
|
"inset"
|
|
2763
2920
|
]);
|
|
2764
|
-
return /* @__PURE__ */
|
|
2921
|
+
return /* @__PURE__ */ jsx23(
|
|
2765
2922
|
ContextMenuPrimitive.Label,
|
|
2766
2923
|
__spreadValues({
|
|
2767
2924
|
"data-slot": "context-menu-label",
|
|
@@ -2779,7 +2936,7 @@ function ContextMenuSeparator(_a) {
|
|
|
2779
2936
|
} = _b, props = __objRest(_b, [
|
|
2780
2937
|
"className"
|
|
2781
2938
|
]);
|
|
2782
|
-
return /* @__PURE__ */
|
|
2939
|
+
return /* @__PURE__ */ jsx23(
|
|
2783
2940
|
ContextMenuPrimitive.Separator,
|
|
2784
2941
|
__spreadValues({
|
|
2785
2942
|
"data-slot": "context-menu-separator",
|
|
@@ -2793,7 +2950,7 @@ function ContextMenuShortcut(_a) {
|
|
|
2793
2950
|
} = _b, props = __objRest(_b, [
|
|
2794
2951
|
"className"
|
|
2795
2952
|
]);
|
|
2796
|
-
return /* @__PURE__ */
|
|
2953
|
+
return /* @__PURE__ */ jsx23(
|
|
2797
2954
|
"span",
|
|
2798
2955
|
__spreadValues({
|
|
2799
2956
|
"data-slot": "context-menu-shortcut",
|
|
@@ -2807,34 +2964,34 @@ function ContextMenuShortcut(_a) {
|
|
|
2807
2964
|
|
|
2808
2965
|
// components/ui/direction.tsx
|
|
2809
2966
|
import { Direction } from "radix-ui";
|
|
2810
|
-
import { jsx as
|
|
2967
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2811
2968
|
function DirectionProvider({
|
|
2812
2969
|
dir,
|
|
2813
2970
|
direction,
|
|
2814
2971
|
children
|
|
2815
2972
|
}) {
|
|
2816
|
-
return /* @__PURE__ */
|
|
2973
|
+
return /* @__PURE__ */ jsx24(Direction.DirectionProvider, { dir: direction != null ? direction : dir, children });
|
|
2817
2974
|
}
|
|
2818
2975
|
var useDirection = Direction.useDirection;
|
|
2819
2976
|
|
|
2820
2977
|
// components/ui/drawer.tsx
|
|
2821
2978
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
2822
|
-
import { jsx as
|
|
2979
|
+
import { jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2823
2980
|
function Drawer(_a) {
|
|
2824
2981
|
var props = __objRest(_a, []);
|
|
2825
|
-
return /* @__PURE__ */
|
|
2982
|
+
return /* @__PURE__ */ jsx25(DrawerPrimitive.Root, __spreadValues({ "data-slot": "drawer" }, props));
|
|
2826
2983
|
}
|
|
2827
2984
|
function DrawerTrigger(_a) {
|
|
2828
2985
|
var props = __objRest(_a, []);
|
|
2829
|
-
return /* @__PURE__ */
|
|
2986
|
+
return /* @__PURE__ */ jsx25(DrawerPrimitive.Trigger, __spreadValues({ "data-slot": "drawer-trigger" }, props));
|
|
2830
2987
|
}
|
|
2831
2988
|
function DrawerPortal(_a) {
|
|
2832
2989
|
var props = __objRest(_a, []);
|
|
2833
|
-
return /* @__PURE__ */
|
|
2990
|
+
return /* @__PURE__ */ jsx25(DrawerPrimitive.Portal, __spreadValues({ "data-slot": "drawer-portal" }, props));
|
|
2834
2991
|
}
|
|
2835
2992
|
function DrawerClose(_a) {
|
|
2836
2993
|
var props = __objRest(_a, []);
|
|
2837
|
-
return /* @__PURE__ */
|
|
2994
|
+
return /* @__PURE__ */ jsx25(DrawerPrimitive.Close, __spreadValues({ "data-slot": "drawer-close" }, props));
|
|
2838
2995
|
}
|
|
2839
2996
|
function DrawerOverlay(_a) {
|
|
2840
2997
|
var _b = _a, {
|
|
@@ -2842,7 +2999,7 @@ function DrawerOverlay(_a) {
|
|
|
2842
2999
|
} = _b, props = __objRest(_b, [
|
|
2843
3000
|
"className"
|
|
2844
3001
|
]);
|
|
2845
|
-
return /* @__PURE__ */
|
|
3002
|
+
return /* @__PURE__ */ jsx25(
|
|
2846
3003
|
DrawerPrimitive.Overlay,
|
|
2847
3004
|
__spreadValues({
|
|
2848
3005
|
"data-slot": "drawer-overlay",
|
|
@@ -2861,9 +3018,9 @@ function DrawerContent(_a) {
|
|
|
2861
3018
|
"className",
|
|
2862
3019
|
"children"
|
|
2863
3020
|
]);
|
|
2864
|
-
return /* @__PURE__ */
|
|
2865
|
-
/* @__PURE__ */
|
|
2866
|
-
/* @__PURE__ */
|
|
3021
|
+
return /* @__PURE__ */ jsxs14(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
3022
|
+
/* @__PURE__ */ jsx25(DrawerOverlay, {}),
|
|
3023
|
+
/* @__PURE__ */ jsxs14(
|
|
2867
3024
|
DrawerPrimitive.Content,
|
|
2868
3025
|
__spreadProps(__spreadValues({
|
|
2869
3026
|
"data-slot": "drawer-content",
|
|
@@ -2877,7 +3034,7 @@ function DrawerContent(_a) {
|
|
|
2877
3034
|
)
|
|
2878
3035
|
}, props), {
|
|
2879
3036
|
children: [
|
|
2880
|
-
/* @__PURE__ */
|
|
3037
|
+
/* @__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
3038
|
children
|
|
2882
3039
|
]
|
|
2883
3040
|
})
|
|
@@ -2886,7 +3043,7 @@ function DrawerContent(_a) {
|
|
|
2886
3043
|
}
|
|
2887
3044
|
function DrawerHeader(_a) {
|
|
2888
3045
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2889
|
-
return /* @__PURE__ */
|
|
3046
|
+
return /* @__PURE__ */ jsx25(
|
|
2890
3047
|
"div",
|
|
2891
3048
|
__spreadValues({
|
|
2892
3049
|
"data-slot": "drawer-header",
|
|
@@ -2899,7 +3056,7 @@ function DrawerHeader(_a) {
|
|
|
2899
3056
|
}
|
|
2900
3057
|
function DrawerFooter(_a) {
|
|
2901
3058
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2902
|
-
return /* @__PURE__ */
|
|
3059
|
+
return /* @__PURE__ */ jsx25(
|
|
2903
3060
|
"div",
|
|
2904
3061
|
__spreadValues({
|
|
2905
3062
|
"data-slot": "drawer-footer",
|
|
@@ -2913,7 +3070,7 @@ function DrawerTitle(_a) {
|
|
|
2913
3070
|
} = _b, props = __objRest(_b, [
|
|
2914
3071
|
"className"
|
|
2915
3072
|
]);
|
|
2916
|
-
return /* @__PURE__ */
|
|
3073
|
+
return /* @__PURE__ */ jsx25(
|
|
2917
3074
|
DrawerPrimitive.Title,
|
|
2918
3075
|
__spreadValues({
|
|
2919
3076
|
"data-slot": "drawer-title",
|
|
@@ -2927,7 +3084,7 @@ function DrawerDescription(_a) {
|
|
|
2927
3084
|
} = _b, props = __objRest(_b, [
|
|
2928
3085
|
"className"
|
|
2929
3086
|
]);
|
|
2930
|
-
return /* @__PURE__ */
|
|
3087
|
+
return /* @__PURE__ */ jsx25(
|
|
2931
3088
|
DrawerPrimitive.Description,
|
|
2932
3089
|
__spreadValues({
|
|
2933
3090
|
"data-slot": "drawer-description",
|
|
@@ -2939,18 +3096,18 @@ function DrawerDescription(_a) {
|
|
|
2939
3096
|
// components/ui/dropdown-menu.tsx
|
|
2940
3097
|
import { CheckIcon as CheckIcon4, ChevronRightIcon as ChevronRightIcon3, CircleIcon as CircleIcon2 } from "lucide-react";
|
|
2941
3098
|
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
2942
|
-
import { jsx as
|
|
3099
|
+
import { jsx as jsx26, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2943
3100
|
function DropdownMenu(_a) {
|
|
2944
3101
|
var props = __objRest(_a, []);
|
|
2945
|
-
return /* @__PURE__ */
|
|
3102
|
+
return /* @__PURE__ */ jsx26(DropdownMenuPrimitive.Root, __spreadValues({ "data-slot": "dropdown-menu" }, props));
|
|
2946
3103
|
}
|
|
2947
3104
|
function DropdownMenuPortal(_a) {
|
|
2948
3105
|
var props = __objRest(_a, []);
|
|
2949
|
-
return /* @__PURE__ */
|
|
3106
|
+
return /* @__PURE__ */ jsx26(DropdownMenuPrimitive.Portal, __spreadValues({ "data-slot": "dropdown-menu-portal" }, props));
|
|
2950
3107
|
}
|
|
2951
3108
|
function DropdownMenuTrigger(_a) {
|
|
2952
3109
|
var props = __objRest(_a, []);
|
|
2953
|
-
return /* @__PURE__ */
|
|
3110
|
+
return /* @__PURE__ */ jsx26(
|
|
2954
3111
|
DropdownMenuPrimitive.Trigger,
|
|
2955
3112
|
__spreadValues({
|
|
2956
3113
|
"data-slot": "dropdown-menu-trigger"
|
|
@@ -2965,7 +3122,7 @@ function DropdownMenuContent(_a) {
|
|
|
2965
3122
|
"className",
|
|
2966
3123
|
"sideOffset"
|
|
2967
3124
|
]);
|
|
2968
|
-
return /* @__PURE__ */
|
|
3125
|
+
return /* @__PURE__ */ jsx26(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx26(
|
|
2969
3126
|
DropdownMenuPrimitive.Content,
|
|
2970
3127
|
__spreadValues({
|
|
2971
3128
|
"data-slot": "dropdown-menu-content",
|
|
@@ -2979,7 +3136,7 @@ function DropdownMenuContent(_a) {
|
|
|
2979
3136
|
}
|
|
2980
3137
|
function DropdownMenuGroup(_a) {
|
|
2981
3138
|
var props = __objRest(_a, []);
|
|
2982
|
-
return /* @__PURE__ */
|
|
3139
|
+
return /* @__PURE__ */ jsx26(DropdownMenuPrimitive.Group, __spreadValues({ "data-slot": "dropdown-menu-group" }, props));
|
|
2983
3140
|
}
|
|
2984
3141
|
function DropdownMenuItem(_a) {
|
|
2985
3142
|
var _b = _a, {
|
|
@@ -2991,7 +3148,7 @@ function DropdownMenuItem(_a) {
|
|
|
2991
3148
|
"inset",
|
|
2992
3149
|
"variant"
|
|
2993
3150
|
]);
|
|
2994
|
-
return /* @__PURE__ */
|
|
3151
|
+
return /* @__PURE__ */ jsx26(
|
|
2995
3152
|
DropdownMenuPrimitive.Item,
|
|
2996
3153
|
__spreadValues({
|
|
2997
3154
|
"data-slot": "dropdown-menu-item",
|
|
@@ -3014,7 +3171,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3014
3171
|
"children",
|
|
3015
3172
|
"checked"
|
|
3016
3173
|
]);
|
|
3017
|
-
return /* @__PURE__ */
|
|
3174
|
+
return /* @__PURE__ */ jsxs15(
|
|
3018
3175
|
DropdownMenuPrimitive.CheckboxItem,
|
|
3019
3176
|
__spreadProps(__spreadValues({
|
|
3020
3177
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
@@ -3025,7 +3182,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3025
3182
|
checked
|
|
3026
3183
|
}, props), {
|
|
3027
3184
|
children: [
|
|
3028
|
-
/* @__PURE__ */
|
|
3185
|
+
/* @__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
3186
|
children
|
|
3030
3187
|
]
|
|
3031
3188
|
})
|
|
@@ -3033,7 +3190,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
3033
3190
|
}
|
|
3034
3191
|
function DropdownMenuRadioGroup(_a) {
|
|
3035
3192
|
var props = __objRest(_a, []);
|
|
3036
|
-
return /* @__PURE__ */
|
|
3193
|
+
return /* @__PURE__ */ jsx26(
|
|
3037
3194
|
DropdownMenuPrimitive.RadioGroup,
|
|
3038
3195
|
__spreadValues({
|
|
3039
3196
|
"data-slot": "dropdown-menu-radio-group"
|
|
@@ -3048,7 +3205,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
3048
3205
|
"className",
|
|
3049
3206
|
"children"
|
|
3050
3207
|
]);
|
|
3051
|
-
return /* @__PURE__ */
|
|
3208
|
+
return /* @__PURE__ */ jsxs15(
|
|
3052
3209
|
DropdownMenuPrimitive.RadioItem,
|
|
3053
3210
|
__spreadProps(__spreadValues({
|
|
3054
3211
|
"data-slot": "dropdown-menu-radio-item",
|
|
@@ -3058,7 +3215,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
3058
3215
|
)
|
|
3059
3216
|
}, props), {
|
|
3060
3217
|
children: [
|
|
3061
|
-
/* @__PURE__ */
|
|
3218
|
+
/* @__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
3219
|
children
|
|
3063
3220
|
]
|
|
3064
3221
|
})
|
|
@@ -3072,7 +3229,7 @@ function DropdownMenuLabel(_a) {
|
|
|
3072
3229
|
"className",
|
|
3073
3230
|
"inset"
|
|
3074
3231
|
]);
|
|
3075
|
-
return /* @__PURE__ */
|
|
3232
|
+
return /* @__PURE__ */ jsx26(
|
|
3076
3233
|
DropdownMenuPrimitive.Label,
|
|
3077
3234
|
__spreadValues({
|
|
3078
3235
|
"data-slot": "dropdown-menu-label",
|
|
@@ -3090,7 +3247,7 @@ function DropdownMenuSeparator(_a) {
|
|
|
3090
3247
|
} = _b, props = __objRest(_b, [
|
|
3091
3248
|
"className"
|
|
3092
3249
|
]);
|
|
3093
|
-
return /* @__PURE__ */
|
|
3250
|
+
return /* @__PURE__ */ jsx26(
|
|
3094
3251
|
DropdownMenuPrimitive.Separator,
|
|
3095
3252
|
__spreadValues({
|
|
3096
3253
|
"data-slot": "dropdown-menu-separator",
|
|
@@ -3104,7 +3261,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
3104
3261
|
} = _b, props = __objRest(_b, [
|
|
3105
3262
|
"className"
|
|
3106
3263
|
]);
|
|
3107
|
-
return /* @__PURE__ */
|
|
3264
|
+
return /* @__PURE__ */ jsx26(
|
|
3108
3265
|
"span",
|
|
3109
3266
|
__spreadValues({
|
|
3110
3267
|
"data-slot": "dropdown-menu-shortcut",
|
|
@@ -3117,7 +3274,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
3117
3274
|
}
|
|
3118
3275
|
function DropdownMenuSub(_a) {
|
|
3119
3276
|
var props = __objRest(_a, []);
|
|
3120
|
-
return /* @__PURE__ */
|
|
3277
|
+
return /* @__PURE__ */ jsx26(DropdownMenuPrimitive.Sub, __spreadValues({ "data-slot": "dropdown-menu-sub" }, props));
|
|
3121
3278
|
}
|
|
3122
3279
|
function DropdownMenuSubTrigger(_a) {
|
|
3123
3280
|
var _b = _a, {
|
|
@@ -3129,7 +3286,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
3129
3286
|
"inset",
|
|
3130
3287
|
"children"
|
|
3131
3288
|
]);
|
|
3132
|
-
return /* @__PURE__ */
|
|
3289
|
+
return /* @__PURE__ */ jsxs15(
|
|
3133
3290
|
DropdownMenuPrimitive.SubTrigger,
|
|
3134
3291
|
__spreadProps(__spreadValues({
|
|
3135
3292
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
@@ -3141,7 +3298,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
3141
3298
|
}, props), {
|
|
3142
3299
|
children: [
|
|
3143
3300
|
children,
|
|
3144
|
-
/* @__PURE__ */
|
|
3301
|
+
/* @__PURE__ */ jsx26(ChevronRightIcon3, { className: "ml-auto size-4" })
|
|
3145
3302
|
]
|
|
3146
3303
|
})
|
|
3147
3304
|
);
|
|
@@ -3152,7 +3309,7 @@ function DropdownMenuSubContent(_a) {
|
|
|
3152
3309
|
} = _b, props = __objRest(_b, [
|
|
3153
3310
|
"className"
|
|
3154
3311
|
]);
|
|
3155
|
-
return /* @__PURE__ */
|
|
3312
|
+
return /* @__PURE__ */ jsx26(
|
|
3156
3313
|
DropdownMenuPrimitive.SubContent,
|
|
3157
3314
|
__spreadValues({
|
|
3158
3315
|
"data-slot": "dropdown-menu-sub-content",
|
|
@@ -3166,10 +3323,10 @@ function DropdownMenuSubContent(_a) {
|
|
|
3166
3323
|
|
|
3167
3324
|
// components/ui/empty.tsx
|
|
3168
3325
|
import { cva as cva6 } from "class-variance-authority";
|
|
3169
|
-
import { jsx as
|
|
3326
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
3170
3327
|
function Empty(_a) {
|
|
3171
3328
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3172
|
-
return /* @__PURE__ */
|
|
3329
|
+
return /* @__PURE__ */ jsx27(
|
|
3173
3330
|
"div",
|
|
3174
3331
|
__spreadValues({
|
|
3175
3332
|
"data-slot": "empty",
|
|
@@ -3182,7 +3339,7 @@ function Empty(_a) {
|
|
|
3182
3339
|
}
|
|
3183
3340
|
function EmptyHeader(_a) {
|
|
3184
3341
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3185
|
-
return /* @__PURE__ */
|
|
3342
|
+
return /* @__PURE__ */ jsx27(
|
|
3186
3343
|
"div",
|
|
3187
3344
|
__spreadValues({
|
|
3188
3345
|
"data-slot": "empty-header",
|
|
@@ -3215,7 +3372,7 @@ function EmptyMedia(_a) {
|
|
|
3215
3372
|
"className",
|
|
3216
3373
|
"variant"
|
|
3217
3374
|
]);
|
|
3218
|
-
return /* @__PURE__ */
|
|
3375
|
+
return /* @__PURE__ */ jsx27(
|
|
3219
3376
|
"div",
|
|
3220
3377
|
__spreadValues({
|
|
3221
3378
|
"data-slot": "empty-icon",
|
|
@@ -3226,7 +3383,7 @@ function EmptyMedia(_a) {
|
|
|
3226
3383
|
}
|
|
3227
3384
|
function EmptyTitle(_a) {
|
|
3228
3385
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3229
|
-
return /* @__PURE__ */
|
|
3386
|
+
return /* @__PURE__ */ jsx27(
|
|
3230
3387
|
"div",
|
|
3231
3388
|
__spreadValues({
|
|
3232
3389
|
"data-slot": "empty-title",
|
|
@@ -3236,7 +3393,7 @@ function EmptyTitle(_a) {
|
|
|
3236
3393
|
}
|
|
3237
3394
|
function EmptyDescription(_a) {
|
|
3238
3395
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3239
|
-
return /* @__PURE__ */
|
|
3396
|
+
return /* @__PURE__ */ jsx27(
|
|
3240
3397
|
"div",
|
|
3241
3398
|
__spreadValues({
|
|
3242
3399
|
"data-slot": "empty-description",
|
|
@@ -3249,7 +3406,7 @@ function EmptyDescription(_a) {
|
|
|
3249
3406
|
}
|
|
3250
3407
|
function EmptyContent(_a) {
|
|
3251
3408
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3252
|
-
return /* @__PURE__ */
|
|
3409
|
+
return /* @__PURE__ */ jsx27(
|
|
3253
3410
|
"div",
|
|
3254
3411
|
__spreadValues({
|
|
3255
3412
|
"data-slot": "empty-content",
|
|
@@ -3267,14 +3424,14 @@ import { cva as cva7 } from "class-variance-authority";
|
|
|
3267
3424
|
|
|
3268
3425
|
// components/ui/label.tsx
|
|
3269
3426
|
import { Label as LabelPrimitive } from "radix-ui";
|
|
3270
|
-
import { jsx as
|
|
3427
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3271
3428
|
function Label(_a) {
|
|
3272
3429
|
var _b = _a, {
|
|
3273
3430
|
className
|
|
3274
3431
|
} = _b, props = __objRest(_b, [
|
|
3275
3432
|
"className"
|
|
3276
3433
|
]);
|
|
3277
|
-
return /* @__PURE__ */
|
|
3434
|
+
return /* @__PURE__ */ jsx28(
|
|
3278
3435
|
LabelPrimitive.Root,
|
|
3279
3436
|
__spreadValues({
|
|
3280
3437
|
"data-slot": "label",
|
|
@@ -3288,7 +3445,7 @@ function Label(_a) {
|
|
|
3288
3445
|
|
|
3289
3446
|
// components/ui/separator.tsx
|
|
3290
3447
|
import { Separator as SeparatorPrimitive } from "radix-ui";
|
|
3291
|
-
import { jsx as
|
|
3448
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
3292
3449
|
function Separator(_a) {
|
|
3293
3450
|
var _b = _a, {
|
|
3294
3451
|
className,
|
|
@@ -3299,7 +3456,7 @@ function Separator(_a) {
|
|
|
3299
3456
|
"orientation",
|
|
3300
3457
|
"decorative"
|
|
3301
3458
|
]);
|
|
3302
|
-
return /* @__PURE__ */
|
|
3459
|
+
return /* @__PURE__ */ jsx29(
|
|
3303
3460
|
SeparatorPrimitive.Root,
|
|
3304
3461
|
__spreadValues({
|
|
3305
3462
|
"data-slot": "separator",
|
|
@@ -3314,10 +3471,10 @@ function Separator(_a) {
|
|
|
3314
3471
|
}
|
|
3315
3472
|
|
|
3316
3473
|
// components/ui/field.tsx
|
|
3317
|
-
import { jsx as
|
|
3474
|
+
import { jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3318
3475
|
function FieldSet(_a) {
|
|
3319
3476
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3320
|
-
return /* @__PURE__ */
|
|
3477
|
+
return /* @__PURE__ */ jsx30(
|
|
3321
3478
|
"fieldset",
|
|
3322
3479
|
__spreadValues({
|
|
3323
3480
|
"data-slot": "field-set",
|
|
@@ -3337,7 +3494,7 @@ function FieldLegend(_a) {
|
|
|
3337
3494
|
"className",
|
|
3338
3495
|
"variant"
|
|
3339
3496
|
]);
|
|
3340
|
-
return /* @__PURE__ */
|
|
3497
|
+
return /* @__PURE__ */ jsx30(
|
|
3341
3498
|
"legend",
|
|
3342
3499
|
__spreadValues({
|
|
3343
3500
|
"data-slot": "field-legend",
|
|
@@ -3353,7 +3510,7 @@ function FieldLegend(_a) {
|
|
|
3353
3510
|
}
|
|
3354
3511
|
function FieldGroup(_a) {
|
|
3355
3512
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3356
|
-
return /* @__PURE__ */
|
|
3513
|
+
return /* @__PURE__ */ jsx30(
|
|
3357
3514
|
"div",
|
|
3358
3515
|
__spreadValues({
|
|
3359
3516
|
"data-slot": "field-group",
|
|
@@ -3395,7 +3552,7 @@ function Field(_a) {
|
|
|
3395
3552
|
"className",
|
|
3396
3553
|
"orientation"
|
|
3397
3554
|
]);
|
|
3398
|
-
return /* @__PURE__ */
|
|
3555
|
+
return /* @__PURE__ */ jsx30(
|
|
3399
3556
|
"div",
|
|
3400
3557
|
__spreadValues({
|
|
3401
3558
|
role: "group",
|
|
@@ -3407,7 +3564,7 @@ function Field(_a) {
|
|
|
3407
3564
|
}
|
|
3408
3565
|
function FieldContent(_a) {
|
|
3409
3566
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3410
|
-
return /* @__PURE__ */
|
|
3567
|
+
return /* @__PURE__ */ jsx30(
|
|
3411
3568
|
"div",
|
|
3412
3569
|
__spreadValues({
|
|
3413
3570
|
"data-slot": "field-content",
|
|
@@ -3424,7 +3581,7 @@ function FieldLabel(_a) {
|
|
|
3424
3581
|
} = _b, props = __objRest(_b, [
|
|
3425
3582
|
"className"
|
|
3426
3583
|
]);
|
|
3427
|
-
return /* @__PURE__ */
|
|
3584
|
+
return /* @__PURE__ */ jsx30(
|
|
3428
3585
|
Label,
|
|
3429
3586
|
__spreadValues({
|
|
3430
3587
|
"data-slot": "field-label",
|
|
@@ -3439,7 +3596,7 @@ function FieldLabel(_a) {
|
|
|
3439
3596
|
}
|
|
3440
3597
|
function FieldTitle(_a) {
|
|
3441
3598
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3442
|
-
return /* @__PURE__ */
|
|
3599
|
+
return /* @__PURE__ */ jsx30(
|
|
3443
3600
|
"div",
|
|
3444
3601
|
__spreadValues({
|
|
3445
3602
|
"data-slot": "field-label",
|
|
@@ -3452,7 +3609,7 @@ function FieldTitle(_a) {
|
|
|
3452
3609
|
}
|
|
3453
3610
|
function FieldDescription(_a) {
|
|
3454
3611
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3455
|
-
return /* @__PURE__ */
|
|
3612
|
+
return /* @__PURE__ */ jsx30(
|
|
3456
3613
|
"p",
|
|
3457
3614
|
__spreadValues({
|
|
3458
3615
|
"data-slot": "field-description",
|
|
@@ -3473,7 +3630,7 @@ function FieldSeparator(_a) {
|
|
|
3473
3630
|
"children",
|
|
3474
3631
|
"className"
|
|
3475
3632
|
]);
|
|
3476
|
-
return /* @__PURE__ */
|
|
3633
|
+
return /* @__PURE__ */ jsxs16(
|
|
3477
3634
|
"div",
|
|
3478
3635
|
__spreadProps(__spreadValues({
|
|
3479
3636
|
"data-slot": "field-separator",
|
|
@@ -3484,8 +3641,8 @@ function FieldSeparator(_a) {
|
|
|
3484
3641
|
)
|
|
3485
3642
|
}, props), {
|
|
3486
3643
|
children: [
|
|
3487
|
-
/* @__PURE__ */
|
|
3488
|
-
children && /* @__PURE__ */
|
|
3644
|
+
/* @__PURE__ */ jsx30(Separator, { className: "absolute inset-0 top-1/2" }),
|
|
3645
|
+
children && /* @__PURE__ */ jsx30(
|
|
3489
3646
|
"span",
|
|
3490
3647
|
{
|
|
3491
3648
|
className: "relative mx-auto block w-fit bg-prominent px-2 text-on-subtle",
|
|
@@ -3521,14 +3678,14 @@ function FieldError(_a) {
|
|
|
3521
3678
|
if ((uniqueErrors == null ? void 0 : uniqueErrors.length) == 1) {
|
|
3522
3679
|
return (_a2 = uniqueErrors[0]) == null ? void 0 : _a2.message;
|
|
3523
3680
|
}
|
|
3524
|
-
return /* @__PURE__ */
|
|
3525
|
-
(error, index) => (error == null ? void 0 : error.message) && /* @__PURE__ */
|
|
3681
|
+
return /* @__PURE__ */ jsx30("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
|
|
3682
|
+
(error, index) => (error == null ? void 0 : error.message) && /* @__PURE__ */ jsx30("li", { children: error.message }, index)
|
|
3526
3683
|
) });
|
|
3527
3684
|
}, [children, errors]);
|
|
3528
3685
|
if (!content) {
|
|
3529
3686
|
return null;
|
|
3530
3687
|
}
|
|
3531
|
-
return /* @__PURE__ */
|
|
3688
|
+
return /* @__PURE__ */ jsx30(
|
|
3532
3689
|
"div",
|
|
3533
3690
|
__spreadProps(__spreadValues({
|
|
3534
3691
|
role: "alert",
|
|
@@ -3541,7 +3698,7 @@ function FieldError(_a) {
|
|
|
3541
3698
|
}
|
|
3542
3699
|
|
|
3543
3700
|
// components/ui/form.tsx
|
|
3544
|
-
import * as
|
|
3701
|
+
import * as React8 from "react";
|
|
3545
3702
|
import { Slot as Slot4 } from "radix-ui";
|
|
3546
3703
|
import {
|
|
3547
3704
|
Controller,
|
|
@@ -3549,18 +3706,18 @@ import {
|
|
|
3549
3706
|
useFormContext,
|
|
3550
3707
|
useFormState
|
|
3551
3708
|
} from "react-hook-form";
|
|
3552
|
-
import { jsx as
|
|
3709
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
3553
3710
|
var Form = FormProvider;
|
|
3554
|
-
var FormFieldContext =
|
|
3711
|
+
var FormFieldContext = React8.createContext(
|
|
3555
3712
|
{}
|
|
3556
3713
|
);
|
|
3557
3714
|
var FormField = (_a) => {
|
|
3558
3715
|
var props = __objRest(_a, []);
|
|
3559
|
-
return /* @__PURE__ */
|
|
3716
|
+
return /* @__PURE__ */ jsx31(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx31(Controller, __spreadValues({}, props)) });
|
|
3560
3717
|
};
|
|
3561
3718
|
var useFormField = () => {
|
|
3562
|
-
const fieldContext =
|
|
3563
|
-
const itemContext =
|
|
3719
|
+
const fieldContext = React8.useContext(FormFieldContext);
|
|
3720
|
+
const itemContext = React8.useContext(FormItemContext);
|
|
3564
3721
|
const { getFieldState } = useFormContext();
|
|
3565
3722
|
const formState = useFormState({ name: fieldContext.name });
|
|
3566
3723
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
@@ -3576,13 +3733,13 @@ var useFormField = () => {
|
|
|
3576
3733
|
formMessageId: `${id}-form-item-message`
|
|
3577
3734
|
}, fieldState);
|
|
3578
3735
|
};
|
|
3579
|
-
var FormItemContext =
|
|
3736
|
+
var FormItemContext = React8.createContext(
|
|
3580
3737
|
{}
|
|
3581
3738
|
);
|
|
3582
3739
|
function FormItem(_a) {
|
|
3583
3740
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3584
|
-
const id =
|
|
3585
|
-
return /* @__PURE__ */
|
|
3741
|
+
const id = React8.useId();
|
|
3742
|
+
return /* @__PURE__ */ jsx31(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx31(
|
|
3586
3743
|
"div",
|
|
3587
3744
|
__spreadValues({
|
|
3588
3745
|
"data-slot": "form-item",
|
|
@@ -3597,7 +3754,7 @@ function FormLabel(_a) {
|
|
|
3597
3754
|
"className"
|
|
3598
3755
|
]);
|
|
3599
3756
|
const { error, formItemId } = useFormField();
|
|
3600
|
-
return /* @__PURE__ */
|
|
3757
|
+
return /* @__PURE__ */ jsx31(
|
|
3601
3758
|
Label,
|
|
3602
3759
|
__spreadValues({
|
|
3603
3760
|
"data-slot": "form-label",
|
|
@@ -3610,7 +3767,7 @@ function FormLabel(_a) {
|
|
|
3610
3767
|
function FormControl(_a) {
|
|
3611
3768
|
var props = __objRest(_a, []);
|
|
3612
3769
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
3613
|
-
return /* @__PURE__ */
|
|
3770
|
+
return /* @__PURE__ */ jsx31(
|
|
3614
3771
|
Slot4.Root,
|
|
3615
3772
|
__spreadValues({
|
|
3616
3773
|
"data-slot": "form-control",
|
|
@@ -3623,7 +3780,7 @@ function FormControl(_a) {
|
|
|
3623
3780
|
function FormDescription(_a) {
|
|
3624
3781
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3625
3782
|
const { formDescriptionId } = useFormField();
|
|
3626
|
-
return /* @__PURE__ */
|
|
3783
|
+
return /* @__PURE__ */ jsx31(
|
|
3627
3784
|
"p",
|
|
3628
3785
|
__spreadValues({
|
|
3629
3786
|
"data-slot": "form-description",
|
|
@@ -3640,7 +3797,7 @@ function FormMessage(_a) {
|
|
|
3640
3797
|
if (!body) {
|
|
3641
3798
|
return null;
|
|
3642
3799
|
}
|
|
3643
|
-
return /* @__PURE__ */
|
|
3800
|
+
return /* @__PURE__ */ jsx31(
|
|
3644
3801
|
"p",
|
|
3645
3802
|
__spreadProps(__spreadValues({
|
|
3646
3803
|
"data-slot": "form-message",
|
|
@@ -3654,14 +3811,14 @@ function FormMessage(_a) {
|
|
|
3654
3811
|
|
|
3655
3812
|
// components/ui/hover-card.tsx
|
|
3656
3813
|
import { HoverCard as HoverCardPrimitive } from "radix-ui";
|
|
3657
|
-
import { jsx as
|
|
3814
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
3658
3815
|
function HoverCard(_a) {
|
|
3659
3816
|
var props = __objRest(_a, []);
|
|
3660
|
-
return /* @__PURE__ */
|
|
3817
|
+
return /* @__PURE__ */ jsx32(HoverCardPrimitive.Root, __spreadValues({ "data-slot": "hover-card" }, props));
|
|
3661
3818
|
}
|
|
3662
3819
|
function HoverCardTrigger(_a) {
|
|
3663
3820
|
var props = __objRest(_a, []);
|
|
3664
|
-
return /* @__PURE__ */
|
|
3821
|
+
return /* @__PURE__ */ jsx32(HoverCardPrimitive.Trigger, __spreadValues({ "data-slot": "hover-card-trigger" }, props));
|
|
3665
3822
|
}
|
|
3666
3823
|
function HoverCardContent(_a) {
|
|
3667
3824
|
var _b = _a, {
|
|
@@ -3673,7 +3830,7 @@ function HoverCardContent(_a) {
|
|
|
3673
3830
|
"align",
|
|
3674
3831
|
"sideOffset"
|
|
3675
3832
|
]);
|
|
3676
|
-
return /* @__PURE__ */
|
|
3833
|
+
return /* @__PURE__ */ jsx32(HoverCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsx32(
|
|
3677
3834
|
HoverCardPrimitive.Content,
|
|
3678
3835
|
__spreadValues({
|
|
3679
3836
|
"data-slot": "hover-card-content",
|
|
@@ -3688,10 +3845,10 @@ function HoverCardContent(_a) {
|
|
|
3688
3845
|
}
|
|
3689
3846
|
|
|
3690
3847
|
// components/ui/input-otp.tsx
|
|
3691
|
-
import * as
|
|
3848
|
+
import * as React9 from "react";
|
|
3692
3849
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
3693
3850
|
import { MinusIcon } from "lucide-react";
|
|
3694
|
-
import { jsx as
|
|
3851
|
+
import { jsx as jsx33, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3695
3852
|
function InputOTP(_a) {
|
|
3696
3853
|
var _b = _a, {
|
|
3697
3854
|
className,
|
|
@@ -3700,7 +3857,7 @@ function InputOTP(_a) {
|
|
|
3700
3857
|
"className",
|
|
3701
3858
|
"containerClassName"
|
|
3702
3859
|
]);
|
|
3703
|
-
return /* @__PURE__ */
|
|
3860
|
+
return /* @__PURE__ */ jsx33(
|
|
3704
3861
|
OTPInput,
|
|
3705
3862
|
__spreadValues({
|
|
3706
3863
|
"data-slot": "input-otp",
|
|
@@ -3714,7 +3871,7 @@ function InputOTP(_a) {
|
|
|
3714
3871
|
}
|
|
3715
3872
|
function InputOTPGroup(_a) {
|
|
3716
3873
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3717
|
-
return /* @__PURE__ */
|
|
3874
|
+
return /* @__PURE__ */ jsx33(
|
|
3718
3875
|
"div",
|
|
3719
3876
|
__spreadValues({
|
|
3720
3877
|
"data-slot": "input-otp-group",
|
|
@@ -3731,9 +3888,9 @@ function InputOTPSlot(_a) {
|
|
|
3731
3888
|
"className"
|
|
3732
3889
|
]);
|
|
3733
3890
|
var _a2;
|
|
3734
|
-
const inputOTPContext =
|
|
3891
|
+
const inputOTPContext = React9.useContext(OTPInputContext);
|
|
3735
3892
|
const { char, hasFakeCaret, isActive } = (_a2 = inputOTPContext == null ? void 0 : inputOTPContext.slots[index]) != null ? _a2 : {};
|
|
3736
|
-
return /* @__PURE__ */
|
|
3893
|
+
return /* @__PURE__ */ jsxs17(
|
|
3737
3894
|
"div",
|
|
3738
3895
|
__spreadProps(__spreadValues({
|
|
3739
3896
|
"data-slot": "input-otp-slot",
|
|
@@ -3745,23 +3902,23 @@ function InputOTPSlot(_a) {
|
|
|
3745
3902
|
}, props), {
|
|
3746
3903
|
children: [
|
|
3747
3904
|
char,
|
|
3748
|
-
hasFakeCaret && /* @__PURE__ */
|
|
3905
|
+
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
3906
|
]
|
|
3750
3907
|
})
|
|
3751
3908
|
);
|
|
3752
3909
|
}
|
|
3753
3910
|
function InputOTPSeparator(_a) {
|
|
3754
3911
|
var props = __objRest(_a, []);
|
|
3755
|
-
return /* @__PURE__ */
|
|
3912
|
+
return /* @__PURE__ */ jsx33("div", __spreadProps(__spreadValues({ "data-slot": "input-otp-separator", role: "separator" }, props), { children: /* @__PURE__ */ jsx33(MinusIcon, {}) }));
|
|
3756
3913
|
}
|
|
3757
3914
|
|
|
3758
3915
|
// components/ui/item.tsx
|
|
3759
3916
|
import { cva as cva8 } from "class-variance-authority";
|
|
3760
3917
|
import { Slot as Slot5 } from "radix-ui";
|
|
3761
|
-
import { jsx as
|
|
3918
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3762
3919
|
function ItemGroup(_a) {
|
|
3763
3920
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3764
|
-
return /* @__PURE__ */
|
|
3921
|
+
return /* @__PURE__ */ jsx34(
|
|
3765
3922
|
"div",
|
|
3766
3923
|
__spreadValues({
|
|
3767
3924
|
role: "list",
|
|
@@ -3776,7 +3933,7 @@ function ItemSeparator(_a) {
|
|
|
3776
3933
|
} = _b, props = __objRest(_b, [
|
|
3777
3934
|
"className"
|
|
3778
3935
|
]);
|
|
3779
|
-
return /* @__PURE__ */
|
|
3936
|
+
return /* @__PURE__ */ jsx34(
|
|
3780
3937
|
Separator,
|
|
3781
3938
|
__spreadValues({
|
|
3782
3939
|
"data-slot": "item-separator",
|
|
@@ -3818,7 +3975,7 @@ function Item(_a) {
|
|
|
3818
3975
|
"asChild"
|
|
3819
3976
|
]);
|
|
3820
3977
|
const Comp = asChild ? Slot5.Root : "div";
|
|
3821
|
-
return /* @__PURE__ */
|
|
3978
|
+
return /* @__PURE__ */ jsx34(
|
|
3822
3979
|
Comp,
|
|
3823
3980
|
__spreadValues({
|
|
3824
3981
|
"data-slot": "item",
|
|
@@ -3851,7 +4008,7 @@ function ItemMedia(_a) {
|
|
|
3851
4008
|
"className",
|
|
3852
4009
|
"variant"
|
|
3853
4010
|
]);
|
|
3854
|
-
return /* @__PURE__ */
|
|
4011
|
+
return /* @__PURE__ */ jsx34(
|
|
3855
4012
|
"div",
|
|
3856
4013
|
__spreadValues({
|
|
3857
4014
|
"data-slot": "item-media",
|
|
@@ -3862,7 +4019,7 @@ function ItemMedia(_a) {
|
|
|
3862
4019
|
}
|
|
3863
4020
|
function ItemContent(_a) {
|
|
3864
4021
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3865
|
-
return /* @__PURE__ */
|
|
4022
|
+
return /* @__PURE__ */ jsx34(
|
|
3866
4023
|
"div",
|
|
3867
4024
|
__spreadValues({
|
|
3868
4025
|
"data-slot": "item-content",
|
|
@@ -3875,7 +4032,7 @@ function ItemContent(_a) {
|
|
|
3875
4032
|
}
|
|
3876
4033
|
function ItemTitle(_a) {
|
|
3877
4034
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3878
|
-
return /* @__PURE__ */
|
|
4035
|
+
return /* @__PURE__ */ jsx34(
|
|
3879
4036
|
"div",
|
|
3880
4037
|
__spreadValues({
|
|
3881
4038
|
"data-slot": "item-title",
|
|
@@ -3888,7 +4045,7 @@ function ItemTitle(_a) {
|
|
|
3888
4045
|
}
|
|
3889
4046
|
function ItemDescription(_a) {
|
|
3890
4047
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3891
|
-
return /* @__PURE__ */
|
|
4048
|
+
return /* @__PURE__ */ jsx34(
|
|
3892
4049
|
"p",
|
|
3893
4050
|
__spreadValues({
|
|
3894
4051
|
"data-slot": "item-description",
|
|
@@ -3902,7 +4059,7 @@ function ItemDescription(_a) {
|
|
|
3902
4059
|
}
|
|
3903
4060
|
function ItemActions(_a) {
|
|
3904
4061
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3905
|
-
return /* @__PURE__ */
|
|
4062
|
+
return /* @__PURE__ */ jsx34(
|
|
3906
4063
|
"div",
|
|
3907
4064
|
__spreadValues({
|
|
3908
4065
|
"data-slot": "item-actions",
|
|
@@ -3912,7 +4069,7 @@ function ItemActions(_a) {
|
|
|
3912
4069
|
}
|
|
3913
4070
|
function ItemHeader(_a) {
|
|
3914
4071
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3915
|
-
return /* @__PURE__ */
|
|
4072
|
+
return /* @__PURE__ */ jsx34(
|
|
3916
4073
|
"div",
|
|
3917
4074
|
__spreadValues({
|
|
3918
4075
|
"data-slot": "item-header",
|
|
@@ -3925,7 +4082,7 @@ function ItemHeader(_a) {
|
|
|
3925
4082
|
}
|
|
3926
4083
|
function ItemFooter(_a) {
|
|
3927
4084
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3928
|
-
return /* @__PURE__ */
|
|
4085
|
+
return /* @__PURE__ */ jsx34(
|
|
3929
4086
|
"div",
|
|
3930
4087
|
__spreadValues({
|
|
3931
4088
|
"data-slot": "item-footer",
|
|
@@ -3938,10 +4095,10 @@ function ItemFooter(_a) {
|
|
|
3938
4095
|
}
|
|
3939
4096
|
|
|
3940
4097
|
// components/ui/kbd.tsx
|
|
3941
|
-
import { jsx as
|
|
4098
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3942
4099
|
function Kbd(_a) {
|
|
3943
4100
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3944
|
-
return /* @__PURE__ */
|
|
4101
|
+
return /* @__PURE__ */ jsx35(
|
|
3945
4102
|
"kbd",
|
|
3946
4103
|
__spreadValues({
|
|
3947
4104
|
"data-slot": "kbd",
|
|
@@ -3956,7 +4113,7 @@ function Kbd(_a) {
|
|
|
3956
4113
|
}
|
|
3957
4114
|
function KbdGroup(_a) {
|
|
3958
4115
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3959
|
-
return /* @__PURE__ */
|
|
4116
|
+
return /* @__PURE__ */ jsx35(
|
|
3960
4117
|
"kbd",
|
|
3961
4118
|
__spreadValues({
|
|
3962
4119
|
"data-slot": "kbd-group",
|
|
@@ -3968,7 +4125,7 @@ function KbdGroup(_a) {
|
|
|
3968
4125
|
// components/ui/link.tsx
|
|
3969
4126
|
import { cva as cva9 } from "class-variance-authority";
|
|
3970
4127
|
import { Slot as Slot6 } from "radix-ui";
|
|
3971
|
-
import { jsx as
|
|
4128
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3972
4129
|
var linkVariants = cva9(
|
|
3973
4130
|
"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
4131
|
{
|
|
@@ -3995,7 +4152,7 @@ function Link(_a) {
|
|
|
3995
4152
|
"asChild"
|
|
3996
4153
|
]);
|
|
3997
4154
|
const Comp = asChild ? Slot6.Root : "a";
|
|
3998
|
-
return /* @__PURE__ */
|
|
4155
|
+
return /* @__PURE__ */ jsx36(
|
|
3999
4156
|
Comp,
|
|
4000
4157
|
__spreadValues({
|
|
4001
4158
|
"data-slot": "link",
|
|
@@ -4008,14 +4165,14 @@ function Link(_a) {
|
|
|
4008
4165
|
// components/ui/menubar.tsx
|
|
4009
4166
|
import { CheckIcon as CheckIcon5, ChevronRightIcon as ChevronRightIcon4, CircleIcon as CircleIcon3 } from "lucide-react";
|
|
4010
4167
|
import { Menubar as MenubarPrimitive } from "radix-ui";
|
|
4011
|
-
import { jsx as
|
|
4168
|
+
import { jsx as jsx37, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4012
4169
|
function Menubar(_a) {
|
|
4013
4170
|
var _b = _a, {
|
|
4014
4171
|
className
|
|
4015
4172
|
} = _b, props = __objRest(_b, [
|
|
4016
4173
|
"className"
|
|
4017
4174
|
]);
|
|
4018
|
-
return /* @__PURE__ */
|
|
4175
|
+
return /* @__PURE__ */ jsx37(
|
|
4019
4176
|
MenubarPrimitive.Root,
|
|
4020
4177
|
__spreadValues({
|
|
4021
4178
|
"data-slot": "menubar",
|
|
@@ -4028,19 +4185,19 @@ function Menubar(_a) {
|
|
|
4028
4185
|
}
|
|
4029
4186
|
function MenubarMenu(_a) {
|
|
4030
4187
|
var props = __objRest(_a, []);
|
|
4031
|
-
return /* @__PURE__ */
|
|
4188
|
+
return /* @__PURE__ */ jsx37(MenubarPrimitive.Menu, __spreadValues({ "data-slot": "menubar-menu" }, props));
|
|
4032
4189
|
}
|
|
4033
4190
|
function MenubarGroup(_a) {
|
|
4034
4191
|
var props = __objRest(_a, []);
|
|
4035
|
-
return /* @__PURE__ */
|
|
4192
|
+
return /* @__PURE__ */ jsx37(MenubarPrimitive.Group, __spreadValues({ "data-slot": "menubar-group" }, props));
|
|
4036
4193
|
}
|
|
4037
4194
|
function MenubarPortal(_a) {
|
|
4038
4195
|
var props = __objRest(_a, []);
|
|
4039
|
-
return /* @__PURE__ */
|
|
4196
|
+
return /* @__PURE__ */ jsx37(MenubarPrimitive.Portal, __spreadValues({ "data-slot": "menubar-portal" }, props));
|
|
4040
4197
|
}
|
|
4041
4198
|
function MenubarRadioGroup(_a) {
|
|
4042
4199
|
var props = __objRest(_a, []);
|
|
4043
|
-
return /* @__PURE__ */
|
|
4200
|
+
return /* @__PURE__ */ jsx37(MenubarPrimitive.RadioGroup, __spreadValues({ "data-slot": "menubar-radio-group" }, props));
|
|
4044
4201
|
}
|
|
4045
4202
|
function MenubarTrigger(_a) {
|
|
4046
4203
|
var _b = _a, {
|
|
@@ -4048,7 +4205,7 @@ function MenubarTrigger(_a) {
|
|
|
4048
4205
|
} = _b, props = __objRest(_b, [
|
|
4049
4206
|
"className"
|
|
4050
4207
|
]);
|
|
4051
|
-
return /* @__PURE__ */
|
|
4208
|
+
return /* @__PURE__ */ jsx37(
|
|
4052
4209
|
MenubarPrimitive.Trigger,
|
|
4053
4210
|
__spreadValues({
|
|
4054
4211
|
"data-slot": "menubar-trigger",
|
|
@@ -4071,7 +4228,7 @@ function MenubarContent(_a) {
|
|
|
4071
4228
|
"alignOffset",
|
|
4072
4229
|
"sideOffset"
|
|
4073
4230
|
]);
|
|
4074
|
-
return /* @__PURE__ */
|
|
4231
|
+
return /* @__PURE__ */ jsx37(MenubarPortal, { children: /* @__PURE__ */ jsx37(
|
|
4075
4232
|
MenubarPrimitive.Content,
|
|
4076
4233
|
__spreadValues({
|
|
4077
4234
|
"data-slot": "menubar-content",
|
|
@@ -4095,7 +4252,7 @@ function MenubarItem(_a) {
|
|
|
4095
4252
|
"inset",
|
|
4096
4253
|
"variant"
|
|
4097
4254
|
]);
|
|
4098
|
-
return /* @__PURE__ */
|
|
4255
|
+
return /* @__PURE__ */ jsx37(
|
|
4099
4256
|
MenubarPrimitive.Item,
|
|
4100
4257
|
__spreadValues({
|
|
4101
4258
|
"data-slot": "menubar-item",
|
|
@@ -4118,7 +4275,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
4118
4275
|
"children",
|
|
4119
4276
|
"checked"
|
|
4120
4277
|
]);
|
|
4121
|
-
return /* @__PURE__ */
|
|
4278
|
+
return /* @__PURE__ */ jsxs18(
|
|
4122
4279
|
MenubarPrimitive.CheckboxItem,
|
|
4123
4280
|
__spreadProps(__spreadValues({
|
|
4124
4281
|
"data-slot": "menubar-checkbox-item",
|
|
@@ -4129,7 +4286,7 @@ function MenubarCheckboxItem(_a) {
|
|
|
4129
4286
|
checked
|
|
4130
4287
|
}, props), {
|
|
4131
4288
|
children: [
|
|
4132
|
-
/* @__PURE__ */
|
|
4289
|
+
/* @__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
4290
|
children
|
|
4134
4291
|
]
|
|
4135
4292
|
})
|
|
@@ -4143,7 +4300,7 @@ function MenubarRadioItem(_a) {
|
|
|
4143
4300
|
"className",
|
|
4144
4301
|
"children"
|
|
4145
4302
|
]);
|
|
4146
|
-
return /* @__PURE__ */
|
|
4303
|
+
return /* @__PURE__ */ jsxs18(
|
|
4147
4304
|
MenubarPrimitive.RadioItem,
|
|
4148
4305
|
__spreadProps(__spreadValues({
|
|
4149
4306
|
"data-slot": "menubar-radio-item",
|
|
@@ -4153,7 +4310,7 @@ function MenubarRadioItem(_a) {
|
|
|
4153
4310
|
)
|
|
4154
4311
|
}, props), {
|
|
4155
4312
|
children: [
|
|
4156
|
-
/* @__PURE__ */
|
|
4313
|
+
/* @__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
4314
|
children
|
|
4158
4315
|
]
|
|
4159
4316
|
})
|
|
@@ -4167,7 +4324,7 @@ function MenubarLabel(_a) {
|
|
|
4167
4324
|
"className",
|
|
4168
4325
|
"inset"
|
|
4169
4326
|
]);
|
|
4170
|
-
return /* @__PURE__ */
|
|
4327
|
+
return /* @__PURE__ */ jsx37(
|
|
4171
4328
|
MenubarPrimitive.Label,
|
|
4172
4329
|
__spreadValues({
|
|
4173
4330
|
"data-slot": "menubar-label",
|
|
@@ -4185,7 +4342,7 @@ function MenubarSeparator(_a) {
|
|
|
4185
4342
|
} = _b, props = __objRest(_b, [
|
|
4186
4343
|
"className"
|
|
4187
4344
|
]);
|
|
4188
|
-
return /* @__PURE__ */
|
|
4345
|
+
return /* @__PURE__ */ jsx37(
|
|
4189
4346
|
MenubarPrimitive.Separator,
|
|
4190
4347
|
__spreadValues({
|
|
4191
4348
|
"data-slot": "menubar-separator",
|
|
@@ -4199,7 +4356,7 @@ function MenubarShortcut(_a) {
|
|
|
4199
4356
|
} = _b, props = __objRest(_b, [
|
|
4200
4357
|
"className"
|
|
4201
4358
|
]);
|
|
4202
|
-
return /* @__PURE__ */
|
|
4359
|
+
return /* @__PURE__ */ jsx37(
|
|
4203
4360
|
"span",
|
|
4204
4361
|
__spreadValues({
|
|
4205
4362
|
"data-slot": "menubar-shortcut",
|
|
@@ -4212,7 +4369,7 @@ function MenubarShortcut(_a) {
|
|
|
4212
4369
|
}
|
|
4213
4370
|
function MenubarSub(_a) {
|
|
4214
4371
|
var props = __objRest(_a, []);
|
|
4215
|
-
return /* @__PURE__ */
|
|
4372
|
+
return /* @__PURE__ */ jsx37(MenubarPrimitive.Sub, __spreadValues({ "data-slot": "menubar-sub" }, props));
|
|
4216
4373
|
}
|
|
4217
4374
|
function MenubarSubTrigger(_a) {
|
|
4218
4375
|
var _b = _a, {
|
|
@@ -4224,7 +4381,7 @@ function MenubarSubTrigger(_a) {
|
|
|
4224
4381
|
"inset",
|
|
4225
4382
|
"children"
|
|
4226
4383
|
]);
|
|
4227
|
-
return /* @__PURE__ */
|
|
4384
|
+
return /* @__PURE__ */ jsxs18(
|
|
4228
4385
|
MenubarPrimitive.SubTrigger,
|
|
4229
4386
|
__spreadProps(__spreadValues({
|
|
4230
4387
|
"data-slot": "menubar-sub-trigger",
|
|
@@ -4236,7 +4393,7 @@ function MenubarSubTrigger(_a) {
|
|
|
4236
4393
|
}, props), {
|
|
4237
4394
|
children: [
|
|
4238
4395
|
children,
|
|
4239
|
-
/* @__PURE__ */
|
|
4396
|
+
/* @__PURE__ */ jsx37(ChevronRightIcon4, { className: "ml-auto h-4 w-4" })
|
|
4240
4397
|
]
|
|
4241
4398
|
})
|
|
4242
4399
|
);
|
|
@@ -4247,7 +4404,7 @@ function MenubarSubContent(_a) {
|
|
|
4247
4404
|
} = _b, props = __objRest(_b, [
|
|
4248
4405
|
"className"
|
|
4249
4406
|
]);
|
|
4250
|
-
return /* @__PURE__ */
|
|
4407
|
+
return /* @__PURE__ */ jsx37(
|
|
4251
4408
|
MenubarPrimitive.SubContent,
|
|
4252
4409
|
__spreadValues({
|
|
4253
4410
|
"data-slot": "menubar-sub-content",
|
|
@@ -4261,7 +4418,7 @@ function MenubarSubContent(_a) {
|
|
|
4261
4418
|
|
|
4262
4419
|
// components/ui/native-select.tsx
|
|
4263
4420
|
import { ChevronDownIcon as ChevronDownIcon4 } from "lucide-react";
|
|
4264
|
-
import { jsx as
|
|
4421
|
+
import { jsx as jsx38, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
4265
4422
|
function NativeSelect(_a) {
|
|
4266
4423
|
var _b = _a, {
|
|
4267
4424
|
className,
|
|
@@ -4270,13 +4427,13 @@ function NativeSelect(_a) {
|
|
|
4270
4427
|
"className",
|
|
4271
4428
|
"size"
|
|
4272
4429
|
]);
|
|
4273
|
-
return /* @__PURE__ */
|
|
4430
|
+
return /* @__PURE__ */ jsxs19(
|
|
4274
4431
|
"div",
|
|
4275
4432
|
{
|
|
4276
4433
|
className: "group/native-select relative w-fit has-[select:disabled]:opacity-50",
|
|
4277
4434
|
"data-slot": "native-select-wrapper",
|
|
4278
4435
|
children: [
|
|
4279
|
-
/* @__PURE__ */
|
|
4436
|
+
/* @__PURE__ */ jsx38(
|
|
4280
4437
|
"select",
|
|
4281
4438
|
__spreadValues({
|
|
4282
4439
|
"data-slot": "native-select",
|
|
@@ -4288,7 +4445,7 @@ function NativeSelect(_a) {
|
|
|
4288
4445
|
)
|
|
4289
4446
|
}, props)
|
|
4290
4447
|
),
|
|
4291
|
-
/* @__PURE__ */
|
|
4448
|
+
/* @__PURE__ */ jsx38(
|
|
4292
4449
|
ChevronDownIcon4,
|
|
4293
4450
|
{
|
|
4294
4451
|
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 +4459,7 @@ function NativeSelect(_a) {
|
|
|
4302
4459
|
}
|
|
4303
4460
|
function NativeSelectOption(_a) {
|
|
4304
4461
|
var props = __objRest(_a, []);
|
|
4305
|
-
return /* @__PURE__ */
|
|
4462
|
+
return /* @__PURE__ */ jsx38("option", __spreadValues({ "data-slot": "native-select-option" }, props));
|
|
4306
4463
|
}
|
|
4307
4464
|
function NativeSelectOptGroup(_a) {
|
|
4308
4465
|
var _b = _a, {
|
|
@@ -4310,7 +4467,7 @@ function NativeSelectOptGroup(_a) {
|
|
|
4310
4467
|
} = _b, props = __objRest(_b, [
|
|
4311
4468
|
"className"
|
|
4312
4469
|
]);
|
|
4313
|
-
return /* @__PURE__ */
|
|
4470
|
+
return /* @__PURE__ */ jsx38(
|
|
4314
4471
|
"optgroup",
|
|
4315
4472
|
__spreadValues({
|
|
4316
4473
|
"data-slot": "native-select-optgroup",
|
|
@@ -4322,7 +4479,7 @@ function NativeSelectOptGroup(_a) {
|
|
|
4322
4479
|
// components/ui/navigation-button.tsx
|
|
4323
4480
|
import { cva as cva10 } from "class-variance-authority";
|
|
4324
4481
|
import { Slot as Slot7 } from "radix-ui";
|
|
4325
|
-
import { jsx as
|
|
4482
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
4326
4483
|
var navigationButtonVariants = cva10(
|
|
4327
4484
|
"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
4485
|
{
|
|
@@ -4352,7 +4509,7 @@ function NavigationButton(_a) {
|
|
|
4352
4509
|
"children"
|
|
4353
4510
|
]);
|
|
4354
4511
|
const Comp = asChild ? Slot7.Root : "button";
|
|
4355
|
-
return /* @__PURE__ */
|
|
4512
|
+
return /* @__PURE__ */ jsx39(
|
|
4356
4513
|
Comp,
|
|
4357
4514
|
__spreadProps(__spreadValues({
|
|
4358
4515
|
"data-slot": "navigation-button",
|
|
@@ -4368,7 +4525,7 @@ function NavigationButton(_a) {
|
|
|
4368
4525
|
import { cva as cva11 } from "class-variance-authority";
|
|
4369
4526
|
import { ChevronDownIcon as ChevronDownIcon5 } from "lucide-react";
|
|
4370
4527
|
import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
|
|
4371
|
-
import { jsx as
|
|
4528
|
+
import { jsx as jsx40, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4372
4529
|
function NavigationMenu(_a) {
|
|
4373
4530
|
var _b = _a, {
|
|
4374
4531
|
className,
|
|
@@ -4379,7 +4536,7 @@ function NavigationMenu(_a) {
|
|
|
4379
4536
|
"children",
|
|
4380
4537
|
"viewport"
|
|
4381
4538
|
]);
|
|
4382
|
-
return /* @__PURE__ */
|
|
4539
|
+
return /* @__PURE__ */ jsxs20(
|
|
4383
4540
|
NavigationMenuPrimitive.Root,
|
|
4384
4541
|
__spreadProps(__spreadValues({
|
|
4385
4542
|
"data-slot": "navigation-menu",
|
|
@@ -4391,7 +4548,7 @@ function NavigationMenu(_a) {
|
|
|
4391
4548
|
}, props), {
|
|
4392
4549
|
children: [
|
|
4393
4550
|
children,
|
|
4394
|
-
viewport && /* @__PURE__ */
|
|
4551
|
+
viewport && /* @__PURE__ */ jsx40(NavigationMenuViewport, {})
|
|
4395
4552
|
]
|
|
4396
4553
|
})
|
|
4397
4554
|
);
|
|
@@ -4402,7 +4559,7 @@ function NavigationMenuList(_a) {
|
|
|
4402
4559
|
} = _b, props = __objRest(_b, [
|
|
4403
4560
|
"className"
|
|
4404
4561
|
]);
|
|
4405
|
-
return /* @__PURE__ */
|
|
4562
|
+
return /* @__PURE__ */ jsx40(
|
|
4406
4563
|
NavigationMenuPrimitive.List,
|
|
4407
4564
|
__spreadValues({
|
|
4408
4565
|
"data-slot": "navigation-menu-list",
|
|
@@ -4419,7 +4576,7 @@ function NavigationMenuItem(_a) {
|
|
|
4419
4576
|
} = _b, props = __objRest(_b, [
|
|
4420
4577
|
"className"
|
|
4421
4578
|
]);
|
|
4422
|
-
return /* @__PURE__ */
|
|
4579
|
+
return /* @__PURE__ */ jsx40(
|
|
4423
4580
|
NavigationMenuPrimitive.Item,
|
|
4424
4581
|
__spreadValues({
|
|
4425
4582
|
"data-slot": "navigation-menu-item",
|
|
@@ -4438,7 +4595,7 @@ function NavigationMenuTrigger(_a) {
|
|
|
4438
4595
|
"className",
|
|
4439
4596
|
"children"
|
|
4440
4597
|
]);
|
|
4441
|
-
return /* @__PURE__ */
|
|
4598
|
+
return /* @__PURE__ */ jsxs20(
|
|
4442
4599
|
NavigationMenuPrimitive.Trigger,
|
|
4443
4600
|
__spreadProps(__spreadValues({
|
|
4444
4601
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -4447,7 +4604,7 @@ function NavigationMenuTrigger(_a) {
|
|
|
4447
4604
|
children: [
|
|
4448
4605
|
children,
|
|
4449
4606
|
" ",
|
|
4450
|
-
/* @__PURE__ */
|
|
4607
|
+
/* @__PURE__ */ jsx40(
|
|
4451
4608
|
ChevronDownIcon5,
|
|
4452
4609
|
{
|
|
4453
4610
|
className: "relative top-[1px] ml-1 size-3 transition duration-slow group-data-[state=open]:rotate-180",
|
|
@@ -4464,7 +4621,7 @@ function NavigationMenuContent(_a) {
|
|
|
4464
4621
|
} = _b, props = __objRest(_b, [
|
|
4465
4622
|
"className"
|
|
4466
4623
|
]);
|
|
4467
|
-
return /* @__PURE__ */
|
|
4624
|
+
return /* @__PURE__ */ jsx40(
|
|
4468
4625
|
NavigationMenuPrimitive.Content,
|
|
4469
4626
|
__spreadValues({
|
|
4470
4627
|
"data-slot": "navigation-menu-content",
|
|
@@ -4482,13 +4639,13 @@ function NavigationMenuViewport(_a) {
|
|
|
4482
4639
|
} = _b, props = __objRest(_b, [
|
|
4483
4640
|
"className"
|
|
4484
4641
|
]);
|
|
4485
|
-
return /* @__PURE__ */
|
|
4642
|
+
return /* @__PURE__ */ jsx40(
|
|
4486
4643
|
"div",
|
|
4487
4644
|
{
|
|
4488
4645
|
className: cn(
|
|
4489
4646
|
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
4490
4647
|
),
|
|
4491
|
-
children: /* @__PURE__ */
|
|
4648
|
+
children: /* @__PURE__ */ jsx40(
|
|
4492
4649
|
NavigationMenuPrimitive.Viewport,
|
|
4493
4650
|
__spreadValues({
|
|
4494
4651
|
"data-slot": "navigation-menu-viewport",
|
|
@@ -4507,7 +4664,7 @@ function NavigationMenuLink(_a) {
|
|
|
4507
4664
|
} = _b, props = __objRest(_b, [
|
|
4508
4665
|
"className"
|
|
4509
4666
|
]);
|
|
4510
|
-
return /* @__PURE__ */
|
|
4667
|
+
return /* @__PURE__ */ jsx40(
|
|
4511
4668
|
NavigationMenuPrimitive.Link,
|
|
4512
4669
|
__spreadValues({
|
|
4513
4670
|
"data-slot": "navigation-menu-link",
|
|
@@ -4524,7 +4681,7 @@ function NavigationMenuIndicator(_a) {
|
|
|
4524
4681
|
} = _b, props = __objRest(_b, [
|
|
4525
4682
|
"className"
|
|
4526
4683
|
]);
|
|
4527
|
-
return /* @__PURE__ */
|
|
4684
|
+
return /* @__PURE__ */ jsx40(
|
|
4528
4685
|
NavigationMenuPrimitive.Indicator,
|
|
4529
4686
|
__spreadProps(__spreadValues({
|
|
4530
4687
|
"data-slot": "navigation-menu-indicator",
|
|
@@ -4533,7 +4690,7 @@ function NavigationMenuIndicator(_a) {
|
|
|
4533
4690
|
className
|
|
4534
4691
|
)
|
|
4535
4692
|
}, props), {
|
|
4536
|
-
children: /* @__PURE__ */
|
|
4693
|
+
children: /* @__PURE__ */ jsx40("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
4537
4694
|
})
|
|
4538
4695
|
);
|
|
4539
4696
|
}
|
|
@@ -4544,10 +4701,10 @@ import {
|
|
|
4544
4701
|
ChevronRightIcon as ChevronRightIcon5,
|
|
4545
4702
|
MoreHorizontalIcon
|
|
4546
4703
|
} from "lucide-react";
|
|
4547
|
-
import { jsx as
|
|
4704
|
+
import { jsx as jsx41, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4548
4705
|
function Pagination(_a) {
|
|
4549
4706
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4550
|
-
return /* @__PURE__ */
|
|
4707
|
+
return /* @__PURE__ */ jsx41(
|
|
4551
4708
|
"nav",
|
|
4552
4709
|
__spreadValues({
|
|
4553
4710
|
role: "navigation",
|
|
@@ -4563,7 +4720,7 @@ function PaginationContent(_a) {
|
|
|
4563
4720
|
} = _b, props = __objRest(_b, [
|
|
4564
4721
|
"className"
|
|
4565
4722
|
]);
|
|
4566
|
-
return /* @__PURE__ */
|
|
4723
|
+
return /* @__PURE__ */ jsx41(
|
|
4567
4724
|
"ul",
|
|
4568
4725
|
__spreadValues({
|
|
4569
4726
|
"data-slot": "pagination-content",
|
|
@@ -4573,7 +4730,7 @@ function PaginationContent(_a) {
|
|
|
4573
4730
|
}
|
|
4574
4731
|
function PaginationItem(_a) {
|
|
4575
4732
|
var props = __objRest(_a, []);
|
|
4576
|
-
return /* @__PURE__ */
|
|
4733
|
+
return /* @__PURE__ */ jsx41("li", __spreadValues({ "data-slot": "pagination-item" }, props));
|
|
4577
4734
|
}
|
|
4578
4735
|
function PaginationLink(_a) {
|
|
4579
4736
|
var _b = _a, {
|
|
@@ -4585,7 +4742,7 @@ function PaginationLink(_a) {
|
|
|
4585
4742
|
"isActive",
|
|
4586
4743
|
"size"
|
|
4587
4744
|
]);
|
|
4588
|
-
return /* @__PURE__ */
|
|
4745
|
+
return /* @__PURE__ */ jsx41(
|
|
4589
4746
|
"a",
|
|
4590
4747
|
__spreadValues({
|
|
4591
4748
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -4605,7 +4762,7 @@ function PaginationPrevious(_a) {
|
|
|
4605
4762
|
} = _b, props = __objRest(_b, [
|
|
4606
4763
|
"className"
|
|
4607
4764
|
]);
|
|
4608
|
-
return /* @__PURE__ */
|
|
4765
|
+
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
4766
|
}
|
|
4610
4767
|
function PaginationNext(_a) {
|
|
4611
4768
|
var _b = _a, {
|
|
@@ -4613,7 +4770,7 @@ function PaginationNext(_a) {
|
|
|
4613
4770
|
} = _b, props = __objRest(_b, [
|
|
4614
4771
|
"className"
|
|
4615
4772
|
]);
|
|
4616
|
-
return /* @__PURE__ */
|
|
4773
|
+
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
4774
|
}
|
|
4618
4775
|
function PaginationEllipsis(_a) {
|
|
4619
4776
|
var _b = _a, {
|
|
@@ -4621,7 +4778,7 @@ function PaginationEllipsis(_a) {
|
|
|
4621
4778
|
} = _b, props = __objRest(_b, [
|
|
4622
4779
|
"className"
|
|
4623
4780
|
]);
|
|
4624
|
-
return /* @__PURE__ */
|
|
4781
|
+
return /* @__PURE__ */ jsxs21(
|
|
4625
4782
|
"span",
|
|
4626
4783
|
__spreadProps(__spreadValues({
|
|
4627
4784
|
"aria-hidden": true,
|
|
@@ -4629,8 +4786,8 @@ function PaginationEllipsis(_a) {
|
|
|
4629
4786
|
className: cn("flex size-10 items-center justify-center", className)
|
|
4630
4787
|
}, props), {
|
|
4631
4788
|
children: [
|
|
4632
|
-
/* @__PURE__ */
|
|
4633
|
-
/* @__PURE__ */
|
|
4789
|
+
/* @__PURE__ */ jsx41(MoreHorizontalIcon, { className: "size-4" }),
|
|
4790
|
+
/* @__PURE__ */ jsx41("span", { className: "sr-only", children: "More pages" })
|
|
4634
4791
|
]
|
|
4635
4792
|
})
|
|
4636
4793
|
);
|
|
@@ -4638,14 +4795,14 @@ function PaginationEllipsis(_a) {
|
|
|
4638
4795
|
|
|
4639
4796
|
// components/ui/popover.tsx
|
|
4640
4797
|
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
4641
|
-
import { jsx as
|
|
4798
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
4642
4799
|
function Popover(_a) {
|
|
4643
4800
|
var props = __objRest(_a, []);
|
|
4644
|
-
return /* @__PURE__ */
|
|
4801
|
+
return /* @__PURE__ */ jsx42(PopoverPrimitive.Root, __spreadValues({ "data-slot": "popover" }, props));
|
|
4645
4802
|
}
|
|
4646
4803
|
function PopoverTrigger(_a) {
|
|
4647
4804
|
var props = __objRest(_a, []);
|
|
4648
|
-
return /* @__PURE__ */
|
|
4805
|
+
return /* @__PURE__ */ jsx42(PopoverPrimitive.Trigger, __spreadValues({ "data-slot": "popover-trigger" }, props));
|
|
4649
4806
|
}
|
|
4650
4807
|
function PopoverContent(_a) {
|
|
4651
4808
|
var _b = _a, {
|
|
@@ -4657,7 +4814,7 @@ function PopoverContent(_a) {
|
|
|
4657
4814
|
"align",
|
|
4658
4815
|
"sideOffset"
|
|
4659
4816
|
]);
|
|
4660
|
-
return /* @__PURE__ */
|
|
4817
|
+
return /* @__PURE__ */ jsx42(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx42(
|
|
4661
4818
|
PopoverPrimitive.Content,
|
|
4662
4819
|
__spreadValues({
|
|
4663
4820
|
"data-slot": "popover-content",
|
|
@@ -4672,11 +4829,11 @@ function PopoverContent(_a) {
|
|
|
4672
4829
|
}
|
|
4673
4830
|
function PopoverAnchor(_a) {
|
|
4674
4831
|
var props = __objRest(_a, []);
|
|
4675
|
-
return /* @__PURE__ */
|
|
4832
|
+
return /* @__PURE__ */ jsx42(PopoverPrimitive.Anchor, __spreadValues({ "data-slot": "popover-anchor" }, props));
|
|
4676
4833
|
}
|
|
4677
4834
|
function PopoverHeader(_a) {
|
|
4678
4835
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4679
|
-
return /* @__PURE__ */
|
|
4836
|
+
return /* @__PURE__ */ jsx42(
|
|
4680
4837
|
"div",
|
|
4681
4838
|
__spreadValues({
|
|
4682
4839
|
"data-slot": "popover-header",
|
|
@@ -4686,7 +4843,7 @@ function PopoverHeader(_a) {
|
|
|
4686
4843
|
}
|
|
4687
4844
|
function PopoverTitle(_a) {
|
|
4688
4845
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4689
|
-
return /* @__PURE__ */
|
|
4846
|
+
return /* @__PURE__ */ jsx42(
|
|
4690
4847
|
"div",
|
|
4691
4848
|
__spreadValues({
|
|
4692
4849
|
"data-slot": "popover-title",
|
|
@@ -4700,7 +4857,7 @@ function PopoverDescription(_a) {
|
|
|
4700
4857
|
} = _b, props = __objRest(_b, [
|
|
4701
4858
|
"className"
|
|
4702
4859
|
]);
|
|
4703
|
-
return /* @__PURE__ */
|
|
4860
|
+
return /* @__PURE__ */ jsx42(
|
|
4704
4861
|
"p",
|
|
4705
4862
|
__spreadValues({
|
|
4706
4863
|
"data-slot": "popover-description",
|
|
@@ -4711,7 +4868,7 @@ function PopoverDescription(_a) {
|
|
|
4711
4868
|
|
|
4712
4869
|
// components/ui/progress.tsx
|
|
4713
4870
|
import { Progress as ProgressPrimitive } from "radix-ui";
|
|
4714
|
-
import { jsx as
|
|
4871
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
4715
4872
|
function Progress(_a) {
|
|
4716
4873
|
var _b = _a, {
|
|
4717
4874
|
className,
|
|
@@ -4720,7 +4877,7 @@ function Progress(_a) {
|
|
|
4720
4877
|
"className",
|
|
4721
4878
|
"value"
|
|
4722
4879
|
]);
|
|
4723
|
-
return /* @__PURE__ */
|
|
4880
|
+
return /* @__PURE__ */ jsx43(
|
|
4724
4881
|
ProgressPrimitive.Root,
|
|
4725
4882
|
__spreadProps(__spreadValues({
|
|
4726
4883
|
"data-slot": "progress",
|
|
@@ -4729,7 +4886,7 @@ function Progress(_a) {
|
|
|
4729
4886
|
className
|
|
4730
4887
|
)
|
|
4731
4888
|
}, props), {
|
|
4732
|
-
children: /* @__PURE__ */
|
|
4889
|
+
children: /* @__PURE__ */ jsx43(
|
|
4733
4890
|
ProgressPrimitive.Indicator,
|
|
4734
4891
|
{
|
|
4735
4892
|
"data-slot": "progress-indicator",
|
|
@@ -4744,14 +4901,14 @@ function Progress(_a) {
|
|
|
4744
4901
|
// components/ui/radio-group.tsx
|
|
4745
4902
|
import { CircleIcon as CircleIcon4 } from "lucide-react";
|
|
4746
4903
|
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
4747
|
-
import { jsx as
|
|
4904
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
4748
4905
|
function RadioGroup(_a) {
|
|
4749
4906
|
var _b = _a, {
|
|
4750
4907
|
className
|
|
4751
4908
|
} = _b, props = __objRest(_b, [
|
|
4752
4909
|
"className"
|
|
4753
4910
|
]);
|
|
4754
|
-
return /* @__PURE__ */
|
|
4911
|
+
return /* @__PURE__ */ jsx44(
|
|
4755
4912
|
RadioGroupPrimitive.Root,
|
|
4756
4913
|
__spreadValues({
|
|
4757
4914
|
"data-slot": "radio-group",
|
|
@@ -4765,7 +4922,7 @@ function RadioGroupItem(_a) {
|
|
|
4765
4922
|
} = _b, props = __objRest(_b, [
|
|
4766
4923
|
"className"
|
|
4767
4924
|
]);
|
|
4768
|
-
return /* @__PURE__ */
|
|
4925
|
+
return /* @__PURE__ */ jsx44(
|
|
4769
4926
|
RadioGroupPrimitive.Item,
|
|
4770
4927
|
__spreadProps(__spreadValues({
|
|
4771
4928
|
"data-slot": "radio-group-item",
|
|
@@ -4774,12 +4931,12 @@ function RadioGroupItem(_a) {
|
|
|
4774
4931
|
className
|
|
4775
4932
|
)
|
|
4776
4933
|
}, props), {
|
|
4777
|
-
children: /* @__PURE__ */
|
|
4934
|
+
children: /* @__PURE__ */ jsx44(
|
|
4778
4935
|
RadioGroupPrimitive.Indicator,
|
|
4779
4936
|
{
|
|
4780
4937
|
"data-slot": "radio-group-indicator",
|
|
4781
4938
|
className: "relative flex items-center justify-center",
|
|
4782
|
-
children: /* @__PURE__ */
|
|
4939
|
+
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
4940
|
}
|
|
4784
4941
|
)
|
|
4785
4942
|
})
|
|
@@ -4789,14 +4946,14 @@ function RadioGroupItem(_a) {
|
|
|
4789
4946
|
// components/ui/resizable.tsx
|
|
4790
4947
|
import { GripVerticalIcon } from "lucide-react";
|
|
4791
4948
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
4792
|
-
import { jsx as
|
|
4949
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
4793
4950
|
function ResizablePanelGroup(_a) {
|
|
4794
4951
|
var _b = _a, {
|
|
4795
4952
|
className
|
|
4796
4953
|
} = _b, props = __objRest(_b, [
|
|
4797
4954
|
"className"
|
|
4798
4955
|
]);
|
|
4799
|
-
return /* @__PURE__ */
|
|
4956
|
+
return /* @__PURE__ */ jsx45(
|
|
4800
4957
|
ResizablePrimitive.Group,
|
|
4801
4958
|
__spreadValues({
|
|
4802
4959
|
"data-slot": "resizable-panel-group",
|
|
@@ -4809,7 +4966,7 @@ function ResizablePanelGroup(_a) {
|
|
|
4809
4966
|
}
|
|
4810
4967
|
function ResizablePanel(_a) {
|
|
4811
4968
|
var props = __objRest(_a, []);
|
|
4812
|
-
return /* @__PURE__ */
|
|
4969
|
+
return /* @__PURE__ */ jsx45(ResizablePrimitive.Panel, __spreadValues({ "data-slot": "resizable-panel" }, props));
|
|
4813
4970
|
}
|
|
4814
4971
|
function ResizableHandle(_a) {
|
|
4815
4972
|
var _b = _a, {
|
|
@@ -4819,7 +4976,7 @@ function ResizableHandle(_a) {
|
|
|
4819
4976
|
"withHandle",
|
|
4820
4977
|
"className"
|
|
4821
4978
|
]);
|
|
4822
|
-
return /* @__PURE__ */
|
|
4979
|
+
return /* @__PURE__ */ jsx45(
|
|
4823
4980
|
ResizablePrimitive.Separator,
|
|
4824
4981
|
__spreadProps(__spreadValues({
|
|
4825
4982
|
"data-slot": "resizable-handle",
|
|
@@ -4828,14 +4985,14 @@ function ResizableHandle(_a) {
|
|
|
4828
4985
|
className
|
|
4829
4986
|
)
|
|
4830
4987
|
}, props), {
|
|
4831
|
-
children: withHandle && /* @__PURE__ */
|
|
4988
|
+
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
4989
|
})
|
|
4833
4990
|
);
|
|
4834
4991
|
}
|
|
4835
4992
|
|
|
4836
4993
|
// components/ui/scroll-area.tsx
|
|
4837
4994
|
import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
|
|
4838
|
-
import { jsx as
|
|
4995
|
+
import { jsx as jsx46, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4839
4996
|
function ScrollArea(_a) {
|
|
4840
4997
|
var _b = _a, {
|
|
4841
4998
|
className,
|
|
@@ -4844,14 +5001,14 @@ function ScrollArea(_a) {
|
|
|
4844
5001
|
"className",
|
|
4845
5002
|
"children"
|
|
4846
5003
|
]);
|
|
4847
|
-
return /* @__PURE__ */
|
|
5004
|
+
return /* @__PURE__ */ jsxs22(
|
|
4848
5005
|
ScrollAreaPrimitive.Root,
|
|
4849
5006
|
__spreadProps(__spreadValues({
|
|
4850
5007
|
"data-slot": "scroll-area",
|
|
4851
5008
|
className: cn("relative", className)
|
|
4852
5009
|
}, props), {
|
|
4853
5010
|
children: [
|
|
4854
|
-
/* @__PURE__ */
|
|
5011
|
+
/* @__PURE__ */ jsx46(
|
|
4855
5012
|
ScrollAreaPrimitive.Viewport,
|
|
4856
5013
|
{
|
|
4857
5014
|
"data-slot": "scroll-area-viewport",
|
|
@@ -4859,8 +5016,8 @@ function ScrollArea(_a) {
|
|
|
4859
5016
|
children
|
|
4860
5017
|
}
|
|
4861
5018
|
),
|
|
4862
|
-
/* @__PURE__ */
|
|
4863
|
-
/* @__PURE__ */
|
|
5019
|
+
/* @__PURE__ */ jsx46(ScrollBar, {}),
|
|
5020
|
+
/* @__PURE__ */ jsx46(ScrollAreaPrimitive.Corner, {})
|
|
4864
5021
|
]
|
|
4865
5022
|
})
|
|
4866
5023
|
);
|
|
@@ -4873,7 +5030,7 @@ function ScrollBar(_a) {
|
|
|
4873
5030
|
"className",
|
|
4874
5031
|
"orientation"
|
|
4875
5032
|
]);
|
|
4876
|
-
return /* @__PURE__ */
|
|
5033
|
+
return /* @__PURE__ */ jsx46(
|
|
4877
5034
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
4878
5035
|
__spreadProps(__spreadValues({
|
|
4879
5036
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -4885,7 +5042,7 @@ function ScrollBar(_a) {
|
|
|
4885
5042
|
className
|
|
4886
5043
|
)
|
|
4887
5044
|
}, props), {
|
|
4888
|
-
children: /* @__PURE__ */
|
|
5045
|
+
children: /* @__PURE__ */ jsx46(
|
|
4889
5046
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
4890
5047
|
{
|
|
4891
5048
|
"data-slot": "scroll-area-thumb",
|
|
@@ -4899,18 +5056,18 @@ function ScrollBar(_a) {
|
|
|
4899
5056
|
// components/ui/select.tsx
|
|
4900
5057
|
import { CheckIcon as CheckIcon6, ChevronDownIcon as ChevronDownIcon6, ChevronUpIcon } from "lucide-react";
|
|
4901
5058
|
import { Select as SelectPrimitive } from "radix-ui";
|
|
4902
|
-
import { jsx as
|
|
5059
|
+
import { jsx as jsx47, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4903
5060
|
function Select(_a) {
|
|
4904
5061
|
var props = __objRest(_a, []);
|
|
4905
|
-
return /* @__PURE__ */
|
|
5062
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Root, __spreadValues({ "data-slot": "select" }, props));
|
|
4906
5063
|
}
|
|
4907
5064
|
function SelectGroup(_a) {
|
|
4908
5065
|
var props = __objRest(_a, []);
|
|
4909
|
-
return /* @__PURE__ */
|
|
5066
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Group, __spreadValues({ "data-slot": "select-group" }, props));
|
|
4910
5067
|
}
|
|
4911
5068
|
function SelectValue(_a) {
|
|
4912
5069
|
var props = __objRest(_a, []);
|
|
4913
|
-
return /* @__PURE__ */
|
|
5070
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Value, __spreadValues({ "data-slot": "select-value" }, props));
|
|
4914
5071
|
}
|
|
4915
5072
|
function SelectTrigger(_a) {
|
|
4916
5073
|
var _b = _a, {
|
|
@@ -4924,7 +5081,7 @@ function SelectTrigger(_a) {
|
|
|
4924
5081
|
"readOnly",
|
|
4925
5082
|
"children"
|
|
4926
5083
|
]);
|
|
4927
|
-
return /* @__PURE__ */
|
|
5084
|
+
return /* @__PURE__ */ jsxs23(
|
|
4928
5085
|
SelectPrimitive.Trigger,
|
|
4929
5086
|
__spreadProps(__spreadValues({
|
|
4930
5087
|
"data-slot": "select-trigger",
|
|
@@ -4938,7 +5095,7 @@ function SelectTrigger(_a) {
|
|
|
4938
5095
|
}, props), {
|
|
4939
5096
|
children: [
|
|
4940
5097
|
children,
|
|
4941
|
-
/* @__PURE__ */
|
|
5098
|
+
/* @__PURE__ */ jsx47(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx47(ChevronDownIcon6, { className: cn("size-4", readOnly ? "opacity-30" : "opacity-50") }) })
|
|
4942
5099
|
]
|
|
4943
5100
|
})
|
|
4944
5101
|
);
|
|
@@ -4955,7 +5112,7 @@ function SelectContent(_a) {
|
|
|
4955
5112
|
"position",
|
|
4956
5113
|
"align"
|
|
4957
5114
|
]);
|
|
4958
|
-
return /* @__PURE__ */
|
|
5115
|
+
return /* @__PURE__ */ jsx47(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs23(
|
|
4959
5116
|
SelectPrimitive.Content,
|
|
4960
5117
|
__spreadProps(__spreadValues({
|
|
4961
5118
|
"data-slot": "select-content",
|
|
@@ -4968,8 +5125,8 @@ function SelectContent(_a) {
|
|
|
4968
5125
|
align
|
|
4969
5126
|
}, props), {
|
|
4970
5127
|
children: [
|
|
4971
|
-
/* @__PURE__ */
|
|
4972
|
-
/* @__PURE__ */
|
|
5128
|
+
/* @__PURE__ */ jsx47(SelectScrollUpButton, {}),
|
|
5129
|
+
/* @__PURE__ */ jsx47(
|
|
4973
5130
|
SelectPrimitive.Viewport,
|
|
4974
5131
|
{
|
|
4975
5132
|
className: cn(
|
|
@@ -4979,7 +5136,7 @@ function SelectContent(_a) {
|
|
|
4979
5136
|
children
|
|
4980
5137
|
}
|
|
4981
5138
|
),
|
|
4982
|
-
/* @__PURE__ */
|
|
5139
|
+
/* @__PURE__ */ jsx47(SelectScrollDownButton, {})
|
|
4983
5140
|
]
|
|
4984
5141
|
})
|
|
4985
5142
|
) });
|
|
@@ -4990,7 +5147,7 @@ function SelectLabel(_a) {
|
|
|
4990
5147
|
} = _b, props = __objRest(_b, [
|
|
4991
5148
|
"className"
|
|
4992
5149
|
]);
|
|
4993
|
-
return /* @__PURE__ */
|
|
5150
|
+
return /* @__PURE__ */ jsx47(
|
|
4994
5151
|
SelectPrimitive.Label,
|
|
4995
5152
|
__spreadValues({
|
|
4996
5153
|
"data-slot": "select-label",
|
|
@@ -5006,7 +5163,7 @@ function SelectItem(_a) {
|
|
|
5006
5163
|
"className",
|
|
5007
5164
|
"children"
|
|
5008
5165
|
]);
|
|
5009
|
-
return /* @__PURE__ */
|
|
5166
|
+
return /* @__PURE__ */ jsxs23(
|
|
5010
5167
|
SelectPrimitive.Item,
|
|
5011
5168
|
__spreadProps(__spreadValues({
|
|
5012
5169
|
"data-slot": "select-item",
|
|
@@ -5016,15 +5173,15 @@ function SelectItem(_a) {
|
|
|
5016
5173
|
)
|
|
5017
5174
|
}, props), {
|
|
5018
5175
|
children: [
|
|
5019
|
-
/* @__PURE__ */
|
|
5176
|
+
/* @__PURE__ */ jsx47(
|
|
5020
5177
|
"span",
|
|
5021
5178
|
{
|
|
5022
5179
|
"data-slot": "select-item-indicator",
|
|
5023
5180
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
5024
|
-
children: /* @__PURE__ */
|
|
5181
|
+
children: /* @__PURE__ */ jsx47(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx47(CheckIcon6, { className: "size-4 text-primary" }) })
|
|
5025
5182
|
}
|
|
5026
5183
|
),
|
|
5027
|
-
/* @__PURE__ */
|
|
5184
|
+
/* @__PURE__ */ jsx47(SelectPrimitive.ItemText, { children })
|
|
5028
5185
|
]
|
|
5029
5186
|
})
|
|
5030
5187
|
);
|
|
@@ -5035,7 +5192,7 @@ function SelectSeparator(_a) {
|
|
|
5035
5192
|
} = _b, props = __objRest(_b, [
|
|
5036
5193
|
"className"
|
|
5037
5194
|
]);
|
|
5038
|
-
return /* @__PURE__ */
|
|
5195
|
+
return /* @__PURE__ */ jsx47(
|
|
5039
5196
|
SelectPrimitive.Separator,
|
|
5040
5197
|
__spreadValues({
|
|
5041
5198
|
"data-slot": "select-separator",
|
|
@@ -5049,7 +5206,7 @@ function SelectScrollUpButton(_a) {
|
|
|
5049
5206
|
} = _b, props = __objRest(_b, [
|
|
5050
5207
|
"className"
|
|
5051
5208
|
]);
|
|
5052
|
-
return /* @__PURE__ */
|
|
5209
|
+
return /* @__PURE__ */ jsx47(
|
|
5053
5210
|
SelectPrimitive.ScrollUpButton,
|
|
5054
5211
|
__spreadProps(__spreadValues({
|
|
5055
5212
|
"data-slot": "select-scroll-up-button",
|
|
@@ -5058,7 +5215,7 @@ function SelectScrollUpButton(_a) {
|
|
|
5058
5215
|
className
|
|
5059
5216
|
)
|
|
5060
5217
|
}, props), {
|
|
5061
|
-
children: /* @__PURE__ */
|
|
5218
|
+
children: /* @__PURE__ */ jsx47(ChevronUpIcon, { className: "size-4" })
|
|
5062
5219
|
})
|
|
5063
5220
|
);
|
|
5064
5221
|
}
|
|
@@ -5068,7 +5225,7 @@ function SelectScrollDownButton(_a) {
|
|
|
5068
5225
|
} = _b, props = __objRest(_b, [
|
|
5069
5226
|
"className"
|
|
5070
5227
|
]);
|
|
5071
|
-
return /* @__PURE__ */
|
|
5228
|
+
return /* @__PURE__ */ jsx47(
|
|
5072
5229
|
SelectPrimitive.ScrollDownButton,
|
|
5073
5230
|
__spreadProps(__spreadValues({
|
|
5074
5231
|
"data-slot": "select-scroll-down-button",
|
|
@@ -5077,7 +5234,7 @@ function SelectScrollDownButton(_a) {
|
|
|
5077
5234
|
className
|
|
5078
5235
|
)
|
|
5079
5236
|
}, props), {
|
|
5080
|
-
children: /* @__PURE__ */
|
|
5237
|
+
children: /* @__PURE__ */ jsx47(ChevronDownIcon6, { className: "size-4" })
|
|
5081
5238
|
})
|
|
5082
5239
|
);
|
|
5083
5240
|
}
|
|
@@ -5085,22 +5242,22 @@ function SelectScrollDownButton(_a) {
|
|
|
5085
5242
|
// components/ui/sheet.tsx
|
|
5086
5243
|
import { XIcon as XIcon3 } from "lucide-react";
|
|
5087
5244
|
import { Dialog as SheetPrimitive } from "radix-ui";
|
|
5088
|
-
import { jsx as
|
|
5245
|
+
import { jsx as jsx48, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5089
5246
|
function Sheet(_a) {
|
|
5090
5247
|
var props = __objRest(_a, []);
|
|
5091
|
-
return /* @__PURE__ */
|
|
5248
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Root, __spreadValues({ "data-slot": "sheet" }, props));
|
|
5092
5249
|
}
|
|
5093
5250
|
function SheetTrigger(_a) {
|
|
5094
5251
|
var props = __objRest(_a, []);
|
|
5095
|
-
return /* @__PURE__ */
|
|
5252
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Trigger, __spreadValues({ "data-slot": "sheet-trigger" }, props));
|
|
5096
5253
|
}
|
|
5097
5254
|
function SheetClose(_a) {
|
|
5098
5255
|
var props = __objRest(_a, []);
|
|
5099
|
-
return /* @__PURE__ */
|
|
5256
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Close, __spreadValues({ "data-slot": "sheet-close" }, props));
|
|
5100
5257
|
}
|
|
5101
5258
|
function SheetPortal(_a) {
|
|
5102
5259
|
var props = __objRest(_a, []);
|
|
5103
|
-
return /* @__PURE__ */
|
|
5260
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Portal, __spreadValues({ "data-slot": "sheet-portal" }, props));
|
|
5104
5261
|
}
|
|
5105
5262
|
function SheetOverlay(_a) {
|
|
5106
5263
|
var _b = _a, {
|
|
@@ -5108,7 +5265,7 @@ function SheetOverlay(_a) {
|
|
|
5108
5265
|
} = _b, props = __objRest(_b, [
|
|
5109
5266
|
"className"
|
|
5110
5267
|
]);
|
|
5111
|
-
return /* @__PURE__ */
|
|
5268
|
+
return /* @__PURE__ */ jsx48(
|
|
5112
5269
|
SheetPrimitive.Overlay,
|
|
5113
5270
|
__spreadValues({
|
|
5114
5271
|
"data-slot": "sheet-overlay",
|
|
@@ -5131,9 +5288,9 @@ function SheetContent(_a) {
|
|
|
5131
5288
|
"side",
|
|
5132
5289
|
"showCloseButton"
|
|
5133
5290
|
]);
|
|
5134
|
-
return /* @__PURE__ */
|
|
5135
|
-
/* @__PURE__ */
|
|
5136
|
-
/* @__PURE__ */
|
|
5291
|
+
return /* @__PURE__ */ jsxs24(SheetPortal, { children: [
|
|
5292
|
+
/* @__PURE__ */ jsx48(SheetOverlay, {}),
|
|
5293
|
+
/* @__PURE__ */ jsxs24(
|
|
5137
5294
|
SheetPrimitive.Content,
|
|
5138
5295
|
__spreadProps(__spreadValues({
|
|
5139
5296
|
"data-slot": "sheet-content",
|
|
@@ -5148,9 +5305,9 @@ function SheetContent(_a) {
|
|
|
5148
5305
|
}, props), {
|
|
5149
5306
|
children: [
|
|
5150
5307
|
children,
|
|
5151
|
-
showCloseButton && /* @__PURE__ */
|
|
5152
|
-
/* @__PURE__ */
|
|
5153
|
-
/* @__PURE__ */
|
|
5308
|
+
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: [
|
|
5309
|
+
/* @__PURE__ */ jsx48(XIcon3, { className: "size-4" }),
|
|
5310
|
+
/* @__PURE__ */ jsx48("span", { className: "sr-only", children: "Close" })
|
|
5154
5311
|
] })
|
|
5155
5312
|
]
|
|
5156
5313
|
})
|
|
@@ -5159,7 +5316,7 @@ function SheetContent(_a) {
|
|
|
5159
5316
|
}
|
|
5160
5317
|
function SheetHeader(_a) {
|
|
5161
5318
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5162
|
-
return /* @__PURE__ */
|
|
5319
|
+
return /* @__PURE__ */ jsx48(
|
|
5163
5320
|
"div",
|
|
5164
5321
|
__spreadValues({
|
|
5165
5322
|
"data-slot": "sheet-header",
|
|
@@ -5169,7 +5326,7 @@ function SheetHeader(_a) {
|
|
|
5169
5326
|
}
|
|
5170
5327
|
function SheetFooter(_a) {
|
|
5171
5328
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5172
|
-
return /* @__PURE__ */
|
|
5329
|
+
return /* @__PURE__ */ jsx48(
|
|
5173
5330
|
"div",
|
|
5174
5331
|
__spreadValues({
|
|
5175
5332
|
"data-slot": "sheet-footer",
|
|
@@ -5183,7 +5340,7 @@ function SheetTitle(_a) {
|
|
|
5183
5340
|
} = _b, props = __objRest(_b, [
|
|
5184
5341
|
"className"
|
|
5185
5342
|
]);
|
|
5186
|
-
return /* @__PURE__ */
|
|
5343
|
+
return /* @__PURE__ */ jsx48(
|
|
5187
5344
|
SheetPrimitive.Title,
|
|
5188
5345
|
__spreadValues({
|
|
5189
5346
|
"data-slot": "sheet-title",
|
|
@@ -5197,7 +5354,7 @@ function SheetDescription(_a) {
|
|
|
5197
5354
|
} = _b, props = __objRest(_b, [
|
|
5198
5355
|
"className"
|
|
5199
5356
|
]);
|
|
5200
|
-
return /* @__PURE__ */
|
|
5357
|
+
return /* @__PURE__ */ jsx48(
|
|
5201
5358
|
SheetPrimitive.Description,
|
|
5202
5359
|
__spreadValues({
|
|
5203
5360
|
"data-slot": "sheet-description",
|
|
@@ -5207,17 +5364,17 @@ function SheetDescription(_a) {
|
|
|
5207
5364
|
}
|
|
5208
5365
|
|
|
5209
5366
|
// components/ui/sidebar.tsx
|
|
5210
|
-
import * as
|
|
5367
|
+
import * as React12 from "react";
|
|
5211
5368
|
import { cva as cva12 } from "class-variance-authority";
|
|
5212
5369
|
import { PanelLeftIcon } from "lucide-react";
|
|
5213
5370
|
import { Slot as Slot8 } from "radix-ui";
|
|
5214
5371
|
|
|
5215
5372
|
// hooks/use-mobile.ts
|
|
5216
|
-
import * as
|
|
5373
|
+
import * as React10 from "react";
|
|
5217
5374
|
var MOBILE_BREAKPOINT = 768;
|
|
5218
5375
|
function useIsMobile() {
|
|
5219
|
-
const [isMobile, setIsMobile] =
|
|
5220
|
-
|
|
5376
|
+
const [isMobile, setIsMobile] = React10.useState(void 0);
|
|
5377
|
+
React10.useEffect(() => {
|
|
5221
5378
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
5222
5379
|
const onChange = () => {
|
|
5223
5380
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -5230,10 +5387,10 @@ function useIsMobile() {
|
|
|
5230
5387
|
}
|
|
5231
5388
|
|
|
5232
5389
|
// components/ui/skeleton.tsx
|
|
5233
|
-
import { jsx as
|
|
5390
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
5234
5391
|
function Skeleton(_a) {
|
|
5235
5392
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5236
|
-
return /* @__PURE__ */
|
|
5393
|
+
return /* @__PURE__ */ jsx49(
|
|
5237
5394
|
"div",
|
|
5238
5395
|
__spreadValues({
|
|
5239
5396
|
"data-slot": "skeleton",
|
|
@@ -5243,17 +5400,17 @@ function Skeleton(_a) {
|
|
|
5243
5400
|
}
|
|
5244
5401
|
|
|
5245
5402
|
// components/ui/tooltip.tsx
|
|
5246
|
-
import * as
|
|
5403
|
+
import * as React11 from "react";
|
|
5247
5404
|
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
5248
|
-
import { jsx as
|
|
5249
|
-
var TooltipModeContext =
|
|
5405
|
+
import { jsx as jsx50, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5406
|
+
var TooltipModeContext = React11.createContext("tooltip");
|
|
5250
5407
|
function TooltipProvider(_a) {
|
|
5251
5408
|
var _b = _a, {
|
|
5252
5409
|
delayDuration = 0
|
|
5253
5410
|
} = _b, props = __objRest(_b, [
|
|
5254
5411
|
"delayDuration"
|
|
5255
5412
|
]);
|
|
5256
|
-
return /* @__PURE__ */
|
|
5413
|
+
return /* @__PURE__ */ jsx50(
|
|
5257
5414
|
TooltipPrimitive.Provider,
|
|
5258
5415
|
__spreadValues({
|
|
5259
5416
|
"data-slot": "tooltip-provider",
|
|
@@ -5270,9 +5427,9 @@ function Tooltip2(_a) {
|
|
|
5270
5427
|
const isMobile = useIsMobile();
|
|
5271
5428
|
const mode = isMobile ? "drawer" : "tooltip";
|
|
5272
5429
|
if (mode === "drawer") {
|
|
5273
|
-
return /* @__PURE__ */
|
|
5430
|
+
return /* @__PURE__ */ jsx50(TooltipModeContext.Provider, { value: "drawer", children: /* @__PURE__ */ jsx50(Drawer, { children }) });
|
|
5274
5431
|
}
|
|
5275
|
-
return /* @__PURE__ */
|
|
5432
|
+
return /* @__PURE__ */ jsx50(TooltipModeContext.Provider, { value: "tooltip", children: /* @__PURE__ */ jsx50(TooltipPrimitive.Root, __spreadProps(__spreadValues({ "data-slot": "tooltip" }, props), { children })) });
|
|
5276
5433
|
}
|
|
5277
5434
|
function TooltipTrigger(_a) {
|
|
5278
5435
|
var _b = _a, {
|
|
@@ -5280,11 +5437,11 @@ function TooltipTrigger(_a) {
|
|
|
5280
5437
|
} = _b, props = __objRest(_b, [
|
|
5281
5438
|
"children"
|
|
5282
5439
|
]);
|
|
5283
|
-
const mode =
|
|
5440
|
+
const mode = React11.useContext(TooltipModeContext);
|
|
5284
5441
|
if (mode === "drawer") {
|
|
5285
|
-
return /* @__PURE__ */
|
|
5442
|
+
return /* @__PURE__ */ jsx50(DrawerTrigger, __spreadProps(__spreadValues({ "data-slot": "tooltip-trigger" }, props), { children }));
|
|
5286
5443
|
}
|
|
5287
|
-
return /* @__PURE__ */
|
|
5444
|
+
return /* @__PURE__ */ jsx50(TooltipPrimitive.Trigger, __spreadProps(__spreadValues({ "data-slot": "tooltip-trigger" }, props), { children }));
|
|
5288
5445
|
}
|
|
5289
5446
|
function TooltipContent(_a) {
|
|
5290
5447
|
var _b = _a, {
|
|
@@ -5302,17 +5459,17 @@ function TooltipContent(_a) {
|
|
|
5302
5459
|
"closeLabel",
|
|
5303
5460
|
"children"
|
|
5304
5461
|
]);
|
|
5305
|
-
const mode =
|
|
5462
|
+
const mode = React11.useContext(TooltipModeContext);
|
|
5306
5463
|
if (mode === "drawer") {
|
|
5307
|
-
return /* @__PURE__ */
|
|
5308
|
-
/* @__PURE__ */
|
|
5309
|
-
/* @__PURE__ */
|
|
5310
|
-
/* @__PURE__ */
|
|
5464
|
+
return /* @__PURE__ */ jsxs25(DrawerContent, { "data-slot": "tooltip-content", "data-variant": variant, children: [
|
|
5465
|
+
/* @__PURE__ */ jsx50(DrawerHeader, { children: /* @__PURE__ */ jsx50(DrawerTitle, { children: title }) }),
|
|
5466
|
+
/* @__PURE__ */ jsx50("div", { className: cn("p-4 text-sm text-on-subtle", className), children }),
|
|
5467
|
+
/* @__PURE__ */ jsx50(DrawerFooter, { children: /* @__PURE__ */ jsx50(DrawerClose, { asChild: true, children: /* @__PURE__ */ jsx50(Button, { variant: "primary", size: "md", children: closeLabel }) }) })
|
|
5311
5468
|
] });
|
|
5312
5469
|
}
|
|
5313
5470
|
const surfaceClasses = variant === "inverse" ? "bg-prominent text-on-prominent shadow-sm" : "bg-primary text-on-primary";
|
|
5314
5471
|
const arrowClasses = variant === "inverse" ? "fill-prominent" : "fill-primary";
|
|
5315
|
-
return /* @__PURE__ */
|
|
5472
|
+
return /* @__PURE__ */ jsx50(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs25(
|
|
5316
5473
|
TooltipPrimitive.Content,
|
|
5317
5474
|
__spreadProps(__spreadValues({
|
|
5318
5475
|
"data-slot": "tooltip-content",
|
|
@@ -5326,23 +5483,23 @@ function TooltipContent(_a) {
|
|
|
5326
5483
|
}, props), {
|
|
5327
5484
|
children: [
|
|
5328
5485
|
children,
|
|
5329
|
-
/* @__PURE__ */
|
|
5486
|
+
/* @__PURE__ */ jsx50(TooltipPrimitive.Arrow, { className: arrowClasses })
|
|
5330
5487
|
]
|
|
5331
5488
|
})
|
|
5332
5489
|
) });
|
|
5333
5490
|
}
|
|
5334
5491
|
|
|
5335
5492
|
// components/ui/sidebar.tsx
|
|
5336
|
-
import { jsx as
|
|
5493
|
+
import { jsx as jsx51, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5337
5494
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
5338
5495
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
5339
5496
|
var SIDEBAR_WIDTH = "16rem";
|
|
5340
5497
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
5341
5498
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
5342
5499
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
5343
|
-
var SidebarContext =
|
|
5500
|
+
var SidebarContext = React12.createContext(null);
|
|
5344
5501
|
function useSidebar() {
|
|
5345
|
-
const context =
|
|
5502
|
+
const context = React12.useContext(SidebarContext);
|
|
5346
5503
|
if (!context) {
|
|
5347
5504
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
5348
5505
|
}
|
|
@@ -5365,10 +5522,10 @@ function SidebarProvider(_a) {
|
|
|
5365
5522
|
"children"
|
|
5366
5523
|
]);
|
|
5367
5524
|
const isMobile = useIsMobile();
|
|
5368
|
-
const [openMobile, setOpenMobile] =
|
|
5369
|
-
const [_open, _setOpen] =
|
|
5525
|
+
const [openMobile, setOpenMobile] = React12.useState(false);
|
|
5526
|
+
const [_open, _setOpen] = React12.useState(defaultOpen);
|
|
5370
5527
|
const open = openProp != null ? openProp : _open;
|
|
5371
|
-
const setOpen =
|
|
5528
|
+
const setOpen = React12.useCallback(
|
|
5372
5529
|
(value) => {
|
|
5373
5530
|
const openState = typeof value === "function" ? value(open) : value;
|
|
5374
5531
|
if (setOpenProp) {
|
|
@@ -5380,10 +5537,10 @@ function SidebarProvider(_a) {
|
|
|
5380
5537
|
},
|
|
5381
5538
|
[setOpenProp, open]
|
|
5382
5539
|
);
|
|
5383
|
-
const toggleSidebar =
|
|
5540
|
+
const toggleSidebar = React12.useCallback(() => {
|
|
5384
5541
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
5385
5542
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
5386
|
-
|
|
5543
|
+
React12.useEffect(() => {
|
|
5387
5544
|
const handleKeyDown = (event) => {
|
|
5388
5545
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
5389
5546
|
event.preventDefault();
|
|
@@ -5394,7 +5551,7 @@ function SidebarProvider(_a) {
|
|
|
5394
5551
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
5395
5552
|
}, [toggleSidebar]);
|
|
5396
5553
|
const state = open ? "expanded" : "collapsed";
|
|
5397
|
-
const contextValue =
|
|
5554
|
+
const contextValue = React12.useMemo(
|
|
5398
5555
|
() => ({
|
|
5399
5556
|
state,
|
|
5400
5557
|
open,
|
|
@@ -5406,7 +5563,7 @@ function SidebarProvider(_a) {
|
|
|
5406
5563
|
}),
|
|
5407
5564
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
5408
5565
|
);
|
|
5409
|
-
return /* @__PURE__ */
|
|
5566
|
+
return /* @__PURE__ */ jsx51(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx51(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx51(
|
|
5410
5567
|
"div",
|
|
5411
5568
|
__spreadProps(__spreadValues({
|
|
5412
5569
|
"data-slot": "sidebar-wrapper",
|
|
@@ -5439,7 +5596,7 @@ function Sidebar(_a) {
|
|
|
5439
5596
|
]);
|
|
5440
5597
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
5441
5598
|
if (collapsible === "none") {
|
|
5442
|
-
return /* @__PURE__ */
|
|
5599
|
+
return /* @__PURE__ */ jsx51(
|
|
5443
5600
|
"div",
|
|
5444
5601
|
__spreadProps(__spreadValues({
|
|
5445
5602
|
"data-slot": "sidebar",
|
|
@@ -5453,7 +5610,7 @@ function Sidebar(_a) {
|
|
|
5453
5610
|
);
|
|
5454
5611
|
}
|
|
5455
5612
|
if (isMobile) {
|
|
5456
|
-
return /* @__PURE__ */
|
|
5613
|
+
return /* @__PURE__ */ jsx51(Sheet, __spreadProps(__spreadValues({ open: openMobile, onOpenChange: setOpenMobile }, props), { children: /* @__PURE__ */ jsxs26(
|
|
5457
5614
|
SheetContent,
|
|
5458
5615
|
{
|
|
5459
5616
|
"data-sidebar": "sidebar",
|
|
@@ -5465,16 +5622,16 @@ function Sidebar(_a) {
|
|
|
5465
5622
|
},
|
|
5466
5623
|
side,
|
|
5467
5624
|
children: [
|
|
5468
|
-
/* @__PURE__ */
|
|
5469
|
-
/* @__PURE__ */
|
|
5470
|
-
/* @__PURE__ */
|
|
5625
|
+
/* @__PURE__ */ jsxs26(SheetHeader, { className: "sr-only", children: [
|
|
5626
|
+
/* @__PURE__ */ jsx51(SheetTitle, { children: "Sidebar" }),
|
|
5627
|
+
/* @__PURE__ */ jsx51(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
5471
5628
|
] }),
|
|
5472
|
-
/* @__PURE__ */
|
|
5629
|
+
/* @__PURE__ */ jsx51("div", { className: "flex h-full w-full flex-col", children })
|
|
5473
5630
|
]
|
|
5474
5631
|
}
|
|
5475
5632
|
) }));
|
|
5476
5633
|
}
|
|
5477
|
-
return /* @__PURE__ */
|
|
5634
|
+
return /* @__PURE__ */ jsxs26(
|
|
5478
5635
|
"div",
|
|
5479
5636
|
{
|
|
5480
5637
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -5484,7 +5641,7 @@ function Sidebar(_a) {
|
|
|
5484
5641
|
"data-side": side,
|
|
5485
5642
|
"data-slot": "sidebar",
|
|
5486
5643
|
children: [
|
|
5487
|
-
/* @__PURE__ */
|
|
5644
|
+
/* @__PURE__ */ jsx51(
|
|
5488
5645
|
"div",
|
|
5489
5646
|
{
|
|
5490
5647
|
"data-slot": "sidebar-gap",
|
|
@@ -5496,7 +5653,7 @@ function Sidebar(_a) {
|
|
|
5496
5653
|
)
|
|
5497
5654
|
}
|
|
5498
5655
|
),
|
|
5499
|
-
/* @__PURE__ */
|
|
5656
|
+
/* @__PURE__ */ jsx51(
|
|
5500
5657
|
"div",
|
|
5501
5658
|
__spreadProps(__spreadValues({
|
|
5502
5659
|
"data-slot": "sidebar-container",
|
|
@@ -5508,7 +5665,7 @@ function Sidebar(_a) {
|
|
|
5508
5665
|
className
|
|
5509
5666
|
)
|
|
5510
5667
|
}, props), {
|
|
5511
|
-
children: /* @__PURE__ */
|
|
5668
|
+
children: /* @__PURE__ */ jsx51(
|
|
5512
5669
|
"div",
|
|
5513
5670
|
{
|
|
5514
5671
|
"data-sidebar": "sidebar",
|
|
@@ -5532,7 +5689,7 @@ function SidebarTrigger(_a) {
|
|
|
5532
5689
|
"onClick"
|
|
5533
5690
|
]);
|
|
5534
5691
|
const { toggleSidebar } = useSidebar();
|
|
5535
|
-
return /* @__PURE__ */
|
|
5692
|
+
return /* @__PURE__ */ jsxs26(
|
|
5536
5693
|
Button,
|
|
5537
5694
|
__spreadProps(__spreadValues({
|
|
5538
5695
|
"data-sidebar": "trigger",
|
|
@@ -5546,8 +5703,8 @@ function SidebarTrigger(_a) {
|
|
|
5546
5703
|
}
|
|
5547
5704
|
}, props), {
|
|
5548
5705
|
children: [
|
|
5549
|
-
/* @__PURE__ */
|
|
5550
|
-
/* @__PURE__ */
|
|
5706
|
+
/* @__PURE__ */ jsx51(PanelLeftIcon, {}),
|
|
5707
|
+
/* @__PURE__ */ jsx51("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
5551
5708
|
]
|
|
5552
5709
|
})
|
|
5553
5710
|
);
|
|
@@ -5555,7 +5712,7 @@ function SidebarTrigger(_a) {
|
|
|
5555
5712
|
function SidebarRail(_a) {
|
|
5556
5713
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5557
5714
|
const { toggleSidebar } = useSidebar();
|
|
5558
|
-
return /* @__PURE__ */
|
|
5715
|
+
return /* @__PURE__ */ jsx51(
|
|
5559
5716
|
"button",
|
|
5560
5717
|
__spreadValues({
|
|
5561
5718
|
"data-sidebar": "rail",
|
|
@@ -5578,7 +5735,7 @@ function SidebarRail(_a) {
|
|
|
5578
5735
|
}
|
|
5579
5736
|
function SidebarInset(_a) {
|
|
5580
5737
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5581
|
-
return /* @__PURE__ */
|
|
5738
|
+
return /* @__PURE__ */ jsx51(
|
|
5582
5739
|
"main",
|
|
5583
5740
|
__spreadValues({
|
|
5584
5741
|
"data-slot": "sidebar-inset",
|
|
@@ -5596,7 +5753,7 @@ function SidebarInput(_a) {
|
|
|
5596
5753
|
} = _b, props = __objRest(_b, [
|
|
5597
5754
|
"className"
|
|
5598
5755
|
]);
|
|
5599
|
-
return /* @__PURE__ */
|
|
5756
|
+
return /* @__PURE__ */ jsx51(
|
|
5600
5757
|
Input,
|
|
5601
5758
|
__spreadValues({
|
|
5602
5759
|
"data-slot": "sidebar-input",
|
|
@@ -5607,7 +5764,7 @@ function SidebarInput(_a) {
|
|
|
5607
5764
|
}
|
|
5608
5765
|
function SidebarHeader(_a) {
|
|
5609
5766
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5610
|
-
return /* @__PURE__ */
|
|
5767
|
+
return /* @__PURE__ */ jsx51(
|
|
5611
5768
|
"div",
|
|
5612
5769
|
__spreadValues({
|
|
5613
5770
|
"data-slot": "sidebar-header",
|
|
@@ -5618,7 +5775,7 @@ function SidebarHeader(_a) {
|
|
|
5618
5775
|
}
|
|
5619
5776
|
function SidebarFooter(_a) {
|
|
5620
5777
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5621
|
-
return /* @__PURE__ */
|
|
5778
|
+
return /* @__PURE__ */ jsx51(
|
|
5622
5779
|
"div",
|
|
5623
5780
|
__spreadValues({
|
|
5624
5781
|
"data-slot": "sidebar-footer",
|
|
@@ -5633,7 +5790,7 @@ function SidebarSeparator(_a) {
|
|
|
5633
5790
|
} = _b, props = __objRest(_b, [
|
|
5634
5791
|
"className"
|
|
5635
5792
|
]);
|
|
5636
|
-
return /* @__PURE__ */
|
|
5793
|
+
return /* @__PURE__ */ jsx51(
|
|
5637
5794
|
Separator,
|
|
5638
5795
|
__spreadValues({
|
|
5639
5796
|
"data-slot": "sidebar-separator",
|
|
@@ -5644,7 +5801,7 @@ function SidebarSeparator(_a) {
|
|
|
5644
5801
|
}
|
|
5645
5802
|
function SidebarContent(_a) {
|
|
5646
5803
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5647
|
-
return /* @__PURE__ */
|
|
5804
|
+
return /* @__PURE__ */ jsx51(
|
|
5648
5805
|
"div",
|
|
5649
5806
|
__spreadValues({
|
|
5650
5807
|
"data-slot": "sidebar-content",
|
|
@@ -5658,7 +5815,7 @@ function SidebarContent(_a) {
|
|
|
5658
5815
|
}
|
|
5659
5816
|
function SidebarGroup(_a) {
|
|
5660
5817
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5661
|
-
return /* @__PURE__ */
|
|
5818
|
+
return /* @__PURE__ */ jsx51(
|
|
5662
5819
|
"div",
|
|
5663
5820
|
__spreadValues({
|
|
5664
5821
|
"data-slot": "sidebar-group",
|
|
@@ -5676,7 +5833,7 @@ function SidebarGroupLabel(_a) {
|
|
|
5676
5833
|
"asChild"
|
|
5677
5834
|
]);
|
|
5678
5835
|
const Comp = asChild ? Slot8.Root : "div";
|
|
5679
|
-
return /* @__PURE__ */
|
|
5836
|
+
return /* @__PURE__ */ jsx51(
|
|
5680
5837
|
Comp,
|
|
5681
5838
|
__spreadValues({
|
|
5682
5839
|
"data-slot": "sidebar-group-label",
|
|
@@ -5698,7 +5855,7 @@ function SidebarGroupAction(_a) {
|
|
|
5698
5855
|
"asChild"
|
|
5699
5856
|
]);
|
|
5700
5857
|
const Comp = asChild ? Slot8.Root : "button";
|
|
5701
|
-
return /* @__PURE__ */
|
|
5858
|
+
return /* @__PURE__ */ jsx51(
|
|
5702
5859
|
Comp,
|
|
5703
5860
|
__spreadValues({
|
|
5704
5861
|
"data-slot": "sidebar-group-action",
|
|
@@ -5719,7 +5876,7 @@ function SidebarGroupContent(_a) {
|
|
|
5719
5876
|
} = _b, props = __objRest(_b, [
|
|
5720
5877
|
"className"
|
|
5721
5878
|
]);
|
|
5722
|
-
return /* @__PURE__ */
|
|
5879
|
+
return /* @__PURE__ */ jsx51(
|
|
5723
5880
|
"div",
|
|
5724
5881
|
__spreadValues({
|
|
5725
5882
|
"data-slot": "sidebar-group-content",
|
|
@@ -5730,7 +5887,7 @@ function SidebarGroupContent(_a) {
|
|
|
5730
5887
|
}
|
|
5731
5888
|
function SidebarMenu(_a) {
|
|
5732
5889
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5733
|
-
return /* @__PURE__ */
|
|
5890
|
+
return /* @__PURE__ */ jsx51(
|
|
5734
5891
|
"ul",
|
|
5735
5892
|
__spreadValues({
|
|
5736
5893
|
"data-slot": "sidebar-menu",
|
|
@@ -5741,7 +5898,7 @@ function SidebarMenu(_a) {
|
|
|
5741
5898
|
}
|
|
5742
5899
|
function SidebarMenuItem(_a) {
|
|
5743
5900
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5744
|
-
return /* @__PURE__ */
|
|
5901
|
+
return /* @__PURE__ */ jsx51(
|
|
5745
5902
|
"li",
|
|
5746
5903
|
__spreadValues({
|
|
5747
5904
|
"data-slot": "sidebar-menu-item",
|
|
@@ -5788,7 +5945,7 @@ function SidebarMenuButton(_a) {
|
|
|
5788
5945
|
]);
|
|
5789
5946
|
const Comp = asChild ? Slot8.Root : "button";
|
|
5790
5947
|
const { isMobile, state } = useSidebar();
|
|
5791
|
-
const button = /* @__PURE__ */
|
|
5948
|
+
const button = /* @__PURE__ */ jsx51(
|
|
5792
5949
|
Comp,
|
|
5793
5950
|
__spreadValues({
|
|
5794
5951
|
"data-slot": "sidebar-menu-button",
|
|
@@ -5806,9 +5963,9 @@ function SidebarMenuButton(_a) {
|
|
|
5806
5963
|
children: tooltip
|
|
5807
5964
|
};
|
|
5808
5965
|
}
|
|
5809
|
-
return /* @__PURE__ */
|
|
5810
|
-
/* @__PURE__ */
|
|
5811
|
-
/* @__PURE__ */
|
|
5966
|
+
return /* @__PURE__ */ jsxs26(Tooltip2, { children: [
|
|
5967
|
+
/* @__PURE__ */ jsx51(TooltipTrigger, { asChild: true, children: button }),
|
|
5968
|
+
/* @__PURE__ */ jsx51(
|
|
5812
5969
|
TooltipContent,
|
|
5813
5970
|
__spreadValues({
|
|
5814
5971
|
side: "right",
|
|
@@ -5829,7 +5986,7 @@ function SidebarMenuAction(_a) {
|
|
|
5829
5986
|
"showOnHover"
|
|
5830
5987
|
]);
|
|
5831
5988
|
const Comp = asChild ? Slot8.Root : "button";
|
|
5832
|
-
return /* @__PURE__ */
|
|
5989
|
+
return /* @__PURE__ */ jsx51(
|
|
5833
5990
|
Comp,
|
|
5834
5991
|
__spreadValues({
|
|
5835
5992
|
"data-slot": "sidebar-menu-action",
|
|
@@ -5854,7 +6011,7 @@ function SidebarMenuBadge(_a) {
|
|
|
5854
6011
|
} = _b, props = __objRest(_b, [
|
|
5855
6012
|
"className"
|
|
5856
6013
|
]);
|
|
5857
|
-
return /* @__PURE__ */
|
|
6014
|
+
return /* @__PURE__ */ jsx51(
|
|
5858
6015
|
"div",
|
|
5859
6016
|
__spreadValues({
|
|
5860
6017
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -5880,7 +6037,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5880
6037
|
"showIcon"
|
|
5881
6038
|
]);
|
|
5882
6039
|
const width = "70%";
|
|
5883
|
-
return /* @__PURE__ */
|
|
6040
|
+
return /* @__PURE__ */ jsxs26(
|
|
5884
6041
|
"div",
|
|
5885
6042
|
__spreadProps(__spreadValues({
|
|
5886
6043
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -5888,14 +6045,14 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5888
6045
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className)
|
|
5889
6046
|
}, props), {
|
|
5890
6047
|
children: [
|
|
5891
|
-
showIcon && /* @__PURE__ */
|
|
6048
|
+
showIcon && /* @__PURE__ */ jsx51(
|
|
5892
6049
|
Skeleton,
|
|
5893
6050
|
{
|
|
5894
6051
|
className: "size-4 rounded-md",
|
|
5895
6052
|
"data-sidebar": "menu-skeleton-icon"
|
|
5896
6053
|
}
|
|
5897
6054
|
),
|
|
5898
|
-
/* @__PURE__ */
|
|
6055
|
+
/* @__PURE__ */ jsx51(
|
|
5899
6056
|
Skeleton,
|
|
5900
6057
|
{
|
|
5901
6058
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -5911,7 +6068,7 @@ function SidebarMenuSkeleton(_a) {
|
|
|
5911
6068
|
}
|
|
5912
6069
|
function SidebarMenuSub(_a) {
|
|
5913
6070
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5914
|
-
return /* @__PURE__ */
|
|
6071
|
+
return /* @__PURE__ */ jsx51(
|
|
5915
6072
|
"ul",
|
|
5916
6073
|
__spreadValues({
|
|
5917
6074
|
"data-slot": "sidebar-menu-sub",
|
|
@@ -5930,7 +6087,7 @@ function SidebarMenuSubItem(_a) {
|
|
|
5930
6087
|
} = _b, props = __objRest(_b, [
|
|
5931
6088
|
"className"
|
|
5932
6089
|
]);
|
|
5933
|
-
return /* @__PURE__ */
|
|
6090
|
+
return /* @__PURE__ */ jsx51(
|
|
5934
6091
|
"li",
|
|
5935
6092
|
__spreadValues({
|
|
5936
6093
|
"data-slot": "sidebar-menu-sub-item",
|
|
@@ -5952,7 +6109,7 @@ function SidebarMenuSubButton(_a) {
|
|
|
5952
6109
|
"className"
|
|
5953
6110
|
]);
|
|
5954
6111
|
const Comp = asChild ? Slot8.Root : "a";
|
|
5955
|
-
return /* @__PURE__ */
|
|
6112
|
+
return /* @__PURE__ */ jsx51(
|
|
5956
6113
|
Comp,
|
|
5957
6114
|
__spreadValues({
|
|
5958
6115
|
"data-slot": "sidebar-menu-sub-button",
|
|
@@ -5972,9 +6129,9 @@ function SidebarMenuSubButton(_a) {
|
|
|
5972
6129
|
}
|
|
5973
6130
|
|
|
5974
6131
|
// components/ui/slider.tsx
|
|
5975
|
-
import * as
|
|
6132
|
+
import * as React13 from "react";
|
|
5976
6133
|
import { Slider as SliderPrimitive } from "radix-ui";
|
|
5977
|
-
import { jsx as
|
|
6134
|
+
import { jsx as jsx52, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5978
6135
|
function Slider(_a) {
|
|
5979
6136
|
var _b = _a, {
|
|
5980
6137
|
className,
|
|
@@ -5989,11 +6146,11 @@ function Slider(_a) {
|
|
|
5989
6146
|
"min",
|
|
5990
6147
|
"max"
|
|
5991
6148
|
]);
|
|
5992
|
-
const _values =
|
|
6149
|
+
const _values = React13.useMemo(
|
|
5993
6150
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
5994
6151
|
[value, defaultValue, min, max]
|
|
5995
6152
|
);
|
|
5996
|
-
return /* @__PURE__ */
|
|
6153
|
+
return /* @__PURE__ */ jsxs27(
|
|
5997
6154
|
SliderPrimitive.Root,
|
|
5998
6155
|
__spreadProps(__spreadValues({
|
|
5999
6156
|
"data-slot": "slider",
|
|
@@ -6007,14 +6164,14 @@ function Slider(_a) {
|
|
|
6007
6164
|
)
|
|
6008
6165
|
}, props), {
|
|
6009
6166
|
children: [
|
|
6010
|
-
/* @__PURE__ */
|
|
6167
|
+
/* @__PURE__ */ jsx52(
|
|
6011
6168
|
SliderPrimitive.Track,
|
|
6012
6169
|
{
|
|
6013
6170
|
"data-slot": "slider-track",
|
|
6014
6171
|
className: cn(
|
|
6015
6172
|
"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
6173
|
),
|
|
6017
|
-
children: /* @__PURE__ */
|
|
6174
|
+
children: /* @__PURE__ */ jsx52(
|
|
6018
6175
|
SliderPrimitive.Range,
|
|
6019
6176
|
{
|
|
6020
6177
|
"data-slot": "slider-range",
|
|
@@ -6025,7 +6182,7 @@ function Slider(_a) {
|
|
|
6025
6182
|
)
|
|
6026
6183
|
}
|
|
6027
6184
|
),
|
|
6028
|
-
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */
|
|
6185
|
+
Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ jsx52(
|
|
6029
6186
|
SliderPrimitive.Thumb,
|
|
6030
6187
|
{
|
|
6031
6188
|
"data-slot": "slider-thumb",
|
|
@@ -6048,12 +6205,12 @@ import {
|
|
|
6048
6205
|
} from "lucide-react";
|
|
6049
6206
|
import { useTheme } from "next-themes";
|
|
6050
6207
|
import { Toaster as Sonner, toast } from "sonner";
|
|
6051
|
-
import { jsx as
|
|
6208
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
6052
6209
|
var Toaster = (_a) => {
|
|
6053
6210
|
var props = __objRest(_a, []);
|
|
6054
6211
|
const { theme = "system" } = useTheme();
|
|
6055
6212
|
const isMobile = useIsMobile();
|
|
6056
|
-
return /* @__PURE__ */
|
|
6213
|
+
return /* @__PURE__ */ jsx53(
|
|
6057
6214
|
Sonner,
|
|
6058
6215
|
__spreadValues({
|
|
6059
6216
|
theme,
|
|
@@ -6062,11 +6219,11 @@ var Toaster = (_a) => {
|
|
|
6062
6219
|
visibleToasts: isMobile ? 1 : 3,
|
|
6063
6220
|
duration: 4e3,
|
|
6064
6221
|
icons: {
|
|
6065
|
-
success: /* @__PURE__ */
|
|
6066
|
-
info: /* @__PURE__ */
|
|
6067
|
-
warning: /* @__PURE__ */
|
|
6068
|
-
error: /* @__PURE__ */
|
|
6069
|
-
loading: /* @__PURE__ */
|
|
6222
|
+
success: /* @__PURE__ */ jsx53(CircleCheckIcon, { className: "size-4" }),
|
|
6223
|
+
info: /* @__PURE__ */ jsx53(InfoIcon, { className: "size-4" }),
|
|
6224
|
+
warning: /* @__PURE__ */ jsx53(TriangleAlertIcon, { className: "size-4" }),
|
|
6225
|
+
error: /* @__PURE__ */ jsx53(OctagonXIcon, { className: "size-4" }),
|
|
6226
|
+
loading: /* @__PURE__ */ jsx53(Loader2Icon, { className: "size-4 animate-spin" })
|
|
6070
6227
|
},
|
|
6071
6228
|
toastOptions: {
|
|
6072
6229
|
classNames: {
|
|
@@ -6087,9 +6244,9 @@ var Toaster = (_a) => {
|
|
|
6087
6244
|
};
|
|
6088
6245
|
|
|
6089
6246
|
// components/ui/stepper.tsx
|
|
6090
|
-
import * as
|
|
6247
|
+
import * as React14 from "react";
|
|
6091
6248
|
import { Minus, Plus } from "lucide-react";
|
|
6092
|
-
import { jsx as
|
|
6249
|
+
import { jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6093
6250
|
function clamp(value, min, max) {
|
|
6094
6251
|
return Math.min(Math.max(value, min), max);
|
|
6095
6252
|
}
|
|
@@ -6123,16 +6280,16 @@ function Stepper({
|
|
|
6123
6280
|
}) {
|
|
6124
6281
|
const { container, buttonSize, iconClass } = stepperSizeConfig[size];
|
|
6125
6282
|
const isControlled = controlledValue !== void 0;
|
|
6126
|
-
const [internalValue, setInternalValue] =
|
|
6283
|
+
const [internalValue, setInternalValue] = React14.useState(
|
|
6127
6284
|
clamp(defaultValue, min, max)
|
|
6128
6285
|
);
|
|
6129
6286
|
const currentValue = isControlled ? controlledValue : internalValue;
|
|
6130
6287
|
const decimalPlaces = getDecimalPlaces(step);
|
|
6131
|
-
const [displayString, setDisplayString] =
|
|
6288
|
+
const [displayString, setDisplayString] = React14.useState(
|
|
6132
6289
|
formatValue(currentValue, decimalPlaces)
|
|
6133
6290
|
);
|
|
6134
|
-
const [isFocused, setIsFocused] =
|
|
6135
|
-
|
|
6291
|
+
const [isFocused, setIsFocused] = React14.useState(false);
|
|
6292
|
+
React14.useEffect(() => {
|
|
6136
6293
|
if (!isFocused) {
|
|
6137
6294
|
setDisplayString(formatValue(currentValue, decimalPlaces));
|
|
6138
6295
|
}
|
|
@@ -6182,14 +6339,14 @@ function Stepper({
|
|
|
6182
6339
|
}
|
|
6183
6340
|
}
|
|
6184
6341
|
}
|
|
6185
|
-
return /* @__PURE__ */
|
|
6342
|
+
return /* @__PURE__ */ jsxs28(
|
|
6186
6343
|
InputGroup,
|
|
6187
6344
|
{
|
|
6188
6345
|
"data-slot": "stepper",
|
|
6189
6346
|
"data-disabled": disabled || void 0,
|
|
6190
6347
|
className: cn("w-32", container, className),
|
|
6191
6348
|
children: [
|
|
6192
|
-
/* @__PURE__ */
|
|
6349
|
+
/* @__PURE__ */ jsx54(InputGroupAddon, { align: "inline-start", children: /* @__PURE__ */ jsx54(
|
|
6193
6350
|
InputGroupButton,
|
|
6194
6351
|
{
|
|
6195
6352
|
size: buttonSize,
|
|
@@ -6197,10 +6354,10 @@ function Stepper({
|
|
|
6197
6354
|
onClick: handleDecrement,
|
|
6198
6355
|
disabled: disabled || currentValue <= min,
|
|
6199
6356
|
"aria-label": "Decrease value",
|
|
6200
|
-
children: /* @__PURE__ */
|
|
6357
|
+
children: /* @__PURE__ */ jsx54(Minus, { className: iconClass })
|
|
6201
6358
|
}
|
|
6202
6359
|
) }),
|
|
6203
|
-
/* @__PURE__ */
|
|
6360
|
+
/* @__PURE__ */ jsx54(
|
|
6204
6361
|
InputGroupInput,
|
|
6205
6362
|
{
|
|
6206
6363
|
type: "text",
|
|
@@ -6222,9 +6379,9 @@ function Stepper({
|
|
|
6222
6379
|
className: "text-center [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
|
|
6223
6380
|
}
|
|
6224
6381
|
),
|
|
6225
|
-
/* @__PURE__ */
|
|
6226
|
-
/* @__PURE__ */
|
|
6227
|
-
/* @__PURE__ */
|
|
6382
|
+
/* @__PURE__ */ jsxs28(InputGroupAddon, { align: "inline-end", children: [
|
|
6383
|
+
/* @__PURE__ */ jsx54(InputGroupText, { className: "font-normal text-on-subtle", children: "USDT" }),
|
|
6384
|
+
/* @__PURE__ */ jsx54(
|
|
6228
6385
|
InputGroupButton,
|
|
6229
6386
|
{
|
|
6230
6387
|
size: buttonSize,
|
|
@@ -6232,7 +6389,7 @@ function Stepper({
|
|
|
6232
6389
|
onClick: handleIncrement,
|
|
6233
6390
|
disabled: disabled || currentValue >= max,
|
|
6234
6391
|
"aria-label": "Increase value",
|
|
6235
|
-
children: /* @__PURE__ */
|
|
6392
|
+
children: /* @__PURE__ */ jsx54(Plus, { className: iconClass })
|
|
6236
6393
|
}
|
|
6237
6394
|
)
|
|
6238
6395
|
] })
|
|
@@ -6243,7 +6400,7 @@ function Stepper({
|
|
|
6243
6400
|
|
|
6244
6401
|
// components/ui/switch.tsx
|
|
6245
6402
|
import { Switch as SwitchPrimitive } from "radix-ui";
|
|
6246
|
-
import { jsx as
|
|
6403
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
6247
6404
|
function Switch(_a) {
|
|
6248
6405
|
var _b = _a, {
|
|
6249
6406
|
className,
|
|
@@ -6252,7 +6409,7 @@ function Switch(_a) {
|
|
|
6252
6409
|
"className",
|
|
6253
6410
|
"size"
|
|
6254
6411
|
]);
|
|
6255
|
-
return /* @__PURE__ */
|
|
6412
|
+
return /* @__PURE__ */ jsx55(
|
|
6256
6413
|
SwitchPrimitive.Root,
|
|
6257
6414
|
__spreadProps(__spreadValues({
|
|
6258
6415
|
"data-slot": "switch",
|
|
@@ -6262,7 +6419,7 @@ function Switch(_a) {
|
|
|
6262
6419
|
className
|
|
6263
6420
|
)
|
|
6264
6421
|
}, props), {
|
|
6265
|
-
children: /* @__PURE__ */
|
|
6422
|
+
children: /* @__PURE__ */ jsx55(
|
|
6266
6423
|
SwitchPrimitive.Thumb,
|
|
6267
6424
|
{
|
|
6268
6425
|
"data-slot": "switch-thumb",
|
|
@@ -6276,15 +6433,15 @@ function Switch(_a) {
|
|
|
6276
6433
|
}
|
|
6277
6434
|
|
|
6278
6435
|
// components/ui/table.tsx
|
|
6279
|
-
import { jsx as
|
|
6436
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
6280
6437
|
function Table(_a) {
|
|
6281
6438
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6282
|
-
return /* @__PURE__ */
|
|
6439
|
+
return /* @__PURE__ */ jsx56(
|
|
6283
6440
|
"div",
|
|
6284
6441
|
{
|
|
6285
6442
|
"data-slot": "table-container",
|
|
6286
6443
|
className: "relative w-full overflow-x-auto",
|
|
6287
|
-
children: /* @__PURE__ */
|
|
6444
|
+
children: /* @__PURE__ */ jsx56(
|
|
6288
6445
|
"table",
|
|
6289
6446
|
__spreadValues({
|
|
6290
6447
|
"data-slot": "table",
|
|
@@ -6296,7 +6453,7 @@ function Table(_a) {
|
|
|
6296
6453
|
}
|
|
6297
6454
|
function TableHeader(_a) {
|
|
6298
6455
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6299
|
-
return /* @__PURE__ */
|
|
6456
|
+
return /* @__PURE__ */ jsx56(
|
|
6300
6457
|
"thead",
|
|
6301
6458
|
__spreadValues({
|
|
6302
6459
|
"data-slot": "table-header",
|
|
@@ -6306,7 +6463,7 @@ function TableHeader(_a) {
|
|
|
6306
6463
|
}
|
|
6307
6464
|
function TableBody(_a) {
|
|
6308
6465
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6309
|
-
return /* @__PURE__ */
|
|
6466
|
+
return /* @__PURE__ */ jsx56(
|
|
6310
6467
|
"tbody",
|
|
6311
6468
|
__spreadValues({
|
|
6312
6469
|
"data-slot": "table-body",
|
|
@@ -6316,7 +6473,7 @@ function TableBody(_a) {
|
|
|
6316
6473
|
}
|
|
6317
6474
|
function TableFooter(_a) {
|
|
6318
6475
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6319
|
-
return /* @__PURE__ */
|
|
6476
|
+
return /* @__PURE__ */ jsx56(
|
|
6320
6477
|
"tfoot",
|
|
6321
6478
|
__spreadValues({
|
|
6322
6479
|
"data-slot": "table-footer",
|
|
@@ -6329,7 +6486,7 @@ function TableFooter(_a) {
|
|
|
6329
6486
|
}
|
|
6330
6487
|
function TableRow(_a) {
|
|
6331
6488
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6332
|
-
return /* @__PURE__ */
|
|
6489
|
+
return /* @__PURE__ */ jsx56(
|
|
6333
6490
|
"tr",
|
|
6334
6491
|
__spreadValues({
|
|
6335
6492
|
"data-slot": "table-row",
|
|
@@ -6342,7 +6499,7 @@ function TableRow(_a) {
|
|
|
6342
6499
|
}
|
|
6343
6500
|
function TableHead(_a) {
|
|
6344
6501
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6345
|
-
return /* @__PURE__ */
|
|
6502
|
+
return /* @__PURE__ */ jsx56(
|
|
6346
6503
|
"th",
|
|
6347
6504
|
__spreadValues({
|
|
6348
6505
|
"data-slot": "table-head",
|
|
@@ -6355,7 +6512,7 @@ function TableHead(_a) {
|
|
|
6355
6512
|
}
|
|
6356
6513
|
function TableCell(_a) {
|
|
6357
6514
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6358
|
-
return /* @__PURE__ */
|
|
6515
|
+
return /* @__PURE__ */ jsx56(
|
|
6359
6516
|
"td",
|
|
6360
6517
|
__spreadValues({
|
|
6361
6518
|
"data-slot": "table-cell",
|
|
@@ -6372,7 +6529,7 @@ function TableCaption(_a) {
|
|
|
6372
6529
|
} = _b, props = __objRest(_b, [
|
|
6373
6530
|
"className"
|
|
6374
6531
|
]);
|
|
6375
|
-
return /* @__PURE__ */
|
|
6532
|
+
return /* @__PURE__ */ jsx56(
|
|
6376
6533
|
"caption",
|
|
6377
6534
|
__spreadValues({
|
|
6378
6535
|
"data-slot": "table-caption",
|
|
@@ -6384,7 +6541,7 @@ function TableCaption(_a) {
|
|
|
6384
6541
|
// components/ui/tabs.tsx
|
|
6385
6542
|
import { cva as cva13 } from "class-variance-authority";
|
|
6386
6543
|
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
6387
|
-
import { jsx as
|
|
6544
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
6388
6545
|
function Tabs(_a) {
|
|
6389
6546
|
var _b = _a, {
|
|
6390
6547
|
className,
|
|
@@ -6393,7 +6550,7 @@ function Tabs(_a) {
|
|
|
6393
6550
|
"className",
|
|
6394
6551
|
"orientation"
|
|
6395
6552
|
]);
|
|
6396
|
-
return /* @__PURE__ */
|
|
6553
|
+
return /* @__PURE__ */ jsx57(
|
|
6397
6554
|
TabsPrimitive.Root,
|
|
6398
6555
|
__spreadValues({
|
|
6399
6556
|
"data-slot": "tabs",
|
|
@@ -6436,7 +6593,7 @@ function TabsList(_a) {
|
|
|
6436
6593
|
"variant",
|
|
6437
6594
|
"size"
|
|
6438
6595
|
]);
|
|
6439
|
-
return /* @__PURE__ */
|
|
6596
|
+
return /* @__PURE__ */ jsx57(
|
|
6440
6597
|
TabsPrimitive.List,
|
|
6441
6598
|
__spreadValues({
|
|
6442
6599
|
"data-slot": "tabs-list",
|
|
@@ -6454,7 +6611,7 @@ function TabsTrigger(_a) {
|
|
|
6454
6611
|
"className",
|
|
6455
6612
|
"iconPosition"
|
|
6456
6613
|
]);
|
|
6457
|
-
return /* @__PURE__ */
|
|
6614
|
+
return /* @__PURE__ */ jsx57(
|
|
6458
6615
|
TabsPrimitive.Trigger,
|
|
6459
6616
|
__spreadValues({
|
|
6460
6617
|
"data-slot": "tabs-trigger",
|
|
@@ -6480,7 +6637,7 @@ function TabsContent(_a) {
|
|
|
6480
6637
|
} = _b, props = __objRest(_b, [
|
|
6481
6638
|
"className"
|
|
6482
6639
|
]);
|
|
6483
|
-
return /* @__PURE__ */
|
|
6640
|
+
return /* @__PURE__ */ jsx57(
|
|
6484
6641
|
TabsPrimitive.Content,
|
|
6485
6642
|
__spreadValues({
|
|
6486
6643
|
"data-slot": "tabs-content",
|
|
@@ -6491,7 +6648,7 @@ function TabsContent(_a) {
|
|
|
6491
6648
|
|
|
6492
6649
|
// components/ui/ticket-card.tsx
|
|
6493
6650
|
import { ArrowRight as ArrowRight2, Info as Info2 } from "lucide-react";
|
|
6494
|
-
import { Fragment as
|
|
6651
|
+
import { Fragment as Fragment5, jsx as jsx58, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6495
6652
|
function formatBalanceValue(raw) {
|
|
6496
6653
|
const match = raw.match(/^(\D*)([\d,]+(?:\.\d+)?)(\D*)$/);
|
|
6497
6654
|
if (!match) return raw;
|
|
@@ -6515,23 +6672,23 @@ function TicketCard({
|
|
|
6515
6672
|
stubDisabled = false,
|
|
6516
6673
|
compact = false
|
|
6517
6674
|
}) {
|
|
6518
|
-
return /* @__PURE__ */
|
|
6519
|
-
/* @__PURE__ */
|
|
6520
|
-
icon && /* @__PURE__ */
|
|
6521
|
-
/* @__PURE__ */
|
|
6522
|
-
/* @__PURE__ */
|
|
6523
|
-
/* @__PURE__ */
|
|
6524
|
-
/* @__PURE__ */
|
|
6525
|
-
currency && /* @__PURE__ */
|
|
6675
|
+
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: [
|
|
6676
|
+
/* @__PURE__ */ jsxs29("div", { className: cn("flex flex-1 items-center overflow-hidden", compact ? "gap-2 px-2" : "gap-4 px-4"), children: [
|
|
6677
|
+
icon && /* @__PURE__ */ jsx58("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
6678
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex h-11 flex-col justify-center gap-1 whitespace-nowrap", children: [
|
|
6679
|
+
/* @__PURE__ */ jsx58("p", { className: "text-xs text-on-subtle", children: label }),
|
|
6680
|
+
/* @__PURE__ */ jsxs29("p", { className: "leading-none", children: [
|
|
6681
|
+
/* @__PURE__ */ jsx58("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
6682
|
+
currency && /* @__PURE__ */ jsxs29(Fragment5, { children: [
|
|
6526
6683
|
" ",
|
|
6527
|
-
/* @__PURE__ */
|
|
6684
|
+
/* @__PURE__ */ jsx58("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6528
6685
|
] })
|
|
6529
6686
|
] })
|
|
6530
6687
|
] })
|
|
6531
6688
|
] }),
|
|
6532
|
-
/* @__PURE__ */
|
|
6533
|
-
/* @__PURE__ */
|
|
6534
|
-
/* @__PURE__ */
|
|
6689
|
+
/* @__PURE__ */ jsx58("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
6690
|
+
/* @__PURE__ */ jsx58("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[68px] z-10 size-6 rounded-full bg-prominent" }),
|
|
6691
|
+
/* @__PURE__ */ jsx58(
|
|
6535
6692
|
"div",
|
|
6536
6693
|
{
|
|
6537
6694
|
"aria-hidden": true,
|
|
@@ -6542,7 +6699,7 @@ function TicketCard({
|
|
|
6542
6699
|
}
|
|
6543
6700
|
}
|
|
6544
6701
|
),
|
|
6545
|
-
/* @__PURE__ */
|
|
6702
|
+
/* @__PURE__ */ jsxs29(
|
|
6546
6703
|
"button",
|
|
6547
6704
|
{
|
|
6548
6705
|
type: "button",
|
|
@@ -6556,7 +6713,7 @@ function TicketCard({
|
|
|
6556
6713
|
stubDisabled ? "cursor-not-allowed opacity-50" : "hover:bg-primary-hover"
|
|
6557
6714
|
),
|
|
6558
6715
|
children: [
|
|
6559
|
-
!stubDisabled && /* @__PURE__ */
|
|
6716
|
+
!stubDisabled && /* @__PURE__ */ jsx58(
|
|
6560
6717
|
"span",
|
|
6561
6718
|
{
|
|
6562
6719
|
"aria-hidden": true,
|
|
@@ -6566,8 +6723,8 @@ function TicketCard({
|
|
|
6566
6723
|
}
|
|
6567
6724
|
}
|
|
6568
6725
|
),
|
|
6569
|
-
/* @__PURE__ */
|
|
6570
|
-
/* @__PURE__ */
|
|
6726
|
+
/* @__PURE__ */ jsx58(ArrowRight2, { className: "size-4 text-on-primary" }),
|
|
6727
|
+
/* @__PURE__ */ jsx58("span", { className: "text-sm font-semibold text-on-primary", children: stubLabel })
|
|
6571
6728
|
]
|
|
6572
6729
|
}
|
|
6573
6730
|
)
|
|
@@ -6593,58 +6750,58 @@ function CreditTicketCard({
|
|
|
6593
6750
|
badgeInfoCloseLabel,
|
|
6594
6751
|
compact = false
|
|
6595
6752
|
}) {
|
|
6596
|
-
return /* @__PURE__ */
|
|
6753
|
+
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
6754
|
(() => {
|
|
6598
6755
|
const badgeText = badgeValue || badgeCurrency ? `${badgeLabel}: ${badgeValue}${badgeCurrency ? ` ${badgeCurrency}` : ""}` : badgeLabel;
|
|
6599
|
-
const creditBadge = /* @__PURE__ */
|
|
6756
|
+
const creditBadge = /* @__PURE__ */ jsxs29(Badge, { variant: "fill-credit", size: "sm", className: "!gap-1 !font-medium !tracking-normal", children: [
|
|
6600
6757
|
badgeIcon,
|
|
6601
6758
|
badgeText,
|
|
6602
|
-
badgeInfo && /* @__PURE__ */
|
|
6603
|
-
/* @__PURE__ */
|
|
6759
|
+
badgeInfo && /* @__PURE__ */ jsx58(TooltipProvider, { children: /* @__PURE__ */ jsxs29(Tooltip2, { children: [
|
|
6760
|
+
/* @__PURE__ */ jsx58(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx58(
|
|
6604
6761
|
"button",
|
|
6605
6762
|
{
|
|
6606
6763
|
type: "button",
|
|
6607
6764
|
"aria-label": `More info about ${badgeLabel.toLowerCase()}`,
|
|
6608
6765
|
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__ */
|
|
6766
|
+
children: /* @__PURE__ */ jsx58(Info2, { className: "!size-3.5", strokeWidth: 2 })
|
|
6610
6767
|
}
|
|
6611
6768
|
) }),
|
|
6612
|
-
/* @__PURE__ */
|
|
6769
|
+
/* @__PURE__ */ jsx58(TooltipContent, { side: badgeInfoSide, align: badgeInfoAlign, title: badgeInfoTitle, closeLabel: badgeInfoCloseLabel, variant: "inverse", className: "max-w-xs whitespace-normal", children: badgeInfo })
|
|
6613
6770
|
] }) })
|
|
6614
6771
|
] });
|
|
6615
|
-
const labelValue = /* @__PURE__ */
|
|
6616
|
-
/* @__PURE__ */
|
|
6617
|
-
/* @__PURE__ */
|
|
6618
|
-
/* @__PURE__ */
|
|
6619
|
-
currency && /* @__PURE__ */
|
|
6772
|
+
const labelValue = /* @__PURE__ */ jsxs29("div", { className: "flex h-11 flex-col justify-center gap-1 whitespace-nowrap", children: [
|
|
6773
|
+
/* @__PURE__ */ jsx58("p", { className: "text-xs text-on-subtle", children: label }),
|
|
6774
|
+
/* @__PURE__ */ jsxs29("p", { className: "leading-none", children: [
|
|
6775
|
+
/* @__PURE__ */ jsx58("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
6776
|
+
currency && /* @__PURE__ */ jsxs29(Fragment5, { children: [
|
|
6620
6777
|
" ",
|
|
6621
|
-
/* @__PURE__ */
|
|
6778
|
+
/* @__PURE__ */ jsx58("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6622
6779
|
] })
|
|
6623
6780
|
] })
|
|
6624
6781
|
] });
|
|
6625
|
-
return /* @__PURE__ */
|
|
6782
|
+
return /* @__PURE__ */ jsx58(
|
|
6626
6783
|
"div",
|
|
6627
6784
|
{
|
|
6628
6785
|
className: cn(
|
|
6629
6786
|
"flex flex-1 overflow-hidden",
|
|
6630
6787
|
compact ? "flex-col gap-2 px-2 py-4" : "items-center gap-4 px-4 py-4"
|
|
6631
6788
|
),
|
|
6632
|
-
children: compact ? /* @__PURE__ */
|
|
6633
|
-
/* @__PURE__ */
|
|
6634
|
-
icon && /* @__PURE__ */
|
|
6789
|
+
children: compact ? /* @__PURE__ */ jsxs29("div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
6790
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex items-center gap-2", children: [
|
|
6791
|
+
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
6792
|
labelValue
|
|
6636
6793
|
] }),
|
|
6637
|
-
/* @__PURE__ */
|
|
6638
|
-
] }) : /* @__PURE__ */
|
|
6639
|
-
icon && /* @__PURE__ */
|
|
6640
|
-
/* @__PURE__ */
|
|
6641
|
-
/* @__PURE__ */
|
|
6642
|
-
/* @__PURE__ */
|
|
6643
|
-
/* @__PURE__ */
|
|
6644
|
-
/* @__PURE__ */
|
|
6645
|
-
currency && /* @__PURE__ */
|
|
6794
|
+
/* @__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 })
|
|
6795
|
+
] }) : /* @__PURE__ */ jsxs29(Fragment5, { children: [
|
|
6796
|
+
icon && /* @__PURE__ */ jsx58("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-primary text-primary", children: icon }),
|
|
6797
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex flex-col gap-1 whitespace-nowrap", children: [
|
|
6798
|
+
/* @__PURE__ */ jsx58("p", { className: "text-xs text-on-subtle", children: label }),
|
|
6799
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex items-center gap-4", children: [
|
|
6800
|
+
/* @__PURE__ */ jsxs29("p", { className: "leading-none", children: [
|
|
6801
|
+
/* @__PURE__ */ jsx58("span", { className: "text-[20px] font-bold text-on-prominent", children: formatBalanceValue(value) }),
|
|
6802
|
+
currency && /* @__PURE__ */ jsxs29(Fragment5, { children: [
|
|
6646
6803
|
" ",
|
|
6647
|
-
/* @__PURE__ */
|
|
6804
|
+
/* @__PURE__ */ jsx58("span", { className: "text-sm text-on-subtle", children: currency })
|
|
6648
6805
|
] })
|
|
6649
6806
|
] }),
|
|
6650
6807
|
creditBadge
|
|
@@ -6654,9 +6811,9 @@ function CreditTicketCard({
|
|
|
6654
6811
|
}
|
|
6655
6812
|
);
|
|
6656
6813
|
})(),
|
|
6657
|
-
/* @__PURE__ */
|
|
6658
|
-
/* @__PURE__ */
|
|
6659
|
-
/* @__PURE__ */
|
|
6814
|
+
/* @__PURE__ */ jsx58("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] top-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
6815
|
+
/* @__PURE__ */ jsx58("div", { "aria-hidden": true, className: "pointer-events-none absolute right-[88px] bottom-[-12px] z-10 size-6 rounded-full bg-prominent" }),
|
|
6816
|
+
/* @__PURE__ */ jsx58(
|
|
6660
6817
|
"div",
|
|
6661
6818
|
{
|
|
6662
6819
|
"aria-hidden": true,
|
|
@@ -6667,7 +6824,7 @@ function CreditTicketCard({
|
|
|
6667
6824
|
}
|
|
6668
6825
|
}
|
|
6669
6826
|
),
|
|
6670
|
-
/* @__PURE__ */
|
|
6827
|
+
/* @__PURE__ */ jsxs29(
|
|
6671
6828
|
"button",
|
|
6672
6829
|
{
|
|
6673
6830
|
type: "button",
|
|
@@ -6681,7 +6838,7 @@ function CreditTicketCard({
|
|
|
6681
6838
|
stubDisabled ? "cursor-not-allowed opacity-50" : "hover:bg-primary-hover"
|
|
6682
6839
|
),
|
|
6683
6840
|
children: [
|
|
6684
|
-
!stubDisabled && /* @__PURE__ */
|
|
6841
|
+
!stubDisabled && /* @__PURE__ */ jsx58(
|
|
6685
6842
|
"span",
|
|
6686
6843
|
{
|
|
6687
6844
|
"aria-hidden": true,
|
|
@@ -6691,8 +6848,8 @@ function CreditTicketCard({
|
|
|
6691
6848
|
}
|
|
6692
6849
|
}
|
|
6693
6850
|
),
|
|
6694
|
-
/* @__PURE__ */
|
|
6695
|
-
/* @__PURE__ */
|
|
6851
|
+
/* @__PURE__ */ jsx58(ArrowRight2, { className: "size-4 text-on-primary" }),
|
|
6852
|
+
/* @__PURE__ */ jsx58("span", { className: "text-sm font-semibold text-on-primary", children: stubLabel })
|
|
6696
6853
|
]
|
|
6697
6854
|
}
|
|
6698
6855
|
)
|
|
@@ -6703,7 +6860,7 @@ var TicketCardDesktop = TicketCard;
|
|
|
6703
6860
|
// components/ui/toggle.tsx
|
|
6704
6861
|
import { cva as cva14 } from "class-variance-authority";
|
|
6705
6862
|
import { Toggle as TogglePrimitive } from "radix-ui";
|
|
6706
|
-
import { jsx as
|
|
6863
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
6707
6864
|
var toggleVariants = cva14(
|
|
6708
6865
|
"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
6866
|
{
|
|
@@ -6734,7 +6891,7 @@ function Toggle(_a) {
|
|
|
6734
6891
|
"variant",
|
|
6735
6892
|
"size"
|
|
6736
6893
|
]);
|
|
6737
|
-
return /* @__PURE__ */
|
|
6894
|
+
return /* @__PURE__ */ jsx59(
|
|
6738
6895
|
TogglePrimitive.Root,
|
|
6739
6896
|
__spreadValues({
|
|
6740
6897
|
"data-slot": "toggle",
|
|
@@ -6744,10 +6901,10 @@ function Toggle(_a) {
|
|
|
6744
6901
|
}
|
|
6745
6902
|
|
|
6746
6903
|
// components/ui/toggle-group.tsx
|
|
6747
|
-
import * as
|
|
6904
|
+
import * as React15 from "react";
|
|
6748
6905
|
import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
|
|
6749
|
-
import { jsx as
|
|
6750
|
-
var ToggleGroupContext =
|
|
6906
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
6907
|
+
var ToggleGroupContext = React15.createContext({
|
|
6751
6908
|
size: "default",
|
|
6752
6909
|
variant: "default",
|
|
6753
6910
|
spacing: 0
|
|
@@ -6766,7 +6923,7 @@ function ToggleGroup(_a) {
|
|
|
6766
6923
|
"spacing",
|
|
6767
6924
|
"children"
|
|
6768
6925
|
]);
|
|
6769
|
-
return /* @__PURE__ */
|
|
6926
|
+
return /* @__PURE__ */ jsx60(
|
|
6770
6927
|
ToggleGroupPrimitive.Root,
|
|
6771
6928
|
__spreadProps(__spreadValues({
|
|
6772
6929
|
"data-slot": "toggle-group",
|
|
@@ -6779,7 +6936,7 @@ function ToggleGroup(_a) {
|
|
|
6779
6936
|
className
|
|
6780
6937
|
)
|
|
6781
6938
|
}, props), {
|
|
6782
|
-
children: /* @__PURE__ */
|
|
6939
|
+
children: /* @__PURE__ */ jsx60(ToggleGroupContext.Provider, { value: { variant, size, spacing }, children })
|
|
6783
6940
|
})
|
|
6784
6941
|
);
|
|
6785
6942
|
}
|
|
@@ -6795,8 +6952,8 @@ function ToggleGroupItem(_a) {
|
|
|
6795
6952
|
"variant",
|
|
6796
6953
|
"size"
|
|
6797
6954
|
]);
|
|
6798
|
-
const context =
|
|
6799
|
-
return /* @__PURE__ */
|
|
6955
|
+
const context = React15.useContext(ToggleGroupContext);
|
|
6956
|
+
return /* @__PURE__ */ jsx60(
|
|
6800
6957
|
ToggleGroupPrimitive.Item,
|
|
6801
6958
|
__spreadProps(__spreadValues({
|
|
6802
6959
|
"data-slot": "toggle-group-item",
|
|
@@ -6819,7 +6976,7 @@ function ToggleGroupItem(_a) {
|
|
|
6819
6976
|
}
|
|
6820
6977
|
|
|
6821
6978
|
// components/blocks/result-block.tsx
|
|
6822
|
-
import { Fragment as
|
|
6979
|
+
import { Fragment as Fragment6, jsx as jsx61, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6823
6980
|
var THUMBS_UP_DATA_URL = "data:image/webp;base64,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";
|
|
6824
6981
|
var THUMBS_DOWN_DATA_URL = "data:image/webp;base64,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";
|
|
6825
6982
|
function ResultBlock({
|
|
@@ -6836,9 +6993,9 @@ function ResultBlock({
|
|
|
6836
6993
|
const signedAmount = isWin ? `+${amount}` : `\u2212${amount}`;
|
|
6837
6994
|
const amountColorClass = isWin ? "text-semantic-win" : "text-semantic-loss";
|
|
6838
6995
|
const haloBgClass = isWin ? "bg-semantic-win" : "bg-semantic-loss";
|
|
6839
|
-
return /* @__PURE__ */
|
|
6840
|
-
/* @__PURE__ */
|
|
6841
|
-
/* @__PURE__ */
|
|
6996
|
+
return /* @__PURE__ */ jsxs30(Card, { className: "w-80 shrink-0 overflow-hidden rounded-md shadow-sm px-5 py-5 items-center gap-3", children: [
|
|
6997
|
+
/* @__PURE__ */ jsxs30("div", { className: "relative flex items-center justify-center py-2", children: [
|
|
6998
|
+
/* @__PURE__ */ jsx61(
|
|
6842
6999
|
"span",
|
|
6843
7000
|
{
|
|
6844
7001
|
"aria-hidden": true,
|
|
@@ -6846,7 +7003,7 @@ function ResultBlock({
|
|
|
6846
7003
|
className: `absolute size-24 rounded-full blur-2xl opacity-20 ${haloBgClass}`
|
|
6847
7004
|
}
|
|
6848
7005
|
),
|
|
6849
|
-
/* @__PURE__ */
|
|
7006
|
+
/* @__PURE__ */ jsx61(
|
|
6850
7007
|
"img",
|
|
6851
7008
|
{
|
|
6852
7009
|
"data-results-motion": isWin ? "icon-win" : "icon-loss",
|
|
@@ -6856,28 +7013,28 @@ function ResultBlock({
|
|
|
6856
7013
|
}
|
|
6857
7014
|
)
|
|
6858
7015
|
] }),
|
|
6859
|
-
/* @__PURE__ */
|
|
6860
|
-
/* @__PURE__ */
|
|
6861
|
-
/* @__PURE__ */
|
|
6862
|
-
/* @__PURE__ */
|
|
7016
|
+
/* @__PURE__ */ jsx61("p", { className: "text-lg font-semibold text-on-prominent", children: titleText }),
|
|
7017
|
+
/* @__PURE__ */ jsxs30("p", { className: `flex items-baseline gap-1.5 ${amountColorClass}`, children: [
|
|
7018
|
+
/* @__PURE__ */ jsx61("span", { className: "font-display text-4xl font-bold tabular-nums tracking-tight", children: signedAmount }),
|
|
7019
|
+
/* @__PURE__ */ jsx61("span", { className: "text-lg font-semibold", children: currency })
|
|
6863
7020
|
] }),
|
|
6864
|
-
/* @__PURE__ */
|
|
6865
|
-
/* @__PURE__ */
|
|
7021
|
+
/* @__PURE__ */ jsxs30("div", { className: "flex items-center gap-2", children: [
|
|
7022
|
+
/* @__PURE__ */ jsxs30(Badge, { variant: "standard", size: "sm", children: [
|
|
6866
7023
|
contractLabel,
|
|
6867
|
-
pickedDigit !== void 0 && /* @__PURE__ */
|
|
6868
|
-
/* @__PURE__ */
|
|
6869
|
-
/* @__PURE__ */
|
|
7024
|
+
pickedDigit !== void 0 && /* @__PURE__ */ jsxs30(Fragment6, { children: [
|
|
7025
|
+
/* @__PURE__ */ jsx61("span", { "aria-hidden": true, className: "h-3 w-px bg-border-prominent/40 mx-1" }),
|
|
7026
|
+
/* @__PURE__ */ jsx61("span", { className: "tabular-nums", children: pickedDigit })
|
|
6870
7027
|
] })
|
|
6871
7028
|
] }),
|
|
6872
|
-
/* @__PURE__ */
|
|
7029
|
+
/* @__PURE__ */ jsx61(Badge, { variant: "standard", size: "sm", children: duration })
|
|
6873
7030
|
] }),
|
|
6874
|
-
/* @__PURE__ */
|
|
6875
|
-
ctaMode === "next-round" && /* @__PURE__ */
|
|
6876
|
-
ctaMode === "go-again" && /* @__PURE__ */
|
|
6877
|
-
ctaMode === "conversion" && /* @__PURE__ */
|
|
6878
|
-
/* @__PURE__ */
|
|
6879
|
-
/* @__PURE__ */
|
|
6880
|
-
/* @__PURE__ */
|
|
7031
|
+
/* @__PURE__ */ jsxs30("div", { className: "w-full pt-2", children: [
|
|
7032
|
+
ctaMode === "next-round" && /* @__PURE__ */ jsx61(Button, { className: "w-full", children: "Next round" }),
|
|
7033
|
+
ctaMode === "go-again" && /* @__PURE__ */ jsx61(Button, { className: "w-full", children: "Go again" }),
|
|
7034
|
+
ctaMode === "conversion" && /* @__PURE__ */ jsxs30("div", { className: "w-full flex flex-col gap-3", children: [
|
|
7035
|
+
/* @__PURE__ */ jsx61("p", { className: "text-center text-base font-semibold text-on-prominent", children: "Ready to play for real?" }),
|
|
7036
|
+
/* @__PURE__ */ jsx61(Button, { className: "w-full", children: "Deposit now" }),
|
|
7037
|
+
/* @__PURE__ */ jsx61(Button, { variant: "secondary", className: "w-full", children: "Stay in demo" })
|
|
6881
7038
|
] })
|
|
6882
7039
|
] })
|
|
6883
7040
|
] });
|
|
@@ -6888,21 +7045,21 @@ function ResultDialog({
|
|
|
6888
7045
|
primaryLabel,
|
|
6889
7046
|
secondaryLabel
|
|
6890
7047
|
}) {
|
|
6891
|
-
return /* @__PURE__ */
|
|
6892
|
-
/* @__PURE__ */
|
|
6893
|
-
/* @__PURE__ */
|
|
6894
|
-
/* @__PURE__ */
|
|
7048
|
+
return /* @__PURE__ */ jsxs30(Card, { className: "w-80 shrink-0 overflow-hidden rounded-md shadow-sm px-5 py-6 items-center gap-4", children: [
|
|
7049
|
+
/* @__PURE__ */ jsxs30("div", { className: "flex flex-col items-center gap-2 text-center", children: [
|
|
7050
|
+
/* @__PURE__ */ jsx61("p", { className: "text-lg font-semibold text-on-prominent", children: title }),
|
|
7051
|
+
/* @__PURE__ */ jsx61("p", { className: "text-sm text-on-subtle", children: body })
|
|
6895
7052
|
] }),
|
|
6896
|
-
/* @__PURE__ */
|
|
6897
|
-
/* @__PURE__ */
|
|
6898
|
-
/* @__PURE__ */
|
|
7053
|
+
/* @__PURE__ */ jsxs30("div", { className: "w-full flex flex-col gap-2", children: [
|
|
7054
|
+
/* @__PURE__ */ jsx61(Button, { className: "w-full", children: primaryLabel }),
|
|
7055
|
+
/* @__PURE__ */ jsx61(Button, { variant: "secondary", className: "w-full", children: secondaryLabel })
|
|
6899
7056
|
] })
|
|
6900
7057
|
] });
|
|
6901
7058
|
}
|
|
6902
7059
|
|
|
6903
7060
|
// components/blocks/header-navigation-block.tsx
|
|
6904
7061
|
import { ArrowLeft as ArrowLeft2, History } from "lucide-react";
|
|
6905
|
-
import { jsx as
|
|
7062
|
+
import { jsx as jsx62, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6906
7063
|
function HeaderNavigationBlock({
|
|
6907
7064
|
onBack,
|
|
6908
7065
|
badge,
|
|
@@ -6911,15 +7068,15 @@ function HeaderNavigationBlock({
|
|
|
6911
7068
|
actions
|
|
6912
7069
|
}) {
|
|
6913
7070
|
var _a;
|
|
6914
|
-
return /* @__PURE__ */
|
|
6915
|
-
onBack && /* @__PURE__ */
|
|
6916
|
-
/* @__PURE__ */
|
|
6917
|
-
badge && /* @__PURE__ */
|
|
6918
|
-
/* @__PURE__ */
|
|
6919
|
-
/* @__PURE__ */
|
|
7071
|
+
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: [
|
|
7072
|
+
onBack && /* @__PURE__ */ jsx62(NavigationButton, { type: "button", size: "md", "aria-label": "Back", onClick: onBack, children: /* @__PURE__ */ jsx62(ArrowLeft2, { className: "size-5" }) }),
|
|
7073
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex min-w-0 flex-1 items-center justify-center gap-2", children: [
|
|
7074
|
+
badge && /* @__PURE__ */ jsx62(Badge, { variant: (_a = badge.variant) != null ? _a : "fill-warning", size: "sm", children: badge.label }),
|
|
7075
|
+
/* @__PURE__ */ jsx62("span", { className: "font-display font-semibold tabular-nums text-on-prominent", children: balance.amount }),
|
|
7076
|
+
/* @__PURE__ */ jsx62("span", { className: "text-sm text-on-subtle", children: balance.currency })
|
|
6920
7077
|
] }),
|
|
6921
|
-
/* @__PURE__ */
|
|
6922
|
-
history && /* @__PURE__ */
|
|
7078
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex shrink-0 items-center gap-1", children: [
|
|
7079
|
+
history && /* @__PURE__ */ jsx62(HistoryButton, __spreadValues({}, history)),
|
|
6923
7080
|
actions
|
|
6924
7081
|
] })
|
|
6925
7082
|
] }) });
|
|
@@ -6932,9 +7089,9 @@ function HistoryButton({
|
|
|
6932
7089
|
const show = typeof count === "number" && count > 0;
|
|
6933
7090
|
const label = show ? count > 99 ? "99+" : String(count) : null;
|
|
6934
7091
|
const ariaLabel = ariaLabelOverride != null ? ariaLabelOverride : show ? `Open history, ${count} new` : "Open history";
|
|
6935
|
-
return /* @__PURE__ */
|
|
6936
|
-
/* @__PURE__ */
|
|
6937
|
-
show && /* @__PURE__ */
|
|
7092
|
+
return /* @__PURE__ */ jsxs31("div", { className: "relative inline-flex", children: [
|
|
7093
|
+
/* @__PURE__ */ jsx62(NavigationButton, { type: "button", size: "md", "aria-label": ariaLabel, onClick, children: /* @__PURE__ */ jsx62(History, { className: "size-5" }) }),
|
|
7094
|
+
show && /* @__PURE__ */ jsx62(
|
|
6938
7095
|
"span",
|
|
6939
7096
|
{
|
|
6940
7097
|
"aria-hidden": true,
|
|
@@ -6946,7 +7103,7 @@ function HistoryButton({
|
|
|
6946
7103
|
}
|
|
6947
7104
|
|
|
6948
7105
|
// components/blocks/faq-block.tsx
|
|
6949
|
-
import { jsx as
|
|
7106
|
+
import { jsx as jsx63, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6950
7107
|
function FAQBlock({
|
|
6951
7108
|
eyebrow = "FAQ Section",
|
|
6952
7109
|
title = "Frequently asked questions",
|
|
@@ -6962,38 +7119,38 @@ function FAQBlock({
|
|
|
6962
7119
|
const helpCardPaddingClass = layout === "desktop" ? "p-8" : "p-6";
|
|
6963
7120
|
const gapClass = layout === "desktop" ? "gap-12" : "gap-10";
|
|
6964
7121
|
const headerGapClass = layout === "desktop" ? "gap-5" : "gap-4";
|
|
6965
|
-
return /* @__PURE__ */
|
|
6966
|
-
/* @__PURE__ */
|
|
6967
|
-
/* @__PURE__ */
|
|
6968
|
-
/* @__PURE__ */
|
|
6969
|
-
intro && /* @__PURE__ */
|
|
7122
|
+
return /* @__PURE__ */ jsxs32("div", { className: `w-full flex flex-col ${gapClass}`, children: [
|
|
7123
|
+
/* @__PURE__ */ jsxs32("div", { className: `flex flex-col ${headerGapClass} items-center w-full`, children: [
|
|
7124
|
+
/* @__PURE__ */ jsx63("span", { className: "text-sm text-on-subtle font-body", children: eyebrow }),
|
|
7125
|
+
/* @__PURE__ */ jsx63("h2", { className: headingClass, children: title }),
|
|
7126
|
+
intro && /* @__PURE__ */ jsx63("p", { className: "text-lg text-on-subtle font-body text-center", children: intro })
|
|
6970
7127
|
] }),
|
|
6971
|
-
/* @__PURE__ */
|
|
7128
|
+
/* @__PURE__ */ jsx63(
|
|
6972
7129
|
Accordion,
|
|
6973
7130
|
{
|
|
6974
7131
|
type: "single",
|
|
6975
7132
|
collapsible: true,
|
|
6976
7133
|
defaultValue: defaultValue != null ? defaultValue : (_a = items[0]) == null ? void 0 : _a.value,
|
|
6977
7134
|
className: "w-full",
|
|
6978
|
-
children: items.map(({ value, question, answer }) => /* @__PURE__ */
|
|
6979
|
-
/* @__PURE__ */
|
|
6980
|
-
/* @__PURE__ */
|
|
7135
|
+
children: items.map(({ value, question, answer }) => /* @__PURE__ */ jsxs32(AccordionItem, { value, children: [
|
|
7136
|
+
/* @__PURE__ */ jsx63(AccordionTrigger, { className: "text-base font-medium font-body text-on-prominent hover:no-underline", children: question }),
|
|
7137
|
+
/* @__PURE__ */ jsx63(AccordionContent, { children: /* @__PURE__ */ jsx63("p", { className: "text-sm text-on-subtle font-body pb-4", children: answer }) })
|
|
6981
7138
|
] }, value))
|
|
6982
7139
|
}
|
|
6983
7140
|
),
|
|
6984
|
-
helpCard && /* @__PURE__ */
|
|
6985
|
-
/* @__PURE__ */
|
|
6986
|
-
/* @__PURE__ */
|
|
6987
|
-
/* @__PURE__ */
|
|
7141
|
+
helpCard && /* @__PURE__ */ jsxs32("div", { className: `flex flex-col gap-6 items-center w-full bg-subtle rounded-xl ${helpCardPaddingClass}`, children: [
|
|
7142
|
+
/* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-2 w-full", children: [
|
|
7143
|
+
/* @__PURE__ */ jsx63("h3", { className: helpTitleClass, children: helpCard.title }),
|
|
7144
|
+
/* @__PURE__ */ jsx63("p", { className: "text-base text-on-subtle font-body", children: helpCard.body })
|
|
6988
7145
|
] }),
|
|
6989
|
-
/* @__PURE__ */
|
|
7146
|
+
/* @__PURE__ */ jsx63(Button, { size: "sm", onClick: helpCard.onCtaClick, children: helpCard.ctaLabel })
|
|
6990
7147
|
] })
|
|
6991
7148
|
] });
|
|
6992
7149
|
}
|
|
6993
7150
|
|
|
6994
7151
|
// components/blocks/hero-block.tsx
|
|
6995
7152
|
import { ArrowRight as ArrowRight3, ArrowUpRight } from "lucide-react";
|
|
6996
|
-
import { jsx as
|
|
7153
|
+
import { jsx as jsx64, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6997
7154
|
function HeroBlock({
|
|
6998
7155
|
layout = "centered",
|
|
6999
7156
|
tagline,
|
|
@@ -7004,31 +7161,31 @@ function HeroBlock({
|
|
|
7004
7161
|
image
|
|
7005
7162
|
}) {
|
|
7006
7163
|
if (layout === "centered") {
|
|
7007
|
-
return /* @__PURE__ */
|
|
7008
|
-
/* @__PURE__ */
|
|
7009
|
-
tagline && /* @__PURE__ */
|
|
7010
|
-
/* @__PURE__ */
|
|
7011
|
-
/* @__PURE__ */
|
|
7164
|
+
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: [
|
|
7165
|
+
/* @__PURE__ */ jsxs33("div", { className: "flex flex-col items-center gap-6 w-full", children: [
|
|
7166
|
+
tagline && /* @__PURE__ */ jsx64(TaglinePill, __spreadValues({}, tagline)),
|
|
7167
|
+
/* @__PURE__ */ jsx64("h1", { className: "text-5xl font-semibold font-display tracking-tight text-on-prominent text-center", children: heading }),
|
|
7168
|
+
/* @__PURE__ */ jsx64("p", { className: "text-lg font-body text-on-subtle text-center", children: body })
|
|
7012
7169
|
] }),
|
|
7013
|
-
/* @__PURE__ */
|
|
7170
|
+
/* @__PURE__ */ jsxs33(Button, { size: "sm", onClick: primaryCta.onClick, children: [
|
|
7014
7171
|
primaryCta.label,
|
|
7015
|
-
primaryCta.trailingArrow !== false && /* @__PURE__ */
|
|
7172
|
+
primaryCta.trailingArrow !== false && /* @__PURE__ */ jsx64(ArrowRight3, { className: "size-4" })
|
|
7016
7173
|
] })
|
|
7017
7174
|
] }) });
|
|
7018
7175
|
}
|
|
7019
|
-
return /* @__PURE__ */
|
|
7020
|
-
/* @__PURE__ */
|
|
7021
|
-
/* @__PURE__ */
|
|
7022
|
-
tagline && /* @__PURE__ */
|
|
7023
|
-
/* @__PURE__ */
|
|
7024
|
-
/* @__PURE__ */
|
|
7176
|
+
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: [
|
|
7177
|
+
/* @__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: [
|
|
7178
|
+
/* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-5 min-[600px]:gap-6 items-center min-[600px]:items-start w-full", children: [
|
|
7179
|
+
tagline && /* @__PURE__ */ jsx64(TaglinePill, __spreadProps(__spreadValues({}, tagline), { responsive: true })),
|
|
7180
|
+
/* @__PURE__ */ jsx64("h1", { className: "text-4xl min-[600px]:text-5xl font-semibold font-display tracking-tight text-on-prominent", children: heading }),
|
|
7181
|
+
/* @__PURE__ */ jsx64("p", { className: "text-lg font-body text-on-subtle", children: body })
|
|
7025
7182
|
] }),
|
|
7026
|
-
/* @__PURE__ */
|
|
7027
|
-
/* @__PURE__ */
|
|
7028
|
-
secondaryCta && /* @__PURE__ */
|
|
7183
|
+
/* @__PURE__ */ jsxs33("div", { className: "flex items-center justify-center min-[600px]:justify-start gap-2", children: [
|
|
7184
|
+
/* @__PURE__ */ jsx64(Button, { size: "sm", onClick: primaryCta.onClick, children: primaryCta.label }),
|
|
7185
|
+
secondaryCta && /* @__PURE__ */ jsx64(Button, { variant: "secondary", size: "sm", onClick: secondaryCta.onClick, children: secondaryCta.label })
|
|
7029
7186
|
] })
|
|
7030
7187
|
] }),
|
|
7031
|
-
/* @__PURE__ */
|
|
7188
|
+
/* @__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
7189
|
] }) });
|
|
7033
7190
|
}
|
|
7034
7191
|
function TaglinePill({
|
|
@@ -7036,25 +7193,25 @@ function TaglinePill({
|
|
|
7036
7193
|
suffix,
|
|
7037
7194
|
responsive
|
|
7038
7195
|
}) {
|
|
7039
|
-
return /* @__PURE__ */
|
|
7040
|
-
/* @__PURE__ */
|
|
7041
|
-
responsive && suffix ? /* @__PURE__ */
|
|
7042
|
-
/* @__PURE__ */
|
|
7196
|
+
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: [
|
|
7197
|
+
/* @__PURE__ */ jsx64("span", { className: "size-1.5 rounded-full bg-semantic-win shrink-0", "aria-hidden": "true" }),
|
|
7198
|
+
responsive && suffix ? /* @__PURE__ */ jsxs33("span", { className: "text-sm font-body text-on-prominent whitespace-nowrap", children: [
|
|
7199
|
+
/* @__PURE__ */ jsxs33("span", { className: "hidden min-[600px]:inline", children: [
|
|
7043
7200
|
label,
|
|
7044
|
-
/* @__PURE__ */
|
|
7201
|
+
/* @__PURE__ */ jsx64("span", { className: "text-on-subtle", children: " \xB7 " })
|
|
7045
7202
|
] }),
|
|
7046
|
-
/* @__PURE__ */
|
|
7047
|
-
] }) : /* @__PURE__ */
|
|
7203
|
+
/* @__PURE__ */ jsx64("span", { className: "text-on-subtle min-[600px]:text-on-prominent", children: suffix })
|
|
7204
|
+
] }) : /* @__PURE__ */ jsxs33("span", { className: "text-sm font-body text-on-prominent whitespace-nowrap", children: [
|
|
7048
7205
|
label,
|
|
7049
|
-
suffix && /* @__PURE__ */
|
|
7206
|
+
suffix && /* @__PURE__ */ jsx64("span", { className: "text-on-subtle", children: ` \xB7 ${suffix}` })
|
|
7050
7207
|
] }),
|
|
7051
|
-
/* @__PURE__ */
|
|
7208
|
+
/* @__PURE__ */ jsx64(ArrowUpRight, { className: "size-4 text-on-subtle shrink-0", "aria-hidden": "true" })
|
|
7052
7209
|
] });
|
|
7053
7210
|
}
|
|
7054
7211
|
|
|
7055
7212
|
// components/blocks/auth-block.tsx
|
|
7056
|
-
import * as
|
|
7057
|
-
import { jsx as
|
|
7213
|
+
import * as React16 from "react";
|
|
7214
|
+
import { jsx as jsx65, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
7058
7215
|
function AuthBlock({
|
|
7059
7216
|
mode,
|
|
7060
7217
|
logoSrc,
|
|
@@ -7069,20 +7226,20 @@ function AuthBlock({
|
|
|
7069
7226
|
const ctaText = mode === "sign-in" ? "Sign in" : "Sign up";
|
|
7070
7227
|
const footerPrompt = mode === "sign-in" ? "Don't have an account?" : "Already have an account?";
|
|
7071
7228
|
const footerLinkLabel = mode === "sign-in" ? "Sign up" : "Log in";
|
|
7072
|
-
const [email, setEmail] =
|
|
7073
|
-
return /* @__PURE__ */
|
|
7074
|
-
/* @__PURE__ */
|
|
7075
|
-
/* @__PURE__ */
|
|
7076
|
-
/* @__PURE__ */
|
|
7229
|
+
const [email, setEmail] = React16.useState("");
|
|
7230
|
+
return /* @__PURE__ */ jsxs34("div", { className: "flex flex-col items-center gap-6 w-full", children: [
|
|
7231
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-2", children: [
|
|
7232
|
+
/* @__PURE__ */ jsx65("img", { src: logoSrc, alt: wordmark, className: "size-8 object-contain" }),
|
|
7233
|
+
/* @__PURE__ */ jsx65("span", { className: "font-display font-semibold text-base text-on-prominent tracking-tight", children: wordmark })
|
|
7077
7234
|
] }),
|
|
7078
|
-
/* @__PURE__ */
|
|
7079
|
-
/* @__PURE__ */
|
|
7080
|
-
/* @__PURE__ */
|
|
7081
|
-
/* @__PURE__ */
|
|
7082
|
-
/* @__PURE__ */
|
|
7083
|
-
/* @__PURE__ */
|
|
7235
|
+
/* @__PURE__ */ jsx65("h2", { className: "text-3xl font-bold font-display text-on-prominent text-center", children: headingText }),
|
|
7236
|
+
/* @__PURE__ */ jsx65("div", { className: "flex flex-col gap-3 w-full", children: providers.map((p) => /* @__PURE__ */ jsx65(ProviderButton, { provider: p }, p)) }),
|
|
7237
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-3 w-full", children: [
|
|
7238
|
+
/* @__PURE__ */ jsx65("div", { className: "flex-1 h-px bg-border-subtle" }),
|
|
7239
|
+
/* @__PURE__ */ jsx65("span", { className: "text-sm text-on-subtle font-body", children: "or" }),
|
|
7240
|
+
/* @__PURE__ */ jsx65("div", { className: "flex-1 h-px bg-border-subtle" })
|
|
7084
7241
|
] }),
|
|
7085
|
-
/* @__PURE__ */
|
|
7242
|
+
/* @__PURE__ */ jsx65("div", { className: "flex items-center gap-2 w-full", children: /* @__PURE__ */ jsx65(
|
|
7086
7243
|
Input,
|
|
7087
7244
|
{
|
|
7088
7245
|
id: `${idPrefix}-email`,
|
|
@@ -7093,60 +7250,60 @@ function AuthBlock({
|
|
|
7093
7250
|
onChange: (e) => setEmail(e.target.value)
|
|
7094
7251
|
}
|
|
7095
7252
|
) }),
|
|
7096
|
-
/* @__PURE__ */
|
|
7253
|
+
/* @__PURE__ */ jsxs34("p", { className: "text-sm text-on-subtle font-body text-left w-full", children: [
|
|
7097
7254
|
termsText,
|
|
7098
7255
|
", you agree to our",
|
|
7099
7256
|
" ",
|
|
7100
|
-
/* @__PURE__ */
|
|
7257
|
+
/* @__PURE__ */ jsx65(Link, { size: "sm", href: "#", children: "Terms & Conditions" })
|
|
7101
7258
|
] }),
|
|
7102
|
-
/* @__PURE__ */
|
|
7103
|
-
/* @__PURE__ */
|
|
7259
|
+
/* @__PURE__ */ jsx65(Button, { size: "md", className: "w-full", onClick: () => onSubmit == null ? void 0 : onSubmit({ email }), children: ctaText }),
|
|
7260
|
+
/* @__PURE__ */ jsxs34("p", { className: "text-sm text-on-subtle font-body text-center", children: [
|
|
7104
7261
|
footerPrompt,
|
|
7105
7262
|
" ",
|
|
7106
|
-
/* @__PURE__ */
|
|
7263
|
+
/* @__PURE__ */ jsx65(Link, { size: "sm", href: crossLinkHref, children: footerLinkLabel })
|
|
7107
7264
|
] })
|
|
7108
7265
|
] });
|
|
7109
7266
|
}
|
|
7110
7267
|
function ProviderButton({ provider }) {
|
|
7111
7268
|
switch (provider) {
|
|
7112
7269
|
case "google":
|
|
7113
|
-
return /* @__PURE__ */
|
|
7114
|
-
/* @__PURE__ */
|
|
7115
|
-
/* @__PURE__ */
|
|
7116
|
-
/* @__PURE__ */
|
|
7117
|
-
/* @__PURE__ */
|
|
7118
|
-
/* @__PURE__ */
|
|
7270
|
+
return /* @__PURE__ */ jsxs34(Button, { variant: "secondary", size: "lg", className: "w-full", children: [
|
|
7271
|
+
/* @__PURE__ */ jsxs34("svg", { width: "18", height: "18", viewBox: "0 0 18 18", "aria-hidden": "true", fill: "none", className: "shrink-0", children: [
|
|
7272
|
+
/* @__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" }),
|
|
7273
|
+
/* @__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" }),
|
|
7274
|
+
/* @__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" }),
|
|
7275
|
+
/* @__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
7276
|
] }),
|
|
7120
7277
|
"Continue with Google"
|
|
7121
7278
|
] });
|
|
7122
7279
|
case "telegram":
|
|
7123
|
-
return /* @__PURE__ */
|
|
7124
|
-
/* @__PURE__ */
|
|
7125
|
-
/* @__PURE__ */
|
|
7126
|
-
/* @__PURE__ */
|
|
7127
|
-
/* @__PURE__ */
|
|
7280
|
+
return /* @__PURE__ */ jsxs34(Button, { variant: "secondary", size: "lg", className: "w-full", children: [
|
|
7281
|
+
/* @__PURE__ */ jsxs34("svg", { width: "18", height: "18", viewBox: "0 0 18 18", "aria-hidden": "true", fill: "none", className: "shrink-0", children: [
|
|
7282
|
+
/* @__PURE__ */ jsx65("circle", { cx: "9", cy: "9", r: "9", fill: "#29B6F6" }),
|
|
7283
|
+
/* @__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" }),
|
|
7284
|
+
/* @__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
7285
|
] }),
|
|
7129
7286
|
"Continue with Telegram"
|
|
7130
7287
|
] });
|
|
7131
7288
|
case "x":
|
|
7132
|
-
return /* @__PURE__ */
|
|
7133
|
-
/* @__PURE__ */
|
|
7289
|
+
return /* @__PURE__ */ jsxs34(Button, { variant: "secondary", size: "lg", className: "w-full", children: [
|
|
7290
|
+
/* @__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
7291
|
"Continue with X (Twitter)"
|
|
7135
7292
|
] });
|
|
7136
7293
|
}
|
|
7137
7294
|
}
|
|
7138
7295
|
|
|
7139
7296
|
// components/blocks/navbar-block.tsx
|
|
7140
|
-
import * as
|
|
7141
|
-
import { Menu, X as
|
|
7142
|
-
import { jsx as
|
|
7297
|
+
import * as React17 from "react";
|
|
7298
|
+
import { Menu, X as X3 } from "lucide-react";
|
|
7299
|
+
import { jsx as jsx66, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
7143
7300
|
function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
7144
7301
|
var _a, _b, _c, _d;
|
|
7145
|
-
const [mobileMenuOpen, setMobileMenuOpen] =
|
|
7146
|
-
return /* @__PURE__ */
|
|
7147
|
-
/* @__PURE__ */
|
|
7148
|
-
/* @__PURE__ */
|
|
7149
|
-
/* @__PURE__ */
|
|
7302
|
+
const [mobileMenuOpen, setMobileMenuOpen] = React17.useState(false);
|
|
7303
|
+
return /* @__PURE__ */ jsx66("div", { className: "w-full border border-border-subtle rounded-md overflow-hidden", children: /* @__PURE__ */ jsxs35("nav", { className: "bg-prominent", children: [
|
|
7304
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex items-center justify-between px-layout-margin-inline py-3", children: [
|
|
7305
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex items-center gap-6", children: [
|
|
7306
|
+
/* @__PURE__ */ jsx66(
|
|
7150
7307
|
"img",
|
|
7151
7308
|
{
|
|
7152
7309
|
src: brand.fullLogoSrc,
|
|
@@ -7154,7 +7311,7 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7154
7311
|
className: "hidden min-[600px]:block h-7 w-auto shrink-0 object-contain object-left"
|
|
7155
7312
|
}
|
|
7156
7313
|
),
|
|
7157
|
-
/* @__PURE__ */
|
|
7314
|
+
/* @__PURE__ */ jsx66(
|
|
7158
7315
|
"img",
|
|
7159
7316
|
{
|
|
7160
7317
|
src: brand.iconLogoSrc,
|
|
@@ -7162,13 +7319,13 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7162
7319
|
className: "min-[600px]:hidden size-7 shrink-0 object-contain"
|
|
7163
7320
|
}
|
|
7164
7321
|
),
|
|
7165
|
-
/* @__PURE__ */
|
|
7322
|
+
/* @__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
7323
|
] }),
|
|
7167
|
-
/* @__PURE__ */
|
|
7168
|
-
signIn && /* @__PURE__ */
|
|
7169
|
-
signUp && /* @__PURE__ */
|
|
7324
|
+
/* @__PURE__ */ jsxs35("div", { className: "hidden min-[600px]:flex items-center gap-2", children: [
|
|
7325
|
+
signIn && /* @__PURE__ */ jsx66(Button, { variant: "tertiary", size: "sm", onClick: signIn.onClick, children: (_a = signIn.label) != null ? _a : "Sign in" }),
|
|
7326
|
+
signUp && /* @__PURE__ */ jsx66(Button, { size: "sm", onClick: signUp.onClick, children: (_b = signUp.label) != null ? _b : "Sign up" })
|
|
7170
7327
|
] }),
|
|
7171
|
-
/* @__PURE__ */
|
|
7328
|
+
/* @__PURE__ */ jsx66(
|
|
7172
7329
|
Button,
|
|
7173
7330
|
{
|
|
7174
7331
|
variant: "tertiary",
|
|
@@ -7177,12 +7334,12 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7177
7334
|
"aria-expanded": mobileMenuOpen,
|
|
7178
7335
|
className: "min-[600px]:hidden",
|
|
7179
7336
|
onClick: () => setMobileMenuOpen((prev) => !prev),
|
|
7180
|
-
children: mobileMenuOpen ? /* @__PURE__ */
|
|
7337
|
+
children: mobileMenuOpen ? /* @__PURE__ */ jsx66(X3, { className: "size-4" }) : /* @__PURE__ */ jsx66(Menu, { className: "size-4" })
|
|
7181
7338
|
}
|
|
7182
7339
|
)
|
|
7183
7340
|
] }),
|
|
7184
|
-
mobileMenuOpen && /* @__PURE__ */
|
|
7185
|
-
links.map((l) => /* @__PURE__ */
|
|
7341
|
+
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: [
|
|
7342
|
+
links.map((l) => /* @__PURE__ */ jsx66(
|
|
7186
7343
|
Button,
|
|
7187
7344
|
{
|
|
7188
7345
|
variant: "tertiary",
|
|
@@ -7193,18 +7350,18 @@ function NavBarBlock({ brand, links, signIn, signUp }) {
|
|
|
7193
7350
|
},
|
|
7194
7351
|
l.label
|
|
7195
7352
|
)),
|
|
7196
|
-
(signIn || signUp) && /* @__PURE__ */
|
|
7197
|
-
signIn && /* @__PURE__ */
|
|
7198
|
-
signUp && /* @__PURE__ */
|
|
7353
|
+
(signIn || signUp) && /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-2 pt-3 mt-2 border-t border-border-subtle", children: [
|
|
7354
|
+
signIn && /* @__PURE__ */ jsx66(Button, { variant: "secondary", size: "sm", className: "w-full", onClick: signIn.onClick, children: (_c = signIn.label) != null ? _c : "Sign in" }),
|
|
7355
|
+
signUp && /* @__PURE__ */ jsx66(Button, { size: "sm", className: "w-full", onClick: signUp.onClick, children: (_d = signUp.label) != null ? _d : "Sign up" })
|
|
7199
7356
|
] })
|
|
7200
7357
|
] })
|
|
7201
7358
|
] }) });
|
|
7202
7359
|
}
|
|
7203
7360
|
|
|
7204
7361
|
// components/blocks/open-positions-block.tsx
|
|
7205
|
-
import * as
|
|
7206
|
-
import { History as History2, X as
|
|
7207
|
-
import { jsx as
|
|
7362
|
+
import * as React18 from "react";
|
|
7363
|
+
import { History as History2, X as X4 } from "lucide-react";
|
|
7364
|
+
import { jsx as jsx67, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
7208
7365
|
function OpenPositionsBlock({
|
|
7209
7366
|
trigger,
|
|
7210
7367
|
sheetTitle = "Positions",
|
|
@@ -7213,28 +7370,28 @@ function OpenPositionsBlock({
|
|
|
7213
7370
|
emptyState
|
|
7214
7371
|
}) {
|
|
7215
7372
|
const isMobile = useIsMobile();
|
|
7216
|
-
const body = positions.length === 0 ? emptyState != null ? emptyState : /* @__PURE__ */
|
|
7373
|
+
const body = positions.length === 0 ? emptyState != null ? emptyState : /* @__PURE__ */ jsx67(DefaultEmptyState, { onViewHistory }) : /* @__PURE__ */ jsx67(PositionsList, { positions, onViewHistory });
|
|
7217
7374
|
if (isMobile) {
|
|
7218
|
-
return /* @__PURE__ */
|
|
7219
|
-
/* @__PURE__ */
|
|
7220
|
-
/* @__PURE__ */
|
|
7221
|
-
/* @__PURE__ */
|
|
7222
|
-
/* @__PURE__ */
|
|
7223
|
-
/* @__PURE__ */
|
|
7375
|
+
return /* @__PURE__ */ jsxs36(Drawer, { children: [
|
|
7376
|
+
/* @__PURE__ */ jsx67(DrawerTrigger, { asChild: true, children: trigger }),
|
|
7377
|
+
/* @__PURE__ */ jsxs36(DrawerContent, { className: "p-0 flex flex-col", children: [
|
|
7378
|
+
/* @__PURE__ */ jsxs36(DrawerHeader, { className: "flex-row items-center justify-between px-4 py-3 shrink-0 text-left", children: [
|
|
7379
|
+
/* @__PURE__ */ jsx67(DrawerTitle, { className: "text-base font-semibold font-display text-on-prominent", children: sheetTitle }),
|
|
7380
|
+
/* @__PURE__ */ jsx67(DrawerClose, { asChild: true, children: /* @__PURE__ */ jsx67(NavigationButton, { size: "sm", "aria-label": "Close", children: /* @__PURE__ */ jsx67(X4, {}) }) })
|
|
7224
7381
|
] }),
|
|
7225
|
-
/* @__PURE__ */
|
|
7382
|
+
/* @__PURE__ */ jsx67(Separator, {}),
|
|
7226
7383
|
body
|
|
7227
7384
|
] })
|
|
7228
7385
|
] });
|
|
7229
7386
|
}
|
|
7230
|
-
return /* @__PURE__ */
|
|
7231
|
-
/* @__PURE__ */
|
|
7232
|
-
/* @__PURE__ */
|
|
7233
|
-
/* @__PURE__ */
|
|
7234
|
-
/* @__PURE__ */
|
|
7235
|
-
/* @__PURE__ */
|
|
7387
|
+
return /* @__PURE__ */ jsxs36(Sheet, { children: [
|
|
7388
|
+
/* @__PURE__ */ jsx67(SheetTrigger, { asChild: true, children: trigger }),
|
|
7389
|
+
/* @__PURE__ */ jsxs36(SheetContent, { side: "right", showCloseButton: false, className: "p-0 flex flex-col w-80 sm:max-w-xs", children: [
|
|
7390
|
+
/* @__PURE__ */ jsxs36(SheetHeader, { className: "flex-row items-center justify-between px-4 py-3 shrink-0", children: [
|
|
7391
|
+
/* @__PURE__ */ jsx67(SheetTitle, { className: "text-base font-semibold font-display text-on-prominent", children: sheetTitle }),
|
|
7392
|
+
/* @__PURE__ */ jsx67(SheetClose, { asChild: true, children: /* @__PURE__ */ jsx67(NavigationButton, { size: "sm", "aria-label": "Close", children: /* @__PURE__ */ jsx67(X4, {}) }) })
|
|
7236
7393
|
] }),
|
|
7237
|
-
/* @__PURE__ */
|
|
7394
|
+
/* @__PURE__ */ jsx67(Separator, {}),
|
|
7238
7395
|
body
|
|
7239
7396
|
] })
|
|
7240
7397
|
] });
|
|
@@ -7243,26 +7400,26 @@ function PositionsList({
|
|
|
7243
7400
|
positions,
|
|
7244
7401
|
onViewHistory
|
|
7245
7402
|
}) {
|
|
7246
|
-
return /* @__PURE__ */
|
|
7247
|
-
/* @__PURE__ */
|
|
7248
|
-
/* @__PURE__ */
|
|
7249
|
-
i < positions.length - 1 && /* @__PURE__ */
|
|
7403
|
+
return /* @__PURE__ */ jsxs36("div", { className: "flex flex-col flex-1 min-h-0", children: [
|
|
7404
|
+
/* @__PURE__ */ jsx67(ItemGroup, { className: "min-h-0 overflow-y-auto", children: positions.map((pos, i) => /* @__PURE__ */ jsxs36(React18.Fragment, { children: [
|
|
7405
|
+
/* @__PURE__ */ jsx67(PositionRow, { position: pos }),
|
|
7406
|
+
i < positions.length - 1 && /* @__PURE__ */ jsx67("div", { className: "h-px mx-4 bg-border-subtle" })
|
|
7250
7407
|
] }, i)) }),
|
|
7251
|
-
/* @__PURE__ */
|
|
7252
|
-
/* @__PURE__ */
|
|
7408
|
+
/* @__PURE__ */ jsx67(Separator, {}),
|
|
7409
|
+
/* @__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
7410
|
] });
|
|
7254
7411
|
}
|
|
7255
7412
|
function PositionRow({ position }) {
|
|
7256
7413
|
const { label, suffix } = positionTitleParts(position);
|
|
7257
|
-
return /* @__PURE__ */
|
|
7258
|
-
/* @__PURE__ */
|
|
7259
|
-
/* @__PURE__ */
|
|
7260
|
-
/* @__PURE__ */
|
|
7261
|
-
suffix && /* @__PURE__ */
|
|
7414
|
+
return /* @__PURE__ */ jsxs36(Item, { size: "sm", children: [
|
|
7415
|
+
/* @__PURE__ */ jsxs36(ItemContent, { children: [
|
|
7416
|
+
/* @__PURE__ */ jsxs36(ItemTitle, { children: [
|
|
7417
|
+
/* @__PURE__ */ jsx67("span", { className: "text-on-prominent", children: label }),
|
|
7418
|
+
suffix && /* @__PURE__ */ jsx67("span", { className: "text-on-subtle", children: ` ${suffix}` })
|
|
7262
7419
|
] }),
|
|
7263
|
-
/* @__PURE__ */
|
|
7420
|
+
/* @__PURE__ */ jsx67(MetaNote, { market: position.market, duration: position.duration })
|
|
7264
7421
|
] }),
|
|
7265
|
-
/* @__PURE__ */
|
|
7422
|
+
/* @__PURE__ */ jsx67(ItemActions, { children: /* @__PURE__ */ jsx67(PnlMeta, { pnl: position.pnl, win: position.win, stake: position.stake }) })
|
|
7266
7423
|
] });
|
|
7267
7424
|
}
|
|
7268
7425
|
var DIGITS_TYPE_LABEL = {
|
|
@@ -7288,23 +7445,23 @@ function positionTitleParts(p) {
|
|
|
7288
7445
|
}
|
|
7289
7446
|
}
|
|
7290
7447
|
function MetaNote({ market, duration }) {
|
|
7291
|
-
return /* @__PURE__ */
|
|
7448
|
+
return /* @__PURE__ */ jsxs36("span", { className: "text-xs text-on-subtle whitespace-nowrap", children: [
|
|
7292
7449
|
market,
|
|
7293
7450
|
" \xB7 ",
|
|
7294
7451
|
duration
|
|
7295
7452
|
] });
|
|
7296
7453
|
}
|
|
7297
7454
|
function PnlMeta({ pnl, win, stake }) {
|
|
7298
|
-
return /* @__PURE__ */
|
|
7299
|
-
/* @__PURE__ */
|
|
7300
|
-
/* @__PURE__ */
|
|
7455
|
+
return /* @__PURE__ */ jsxs36("div", { className: "flex flex-col items-end gap-0.5", children: [
|
|
7456
|
+
/* @__PURE__ */ jsx67("span", { className: `font-display font-bold tabular-nums text-base ${win ? "text-semantic-win" : "text-semantic-loss"}`, children: pnl }),
|
|
7457
|
+
/* @__PURE__ */ jsx67("span", { className: "tabular-nums text-xs text-on-subtle", children: stake })
|
|
7301
7458
|
] });
|
|
7302
7459
|
}
|
|
7303
7460
|
function DefaultEmptyState({ onViewHistory }) {
|
|
7304
|
-
return /* @__PURE__ */
|
|
7305
|
-
/* @__PURE__ */
|
|
7306
|
-
/* @__PURE__ */
|
|
7307
|
-
/* @__PURE__ */
|
|
7461
|
+
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: [
|
|
7462
|
+
/* @__PURE__ */ jsx67(EmptyMedia, { children: /* @__PURE__ */ jsx67(History2, { className: "size-8 text-on-subtle" }) }),
|
|
7463
|
+
/* @__PURE__ */ jsx67(EmptyTitle, { className: "text-base leading-6 font-semibold tracking-normal body-md text-on-subtle", children: "No trades yet." }),
|
|
7464
|
+
/* @__PURE__ */ jsx67(Button, { variant: "tertiary", size: "md", onClick: onViewHistory, children: "View transaction history" })
|
|
7308
7465
|
] }) });
|
|
7309
7466
|
}
|
|
7310
7467
|
export {
|
|
@@ -7334,6 +7491,7 @@ export {
|
|
|
7334
7491
|
AvatarGroupCount,
|
|
7335
7492
|
AvatarImage,
|
|
7336
7493
|
Badge,
|
|
7494
|
+
Banner,
|
|
7337
7495
|
Breadcrumb,
|
|
7338
7496
|
BreadcrumbEllipsis,
|
|
7339
7497
|
BreadcrumbItem,
|