@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.
@@ -357,8 +357,8 @@ function EventBusProvider({ children, debug: debug2 = false }) {
357
357
  payload,
358
358
  timestamp: Date.now()
359
359
  };
360
- const listeners7 = listenersRef.current.get(type);
361
- const listenerCount = listeners7?.size ?? 0;
360
+ const listeners6 = listenersRef.current.get(type);
361
+ const listenerCount = listeners6?.size ?? 0;
362
362
  if (debug2) {
363
363
  if (listenerCount > 0) {
364
364
  console.log(`[EventBus] Emit: ${type} \u2192 ${listenerCount} listener(s)`, payload);
@@ -366,8 +366,8 @@ function EventBusProvider({ children, debug: debug2 = false }) {
366
366
  console.warn(`[EventBus] Emit: ${type} (NO LISTENERS - event may be lost!)`, payload);
367
367
  }
368
368
  }
369
- if (listeners7) {
370
- const listenersCopy = Array.from(listeners7);
369
+ if (listeners6) {
370
+ const listenersCopy = Array.from(listeners6);
371
371
  for (const listener of listenersCopy) {
372
372
  try {
373
373
  listener(event);
@@ -389,17 +389,17 @@ function EventBusProvider({ children, debug: debug2 = false }) {
389
389
  if (!listenersRef.current.has(type)) {
390
390
  listenersRef.current.set(type, /* @__PURE__ */ new Set());
391
391
  }
392
- const listeners7 = listenersRef.current.get(type);
393
- listeners7.add(listener);
392
+ const listeners6 = listenersRef.current.get(type);
393
+ listeners6.add(listener);
394
394
  if (debug2) {
395
- console.log(`[EventBus] Subscribed to '${type}', total: ${listeners7.size}`);
395
+ console.log(`[EventBus] Subscribed to '${type}', total: ${listeners6.size}`);
396
396
  }
397
397
  return () => {
398
- listeners7.delete(listener);
398
+ listeners6.delete(listener);
399
399
  if (debug2) {
400
- console.log(`[EventBus] Unsubscribed from '${type}', remaining: ${listeners7.size}`);
400
+ console.log(`[EventBus] Unsubscribed from '${type}', remaining: ${listeners6.size}`);
401
401
  }
402
- if (listeners7.size === 0) {
402
+ if (listeners6.size === 0) {
403
403
  listenersRef.current.delete(type);
404
404
  }
405
405
  };
@@ -412,8 +412,8 @@ function EventBusProvider({ children, debug: debug2 = false }) {
412
412
  return on(type, wrappedListener);
413
413
  }, [on]);
414
414
  const hasListeners = useCallback((type) => {
415
- const listeners7 = listenersRef.current.get(type);
416
- return listeners7 !== void 0 && listeners7.size > 0;
415
+ const listeners6 = listenersRef.current.get(type);
416
+ return listeners6 !== void 0 && listeners6.size > 0;
417
417
  }, []);
418
418
  const onAny = useCallback((listener) => {
419
419
  anyListenersRef.current.add(listener);
@@ -631,28 +631,28 @@ var marginYStyles = {
631
631
  };
632
632
  var bgStyles = {
633
633
  transparent: "bg-transparent",
634
- primary: "bg-[var(--color-primary)] text-[var(--color-primary-foreground)]",
635
- secondary: "bg-[var(--color-secondary)] text-[var(--color-secondary-foreground)]",
636
- muted: "bg-[var(--color-muted)] text-[var(--color-foreground)]",
637
- accent: "bg-[var(--color-accent)] text-[var(--color-accent-foreground)]",
638
- surface: "bg-[var(--color-card)]",
639
- overlay: "bg-[var(--color-card)]/80 backdrop-blur-sm"
634
+ primary: "bg-primary text-primary-foreground",
635
+ secondary: "bg-secondary text-secondary-foreground",
636
+ muted: "bg-muted text-foreground",
637
+ accent: "bg-accent text-accent-foreground",
638
+ surface: "bg-card",
639
+ overlay: "bg-card/80 backdrop-blur-sm"
640
640
  };
641
641
  var roundedStyles = {
642
642
  none: "rounded-none",
643
- sm: "rounded-[var(--radius-sm)]",
644
- md: "rounded-[var(--radius-md)]",
645
- lg: "rounded-[var(--radius-lg)]",
646
- xl: "rounded-[var(--radius-xl)]",
647
- "2xl": "rounded-[var(--radius-xl)]",
648
- full: "rounded-[var(--radius-full)]"
643
+ sm: "rounded-sm",
644
+ md: "rounded-md",
645
+ lg: "rounded-lg",
646
+ xl: "rounded-xl",
647
+ "2xl": "rounded-xl",
648
+ full: "rounded-full"
649
649
  };
650
650
  var shadowStyles = {
651
651
  none: "shadow-none",
652
- sm: "shadow-[var(--shadow-sm)]",
653
- md: "shadow-[var(--shadow-main)]",
654
- lg: "shadow-[var(--shadow-lg)]",
655
- xl: "shadow-[var(--shadow-lg)]"
652
+ sm: "shadow-sm",
653
+ md: "shadow",
654
+ lg: "shadow-lg",
655
+ xl: "shadow-lg"
656
656
  };
657
657
  var displayStyles = {
658
658
  block: "block",
@@ -740,7 +740,7 @@ var Box = React110__default.forwardRef(
740
740
  // Background
741
741
  bgStyles[bg],
742
742
  // Border - uses theme variables
743
- border && "border-[length:var(--border-width)] border-[var(--color-border)]",
743
+ border && "border-[length:var(--border-width)] border-border",
744
744
  // Rounded
745
745
  roundedStyles[rounded],
746
746
  // Shadow
@@ -769,30 +769,30 @@ var Box = React110__default.forwardRef(
769
769
  );
770
770
  Box.displayName = "Box";
771
771
  var variantStyles = {
772
- h1: "text-4xl font-bold tracking-tight text-[var(--color-foreground)]",
773
- h2: "text-3xl font-bold tracking-tight text-[var(--color-foreground)]",
774
- h3: "text-2xl font-bold text-[var(--color-foreground)]",
775
- h4: "text-xl font-bold text-[var(--color-foreground)]",
776
- h5: "text-lg font-bold text-[var(--color-foreground)]",
777
- h6: "text-base font-bold text-[var(--color-foreground)]",
778
- heading: "text-2xl font-bold text-[var(--color-foreground)]",
779
- subheading: "text-lg font-semibold text-[var(--color-foreground)]",
780
- body1: "text-base font-normal text-[var(--color-foreground)]",
781
- body2: "text-sm font-normal text-[var(--color-foreground)]",
782
- body: "text-base font-normal text-[var(--color-foreground)]",
783
- caption: "text-xs font-normal text-[var(--color-muted-foreground)]",
784
- overline: "text-xs uppercase tracking-wide font-bold text-[var(--color-muted-foreground)]",
785
- small: "text-sm font-normal text-[var(--color-foreground)]",
786
- large: "text-lg font-medium text-[var(--color-foreground)]",
787
- label: "text-sm font-medium text-[var(--color-foreground)]"
772
+ h1: "text-4xl font-bold tracking-tight text-foreground",
773
+ h2: "text-3xl font-bold tracking-tight text-foreground",
774
+ h3: "text-2xl font-bold text-foreground",
775
+ h4: "text-xl font-bold text-foreground",
776
+ h5: "text-lg font-bold text-foreground",
777
+ h6: "text-base font-bold text-foreground",
778
+ heading: "text-2xl font-bold text-foreground",
779
+ subheading: "text-lg font-semibold text-foreground",
780
+ body1: "text-base font-normal text-foreground",
781
+ body2: "text-sm font-normal text-foreground",
782
+ body: "text-base font-normal text-foreground",
783
+ caption: "text-xs font-normal text-muted-foreground",
784
+ overline: "text-xs uppercase tracking-wide font-bold text-muted-foreground",
785
+ small: "text-sm font-normal text-foreground",
786
+ large: "text-lg font-medium text-foreground",
787
+ label: "text-sm font-medium text-foreground"
788
788
  };
789
789
  var colorStyles = {
790
- primary: "text-[var(--color-foreground)]",
791
- secondary: "text-[var(--color-muted-foreground)]",
792
- muted: "text-[var(--color-muted-foreground)]",
793
- error: "text-[var(--color-error)]",
794
- success: "text-[var(--color-success)]",
795
- warning: "text-[var(--color-warning)]",
790
+ primary: "text-foreground",
791
+ secondary: "text-muted-foreground",
792
+ muted: "text-muted-foreground",
793
+ error: "text-error",
794
+ success: "text-success",
795
+ warning: "text-warning",
796
796
  inherit: "text-inherit"
797
797
  };
798
798
  var weightStyles = {
@@ -877,49 +877,49 @@ var Typography = ({
877
877
  Typography.displayName = "Typography";
878
878
  var variantStyles2 = {
879
879
  primary: [
880
- "bg-[var(--color-primary)] text-[var(--color-primary-foreground)]",
880
+ "bg-primary text-primary-foreground",
881
881
  "border-none",
882
- "shadow-[var(--shadow-sm)]",
883
- "hover:bg-[var(--color-primary-hover)] hover:shadow-[var(--shadow-hover)]",
884
- "active:scale-[var(--active-scale)] active:shadow-[var(--shadow-active)]"
882
+ "shadow-sm",
883
+ "hover:bg-primary-hover hover:shadow-lg",
884
+ "active:scale-[var(--active-scale)] active:shadow-sm"
885
885
  ].join(" "),
886
886
  secondary: [
887
- "bg-[var(--color-muted)] text-[var(--color-foreground)]",
888
- "border-none",
889
- "hover:bg-[var(--color-muted-foreground)]/15 hover:text-[var(--color-foreground)]",
887
+ "bg-transparent text-accent",
888
+ "border border-accent",
889
+ "hover:bg-accent hover:text-white hover:border-accent",
890
890
  "active:scale-[var(--active-scale)]"
891
891
  ].join(" "),
892
892
  ghost: [
893
- "bg-transparent text-[var(--color-muted-foreground)]",
894
- "hover:text-[var(--color-foreground)] hover:bg-[var(--color-muted)]",
893
+ "bg-transparent text-muted-foreground",
894
+ "hover:text-foreground hover:bg-muted",
895
895
  "active:scale-[var(--active-scale)]"
896
896
  ].join(" "),
897
897
  danger: [
898
- "bg-[var(--color-surface)] text-[var(--color-error)]",
899
- "border-[length:var(--border-width)] border-[var(--color-error)]",
900
- "shadow-[var(--shadow-sm)]",
901
- "hover:bg-[var(--color-error)] hover:text-[var(--color-error-foreground)] hover:shadow-[var(--shadow-hover)]",
902
- "active:scale-[var(--active-scale)] active:shadow-[var(--shadow-active)]"
898
+ "bg-surface text-error",
899
+ "border-[length:var(--border-width)] border-error",
900
+ "shadow-sm",
901
+ "hover:bg-error hover:text-error-foreground hover:shadow-lg",
902
+ "active:scale-[var(--active-scale)] active:shadow-sm"
903
903
  ].join(" "),
904
904
  success: [
905
- "bg-[var(--color-surface)] text-[var(--color-success)]",
906
- "border-[length:var(--border-width)] border-[var(--color-success)]",
907
- "shadow-[var(--shadow-sm)]",
908
- "hover:bg-[var(--color-success)] hover:text-[var(--color-success-foreground)] hover:shadow-[var(--shadow-hover)]",
909
- "active:scale-[var(--active-scale)] active:shadow-[var(--shadow-active)]"
905
+ "bg-surface text-success",
906
+ "border-[length:var(--border-width)] border-success",
907
+ "shadow-sm",
908
+ "hover:bg-success hover:text-success-foreground hover:shadow-lg",
909
+ "active:scale-[var(--active-scale)] active:shadow-sm"
910
910
  ].join(" "),
911
911
  warning: [
912
- "bg-[var(--color-surface)] text-[var(--color-warning)]",
913
- "border-[length:var(--border-width)] border-[var(--color-warning)]",
914
- "shadow-[var(--shadow-sm)]",
915
- "hover:bg-[var(--color-warning)] hover:text-[var(--color-warning-foreground)] hover:shadow-[var(--shadow-hover)]",
916
- "active:scale-[var(--active-scale)] active:shadow-[var(--shadow-active)]"
912
+ "bg-surface text-warning",
913
+ "border-[length:var(--border-width)] border-warning",
914
+ "shadow-sm",
915
+ "hover:bg-warning hover:text-warning-foreground hover:shadow-lg",
916
+ "active:scale-[var(--active-scale)] active:shadow-sm"
917
917
  ].join(" "),
918
918
  // "default" is an alias for secondary
919
919
  default: [
920
- "bg-[var(--color-secondary)] text-[var(--color-secondary-foreground)]",
921
- "border-[length:var(--border-width-thin)] border-[var(--color-border)]",
922
- "hover:bg-[var(--color-secondary-hover)]",
920
+ "bg-secondary text-secondary-foreground",
921
+ "border-[length:var(--border-width-thin)] border-border",
922
+ "hover:bg-secondary-hover",
923
923
  "active:scale-[var(--active-scale)]"
924
924
  ].join(" ")
925
925
  };
@@ -990,9 +990,10 @@ var Button = React110__default.forwardRef(
990
990
  className: cn(
991
991
  "inline-flex items-center justify-center gap-2",
992
992
  "font-[var(--font-weight-medium)]",
993
- "rounded-[var(--radius-sm)]",
993
+ "rounded-sm",
994
+ "cursor-pointer",
994
995
  "transition-all duration-[var(--transition-normal)]",
995
- "focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-[var(--color-ring)] focus:ring-offset-[length:var(--focus-ring-offset)]",
996
+ "focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-offset-[length:var(--focus-ring-offset)]",
996
997
  "disabled:opacity-50 disabled:cursor-not-allowed",
997
998
  variantStyles2[variant],
998
999
  sizeStyles2[size],
@@ -1013,34 +1014,34 @@ var Button = React110__default.forwardRef(
1013
1014
  Button.displayName = "Button";
1014
1015
  var variantStyles3 = {
1015
1016
  default: [
1016
- "bg-[var(--color-muted)] text-[var(--color-foreground)]",
1017
- "border-[length:var(--border-width-thin)] border-[var(--color-border)]"
1017
+ "bg-muted text-foreground",
1018
+ "border-[length:var(--border-width-thin)] border-border"
1018
1019
  ].join(" "),
1019
- primary: "bg-[var(--color-primary)] text-[var(--color-primary-foreground)]",
1020
- secondary: "bg-[var(--color-secondary)] text-[var(--color-secondary-foreground)]",
1020
+ primary: "bg-primary text-primary-foreground",
1021
+ secondary: "bg-secondary text-secondary-foreground",
1021
1022
  success: [
1022
- "bg-[var(--color-surface)] text-[var(--color-success)]",
1023
- "border-[length:var(--border-width)] border-[var(--color-success)]"
1023
+ "bg-surface text-success",
1024
+ "border-[length:var(--border-width)] border-success"
1024
1025
  ].join(" "),
1025
1026
  warning: [
1026
- "bg-[var(--color-surface)] text-[var(--color-warning)]",
1027
- "border-[length:var(--border-width)] border-[var(--color-warning)]"
1027
+ "bg-surface text-warning",
1028
+ "border-[length:var(--border-width)] border-warning"
1028
1029
  ].join(" "),
1029
1030
  danger: [
1030
- "bg-[var(--color-surface)] text-[var(--color-error)]",
1031
- "border-[length:var(--border-width)] border-[var(--color-error)]"
1031
+ "bg-surface text-error",
1032
+ "border-[length:var(--border-width)] border-error"
1032
1033
  ].join(" "),
1033
1034
  error: [
1034
- "bg-[var(--color-surface)] text-[var(--color-error)]",
1035
- "border-[length:var(--border-width)] border-[var(--color-error)]"
1035
+ "bg-surface text-error",
1036
+ "border-[length:var(--border-width)] border-error"
1036
1037
  ].join(" "),
1037
1038
  info: [
1038
- "bg-[var(--color-surface)] text-[var(--color-info)]",
1039
- "border-[length:var(--border-width)] border-[var(--color-info)]"
1039
+ "bg-surface text-info",
1040
+ "border-[length:var(--border-width)] border-info"
1040
1041
  ].join(" "),
1041
1042
  neutral: [
1042
- "bg-[var(--color-muted)] text-[var(--color-muted-foreground)]",
1043
- "border-[length:var(--border-width-thin)] border-[var(--color-border)]"
1043
+ "bg-muted text-muted-foreground",
1044
+ "border-[length:var(--border-width-thin)] border-border"
1044
1045
  ].join(" ")
1045
1046
  };
1046
1047
  var sizeStyles3 = {
@@ -1060,7 +1061,7 @@ var Badge = React110__default.forwardRef(
1060
1061
  {
1061
1062
  ref,
1062
1063
  className: cn(
1063
- "inline-flex items-center gap-1 font-bold rounded-[var(--radius-sm)]",
1064
+ "inline-flex items-center gap-1 font-bold rounded-sm",
1064
1065
  variantStyles3[variant],
1065
1066
  sizeStyles3[size],
1066
1067
  className
@@ -1096,21 +1097,21 @@ var Input = React110__default.forwardRef(
1096
1097
  const resolvedLeftIcon = leftIcon || IconComponent && /* @__PURE__ */ jsx(IconComponent, { className: "h-4 w-4" });
1097
1098
  const showClearButton = clearable && value && String(value).length > 0;
1098
1099
  const baseClassName = cn(
1099
- "block w-full rounded-[var(--radius-sm)] transition-all duration-[var(--transition-fast)]",
1100
- "border-[length:var(--border-width-thin)] border-[var(--color-border)]",
1100
+ "block w-full rounded-sm transition-all duration-[var(--transition-fast)]",
1101
+ "border-[length:var(--border-width-thin)] border-border",
1101
1102
  "px-3 py-2 text-sm",
1102
- "bg-[var(--color-card)] hover:bg-[var(--color-muted)] focus:bg-[var(--color-card)]",
1103
- "text-[var(--color-foreground)] placeholder:text-[var(--color-muted-foreground)]",
1104
- "focus:outline-none focus:ring-1 focus:ring-[var(--color-ring)] focus:border-[var(--color-ring)]",
1105
- "disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-[var(--color-muted)]",
1106
- error ? "border-[var(--color-error)] focus:border-[var(--color-error)] focus:ring-[var(--color-error)]" : "",
1103
+ "bg-card hover:bg-muted focus:bg-card",
1104
+ "text-foreground placeholder:text-muted-foreground",
1105
+ "focus:outline-none focus:ring-1 focus:ring-ring focus:border-ring",
1106
+ "disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-muted",
1107
+ error ? "border-error focus:border-error focus:ring-error" : "",
1107
1108
  resolvedLeftIcon && "pl-10",
1108
1109
  (rightIcon || showClearButton) && "pr-10",
1109
1110
  className
1110
1111
  );
1111
1112
  if (type === "select") {
1112
1113
  return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
1113
- resolvedLeftIcon && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-[var(--color-muted-foreground)]", children: resolvedLeftIcon }),
1114
+ resolvedLeftIcon && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-muted-foreground", children: resolvedLeftIcon }),
1114
1115
  /* @__PURE__ */ jsxs(
1115
1116
  "select",
1116
1117
  {
@@ -1125,7 +1126,7 @@ var Input = React110__default.forwardRef(
1125
1126
  ]
1126
1127
  }
1127
1128
  ),
1128
- /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none text-[var(--color-muted-foreground)]", children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" }) })
1129
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none text-muted-foreground", children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" }) })
1129
1130
  ] });
1130
1131
  }
1131
1132
  if (type === "textarea") {
@@ -1150,9 +1151,9 @@ var Input = React110__default.forwardRef(
1150
1151
  checked: props.checked,
1151
1152
  onChange,
1152
1153
  className: cn(
1153
- "h-4 w-4 rounded-[var(--radius-sm)]",
1154
- "border-[var(--color-border)]",
1155
- "text-[var(--color-primary)] focus:ring-[var(--color-ring)]",
1154
+ "h-4 w-4 rounded-sm",
1155
+ "border-border",
1156
+ "text-primary focus:ring-ring",
1156
1157
  "disabled:opacity-50 disabled:cursor-not-allowed",
1157
1158
  className
1158
1159
  ),
@@ -1161,7 +1162,7 @@ var Input = React110__default.forwardRef(
1161
1162
  );
1162
1163
  }
1163
1164
  return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
1164
- resolvedLeftIcon && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-[var(--color-muted-foreground)]", children: resolvedLeftIcon }),
1165
+ resolvedLeftIcon && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-muted-foreground", children: resolvedLeftIcon }),
1165
1166
  /* @__PURE__ */ jsx(
1166
1167
  "input",
1167
1168
  {
@@ -1178,11 +1179,11 @@ var Input = React110__default.forwardRef(
1178
1179
  {
1179
1180
  type: "button",
1180
1181
  onClick: onClear,
1181
- className: "absolute inset-y-0 right-0 pr-3 flex items-center text-[var(--color-muted-foreground)] hover:text-[var(--color-foreground)]",
1182
+ className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground hover:text-foreground",
1182
1183
  children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
1183
1184
  }
1184
1185
  ),
1185
- rightIcon && !showClearButton && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-[var(--color-muted-foreground)]", children: rightIcon })
1186
+ rightIcon && !showClearButton && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground", children: rightIcon })
1186
1187
  ] });
1187
1188
  }
1188
1189
  );
@@ -1194,13 +1195,13 @@ var Label = React110__default.forwardRef(
1194
1195
  {
1195
1196
  ref,
1196
1197
  className: cn(
1197
- "block text-sm font-bold text-[var(--color-foreground)]",
1198
+ "block text-sm font-bold text-foreground",
1198
1199
  className
1199
1200
  ),
1200
1201
  ...props,
1201
1202
  children: [
1202
1203
  children,
1203
- required && /* @__PURE__ */ jsx("span", { className: "text-[var(--color-error)] ml-1", children: "*" })
1204
+ required && /* @__PURE__ */ jsx("span", { className: "text-error ml-1", children: "*" })
1204
1205
  ]
1205
1206
  }
1206
1207
  );
@@ -1214,14 +1215,14 @@ var Textarea = React110__default.forwardRef(
1214
1215
  {
1215
1216
  ref,
1216
1217
  className: cn(
1217
- "block w-full border-[length:var(--border-width)] shadow-[var(--shadow-sm)]",
1218
- "px-3 py-2 text-sm text-[var(--color-foreground)]",
1219
- "bg-[var(--color-card)]",
1218
+ "block w-full border-[length:var(--border-width)] shadow-sm",
1219
+ "px-3 py-2 text-sm text-foreground",
1220
+ "bg-card",
1220
1221
  "placeholder:text-[var(--color-placeholder)]",
1221
- "focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-[var(--color-ring)]",
1222
- "disabled:bg-[var(--color-muted)] disabled:text-[var(--color-muted-foreground)] disabled:cursor-not-allowed",
1222
+ "focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-ring",
1223
+ "disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed",
1223
1224
  "resize-y min-h-[80px]",
1224
- error ? "border-[var(--color-error)] focus:border-[var(--color-error)]" : "border-[var(--color-border)] focus:border-[var(--color-primary)]",
1225
+ error ? "border-error focus:border-error" : "border-border focus:border-primary",
1225
1226
  className
1226
1227
  ),
1227
1228
  ...props
@@ -1238,12 +1239,12 @@ var Select = React110__default.forwardRef(
1238
1239
  {
1239
1240
  ref,
1240
1241
  className: cn(
1241
- "block w-full border-[length:var(--border-width)] shadow-[var(--shadow-sm)] appearance-none",
1242
- "px-3 py-2 pr-10 text-sm text-[var(--color-foreground)] font-medium",
1243
- "bg-[var(--color-card)]",
1244
- "focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-[var(--color-ring)]",
1245
- "disabled:bg-[var(--color-muted)] disabled:text-[var(--color-muted-foreground)] disabled:cursor-not-allowed",
1246
- error ? "border-[var(--color-error)] focus:border-[var(--color-error)]" : "border-[var(--color-border)] focus:border-[var(--color-primary)]",
1242
+ "block w-full border-[length:var(--border-width)] shadow-sm appearance-none",
1243
+ "px-3 py-2 pr-10 text-sm text-foreground font-medium",
1244
+ "bg-card",
1245
+ "focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-ring",
1246
+ "disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed",
1247
+ error ? "border-error focus:border-error" : "border-border focus:border-primary",
1247
1248
  className
1248
1249
  ),
1249
1250
  ...props,
@@ -1261,7 +1262,7 @@ var Select = React110__default.forwardRef(
1261
1262
  ]
1262
1263
  }
1263
1264
  ),
1264
- /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none", children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 text-[var(--color-foreground)]" }) })
1265
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none", children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 text-foreground" }) })
1265
1266
  ] });
1266
1267
  }
1267
1268
  );
@@ -1277,9 +1278,9 @@ var Checkbox = React110__default.forwardRef(
1277
1278
  type: "checkbox",
1278
1279
  id: inputId,
1279
1280
  className: cn(
1280
- "peer h-4 w-4 border-[length:var(--border-width)] border-[var(--color-border)]",
1281
- "accent-[var(--color-primary)] focus:ring-[var(--color-ring)] focus:ring-offset-0",
1282
- "bg-[var(--color-card)] checked:bg-[var(--color-primary)]",
1281
+ "peer h-4 w-4 border-[length:var(--border-width)] border-border",
1282
+ "accent-primary focus:ring-ring focus:ring-offset-0",
1283
+ "bg-card checked:bg-primary",
1283
1284
  "disabled:opacity-50 disabled:cursor-not-allowed",
1284
1285
  className
1285
1286
  ),
@@ -1290,7 +1291,7 @@ var Checkbox = React110__default.forwardRef(
1290
1291
  "label",
1291
1292
  {
1292
1293
  htmlFor: inputId,
1293
- className: "ml-2 text-sm text-[var(--color-foreground)] font-medium cursor-pointer select-none",
1294
+ className: "ml-2 text-sm text-foreground font-medium cursor-pointer select-none",
1294
1295
  children: label
1295
1296
  }
1296
1297
  )
@@ -1300,34 +1301,34 @@ var Checkbox = React110__default.forwardRef(
1300
1301
  Checkbox.displayName = "Checkbox";
1301
1302
  var variantStyles4 = {
1302
1303
  default: [
1303
- "bg-[var(--color-card)]",
1304
- "border-[length:var(--border-width)] border-[var(--color-border)]",
1305
- "shadow-[var(--shadow-sm)]",
1304
+ "bg-card",
1305
+ "border-[length:var(--border-width)] border-border",
1306
+ "shadow-sm",
1306
1307
  "transition-all duration-[var(--transition-normal)]",
1307
- "hover:shadow-[var(--shadow-hover)] hover:-translate-y-0.5"
1308
+ "hover:shadow-lg hover:-translate-y-0.5"
1308
1309
  ].join(" "),
1309
1310
  bordered: [
1310
- "bg-[var(--color-card)]",
1311
- "border-[length:var(--border-width)] border-[var(--color-border)]",
1312
- "shadow-[var(--shadow-sm)]",
1311
+ "bg-card",
1312
+ "border-[length:var(--border-width)] border-border",
1313
+ "shadow-sm",
1313
1314
  "transition-all duration-[var(--transition-normal)]",
1314
- "hover:shadow-[var(--shadow-hover)] hover:-translate-y-0.5"
1315
+ "hover:shadow-lg hover:-translate-y-0.5"
1315
1316
  ].join(" "),
1316
1317
  elevated: [
1317
- "bg-[var(--color-card)]",
1318
- "border-[length:var(--border-width)] border-[var(--color-border)]",
1319
- "shadow-[var(--shadow-main)]",
1318
+ "bg-card",
1319
+ "border-[length:var(--border-width)] border-border",
1320
+ "shadow",
1320
1321
  "transition-all duration-[var(--transition-normal)]",
1321
- "hover:shadow-[var(--shadow-hover)] hover:-translate-y-0.5"
1322
+ "hover:shadow-lg hover:-translate-y-0.5"
1322
1323
  ].join(" "),
1323
1324
  // Interactive variant with theme-specific hover effects
1324
1325
  interactive: [
1325
- "bg-[var(--color-card)]",
1326
- "border-[length:var(--border-width)] border-[var(--color-border)]",
1327
- "shadow-[var(--shadow-main)]",
1326
+ "bg-card",
1327
+ "border-[length:var(--border-width)] border-border",
1328
+ "shadow",
1328
1329
  "cursor-pointer",
1329
1330
  "transition-all duration-[var(--transition-normal)]",
1330
- "hover:shadow-[var(--shadow-hover)]"
1331
+ "hover:shadow-lg"
1331
1332
  ].join(" ")
1332
1333
  };
1333
1334
  var paddingStyles2 = {
@@ -1338,9 +1339,9 @@ var paddingStyles2 = {
1338
1339
  };
1339
1340
  var shadowStyles2 = {
1340
1341
  none: "shadow-none",
1341
- sm: "shadow-[var(--shadow-sm)]",
1342
- md: "shadow-[var(--shadow-main)]",
1343
- lg: "shadow-[var(--shadow-lg)]"
1342
+ sm: "shadow-sm",
1343
+ md: "shadow",
1344
+ lg: "shadow-lg"
1344
1345
  };
1345
1346
  var Card = React110__default.forwardRef(
1346
1347
  ({
@@ -1358,7 +1359,7 @@ var Card = React110__default.forwardRef(
1358
1359
  {
1359
1360
  ref,
1360
1361
  className: cn(
1361
- "rounded-[var(--radius-md)]",
1362
+ "rounded-md",
1362
1363
  "transition-all duration-[var(--transition-normal)]",
1363
1364
  variantStyles4[variant],
1364
1365
  paddingStyles2[padding],
@@ -1368,8 +1369,8 @@ var Card = React110__default.forwardRef(
1368
1369
  ...props,
1369
1370
  children: [
1370
1371
  (title || subtitle) && /* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
1371
- title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-[var(--color-card-foreground)] font-[var(--font-weight-bold)]", children: title }),
1372
- subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-[var(--color-muted-foreground)] mt-1", children: subtitle })
1372
+ title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-card-foreground font-[var(--font-weight-bold)]", children: title }),
1373
+ subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: subtitle })
1373
1374
  ] }),
1374
1375
  children
1375
1376
  ]
@@ -1385,7 +1386,7 @@ var CardTitle = React110__default.forwardRef(({ className, ...props }, ref) => /
1385
1386
  {
1386
1387
  ref,
1387
1388
  className: cn(
1388
- "text-lg text-[var(--color-card-foreground)]",
1389
+ "text-lg text-card-foreground",
1389
1390
  "font-[var(--font-weight-bold)]",
1390
1391
  className
1391
1392
  ),
@@ -1418,7 +1419,7 @@ var Spinner = React110__default.forwardRef(
1418
1419
  "div",
1419
1420
  {
1420
1421
  ref,
1421
- className: cn("text-[var(--color-foreground)]", className),
1422
+ className: cn("text-foreground", className),
1422
1423
  ...props,
1423
1424
  children: /* @__PURE__ */ jsx(Loader2, { className: cn("animate-spin", sizeStyles4[size]) })
1424
1425
  }
@@ -1475,8 +1476,8 @@ var Radio = React110__default.forwardRef(
1475
1476
  "flex items-center justify-center",
1476
1477
  "border-[length:var(--border-width)] transition-all cursor-pointer",
1477
1478
  sizeClasses6[size],
1478
- hasError ? "border-[var(--color-error)] peer-focus:ring-[var(--color-error)]/20" : "border-[var(--color-border)] peer-focus:ring-[var(--color-ring)]/20",
1479
- checked ? hasError ? "border-[var(--color-error)]" : "border-[var(--color-primary)] bg-[var(--color-primary)]" : "",
1479
+ hasError ? "border-error peer-focus:ring-error/20" : "border-border peer-focus:ring-ring/20",
1480
+ checked ? hasError ? "border-error" : "border-primary bg-primary" : "",
1480
1481
  "peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-offset-2",
1481
1482
  disabled && "opacity-50 cursor-not-allowed",
1482
1483
  !disabled && "hover:border-[var(--color-border-hover)]"
@@ -1487,7 +1488,7 @@ var Radio = React110__default.forwardRef(
1487
1488
  className: cn(
1488
1489
  "transition-all",
1489
1490
  dotSizeClasses[size],
1490
- hasError ? "bg-[var(--color-error)]" : "bg-[var(--color-primary-foreground)]"
1491
+ hasError ? "bg-error" : "bg-primary-foreground"
1491
1492
  )
1492
1493
  }
1493
1494
  )
@@ -1500,7 +1501,7 @@ var Radio = React110__default.forwardRef(
1500
1501
  htmlFor: radioId,
1501
1502
  className: cn(
1502
1503
  "block text-sm font-medium cursor-pointer select-none",
1503
- hasError ? "text-[var(--color-error)]" : "text-[var(--color-foreground)]",
1504
+ hasError ? "text-error" : "text-foreground",
1504
1505
  disabled && "opacity-50 cursor-not-allowed"
1505
1506
  ),
1506
1507
  children: label
@@ -1512,7 +1513,7 @@ var Radio = React110__default.forwardRef(
1512
1513
  "p",
1513
1514
  {
1514
1515
  id: `${radioId}-error`,
1515
- className: "text-sm text-[var(--color-error)] font-medium",
1516
+ className: "text-sm text-error font-medium",
1516
1517
  role: "alert",
1517
1518
  children: error
1518
1519
  }
@@ -1521,7 +1522,7 @@ var Radio = React110__default.forwardRef(
1521
1522
  "p",
1522
1523
  {
1523
1524
  id: `${radioId}-helper`,
1524
- className: "text-sm text-[var(--color-muted-foreground)]",
1525
+ className: "text-sm text-muted-foreground",
1525
1526
  children: helperText
1526
1527
  }
1527
1528
  )
@@ -1682,20 +1683,20 @@ var Stack = ({
1682
1683
  var VStack = (props) => /* @__PURE__ */ jsx(Stack, { direction: "vertical", ...props });
1683
1684
  var HStack = (props) => /* @__PURE__ */ jsx(Stack, { direction: "horizontal", ...props });
1684
1685
  var statusColors = {
1685
- online: "bg-[var(--color-success)]",
1686
- offline: "bg-[var(--color-muted-foreground)]",
1687
- away: "bg-[var(--color-warning)]",
1688
- busy: "bg-[var(--color-error)]",
1689
- warning: "bg-[var(--color-warning)]",
1690
- critical: "bg-[var(--color-error)]"
1686
+ online: "bg-success",
1687
+ offline: "bg-muted-foreground",
1688
+ away: "bg-warning",
1689
+ busy: "bg-error",
1690
+ warning: "bg-warning",
1691
+ critical: "bg-error"
1691
1692
  };
1692
1693
  var pulseRingColors = {
1693
- online: "ring-[var(--color-success)]",
1694
- offline: "ring-[var(--color-muted-foreground)]",
1695
- away: "ring-[var(--color-warning)]",
1696
- busy: "ring-[var(--color-error)]",
1697
- warning: "ring-[var(--color-warning)]",
1698
- critical: "ring-[var(--color-error)]"
1694
+ online: "ring-success",
1695
+ offline: "ring-muted-foreground",
1696
+ away: "ring-warning",
1697
+ busy: "ring-error",
1698
+ warning: "ring-warning",
1699
+ critical: "ring-error"
1699
1700
  };
1700
1701
  var sizeStyles5 = {
1701
1702
  sm: "w-2 h-2",
@@ -1739,10 +1740,10 @@ function resolveDirection(value, direction) {
1739
1740
  return value > 0 ? "up" : "down";
1740
1741
  }
1741
1742
  function resolveColor(dir, invert) {
1742
- if (dir === "flat") return "text-[var(--color-muted-foreground)]";
1743
+ if (dir === "flat") return "text-muted-foreground";
1743
1744
  const isPositive = dir === "up";
1744
1745
  const isGood = invert ? !isPositive : isPositive;
1745
- return isGood ? "text-[var(--color-success)]" : "text-[var(--color-error)]";
1746
+ return isGood ? "text-success" : "text-error";
1746
1747
  }
1747
1748
  var iconMap2 = {
1748
1749
  up: TrendingUp,
@@ -1860,7 +1861,7 @@ var RangeSlider = React110__default.forwardRef(
1860
1861
  "div",
1861
1862
  {
1862
1863
  className: cn(
1863
- "absolute inset-x-0 rounded-full bg-[var(--color-muted)]",
1864
+ "absolute inset-x-0 rounded-full bg-muted",
1864
1865
  trackSizes[size]
1865
1866
  ),
1866
1867
  style: { top: "50%", transform: "translateY(-50%)" }
@@ -1870,7 +1871,7 @@ var RangeSlider = React110__default.forwardRef(
1870
1871
  "div",
1871
1872
  {
1872
1873
  className: cn(
1873
- "absolute rounded-full bg-[var(--color-muted-foreground)] opacity-30",
1874
+ "absolute rounded-full bg-muted-foreground opacity-30",
1874
1875
  trackSizes[size]
1875
1876
  ),
1876
1877
  style: {
@@ -1885,7 +1886,7 @@ var RangeSlider = React110__default.forwardRef(
1885
1886
  "div",
1886
1887
  {
1887
1888
  className: cn(
1888
- "absolute rounded-full bg-[var(--color-primary)]",
1889
+ "absolute rounded-full bg-primary",
1889
1890
  trackSizes[size]
1890
1891
  ),
1891
1892
  style: {
@@ -1947,9 +1948,9 @@ var RangeSlider = React110__default.forwardRef(
1947
1948
  "div",
1948
1949
  {
1949
1950
  className: cn(
1950
- "absolute rounded-full bg-[var(--color-primary-foreground)]",
1951
- "border-2 border-[var(--color-primary)]",
1952
- "shadow-[var(--shadow-sm)]",
1951
+ "absolute rounded-full bg-primary-foreground",
1952
+ "border-2 border-primary",
1953
+ "shadow-sm",
1953
1954
  "pointer-events-none",
1954
1955
  "transition-transform duration-100",
1955
1956
  isDragging && "scale-110",
@@ -1967,7 +1968,7 @@ var RangeSlider = React110__default.forwardRef(
1967
1968
  {
1968
1969
  className: cn(
1969
1970
  "absolute -top-8 px-2 py-0.5 rounded",
1970
- "bg-[var(--color-foreground)] text-[var(--color-background)]",
1971
+ "bg-foreground text-background",
1971
1972
  "text-xs font-medium whitespace-nowrap",
1972
1973
  "pointer-events-none"
1973
1974
  ),
@@ -1984,7 +1985,7 @@ var RangeSlider = React110__default.forwardRef(
1984
1985
  return /* @__PURE__ */ jsx(
1985
1986
  "div",
1986
1987
  {
1987
- className: "absolute w-px h-1.5 bg-[var(--color-muted-foreground)]",
1988
+ className: "absolute w-px h-1.5 bg-muted-foreground",
1988
1989
  style: { left: `${tickPercent}%` }
1989
1990
  },
1990
1991
  i
@@ -1998,8 +1999,8 @@ var RangeSlider = React110__default.forwardRef(
1998
1999
  RangeSlider.displayName = "RangeSlider";
1999
2000
  var backgroundClasses = {
2000
2001
  default: "",
2001
- alt: "bg-[var(--color-surface)]",
2002
- dark: "bg-[var(--color-foreground)] text-[var(--color-background)]",
2002
+ alt: "bg-surface",
2003
+ dark: "bg-foreground text-background",
2003
2004
  gradient: [
2004
2005
  "bg-gradient-to-b",
2005
2006
  "from-[var(--color-primary)]/5",
@@ -2176,9 +2177,9 @@ var ErrorState = ({
2176
2177
  className
2177
2178
  ),
2178
2179
  children: [
2179
- /* @__PURE__ */ jsx(Box, { className: "mb-4 rounded-[var(--radius-full)] bg-[var(--color-error)]/10 p-3", children: /* @__PURE__ */ jsx(AlertCircle, { className: "h-8 w-8 text-[var(--color-error)]" }) }),
2180
- /* @__PURE__ */ jsx(Typography, { variant: "h3", className: "text-lg font-medium text-[var(--color-foreground)]", children: resolvedTitle }),
2181
- /* @__PURE__ */ jsx(Typography, { variant: "small", className: "mt-1 text-[var(--color-muted-foreground)] max-w-sm", children: resolvedMessage }),
2180
+ /* @__PURE__ */ jsx(Box, { className: "mb-4 rounded-full bg-error/10 p-3", children: /* @__PURE__ */ jsx(AlertCircle, { className: "h-8 w-8 text-error" }) }),
2181
+ /* @__PURE__ */ jsx(Typography, { variant: "h3", className: "text-lg font-medium text-foreground", children: resolvedTitle }),
2182
+ /* @__PURE__ */ jsx(Typography, { variant: "small", className: "mt-1 text-muted-foreground max-w-sm", children: resolvedMessage }),
2182
2183
  (onRetry || retryEvent) && /* @__PURE__ */ jsx(Button, { variant: "secondary", className: "mt-4", onClick: handleRetry, children: t("error.retry") })
2183
2184
  ]
2184
2185
  }
@@ -2613,29 +2614,41 @@ var defaultIcon = L.icon({
2613
2614
  L.Marker.prototype.options.icon = defaultIcon;
2614
2615
 
2615
2616
  // lib/verificationRegistry.ts
2616
- var checks = /* @__PURE__ */ new Map();
2617
- var transitions = [];
2618
2617
  var MAX_TRANSITIONS = 500;
2619
- var listeners = /* @__PURE__ */ new Set();
2618
+ function getState() {
2619
+ if (typeof window !== "undefined") {
2620
+ const w = window;
2621
+ if (!w.__verificationRegistryState) {
2622
+ w.__verificationRegistryState = {
2623
+ checks: /* @__PURE__ */ new Map(),
2624
+ transitions: [],
2625
+ bridgeHealth: null,
2626
+ listeners: /* @__PURE__ */ new Set()
2627
+ };
2628
+ }
2629
+ return w.__verificationRegistryState;
2630
+ }
2631
+ return { checks: /* @__PURE__ */ new Map(), transitions: [], bridgeHealth: null, listeners: /* @__PURE__ */ new Set() };
2632
+ }
2620
2633
  function notifyListeners() {
2621
- listeners.forEach((l) => l());
2634
+ getState().listeners.forEach((l) => l());
2622
2635
  exposeOnWindow();
2623
2636
  }
2624
2637
  function registerCheck(id, label, status = "pending", details) {
2625
- checks.set(id, { id, label, status, details, updatedAt: Date.now() });
2638
+ getState().checks.set(id, { id, label, status, details, updatedAt: Date.now() });
2626
2639
  notifyListeners();
2627
2640
  }
2628
2641
  function getAllChecks() {
2629
- return Array.from(checks.values());
2642
+ return Array.from(getState().checks.values());
2630
2643
  }
2631
2644
  function recordTransition(trace) {
2632
2645
  const entry = {
2633
2646
  ...trace,
2634
2647
  id: `t-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`
2635
2648
  };
2636
- transitions.push(entry);
2637
- if (transitions.length > MAX_TRANSITIONS) {
2638
- transitions.shift();
2649
+ getState().transitions.push(entry);
2650
+ if (getState().transitions.length > MAX_TRANSITIONS) {
2651
+ getState().transitions.shift();
2639
2652
  }
2640
2653
  if (entry.event === "INIT") {
2641
2654
  const hasFetch = entry.effects.some((e) => e.type === "fetch");
@@ -2670,10 +2683,11 @@ function recordTransition(trace) {
2670
2683
  notifyListeners();
2671
2684
  }
2672
2685
  function getTransitions() {
2673
- return [...transitions];
2686
+ return [...getState().transitions];
2674
2687
  }
2675
2688
  function getBridgeHealth() {
2676
- return null;
2689
+ const bh = getState().bridgeHealth;
2690
+ return bh ? { ...bh } : null;
2677
2691
  }
2678
2692
  function getSummary() {
2679
2693
  const allChecks = getAllChecks();
@@ -2694,8 +2708,8 @@ function getSnapshot() {
2694
2708
  };
2695
2709
  }
2696
2710
  function subscribeToVerification(listener) {
2697
- listeners.add(listener);
2698
- return () => listeners.delete(listener);
2711
+ getState().listeners.add(listener);
2712
+ return () => getState().listeners.delete(listener);
2699
2713
  }
2700
2714
  function exposeOnWindow() {
2701
2715
  if (typeof window === "undefined") return;
@@ -2712,7 +2726,7 @@ function exposeOnWindow() {
2712
2726
  }
2713
2727
  function waitForTransition(event, timeoutMs = 1e4) {
2714
2728
  return new Promise((resolve) => {
2715
- const existing = transitions.find((t) => t.event === event);
2729
+ const existing = getState().transitions.find((t) => t.event === event);
2716
2730
  if (existing) {
2717
2731
  resolve(existing);
2718
2732
  return;
@@ -2722,7 +2736,7 @@ function waitForTransition(event, timeoutMs = 1e4) {
2722
2736
  resolve(null);
2723
2737
  }, timeoutMs);
2724
2738
  const unsub = subscribeToVerification(() => {
2725
- const found = transitions.find((t) => t.event === event);
2739
+ const found = getState().transitions.find((t) => t.event === event);
2726
2740
  if (found) {
2727
2741
  clearTimeout(timeout);
2728
2742
  unsub();
@@ -2852,7 +2866,7 @@ var MarkdownContent = React110__default.memo(
2852
2866
  "blockquote",
2853
2867
  {
2854
2868
  ...props,
2855
- className: "border-l-4 border-blue-500 pl-4 italic text-[var(--color-foreground)] my-4",
2869
+ className: "border-l-4 border-blue-500 pl-4 italic text-foreground my-4",
2856
2870
  children
2857
2871
  }
2858
2872
  );
@@ -2927,7 +2941,7 @@ var CodeBlock = React110__default.memo(
2927
2941
  variant: "ghost",
2928
2942
  size: "sm",
2929
2943
  onClick: handleCopy,
2930
- className: "opacity-0 group-hover:opacity-100 focus:opacity-100 transition-opacity text-[var(--color-muted-foreground)] hover:text-white",
2944
+ className: "opacity-0 group-hover:opacity-100 focus:opacity-100 transition-opacity text-muted-foreground hover:text-white",
2931
2945
  "aria-label": "Copy code",
2932
2946
  children: copied ? /* @__PURE__ */ jsx(Check, { size: 16, className: "text-green-400" }) : /* @__PURE__ */ jsx(Copy, { size: 16 })
2933
2947
  }
@@ -3089,7 +3103,7 @@ function VerificationProvider({
3089
3103
  })) : [];
3090
3104
  recordTransition({
3091
3105
  traitName: parsed.traitName,
3092
- from: pending?.from ?? "unknown",
3106
+ from: pending?.from ?? (parsed.event === "INIT" ? "init" : "unknown"),
3093
3107
  to: newState,
3094
3108
  event: parsed.event,
3095
3109
  effects,