@dloizides/ui-feedback 1.27.0 → 1.29.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/dist/index.js CHANGED
@@ -65,6 +65,7 @@ var FEEDBACK_TEST_IDS = {
65
65
  emptyListCta: "empty-list-cta",
66
66
  loadingFallback: "loading-fallback",
67
67
  pageSkeleton: "page-skeleton",
68
+ skeletonLines: "skeleton-lines",
68
69
  confirmDialog: "confirm-dialog",
69
70
  confirmButton: "confirm-button",
70
71
  cancelConfirmButton: "cancel-confirm-button",
@@ -604,6 +605,35 @@ var PageSkeleton = ({
604
605
  }
605
606
  );
606
607
  };
608
+ var DEFAULT_GAP = 8;
609
+ var DEFAULT_RADIUS = 4;
610
+ var styles8 = reactNative.StyleSheet.create({
611
+ stack: { minWidth: 0 }
612
+ });
613
+ var SkeletonLines = ({ lines, gap = DEFAULT_GAP, style, testID = FEEDBACK_TEST_IDS.skeletonLines }) => {
614
+ const { theme, t } = useFeedbackUi();
615
+ const blockColor = String(theme.colors.border);
616
+ return /* @__PURE__ */ jsxRuntime.jsx(
617
+ reactNative.View,
618
+ {
619
+ accessibilityHint: t("pageSkeleton.loadingHint"),
620
+ accessibilityLabel: t("pageSkeleton.loadingLabel"),
621
+ "aria-busy": true,
622
+ style: [styles8.stack, { gap }, style],
623
+ testID,
624
+ children: lines.map((line, index) => /* @__PURE__ */ jsxRuntime.jsx(
625
+ uiMotion.Skeleton,
626
+ {
627
+ backgroundColor: blockColor,
628
+ borderRadius: line.radius ?? DEFAULT_RADIUS,
629
+ height: line.height,
630
+ width: line.width ?? "100%"
631
+ },
632
+ `${String(index)}-${String(line.height)}`
633
+ ))
634
+ }
635
+ );
636
+ };
607
637
  var DEFAULT_SKELETON_ROWS = 6;
608
638
  var AsyncSurface = ({
609
639
  loading,
@@ -653,7 +683,7 @@ function useDialogFocusRing(color) {
653
683
  return { ringStyle, onFocus, onBlur };
654
684
  }
655
685
  var DIALOG_MAX_WIDTH = 400;
656
- var styles8 = reactNative.StyleSheet.create({
686
+ var styles9 = reactNative.StyleSheet.create({
657
687
  overlay: {
658
688
  flex: 1,
659
689
  backgroundColor: MODAL_OVERLAY_COLOR,
@@ -747,17 +777,17 @@ var ConfirmDialog = ({
747
777
  animationType: "fade",
748
778
  visible,
749
779
  onRequestClose: onCancel,
750
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles8.overlay, testID: FEEDBACK_TEST_IDS.confirmDialog, children: /* @__PURE__ */ jsxRuntime.jsxs(
780
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles9.overlay, testID: FEEDBACK_TEST_IDS.confirmDialog, children: /* @__PURE__ */ jsxRuntime.jsxs(
751
781
  reactNative.View,
752
782
  {
753
783
  accessibilityViewIsModal: true,
754
784
  "aria-label": innerDialogRole === void 0 ? void 0 : title,
755
785
  role: innerDialogRole,
756
- style: [styles8.dialog, colorStyles.dialog],
786
+ style: [styles9.dialog, colorStyles.dialog],
757
787
  children: [
758
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { nativeID: titleId, style: [styles8.title, colorStyles.title], children: title }),
759
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.message, colorStyles.message], children: message }),
760
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles8.buttonRow, children: [
788
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { nativeID: titleId, style: [styles9.title, colorStyles.title], children: title }),
789
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.message, colorStyles.message], children: message }),
790
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles9.buttonRow, children: [
761
791
  /* @__PURE__ */ jsxRuntime.jsx(
762
792
  reactNative.TouchableOpacity,
763
793
  {
@@ -765,8 +795,8 @@ var ConfirmDialog = ({
765
795
  accessibilityLabel: resolvedCancelLabel,
766
796
  accessibilityRole: "button",
767
797
  style: [
768
- styles8.button,
769
- styles8.cancelButton,
798
+ styles9.button,
799
+ styles9.cancelButton,
770
800
  colorStyles.cancelButton,
771
801
  cancelRing.ringStyle
772
802
  ],
@@ -774,7 +804,7 @@ var ConfirmDialog = ({
774
804
  onBlur: cancelRing.onBlur,
775
805
  onFocus: cancelRing.onFocus,
776
806
  onPress: onCancel,
777
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.buttonText, colorStyles.cancelButtonText], children: resolvedCancelLabel })
807
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.buttonText, colorStyles.cancelButtonText], children: resolvedCancelLabel })
778
808
  }
779
809
  ),
780
810
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -786,10 +816,10 @@ var ConfirmDialog = ({
786
816
  accessibilityState: { disabled: isConfirmDisabled },
787
817
  disabled: isConfirmDisabled,
788
818
  style: [
789
- styles8.button,
790
- styles8.confirmButton,
819
+ styles9.button,
820
+ styles9.confirmButton,
791
821
  colorStyles.confirmButton,
792
- isConfirmDisabled && styles8.disabledButton,
822
+ isConfirmDisabled && styles9.disabledButton,
793
823
  confirmRing.ringStyle
794
824
  ],
795
825
  testID: FEEDBACK_TEST_IDS.confirmButton,
@@ -806,7 +836,7 @@ var ConfirmDialog = ({
806
836
  ) : /* @__PURE__ */ jsxRuntime.jsx(
807
837
  reactNative.Text,
808
838
  {
809
- style: [styles8.buttonText, colorStyles.confirmButtonText],
839
+ style: [styles9.buttonText, colorStyles.confirmButtonText],
810
840
  children: resolvedConfirmLabel
811
841
  }
812
842
  )
@@ -822,7 +852,7 @@ var ConfirmDialog = ({
822
852
  var ACTION_PADDING_HORIZONTAL = 12;
823
853
  var ACTION_BORDER_RADIUS = 6;
824
854
  var ACTION_FONT_SIZE = 14;
825
- var styles9 = reactNative.StyleSheet.create({
855
+ var styles10 = reactNative.StyleSheet.create({
826
856
  button: {
827
857
  minWidth: MIN_TOUCH_TARGET,
828
858
  minHeight: MIN_TOUCH_TARGET,
@@ -845,10 +875,10 @@ var ToastAction = ({ action, color, testID, onDismiss }) => {
845
875
  accessibilityHint: action.hint ?? action.label,
846
876
  accessibilityLabel: action.label,
847
877
  accessibilityRole: "button",
848
- style: [styles9.button, { borderColor: color }],
878
+ style: [styles10.button, { borderColor: color }],
849
879
  testID,
850
880
  onPress: handlePress,
851
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.label, { color }], children: action.label })
881
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.label, { color }], children: action.label })
852
882
  }
853
883
  );
854
884
  };
@@ -909,7 +939,7 @@ var C1_CONTROL_END = 159;
909
939
  var ZERO_WIDTH_START = 8203;
910
940
  var ZERO_WIDTH_END = 8207;
911
941
  var BYTE_ORDER_MARK = 65279;
912
- var styles10 = reactNative.StyleSheet.create({
942
+ var styles11 = reactNative.StyleSheet.create({
913
943
  container: {
914
944
  position: "absolute",
915
945
  left: TOAST_HORIZONTAL_MARGIN,
@@ -986,12 +1016,12 @@ var ToastItem = ({ message, onDone, tone, durationMs, fadeMs, testID }) => {
986
1016
  {
987
1017
  accessibilityLiveRegion: isError ? "assertive" : "polite",
988
1018
  role: isError ? "alert" : "status",
989
- style: [styles10.toast, { backgroundColor: tone.fill, borderColor: tone.border, transform: [{ translateY }], opacity }],
1019
+ style: [styles11.toast, { backgroundColor: tone.fill, borderColor: tone.border, transform: [{ translateY }], opacity }],
990
1020
  testID,
991
1021
  children: [
992
- /* @__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 }) }),
993
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles10.body, children: [
994
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.text, { color: tone.ink }], children: message.text }),
1022
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, importantForAccessibility: "no-hide-descendants", style: [styles11.glyph, { borderColor: tone.ink }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.glyphText, { color: tone.ink }], children: tone.glyph }) }),
1023
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles11.body, children: [
1024
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.text, { color: tone.ink }], children: message.text }),
995
1025
  /* @__PURE__ */ jsxRuntime.jsx(ErrorReferenceRow, { actionColor: tone.ink, color: tone.ink, testID: `${testID}-reference`, traceId: message.traceId })
996
1026
  ] }),
997
1027
  message.action ? /* @__PURE__ */ jsxRuntime.jsx(ToastAction, { action: message.action, color: tone.ink, testID: `${testID}-action`, onDismiss: handleDone }) : null
@@ -1035,7 +1065,7 @@ var ToastHost = ({
1035
1065
  react.useEffect(() => subscribe(push), [subscribe, push]);
1036
1066
  if (messages.length === 0) return null;
1037
1067
  const canPortal = IS_WEB && typeof document !== "undefined";
1038
- 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(
1068
+ const layer = /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles11.container, { top: toastTop(IS_WEB, topInset) }, canPortal ? WEB_FIXED_LAYER : null], children: messages.map((m) => /* @__PURE__ */ jsxRuntime.jsx(
1039
1069
  ToastItem,
1040
1070
  {
1041
1071
  durationMs,
@@ -1111,7 +1141,7 @@ var SUBTITLE_FONT_SIZE = 15;
1111
1141
  var ATTEMPT_FONT_SIZE = 13;
1112
1142
  var CARD_PADDING = 24;
1113
1143
  var NO_ATTEMPT = 0;
1114
- var styles11 = reactNative.StyleSheet.create({
1144
+ var styles12 = reactNative.StyleSheet.create({
1115
1145
  overlay: {
1116
1146
  position: "absolute",
1117
1147
  top: 0,
@@ -1168,13 +1198,13 @@ var WarmingOverlay = ({
1168
1198
  {
1169
1199
  accessibilityLabel: mergedLabels.accessibilityLabel,
1170
1200
  accessibilityRole: "alert",
1171
- style: [styles11.overlay, { backgroundColor: colors.background }],
1201
+ style: [styles12.overlay, { backgroundColor: colors.background }],
1172
1202
  testID: testIdPrefix,
1173
- children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles11.card, children: [
1203
+ children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles12.card, children: [
1174
1204
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.ActivityIndicator, { color: primary, size: "large" }),
1175
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.title, { color: colors.text }], testID: `${testIdPrefix}-title`, children: mergedLabels.title }),
1176
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.subtitle, { color: colors.textSecondary }], testID: `${testIdPrefix}-subtitle`, children: mergedLabels.subtitle }),
1177
- showHint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.attempt, { color: colors.textSecondary }], testID: `${testIdPrefix}-attempt`, children: mergedLabels.attemptHint(snapshot2.attempt) }) : null
1205
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.title, { color: colors.text }], testID: `${testIdPrefix}-title`, children: mergedLabels.title }),
1206
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.subtitle, { color: colors.textSecondary }], testID: `${testIdPrefix}-subtitle`, children: mergedLabels.subtitle }),
1207
+ showHint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.attempt, { color: colors.textSecondary }], testID: `${testIdPrefix}-attempt`, children: mergedLabels.attemptHint(snapshot2.attempt) }) : null
1178
1208
  ] })
1179
1209
  }
1180
1210
  );
@@ -1231,7 +1261,7 @@ var BUTTON_PADDING_V3 = 12;
1231
1261
  var BUTTON_BORDER_RADIUS3 = 8;
1232
1262
  var BUTTON_MARGIN_TOP3 = 12;
1233
1263
  var BUTTON_FONT_SIZE3 = 16;
1234
- var styles12 = reactNative.StyleSheet.create({
1264
+ var styles13 = reactNative.StyleSheet.create({
1235
1265
  container: {
1236
1266
  flex: 1,
1237
1267
  justifyContent: "center",
@@ -1305,10 +1335,10 @@ var ErrorBoundaryFallback = ({
1305
1335
  accessibilityHint: labels.tryAgainHint,
1306
1336
  accessibilityLabel: labels.tryAgain,
1307
1337
  accessibilityRole: "button",
1308
- style: [styles12.button, reloadIsPrimary ? secondaryFill : primaryFill],
1338
+ style: [styles13.button, reloadIsPrimary ? secondaryFill : primaryFill],
1309
1339
  testID: `${testIDPrefix}-retry-button`,
1310
1340
  onPress: onRetry,
1311
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.buttonText, reloadIsPrimary ? secondaryInk : primaryInk], children: labels.tryAgain })
1341
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.buttonText, reloadIsPrimary ? secondaryInk : primaryInk], children: labels.tryAgain })
1312
1342
  }
1313
1343
  ) : null;
1314
1344
  const reloadButton = typeof onReload === "function" ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -1317,10 +1347,10 @@ var ErrorBoundaryFallback = ({
1317
1347
  accessibilityHint: labels.reloadHint,
1318
1348
  accessibilityLabel: labels.reload,
1319
1349
  accessibilityRole: "button",
1320
- style: [styles12.button, reloadIsPrimary ? primaryFill : secondaryFill],
1350
+ style: [styles13.button, reloadIsPrimary ? primaryFill : secondaryFill],
1321
1351
  testID: `${testIDPrefix}-reload-button`,
1322
1352
  onPress: onReload,
1323
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.buttonText, reloadIsPrimary ? primaryInk : secondaryInk], children: labels.reload })
1353
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.buttonText, reloadIsPrimary ? primaryInk : secondaryInk], children: labels.reload })
1324
1354
  }
1325
1355
  ) : null;
1326
1356
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -1328,20 +1358,20 @@ var ErrorBoundaryFallback = ({
1328
1358
  {
1329
1359
  accessibilityLiveRegion: "assertive",
1330
1360
  role: "alert",
1331
- style: [styles12.container, { backgroundColor: theme.colors.background }],
1361
+ style: [styles13.container, { backgroundColor: theme.colors.background }],
1332
1362
  testID: testIDPrefix,
1333
- children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles12.content, children: [
1334
- logo !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles12.logo, testID: `${testIDPrefix}-logo`, children: logo }) : null,
1335
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.title, { color: theme.colors.text }], children: labels.title }),
1363
+ children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles13.content, children: [
1364
+ logo !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles13.logo, testID: `${testIDPrefix}-logo`, children: logo }) : null,
1365
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.title, { color: theme.colors.text }], children: labels.title }),
1336
1366
  /* @__PURE__ */ jsxRuntime.jsx(ErrorState, { message: labels.message, testID: `${testIDPrefix}-message` }),
1337
1367
  hasDetails ? /* @__PURE__ */ jsxRuntime.jsxs(
1338
1368
  reactNative.View,
1339
1369
  {
1340
- style: [styles12.details, { backgroundColor: theme.colors.surface, borderColor: warningColor }],
1370
+ style: [styles13.details, { backgroundColor: theme.colors.surface, borderColor: warningColor }],
1341
1371
  testID: `${testIDPrefix}-details`,
1342
1372
  children: [
1343
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.detailsTitle, { color: warningText }], children: labels.errorDetails }),
1344
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.detailsText, { color: theme.colors.textSecondary }], children: error.message })
1373
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.detailsTitle, { color: warningText }], children: labels.errorDetails }),
1374
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.detailsText, { color: theme.colors.textSecondary }], children: error.message })
1345
1375
  ]
1346
1376
  }
1347
1377
  ) : null,
@@ -1354,7 +1384,7 @@ var ErrorBoundaryFallback = ({
1354
1384
  var CONTAINER_PADDING4 = 20;
1355
1385
  var MESSAGE_FONT_SIZE3 = 16;
1356
1386
  var MESSAGE_MARGIN_TOP = 12;
1357
- var styles13 = reactNative.StyleSheet.create({
1387
+ var styles14 = reactNative.StyleSheet.create({
1358
1388
  container: {
1359
1389
  flex: 1,
1360
1390
  justifyContent: "center",
@@ -1377,11 +1407,11 @@ var ErrorBoundaryRecovering = ({
1377
1407
  {
1378
1408
  accessibilityLiveRegion: "polite",
1379
1409
  role: "status",
1380
- style: [styles13.container, { backgroundColor: theme.colors.background }],
1410
+ style: [styles14.container, { backgroundColor: theme.colors.background }],
1381
1411
  testID,
1382
1412
  children: [
1383
1413
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.ActivityIndicator, { color: theme.palette.primary["500"], size: "large" }),
1384
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.message, { color: theme.colors.textSecondary }], children: message })
1414
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.message, { color: theme.colors.textSecondary }], children: message })
1385
1415
  ]
1386
1416
  }
1387
1417
  );
@@ -1483,7 +1513,7 @@ var TRACK_MARGIN = 4;
1483
1513
  var INDET_FRACTION = 0.35;
1484
1514
  var INDET_DURATION_MS = 1300;
1485
1515
  var LABEL_FONT_SIZE = 12;
1486
- var styles14 = reactNative.StyleSheet.create({
1516
+ var styles15 = reactNative.StyleSheet.create({
1487
1517
  track: { height: BAR_HEIGHT, borderRadius: RADIUS, overflow: "hidden", marginVertical: TRACK_MARGIN },
1488
1518
  fill: { height: "100%", borderRadius: RADIUS },
1489
1519
  label: { fontSize: LABEL_FONT_SIZE, textAlign: "right", fontVariant: ["tabular-nums"] }
@@ -1502,7 +1532,7 @@ function IndeterminateFill({ color, width, testID }) {
1502
1532
  return /* @__PURE__ */ jsxRuntime.jsx(
1503
1533
  reactNative.Animated.View,
1504
1534
  {
1505
- style: [styles14.fill, { backgroundColor: color, width: barWidth, transform: [{ translateX }] }],
1535
+ style: [styles15.fill, { backgroundColor: color, width: barWidth, transform: [{ translateX }] }],
1506
1536
  testID
1507
1537
  }
1508
1538
  );
@@ -1537,13 +1567,13 @@ function ProgressBar(props) {
1537
1567
  role: "progressbar",
1538
1568
  testID,
1539
1569
  children: [
1540
- /* @__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 }) }),
1541
- !indeterminate && label !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.label, { color: textColor }], children: label }) : null
1570
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles15.track, { backgroundColor: trackColor }], onLayout, children: indeterminate ? /* @__PURE__ */ jsxRuntime.jsx(IndeterminateFill, { color, testID: fillTestID, width }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles15.fill, { backgroundColor: color, width: `${safePct}%` }], testID: fillTestID }) }),
1571
+ !indeterminate && label !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles15.label, { color: textColor }], children: label }) : null
1542
1572
  ]
1543
1573
  }
1544
1574
  );
1545
1575
  }
1546
- var styles15 = reactNative.StyleSheet.create({
1576
+ var styles16 = reactNative.StyleSheet.create({
1547
1577
  button: {
1548
1578
  minHeight: a11y.MIN_TOUCH_TARGET_PX,
1549
1579
  minWidth: a11y.MIN_TOUCH_TARGET_PX,
@@ -1566,9 +1596,9 @@ function RunCardButton({ label, hint, color, onPress, testID, disabled = false,
1566
1596
  accessibilityState: { disabled, expanded },
1567
1597
  disabled,
1568
1598
  onPress,
1569
- style: [styles15.button, { borderColor: color }, disabled ? { opacity: DISABLED_OPACITY } : null],
1599
+ style: [styles16.button, { borderColor: color }, disabled ? { opacity: DISABLED_OPACITY } : null],
1570
1600
  testID,
1571
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles15.text, { color }], children: label })
1601
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.text, { color }], children: label })
1572
1602
  }
1573
1603
  );
1574
1604
  }
@@ -1646,7 +1676,7 @@ function runToneTextColor(theme, state) {
1646
1676
  return inks[state] ?? runToneColor(theme, state);
1647
1677
  }
1648
1678
  var MARK = { done: "\u2713", running: "\u25CF", pending: "\u25CB", failed: "\u2715" };
1649
- var styles16 = reactNative.StyleSheet.create({
1679
+ var styles17 = reactNative.StyleSheet.create({
1650
1680
  row: { flexDirection: "row", flexWrap: "wrap", gap: 6 },
1651
1681
  chip: { borderWidth: 1, borderRadius: 6, paddingHorizontal: 10, justifyContent: "center" },
1652
1682
  tap: { minHeight: a11y.MIN_TOUCH_TARGET_PX },
@@ -1659,15 +1689,15 @@ function chipText(group, labels) {
1659
1689
  }
1660
1690
  function RunGroupChips({ groups, labels, testID, selectedId = null, onSelect }) {
1661
1691
  const { theme } = useFeedbackUi();
1662
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles16.row, testID, children: groups.map((group) => {
1692
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles17.row, testID, children: groups.map((group) => {
1663
1693
  const color = runToneColor(theme, group.state);
1664
1694
  const ink = runToneTextColor(theme, group.state);
1665
1695
  const selected = group.id === selectedId;
1666
1696
  const a11y = labels.groupA11y(group.label, group.state, labels.formatDuration(group.durationSec));
1667
- const body = /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.text, { color: ink }, selected || group.state === "running" ? styles16.strong : null], children: chipText(group, labels) });
1668
- const look = [styles16.chip, { borderColor: color, backgroundColor: selected ? theme.colors.surfaceElevated : theme.colors.surface }];
1697
+ const body = /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.text, { color: ink }, selected || group.state === "running" ? styles17.strong : null], children: chipText(group, labels) });
1698
+ const look = [styles17.chip, { borderColor: color, backgroundColor: selected ? theme.colors.surfaceElevated : theme.colors.surface }];
1669
1699
  if (onSelect === void 0) {
1670
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [look, styles16.still], accessible: true, accessibilityLabel: a11y, testID: `${testID}-${group.id}`, children: body }, group.id);
1700
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [look, styles17.still], accessible: true, accessibilityLabel: a11y, testID: `${testID}-${group.id}`, children: body }, group.id);
1671
1701
  }
1672
1702
  return /* @__PURE__ */ jsxRuntime.jsx(
1673
1703
  reactNative.Pressable,
@@ -1677,7 +1707,7 @@ function RunGroupChips({ groups, labels, testID, selectedId = null, onSelect })
1677
1707
  accessibilityHint: labels.groupHint,
1678
1708
  accessibilityState: { selected },
1679
1709
  onPress: () => onSelect(group.id),
1680
- style: [look, styles16.tap],
1710
+ style: [look, styles17.tap],
1681
1711
  testID: `${testID}-${group.id}`,
1682
1712
  children: body
1683
1713
  },
@@ -1691,8 +1721,8 @@ function RunGroupSummary({ groups, labels, testID }) {
1691
1721
  const open = groups.filter((g) => g.state !== "done");
1692
1722
  const doneColor = runToneColor(theme, "done");
1693
1723
  const doneText = labels.doneSummary(done.count, labels.formatDuration(done.durationSec));
1694
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.row, testID, children: [
1695
- 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,
1724
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.row, testID, children: [
1725
+ done.count > 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles17.chip, styles17.still, { borderColor: doneColor }], accessible: true, accessibilityLabel: doneText, testID: `${testID}-done`, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.text, { color: runToneTextColor(theme, "done") }], children: `${MARK.done} ${doneText}` }) }) : null,
1696
1726
  /* @__PURE__ */ jsxRuntime.jsx(RunGroupChips, { groups: open, labels, testID: `${testID}-open` })
1697
1727
  ] });
1698
1728
  }
@@ -1702,7 +1732,7 @@ var LABEL_SHARE = "35%";
1702
1732
  var LABEL_LINES = 2;
1703
1733
  var DURATION_WIDTH = 64;
1704
1734
  var PERCENT = 100;
1705
- var styles17 = reactNative.StyleSheet.create({
1735
+ var styles18 = reactNative.StyleSheet.create({
1706
1736
  list: { gap: 6 },
1707
1737
  row: { flexDirection: "row", alignItems: "center", gap: 8 },
1708
1738
  stack: { gap: 4 },
@@ -1721,22 +1751,22 @@ function RunStepBars({ steps, maxBars, labels, compact, testID }) {
1721
1751
  const maxSec = steps.reduce((m, s) => Math.max(m, s.durationSec), 0);
1722
1752
  const folded = split.hiddenCount > 0;
1723
1753
  const canFold = all && steps.length > maxBars;
1724
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.list, testID, children: [
1754
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles18.list, testID, children: [
1725
1755
  split.visible.map((step, i) => {
1726
1756
  const color = runToneColor(theme, step.state);
1727
1757
  const duration = labels.formatDuration(step.durationSec);
1728
- const strong = step.state === "running" ? styles17.strong : null;
1729
- 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 });
1730
- const time = /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.duration, { color: theme.colors.textSecondary }, strong], children: duration });
1731
- 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}%` }] }) });
1758
+ const strong = step.state === "running" ? styles18.strong : null;
1759
+ const name = /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [compact ? styles18.compactLabel : styles18.label, { color: theme.colors.text }, strong], numberOfLines: LABEL_LINES, testID: `${testID}-name-${String(i)}`, children: step.label });
1760
+ const time = /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles18.duration, { color: theme.colors.textSecondary }, strong], children: duration });
1761
+ const bar = /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [compact ? styles18.fullTrack : styles18.track, { backgroundColor: theme.colors.border }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles18.fill, { backgroundColor: color, width: `${barFraction(step.durationSec, maxSec) * PERCENT}%` }] }) });
1732
1762
  const a11y = { accessible: true, accessibilityLabel: labels.stepA11y(step.label, duration), testID: `${testID}-row-${String(i)}` };
1733
- return compact ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.stack, ...a11y, children: [
1734
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.row, children: [
1763
+ return compact ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles18.stack, ...a11y, children: [
1764
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles18.row, children: [
1735
1765
  name,
1736
1766
  time
1737
1767
  ] }),
1738
1768
  bar
1739
- ] }, `${step.label}-${String(i)}`) : /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.row, ...a11y, children: [
1769
+ ] }, `${step.label}-${String(i)}`) : /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles18.row, ...a11y, children: [
1740
1770
  name,
1741
1771
  bar,
1742
1772
  time
@@ -1757,7 +1787,7 @@ function RunStepBars({ steps, maxBars, labels, compact, testID }) {
1757
1787
  }
1758
1788
  var LIVE_RUN_CARD_COMPACT_MAX_PX = 640;
1759
1789
  var DEFAULT_MAX_BARS = 4;
1760
- var styles18 = reactNative.StyleSheet.create({
1790
+ var styles19 = reactNative.StyleSheet.create({
1761
1791
  card: { borderWidth: 1, borderRadius: 8, padding: 14, gap: 10 },
1762
1792
  head: { flexDirection: "row", flexWrap: "wrap", alignItems: "center", gap: 10 },
1763
1793
  titleBox: { flexGrow: 1, flexShrink: 1, flexBasis: 200, minWidth: 0, gap: 2 },
@@ -1782,18 +1812,18 @@ function LiveRunCard(props) {
1782
1812
  const percent = progressPercent(progress);
1783
1813
  const showTimings = !compact || open;
1784
1814
  const muted = { color: theme.colors.textSecondary };
1785
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles18.card, { borderColor: tone, backgroundColor: theme.colors.surface }], testID, children: [
1786
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles18.head, children: [
1787
- /* @__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 }) }),
1788
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles18.titleBox, children: [
1789
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles18.title, { color: theme.colors.text }], testID: `${testID}-title`, children: title }),
1790
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles18.meta, muted], testID: `${testID}-meta`, children: labels.meta })
1815
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles19.card, { borderColor: tone, backgroundColor: theme.colors.surface }], testID, children: [
1816
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles19.head, children: [
1817
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles19.pill, { borderColor: tone }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles19.pillText, { color: toneText }], testID: `${testID}-status`, children: labels.status }) }),
1818
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles19.titleBox, children: [
1819
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles19.title, { color: theme.colors.text }], testID: `${testID}-title`, children: title }),
1820
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles19.meta, muted], testID: `${testID}-meta`, children: labels.meta })
1791
1821
  ] }),
1792
1822
  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
1793
1823
  ] }),
1794
- currentStep !== null && currentStep !== "" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles18.step, { color: theme.colors.text }], testID: `${testID}-step`, children: currentStep }) : null,
1824
+ currentStep !== null && currentStep !== "" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles19.step, { color: theme.colors.text }], testID: `${testID}-step`, children: currentStep }) : null,
1795
1825
  percent !== null ? /* @__PURE__ */ jsxRuntime.jsx(ProgressBar, { percent, label: labels.progress, accessibilityLabel: labels.progressA11y, color: tone, testID: `${testID}-progress` }) : null,
1796
- percent === null && labels.progress !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles18.meta, muted], testID: `${testID}-progress-text`, children: labels.progress }) : null,
1826
+ percent === null && labels.progress !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles19.meta, muted], testID: `${testID}-progress-text`, children: labels.progress }) : null,
1797
1827
  compact && !open ? /* @__PURE__ */ jsxRuntime.jsx(RunGroupSummary, { groups, labels, testID: `${testID}-summary` }) : null,
1798
1828
  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,
1799
1829
  showTimings ? /* @__PURE__ */ jsxRuntime.jsx(RunGroupChips, { groups, labels, selectedId, onSelect: setPicked, testID: `${testID}-groups` }) : null,
@@ -1819,23 +1849,23 @@ var LocalModelGate = ({
1819
1849
  const consent = react.useCallback(() => {
1820
1850
  model.consent().catch(() => void 0);
1821
1851
  }, [model]);
1822
- const { Card, Text: Text19, Button } = slots;
1852
+ const { Card, Text: Text20, Button } = slots;
1823
1853
  switch (phase) {
1824
1854
  case textGeneration.LocalModelPhase.Checking:
1825
1855
  return null;
1826
1856
  case textGeneration.LocalModelPhase.Blocked:
1827
- return /* @__PURE__ */ jsxRuntime.jsx(Card, { testID: testIds.blocked, children: /* @__PURE__ */ jsxRuntime.jsx(Text19, { children: labels.blocked(block) }) });
1857
+ return /* @__PURE__ */ jsxRuntime.jsx(Card, { testID: testIds.blocked, children: /* @__PURE__ */ jsxRuntime.jsx(Text20, { children: labels.blocked(block) }) });
1828
1858
  case textGeneration.LocalModelPhase.Offer:
1829
1859
  return /* @__PURE__ */ jsxRuntime.jsxs(Card, { testID: testIds.offer, children: [
1830
- /* @__PURE__ */ jsxRuntime.jsx(Text19, { heading: true, children: labels.title }),
1831
- /* @__PURE__ */ jsxRuntime.jsx(Text19, { children: labels.offerBody }),
1860
+ /* @__PURE__ */ jsxRuntime.jsx(Text20, { heading: true, children: labels.title }),
1861
+ /* @__PURE__ */ jsxRuntime.jsx(Text20, { children: labels.offerBody }),
1832
1862
  /* @__PURE__ */ jsxRuntime.jsx(Button, { hint: labels.consentHint, label: labels.consent, testID: testIds.consent, onPress: consent })
1833
1863
  ] });
1834
1864
  case textGeneration.LocalModelPhase.Loading:
1835
- return /* @__PURE__ */ jsxRuntime.jsx(Card, { testID: testIds.loading, children: /* @__PURE__ */ jsxRuntime.jsx(Text19, { children: labels.loading(String(Math.round(progress * PERCENT2))) }) });
1865
+ return /* @__PURE__ */ jsxRuntime.jsx(Card, { testID: testIds.loading, children: /* @__PURE__ */ jsxRuntime.jsx(Text20, { children: labels.loading(String(Math.round(progress * PERCENT2))) }) });
1836
1866
  case textGeneration.LocalModelPhase.Failed:
1837
1867
  return /* @__PURE__ */ jsxRuntime.jsxs(Card, { testID: testIds.failed, children: [
1838
- /* @__PURE__ */ jsxRuntime.jsx(Text19, { children: labels.failed }),
1868
+ /* @__PURE__ */ jsxRuntime.jsx(Text20, { children: labels.failed }),
1839
1869
  /* @__PURE__ */ jsxRuntime.jsx(Button, { hint: labels.consentHint, label: labels.retry, testID: testIds.consent, onPress: consent })
1840
1870
  ] });
1841
1871
  case textGeneration.LocalModelPhase.Ready:
@@ -1849,24 +1879,26 @@ var GAP = 8;
1849
1879
  var MIN_HIT = 44;
1850
1880
  var TITLE_FONT = 14;
1851
1881
  var DETAIL_FONT = 12;
1852
- var styles19 = reactNative.StyleSheet.create({
1882
+ var styles20 = reactNative.StyleSheet.create({
1853
1883
  detail: { fontSize: DETAIL_FONT },
1854
1884
  row: { alignItems: "center", flexDirection: "row", justifyContent: "space-between" },
1885
+ statusUnder: { alignSelf: "flex-start" },
1855
1886
  tile: { flexBasis: 0, flexGrow: 1, minWidth: 0 },
1856
1887
  title: { fontSize: TITLE_FONT, fontWeight: "600" },
1857
1888
  words: { flexShrink: 1, gap: 2 },
1858
1889
  wrap: { borderRadius: RADIUS2, borderWidth: 1, gap: GAP, minHeight: MIN_HIT, padding: PAD }
1859
1890
  });
1860
1891
  var CheckStatus = (props) => {
1861
- const { title, detail, status, variant = "tile", onPress, accessibilityLabel, accessibilityHint, testID } = props;
1892
+ const { title, detail, status, variant = "tile", statusUnderTitleEnabled = false, onPress, accessibilityLabel, accessibilityHint, testID } = props;
1862
1893
  const { theme } = useFeedbackUi();
1863
- const style = [styles19.wrap, variant === "tile" ? styles19.tile : styles19.row, { backgroundColor: theme.colors.surface, borderColor: theme.colors.border }];
1894
+ const style = [styles20.wrap, variant === "tile" ? styles20.tile : styles20.row, { backgroundColor: theme.colors.surface, borderColor: theme.colors.border }];
1864
1895
  const body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1865
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles19.words, children: [
1866
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles19.title, { color: theme.colors.text }], children: title }),
1867
- detail === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles19.detail, { color: theme.colors.textSecondary }], children: detail })
1896
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles20.words, children: [
1897
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles20.title, { color: theme.colors.text }], children: title }),
1898
+ statusUnderTitleEnabled ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles20.statusUnder, children: status }) : null,
1899
+ detail === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles20.detail, { color: theme.colors.textSecondary }], children: detail })
1868
1900
  ] }),
1869
- status
1901
+ statusUnderTitleEnabled ? null : status
1870
1902
  ] });
1871
1903
  if (onPress === void 0) {
1872
1904
  return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityLabel, style, testID, children: body });
@@ -1879,13 +1911,27 @@ var PIPELINE_COLLAPSE_BREAKPOINT = 768;
1879
1911
  function pipelineVariant(width, breakpoint = PIPELINE_COLLAPSE_BREAKPOINT) {
1880
1912
  return width >= breakpoint ? "tile" : "row";
1881
1913
  }
1882
- var styles20 = reactNative.StyleSheet.create({
1914
+ function pipelineItemVariant(width, breakpoint = PIPELINE_COLLAPSE_BREAKPOINT, phoneColumns = 1) {
1915
+ const variant = pipelineVariant(width, breakpoint);
1916
+ return variant === "row" && phoneColumns > 1 ? "tile" : variant;
1917
+ }
1918
+ var GRID_GAP_SHARE = 2;
1919
+ var styles21 = reactNative.StyleSheet.create({
1920
+ grid: { flexDirection: "row", flexWrap: "wrap", gap: 8 },
1883
1921
  list: { gap: 8 },
1884
1922
  row: { flexDirection: "row", gap: 12 }
1885
1923
  });
1886
- var CheckPipeline = ({ items, breakpoint, accessibilityLabel, accessibilityHint, testID }) => {
1887
- const variant = pipelineVariant(reactNative.useWindowDimensions().width, breakpoint);
1888
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityLabel, accessibilityRole: "summary", style: variant === "tile" ? styles20.row : styles20.list, testID, children: items.map(({ id, ...item }) => /* @__PURE__ */ jsxRuntime.jsx(CheckStatus, { ...item, variant }, id)) });
1924
+ var CheckPipeline = ({ items, breakpoint, accessibilityLabel, accessibilityHint, testID, phoneColumns = 1, statusUnderTitleEnabled }) => {
1925
+ const width = reactNative.useWindowDimensions().width;
1926
+ const variant = pipelineVariant(width, breakpoint);
1927
+ const itemVariant = pipelineItemVariant(width, breakpoint, phoneColumns);
1928
+ const grid = variant !== itemVariant;
1929
+ const cell = { flexBasis: `${Math.floor(100 / phoneColumns) - GRID_GAP_SHARE}%`, flexGrow: 1 };
1930
+ const containerStyle = variant === "tile" ? styles21.row : grid ? styles21.grid : styles21.list;
1931
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityLabel, accessibilityRole: "summary", style: containerStyle, testID, children: items.map(({ id, ...item }) => {
1932
+ const check = /* @__PURE__ */ jsxRuntime.jsx(CheckStatus, { ...item, statusUnderTitleEnabled, variant: itemVariant }, id);
1933
+ return grid ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: cell, children: check }, id) : check;
1934
+ }) });
1889
1935
  };
1890
1936
 
1891
1937
  // src/CheckStatus/semanticScale.ts
@@ -1908,7 +1954,7 @@ var MARKER_HEIGHT = 16;
1908
1954
  var MARKER_TOP = -4;
1909
1955
  var RADIUS3 = 999;
1910
1956
  var FONT = 12;
1911
- var styles21 = reactNative.StyleSheet.create({
1957
+ var styles22 = reactNative.StyleSheet.create({
1912
1958
  fill: { borderRadius: RADIUS3, height: "100%" },
1913
1959
  head: { flexDirection: "row", flexWrap: "wrap", gap: 8, justifyContent: "space-between" },
1914
1960
  marker: { height: MARKER_HEIGHT, marginLeft: -MARKER_WIDTH / 2, position: "absolute", top: MARKER_TOP, width: MARKER_WIDTH },
@@ -1924,14 +1970,14 @@ var ThresholdMeter = (props) => {
1924
1970
  const { theme } = useFeedbackUi();
1925
1971
  const passes = meetsThreshold(value, threshold, lowerPasses);
1926
1972
  const fill = passes ? semanticScale(theme, "success") ?? theme.palette.primary["500"] : theme.semantic.error["500"];
1927
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { accessibilityHint, accessibilityLabel: label, "aria-valuemax": max, "aria-valuemin": 0, "aria-valuenow": value, "aria-valuetext": valueText, role: "meter", style: styles21.wrap, testID, children: [
1928
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles21.head, children: [
1929
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles21.text, { color: theme.colors.textSecondary }], children: label }),
1930
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles21.text, { color: theme.colors.text }], children: valueText })
1973
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { accessibilityHint, accessibilityLabel: label, "aria-valuemax": max, "aria-valuemin": 0, "aria-valuenow": value, "aria-valuetext": valueText, role: "meter", style: styles22.wrap, testID, children: [
1974
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles22.head, children: [
1975
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles22.text, { color: theme.colors.textSecondary }], children: label }),
1976
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles22.text, { color: theme.colors.text }], children: valueText })
1931
1977
  ] }),
1932
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles21.track, { backgroundColor: theme.colors.border }], children: [
1933
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles21.fill, { backgroundColor: fill, width: `${meterPercent(value, max)}%` }], testID: partId(testID, "fill") }),
1934
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles21.marker, { backgroundColor: theme.colors.text, left: `${meterPercent(threshold, max)}%` }], testID: partId(testID, "threshold") })
1978
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles22.track, { backgroundColor: theme.colors.border }], children: [
1979
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles22.fill, { backgroundColor: fill, width: `${meterPercent(value, max)}%` }], testID: partId(testID, "fill") }),
1980
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles22.marker, { backgroundColor: theme.colors.text, left: `${meterPercent(threshold, max)}%` }], testID: partId(testID, "threshold") })
1935
1981
  ] })
1936
1982
  ] });
1937
1983
  };
@@ -1942,7 +1988,7 @@ var STACK_GAP = 12;
1942
1988
  var TITLE_FONT2 = 15;
1943
1989
  var HEADING_FONT = 16;
1944
1990
  var MESSAGE_FONT = 14;
1945
- var styles22 = reactNative.StyleSheet.create({
1991
+ var styles23 = reactNative.StyleSheet.create({
1946
1992
  card: { borderRadius: RADIUS4, borderWidth: 1, gap: GAP2, minWidth: 0, padding: PAD2 },
1947
1993
  head: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP2, justifyContent: "space-between" },
1948
1994
  heading: { flexShrink: 1, fontSize: HEADING_FONT, fontWeight: "700" },
@@ -1952,20 +1998,82 @@ var styles22 = reactNative.StyleSheet.create({
1952
1998
  });
1953
1999
  var AttentionCard = ({ title, heading, status, message, evidence, action, testID }) => {
1954
2000
  const { theme } = useFeedbackUi();
1955
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles22.card, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }], testID, children: [
1956
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles22.title, { color: theme.colors.text }], children: title }),
1957
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles22.stack, children: [
1958
- heading === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles22.head, testID: testID === void 0 ? void 0 : `${testID}-head`, children: [
1959
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles22.heading, { color: theme.colors.text }], children: heading }),
2001
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles23.card, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }], testID, children: [
2002
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles23.title, { color: theme.colors.text }], children: title }),
2003
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles23.stack, children: [
2004
+ heading === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles23.head, testID: testID === void 0 ? void 0 : `${testID}-head`, children: [
2005
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles23.heading, { color: theme.colors.text }], children: heading }),
1960
2006
  status
1961
2007
  ] }),
1962
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles22.message, { color: theme.colors.textSecondary }], children: message }),
2008
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles23.message, { color: theme.colors.textSecondary }], children: message }),
1963
2009
  evidence,
1964
2010
  action
1965
2011
  ] })
1966
2012
  ] });
1967
2013
  };
1968
2014
 
2015
+ // src/StatusTile/tileMotion.ts
2016
+ var TILE_MOTION_MS = 160;
2017
+ var LIFT = -2;
2018
+ var EASE_OUT = "cubic-bezier(0.23, 1, 0.32, 1)";
2019
+ var RAISED_OPACITY = 0.12;
2020
+ var PRESSED_OPACITY = 0.06;
2021
+ var RAISED_RADIUS = 10;
2022
+ var PRESSED_RADIUS = 4;
2023
+ var RAISED_OFFSET = 4;
2024
+ var PRESSED_OFFSET = 1;
2025
+ var FOCUS_RING = 2;
2026
+ function shadowOf(theme, pressed) {
2027
+ return {
2028
+ shadowColor: theme.colors.text,
2029
+ shadowOffset: { width: 0, height: pressed ? PRESSED_OFFSET : RAISED_OFFSET },
2030
+ shadowOpacity: pressed ? PRESSED_OPACITY : RAISED_OPACITY,
2031
+ shadowRadius: pressed ? PRESSED_RADIUS : RAISED_RADIUS
2032
+ };
2033
+ }
2034
+ function tileMotionStyle(theme, input) {
2035
+ const { interaction, reduced, interactive, accentColor } = input;
2036
+ if (!interactive) return {};
2037
+ const active = interaction.hovered || interaction.focused || interaction.pressed;
2038
+ const transition = reduced ? {} : { transitionDuration: `${String(TILE_MOTION_MS)}ms`, transitionProperty: "transform, box-shadow, border-color", transitionTimingFunction: EASE_OUT };
2039
+ const lift = reduced || !active || interaction.pressed ? {} : { transform: [{ translateY: LIFT }] };
2040
+ const tone = !active || accentColor !== void 0 ? {} : { borderColor: theme.colors.textSecondary };
2041
+ const ring = !interaction.focused ? {} : { outlineColor: theme.palette.primary["500"], outlineStyle: "solid", outlineWidth: FOCUS_RING };
2042
+ return { ...transition, ...active ? shadowOf(theme, interaction.pressed) : {}, ...lift, ...tone, ...ring };
2043
+ }
2044
+ var RADIUS5 = 8;
2045
+ var PAD3 = 12;
2046
+ var ACCENT = 3;
2047
+ var MIN_HIT2 = 44;
2048
+ var styles24 = reactNative.StyleSheet.create({
2049
+ head: { alignItems: "center", flexDirection: "row", gap: 6 },
2050
+ line: { fontSize: 13 },
2051
+ meta: { fontSize: 12 },
2052
+ status: { alignSelf: "flex-start" },
2053
+ title: { flexShrink: 1, fontSize: 14, fontWeight: "700" },
2054
+ wrap: { borderRadius: RADIUS5, borderWidth: 1, gap: 6, minHeight: MIN_HIT2, minWidth: 0, padding: PAD3 }
2055
+ });
2056
+ var StatusTile = ({ title, icon, status, lines, accentColor, onPress, accessibilityLabel, accessibilityHint, testID }) => {
2057
+ const { theme } = useFeedbackUi();
2058
+ const reduced = uiMotion.useReducedMotion();
2059
+ const accent = accentColor === void 0 ? { borderColor: theme.colors.border } : { borderColor: accentColor, borderTopWidth: ACCENT, paddingTop: PAD3 - ACCENT + 1 };
2060
+ const interactive = onPress !== void 0;
2061
+ const styleOf = (state) => [
2062
+ styles24.wrap,
2063
+ { backgroundColor: theme.colors.surface },
2064
+ accent,
2065
+ tileMotionStyle(theme, { interaction: { hovered: state.hovered === true, pressed: state.pressed, focused: state.focused === true }, reduced, interactive, accentColor })
2066
+ ];
2067
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { accessibilityHint, accessibilityLabel, accessibilityRole: interactive ? "button" : void 0, disabled: !interactive, style: styleOf, testID, onPress, children: [
2068
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles24.head, children: [
2069
+ icon,
2070
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles24.title, { color: theme.colors.text }], children: title })
2071
+ ] }),
2072
+ status === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles24.status, children: status }),
2073
+ lines.map((line, index) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 2, style: [index === 0 ? styles24.line : styles24.meta, { color: index === 0 ? theme.colors.text : theme.colors.textSecondary }], children: line }, `${String(index)}-${line}`))
2074
+ ] });
2075
+ };
2076
+
1969
2077
  exports.AppErrorBoundary = AppErrorBoundary;
1970
2078
  exports.AsyncSurface = AsyncSurface;
1971
2079
  exports.AttentionCard = AttentionCard;
@@ -1990,6 +2098,9 @@ exports.MODAL_OVERLAY_COLOR = MODAL_OVERLAY_COLOR;
1990
2098
  exports.PIPELINE_COLLAPSE_BREAKPOINT = PIPELINE_COLLAPSE_BREAKPOINT;
1991
2099
  exports.PageSkeleton = PageSkeleton;
1992
2100
  exports.ProgressBar = ProgressBar;
2101
+ exports.SkeletonLines = SkeletonLines;
2102
+ exports.StatusTile = StatusTile;
2103
+ exports.TILE_MOTION_MS = TILE_MOTION_MS;
1993
2104
  exports.ThresholdMeter = ThresholdMeter;
1994
2105
  exports.ToastHost = ToastHost;
1995
2106
  exports.UiProvider = FeedbackUiProvider;
@@ -2006,6 +2117,7 @@ exports.meetsThreshold = meetsThreshold;
2006
2117
  exports.mergeRunSteps = mergeRunSteps;
2007
2118
  exports.meterPercent = meterPercent;
2008
2119
  exports.notifyWarming = notifyWarming;
2120
+ exports.pipelineItemVariant = pipelineItemVariant;
2009
2121
  exports.pipelineVariant = pipelineVariant;
2010
2122
  exports.progressPercent = progressPercent;
2011
2123
  exports.readTraceId = readTraceId;
@@ -2014,6 +2126,7 @@ exports.settleWarming = settleWarming;
2014
2126
  exports.splitShorterSteps = splitShorterSteps;
2015
2127
  exports.subscribeWarming = subscribeWarming;
2016
2128
  exports.summariseDoneGroups = summariseDoneGroups;
2129
+ exports.tileMotionStyle = tileMotionStyle;
2017
2130
  exports.useCopyToClipboard = useCopyToClipboard;
2018
2131
  exports.useFeedbackUi = useFeedbackUi;
2019
2132
  exports.useLocalModel = useLocalModel;