@dloizides/ui-feedback 1.21.0 → 1.23.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.23.0
4
+
5
+ - `ToastHost`: `ToastInput.action` (`{ label, hint?, onPress }`, LINKS-1 "Shared short-link service" Undo after delete) renders a 44x44 button (testID `<toastTestID>-action`, accessibilityLabel = label, hint defaults to label); pressing it runs `onPress` and dismisses the toast. Without `action` the toast is unchanged.
6
+ - `createToastBus`: new `show(toast)` emits a full `ToastInput` (e.g. one with an action).
7
+ - New type export `ToastActionSpec`.
8
+
3
9
  ## 1.20.0
4
10
 
5
11
  - `ToastHost`: new toast type `warning` (AML-TOAST-1 "Manual screening banner colour follows the result"), filled from `theme.semantic.warning` with an ink at 4.5:1 or better and its own glyph (▲), announced politely like success and info. A theme without a `warning` scale uses the `info` colours, never `error`.
package/dist/index.d.mts CHANGED
@@ -29,10 +29,18 @@ interface FeedbackThemeSemantic {
29
29
  error: FeedbackColorScale;
30
30
  [name: string]: FeedbackColorScale;
31
31
  }
32
+ /** Text colours readable on the mode's surfaces; `semantic` stays the fill. */
33
+ interface FeedbackThemeSemanticText {
34
+ success: string;
35
+ warning: string;
36
+ error: string;
37
+ info: string;
38
+ }
32
39
  interface FeedbackTheme {
33
40
  colors: FeedbackThemeColors;
34
41
  palette: FeedbackThemePalette;
35
42
  semantic: FeedbackThemeSemantic;
43
+ semanticText?: FeedbackThemeSemanticText;
36
44
  }
37
45
  /** Translate function — mirrors the apps' `FM(key, p1?, p2?, p3?)` helper. */
38
46
  type FeedbackTranslate = (key: string, p1?: string, p2?: string, p3?: string) => string;
@@ -235,6 +243,12 @@ interface ConfirmDialogProps {
235
243
  }
236
244
  declare const ConfirmDialog: ({ visible, title, message, onConfirm, onCancel, confirmLabel, cancelLabel, confirmDisabled, loading, destructive, }: ConfirmDialogProps) => React.ReactElement | null;
237
245
 
246
+ interface ToastActionSpec {
247
+ label: string;
248
+ hint?: string;
249
+ onPress: () => void;
250
+ }
251
+
238
252
  /**
239
253
  * ToastHost — the shared, tokenized transient-toast overlay promoted from the
240
254
  * byte-identical erevna-web / katalogos-web `ToastContainer` twins.
@@ -259,6 +273,7 @@ interface ToastInput {
259
273
  type?: ToastType;
260
274
  /** Trace id of the failed request; an error toast shows it as "Error reference" + Copy. */
261
275
  traceId?: string;
276
+ action?: ToastActionSpec;
262
277
  }
263
278
  interface ToastHostProps {
264
279
  /**
@@ -381,6 +396,7 @@ interface ToastBus {
381
396
  info(text: string): void;
382
397
  /** Emit a warning toast. */
383
398
  warning(text: string): void;
399
+ show(toast: ToastInput): void;
384
400
  }
385
401
  /**
386
402
  * Create an independent toast bus. Emitting with no subscriber is a silent no-op
@@ -660,4 +676,4 @@ declare function LiveRunCard(props: LiveRunCardProps): React.ReactElement;
660
676
  /** The theme colour for a step or group state; falls back to primary/text when a semantic scale is absent. */
661
677
  declare function runToneColor(theme: FeedbackTheme, state: RunStepState): string;
662
678
 
663
- export { AppErrorBoundary, type AppErrorBoundaryProps, AsyncSurface, type AsyncSurfaceProps, COPY_FEEDBACK_MS, ConfirmDialog, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, DEFAULT_ERROR_BOUNDARY_LABELS, DISABLED_OPACITY, type DoneSummary, EmptyListState, type EmptyListStateProps, type ErrorBoundaryLabels, type ErrorFallbackState, ErrorReferenceRow, type ErrorReferenceRowProps, ErrorState, type ErrorStateAction, type ErrorStateProps, FEEDBACK_TEST_IDS, type FeedbackColorScale, type FeedbackNavigate, type FeedbackTheme, type FeedbackThemeColors, type FeedbackThemePalette, type FeedbackThemeSemantic, type FeedbackTranslate, FeedbackUiProvider, type FeedbackUiProviderProps, type FeedbackUiValue, type FlatRunStep, LIVE_RUN_CARD_COMPACT_MAX_PX, LiveRunCard, type LiveRunCardLabels, type LiveRunCardProps, LoadingFallback, type LoadingFallbackProps, MODAL_OVERLAY_COLOR, PageSkeleton, type PageSkeletonProps, ProgressBar, type ProgressBarProps, type RunGroup, type RunStep, type RunStepState, type StepSplit, type ToastBus, ToastHost, type ToastHostProps, type ToastInput, type ToastPush, type ToastType, type FeedbackColorScale as UiColorScale, type FeedbackNavigate as UiNavigate, FeedbackUiProvider as UiProvider, type FeedbackUiProviderProps as UiProviderProps, type FeedbackTheme as UiTheme, type FeedbackThemeColors as UiThemeColors, type FeedbackThemePalette as UiThemePalette, type FeedbackThemeSemantic as UiThemeSemantic, type FeedbackTranslate as UiTranslate, type FeedbackUiValue as UiValue, WARMING_QUIET_PERIOD_MS, type WarmingInfo, WarmingOverlay, type WarmingOverlayLabels, type WarmingOverlayProps, type WarmingSnapshot, barFraction, clampPercent, copyText, createToastBus, defaultGroupId, getWarmingSnapshot, mergeRunSteps, notifyWarming, progressPercent, readTraceId, runToneColor, settleWarming, splitShorterSteps, subscribeWarming, summariseDoneGroups, useCopyToClipboard, useFeedbackUi, useFeedbackUi as useUi };
679
+ export { AppErrorBoundary, type AppErrorBoundaryProps, AsyncSurface, type AsyncSurfaceProps, COPY_FEEDBACK_MS, ConfirmDialog, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, DEFAULT_ERROR_BOUNDARY_LABELS, DISABLED_OPACITY, type DoneSummary, EmptyListState, type EmptyListStateProps, type ErrorBoundaryLabels, type ErrorFallbackState, ErrorReferenceRow, type ErrorReferenceRowProps, ErrorState, type ErrorStateAction, type ErrorStateProps, FEEDBACK_TEST_IDS, type FeedbackColorScale, type FeedbackNavigate, type FeedbackTheme, type FeedbackThemeColors, type FeedbackThemePalette, type FeedbackThemeSemantic, type FeedbackThemeSemanticText, type FeedbackTranslate, FeedbackUiProvider, type FeedbackUiProviderProps, type FeedbackUiValue, type FlatRunStep, LIVE_RUN_CARD_COMPACT_MAX_PX, LiveRunCard, type LiveRunCardLabels, type LiveRunCardProps, LoadingFallback, type LoadingFallbackProps, MODAL_OVERLAY_COLOR, PageSkeleton, type PageSkeletonProps, ProgressBar, type ProgressBarProps, type RunGroup, type RunStep, type RunStepState, type StepSplit, type ToastActionSpec, type ToastBus, ToastHost, type ToastHostProps, type ToastInput, type ToastPush, type ToastType, type FeedbackColorScale as UiColorScale, type FeedbackNavigate as UiNavigate, FeedbackUiProvider as UiProvider, type FeedbackUiProviderProps as UiProviderProps, type FeedbackTheme as UiTheme, type FeedbackThemeColors as UiThemeColors, type FeedbackThemePalette as UiThemePalette, type FeedbackThemeSemantic as UiThemeSemantic, type FeedbackThemeSemanticText as UiThemeSemanticText, type FeedbackTranslate as UiTranslate, type FeedbackUiValue as UiValue, WARMING_QUIET_PERIOD_MS, type WarmingInfo, WarmingOverlay, type WarmingOverlayLabels, type WarmingOverlayProps, type WarmingSnapshot, barFraction, clampPercent, copyText, createToastBus, defaultGroupId, getWarmingSnapshot, mergeRunSteps, notifyWarming, progressPercent, readTraceId, runToneColor, settleWarming, splitShorterSteps, subscribeWarming, summariseDoneGroups, useCopyToClipboard, useFeedbackUi, useFeedbackUi as useUi };
package/dist/index.d.ts CHANGED
@@ -29,10 +29,18 @@ interface FeedbackThemeSemantic {
29
29
  error: FeedbackColorScale;
30
30
  [name: string]: FeedbackColorScale;
31
31
  }
32
+ /** Text colours readable on the mode's surfaces; `semantic` stays the fill. */
33
+ interface FeedbackThemeSemanticText {
34
+ success: string;
35
+ warning: string;
36
+ error: string;
37
+ info: string;
38
+ }
32
39
  interface FeedbackTheme {
33
40
  colors: FeedbackThemeColors;
34
41
  palette: FeedbackThemePalette;
35
42
  semantic: FeedbackThemeSemantic;
43
+ semanticText?: FeedbackThemeSemanticText;
36
44
  }
37
45
  /** Translate function — mirrors the apps' `FM(key, p1?, p2?, p3?)` helper. */
38
46
  type FeedbackTranslate = (key: string, p1?: string, p2?: string, p3?: string) => string;
@@ -235,6 +243,12 @@ interface ConfirmDialogProps {
235
243
  }
236
244
  declare const ConfirmDialog: ({ visible, title, message, onConfirm, onCancel, confirmLabel, cancelLabel, confirmDisabled, loading, destructive, }: ConfirmDialogProps) => React.ReactElement | null;
237
245
 
246
+ interface ToastActionSpec {
247
+ label: string;
248
+ hint?: string;
249
+ onPress: () => void;
250
+ }
251
+
238
252
  /**
239
253
  * ToastHost — the shared, tokenized transient-toast overlay promoted from the
240
254
  * byte-identical erevna-web / katalogos-web `ToastContainer` twins.
@@ -259,6 +273,7 @@ interface ToastInput {
259
273
  type?: ToastType;
260
274
  /** Trace id of the failed request; an error toast shows it as "Error reference" + Copy. */
261
275
  traceId?: string;
276
+ action?: ToastActionSpec;
262
277
  }
263
278
  interface ToastHostProps {
264
279
  /**
@@ -381,6 +396,7 @@ interface ToastBus {
381
396
  info(text: string): void;
382
397
  /** Emit a warning toast. */
383
398
  warning(text: string): void;
399
+ show(toast: ToastInput): void;
384
400
  }
385
401
  /**
386
402
  * Create an independent toast bus. Emitting with no subscriber is a silent no-op
@@ -660,4 +676,4 @@ declare function LiveRunCard(props: LiveRunCardProps): React.ReactElement;
660
676
  /** The theme colour for a step or group state; falls back to primary/text when a semantic scale is absent. */
661
677
  declare function runToneColor(theme: FeedbackTheme, state: RunStepState): string;
662
678
 
663
- export { AppErrorBoundary, type AppErrorBoundaryProps, AsyncSurface, type AsyncSurfaceProps, COPY_FEEDBACK_MS, ConfirmDialog, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, DEFAULT_ERROR_BOUNDARY_LABELS, DISABLED_OPACITY, type DoneSummary, EmptyListState, type EmptyListStateProps, type ErrorBoundaryLabels, type ErrorFallbackState, ErrorReferenceRow, type ErrorReferenceRowProps, ErrorState, type ErrorStateAction, type ErrorStateProps, FEEDBACK_TEST_IDS, type FeedbackColorScale, type FeedbackNavigate, type FeedbackTheme, type FeedbackThemeColors, type FeedbackThemePalette, type FeedbackThemeSemantic, type FeedbackTranslate, FeedbackUiProvider, type FeedbackUiProviderProps, type FeedbackUiValue, type FlatRunStep, LIVE_RUN_CARD_COMPACT_MAX_PX, LiveRunCard, type LiveRunCardLabels, type LiveRunCardProps, LoadingFallback, type LoadingFallbackProps, MODAL_OVERLAY_COLOR, PageSkeleton, type PageSkeletonProps, ProgressBar, type ProgressBarProps, type RunGroup, type RunStep, type RunStepState, type StepSplit, type ToastBus, ToastHost, type ToastHostProps, type ToastInput, type ToastPush, type ToastType, type FeedbackColorScale as UiColorScale, type FeedbackNavigate as UiNavigate, FeedbackUiProvider as UiProvider, type FeedbackUiProviderProps as UiProviderProps, type FeedbackTheme as UiTheme, type FeedbackThemeColors as UiThemeColors, type FeedbackThemePalette as UiThemePalette, type FeedbackThemeSemantic as UiThemeSemantic, type FeedbackTranslate as UiTranslate, type FeedbackUiValue as UiValue, WARMING_QUIET_PERIOD_MS, type WarmingInfo, WarmingOverlay, type WarmingOverlayLabels, type WarmingOverlayProps, type WarmingSnapshot, barFraction, clampPercent, copyText, createToastBus, defaultGroupId, getWarmingSnapshot, mergeRunSteps, notifyWarming, progressPercent, readTraceId, runToneColor, settleWarming, splitShorterSteps, subscribeWarming, summariseDoneGroups, useCopyToClipboard, useFeedbackUi, useFeedbackUi as useUi };
679
+ export { AppErrorBoundary, type AppErrorBoundaryProps, AsyncSurface, type AsyncSurfaceProps, COPY_FEEDBACK_MS, ConfirmDialog, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, DEFAULT_ERROR_BOUNDARY_LABELS, DISABLED_OPACITY, type DoneSummary, EmptyListState, type EmptyListStateProps, type ErrorBoundaryLabels, type ErrorFallbackState, ErrorReferenceRow, type ErrorReferenceRowProps, ErrorState, type ErrorStateAction, type ErrorStateProps, FEEDBACK_TEST_IDS, type FeedbackColorScale, type FeedbackNavigate, type FeedbackTheme, type FeedbackThemeColors, type FeedbackThemePalette, type FeedbackThemeSemantic, type FeedbackThemeSemanticText, type FeedbackTranslate, FeedbackUiProvider, type FeedbackUiProviderProps, type FeedbackUiValue, type FlatRunStep, LIVE_RUN_CARD_COMPACT_MAX_PX, LiveRunCard, type LiveRunCardLabels, type LiveRunCardProps, LoadingFallback, type LoadingFallbackProps, MODAL_OVERLAY_COLOR, PageSkeleton, type PageSkeletonProps, ProgressBar, type ProgressBarProps, type RunGroup, type RunStep, type RunStepState, type StepSplit, type ToastActionSpec, type ToastBus, ToastHost, type ToastHostProps, type ToastInput, type ToastPush, type ToastType, type FeedbackColorScale as UiColorScale, type FeedbackNavigate as UiNavigate, FeedbackUiProvider as UiProvider, type FeedbackUiProviderProps as UiProviderProps, type FeedbackTheme as UiTheme, type FeedbackThemeColors as UiThemeColors, type FeedbackThemePalette as UiThemePalette, type FeedbackThemeSemantic as UiThemeSemantic, type FeedbackThemeSemanticText as UiThemeSemanticText, type FeedbackTranslate as UiTranslate, type FeedbackUiValue as UiValue, WARMING_QUIET_PERIOD_MS, type WarmingInfo, WarmingOverlay, type WarmingOverlayLabels, type WarmingOverlayProps, type WarmingSnapshot, barFraction, clampPercent, copyText, createToastBus, defaultGroupId, getWarmingSnapshot, mergeRunSteps, notifyWarming, progressPercent, readTraceId, runToneColor, settleWarming, splitShorterSteps, subscribeWarming, summariseDoneGroups, useCopyToClipboard, useFeedbackUi, useFeedbackUi as useUi };
package/dist/index.js CHANGED
@@ -332,7 +332,7 @@ var ErrorState = ({
332
332
  const primary = theme.palette.primary["500"];
333
333
  const hasTitle = typeof title === "string" && title !== "";
334
334
  const hasIcon = icon !== void 0 && icon !== null;
335
- const messageColor = hasTitle ? theme.colors.textSecondary : errorColor;
335
+ const messageColor = hasTitle ? theme.colors.textSecondary : theme.semanticText?.error ?? errorColor;
336
336
  const retry = typeof onRetry === "function" ? /* @__PURE__ */ jsxRuntime.jsx(
337
337
  reactNative.TouchableOpacity,
338
338
  {
@@ -756,6 +756,39 @@ var ConfirmDialog = ({
756
756
  }
757
757
  );
758
758
  };
759
+ var ACTION_PADDING_HORIZONTAL = 12;
760
+ var ACTION_BORDER_RADIUS = 6;
761
+ var ACTION_FONT_SIZE = 14;
762
+ var styles8 = reactNative.StyleSheet.create({
763
+ button: {
764
+ minWidth: MIN_TOUCH_TARGET,
765
+ minHeight: MIN_TOUCH_TARGET,
766
+ paddingHorizontal: ACTION_PADDING_HORIZONTAL,
767
+ borderRadius: ACTION_BORDER_RADIUS,
768
+ borderWidth: 1,
769
+ alignItems: "center",
770
+ justifyContent: "center"
771
+ },
772
+ label: { fontSize: ACTION_FONT_SIZE, fontWeight: "700" }
773
+ });
774
+ var ToastAction = ({ action, color, testID, onDismiss }) => {
775
+ const handlePress = () => {
776
+ action.onPress();
777
+ onDismiss();
778
+ };
779
+ return /* @__PURE__ */ jsxRuntime.jsx(
780
+ reactNative.Pressable,
781
+ {
782
+ accessibilityHint: action.hint ?? action.label,
783
+ accessibilityLabel: action.label,
784
+ accessibilityRole: "button",
785
+ style: [styles8.button, { borderColor: color }],
786
+ testID,
787
+ onPress: handlePress,
788
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.label, { color }], children: action.label })
789
+ }
790
+ );
791
+ };
759
792
  var APP_HEADER_HEIGHT = 64;
760
793
  var HEADER_GAP = 8;
761
794
  var TOAST_TOP_MOBILE = 40;
@@ -813,7 +846,7 @@ var C1_CONTROL_END = 159;
813
846
  var ZERO_WIDTH_START = 8203;
814
847
  var ZERO_WIDTH_END = 8207;
815
848
  var BYTE_ORDER_MARK = 65279;
816
- var styles8 = reactNative.StyleSheet.create({
849
+ var styles9 = reactNative.StyleSheet.create({
817
850
  container: {
818
851
  position: "absolute",
819
852
  left: TOAST_HORIZONTAL_MARGIN,
@@ -890,14 +923,15 @@ var ToastItem = ({ message, onDone, tone, durationMs, fadeMs, testID }) => {
890
923
  {
891
924
  accessibilityLiveRegion: isError ? "assertive" : "polite",
892
925
  role: isError ? "alert" : "status",
893
- style: [styles8.toast, { backgroundColor: tone.fill, borderColor: tone.border, transform: [{ translateY }], opacity }],
926
+ style: [styles9.toast, { backgroundColor: tone.fill, borderColor: tone.border, transform: [{ translateY }], opacity }],
894
927
  testID,
895
928
  children: [
896
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, importantForAccessibility: "no-hide-descendants", style: [styles8.glyph, { borderColor: tone.ink }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.glyphText, { color: tone.ink }], children: tone.glyph }) }),
897
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles8.body, children: [
898
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.text, { color: tone.ink }], children: message.text }),
929
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, importantForAccessibility: "no-hide-descendants", style: [styles9.glyph, { borderColor: tone.ink }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.glyphText, { color: tone.ink }], children: tone.glyph }) }),
930
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles9.body, children: [
931
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.text, { color: tone.ink }], children: message.text }),
899
932
  /* @__PURE__ */ jsxRuntime.jsx(ErrorReferenceRow, { actionColor: tone.ink, color: tone.ink, testID: `${testID}-reference`, traceId: message.traceId })
900
- ] })
933
+ ] }),
934
+ message.action ? /* @__PURE__ */ jsxRuntime.jsx(ToastAction, { action: message.action, color: tone.ink, testID: `${testID}-action`, onDismiss: handleDone }) : null
901
935
  ]
902
936
  }
903
937
  );
@@ -928,7 +962,7 @@ var ToastHost = ({
928
962
  );
929
963
  const push = react.useCallback(
930
964
  (toast) => {
931
- setMessages((s) => [...s, { id: nextId(), type: toast.type, text: sanitizeToastText(toast.text, maxLength), traceId: toast.traceId }]);
965
+ setMessages((s) => [...s, { id: nextId(), type: toast.type, text: sanitizeToastText(toast.text, maxLength), traceId: toast.traceId, action: toast.action }]);
932
966
  },
933
967
  [maxLength]
934
968
  );
@@ -938,7 +972,7 @@ var ToastHost = ({
938
972
  react.useEffect(() => subscribe(push), [subscribe, push]);
939
973
  if (messages.length === 0) return null;
940
974
  const canPortal = IS_WEB && typeof document !== "undefined";
941
- const layer = /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles8.container, { top: toastTop(IS_WEB, topInset) }, canPortal ? WEB_FIXED_LAYER : null], children: messages.map((m) => /* @__PURE__ */ jsxRuntime.jsx(
975
+ const layer = /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles9.container, { top: toastTop(IS_WEB, topInset) }, canPortal ? WEB_FIXED_LAYER : null], children: messages.map((m) => /* @__PURE__ */ jsxRuntime.jsx(
942
976
  ToastItem,
943
977
  {
944
978
  durationMs,
@@ -1014,7 +1048,7 @@ var SUBTITLE_FONT_SIZE = 15;
1014
1048
  var ATTEMPT_FONT_SIZE = 13;
1015
1049
  var CARD_PADDING = 24;
1016
1050
  var NO_ATTEMPT = 0;
1017
- var styles9 = reactNative.StyleSheet.create({
1051
+ var styles10 = reactNative.StyleSheet.create({
1018
1052
  overlay: {
1019
1053
  position: "absolute",
1020
1054
  top: 0,
@@ -1071,13 +1105,13 @@ var WarmingOverlay = ({
1071
1105
  {
1072
1106
  accessibilityLabel: mergedLabels.accessibilityLabel,
1073
1107
  accessibilityRole: "alert",
1074
- style: [styles9.overlay, { backgroundColor: colors.background }],
1108
+ style: [styles10.overlay, { backgroundColor: colors.background }],
1075
1109
  testID: testIdPrefix,
1076
- children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles9.card, children: [
1110
+ children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles10.card, children: [
1077
1111
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.ActivityIndicator, { color: primary, size: "large" }),
1078
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.title, { color: colors.text }], testID: `${testIdPrefix}-title`, children: mergedLabels.title }),
1079
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.subtitle, { color: colors.textSecondary }], testID: `${testIdPrefix}-subtitle`, children: mergedLabels.subtitle }),
1080
- showHint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.attempt, { color: colors.textSecondary }], testID: `${testIdPrefix}-attempt`, children: mergedLabels.attemptHint(snapshot2.attempt) }) : null
1112
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.title, { color: colors.text }], testID: `${testIdPrefix}-title`, children: mergedLabels.title }),
1113
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.subtitle, { color: colors.textSecondary }], testID: `${testIdPrefix}-subtitle`, children: mergedLabels.subtitle }),
1114
+ showHint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.attempt, { color: colors.textSecondary }], testID: `${testIdPrefix}-attempt`, children: mergedLabels.attemptHint(snapshot2.attempt) }) : null
1081
1115
  ] })
1082
1116
  }
1083
1117
  );
@@ -1101,6 +1135,7 @@ function createToastBus() {
1101
1135
  };
1102
1136
  },
1103
1137
  emit: emit2,
1138
+ show: push,
1104
1139
  success(text) {
1105
1140
  emit2(text, "success");
1106
1141
  },
@@ -1133,7 +1168,7 @@ var BUTTON_PADDING_V3 = 12;
1133
1168
  var BUTTON_BORDER_RADIUS3 = 8;
1134
1169
  var BUTTON_MARGIN_TOP3 = 12;
1135
1170
  var BUTTON_FONT_SIZE3 = 16;
1136
- var styles10 = reactNative.StyleSheet.create({
1171
+ var styles11 = reactNative.StyleSheet.create({
1137
1172
  container: {
1138
1173
  flex: 1,
1139
1174
  justifyContent: "center",
@@ -1194,6 +1229,7 @@ var ErrorBoundaryFallback = ({
1194
1229
  }) => {
1195
1230
  const { theme } = useFeedbackUi();
1196
1231
  const warningColor = (theme.semantic.warning ?? theme.semantic.error)["500"];
1232
+ const warningText = theme.semanticText?.warning ?? warningColor;
1197
1233
  const primaryColor = theme.palette.primary["500"];
1198
1234
  const hasDetails = showDetails && error !== null;
1199
1235
  const primaryFill = { backgroundColor: primaryColor };
@@ -1206,10 +1242,10 @@ var ErrorBoundaryFallback = ({
1206
1242
  accessibilityHint: labels.tryAgainHint,
1207
1243
  accessibilityLabel: labels.tryAgain,
1208
1244
  accessibilityRole: "button",
1209
- style: [styles10.button, reloadIsPrimary ? secondaryFill : primaryFill],
1245
+ style: [styles11.button, reloadIsPrimary ? secondaryFill : primaryFill],
1210
1246
  testID: `${testIDPrefix}-retry-button`,
1211
1247
  onPress: onRetry,
1212
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.buttonText, reloadIsPrimary ? secondaryInk : primaryInk], children: labels.tryAgain })
1248
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.buttonText, reloadIsPrimary ? secondaryInk : primaryInk], children: labels.tryAgain })
1213
1249
  }
1214
1250
  ) : null;
1215
1251
  const reloadButton = typeof onReload === "function" ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -1218,10 +1254,10 @@ var ErrorBoundaryFallback = ({
1218
1254
  accessibilityHint: labels.reloadHint,
1219
1255
  accessibilityLabel: labels.reload,
1220
1256
  accessibilityRole: "button",
1221
- style: [styles10.button, reloadIsPrimary ? primaryFill : secondaryFill],
1257
+ style: [styles11.button, reloadIsPrimary ? primaryFill : secondaryFill],
1222
1258
  testID: `${testIDPrefix}-reload-button`,
1223
1259
  onPress: onReload,
1224
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.buttonText, reloadIsPrimary ? primaryInk : secondaryInk], children: labels.reload })
1260
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.buttonText, reloadIsPrimary ? primaryInk : secondaryInk], children: labels.reload })
1225
1261
  }
1226
1262
  ) : null;
1227
1263
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -1229,20 +1265,20 @@ var ErrorBoundaryFallback = ({
1229
1265
  {
1230
1266
  accessibilityLiveRegion: "assertive",
1231
1267
  role: "alert",
1232
- style: [styles10.container, { backgroundColor: theme.colors.background }],
1268
+ style: [styles11.container, { backgroundColor: theme.colors.background }],
1233
1269
  testID: testIDPrefix,
1234
- children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles10.content, children: [
1235
- logo !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles10.logo, testID: `${testIDPrefix}-logo`, children: logo }) : null,
1236
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.title, { color: theme.colors.text }], children: labels.title }),
1270
+ children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles11.content, children: [
1271
+ logo !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles11.logo, testID: `${testIDPrefix}-logo`, children: logo }) : null,
1272
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.title, { color: theme.colors.text }], children: labels.title }),
1237
1273
  /* @__PURE__ */ jsxRuntime.jsx(ErrorState, { message: labels.message, testID: `${testIDPrefix}-message` }),
1238
1274
  hasDetails ? /* @__PURE__ */ jsxRuntime.jsxs(
1239
1275
  reactNative.View,
1240
1276
  {
1241
- style: [styles10.details, { backgroundColor: theme.colors.surface, borderColor: warningColor }],
1277
+ style: [styles11.details, { backgroundColor: theme.colors.surface, borderColor: warningColor }],
1242
1278
  testID: `${testIDPrefix}-details`,
1243
1279
  children: [
1244
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.detailsTitle, { color: warningColor }], children: labels.errorDetails }),
1245
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.detailsText, { color: theme.colors.textSecondary }], children: error.message })
1280
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.detailsTitle, { color: warningText }], children: labels.errorDetails }),
1281
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.detailsText, { color: theme.colors.textSecondary }], children: error.message })
1246
1282
  ]
1247
1283
  }
1248
1284
  ) : null,
@@ -1255,7 +1291,7 @@ var ErrorBoundaryFallback = ({
1255
1291
  var CONTAINER_PADDING4 = 20;
1256
1292
  var MESSAGE_FONT_SIZE3 = 16;
1257
1293
  var MESSAGE_MARGIN_TOP = 12;
1258
- var styles11 = reactNative.StyleSheet.create({
1294
+ var styles12 = reactNative.StyleSheet.create({
1259
1295
  container: {
1260
1296
  flex: 1,
1261
1297
  justifyContent: "center",
@@ -1278,11 +1314,11 @@ var ErrorBoundaryRecovering = ({
1278
1314
  {
1279
1315
  accessibilityLiveRegion: "polite",
1280
1316
  role: "status",
1281
- style: [styles11.container, { backgroundColor: theme.colors.background }],
1317
+ style: [styles12.container, { backgroundColor: theme.colors.background }],
1282
1318
  testID,
1283
1319
  children: [
1284
1320
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.ActivityIndicator, { color: theme.palette.primary["500"], size: "large" }),
1285
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.message, { color: theme.colors.textSecondary }], children: message })
1321
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.message, { color: theme.colors.textSecondary }], children: message })
1286
1322
  ]
1287
1323
  }
1288
1324
  );
@@ -1384,7 +1420,7 @@ var TRACK_MARGIN = 4;
1384
1420
  var INDET_FRACTION = 0.35;
1385
1421
  var INDET_DURATION_MS = 1300;
1386
1422
  var LABEL_FONT_SIZE = 12;
1387
- var styles12 = reactNative.StyleSheet.create({
1423
+ var styles13 = reactNative.StyleSheet.create({
1388
1424
  track: { height: BAR_HEIGHT, borderRadius: RADIUS, overflow: "hidden", marginVertical: TRACK_MARGIN },
1389
1425
  fill: { height: "100%", borderRadius: RADIUS },
1390
1426
  label: { fontSize: LABEL_FONT_SIZE, textAlign: "right", fontVariant: ["tabular-nums"] }
@@ -1403,7 +1439,7 @@ function IndeterminateFill({ color, width, testID }) {
1403
1439
  return /* @__PURE__ */ jsxRuntime.jsx(
1404
1440
  reactNative.Animated.View,
1405
1441
  {
1406
- style: [styles12.fill, { backgroundColor: color, width: barWidth, transform: [{ translateX }] }],
1442
+ style: [styles13.fill, { backgroundColor: color, width: barWidth, transform: [{ translateX }] }],
1407
1443
  testID
1408
1444
  }
1409
1445
  );
@@ -1438,13 +1474,13 @@ function ProgressBar(props) {
1438
1474
  role: "progressbar",
1439
1475
  testID,
1440
1476
  children: [
1441
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles12.track, { backgroundColor: trackColor }], onLayout, children: indeterminate ? /* @__PURE__ */ jsxRuntime.jsx(IndeterminateFill, { color, testID: fillTestID, width }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles12.fill, { backgroundColor: color, width: `${safePct}%` }], testID: fillTestID }) }),
1442
- !indeterminate && label !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.label, { color: textColor }], children: label }) : null
1477
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles13.track, { backgroundColor: trackColor }], onLayout, children: indeterminate ? /* @__PURE__ */ jsxRuntime.jsx(IndeterminateFill, { color, testID: fillTestID, width }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles13.fill, { backgroundColor: color, width: `${safePct}%` }], testID: fillTestID }) }),
1478
+ !indeterminate && label !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.label, { color: textColor }], children: label }) : null
1443
1479
  ]
1444
1480
  }
1445
1481
  );
1446
1482
  }
1447
- var styles13 = reactNative.StyleSheet.create({
1483
+ var styles14 = reactNative.StyleSheet.create({
1448
1484
  button: {
1449
1485
  minHeight: a11y.MIN_TOUCH_TARGET_PX,
1450
1486
  minWidth: a11y.MIN_TOUCH_TARGET_PX,
@@ -1467,9 +1503,9 @@ function RunCardButton({ label, hint, color, onPress, testID, disabled = false,
1467
1503
  accessibilityState: { disabled, expanded },
1468
1504
  disabled,
1469
1505
  onPress,
1470
- style: [styles13.button, { borderColor: color }, disabled ? { opacity: DISABLED_OPACITY } : null],
1506
+ style: [styles14.button, { borderColor: color }, disabled ? { opacity: DISABLED_OPACITY } : null],
1471
1507
  testID,
1472
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.text, { color }], children: label })
1508
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.text, { color }], children: label })
1473
1509
  }
1474
1510
  );
1475
1511
  }
@@ -1537,8 +1573,17 @@ function runToneColor(theme, state) {
1537
1573
  if (state === "done") return scale(theme, "success") ?? theme.colors.text;
1538
1574
  return theme.colors.textSecondary;
1539
1575
  }
1576
+ function runToneTextColor(theme, state) {
1577
+ const inks = {
1578
+ failed: theme.semanticText?.error,
1579
+ running: theme.semanticText?.warning,
1580
+ done: theme.semanticText?.success,
1581
+ pending: void 0
1582
+ };
1583
+ return inks[state] ?? runToneColor(theme, state);
1584
+ }
1540
1585
  var MARK = { done: "\u2713", running: "\u25CF", pending: "\u25CB", failed: "\u2715" };
1541
- var styles14 = reactNative.StyleSheet.create({
1586
+ var styles15 = reactNative.StyleSheet.create({
1542
1587
  row: { flexDirection: "row", flexWrap: "wrap", gap: 6 },
1543
1588
  chip: { borderWidth: 1, borderRadius: 6, paddingHorizontal: 10, justifyContent: "center" },
1544
1589
  tap: { minHeight: a11y.MIN_TOUCH_TARGET_PX },
@@ -1551,14 +1596,15 @@ function chipText(group, labels) {
1551
1596
  }
1552
1597
  function RunGroupChips({ groups, labels, testID, selectedId = null, onSelect }) {
1553
1598
  const { theme } = useFeedbackUi();
1554
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles14.row, testID, children: groups.map((group) => {
1599
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles15.row, testID, children: groups.map((group) => {
1555
1600
  const color = runToneColor(theme, group.state);
1601
+ const ink = runToneTextColor(theme, group.state);
1556
1602
  const selected = group.id === selectedId;
1557
1603
  const a11y = labels.groupA11y(group.label, group.state, labels.formatDuration(group.durationSec));
1558
- const body = /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.text, { color }, selected || group.state === "running" ? styles14.strong : null], children: chipText(group, labels) });
1559
- const look = [styles14.chip, { borderColor: color, backgroundColor: selected ? theme.colors.surfaceElevated : theme.colors.surface }];
1604
+ const body = /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles15.text, { color: ink }, selected || group.state === "running" ? styles15.strong : null], children: chipText(group, labels) });
1605
+ const look = [styles15.chip, { borderColor: color, backgroundColor: selected ? theme.colors.surfaceElevated : theme.colors.surface }];
1560
1606
  if (onSelect === void 0) {
1561
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [look, styles14.still], accessible: true, accessibilityLabel: a11y, testID: `${testID}-${group.id}`, children: body }, group.id);
1607
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [look, styles15.still], accessible: true, accessibilityLabel: a11y, testID: `${testID}-${group.id}`, children: body }, group.id);
1562
1608
  }
1563
1609
  return /* @__PURE__ */ jsxRuntime.jsx(
1564
1610
  reactNative.Pressable,
@@ -1568,7 +1614,7 @@ function RunGroupChips({ groups, labels, testID, selectedId = null, onSelect })
1568
1614
  accessibilityHint: labels.groupHint,
1569
1615
  accessibilityState: { selected },
1570
1616
  onPress: () => onSelect(group.id),
1571
- style: [look, styles14.tap],
1617
+ style: [look, styles15.tap],
1572
1618
  testID: `${testID}-${group.id}`,
1573
1619
  children: body
1574
1620
  },
@@ -1582,8 +1628,8 @@ function RunGroupSummary({ groups, labels, testID }) {
1582
1628
  const open = groups.filter((g) => g.state !== "done");
1583
1629
  const doneColor = runToneColor(theme, "done");
1584
1630
  const doneText = labels.doneSummary(done.count, labels.formatDuration(done.durationSec));
1585
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles14.row, testID, children: [
1586
- done.count > 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles14.chip, styles14.still, { borderColor: doneColor }], accessible: true, accessibilityLabel: doneText, testID: `${testID}-done`, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.text, { color: doneColor }], children: `${MARK.done} ${doneText}` }) }) : null,
1631
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles15.row, testID, children: [
1632
+ done.count > 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles15.chip, styles15.still, { borderColor: doneColor }], accessible: true, accessibilityLabel: doneText, testID: `${testID}-done`, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles15.text, { color: runToneTextColor(theme, "done") }], children: `${MARK.done} ${doneText}` }) }) : null,
1587
1633
  /* @__PURE__ */ jsxRuntime.jsx(RunGroupChips, { groups: open, labels, testID: `${testID}-open` })
1588
1634
  ] });
1589
1635
  }
@@ -1593,7 +1639,7 @@ var LABEL_SHARE = "35%";
1593
1639
  var LABEL_LINES = 2;
1594
1640
  var DURATION_WIDTH = 64;
1595
1641
  var PERCENT = 100;
1596
- var styles15 = reactNative.StyleSheet.create({
1642
+ var styles16 = reactNative.StyleSheet.create({
1597
1643
  list: { gap: 6 },
1598
1644
  row: { flexDirection: "row", alignItems: "center", gap: 8 },
1599
1645
  stack: { gap: 4 },
@@ -1612,22 +1658,22 @@ function RunStepBars({ steps, maxBars, labels, compact, testID }) {
1612
1658
  const maxSec = steps.reduce((m, s) => Math.max(m, s.durationSec), 0);
1613
1659
  const folded = split.hiddenCount > 0;
1614
1660
  const canFold = all && steps.length > maxBars;
1615
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles15.list, testID, children: [
1661
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.list, testID, children: [
1616
1662
  split.visible.map((step, i) => {
1617
1663
  const color = runToneColor(theme, step.state);
1618
1664
  const duration = labels.formatDuration(step.durationSec);
1619
- const strong = step.state === "running" ? styles15.strong : null;
1620
- const name = /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [compact ? styles15.compactLabel : styles15.label, { color: theme.colors.text }, strong], numberOfLines: LABEL_LINES, testID: `${testID}-name-${String(i)}`, children: step.label });
1621
- const time = /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles15.duration, { color: theme.colors.textSecondary }, strong], children: duration });
1622
- const bar = /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [compact ? styles15.fullTrack : styles15.track, { backgroundColor: theme.colors.border }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles15.fill, { backgroundColor: color, width: `${barFraction(step.durationSec, maxSec) * PERCENT}%` }] }) });
1665
+ const strong = step.state === "running" ? styles16.strong : null;
1666
+ const name = /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [compact ? styles16.compactLabel : styles16.label, { color: theme.colors.text }, strong], numberOfLines: LABEL_LINES, testID: `${testID}-name-${String(i)}`, children: step.label });
1667
+ const time = /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.duration, { color: theme.colors.textSecondary }, strong], children: duration });
1668
+ const bar = /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [compact ? styles16.fullTrack : styles16.track, { backgroundColor: theme.colors.border }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles16.fill, { backgroundColor: color, width: `${barFraction(step.durationSec, maxSec) * PERCENT}%` }] }) });
1623
1669
  const a11y = { accessible: true, accessibilityLabel: labels.stepA11y(step.label, duration), testID: `${testID}-row-${String(i)}` };
1624
- return compact ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles15.stack, ...a11y, children: [
1625
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles15.row, children: [
1670
+ return compact ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.stack, ...a11y, children: [
1671
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.row, children: [
1626
1672
  name,
1627
1673
  time
1628
1674
  ] }),
1629
1675
  bar
1630
- ] }, `${step.label}-${String(i)}`) : /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles15.row, ...a11y, children: [
1676
+ ] }, `${step.label}-${String(i)}`) : /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.row, ...a11y, children: [
1631
1677
  name,
1632
1678
  bar,
1633
1679
  time
@@ -1648,7 +1694,7 @@ function RunStepBars({ steps, maxBars, labels, compact, testID }) {
1648
1694
  }
1649
1695
  var LIVE_RUN_CARD_COMPACT_MAX_PX = 640;
1650
1696
  var DEFAULT_MAX_BARS = 4;
1651
- var styles16 = reactNative.StyleSheet.create({
1697
+ var styles17 = reactNative.StyleSheet.create({
1652
1698
  card: { borderWidth: 1, borderRadius: 8, padding: 14, gap: 10 },
1653
1699
  head: { flexDirection: "row", flexWrap: "wrap", alignItems: "center", gap: 10 },
1654
1700
  titleBox: { flexGrow: 1, flexShrink: 1, flexBasis: 200, minWidth: 0, gap: 2 },
@@ -1669,21 +1715,22 @@ function LiveRunCard(props) {
1669
1715
  const selectedId = groups.some((g) => g.id === picked) ? picked : defaultGroupId(groups);
1670
1716
  const selected = groups.find((g) => g.id === selectedId);
1671
1717
  const tone = runToneColor(theme, status);
1718
+ const toneText = runToneTextColor(theme, status);
1672
1719
  const percent = progressPercent(progress);
1673
1720
  const showTimings = !compact || open;
1674
1721
  const muted = { color: theme.colors.textSecondary };
1675
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles16.card, { borderColor: tone, backgroundColor: theme.colors.surface }], testID, children: [
1676
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.head, children: [
1677
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles16.pill, { borderColor: tone }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.pillText, { color: tone }], testID: `${testID}-status`, children: labels.status }) }),
1678
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.titleBox, children: [
1679
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.title, { color: theme.colors.text }], testID: `${testID}-title`, children: title }),
1680
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.meta, muted], testID: `${testID}-meta`, children: labels.meta })
1722
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles17.card, { borderColor: tone, backgroundColor: theme.colors.surface }], testID, children: [
1723
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.head, children: [
1724
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles17.pill, { borderColor: tone }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.pillText, { color: toneText }], testID: `${testID}-status`, children: labels.status }) }),
1725
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.titleBox, children: [
1726
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.title, { color: theme.colors.text }], testID: `${testID}-title`, children: title }),
1727
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.meta, muted], testID: `${testID}-meta`, children: labels.meta })
1681
1728
  ] }),
1682
- onCancel !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(RunCardButton, { label: labels.cancel, hint: labels.cancelHint, color: theme.semantic.error["500"], onPress: onCancel, disabled: cancelDisabled, testID: `${testID}-cancel` }) : null
1729
+ onCancel !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(RunCardButton, { label: labels.cancel, hint: labels.cancelHint, color: theme.semanticText?.error ?? theme.semantic.error["500"], onPress: onCancel, disabled: cancelDisabled, testID: `${testID}-cancel` }) : null
1683
1730
  ] }),
1684
- currentStep !== null && currentStep !== "" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.step, { color: theme.colors.text }], testID: `${testID}-step`, children: currentStep }) : null,
1731
+ currentStep !== null && currentStep !== "" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.step, { color: theme.colors.text }], testID: `${testID}-step`, children: currentStep }) : null,
1685
1732
  percent !== null ? /* @__PURE__ */ jsxRuntime.jsx(ProgressBar, { percent, label: labels.progress, accessibilityLabel: labels.progressA11y, color: tone, testID: `${testID}-progress` }) : null,
1686
- percent === null && labels.progress !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.meta, muted], testID: `${testID}-progress-text`, children: labels.progress }) : null,
1733
+ percent === null && labels.progress !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.meta, muted], testID: `${testID}-progress-text`, children: labels.progress }) : null,
1687
1734
  compact && !open ? /* @__PURE__ */ jsxRuntime.jsx(RunGroupSummary, { groups, labels, testID: `${testID}-summary` }) : null,
1688
1735
  compact ? /* @__PURE__ */ jsxRuntime.jsx(RunCardButton, { label: labels.stepTimings, hint: labels.stepTimingsHint, color: theme.colors.textSecondary, onPress: () => setOpen(!open), expanded: open, testID: `${testID}-timings-toggle` }) : null,
1689
1736
  showTimings ? /* @__PURE__ */ jsxRuntime.jsx(RunGroupChips, { groups, labels, selectedId, onSelect: setPicked, testID: `${testID}-groups` }) : null,