@almadar/ui 2.24.5 → 2.24.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avl/index.cjs +43 -43
- package/dist/avl/index.js +43 -43
- package/dist/components/index.cjs +995 -931
- package/dist/components/index.js +995 -931
- package/dist/components/organisms/debug/RuntimeDebugger.d.ts +2 -2
- package/dist/components/organisms/game/three/index.cjs +41 -41
- package/dist/components/organisms/game/three/index.js +41 -41
- package/dist/docs/index.cjs +143 -142
- package/dist/docs/index.js +143 -142
- package/dist/illustrations/index.cjs +17 -17
- package/dist/illustrations/index.js +17 -17
- package/dist/lib/index.cjs +62 -50
- package/dist/lib/index.js +62 -50
- package/dist/marketing/index.cjs +168 -167
- package/dist/marketing/index.js +168 -167
- package/dist/providers/index.cjs +220 -206
- package/dist/providers/index.js +220 -206
- package/dist/runtime/index.cjs +978 -882
- package/dist/runtime/index.js +978 -882
- package/package.json +1 -1
- package/tailwind-preset.cjs +32 -134
package/dist/providers/index.cjs
CHANGED
|
@@ -387,8 +387,8 @@ function EventBusProvider({ children, debug: debug2 = false }) {
|
|
|
387
387
|
payload,
|
|
388
388
|
timestamp: Date.now()
|
|
389
389
|
};
|
|
390
|
-
const
|
|
391
|
-
const listenerCount =
|
|
390
|
+
const listeners6 = listenersRef.current.get(type);
|
|
391
|
+
const listenerCount = listeners6?.size ?? 0;
|
|
392
392
|
if (debug2) {
|
|
393
393
|
if (listenerCount > 0) {
|
|
394
394
|
console.log(`[EventBus] Emit: ${type} \u2192 ${listenerCount} listener(s)`, payload);
|
|
@@ -396,8 +396,8 @@ function EventBusProvider({ children, debug: debug2 = false }) {
|
|
|
396
396
|
console.warn(`[EventBus] Emit: ${type} (NO LISTENERS - event may be lost!)`, payload);
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
if (
|
|
400
|
-
const listenersCopy = Array.from(
|
|
399
|
+
if (listeners6) {
|
|
400
|
+
const listenersCopy = Array.from(listeners6);
|
|
401
401
|
for (const listener of listenersCopy) {
|
|
402
402
|
try {
|
|
403
403
|
listener(event);
|
|
@@ -419,17 +419,17 @@ function EventBusProvider({ children, debug: debug2 = false }) {
|
|
|
419
419
|
if (!listenersRef.current.has(type)) {
|
|
420
420
|
listenersRef.current.set(type, /* @__PURE__ */ new Set());
|
|
421
421
|
}
|
|
422
|
-
const
|
|
423
|
-
|
|
422
|
+
const listeners6 = listenersRef.current.get(type);
|
|
423
|
+
listeners6.add(listener);
|
|
424
424
|
if (debug2) {
|
|
425
|
-
console.log(`[EventBus] Subscribed to '${type}', total: ${
|
|
425
|
+
console.log(`[EventBus] Subscribed to '${type}', total: ${listeners6.size}`);
|
|
426
426
|
}
|
|
427
427
|
return () => {
|
|
428
|
-
|
|
428
|
+
listeners6.delete(listener);
|
|
429
429
|
if (debug2) {
|
|
430
|
-
console.log(`[EventBus] Unsubscribed from '${type}', remaining: ${
|
|
430
|
+
console.log(`[EventBus] Unsubscribed from '${type}', remaining: ${listeners6.size}`);
|
|
431
431
|
}
|
|
432
|
-
if (
|
|
432
|
+
if (listeners6.size === 0) {
|
|
433
433
|
listenersRef.current.delete(type);
|
|
434
434
|
}
|
|
435
435
|
};
|
|
@@ -442,8 +442,8 @@ function EventBusProvider({ children, debug: debug2 = false }) {
|
|
|
442
442
|
return on(type, wrappedListener);
|
|
443
443
|
}, [on]);
|
|
444
444
|
const hasListeners = React110.useCallback((type) => {
|
|
445
|
-
const
|
|
446
|
-
return
|
|
445
|
+
const listeners6 = listenersRef.current.get(type);
|
|
446
|
+
return listeners6 !== void 0 && listeners6.size > 0;
|
|
447
447
|
}, []);
|
|
448
448
|
const onAny = React110.useCallback((listener) => {
|
|
449
449
|
anyListenersRef.current.add(listener);
|
|
@@ -661,28 +661,28 @@ var marginYStyles = {
|
|
|
661
661
|
};
|
|
662
662
|
var bgStyles = {
|
|
663
663
|
transparent: "bg-transparent",
|
|
664
|
-
primary: "bg-
|
|
665
|
-
secondary: "bg-
|
|
666
|
-
muted: "bg-
|
|
667
|
-
accent: "bg-
|
|
668
|
-
surface: "bg-
|
|
669
|
-
overlay: "bg-
|
|
664
|
+
primary: "bg-primary text-primary-foreground",
|
|
665
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
666
|
+
muted: "bg-muted text-foreground",
|
|
667
|
+
accent: "bg-accent text-accent-foreground",
|
|
668
|
+
surface: "bg-card",
|
|
669
|
+
overlay: "bg-card/80 backdrop-blur-sm"
|
|
670
670
|
};
|
|
671
671
|
var roundedStyles = {
|
|
672
672
|
none: "rounded-none",
|
|
673
|
-
sm: "rounded-
|
|
674
|
-
md: "rounded-
|
|
675
|
-
lg: "rounded-
|
|
676
|
-
xl: "rounded-
|
|
677
|
-
"2xl": "rounded-
|
|
678
|
-
full: "rounded-
|
|
673
|
+
sm: "rounded-sm",
|
|
674
|
+
md: "rounded-md",
|
|
675
|
+
lg: "rounded-lg",
|
|
676
|
+
xl: "rounded-xl",
|
|
677
|
+
"2xl": "rounded-xl",
|
|
678
|
+
full: "rounded-full"
|
|
679
679
|
};
|
|
680
680
|
var shadowStyles = {
|
|
681
681
|
none: "shadow-none",
|
|
682
|
-
sm: "shadow-
|
|
683
|
-
md: "shadow
|
|
684
|
-
lg: "shadow-
|
|
685
|
-
xl: "shadow-
|
|
682
|
+
sm: "shadow-sm",
|
|
683
|
+
md: "shadow",
|
|
684
|
+
lg: "shadow-lg",
|
|
685
|
+
xl: "shadow-lg"
|
|
686
686
|
};
|
|
687
687
|
var displayStyles = {
|
|
688
688
|
block: "block",
|
|
@@ -770,7 +770,7 @@ var Box = React110__namespace.default.forwardRef(
|
|
|
770
770
|
// Background
|
|
771
771
|
bgStyles[bg],
|
|
772
772
|
// Border - uses theme variables
|
|
773
|
-
border && "border-[length:var(--border-width)] border-
|
|
773
|
+
border && "border-[length:var(--border-width)] border-border",
|
|
774
774
|
// Rounded
|
|
775
775
|
roundedStyles[rounded],
|
|
776
776
|
// Shadow
|
|
@@ -799,30 +799,30 @@ var Box = React110__namespace.default.forwardRef(
|
|
|
799
799
|
);
|
|
800
800
|
Box.displayName = "Box";
|
|
801
801
|
var variantStyles = {
|
|
802
|
-
h1: "text-4xl font-bold tracking-tight text-
|
|
803
|
-
h2: "text-3xl font-bold tracking-tight text-
|
|
804
|
-
h3: "text-2xl font-bold text-
|
|
805
|
-
h4: "text-xl font-bold text-
|
|
806
|
-
h5: "text-lg font-bold text-
|
|
807
|
-
h6: "text-base font-bold text-
|
|
808
|
-
heading: "text-2xl font-bold text-
|
|
809
|
-
subheading: "text-lg font-semibold text-
|
|
810
|
-
body1: "text-base font-normal text-
|
|
811
|
-
body2: "text-sm font-normal text-
|
|
812
|
-
body: "text-base font-normal text-
|
|
813
|
-
caption: "text-xs font-normal text-
|
|
814
|
-
overline: "text-xs uppercase tracking-wide font-bold text-
|
|
815
|
-
small: "text-sm font-normal text-
|
|
816
|
-
large: "text-lg font-medium text-
|
|
817
|
-
label: "text-sm font-medium text-
|
|
802
|
+
h1: "text-4xl font-bold tracking-tight text-foreground",
|
|
803
|
+
h2: "text-3xl font-bold tracking-tight text-foreground",
|
|
804
|
+
h3: "text-2xl font-bold text-foreground",
|
|
805
|
+
h4: "text-xl font-bold text-foreground",
|
|
806
|
+
h5: "text-lg font-bold text-foreground",
|
|
807
|
+
h6: "text-base font-bold text-foreground",
|
|
808
|
+
heading: "text-2xl font-bold text-foreground",
|
|
809
|
+
subheading: "text-lg font-semibold text-foreground",
|
|
810
|
+
body1: "text-base font-normal text-foreground",
|
|
811
|
+
body2: "text-sm font-normal text-foreground",
|
|
812
|
+
body: "text-base font-normal text-foreground",
|
|
813
|
+
caption: "text-xs font-normal text-muted-foreground",
|
|
814
|
+
overline: "text-xs uppercase tracking-wide font-bold text-muted-foreground",
|
|
815
|
+
small: "text-sm font-normal text-foreground",
|
|
816
|
+
large: "text-lg font-medium text-foreground",
|
|
817
|
+
label: "text-sm font-medium text-foreground"
|
|
818
818
|
};
|
|
819
819
|
var colorStyles = {
|
|
820
|
-
primary: "text-
|
|
821
|
-
secondary: "text-
|
|
822
|
-
muted: "text-
|
|
823
|
-
error: "text-
|
|
824
|
-
success: "text-
|
|
825
|
-
warning: "text-
|
|
820
|
+
primary: "text-foreground",
|
|
821
|
+
secondary: "text-muted-foreground",
|
|
822
|
+
muted: "text-muted-foreground",
|
|
823
|
+
error: "text-error",
|
|
824
|
+
success: "text-success",
|
|
825
|
+
warning: "text-warning",
|
|
826
826
|
inherit: "text-inherit"
|
|
827
827
|
};
|
|
828
828
|
var weightStyles = {
|
|
@@ -907,49 +907,49 @@ var Typography = ({
|
|
|
907
907
|
Typography.displayName = "Typography";
|
|
908
908
|
var variantStyles2 = {
|
|
909
909
|
primary: [
|
|
910
|
-
"bg-
|
|
910
|
+
"bg-primary text-primary-foreground",
|
|
911
911
|
"border-none",
|
|
912
|
-
"shadow-
|
|
913
|
-
"hover:bg-
|
|
914
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
912
|
+
"shadow-sm",
|
|
913
|
+
"hover:bg-primary-hover hover:shadow-lg",
|
|
914
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
915
915
|
].join(" "),
|
|
916
916
|
secondary: [
|
|
917
|
-
"bg-
|
|
918
|
-
"border-
|
|
919
|
-
"hover:bg-
|
|
917
|
+
"bg-transparent text-accent",
|
|
918
|
+
"border border-accent",
|
|
919
|
+
"hover:bg-accent hover:text-white hover:border-accent",
|
|
920
920
|
"active:scale-[var(--active-scale)]"
|
|
921
921
|
].join(" "),
|
|
922
922
|
ghost: [
|
|
923
|
-
"bg-transparent text-
|
|
924
|
-
"hover:text-
|
|
923
|
+
"bg-transparent text-muted-foreground",
|
|
924
|
+
"hover:text-foreground hover:bg-muted",
|
|
925
925
|
"active:scale-[var(--active-scale)]"
|
|
926
926
|
].join(" "),
|
|
927
927
|
danger: [
|
|
928
|
-
"bg-
|
|
929
|
-
"border-[length:var(--border-width)] border-
|
|
930
|
-
"shadow-
|
|
931
|
-
"hover:bg-
|
|
932
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
928
|
+
"bg-surface text-error",
|
|
929
|
+
"border-[length:var(--border-width)] border-error",
|
|
930
|
+
"shadow-sm",
|
|
931
|
+
"hover:bg-error hover:text-error-foreground hover:shadow-lg",
|
|
932
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
933
933
|
].join(" "),
|
|
934
934
|
success: [
|
|
935
|
-
"bg-
|
|
936
|
-
"border-[length:var(--border-width)] border-
|
|
937
|
-
"shadow-
|
|
938
|
-
"hover:bg-
|
|
939
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
935
|
+
"bg-surface text-success",
|
|
936
|
+
"border-[length:var(--border-width)] border-success",
|
|
937
|
+
"shadow-sm",
|
|
938
|
+
"hover:bg-success hover:text-success-foreground hover:shadow-lg",
|
|
939
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
940
940
|
].join(" "),
|
|
941
941
|
warning: [
|
|
942
|
-
"bg-
|
|
943
|
-
"border-[length:var(--border-width)] border-
|
|
944
|
-
"shadow-
|
|
945
|
-
"hover:bg-
|
|
946
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
942
|
+
"bg-surface text-warning",
|
|
943
|
+
"border-[length:var(--border-width)] border-warning",
|
|
944
|
+
"shadow-sm",
|
|
945
|
+
"hover:bg-warning hover:text-warning-foreground hover:shadow-lg",
|
|
946
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
947
947
|
].join(" "),
|
|
948
948
|
// "default" is an alias for secondary
|
|
949
949
|
default: [
|
|
950
|
-
"bg-
|
|
951
|
-
"border-[length:var(--border-width-thin)] border-
|
|
952
|
-
"hover:bg-
|
|
950
|
+
"bg-secondary text-secondary-foreground",
|
|
951
|
+
"border-[length:var(--border-width-thin)] border-border",
|
|
952
|
+
"hover:bg-secondary-hover",
|
|
953
953
|
"active:scale-[var(--active-scale)]"
|
|
954
954
|
].join(" ")
|
|
955
955
|
};
|
|
@@ -1020,9 +1020,10 @@ var Button = React110__namespace.default.forwardRef(
|
|
|
1020
1020
|
className: cn(
|
|
1021
1021
|
"inline-flex items-center justify-center gap-2",
|
|
1022
1022
|
"font-[var(--font-weight-medium)]",
|
|
1023
|
-
"rounded-
|
|
1023
|
+
"rounded-sm",
|
|
1024
|
+
"cursor-pointer",
|
|
1024
1025
|
"transition-all duration-[var(--transition-normal)]",
|
|
1025
|
-
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-
|
|
1026
|
+
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-offset-[length:var(--focus-ring-offset)]",
|
|
1026
1027
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
1027
1028
|
variantStyles2[variant],
|
|
1028
1029
|
sizeStyles2[size],
|
|
@@ -1043,34 +1044,34 @@ var Button = React110__namespace.default.forwardRef(
|
|
|
1043
1044
|
Button.displayName = "Button";
|
|
1044
1045
|
var variantStyles3 = {
|
|
1045
1046
|
default: [
|
|
1046
|
-
"bg-
|
|
1047
|
-
"border-[length:var(--border-width-thin)] border-
|
|
1047
|
+
"bg-muted text-foreground",
|
|
1048
|
+
"border-[length:var(--border-width-thin)] border-border"
|
|
1048
1049
|
].join(" "),
|
|
1049
|
-
primary: "bg-
|
|
1050
|
-
secondary: "bg-
|
|
1050
|
+
primary: "bg-primary text-primary-foreground",
|
|
1051
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
1051
1052
|
success: [
|
|
1052
|
-
"bg-
|
|
1053
|
-
"border-[length:var(--border-width)] border-
|
|
1053
|
+
"bg-surface text-success",
|
|
1054
|
+
"border-[length:var(--border-width)] border-success"
|
|
1054
1055
|
].join(" "),
|
|
1055
1056
|
warning: [
|
|
1056
|
-
"bg-
|
|
1057
|
-
"border-[length:var(--border-width)] border-
|
|
1057
|
+
"bg-surface text-warning",
|
|
1058
|
+
"border-[length:var(--border-width)] border-warning"
|
|
1058
1059
|
].join(" "),
|
|
1059
1060
|
danger: [
|
|
1060
|
-
"bg-
|
|
1061
|
-
"border-[length:var(--border-width)] border-
|
|
1061
|
+
"bg-surface text-error",
|
|
1062
|
+
"border-[length:var(--border-width)] border-error"
|
|
1062
1063
|
].join(" "),
|
|
1063
1064
|
error: [
|
|
1064
|
-
"bg-
|
|
1065
|
-
"border-[length:var(--border-width)] border-
|
|
1065
|
+
"bg-surface text-error",
|
|
1066
|
+
"border-[length:var(--border-width)] border-error"
|
|
1066
1067
|
].join(" "),
|
|
1067
1068
|
info: [
|
|
1068
|
-
"bg-
|
|
1069
|
-
"border-[length:var(--border-width)] border-
|
|
1069
|
+
"bg-surface text-info",
|
|
1070
|
+
"border-[length:var(--border-width)] border-info"
|
|
1070
1071
|
].join(" "),
|
|
1071
1072
|
neutral: [
|
|
1072
|
-
"bg-
|
|
1073
|
-
"border-[length:var(--border-width-thin)] border-
|
|
1073
|
+
"bg-muted text-muted-foreground",
|
|
1074
|
+
"border-[length:var(--border-width-thin)] border-border"
|
|
1074
1075
|
].join(" ")
|
|
1075
1076
|
};
|
|
1076
1077
|
var sizeStyles3 = {
|
|
@@ -1090,7 +1091,7 @@ var Badge = React110__namespace.default.forwardRef(
|
|
|
1090
1091
|
{
|
|
1091
1092
|
ref,
|
|
1092
1093
|
className: cn(
|
|
1093
|
-
"inline-flex items-center gap-1 font-bold rounded-
|
|
1094
|
+
"inline-flex items-center gap-1 font-bold rounded-sm",
|
|
1094
1095
|
variantStyles3[variant],
|
|
1095
1096
|
sizeStyles3[size],
|
|
1096
1097
|
className
|
|
@@ -1126,21 +1127,21 @@ var Input = React110__namespace.default.forwardRef(
|
|
|
1126
1127
|
const resolvedLeftIcon = leftIcon || IconComponent && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "h-4 w-4" });
|
|
1127
1128
|
const showClearButton = clearable && value && String(value).length > 0;
|
|
1128
1129
|
const baseClassName = cn(
|
|
1129
|
-
"block w-full rounded-
|
|
1130
|
-
"border-[length:var(--border-width-thin)] border-
|
|
1130
|
+
"block w-full rounded-sm transition-all duration-[var(--transition-fast)]",
|
|
1131
|
+
"border-[length:var(--border-width-thin)] border-border",
|
|
1131
1132
|
"px-3 py-2 text-sm",
|
|
1132
|
-
"bg-
|
|
1133
|
-
"text-
|
|
1134
|
-
"focus:outline-none focus:ring-1 focus:ring-
|
|
1135
|
-
"disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-
|
|
1136
|
-
error ? "border-
|
|
1133
|
+
"bg-card hover:bg-muted focus:bg-card",
|
|
1134
|
+
"text-foreground placeholder:text-muted-foreground",
|
|
1135
|
+
"focus:outline-none focus:ring-1 focus:ring-ring focus:border-ring",
|
|
1136
|
+
"disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-muted",
|
|
1137
|
+
error ? "border-error focus:border-error focus:ring-error" : "",
|
|
1137
1138
|
resolvedLeftIcon && "pl-10",
|
|
1138
1139
|
(rightIcon || showClearButton) && "pr-10",
|
|
1139
1140
|
className
|
|
1140
1141
|
);
|
|
1141
1142
|
if (type === "select") {
|
|
1142
1143
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
1143
|
-
resolvedLeftIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-
|
|
1144
|
+
resolvedLeftIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-muted-foreground", children: resolvedLeftIcon }),
|
|
1144
1145
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1145
1146
|
"select",
|
|
1146
1147
|
{
|
|
@@ -1155,7 +1156,7 @@ var Input = React110__namespace.default.forwardRef(
|
|
|
1155
1156
|
]
|
|
1156
1157
|
}
|
|
1157
1158
|
),
|
|
1158
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none text-
|
|
1159
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.ChevronDown, { className: "h-4 w-4" }) })
|
|
1159
1160
|
] });
|
|
1160
1161
|
}
|
|
1161
1162
|
if (type === "textarea") {
|
|
@@ -1180,9 +1181,9 @@ var Input = React110__namespace.default.forwardRef(
|
|
|
1180
1181
|
checked: props.checked,
|
|
1181
1182
|
onChange,
|
|
1182
1183
|
className: cn(
|
|
1183
|
-
"h-4 w-4 rounded-
|
|
1184
|
-
"border-
|
|
1185
|
-
"text-
|
|
1184
|
+
"h-4 w-4 rounded-sm",
|
|
1185
|
+
"border-border",
|
|
1186
|
+
"text-primary focus:ring-ring",
|
|
1186
1187
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
1187
1188
|
className
|
|
1188
1189
|
),
|
|
@@ -1191,7 +1192,7 @@ var Input = React110__namespace.default.forwardRef(
|
|
|
1191
1192
|
);
|
|
1192
1193
|
}
|
|
1193
1194
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
1194
|
-
resolvedLeftIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-
|
|
1195
|
+
resolvedLeftIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-muted-foreground", children: resolvedLeftIcon }),
|
|
1195
1196
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1196
1197
|
"input",
|
|
1197
1198
|
{
|
|
@@ -1208,11 +1209,11 @@ var Input = React110__namespace.default.forwardRef(
|
|
|
1208
1209
|
{
|
|
1209
1210
|
type: "button",
|
|
1210
1211
|
onClick: onClear,
|
|
1211
|
-
className: "absolute inset-y-0 right-0 pr-3 flex items-center text-
|
|
1212
|
+
className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground hover:text-foreground",
|
|
1212
1213
|
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.X, { className: "h-4 w-4" })
|
|
1213
1214
|
}
|
|
1214
1215
|
),
|
|
1215
|
-
rightIcon && !showClearButton && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-
|
|
1216
|
+
rightIcon && !showClearButton && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground", children: rightIcon })
|
|
1216
1217
|
] });
|
|
1217
1218
|
}
|
|
1218
1219
|
);
|
|
@@ -1224,13 +1225,13 @@ var Label = React110__namespace.default.forwardRef(
|
|
|
1224
1225
|
{
|
|
1225
1226
|
ref,
|
|
1226
1227
|
className: cn(
|
|
1227
|
-
"block text-sm font-bold text-
|
|
1228
|
+
"block text-sm font-bold text-foreground",
|
|
1228
1229
|
className
|
|
1229
1230
|
),
|
|
1230
1231
|
...props,
|
|
1231
1232
|
children: [
|
|
1232
1233
|
children,
|
|
1233
|
-
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
1234
|
+
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-error ml-1", children: "*" })
|
|
1234
1235
|
]
|
|
1235
1236
|
}
|
|
1236
1237
|
);
|
|
@@ -1244,14 +1245,14 @@ var Textarea = React110__namespace.default.forwardRef(
|
|
|
1244
1245
|
{
|
|
1245
1246
|
ref,
|
|
1246
1247
|
className: cn(
|
|
1247
|
-
"block w-full border-[length:var(--border-width)] shadow-
|
|
1248
|
-
"px-3 py-2 text-sm text-
|
|
1249
|
-
"bg-
|
|
1248
|
+
"block w-full border-[length:var(--border-width)] shadow-sm",
|
|
1249
|
+
"px-3 py-2 text-sm text-foreground",
|
|
1250
|
+
"bg-card",
|
|
1250
1251
|
"placeholder:text-[var(--color-placeholder)]",
|
|
1251
|
-
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-
|
|
1252
|
-
"disabled:bg-
|
|
1252
|
+
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-ring",
|
|
1253
|
+
"disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed",
|
|
1253
1254
|
"resize-y min-h-[80px]",
|
|
1254
|
-
error ? "border-
|
|
1255
|
+
error ? "border-error focus:border-error" : "border-border focus:border-primary",
|
|
1255
1256
|
className
|
|
1256
1257
|
),
|
|
1257
1258
|
...props
|
|
@@ -1268,12 +1269,12 @@ var Select = React110__namespace.default.forwardRef(
|
|
|
1268
1269
|
{
|
|
1269
1270
|
ref,
|
|
1270
1271
|
className: cn(
|
|
1271
|
-
"block w-full border-[length:var(--border-width)] shadow-
|
|
1272
|
-
"px-3 py-2 pr-10 text-sm text-
|
|
1273
|
-
"bg-
|
|
1274
|
-
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-
|
|
1275
|
-
"disabled:bg-
|
|
1276
|
-
error ? "border-
|
|
1272
|
+
"block w-full border-[length:var(--border-width)] shadow-sm appearance-none",
|
|
1273
|
+
"px-3 py-2 pr-10 text-sm text-foreground font-medium",
|
|
1274
|
+
"bg-card",
|
|
1275
|
+
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-ring",
|
|
1276
|
+
"disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed",
|
|
1277
|
+
error ? "border-error focus:border-error" : "border-border focus:border-primary",
|
|
1277
1278
|
className
|
|
1278
1279
|
),
|
|
1279
1280
|
...props,
|
|
@@ -1291,7 +1292,7 @@ var Select = React110__namespace.default.forwardRef(
|
|
|
1291
1292
|
]
|
|
1292
1293
|
}
|
|
1293
1294
|
),
|
|
1294
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none", children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.ChevronDown, { className: "h-4 w-4 text-
|
|
1295
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none", children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.ChevronDown, { className: "h-4 w-4 text-foreground" }) })
|
|
1295
1296
|
] });
|
|
1296
1297
|
}
|
|
1297
1298
|
);
|
|
@@ -1307,9 +1308,9 @@ var Checkbox = React110__namespace.default.forwardRef(
|
|
|
1307
1308
|
type: "checkbox",
|
|
1308
1309
|
id: inputId,
|
|
1309
1310
|
className: cn(
|
|
1310
|
-
"peer h-4 w-4 border-[length:var(--border-width)] border-
|
|
1311
|
-
"accent-
|
|
1312
|
-
"bg-
|
|
1311
|
+
"peer h-4 w-4 border-[length:var(--border-width)] border-border",
|
|
1312
|
+
"accent-primary focus:ring-ring focus:ring-offset-0",
|
|
1313
|
+
"bg-card checked:bg-primary",
|
|
1313
1314
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
1314
1315
|
className
|
|
1315
1316
|
),
|
|
@@ -1320,7 +1321,7 @@ var Checkbox = React110__namespace.default.forwardRef(
|
|
|
1320
1321
|
"label",
|
|
1321
1322
|
{
|
|
1322
1323
|
htmlFor: inputId,
|
|
1323
|
-
className: "ml-2 text-sm text-
|
|
1324
|
+
className: "ml-2 text-sm text-foreground font-medium cursor-pointer select-none",
|
|
1324
1325
|
children: label
|
|
1325
1326
|
}
|
|
1326
1327
|
)
|
|
@@ -1330,34 +1331,34 @@ var Checkbox = React110__namespace.default.forwardRef(
|
|
|
1330
1331
|
Checkbox.displayName = "Checkbox";
|
|
1331
1332
|
var variantStyles4 = {
|
|
1332
1333
|
default: [
|
|
1333
|
-
"bg-
|
|
1334
|
-
"border-[length:var(--border-width)] border-
|
|
1335
|
-
"shadow-
|
|
1334
|
+
"bg-card",
|
|
1335
|
+
"border-[length:var(--border-width)] border-border",
|
|
1336
|
+
"shadow-sm",
|
|
1336
1337
|
"transition-all duration-[var(--transition-normal)]",
|
|
1337
|
-
"hover:shadow-
|
|
1338
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
1338
1339
|
].join(" "),
|
|
1339
1340
|
bordered: [
|
|
1340
|
-
"bg-
|
|
1341
|
-
"border-[length:var(--border-width)] border-
|
|
1342
|
-
"shadow-
|
|
1341
|
+
"bg-card",
|
|
1342
|
+
"border-[length:var(--border-width)] border-border",
|
|
1343
|
+
"shadow-sm",
|
|
1343
1344
|
"transition-all duration-[var(--transition-normal)]",
|
|
1344
|
-
"hover:shadow-
|
|
1345
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
1345
1346
|
].join(" "),
|
|
1346
1347
|
elevated: [
|
|
1347
|
-
"bg-
|
|
1348
|
-
"border-[length:var(--border-width)] border-
|
|
1349
|
-
"shadow
|
|
1348
|
+
"bg-card",
|
|
1349
|
+
"border-[length:var(--border-width)] border-border",
|
|
1350
|
+
"shadow",
|
|
1350
1351
|
"transition-all duration-[var(--transition-normal)]",
|
|
1351
|
-
"hover:shadow-
|
|
1352
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
1352
1353
|
].join(" "),
|
|
1353
1354
|
// Interactive variant with theme-specific hover effects
|
|
1354
1355
|
interactive: [
|
|
1355
|
-
"bg-
|
|
1356
|
-
"border-[length:var(--border-width)] border-
|
|
1357
|
-
"shadow
|
|
1356
|
+
"bg-card",
|
|
1357
|
+
"border-[length:var(--border-width)] border-border",
|
|
1358
|
+
"shadow",
|
|
1358
1359
|
"cursor-pointer",
|
|
1359
1360
|
"transition-all duration-[var(--transition-normal)]",
|
|
1360
|
-
"hover:shadow-
|
|
1361
|
+
"hover:shadow-lg"
|
|
1361
1362
|
].join(" ")
|
|
1362
1363
|
};
|
|
1363
1364
|
var paddingStyles2 = {
|
|
@@ -1368,9 +1369,9 @@ var paddingStyles2 = {
|
|
|
1368
1369
|
};
|
|
1369
1370
|
var shadowStyles2 = {
|
|
1370
1371
|
none: "shadow-none",
|
|
1371
|
-
sm: "shadow-
|
|
1372
|
-
md: "shadow
|
|
1373
|
-
lg: "shadow-
|
|
1372
|
+
sm: "shadow-sm",
|
|
1373
|
+
md: "shadow",
|
|
1374
|
+
lg: "shadow-lg"
|
|
1374
1375
|
};
|
|
1375
1376
|
var Card = React110__namespace.default.forwardRef(
|
|
1376
1377
|
({
|
|
@@ -1388,7 +1389,7 @@ var Card = React110__namespace.default.forwardRef(
|
|
|
1388
1389
|
{
|
|
1389
1390
|
ref,
|
|
1390
1391
|
className: cn(
|
|
1391
|
-
"rounded-
|
|
1392
|
+
"rounded-md",
|
|
1392
1393
|
"transition-all duration-[var(--transition-normal)]",
|
|
1393
1394
|
variantStyles4[variant],
|
|
1394
1395
|
paddingStyles2[padding],
|
|
@@ -1398,8 +1399,8 @@ var Card = React110__namespace.default.forwardRef(
|
|
|
1398
1399
|
...props,
|
|
1399
1400
|
children: [
|
|
1400
1401
|
(title || subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-4", children: [
|
|
1401
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg text-
|
|
1402
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-
|
|
1402
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg text-card-foreground font-[var(--font-weight-bold)]", children: title }),
|
|
1403
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground mt-1", children: subtitle })
|
|
1403
1404
|
] }),
|
|
1404
1405
|
children
|
|
1405
1406
|
]
|
|
@@ -1415,7 +1416,7 @@ var CardTitle = React110__namespace.default.forwardRef(({ className, ...props },
|
|
|
1415
1416
|
{
|
|
1416
1417
|
ref,
|
|
1417
1418
|
className: cn(
|
|
1418
|
-
"text-lg text-
|
|
1419
|
+
"text-lg text-card-foreground",
|
|
1419
1420
|
"font-[var(--font-weight-bold)]",
|
|
1420
1421
|
className
|
|
1421
1422
|
),
|
|
@@ -1448,7 +1449,7 @@ var Spinner = React110__namespace.default.forwardRef(
|
|
|
1448
1449
|
"div",
|
|
1449
1450
|
{
|
|
1450
1451
|
ref,
|
|
1451
|
-
className: cn("text-
|
|
1452
|
+
className: cn("text-foreground", className),
|
|
1452
1453
|
...props,
|
|
1453
1454
|
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Loader2, { className: cn("animate-spin", sizeStyles4[size]) })
|
|
1454
1455
|
}
|
|
@@ -1505,8 +1506,8 @@ var Radio = React110__namespace.default.forwardRef(
|
|
|
1505
1506
|
"flex items-center justify-center",
|
|
1506
1507
|
"border-[length:var(--border-width)] transition-all cursor-pointer",
|
|
1507
1508
|
sizeClasses6[size],
|
|
1508
|
-
hasError ? "border-
|
|
1509
|
-
checked ? hasError ? "border-
|
|
1509
|
+
hasError ? "border-error peer-focus:ring-error/20" : "border-border peer-focus:ring-ring/20",
|
|
1510
|
+
checked ? hasError ? "border-error" : "border-primary bg-primary" : "",
|
|
1510
1511
|
"peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-offset-2",
|
|
1511
1512
|
disabled && "opacity-50 cursor-not-allowed",
|
|
1512
1513
|
!disabled && "hover:border-[var(--color-border-hover)]"
|
|
@@ -1517,7 +1518,7 @@ var Radio = React110__namespace.default.forwardRef(
|
|
|
1517
1518
|
className: cn(
|
|
1518
1519
|
"transition-all",
|
|
1519
1520
|
dotSizeClasses[size],
|
|
1520
|
-
hasError ? "bg-
|
|
1521
|
+
hasError ? "bg-error" : "bg-primary-foreground"
|
|
1521
1522
|
)
|
|
1522
1523
|
}
|
|
1523
1524
|
)
|
|
@@ -1530,7 +1531,7 @@ var Radio = React110__namespace.default.forwardRef(
|
|
|
1530
1531
|
htmlFor: radioId,
|
|
1531
1532
|
className: cn(
|
|
1532
1533
|
"block text-sm font-medium cursor-pointer select-none",
|
|
1533
|
-
hasError ? "text-
|
|
1534
|
+
hasError ? "text-error" : "text-foreground",
|
|
1534
1535
|
disabled && "opacity-50 cursor-not-allowed"
|
|
1535
1536
|
),
|
|
1536
1537
|
children: label
|
|
@@ -1542,7 +1543,7 @@ var Radio = React110__namespace.default.forwardRef(
|
|
|
1542
1543
|
"p",
|
|
1543
1544
|
{
|
|
1544
1545
|
id: `${radioId}-error`,
|
|
1545
|
-
className: "text-sm text-
|
|
1546
|
+
className: "text-sm text-error font-medium",
|
|
1546
1547
|
role: "alert",
|
|
1547
1548
|
children: error
|
|
1548
1549
|
}
|
|
@@ -1551,7 +1552,7 @@ var Radio = React110__namespace.default.forwardRef(
|
|
|
1551
1552
|
"p",
|
|
1552
1553
|
{
|
|
1553
1554
|
id: `${radioId}-helper`,
|
|
1554
|
-
className: "text-sm text-
|
|
1555
|
+
className: "text-sm text-muted-foreground",
|
|
1555
1556
|
children: helperText
|
|
1556
1557
|
}
|
|
1557
1558
|
)
|
|
@@ -1712,20 +1713,20 @@ var Stack = ({
|
|
|
1712
1713
|
var VStack = (props) => /* @__PURE__ */ jsxRuntime.jsx(Stack, { direction: "vertical", ...props });
|
|
1713
1714
|
var HStack = (props) => /* @__PURE__ */ jsxRuntime.jsx(Stack, { direction: "horizontal", ...props });
|
|
1714
1715
|
var statusColors = {
|
|
1715
|
-
online: "bg-
|
|
1716
|
-
offline: "bg-
|
|
1717
|
-
away: "bg-
|
|
1718
|
-
busy: "bg-
|
|
1719
|
-
warning: "bg-
|
|
1720
|
-
critical: "bg-
|
|
1716
|
+
online: "bg-success",
|
|
1717
|
+
offline: "bg-muted-foreground",
|
|
1718
|
+
away: "bg-warning",
|
|
1719
|
+
busy: "bg-error",
|
|
1720
|
+
warning: "bg-warning",
|
|
1721
|
+
critical: "bg-error"
|
|
1721
1722
|
};
|
|
1722
1723
|
var pulseRingColors = {
|
|
1723
|
-
online: "ring-
|
|
1724
|
-
offline: "ring-
|
|
1725
|
-
away: "ring-
|
|
1726
|
-
busy: "ring-
|
|
1727
|
-
warning: "ring-
|
|
1728
|
-
critical: "ring-
|
|
1724
|
+
online: "ring-success",
|
|
1725
|
+
offline: "ring-muted-foreground",
|
|
1726
|
+
away: "ring-warning",
|
|
1727
|
+
busy: "ring-error",
|
|
1728
|
+
warning: "ring-warning",
|
|
1729
|
+
critical: "ring-error"
|
|
1729
1730
|
};
|
|
1730
1731
|
var sizeStyles5 = {
|
|
1731
1732
|
sm: "w-2 h-2",
|
|
@@ -1769,10 +1770,10 @@ function resolveDirection(value, direction) {
|
|
|
1769
1770
|
return value > 0 ? "up" : "down";
|
|
1770
1771
|
}
|
|
1771
1772
|
function resolveColor(dir, invert) {
|
|
1772
|
-
if (dir === "flat") return "text-
|
|
1773
|
+
if (dir === "flat") return "text-muted-foreground";
|
|
1773
1774
|
const isPositive = dir === "up";
|
|
1774
1775
|
const isGood = invert ? !isPositive : isPositive;
|
|
1775
|
-
return isGood ? "text-
|
|
1776
|
+
return isGood ? "text-success" : "text-error";
|
|
1776
1777
|
}
|
|
1777
1778
|
var iconMap2 = {
|
|
1778
1779
|
up: LucideIcons.TrendingUp,
|
|
@@ -1890,7 +1891,7 @@ var RangeSlider = React110__namespace.default.forwardRef(
|
|
|
1890
1891
|
"div",
|
|
1891
1892
|
{
|
|
1892
1893
|
className: cn(
|
|
1893
|
-
"absolute inset-x-0 rounded-full bg-
|
|
1894
|
+
"absolute inset-x-0 rounded-full bg-muted",
|
|
1894
1895
|
trackSizes[size]
|
|
1895
1896
|
),
|
|
1896
1897
|
style: { top: "50%", transform: "translateY(-50%)" }
|
|
@@ -1900,7 +1901,7 @@ var RangeSlider = React110__namespace.default.forwardRef(
|
|
|
1900
1901
|
"div",
|
|
1901
1902
|
{
|
|
1902
1903
|
className: cn(
|
|
1903
|
-
"absolute rounded-full bg-
|
|
1904
|
+
"absolute rounded-full bg-muted-foreground opacity-30",
|
|
1904
1905
|
trackSizes[size]
|
|
1905
1906
|
),
|
|
1906
1907
|
style: {
|
|
@@ -1915,7 +1916,7 @@ var RangeSlider = React110__namespace.default.forwardRef(
|
|
|
1915
1916
|
"div",
|
|
1916
1917
|
{
|
|
1917
1918
|
className: cn(
|
|
1918
|
-
"absolute rounded-full bg-
|
|
1919
|
+
"absolute rounded-full bg-primary",
|
|
1919
1920
|
trackSizes[size]
|
|
1920
1921
|
),
|
|
1921
1922
|
style: {
|
|
@@ -1977,9 +1978,9 @@ var RangeSlider = React110__namespace.default.forwardRef(
|
|
|
1977
1978
|
"div",
|
|
1978
1979
|
{
|
|
1979
1980
|
className: cn(
|
|
1980
|
-
"absolute rounded-full bg-
|
|
1981
|
-
"border-2 border-
|
|
1982
|
-
"shadow-
|
|
1981
|
+
"absolute rounded-full bg-primary-foreground",
|
|
1982
|
+
"border-2 border-primary",
|
|
1983
|
+
"shadow-sm",
|
|
1983
1984
|
"pointer-events-none",
|
|
1984
1985
|
"transition-transform duration-100",
|
|
1985
1986
|
isDragging && "scale-110",
|
|
@@ -1997,7 +1998,7 @@ var RangeSlider = React110__namespace.default.forwardRef(
|
|
|
1997
1998
|
{
|
|
1998
1999
|
className: cn(
|
|
1999
2000
|
"absolute -top-8 px-2 py-0.5 rounded",
|
|
2000
|
-
"bg-
|
|
2001
|
+
"bg-foreground text-background",
|
|
2001
2002
|
"text-xs font-medium whitespace-nowrap",
|
|
2002
2003
|
"pointer-events-none"
|
|
2003
2004
|
),
|
|
@@ -2014,7 +2015,7 @@ var RangeSlider = React110__namespace.default.forwardRef(
|
|
|
2014
2015
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2015
2016
|
"div",
|
|
2016
2017
|
{
|
|
2017
|
-
className: "absolute w-px h-1.5 bg-
|
|
2018
|
+
className: "absolute w-px h-1.5 bg-muted-foreground",
|
|
2018
2019
|
style: { left: `${tickPercent}%` }
|
|
2019
2020
|
},
|
|
2020
2021
|
i
|
|
@@ -2028,8 +2029,8 @@ var RangeSlider = React110__namespace.default.forwardRef(
|
|
|
2028
2029
|
RangeSlider.displayName = "RangeSlider";
|
|
2029
2030
|
var backgroundClasses = {
|
|
2030
2031
|
default: "",
|
|
2031
|
-
alt: "bg-
|
|
2032
|
-
dark: "bg-
|
|
2032
|
+
alt: "bg-surface",
|
|
2033
|
+
dark: "bg-foreground text-background",
|
|
2033
2034
|
gradient: [
|
|
2034
2035
|
"bg-gradient-to-b",
|
|
2035
2036
|
"from-[var(--color-primary)]/5",
|
|
@@ -2206,9 +2207,9 @@ var ErrorState = ({
|
|
|
2206
2207
|
className
|
|
2207
2208
|
),
|
|
2208
2209
|
children: [
|
|
2209
|
-
/* @__PURE__ */ jsxRuntime.jsx(Box, { className: "mb-4 rounded-
|
|
2210
|
-
/* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "h3", className: "text-lg font-medium text-
|
|
2211
|
-
/* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "small", className: "mt-1 text-
|
|
2210
|
+
/* @__PURE__ */ jsxRuntime.jsx(Box, { className: "mb-4 rounded-full bg-error/10 p-3", children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.AlertCircle, { className: "h-8 w-8 text-error" }) }),
|
|
2211
|
+
/* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "h3", className: "text-lg font-medium text-foreground", children: resolvedTitle }),
|
|
2212
|
+
/* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "small", className: "mt-1 text-muted-foreground max-w-sm", children: resolvedMessage }),
|
|
2212
2213
|
(onRetry || retryEvent) && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "secondary", className: "mt-4", onClick: handleRetry, children: t("error.retry") })
|
|
2213
2214
|
]
|
|
2214
2215
|
}
|
|
@@ -2643,29 +2644,41 @@ var defaultIcon = L__default.default.icon({
|
|
|
2643
2644
|
L__default.default.Marker.prototype.options.icon = defaultIcon;
|
|
2644
2645
|
|
|
2645
2646
|
// lib/verificationRegistry.ts
|
|
2646
|
-
var checks = /* @__PURE__ */ new Map();
|
|
2647
|
-
var transitions = [];
|
|
2648
2647
|
var MAX_TRANSITIONS = 500;
|
|
2649
|
-
|
|
2648
|
+
function getState() {
|
|
2649
|
+
if (typeof window !== "undefined") {
|
|
2650
|
+
const w = window;
|
|
2651
|
+
if (!w.__verificationRegistryState) {
|
|
2652
|
+
w.__verificationRegistryState = {
|
|
2653
|
+
checks: /* @__PURE__ */ new Map(),
|
|
2654
|
+
transitions: [],
|
|
2655
|
+
bridgeHealth: null,
|
|
2656
|
+
listeners: /* @__PURE__ */ new Set()
|
|
2657
|
+
};
|
|
2658
|
+
}
|
|
2659
|
+
return w.__verificationRegistryState;
|
|
2660
|
+
}
|
|
2661
|
+
return { checks: /* @__PURE__ */ new Map(), transitions: [], bridgeHealth: null, listeners: /* @__PURE__ */ new Set() };
|
|
2662
|
+
}
|
|
2650
2663
|
function notifyListeners() {
|
|
2651
|
-
listeners.forEach((l) => l());
|
|
2664
|
+
getState().listeners.forEach((l) => l());
|
|
2652
2665
|
exposeOnWindow();
|
|
2653
2666
|
}
|
|
2654
2667
|
function registerCheck(id, label, status = "pending", details) {
|
|
2655
|
-
checks.set(id, { id, label, status, details, updatedAt: Date.now() });
|
|
2668
|
+
getState().checks.set(id, { id, label, status, details, updatedAt: Date.now() });
|
|
2656
2669
|
notifyListeners();
|
|
2657
2670
|
}
|
|
2658
2671
|
function getAllChecks() {
|
|
2659
|
-
return Array.from(checks.values());
|
|
2672
|
+
return Array.from(getState().checks.values());
|
|
2660
2673
|
}
|
|
2661
2674
|
function recordTransition(trace) {
|
|
2662
2675
|
const entry = {
|
|
2663
2676
|
...trace,
|
|
2664
2677
|
id: `t-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`
|
|
2665
2678
|
};
|
|
2666
|
-
transitions.push(entry);
|
|
2667
|
-
if (transitions.length > MAX_TRANSITIONS) {
|
|
2668
|
-
transitions.shift();
|
|
2679
|
+
getState().transitions.push(entry);
|
|
2680
|
+
if (getState().transitions.length > MAX_TRANSITIONS) {
|
|
2681
|
+
getState().transitions.shift();
|
|
2669
2682
|
}
|
|
2670
2683
|
if (entry.event === "INIT") {
|
|
2671
2684
|
const hasFetch = entry.effects.some((e) => e.type === "fetch");
|
|
@@ -2700,10 +2713,11 @@ function recordTransition(trace) {
|
|
|
2700
2713
|
notifyListeners();
|
|
2701
2714
|
}
|
|
2702
2715
|
function getTransitions() {
|
|
2703
|
-
return [...transitions];
|
|
2716
|
+
return [...getState().transitions];
|
|
2704
2717
|
}
|
|
2705
2718
|
function getBridgeHealth() {
|
|
2706
|
-
|
|
2719
|
+
const bh = getState().bridgeHealth;
|
|
2720
|
+
return bh ? { ...bh } : null;
|
|
2707
2721
|
}
|
|
2708
2722
|
function getSummary() {
|
|
2709
2723
|
const allChecks = getAllChecks();
|
|
@@ -2724,8 +2738,8 @@ function getSnapshot() {
|
|
|
2724
2738
|
};
|
|
2725
2739
|
}
|
|
2726
2740
|
function subscribeToVerification(listener) {
|
|
2727
|
-
listeners.add(listener);
|
|
2728
|
-
return () => listeners.delete(listener);
|
|
2741
|
+
getState().listeners.add(listener);
|
|
2742
|
+
return () => getState().listeners.delete(listener);
|
|
2729
2743
|
}
|
|
2730
2744
|
function exposeOnWindow() {
|
|
2731
2745
|
if (typeof window === "undefined") return;
|
|
@@ -2742,7 +2756,7 @@ function exposeOnWindow() {
|
|
|
2742
2756
|
}
|
|
2743
2757
|
function waitForTransition(event, timeoutMs = 1e4) {
|
|
2744
2758
|
return new Promise((resolve) => {
|
|
2745
|
-
const existing = transitions.find((t) => t.event === event);
|
|
2759
|
+
const existing = getState().transitions.find((t) => t.event === event);
|
|
2746
2760
|
if (existing) {
|
|
2747
2761
|
resolve(existing);
|
|
2748
2762
|
return;
|
|
@@ -2752,7 +2766,7 @@ function waitForTransition(event, timeoutMs = 1e4) {
|
|
|
2752
2766
|
resolve(null);
|
|
2753
2767
|
}, timeoutMs);
|
|
2754
2768
|
const unsub = subscribeToVerification(() => {
|
|
2755
|
-
const found = transitions.find((t) => t.event === event);
|
|
2769
|
+
const found = getState().transitions.find((t) => t.event === event);
|
|
2756
2770
|
if (found) {
|
|
2757
2771
|
clearTimeout(timeout);
|
|
2758
2772
|
unsub();
|
|
@@ -2882,7 +2896,7 @@ var MarkdownContent = React110__namespace.default.memo(
|
|
|
2882
2896
|
"blockquote",
|
|
2883
2897
|
{
|
|
2884
2898
|
...props,
|
|
2885
|
-
className: "border-l-4 border-blue-500 pl-4 italic text-
|
|
2899
|
+
className: "border-l-4 border-blue-500 pl-4 italic text-foreground my-4",
|
|
2886
2900
|
children
|
|
2887
2901
|
}
|
|
2888
2902
|
);
|
|
@@ -2957,7 +2971,7 @@ var CodeBlock = React110__namespace.default.memo(
|
|
|
2957
2971
|
variant: "ghost",
|
|
2958
2972
|
size: "sm",
|
|
2959
2973
|
onClick: handleCopy,
|
|
2960
|
-
className: "opacity-0 group-hover:opacity-100 focus:opacity-100 transition-opacity text-
|
|
2974
|
+
className: "opacity-0 group-hover:opacity-100 focus:opacity-100 transition-opacity text-muted-foreground hover:text-white",
|
|
2961
2975
|
"aria-label": "Copy code",
|
|
2962
2976
|
children: copied ? /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Check, { size: 16, className: "text-green-400" }) : /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Copy, { size: 16 })
|
|
2963
2977
|
}
|
|
@@ -3119,7 +3133,7 @@ function VerificationProvider({
|
|
|
3119
3133
|
})) : [];
|
|
3120
3134
|
recordTransition({
|
|
3121
3135
|
traitName: parsed.traitName,
|
|
3122
|
-
from: pending?.from ?? "unknown",
|
|
3136
|
+
from: pending?.from ?? (parsed.event === "INIT" ? "init" : "unknown"),
|
|
3123
3137
|
to: newState,
|
|
3124
3138
|
event: parsed.event,
|
|
3125
3139
|
effects,
|