@dloizides/ui-feedback 1.23.0 → 1.25.1

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/index.js CHANGED
@@ -46,6 +46,14 @@ var FeedbackUiProvider = ({
46
46
  function useFeedbackUi() {
47
47
  return react.useContext(FeedbackUiContext);
48
48
  }
49
+ function UiThemeOverride({
50
+ map,
51
+ children
52
+ }) {
53
+ const { theme, t, navigate } = useFeedbackUi();
54
+ const mapped = react.useMemo(() => map(theme), [map, theme]);
55
+ return /* @__PURE__ */ jsxRuntime.jsx(FeedbackUiProvider, { navigate, t, theme: mapped, children });
56
+ }
49
57
 
50
58
  // src/constants.ts
51
59
  var MODAL_OVERLAY_COLOR = "rgba(0, 0, 0, 0.5)";
@@ -373,6 +381,26 @@ var ErrorState = ({
373
381
  )
374
382
  ] });
375
383
  };
384
+ var BORDER_WIDTH = 1;
385
+ var BORDER_RADIUS = 8;
386
+ var PADDING = 12;
387
+ var LINE_GAP = 4;
388
+ var styles4 = reactNative.StyleSheet.create({
389
+ notice: { borderWidth: BORDER_WIDTH, borderRadius: BORDER_RADIUS, padding: PADDING, gap: LINE_GAP }
390
+ });
391
+ var ErrorNotice = ({ children, testID }) => {
392
+ const { theme } = useFeedbackUi();
393
+ const { error } = theme.semantic;
394
+ return /* @__PURE__ */ jsxRuntime.jsx(
395
+ reactNative.View,
396
+ {
397
+ "aria-live": "polite",
398
+ style: [styles4.notice, { borderColor: error["500"], backgroundColor: error["50"] }],
399
+ testID,
400
+ children
401
+ }
402
+ );
403
+ };
376
404
  var MESSAGE_FONT_SIZE2 = 16;
377
405
  var CTA_MARGIN_TOP = 16;
378
406
  var CTA_PADDING_VERTICAL = 10;
@@ -380,7 +408,7 @@ var CTA_PADDING_HORIZONTAL = 20;
380
408
  var CTA_BORDER_RADIUS = 8;
381
409
  var CTA_FONT_SIZE = 14;
382
410
  var CONTAINER_PADDING2 = 32;
383
- var styles4 = reactNative.StyleSheet.create({
411
+ var styles5 = reactNative.StyleSheet.create({
384
412
  container: {
385
413
  flex: 1,
386
414
  justifyContent: "center",
@@ -416,25 +444,25 @@ var EmptyListState = ({
416
444
  if (typeof ctaRoute === "string" && typeof navigate === "function") navigate(ctaRoute);
417
445
  }, [navigate, ctaRoute]);
418
446
  const showCta = typeof ctaTextKey === "string" && typeof ctaHintKey === "string" && typeof ctaRoute === "string";
419
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles4.container, testID, children: [
420
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles4.message, { color: colors.textSecondary }], children: t(messageKey) }),
447
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles5.container, testID, children: [
448
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.message, { color: colors.textSecondary }], children: t(messageKey) }),
421
449
  showCta ? /* @__PURE__ */ jsxRuntime.jsx(
422
450
  reactNative.TouchableOpacity,
423
451
  {
424
452
  accessibilityHint: t(ctaHintKey),
425
453
  accessibilityLabel: t(ctaTextKey),
426
454
  accessibilityRole: "button",
427
- style: [styles4.ctaButton, { backgroundColor: primary }],
455
+ style: [styles5.ctaButton, { backgroundColor: primary }],
428
456
  testID: FEEDBACK_TEST_IDS.emptyListCta,
429
457
  onPress: handlePress,
430
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles4.ctaText, { color: colors.background }], children: t(ctaTextKey) })
458
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.ctaText, { color: colors.background }], children: t(ctaTextKey) })
431
459
  }
432
460
  ) : null
433
461
  ] });
434
462
  };
435
463
  var FULLSCREEN_MIN_HEIGHT = 300;
436
464
  var CONTAINER_MIN_HEIGHT = 100;
437
- var styles5 = reactNative.StyleSheet.create({
465
+ var styles6 = reactNative.StyleSheet.create({
438
466
  container: {
439
467
  flex: 1,
440
468
  justifyContent: "center",
@@ -455,7 +483,7 @@ var LoadingFallback = ({ fullScreen = false, size = "large" }) => {
455
483
  accessibilityHint: t("loadingFallback.hint"),
456
484
  accessibilityLabel: t("loadingFallback.label"),
457
485
  accessibilityRole: "progressbar",
458
- style: [styles5.container, fullScreen && styles5.fullScreen, { backgroundColor: colors.background }],
486
+ style: [styles6.container, fullScreen && styles6.fullScreen, { backgroundColor: colors.background }],
459
487
  testID: FEEDBACK_TEST_IDS.loadingFallback,
460
488
  children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ActivityIndicator, { color: primary, size })
461
489
  }
@@ -472,7 +500,7 @@ var TEXT_LINE_HEIGHT = 16;
472
500
  var TEXT_LINE_FULL_WIDTH = "100%";
473
501
  var TEXT_LINE_SHORT_WIDTH = "70%";
474
502
  var CARD_HEIGHT = 120;
475
- var styles6 = reactNative.StyleSheet.create({
503
+ var styles7 = reactNative.StyleSheet.create({
476
504
  container: {
477
505
  flex: 1,
478
506
  padding: 16
@@ -506,25 +534,25 @@ var PageSkeleton = ({
506
534
  const { theme, t } = useFeedbackUi();
507
535
  const colors = theme.colors;
508
536
  const skeletonColor = String(colors.border);
509
- const renderListRow = (index) => /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles6.row, children: [
537
+ const renderListRow = (index) => /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles7.row, children: [
510
538
  /* @__PURE__ */ jsxRuntime.jsx(
511
539
  uiMotion.Skeleton,
512
540
  {
513
541
  backgroundColor: skeletonColor,
514
542
  borderRadius: AVATAR_BORDER_RADIUS,
515
543
  height: AVATAR_SIZE,
516
- style: styles6.avatar,
544
+ style: styles7.avatar,
517
545
  width: AVATAR_SIZE
518
546
  }
519
547
  ),
520
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles6.textContainer, children: [
548
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles7.textContainer, children: [
521
549
  /* @__PURE__ */ jsxRuntime.jsx(
522
550
  uiMotion.Skeleton,
523
551
  {
524
552
  backgroundColor: skeletonColor,
525
553
  borderRadius: SKELETON_BORDER_RADIUS,
526
554
  height: TEXT_LINE_HEIGHT,
527
- style: styles6.textLine,
555
+ style: styles7.textLine,
528
556
  width: TEXT_LINE_FULL_WIDTH
529
557
  }
530
558
  ),
@@ -534,7 +562,7 @@ var PageSkeleton = ({
534
562
  backgroundColor: skeletonColor,
535
563
  borderRadius: SKELETON_BORDER_RADIUS,
536
564
  height: TEXT_LINE_HEIGHT,
537
- style: styles6.textLine,
565
+ style: styles7.textLine,
538
566
  width: TEXT_LINE_SHORT_WIDTH
539
567
  }
540
568
  )
@@ -546,7 +574,7 @@ var PageSkeleton = ({
546
574
  backgroundColor: skeletonColor,
547
575
  borderRadius: CARD_BORDER_RADIUS,
548
576
  height: CARD_HEIGHT,
549
- style: styles6.card
577
+ style: styles7.card
550
578
  },
551
579
  index
552
580
  );
@@ -557,7 +585,7 @@ var PageSkeleton = ({
557
585
  accessibilityHint: t("pageSkeleton.loadingHint"),
558
586
  accessibilityLabel: t("pageSkeleton.loadingLabel"),
559
587
  accessibilityState: { busy: true },
560
- style: [styles6.container, { backgroundColor: colors.background }],
588
+ style: [styles7.container, { backgroundColor: colors.background }],
561
589
  testID: FEEDBACK_TEST_IDS.pageSkeleton,
562
590
  children: [
563
591
  showHeader ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -566,7 +594,7 @@ var PageSkeleton = ({
566
594
  backgroundColor: skeletonColor,
567
595
  borderRadius: SKELETON_BORDER_RADIUS,
568
596
  height: HEADER_HEIGHT,
569
- style: styles6.header,
597
+ style: styles7.header,
570
598
  width: HEADER_WIDTH
571
599
  }
572
600
  ) : null,
@@ -598,7 +626,7 @@ function confirmInk(theme, destructive) {
598
626
  return designTokens.resolveOnBrand(confirmFill(theme, destructive));
599
627
  }
600
628
  var DIALOG_MAX_WIDTH = 400;
601
- var styles7 = reactNative.StyleSheet.create({
629
+ var styles8 = reactNative.StyleSheet.create({
602
630
  overlay: {
603
631
  flex: 1,
604
632
  backgroundColor: MODAL_OVERLAY_COLOR,
@@ -690,17 +718,17 @@ var ConfirmDialog = ({
690
718
  animationType: "fade",
691
719
  visible,
692
720
  onRequestClose: onCancel,
693
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles7.overlay, testID: FEEDBACK_TEST_IDS.confirmDialog, children: /* @__PURE__ */ jsxRuntime.jsxs(
721
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles8.overlay, testID: FEEDBACK_TEST_IDS.confirmDialog, children: /* @__PURE__ */ jsxRuntime.jsxs(
694
722
  reactNative.View,
695
723
  {
696
724
  accessibilityViewIsModal: true,
697
725
  "aria-label": innerDialogRole === void 0 ? void 0 : title,
698
726
  role: innerDialogRole,
699
- style: [styles7.dialog, colorStyles.dialog],
727
+ style: [styles8.dialog, colorStyles.dialog],
700
728
  children: [
701
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { nativeID: titleId, style: [styles7.title, colorStyles.title], children: title }),
702
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles7.message, colorStyles.message], children: message }),
703
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles7.buttonRow, children: [
729
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { nativeID: titleId, style: [styles8.title, colorStyles.title], children: title }),
730
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.message, colorStyles.message], children: message }),
731
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles8.buttonRow, children: [
704
732
  /* @__PURE__ */ jsxRuntime.jsx(
705
733
  reactNative.TouchableOpacity,
706
734
  {
@@ -708,13 +736,13 @@ var ConfirmDialog = ({
708
736
  accessibilityLabel: resolvedCancelLabel,
709
737
  accessibilityRole: "button",
710
738
  style: [
711
- styles7.button,
712
- styles7.cancelButton,
739
+ styles8.button,
740
+ styles8.cancelButton,
713
741
  colorStyles.cancelButton
714
742
  ],
715
743
  testID: FEEDBACK_TEST_IDS.cancelConfirmButton,
716
744
  onPress: onCancel,
717
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles7.buttonText, colorStyles.cancelButtonText], children: resolvedCancelLabel })
745
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.buttonText, colorStyles.cancelButtonText], children: resolvedCancelLabel })
718
746
  }
719
747
  ),
720
748
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -726,10 +754,10 @@ var ConfirmDialog = ({
726
754
  accessibilityState: { disabled: isConfirmDisabled },
727
755
  disabled: isConfirmDisabled,
728
756
  style: [
729
- styles7.button,
730
- styles7.confirmButton,
757
+ styles8.button,
758
+ styles8.confirmButton,
731
759
  colorStyles.confirmButton,
732
- isConfirmDisabled && styles7.disabledButton
760
+ isConfirmDisabled && styles8.disabledButton
733
761
  ],
734
762
  testID: FEEDBACK_TEST_IDS.confirmButton,
735
763
  onPress: onConfirm,
@@ -743,7 +771,7 @@ var ConfirmDialog = ({
743
771
  ) : /* @__PURE__ */ jsxRuntime.jsx(
744
772
  reactNative.Text,
745
773
  {
746
- style: [styles7.buttonText, colorStyles.confirmButtonText],
774
+ style: [styles8.buttonText, colorStyles.confirmButtonText],
747
775
  children: resolvedConfirmLabel
748
776
  }
749
777
  )
@@ -759,7 +787,7 @@ var ConfirmDialog = ({
759
787
  var ACTION_PADDING_HORIZONTAL = 12;
760
788
  var ACTION_BORDER_RADIUS = 6;
761
789
  var ACTION_FONT_SIZE = 14;
762
- var styles8 = reactNative.StyleSheet.create({
790
+ var styles9 = reactNative.StyleSheet.create({
763
791
  button: {
764
792
  minWidth: MIN_TOUCH_TARGET,
765
793
  minHeight: MIN_TOUCH_TARGET,
@@ -782,10 +810,10 @@ var ToastAction = ({ action, color, testID, onDismiss }) => {
782
810
  accessibilityHint: action.hint ?? action.label,
783
811
  accessibilityLabel: action.label,
784
812
  accessibilityRole: "button",
785
- style: [styles8.button, { borderColor: color }],
813
+ style: [styles9.button, { borderColor: color }],
786
814
  testID,
787
815
  onPress: handlePress,
788
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.label, { color }], children: action.label })
816
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.label, { color }], children: action.label })
789
817
  }
790
818
  );
791
819
  };
@@ -846,7 +874,7 @@ var C1_CONTROL_END = 159;
846
874
  var ZERO_WIDTH_START = 8203;
847
875
  var ZERO_WIDTH_END = 8207;
848
876
  var BYTE_ORDER_MARK = 65279;
849
- var styles9 = reactNative.StyleSheet.create({
877
+ var styles10 = reactNative.StyleSheet.create({
850
878
  container: {
851
879
  position: "absolute",
852
880
  left: TOAST_HORIZONTAL_MARGIN,
@@ -923,12 +951,12 @@ var ToastItem = ({ message, onDone, tone, durationMs, fadeMs, testID }) => {
923
951
  {
924
952
  accessibilityLiveRegion: isError ? "assertive" : "polite",
925
953
  role: isError ? "alert" : "status",
926
- style: [styles9.toast, { backgroundColor: tone.fill, borderColor: tone.border, transform: [{ translateY }], opacity }],
954
+ style: [styles10.toast, { backgroundColor: tone.fill, borderColor: tone.border, transform: [{ translateY }], opacity }],
927
955
  testID,
928
956
  children: [
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 }),
957
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, importantForAccessibility: "no-hide-descendants", style: [styles10.glyph, { borderColor: tone.ink }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.glyphText, { color: tone.ink }], children: tone.glyph }) }),
958
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles10.body, children: [
959
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.text, { color: tone.ink }], children: message.text }),
932
960
  /* @__PURE__ */ jsxRuntime.jsx(ErrorReferenceRow, { actionColor: tone.ink, color: tone.ink, testID: `${testID}-reference`, traceId: message.traceId })
933
961
  ] }),
934
962
  message.action ? /* @__PURE__ */ jsxRuntime.jsx(ToastAction, { action: message.action, color: tone.ink, testID: `${testID}-action`, onDismiss: handleDone }) : null
@@ -972,7 +1000,7 @@ var ToastHost = ({
972
1000
  react.useEffect(() => subscribe(push), [subscribe, push]);
973
1001
  if (messages.length === 0) return null;
974
1002
  const canPortal = IS_WEB && typeof document !== "undefined";
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(
1003
+ const layer = /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles10.container, { top: toastTop(IS_WEB, topInset) }, canPortal ? WEB_FIXED_LAYER : null], children: messages.map((m) => /* @__PURE__ */ jsxRuntime.jsx(
976
1004
  ToastItem,
977
1005
  {
978
1006
  durationMs,
@@ -1048,7 +1076,7 @@ var SUBTITLE_FONT_SIZE = 15;
1048
1076
  var ATTEMPT_FONT_SIZE = 13;
1049
1077
  var CARD_PADDING = 24;
1050
1078
  var NO_ATTEMPT = 0;
1051
- var styles10 = reactNative.StyleSheet.create({
1079
+ var styles11 = reactNative.StyleSheet.create({
1052
1080
  overlay: {
1053
1081
  position: "absolute",
1054
1082
  top: 0,
@@ -1105,13 +1133,13 @@ var WarmingOverlay = ({
1105
1133
  {
1106
1134
  accessibilityLabel: mergedLabels.accessibilityLabel,
1107
1135
  accessibilityRole: "alert",
1108
- style: [styles10.overlay, { backgroundColor: colors.background }],
1136
+ style: [styles11.overlay, { backgroundColor: colors.background }],
1109
1137
  testID: testIdPrefix,
1110
- children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles10.card, children: [
1138
+ children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles11.card, children: [
1111
1139
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.ActivityIndicator, { color: primary, size: "large" }),
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
1140
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.title, { color: colors.text }], testID: `${testIdPrefix}-title`, children: mergedLabels.title }),
1141
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.subtitle, { color: colors.textSecondary }], testID: `${testIdPrefix}-subtitle`, children: mergedLabels.subtitle }),
1142
+ showHint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.attempt, { color: colors.textSecondary }], testID: `${testIdPrefix}-attempt`, children: mergedLabels.attemptHint(snapshot2.attempt) }) : null
1115
1143
  ] })
1116
1144
  }
1117
1145
  );
@@ -1168,7 +1196,7 @@ var BUTTON_PADDING_V3 = 12;
1168
1196
  var BUTTON_BORDER_RADIUS3 = 8;
1169
1197
  var BUTTON_MARGIN_TOP3 = 12;
1170
1198
  var BUTTON_FONT_SIZE3 = 16;
1171
- var styles11 = reactNative.StyleSheet.create({
1199
+ var styles12 = reactNative.StyleSheet.create({
1172
1200
  container: {
1173
1201
  flex: 1,
1174
1202
  justifyContent: "center",
@@ -1242,10 +1270,10 @@ var ErrorBoundaryFallback = ({
1242
1270
  accessibilityHint: labels.tryAgainHint,
1243
1271
  accessibilityLabel: labels.tryAgain,
1244
1272
  accessibilityRole: "button",
1245
- style: [styles11.button, reloadIsPrimary ? secondaryFill : primaryFill],
1273
+ style: [styles12.button, reloadIsPrimary ? secondaryFill : primaryFill],
1246
1274
  testID: `${testIDPrefix}-retry-button`,
1247
1275
  onPress: onRetry,
1248
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.buttonText, reloadIsPrimary ? secondaryInk : primaryInk], children: labels.tryAgain })
1276
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.buttonText, reloadIsPrimary ? secondaryInk : primaryInk], children: labels.tryAgain })
1249
1277
  }
1250
1278
  ) : null;
1251
1279
  const reloadButton = typeof onReload === "function" ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -1254,10 +1282,10 @@ var ErrorBoundaryFallback = ({
1254
1282
  accessibilityHint: labels.reloadHint,
1255
1283
  accessibilityLabel: labels.reload,
1256
1284
  accessibilityRole: "button",
1257
- style: [styles11.button, reloadIsPrimary ? primaryFill : secondaryFill],
1285
+ style: [styles12.button, reloadIsPrimary ? primaryFill : secondaryFill],
1258
1286
  testID: `${testIDPrefix}-reload-button`,
1259
1287
  onPress: onReload,
1260
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.buttonText, reloadIsPrimary ? primaryInk : secondaryInk], children: labels.reload })
1288
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.buttonText, reloadIsPrimary ? primaryInk : secondaryInk], children: labels.reload })
1261
1289
  }
1262
1290
  ) : null;
1263
1291
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -1265,20 +1293,20 @@ var ErrorBoundaryFallback = ({
1265
1293
  {
1266
1294
  accessibilityLiveRegion: "assertive",
1267
1295
  role: "alert",
1268
- style: [styles11.container, { backgroundColor: theme.colors.background }],
1296
+ style: [styles12.container, { backgroundColor: theme.colors.background }],
1269
1297
  testID: testIDPrefix,
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 }),
1298
+ children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles12.content, children: [
1299
+ logo !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles12.logo, testID: `${testIDPrefix}-logo`, children: logo }) : null,
1300
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.title, { color: theme.colors.text }], children: labels.title }),
1273
1301
  /* @__PURE__ */ jsxRuntime.jsx(ErrorState, { message: labels.message, testID: `${testIDPrefix}-message` }),
1274
1302
  hasDetails ? /* @__PURE__ */ jsxRuntime.jsxs(
1275
1303
  reactNative.View,
1276
1304
  {
1277
- style: [styles11.details, { backgroundColor: theme.colors.surface, borderColor: warningColor }],
1305
+ style: [styles12.details, { backgroundColor: theme.colors.surface, borderColor: warningColor }],
1278
1306
  testID: `${testIDPrefix}-details`,
1279
1307
  children: [
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 })
1308
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.detailsTitle, { color: warningText }], children: labels.errorDetails }),
1309
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.detailsText, { color: theme.colors.textSecondary }], children: error.message })
1282
1310
  ]
1283
1311
  }
1284
1312
  ) : null,
@@ -1291,7 +1319,7 @@ var ErrorBoundaryFallback = ({
1291
1319
  var CONTAINER_PADDING4 = 20;
1292
1320
  var MESSAGE_FONT_SIZE3 = 16;
1293
1321
  var MESSAGE_MARGIN_TOP = 12;
1294
- var styles12 = reactNative.StyleSheet.create({
1322
+ var styles13 = reactNative.StyleSheet.create({
1295
1323
  container: {
1296
1324
  flex: 1,
1297
1325
  justifyContent: "center",
@@ -1314,11 +1342,11 @@ var ErrorBoundaryRecovering = ({
1314
1342
  {
1315
1343
  accessibilityLiveRegion: "polite",
1316
1344
  role: "status",
1317
- style: [styles12.container, { backgroundColor: theme.colors.background }],
1345
+ style: [styles13.container, { backgroundColor: theme.colors.background }],
1318
1346
  testID,
1319
1347
  children: [
1320
1348
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.ActivityIndicator, { color: theme.palette.primary["500"], size: "large" }),
1321
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.message, { color: theme.colors.textSecondary }], children: message })
1349
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.message, { color: theme.colors.textSecondary }], children: message })
1322
1350
  ]
1323
1351
  }
1324
1352
  );
@@ -1420,7 +1448,7 @@ var TRACK_MARGIN = 4;
1420
1448
  var INDET_FRACTION = 0.35;
1421
1449
  var INDET_DURATION_MS = 1300;
1422
1450
  var LABEL_FONT_SIZE = 12;
1423
- var styles13 = reactNative.StyleSheet.create({
1451
+ var styles14 = reactNative.StyleSheet.create({
1424
1452
  track: { height: BAR_HEIGHT, borderRadius: RADIUS, overflow: "hidden", marginVertical: TRACK_MARGIN },
1425
1453
  fill: { height: "100%", borderRadius: RADIUS },
1426
1454
  label: { fontSize: LABEL_FONT_SIZE, textAlign: "right", fontVariant: ["tabular-nums"] }
@@ -1439,7 +1467,7 @@ function IndeterminateFill({ color, width, testID }) {
1439
1467
  return /* @__PURE__ */ jsxRuntime.jsx(
1440
1468
  reactNative.Animated.View,
1441
1469
  {
1442
- style: [styles13.fill, { backgroundColor: color, width: barWidth, transform: [{ translateX }] }],
1470
+ style: [styles14.fill, { backgroundColor: color, width: barWidth, transform: [{ translateX }] }],
1443
1471
  testID
1444
1472
  }
1445
1473
  );
@@ -1474,13 +1502,13 @@ function ProgressBar(props) {
1474
1502
  role: "progressbar",
1475
1503
  testID,
1476
1504
  children: [
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
1505
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles14.track, { backgroundColor: trackColor }], onLayout, children: indeterminate ? /* @__PURE__ */ jsxRuntime.jsx(IndeterminateFill, { color, testID: fillTestID, width }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles14.fill, { backgroundColor: color, width: `${safePct}%` }], testID: fillTestID }) }),
1506
+ !indeterminate && label !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.label, { color: textColor }], children: label }) : null
1479
1507
  ]
1480
1508
  }
1481
1509
  );
1482
1510
  }
1483
- var styles14 = reactNative.StyleSheet.create({
1511
+ var styles15 = reactNative.StyleSheet.create({
1484
1512
  button: {
1485
1513
  minHeight: a11y.MIN_TOUCH_TARGET_PX,
1486
1514
  minWidth: a11y.MIN_TOUCH_TARGET_PX,
@@ -1503,9 +1531,9 @@ function RunCardButton({ label, hint, color, onPress, testID, disabled = false,
1503
1531
  accessibilityState: { disabled, expanded },
1504
1532
  disabled,
1505
1533
  onPress,
1506
- style: [styles14.button, { borderColor: color }, disabled ? { opacity: DISABLED_OPACITY } : null],
1534
+ style: [styles15.button, { borderColor: color }, disabled ? { opacity: DISABLED_OPACITY } : null],
1507
1535
  testID,
1508
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.text, { color }], children: label })
1536
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles15.text, { color }], children: label })
1509
1537
  }
1510
1538
  );
1511
1539
  }
@@ -1583,7 +1611,7 @@ function runToneTextColor(theme, state) {
1583
1611
  return inks[state] ?? runToneColor(theme, state);
1584
1612
  }
1585
1613
  var MARK = { done: "\u2713", running: "\u25CF", pending: "\u25CB", failed: "\u2715" };
1586
- var styles15 = reactNative.StyleSheet.create({
1614
+ var styles16 = reactNative.StyleSheet.create({
1587
1615
  row: { flexDirection: "row", flexWrap: "wrap", gap: 6 },
1588
1616
  chip: { borderWidth: 1, borderRadius: 6, paddingHorizontal: 10, justifyContent: "center" },
1589
1617
  tap: { minHeight: a11y.MIN_TOUCH_TARGET_PX },
@@ -1596,15 +1624,15 @@ function chipText(group, labels) {
1596
1624
  }
1597
1625
  function RunGroupChips({ groups, labels, testID, selectedId = null, onSelect }) {
1598
1626
  const { theme } = useFeedbackUi();
1599
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles15.row, testID, children: groups.map((group) => {
1627
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles16.row, testID, children: groups.map((group) => {
1600
1628
  const color = runToneColor(theme, group.state);
1601
1629
  const ink = runToneTextColor(theme, group.state);
1602
1630
  const selected = group.id === selectedId;
1603
1631
  const a11y = labels.groupA11y(group.label, group.state, labels.formatDuration(group.durationSec));
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 }];
1632
+ const body = /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.text, { color: ink }, selected || group.state === "running" ? styles16.strong : null], children: chipText(group, labels) });
1633
+ const look = [styles16.chip, { borderColor: color, backgroundColor: selected ? theme.colors.surfaceElevated : theme.colors.surface }];
1606
1634
  if (onSelect === void 0) {
1607
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [look, styles15.still], accessible: true, accessibilityLabel: a11y, testID: `${testID}-${group.id}`, children: body }, group.id);
1635
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [look, styles16.still], accessible: true, accessibilityLabel: a11y, testID: `${testID}-${group.id}`, children: body }, group.id);
1608
1636
  }
1609
1637
  return /* @__PURE__ */ jsxRuntime.jsx(
1610
1638
  reactNative.Pressable,
@@ -1614,7 +1642,7 @@ function RunGroupChips({ groups, labels, testID, selectedId = null, onSelect })
1614
1642
  accessibilityHint: labels.groupHint,
1615
1643
  accessibilityState: { selected },
1616
1644
  onPress: () => onSelect(group.id),
1617
- style: [look, styles15.tap],
1645
+ style: [look, styles16.tap],
1618
1646
  testID: `${testID}-${group.id}`,
1619
1647
  children: body
1620
1648
  },
@@ -1628,8 +1656,8 @@ function RunGroupSummary({ groups, labels, testID }) {
1628
1656
  const open = groups.filter((g) => g.state !== "done");
1629
1657
  const doneColor = runToneColor(theme, "done");
1630
1658
  const doneText = labels.doneSummary(done.count, labels.formatDuration(done.durationSec));
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,
1659
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.row, testID, children: [
1660
+ done.count > 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles16.chip, styles16.still, { borderColor: doneColor }], accessible: true, accessibilityLabel: doneText, testID: `${testID}-done`, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.text, { color: runToneTextColor(theme, "done") }], children: `${MARK.done} ${doneText}` }) }) : null,
1633
1661
  /* @__PURE__ */ jsxRuntime.jsx(RunGroupChips, { groups: open, labels, testID: `${testID}-open` })
1634
1662
  ] });
1635
1663
  }
@@ -1639,7 +1667,7 @@ var LABEL_SHARE = "35%";
1639
1667
  var LABEL_LINES = 2;
1640
1668
  var DURATION_WIDTH = 64;
1641
1669
  var PERCENT = 100;
1642
- var styles16 = reactNative.StyleSheet.create({
1670
+ var styles17 = reactNative.StyleSheet.create({
1643
1671
  list: { gap: 6 },
1644
1672
  row: { flexDirection: "row", alignItems: "center", gap: 8 },
1645
1673
  stack: { gap: 4 },
@@ -1658,22 +1686,22 @@ function RunStepBars({ steps, maxBars, labels, compact, testID }) {
1658
1686
  const maxSec = steps.reduce((m, s) => Math.max(m, s.durationSec), 0);
1659
1687
  const folded = split.hiddenCount > 0;
1660
1688
  const canFold = all && steps.length > maxBars;
1661
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.list, testID, children: [
1689
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.list, testID, children: [
1662
1690
  split.visible.map((step, i) => {
1663
1691
  const color = runToneColor(theme, step.state);
1664
1692
  const duration = labels.formatDuration(step.durationSec);
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}%` }] }) });
1693
+ const strong = step.state === "running" ? styles17.strong : null;
1694
+ const name = /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [compact ? styles17.compactLabel : styles17.label, { color: theme.colors.text }, strong], numberOfLines: LABEL_LINES, testID: `${testID}-name-${String(i)}`, children: step.label });
1695
+ const time = /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.duration, { color: theme.colors.textSecondary }, strong], children: duration });
1696
+ const bar = /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [compact ? styles17.fullTrack : styles17.track, { backgroundColor: theme.colors.border }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles17.fill, { backgroundColor: color, width: `${barFraction(step.durationSec, maxSec) * PERCENT}%` }] }) });
1669
1697
  const a11y = { accessible: true, accessibilityLabel: labels.stepA11y(step.label, duration), testID: `${testID}-row-${String(i)}` };
1670
- return compact ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.stack, ...a11y, children: [
1671
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.row, children: [
1698
+ return compact ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.stack, ...a11y, children: [
1699
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.row, children: [
1672
1700
  name,
1673
1701
  time
1674
1702
  ] }),
1675
1703
  bar
1676
- ] }, `${step.label}-${String(i)}`) : /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.row, ...a11y, children: [
1704
+ ] }, `${step.label}-${String(i)}`) : /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.row, ...a11y, children: [
1677
1705
  name,
1678
1706
  bar,
1679
1707
  time
@@ -1694,7 +1722,7 @@ function RunStepBars({ steps, maxBars, labels, compact, testID }) {
1694
1722
  }
1695
1723
  var LIVE_RUN_CARD_COMPACT_MAX_PX = 640;
1696
1724
  var DEFAULT_MAX_BARS = 4;
1697
- var styles17 = reactNative.StyleSheet.create({
1725
+ var styles18 = reactNative.StyleSheet.create({
1698
1726
  card: { borderWidth: 1, borderRadius: 8, padding: 14, gap: 10 },
1699
1727
  head: { flexDirection: "row", flexWrap: "wrap", alignItems: "center", gap: 10 },
1700
1728
  titleBox: { flexGrow: 1, flexShrink: 1, flexBasis: 200, minWidth: 0, gap: 2 },
@@ -1719,18 +1747,18 @@ function LiveRunCard(props) {
1719
1747
  const percent = progressPercent(progress);
1720
1748
  const showTimings = !compact || open;
1721
1749
  const muted = { color: theme.colors.textSecondary };
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 })
1750
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles18.card, { borderColor: tone, backgroundColor: theme.colors.surface }], testID, children: [
1751
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles18.head, children: [
1752
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles18.pill, { borderColor: tone }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles18.pillText, { color: toneText }], testID: `${testID}-status`, children: labels.status }) }),
1753
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles18.titleBox, children: [
1754
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles18.title, { color: theme.colors.text }], testID: `${testID}-title`, children: title }),
1755
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles18.meta, muted], testID: `${testID}-meta`, children: labels.meta })
1728
1756
  ] }),
1729
1757
  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
1730
1758
  ] }),
1731
- currentStep !== null && currentStep !== "" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.step, { color: theme.colors.text }], testID: `${testID}-step`, children: currentStep }) : null,
1759
+ currentStep !== null && currentStep !== "" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles18.step, { color: theme.colors.text }], testID: `${testID}-step`, children: currentStep }) : null,
1732
1760
  percent !== null ? /* @__PURE__ */ jsxRuntime.jsx(ProgressBar, { percent, label: labels.progress, accessibilityLabel: labels.progressA11y, color: tone, testID: `${testID}-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,
1761
+ percent === null && labels.progress !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles18.meta, muted], testID: `${testID}-progress-text`, children: labels.progress }) : null,
1734
1762
  compact && !open ? /* @__PURE__ */ jsxRuntime.jsx(RunGroupSummary, { groups, labels, testID: `${testID}-summary` }) : null,
1735
1763
  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,
1736
1764
  showTimings ? /* @__PURE__ */ jsxRuntime.jsx(RunGroupChips, { groups, labels, selectedId, onSelect: setPicked, testID: `${testID}-groups` }) : null,
@@ -1746,6 +1774,7 @@ exports.CopyStatus = CopyStatus;
1746
1774
  exports.DEFAULT_ERROR_BOUNDARY_LABELS = DEFAULT_ERROR_BOUNDARY_LABELS;
1747
1775
  exports.DISABLED_OPACITY = DISABLED_OPACITY;
1748
1776
  exports.EmptyListState = EmptyListState;
1777
+ exports.ErrorNotice = ErrorNotice;
1749
1778
  exports.ErrorReferenceRow = ErrorReferenceRow;
1750
1779
  exports.ErrorState = ErrorState;
1751
1780
  exports.FEEDBACK_TEST_IDS = FEEDBACK_TEST_IDS;
@@ -1758,6 +1787,7 @@ exports.PageSkeleton = PageSkeleton;
1758
1787
  exports.ProgressBar = ProgressBar;
1759
1788
  exports.ToastHost = ToastHost;
1760
1789
  exports.UiProvider = FeedbackUiProvider;
1790
+ exports.UiThemeOverride = UiThemeOverride;
1761
1791
  exports.WARMING_QUIET_PERIOD_MS = WARMING_QUIET_PERIOD_MS;
1762
1792
  exports.WarmingOverlay = WarmingOverlay;
1763
1793
  exports.barFraction = barFraction;