@dloizides/ui-feedback 1.24.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.mjs CHANGED
@@ -379,6 +379,26 @@ var ErrorState = ({
379
379
  )
380
380
  ] });
381
381
  };
382
+ var BORDER_WIDTH = 1;
383
+ var BORDER_RADIUS = 8;
384
+ var PADDING = 12;
385
+ var LINE_GAP = 4;
386
+ var styles4 = StyleSheet.create({
387
+ notice: { borderWidth: BORDER_WIDTH, borderRadius: BORDER_RADIUS, padding: PADDING, gap: LINE_GAP }
388
+ });
389
+ var ErrorNotice = ({ children, testID }) => {
390
+ const { theme } = useFeedbackUi();
391
+ const { error } = theme.semantic;
392
+ return /* @__PURE__ */ jsx(
393
+ View,
394
+ {
395
+ "aria-live": "polite",
396
+ style: [styles4.notice, { borderColor: error["500"], backgroundColor: error["50"] }],
397
+ testID,
398
+ children
399
+ }
400
+ );
401
+ };
382
402
  var MESSAGE_FONT_SIZE2 = 16;
383
403
  var CTA_MARGIN_TOP = 16;
384
404
  var CTA_PADDING_VERTICAL = 10;
@@ -386,7 +406,7 @@ var CTA_PADDING_HORIZONTAL = 20;
386
406
  var CTA_BORDER_RADIUS = 8;
387
407
  var CTA_FONT_SIZE = 14;
388
408
  var CONTAINER_PADDING2 = 32;
389
- var styles4 = StyleSheet.create({
409
+ var styles5 = StyleSheet.create({
390
410
  container: {
391
411
  flex: 1,
392
412
  justifyContent: "center",
@@ -422,25 +442,25 @@ var EmptyListState = ({
422
442
  if (typeof ctaRoute === "string" && typeof navigate === "function") navigate(ctaRoute);
423
443
  }, [navigate, ctaRoute]);
424
444
  const showCta = typeof ctaTextKey === "string" && typeof ctaHintKey === "string" && typeof ctaRoute === "string";
425
- return /* @__PURE__ */ jsxs(View, { style: styles4.container, testID, children: [
426
- /* @__PURE__ */ jsx(Text, { style: [styles4.message, { color: colors.textSecondary }], children: t(messageKey) }),
445
+ return /* @__PURE__ */ jsxs(View, { style: styles5.container, testID, children: [
446
+ /* @__PURE__ */ jsx(Text, { style: [styles5.message, { color: colors.textSecondary }], children: t(messageKey) }),
427
447
  showCta ? /* @__PURE__ */ jsx(
428
448
  TouchableOpacity,
429
449
  {
430
450
  accessibilityHint: t(ctaHintKey),
431
451
  accessibilityLabel: t(ctaTextKey),
432
452
  accessibilityRole: "button",
433
- style: [styles4.ctaButton, { backgroundColor: primary }],
453
+ style: [styles5.ctaButton, { backgroundColor: primary }],
434
454
  testID: FEEDBACK_TEST_IDS.emptyListCta,
435
455
  onPress: handlePress,
436
- children: /* @__PURE__ */ jsx(Text, { style: [styles4.ctaText, { color: colors.background }], children: t(ctaTextKey) })
456
+ children: /* @__PURE__ */ jsx(Text, { style: [styles5.ctaText, { color: colors.background }], children: t(ctaTextKey) })
437
457
  }
438
458
  ) : null
439
459
  ] });
440
460
  };
441
461
  var FULLSCREEN_MIN_HEIGHT = 300;
442
462
  var CONTAINER_MIN_HEIGHT = 100;
443
- var styles5 = StyleSheet.create({
463
+ var styles6 = StyleSheet.create({
444
464
  container: {
445
465
  flex: 1,
446
466
  justifyContent: "center",
@@ -461,7 +481,7 @@ var LoadingFallback = ({ fullScreen = false, size = "large" }) => {
461
481
  accessibilityHint: t("loadingFallback.hint"),
462
482
  accessibilityLabel: t("loadingFallback.label"),
463
483
  accessibilityRole: "progressbar",
464
- style: [styles5.container, fullScreen && styles5.fullScreen, { backgroundColor: colors.background }],
484
+ style: [styles6.container, fullScreen && styles6.fullScreen, { backgroundColor: colors.background }],
465
485
  testID: FEEDBACK_TEST_IDS.loadingFallback,
466
486
  children: /* @__PURE__ */ jsx(ActivityIndicator, { color: primary, size })
467
487
  }
@@ -478,7 +498,7 @@ var TEXT_LINE_HEIGHT = 16;
478
498
  var TEXT_LINE_FULL_WIDTH = "100%";
479
499
  var TEXT_LINE_SHORT_WIDTH = "70%";
480
500
  var CARD_HEIGHT = 120;
481
- var styles6 = StyleSheet.create({
501
+ var styles7 = StyleSheet.create({
482
502
  container: {
483
503
  flex: 1,
484
504
  padding: 16
@@ -512,25 +532,25 @@ var PageSkeleton = ({
512
532
  const { theme, t } = useFeedbackUi();
513
533
  const colors = theme.colors;
514
534
  const skeletonColor = String(colors.border);
515
- const renderListRow = (index) => /* @__PURE__ */ jsxs(View, { style: styles6.row, children: [
535
+ const renderListRow = (index) => /* @__PURE__ */ jsxs(View, { style: styles7.row, children: [
516
536
  /* @__PURE__ */ jsx(
517
537
  Skeleton,
518
538
  {
519
539
  backgroundColor: skeletonColor,
520
540
  borderRadius: AVATAR_BORDER_RADIUS,
521
541
  height: AVATAR_SIZE,
522
- style: styles6.avatar,
542
+ style: styles7.avatar,
523
543
  width: AVATAR_SIZE
524
544
  }
525
545
  ),
526
- /* @__PURE__ */ jsxs(View, { style: styles6.textContainer, children: [
546
+ /* @__PURE__ */ jsxs(View, { style: styles7.textContainer, children: [
527
547
  /* @__PURE__ */ jsx(
528
548
  Skeleton,
529
549
  {
530
550
  backgroundColor: skeletonColor,
531
551
  borderRadius: SKELETON_BORDER_RADIUS,
532
552
  height: TEXT_LINE_HEIGHT,
533
- style: styles6.textLine,
553
+ style: styles7.textLine,
534
554
  width: TEXT_LINE_FULL_WIDTH
535
555
  }
536
556
  ),
@@ -540,7 +560,7 @@ var PageSkeleton = ({
540
560
  backgroundColor: skeletonColor,
541
561
  borderRadius: SKELETON_BORDER_RADIUS,
542
562
  height: TEXT_LINE_HEIGHT,
543
- style: styles6.textLine,
563
+ style: styles7.textLine,
544
564
  width: TEXT_LINE_SHORT_WIDTH
545
565
  }
546
566
  )
@@ -552,7 +572,7 @@ var PageSkeleton = ({
552
572
  backgroundColor: skeletonColor,
553
573
  borderRadius: CARD_BORDER_RADIUS,
554
574
  height: CARD_HEIGHT,
555
- style: styles6.card
575
+ style: styles7.card
556
576
  },
557
577
  index
558
578
  );
@@ -563,7 +583,7 @@ var PageSkeleton = ({
563
583
  accessibilityHint: t("pageSkeleton.loadingHint"),
564
584
  accessibilityLabel: t("pageSkeleton.loadingLabel"),
565
585
  accessibilityState: { busy: true },
566
- style: [styles6.container, { backgroundColor: colors.background }],
586
+ style: [styles7.container, { backgroundColor: colors.background }],
567
587
  testID: FEEDBACK_TEST_IDS.pageSkeleton,
568
588
  children: [
569
589
  showHeader ? /* @__PURE__ */ jsx(
@@ -572,7 +592,7 @@ var PageSkeleton = ({
572
592
  backgroundColor: skeletonColor,
573
593
  borderRadius: SKELETON_BORDER_RADIUS,
574
594
  height: HEADER_HEIGHT,
575
- style: styles6.header,
595
+ style: styles7.header,
576
596
  width: HEADER_WIDTH
577
597
  }
578
598
  ) : null,
@@ -604,7 +624,7 @@ function confirmInk(theme, destructive) {
604
624
  return resolveOnBrand(confirmFill(theme, destructive));
605
625
  }
606
626
  var DIALOG_MAX_WIDTH = 400;
607
- var styles7 = StyleSheet.create({
627
+ var styles8 = StyleSheet.create({
608
628
  overlay: {
609
629
  flex: 1,
610
630
  backgroundColor: MODAL_OVERLAY_COLOR,
@@ -696,17 +716,17 @@ var ConfirmDialog = ({
696
716
  animationType: "fade",
697
717
  visible,
698
718
  onRequestClose: onCancel,
699
- children: /* @__PURE__ */ jsx(View, { style: styles7.overlay, testID: FEEDBACK_TEST_IDS.confirmDialog, children: /* @__PURE__ */ jsxs(
719
+ children: /* @__PURE__ */ jsx(View, { style: styles8.overlay, testID: FEEDBACK_TEST_IDS.confirmDialog, children: /* @__PURE__ */ jsxs(
700
720
  View,
701
721
  {
702
722
  accessibilityViewIsModal: true,
703
723
  "aria-label": innerDialogRole === void 0 ? void 0 : title,
704
724
  role: innerDialogRole,
705
- style: [styles7.dialog, colorStyles.dialog],
725
+ style: [styles8.dialog, colorStyles.dialog],
706
726
  children: [
707
- /* @__PURE__ */ jsx(Text, { nativeID: titleId, style: [styles7.title, colorStyles.title], children: title }),
708
- /* @__PURE__ */ jsx(Text, { style: [styles7.message, colorStyles.message], children: message }),
709
- /* @__PURE__ */ jsxs(View, { style: styles7.buttonRow, children: [
727
+ /* @__PURE__ */ jsx(Text, { nativeID: titleId, style: [styles8.title, colorStyles.title], children: title }),
728
+ /* @__PURE__ */ jsx(Text, { style: [styles8.message, colorStyles.message], children: message }),
729
+ /* @__PURE__ */ jsxs(View, { style: styles8.buttonRow, children: [
710
730
  /* @__PURE__ */ jsx(
711
731
  TouchableOpacity,
712
732
  {
@@ -714,13 +734,13 @@ var ConfirmDialog = ({
714
734
  accessibilityLabel: resolvedCancelLabel,
715
735
  accessibilityRole: "button",
716
736
  style: [
717
- styles7.button,
718
- styles7.cancelButton,
737
+ styles8.button,
738
+ styles8.cancelButton,
719
739
  colorStyles.cancelButton
720
740
  ],
721
741
  testID: FEEDBACK_TEST_IDS.cancelConfirmButton,
722
742
  onPress: onCancel,
723
- children: /* @__PURE__ */ jsx(Text, { style: [styles7.buttonText, colorStyles.cancelButtonText], children: resolvedCancelLabel })
743
+ children: /* @__PURE__ */ jsx(Text, { style: [styles8.buttonText, colorStyles.cancelButtonText], children: resolvedCancelLabel })
724
744
  }
725
745
  ),
726
746
  /* @__PURE__ */ jsx(
@@ -732,10 +752,10 @@ var ConfirmDialog = ({
732
752
  accessibilityState: { disabled: isConfirmDisabled },
733
753
  disabled: isConfirmDisabled,
734
754
  style: [
735
- styles7.button,
736
- styles7.confirmButton,
755
+ styles8.button,
756
+ styles8.confirmButton,
737
757
  colorStyles.confirmButton,
738
- isConfirmDisabled && styles7.disabledButton
758
+ isConfirmDisabled && styles8.disabledButton
739
759
  ],
740
760
  testID: FEEDBACK_TEST_IDS.confirmButton,
741
761
  onPress: onConfirm,
@@ -749,7 +769,7 @@ var ConfirmDialog = ({
749
769
  ) : /* @__PURE__ */ jsx(
750
770
  Text,
751
771
  {
752
- style: [styles7.buttonText, colorStyles.confirmButtonText],
772
+ style: [styles8.buttonText, colorStyles.confirmButtonText],
753
773
  children: resolvedConfirmLabel
754
774
  }
755
775
  )
@@ -765,7 +785,7 @@ var ConfirmDialog = ({
765
785
  var ACTION_PADDING_HORIZONTAL = 12;
766
786
  var ACTION_BORDER_RADIUS = 6;
767
787
  var ACTION_FONT_SIZE = 14;
768
- var styles8 = StyleSheet.create({
788
+ var styles9 = StyleSheet.create({
769
789
  button: {
770
790
  minWidth: MIN_TOUCH_TARGET,
771
791
  minHeight: MIN_TOUCH_TARGET,
@@ -788,10 +808,10 @@ var ToastAction = ({ action, color, testID, onDismiss }) => {
788
808
  accessibilityHint: action.hint ?? action.label,
789
809
  accessibilityLabel: action.label,
790
810
  accessibilityRole: "button",
791
- style: [styles8.button, { borderColor: color }],
811
+ style: [styles9.button, { borderColor: color }],
792
812
  testID,
793
813
  onPress: handlePress,
794
- children: /* @__PURE__ */ jsx(Text, { style: [styles8.label, { color }], children: action.label })
814
+ children: /* @__PURE__ */ jsx(Text, { style: [styles9.label, { color }], children: action.label })
795
815
  }
796
816
  );
797
817
  };
@@ -852,7 +872,7 @@ var C1_CONTROL_END = 159;
852
872
  var ZERO_WIDTH_START = 8203;
853
873
  var ZERO_WIDTH_END = 8207;
854
874
  var BYTE_ORDER_MARK = 65279;
855
- var styles9 = StyleSheet.create({
875
+ var styles10 = StyleSheet.create({
856
876
  container: {
857
877
  position: "absolute",
858
878
  left: TOAST_HORIZONTAL_MARGIN,
@@ -929,12 +949,12 @@ var ToastItem = ({ message, onDone, tone, durationMs, fadeMs, testID }) => {
929
949
  {
930
950
  accessibilityLiveRegion: isError ? "assertive" : "polite",
931
951
  role: isError ? "alert" : "status",
932
- style: [styles9.toast, { backgroundColor: tone.fill, borderColor: tone.border, transform: [{ translateY }], opacity }],
952
+ style: [styles10.toast, { backgroundColor: tone.fill, borderColor: tone.border, transform: [{ translateY }], opacity }],
933
953
  testID,
934
954
  children: [
935
- /* @__PURE__ */ jsx(View, { "aria-hidden": true, importantForAccessibility: "no-hide-descendants", style: [styles9.glyph, { borderColor: tone.ink }], children: /* @__PURE__ */ jsx(Text, { style: [styles9.glyphText, { color: tone.ink }], children: tone.glyph }) }),
936
- /* @__PURE__ */ jsxs(View, { style: styles9.body, children: [
937
- /* @__PURE__ */ jsx(Text, { style: [styles9.text, { color: tone.ink }], children: message.text }),
955
+ /* @__PURE__ */ jsx(View, { "aria-hidden": true, importantForAccessibility: "no-hide-descendants", style: [styles10.glyph, { borderColor: tone.ink }], children: /* @__PURE__ */ jsx(Text, { style: [styles10.glyphText, { color: tone.ink }], children: tone.glyph }) }),
956
+ /* @__PURE__ */ jsxs(View, { style: styles10.body, children: [
957
+ /* @__PURE__ */ jsx(Text, { style: [styles10.text, { color: tone.ink }], children: message.text }),
938
958
  /* @__PURE__ */ jsx(ErrorReferenceRow, { actionColor: tone.ink, color: tone.ink, testID: `${testID}-reference`, traceId: message.traceId })
939
959
  ] }),
940
960
  message.action ? /* @__PURE__ */ jsx(ToastAction, { action: message.action, color: tone.ink, testID: `${testID}-action`, onDismiss: handleDone }) : null
@@ -978,7 +998,7 @@ var ToastHost = ({
978
998
  useEffect(() => subscribe(push), [subscribe, push]);
979
999
  if (messages.length === 0) return null;
980
1000
  const canPortal = IS_WEB && typeof document !== "undefined";
981
- const layer = /* @__PURE__ */ jsx(View, { style: [styles9.container, { top: toastTop(IS_WEB, topInset) }, canPortal ? WEB_FIXED_LAYER : null], children: messages.map((m) => /* @__PURE__ */ jsx(
1001
+ const layer = /* @__PURE__ */ jsx(View, { style: [styles10.container, { top: toastTop(IS_WEB, topInset) }, canPortal ? WEB_FIXED_LAYER : null], children: messages.map((m) => /* @__PURE__ */ jsx(
982
1002
  ToastItem,
983
1003
  {
984
1004
  durationMs,
@@ -1054,7 +1074,7 @@ var SUBTITLE_FONT_SIZE = 15;
1054
1074
  var ATTEMPT_FONT_SIZE = 13;
1055
1075
  var CARD_PADDING = 24;
1056
1076
  var NO_ATTEMPT = 0;
1057
- var styles10 = StyleSheet.create({
1077
+ var styles11 = StyleSheet.create({
1058
1078
  overlay: {
1059
1079
  position: "absolute",
1060
1080
  top: 0,
@@ -1111,13 +1131,13 @@ var WarmingOverlay = ({
1111
1131
  {
1112
1132
  accessibilityLabel: mergedLabels.accessibilityLabel,
1113
1133
  accessibilityRole: "alert",
1114
- style: [styles10.overlay, { backgroundColor: colors.background }],
1134
+ style: [styles11.overlay, { backgroundColor: colors.background }],
1115
1135
  testID: testIdPrefix,
1116
- children: /* @__PURE__ */ jsxs(View, { style: styles10.card, children: [
1136
+ children: /* @__PURE__ */ jsxs(View, { style: styles11.card, children: [
1117
1137
  /* @__PURE__ */ jsx(ActivityIndicator, { color: primary, size: "large" }),
1118
- /* @__PURE__ */ jsx(Text, { style: [styles10.title, { color: colors.text }], testID: `${testIdPrefix}-title`, children: mergedLabels.title }),
1119
- /* @__PURE__ */ jsx(Text, { style: [styles10.subtitle, { color: colors.textSecondary }], testID: `${testIdPrefix}-subtitle`, children: mergedLabels.subtitle }),
1120
- showHint ? /* @__PURE__ */ jsx(Text, { style: [styles10.attempt, { color: colors.textSecondary }], testID: `${testIdPrefix}-attempt`, children: mergedLabels.attemptHint(snapshot2.attempt) }) : null
1138
+ /* @__PURE__ */ jsx(Text, { style: [styles11.title, { color: colors.text }], testID: `${testIdPrefix}-title`, children: mergedLabels.title }),
1139
+ /* @__PURE__ */ jsx(Text, { style: [styles11.subtitle, { color: colors.textSecondary }], testID: `${testIdPrefix}-subtitle`, children: mergedLabels.subtitle }),
1140
+ showHint ? /* @__PURE__ */ jsx(Text, { style: [styles11.attempt, { color: colors.textSecondary }], testID: `${testIdPrefix}-attempt`, children: mergedLabels.attemptHint(snapshot2.attempt) }) : null
1121
1141
  ] })
1122
1142
  }
1123
1143
  );
@@ -1174,7 +1194,7 @@ var BUTTON_PADDING_V3 = 12;
1174
1194
  var BUTTON_BORDER_RADIUS3 = 8;
1175
1195
  var BUTTON_MARGIN_TOP3 = 12;
1176
1196
  var BUTTON_FONT_SIZE3 = 16;
1177
- var styles11 = StyleSheet.create({
1197
+ var styles12 = StyleSheet.create({
1178
1198
  container: {
1179
1199
  flex: 1,
1180
1200
  justifyContent: "center",
@@ -1248,10 +1268,10 @@ var ErrorBoundaryFallback = ({
1248
1268
  accessibilityHint: labels.tryAgainHint,
1249
1269
  accessibilityLabel: labels.tryAgain,
1250
1270
  accessibilityRole: "button",
1251
- style: [styles11.button, reloadIsPrimary ? secondaryFill : primaryFill],
1271
+ style: [styles12.button, reloadIsPrimary ? secondaryFill : primaryFill],
1252
1272
  testID: `${testIDPrefix}-retry-button`,
1253
1273
  onPress: onRetry,
1254
- children: /* @__PURE__ */ jsx(Text, { style: [styles11.buttonText, reloadIsPrimary ? secondaryInk : primaryInk], children: labels.tryAgain })
1274
+ children: /* @__PURE__ */ jsx(Text, { style: [styles12.buttonText, reloadIsPrimary ? secondaryInk : primaryInk], children: labels.tryAgain })
1255
1275
  }
1256
1276
  ) : null;
1257
1277
  const reloadButton = typeof onReload === "function" ? /* @__PURE__ */ jsx(
@@ -1260,10 +1280,10 @@ var ErrorBoundaryFallback = ({
1260
1280
  accessibilityHint: labels.reloadHint,
1261
1281
  accessibilityLabel: labels.reload,
1262
1282
  accessibilityRole: "button",
1263
- style: [styles11.button, reloadIsPrimary ? primaryFill : secondaryFill],
1283
+ style: [styles12.button, reloadIsPrimary ? primaryFill : secondaryFill],
1264
1284
  testID: `${testIDPrefix}-reload-button`,
1265
1285
  onPress: onReload,
1266
- children: /* @__PURE__ */ jsx(Text, { style: [styles11.buttonText, reloadIsPrimary ? primaryInk : secondaryInk], children: labels.reload })
1286
+ children: /* @__PURE__ */ jsx(Text, { style: [styles12.buttonText, reloadIsPrimary ? primaryInk : secondaryInk], children: labels.reload })
1267
1287
  }
1268
1288
  ) : null;
1269
1289
  return /* @__PURE__ */ jsx(
@@ -1271,20 +1291,20 @@ var ErrorBoundaryFallback = ({
1271
1291
  {
1272
1292
  accessibilityLiveRegion: "assertive",
1273
1293
  role: "alert",
1274
- style: [styles11.container, { backgroundColor: theme.colors.background }],
1294
+ style: [styles12.container, { backgroundColor: theme.colors.background }],
1275
1295
  testID: testIDPrefix,
1276
- children: /* @__PURE__ */ jsxs(View, { style: styles11.content, children: [
1277
- logo !== void 0 ? /* @__PURE__ */ jsx(View, { style: styles11.logo, testID: `${testIDPrefix}-logo`, children: logo }) : null,
1278
- /* @__PURE__ */ jsx(Text, { style: [styles11.title, { color: theme.colors.text }], children: labels.title }),
1296
+ children: /* @__PURE__ */ jsxs(View, { style: styles12.content, children: [
1297
+ logo !== void 0 ? /* @__PURE__ */ jsx(View, { style: styles12.logo, testID: `${testIDPrefix}-logo`, children: logo }) : null,
1298
+ /* @__PURE__ */ jsx(Text, { style: [styles12.title, { color: theme.colors.text }], children: labels.title }),
1279
1299
  /* @__PURE__ */ jsx(ErrorState, { message: labels.message, testID: `${testIDPrefix}-message` }),
1280
1300
  hasDetails ? /* @__PURE__ */ jsxs(
1281
1301
  View,
1282
1302
  {
1283
- style: [styles11.details, { backgroundColor: theme.colors.surface, borderColor: warningColor }],
1303
+ style: [styles12.details, { backgroundColor: theme.colors.surface, borderColor: warningColor }],
1284
1304
  testID: `${testIDPrefix}-details`,
1285
1305
  children: [
1286
- /* @__PURE__ */ jsx(Text, { style: [styles11.detailsTitle, { color: warningText }], children: labels.errorDetails }),
1287
- /* @__PURE__ */ jsx(Text, { style: [styles11.detailsText, { color: theme.colors.textSecondary }], children: error.message })
1306
+ /* @__PURE__ */ jsx(Text, { style: [styles12.detailsTitle, { color: warningText }], children: labels.errorDetails }),
1307
+ /* @__PURE__ */ jsx(Text, { style: [styles12.detailsText, { color: theme.colors.textSecondary }], children: error.message })
1288
1308
  ]
1289
1309
  }
1290
1310
  ) : null,
@@ -1297,7 +1317,7 @@ var ErrorBoundaryFallback = ({
1297
1317
  var CONTAINER_PADDING4 = 20;
1298
1318
  var MESSAGE_FONT_SIZE3 = 16;
1299
1319
  var MESSAGE_MARGIN_TOP = 12;
1300
- var styles12 = StyleSheet.create({
1320
+ var styles13 = StyleSheet.create({
1301
1321
  container: {
1302
1322
  flex: 1,
1303
1323
  justifyContent: "center",
@@ -1320,11 +1340,11 @@ var ErrorBoundaryRecovering = ({
1320
1340
  {
1321
1341
  accessibilityLiveRegion: "polite",
1322
1342
  role: "status",
1323
- style: [styles12.container, { backgroundColor: theme.colors.background }],
1343
+ style: [styles13.container, { backgroundColor: theme.colors.background }],
1324
1344
  testID,
1325
1345
  children: [
1326
1346
  /* @__PURE__ */ jsx(ActivityIndicator, { color: theme.palette.primary["500"], size: "large" }),
1327
- /* @__PURE__ */ jsx(Text, { style: [styles12.message, { color: theme.colors.textSecondary }], children: message })
1347
+ /* @__PURE__ */ jsx(Text, { style: [styles13.message, { color: theme.colors.textSecondary }], children: message })
1328
1348
  ]
1329
1349
  }
1330
1350
  );
@@ -1426,7 +1446,7 @@ var TRACK_MARGIN = 4;
1426
1446
  var INDET_FRACTION = 0.35;
1427
1447
  var INDET_DURATION_MS = 1300;
1428
1448
  var LABEL_FONT_SIZE = 12;
1429
- var styles13 = StyleSheet.create({
1449
+ var styles14 = StyleSheet.create({
1430
1450
  track: { height: BAR_HEIGHT, borderRadius: RADIUS, overflow: "hidden", marginVertical: TRACK_MARGIN },
1431
1451
  fill: { height: "100%", borderRadius: RADIUS },
1432
1452
  label: { fontSize: LABEL_FONT_SIZE, textAlign: "right", fontVariant: ["tabular-nums"] }
@@ -1445,7 +1465,7 @@ function IndeterminateFill({ color, width, testID }) {
1445
1465
  return /* @__PURE__ */ jsx(
1446
1466
  Animated.View,
1447
1467
  {
1448
- style: [styles13.fill, { backgroundColor: color, width: barWidth, transform: [{ translateX }] }],
1468
+ style: [styles14.fill, { backgroundColor: color, width: barWidth, transform: [{ translateX }] }],
1449
1469
  testID
1450
1470
  }
1451
1471
  );
@@ -1480,13 +1500,13 @@ function ProgressBar(props) {
1480
1500
  role: "progressbar",
1481
1501
  testID,
1482
1502
  children: [
1483
- /* @__PURE__ */ jsx(View, { style: [styles13.track, { backgroundColor: trackColor }], onLayout, children: indeterminate ? /* @__PURE__ */ jsx(IndeterminateFill, { color, testID: fillTestID, width }) : /* @__PURE__ */ jsx(View, { style: [styles13.fill, { backgroundColor: color, width: `${safePct}%` }], testID: fillTestID }) }),
1484
- !indeterminate && label !== void 0 ? /* @__PURE__ */ jsx(Text, { style: [styles13.label, { color: textColor }], children: label }) : null
1503
+ /* @__PURE__ */ jsx(View, { style: [styles14.track, { backgroundColor: trackColor }], onLayout, children: indeterminate ? /* @__PURE__ */ jsx(IndeterminateFill, { color, testID: fillTestID, width }) : /* @__PURE__ */ jsx(View, { style: [styles14.fill, { backgroundColor: color, width: `${safePct}%` }], testID: fillTestID }) }),
1504
+ !indeterminate && label !== void 0 ? /* @__PURE__ */ jsx(Text, { style: [styles14.label, { color: textColor }], children: label }) : null
1485
1505
  ]
1486
1506
  }
1487
1507
  );
1488
1508
  }
1489
- var styles14 = StyleSheet.create({
1509
+ var styles15 = StyleSheet.create({
1490
1510
  button: {
1491
1511
  minHeight: MIN_TOUCH_TARGET_PX,
1492
1512
  minWidth: MIN_TOUCH_TARGET_PX,
@@ -1509,9 +1529,9 @@ function RunCardButton({ label, hint, color, onPress, testID, disabled = false,
1509
1529
  accessibilityState: { disabled, expanded },
1510
1530
  disabled,
1511
1531
  onPress,
1512
- style: [styles14.button, { borderColor: color }, disabled ? { opacity: DISABLED_OPACITY } : null],
1532
+ style: [styles15.button, { borderColor: color }, disabled ? { opacity: DISABLED_OPACITY } : null],
1513
1533
  testID,
1514
- children: /* @__PURE__ */ jsx(Text, { style: [styles14.text, { color }], children: label })
1534
+ children: /* @__PURE__ */ jsx(Text, { style: [styles15.text, { color }], children: label })
1515
1535
  }
1516
1536
  );
1517
1537
  }
@@ -1589,7 +1609,7 @@ function runToneTextColor(theme, state) {
1589
1609
  return inks[state] ?? runToneColor(theme, state);
1590
1610
  }
1591
1611
  var MARK = { done: "\u2713", running: "\u25CF", pending: "\u25CB", failed: "\u2715" };
1592
- var styles15 = StyleSheet.create({
1612
+ var styles16 = StyleSheet.create({
1593
1613
  row: { flexDirection: "row", flexWrap: "wrap", gap: 6 },
1594
1614
  chip: { borderWidth: 1, borderRadius: 6, paddingHorizontal: 10, justifyContent: "center" },
1595
1615
  tap: { minHeight: MIN_TOUCH_TARGET_PX },
@@ -1602,15 +1622,15 @@ function chipText(group, labels) {
1602
1622
  }
1603
1623
  function RunGroupChips({ groups, labels, testID, selectedId = null, onSelect }) {
1604
1624
  const { theme } = useFeedbackUi();
1605
- return /* @__PURE__ */ jsx(View, { style: styles15.row, testID, children: groups.map((group) => {
1625
+ return /* @__PURE__ */ jsx(View, { style: styles16.row, testID, children: groups.map((group) => {
1606
1626
  const color = runToneColor(theme, group.state);
1607
1627
  const ink = runToneTextColor(theme, group.state);
1608
1628
  const selected = group.id === selectedId;
1609
1629
  const a11y = labels.groupA11y(group.label, group.state, labels.formatDuration(group.durationSec));
1610
- const body = /* @__PURE__ */ jsx(Text, { style: [styles15.text, { color: ink }, selected || group.state === "running" ? styles15.strong : null], children: chipText(group, labels) });
1611
- const look = [styles15.chip, { borderColor: color, backgroundColor: selected ? theme.colors.surfaceElevated : theme.colors.surface }];
1630
+ const body = /* @__PURE__ */ jsx(Text, { style: [styles16.text, { color: ink }, selected || group.state === "running" ? styles16.strong : null], children: chipText(group, labels) });
1631
+ const look = [styles16.chip, { borderColor: color, backgroundColor: selected ? theme.colors.surfaceElevated : theme.colors.surface }];
1612
1632
  if (onSelect === void 0) {
1613
- return /* @__PURE__ */ jsx(View, { style: [look, styles15.still], accessible: true, accessibilityLabel: a11y, testID: `${testID}-${group.id}`, children: body }, group.id);
1633
+ return /* @__PURE__ */ jsx(View, { style: [look, styles16.still], accessible: true, accessibilityLabel: a11y, testID: `${testID}-${group.id}`, children: body }, group.id);
1614
1634
  }
1615
1635
  return /* @__PURE__ */ jsx(
1616
1636
  Pressable,
@@ -1620,7 +1640,7 @@ function RunGroupChips({ groups, labels, testID, selectedId = null, onSelect })
1620
1640
  accessibilityHint: labels.groupHint,
1621
1641
  accessibilityState: { selected },
1622
1642
  onPress: () => onSelect(group.id),
1623
- style: [look, styles15.tap],
1643
+ style: [look, styles16.tap],
1624
1644
  testID: `${testID}-${group.id}`,
1625
1645
  children: body
1626
1646
  },
@@ -1634,8 +1654,8 @@ function RunGroupSummary({ groups, labels, testID }) {
1634
1654
  const open = groups.filter((g) => g.state !== "done");
1635
1655
  const doneColor = runToneColor(theme, "done");
1636
1656
  const doneText = labels.doneSummary(done.count, labels.formatDuration(done.durationSec));
1637
- return /* @__PURE__ */ jsxs(View, { style: styles15.row, testID, children: [
1638
- done.count > 0 ? /* @__PURE__ */ jsx(View, { style: [styles15.chip, styles15.still, { borderColor: doneColor }], accessible: true, accessibilityLabel: doneText, testID: `${testID}-done`, children: /* @__PURE__ */ jsx(Text, { style: [styles15.text, { color: runToneTextColor(theme, "done") }], children: `${MARK.done} ${doneText}` }) }) : null,
1657
+ return /* @__PURE__ */ jsxs(View, { style: styles16.row, testID, children: [
1658
+ done.count > 0 ? /* @__PURE__ */ jsx(View, { style: [styles16.chip, styles16.still, { borderColor: doneColor }], accessible: true, accessibilityLabel: doneText, testID: `${testID}-done`, children: /* @__PURE__ */ jsx(Text, { style: [styles16.text, { color: runToneTextColor(theme, "done") }], children: `${MARK.done} ${doneText}` }) }) : null,
1639
1659
  /* @__PURE__ */ jsx(RunGroupChips, { groups: open, labels, testID: `${testID}-open` })
1640
1660
  ] });
1641
1661
  }
@@ -1645,7 +1665,7 @@ var LABEL_SHARE = "35%";
1645
1665
  var LABEL_LINES = 2;
1646
1666
  var DURATION_WIDTH = 64;
1647
1667
  var PERCENT = 100;
1648
- var styles16 = StyleSheet.create({
1668
+ var styles17 = StyleSheet.create({
1649
1669
  list: { gap: 6 },
1650
1670
  row: { flexDirection: "row", alignItems: "center", gap: 8 },
1651
1671
  stack: { gap: 4 },
@@ -1664,22 +1684,22 @@ function RunStepBars({ steps, maxBars, labels, compact, testID }) {
1664
1684
  const maxSec = steps.reduce((m, s) => Math.max(m, s.durationSec), 0);
1665
1685
  const folded = split.hiddenCount > 0;
1666
1686
  const canFold = all && steps.length > maxBars;
1667
- return /* @__PURE__ */ jsxs(View, { style: styles16.list, testID, children: [
1687
+ return /* @__PURE__ */ jsxs(View, { style: styles17.list, testID, children: [
1668
1688
  split.visible.map((step, i) => {
1669
1689
  const color = runToneColor(theme, step.state);
1670
1690
  const duration = labels.formatDuration(step.durationSec);
1671
- const strong = step.state === "running" ? styles16.strong : null;
1672
- const name = /* @__PURE__ */ jsx(Text, { style: [compact ? styles16.compactLabel : styles16.label, { color: theme.colors.text }, strong], numberOfLines: LABEL_LINES, testID: `${testID}-name-${String(i)}`, children: step.label });
1673
- const time = /* @__PURE__ */ jsx(Text, { style: [styles16.duration, { color: theme.colors.textSecondary }, strong], children: duration });
1674
- const bar = /* @__PURE__ */ jsx(View, { style: [compact ? styles16.fullTrack : styles16.track, { backgroundColor: theme.colors.border }], children: /* @__PURE__ */ jsx(View, { style: [styles16.fill, { backgroundColor: color, width: `${barFraction(step.durationSec, maxSec) * PERCENT}%` }] }) });
1691
+ const strong = step.state === "running" ? styles17.strong : null;
1692
+ const name = /* @__PURE__ */ jsx(Text, { style: [compact ? styles17.compactLabel : styles17.label, { color: theme.colors.text }, strong], numberOfLines: LABEL_LINES, testID: `${testID}-name-${String(i)}`, children: step.label });
1693
+ const time = /* @__PURE__ */ jsx(Text, { style: [styles17.duration, { color: theme.colors.textSecondary }, strong], children: duration });
1694
+ const bar = /* @__PURE__ */ jsx(View, { style: [compact ? styles17.fullTrack : styles17.track, { backgroundColor: theme.colors.border }], children: /* @__PURE__ */ jsx(View, { style: [styles17.fill, { backgroundColor: color, width: `${barFraction(step.durationSec, maxSec) * PERCENT}%` }] }) });
1675
1695
  const a11y = { accessible: true, accessibilityLabel: labels.stepA11y(step.label, duration), testID: `${testID}-row-${String(i)}` };
1676
- return compact ? /* @__PURE__ */ jsxs(View, { style: styles16.stack, ...a11y, children: [
1677
- /* @__PURE__ */ jsxs(View, { style: styles16.row, children: [
1696
+ return compact ? /* @__PURE__ */ jsxs(View, { style: styles17.stack, ...a11y, children: [
1697
+ /* @__PURE__ */ jsxs(View, { style: styles17.row, children: [
1678
1698
  name,
1679
1699
  time
1680
1700
  ] }),
1681
1701
  bar
1682
- ] }, `${step.label}-${String(i)}`) : /* @__PURE__ */ jsxs(View, { style: styles16.row, ...a11y, children: [
1702
+ ] }, `${step.label}-${String(i)}`) : /* @__PURE__ */ jsxs(View, { style: styles17.row, ...a11y, children: [
1683
1703
  name,
1684
1704
  bar,
1685
1705
  time
@@ -1700,7 +1720,7 @@ function RunStepBars({ steps, maxBars, labels, compact, testID }) {
1700
1720
  }
1701
1721
  var LIVE_RUN_CARD_COMPACT_MAX_PX = 640;
1702
1722
  var DEFAULT_MAX_BARS = 4;
1703
- var styles17 = StyleSheet.create({
1723
+ var styles18 = StyleSheet.create({
1704
1724
  card: { borderWidth: 1, borderRadius: 8, padding: 14, gap: 10 },
1705
1725
  head: { flexDirection: "row", flexWrap: "wrap", alignItems: "center", gap: 10 },
1706
1726
  titleBox: { flexGrow: 1, flexShrink: 1, flexBasis: 200, minWidth: 0, gap: 2 },
@@ -1725,18 +1745,18 @@ function LiveRunCard(props) {
1725
1745
  const percent = progressPercent(progress);
1726
1746
  const showTimings = !compact || open;
1727
1747
  const muted = { color: theme.colors.textSecondary };
1728
- return /* @__PURE__ */ jsxs(View, { style: [styles17.card, { borderColor: tone, backgroundColor: theme.colors.surface }], testID, children: [
1729
- /* @__PURE__ */ jsxs(View, { style: styles17.head, children: [
1730
- /* @__PURE__ */ jsx(View, { style: [styles17.pill, { borderColor: tone }], children: /* @__PURE__ */ jsx(Text, { style: [styles17.pillText, { color: toneText }], testID: `${testID}-status`, children: labels.status }) }),
1731
- /* @__PURE__ */ jsxs(View, { style: styles17.titleBox, children: [
1732
- /* @__PURE__ */ jsx(Text, { style: [styles17.title, { color: theme.colors.text }], testID: `${testID}-title`, children: title }),
1733
- /* @__PURE__ */ jsx(Text, { style: [styles17.meta, muted], testID: `${testID}-meta`, children: labels.meta })
1748
+ return /* @__PURE__ */ jsxs(View, { style: [styles18.card, { borderColor: tone, backgroundColor: theme.colors.surface }], testID, children: [
1749
+ /* @__PURE__ */ jsxs(View, { style: styles18.head, children: [
1750
+ /* @__PURE__ */ jsx(View, { style: [styles18.pill, { borderColor: tone }], children: /* @__PURE__ */ jsx(Text, { style: [styles18.pillText, { color: toneText }], testID: `${testID}-status`, children: labels.status }) }),
1751
+ /* @__PURE__ */ jsxs(View, { style: styles18.titleBox, children: [
1752
+ /* @__PURE__ */ jsx(Text, { style: [styles18.title, { color: theme.colors.text }], testID: `${testID}-title`, children: title }),
1753
+ /* @__PURE__ */ jsx(Text, { style: [styles18.meta, muted], testID: `${testID}-meta`, children: labels.meta })
1734
1754
  ] }),
1735
1755
  onCancel !== void 0 ? /* @__PURE__ */ jsx(RunCardButton, { label: labels.cancel, hint: labels.cancelHint, color: theme.semanticText?.error ?? theme.semantic.error["500"], onPress: onCancel, disabled: cancelDisabled, testID: `${testID}-cancel` }) : null
1736
1756
  ] }),
1737
- currentStep !== null && currentStep !== "" ? /* @__PURE__ */ jsx(Text, { style: [styles17.step, { color: theme.colors.text }], testID: `${testID}-step`, children: currentStep }) : null,
1757
+ currentStep !== null && currentStep !== "" ? /* @__PURE__ */ jsx(Text, { style: [styles18.step, { color: theme.colors.text }], testID: `${testID}-step`, children: currentStep }) : null,
1738
1758
  percent !== null ? /* @__PURE__ */ jsx(ProgressBar, { percent, label: labels.progress, accessibilityLabel: labels.progressA11y, color: tone, testID: `${testID}-progress` }) : null,
1739
- percent === null && labels.progress !== void 0 ? /* @__PURE__ */ jsx(Text, { style: [styles17.meta, muted], testID: `${testID}-progress-text`, children: labels.progress }) : null,
1759
+ percent === null && labels.progress !== void 0 ? /* @__PURE__ */ jsx(Text, { style: [styles18.meta, muted], testID: `${testID}-progress-text`, children: labels.progress }) : null,
1740
1760
  compact && !open ? /* @__PURE__ */ jsx(RunGroupSummary, { groups, labels, testID: `${testID}-summary` }) : null,
1741
1761
  compact ? /* @__PURE__ */ jsx(RunCardButton, { label: labels.stepTimings, hint: labels.stepTimingsHint, color: theme.colors.textSecondary, onPress: () => setOpen(!open), expanded: open, testID: `${testID}-timings-toggle` }) : null,
1742
1762
  showTimings ? /* @__PURE__ */ jsx(RunGroupChips, { groups, labels, selectedId, onSelect: setPicked, testID: `${testID}-groups` }) : null,
@@ -1744,6 +1764,6 @@ function LiveRunCard(props) {
1744
1764
  ] });
1745
1765
  }
1746
1766
 
1747
- export { AppErrorBoundary, AsyncSurface, COPY_FEEDBACK_MS, ConfirmDialog, CopyStatus, DEFAULT_ERROR_BOUNDARY_LABELS, DISABLED_OPACITY, EmptyListState, ErrorReferenceRow, ErrorState, FEEDBACK_TEST_IDS, FeedbackUiProvider, LIVE_RUN_CARD_COMPACT_MAX_PX, LiveRunCard, LoadingFallback, MODAL_OVERLAY_COLOR, PageSkeleton, ProgressBar, ToastHost, FeedbackUiProvider as UiProvider, UiThemeOverride, WARMING_QUIET_PERIOD_MS, WarmingOverlay, barFraction, clampPercent, copyText, createToastBus, defaultGroupId, getWarmingSnapshot, mergeRunSteps, notifyWarming, progressPercent, readTraceId, runToneColor, settleWarming, splitShorterSteps, subscribeWarming, summariseDoneGroups, useCopyToClipboard, useFeedbackUi, useFeedbackUi as useUi };
1767
+ export { AppErrorBoundary, AsyncSurface, COPY_FEEDBACK_MS, ConfirmDialog, CopyStatus, DEFAULT_ERROR_BOUNDARY_LABELS, DISABLED_OPACITY, EmptyListState, ErrorNotice, ErrorReferenceRow, ErrorState, FEEDBACK_TEST_IDS, FeedbackUiProvider, LIVE_RUN_CARD_COMPACT_MAX_PX, LiveRunCard, LoadingFallback, MODAL_OVERLAY_COLOR, PageSkeleton, ProgressBar, ToastHost, FeedbackUiProvider as UiProvider, UiThemeOverride, WARMING_QUIET_PERIOD_MS, WarmingOverlay, barFraction, clampPercent, copyText, createToastBus, defaultGroupId, getWarmingSnapshot, mergeRunSteps, notifyWarming, progressPercent, readTraceId, runToneColor, settleWarming, splitShorterSteps, subscribeWarming, summariseDoneGroups, useCopyToClipboard, useFeedbackUi, useFeedbackUi as useUi };
1748
1768
  //# sourceMappingURL=index.mjs.map
1749
1769
  //# sourceMappingURL=index.mjs.map