@dloizides/ui-feedback 1.11.0 → 1.12.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
@@ -60,57 +60,146 @@ var FEEDBACK_TEST_IDS = {
60
60
  warmingOverlay: "warming-overlay",
61
61
  errorBoundary: "error-boundary"
62
62
  };
63
- var MESSAGE_FONT_SIZE = 16;
64
- var CONTAINER_PADDING = 20;
63
+ var WELL_SIZE = 56;
64
+ var WELL_MARGIN_BOTTOM = 16;
65
+ var WELL_TINT_OPACITY = 0.12;
65
66
  var BUTTON_MARGIN_TOP = 12;
66
67
  var BUTTON_PADDING_V = 8;
67
68
  var BUTTON_PADDING_H = 16;
68
69
  var BUTTON_BORDER_RADIUS = 6;
70
+ var BUTTON_BORDER_WIDTH = 1;
69
71
  var BUTTON_FONT_SIZE = 14;
70
72
  var styles = reactNative.StyleSheet.create({
73
+ well: {
74
+ width: WELL_SIZE,
75
+ height: WELL_SIZE,
76
+ borderRadius: WELL_SIZE / 2,
77
+ marginBottom: WELL_MARGIN_BOTTOM,
78
+ alignItems: "center",
79
+ justifyContent: "center",
80
+ overflow: "hidden"
81
+ },
82
+ wellTint: {
83
+ ...reactNative.StyleSheet.absoluteFillObject,
84
+ opacity: WELL_TINT_OPACITY
85
+ },
86
+ secondaryButton: {
87
+ marginTop: BUTTON_MARGIN_TOP,
88
+ paddingVertical: BUTTON_PADDING_V,
89
+ paddingHorizontal: BUTTON_PADDING_H,
90
+ borderRadius: BUTTON_BORDER_RADIUS,
91
+ borderWidth: BUTTON_BORDER_WIDTH
92
+ },
93
+ secondaryText: {
94
+ fontSize: BUTTON_FONT_SIZE,
95
+ fontWeight: "600"
96
+ }
97
+ });
98
+ var ErrorStateIconWell = ({ icon, tint, testID }) => /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { "aria-hidden": true, style: styles.well, testID, children: [
99
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles.wellTint, { backgroundColor: tint }] }),
100
+ icon
101
+ ] });
102
+ var ErrorStateSecondaryButton = ({
103
+ action,
104
+ theme
105
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
106
+ reactNative.TouchableOpacity,
107
+ {
108
+ accessibilityHint: action.hint,
109
+ accessibilityLabel: action.label,
110
+ accessibilityRole: "button",
111
+ style: [styles.secondaryButton, { borderColor: theme.colors.border }],
112
+ testID: action.testID,
113
+ onPress: action.onPress,
114
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles.secondaryText, { color: theme.colors.text }], children: action.label })
115
+ }
116
+ );
117
+ var MESSAGE_FONT_SIZE = 16;
118
+ var CONTAINER_PADDING = 20;
119
+ var BUTTON_MARGIN_TOP2 = 12;
120
+ var BUTTON_PADDING_V2 = 8;
121
+ var BUTTON_PADDING_H2 = 16;
122
+ var BUTTON_BORDER_RADIUS2 = 6;
123
+ var BUTTON_FONT_SIZE2 = 14;
124
+ var TITLE_FONT_SIZE = 20;
125
+ var TITLE_MARGIN_BOTTOM = 8;
126
+ var ACTION_GAP = 12;
127
+ var styles2 = reactNative.StyleSheet.create({
71
128
  container: {
72
129
  flex: 1,
73
130
  justifyContent: "center",
74
131
  alignItems: "center",
75
132
  padding: CONTAINER_PADDING
76
133
  },
134
+ title: {
135
+ fontSize: TITLE_FONT_SIZE,
136
+ fontWeight: "600",
137
+ textAlign: "center",
138
+ marginBottom: TITLE_MARGIN_BOTTOM
139
+ },
77
140
  message: {
78
141
  fontSize: MESSAGE_FONT_SIZE,
79
142
  textAlign: "center"
80
143
  },
144
+ actions: {
145
+ flexDirection: "row",
146
+ flexWrap: "wrap",
147
+ justifyContent: "center",
148
+ columnGap: ACTION_GAP
149
+ },
81
150
  retryButton: {
82
- marginTop: BUTTON_MARGIN_TOP,
83
- paddingVertical: BUTTON_PADDING_V,
84
- paddingHorizontal: BUTTON_PADDING_H,
85
- borderRadius: BUTTON_BORDER_RADIUS
151
+ marginTop: BUTTON_MARGIN_TOP2,
152
+ paddingVertical: BUTTON_PADDING_V2,
153
+ paddingHorizontal: BUTTON_PADDING_H2,
154
+ borderRadius: BUTTON_BORDER_RADIUS2
86
155
  },
87
156
  retryText: {
88
- fontSize: BUTTON_FONT_SIZE,
157
+ fontSize: BUTTON_FONT_SIZE2,
89
158
  fontWeight: "600"
90
159
  }
91
160
  });
92
161
  var ErrorState = ({
93
162
  message,
94
163
  onRetry,
95
- testID = FEEDBACK_TEST_IDS.errorState
164
+ testID = FEEDBACK_TEST_IDS.errorState,
165
+ title,
166
+ icon,
167
+ secondaryAction
96
168
  }) => {
97
169
  const { theme, t } = useFeedbackUi();
98
170
  const errorColor = theme.semantic.error["500"];
99
171
  const primary = theme.palette.primary["500"];
100
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles.container, testID, children: [
101
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles.message, { color: errorColor }], children: message }),
102
- typeof onRetry === "function" ? /* @__PURE__ */ jsxRuntime.jsx(
103
- reactNative.TouchableOpacity,
172
+ const hasTitle = typeof title === "string" && title !== "";
173
+ const hasIcon = icon !== void 0 && icon !== null;
174
+ const messageColor = hasTitle ? theme.colors.textSecondary : errorColor;
175
+ const retry = typeof onRetry === "function" ? /* @__PURE__ */ jsxRuntime.jsx(
176
+ reactNative.TouchableOpacity,
177
+ {
178
+ accessibilityHint: t("common.retryHint"),
179
+ accessibilityLabel: t("common.retry"),
180
+ accessibilityRole: "button",
181
+ style: [styles2.retryButton, { backgroundColor: primary }],
182
+ testID: FEEDBACK_TEST_IDS.errorStateRetry,
183
+ onPress: onRetry,
184
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles2.retryText, { color: theme.colors.surfaceElevated }], children: t("common.retry") })
185
+ }
186
+ ) : null;
187
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles2.container, testID, children: [
188
+ hasIcon ? /* @__PURE__ */ jsxRuntime.jsx(ErrorStateIconWell, { icon, testID: `${testID}-icon`, tint: errorColor }) : null,
189
+ hasTitle ? /* @__PURE__ */ jsxRuntime.jsx(
190
+ reactNative.Text,
104
191
  {
105
- accessibilityHint: t("common.retryHint"),
106
- accessibilityLabel: t("common.retry"),
107
- accessibilityRole: "button",
108
- style: [styles.retryButton, { backgroundColor: primary }],
109
- testID: FEEDBACK_TEST_IDS.errorStateRetry,
110
- onPress: onRetry,
111
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles.retryText, { color: theme.colors.surfaceElevated }], children: t("common.retry") })
192
+ accessibilityRole: "header",
193
+ style: [styles2.title, { color: theme.colors.text }],
194
+ testID: `${testID}-title`,
195
+ children: title
112
196
  }
113
- ) : null
197
+ ) : null,
198
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles2.message, { color: messageColor }], children: message }),
199
+ secondaryAction === void 0 ? retry : /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles2.actions, children: [
200
+ retry,
201
+ /* @__PURE__ */ jsxRuntime.jsx(ErrorStateSecondaryButton, { action: secondaryAction, theme })
202
+ ] })
114
203
  ] });
115
204
  };
116
205
  var MESSAGE_FONT_SIZE2 = 16;
@@ -120,7 +209,7 @@ var CTA_PADDING_HORIZONTAL = 20;
120
209
  var CTA_BORDER_RADIUS = 8;
121
210
  var CTA_FONT_SIZE = 14;
122
211
  var CONTAINER_PADDING2 = 32;
123
- var styles2 = reactNative.StyleSheet.create({
212
+ var styles3 = reactNative.StyleSheet.create({
124
213
  container: {
125
214
  flex: 1,
126
215
  justifyContent: "center",
@@ -156,25 +245,25 @@ var EmptyListState = ({
156
245
  if (typeof ctaRoute === "string" && typeof navigate === "function") navigate(ctaRoute);
157
246
  }, [navigate, ctaRoute]);
158
247
  const showCta = typeof ctaTextKey === "string" && typeof ctaHintKey === "string" && typeof ctaRoute === "string";
159
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles2.container, testID, children: [
160
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles2.message, { color: colors.textSecondary }], children: t(messageKey) }),
248
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles3.container, testID, children: [
249
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles3.message, { color: colors.textSecondary }], children: t(messageKey) }),
161
250
  showCta ? /* @__PURE__ */ jsxRuntime.jsx(
162
251
  reactNative.TouchableOpacity,
163
252
  {
164
253
  accessibilityHint: t(ctaHintKey),
165
254
  accessibilityLabel: t(ctaTextKey),
166
255
  accessibilityRole: "button",
167
- style: [styles2.ctaButton, { backgroundColor: primary }],
256
+ style: [styles3.ctaButton, { backgroundColor: primary }],
168
257
  testID: FEEDBACK_TEST_IDS.emptyListCta,
169
258
  onPress: handlePress,
170
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles2.ctaText, { color: colors.background }], children: t(ctaTextKey) })
259
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles3.ctaText, { color: colors.background }], children: t(ctaTextKey) })
171
260
  }
172
261
  ) : null
173
262
  ] });
174
263
  };
175
264
  var FULLSCREEN_MIN_HEIGHT = 300;
176
265
  var CONTAINER_MIN_HEIGHT = 100;
177
- var styles3 = reactNative.StyleSheet.create({
266
+ var styles4 = reactNative.StyleSheet.create({
178
267
  container: {
179
268
  flex: 1,
180
269
  justifyContent: "center",
@@ -195,7 +284,7 @@ var LoadingFallback = ({ fullScreen = false, size = "large" }) => {
195
284
  accessibilityHint: t("loadingFallback.hint"),
196
285
  accessibilityLabel: t("loadingFallback.label"),
197
286
  accessibilityRole: "progressbar",
198
- style: [styles3.container, fullScreen && styles3.fullScreen, { backgroundColor: colors.background }],
287
+ style: [styles4.container, fullScreen && styles4.fullScreen, { backgroundColor: colors.background }],
199
288
  testID: FEEDBACK_TEST_IDS.loadingFallback,
200
289
  children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ActivityIndicator, { color: primary, size })
201
290
  }
@@ -212,7 +301,7 @@ var TEXT_LINE_HEIGHT = 16;
212
301
  var TEXT_LINE_FULL_WIDTH = "100%";
213
302
  var TEXT_LINE_SHORT_WIDTH = "70%";
214
303
  var CARD_HEIGHT = 120;
215
- var styles4 = reactNative.StyleSheet.create({
304
+ var styles5 = reactNative.StyleSheet.create({
216
305
  container: {
217
306
  flex: 1,
218
307
  padding: 16
@@ -246,25 +335,25 @@ var PageSkeleton = ({
246
335
  const { theme, t } = useFeedbackUi();
247
336
  const colors = theme.colors;
248
337
  const skeletonColor = String(colors.border);
249
- const renderListRow = (index) => /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles4.row, children: [
338
+ const renderListRow = (index) => /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles5.row, children: [
250
339
  /* @__PURE__ */ jsxRuntime.jsx(
251
340
  uiMotion.Skeleton,
252
341
  {
253
342
  backgroundColor: skeletonColor,
254
343
  borderRadius: AVATAR_BORDER_RADIUS,
255
344
  height: AVATAR_SIZE,
256
- style: styles4.avatar,
345
+ style: styles5.avatar,
257
346
  width: AVATAR_SIZE
258
347
  }
259
348
  ),
260
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles4.textContainer, children: [
349
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles5.textContainer, children: [
261
350
  /* @__PURE__ */ jsxRuntime.jsx(
262
351
  uiMotion.Skeleton,
263
352
  {
264
353
  backgroundColor: skeletonColor,
265
354
  borderRadius: SKELETON_BORDER_RADIUS,
266
355
  height: TEXT_LINE_HEIGHT,
267
- style: styles4.textLine,
356
+ style: styles5.textLine,
268
357
  width: TEXT_LINE_FULL_WIDTH
269
358
  }
270
359
  ),
@@ -274,7 +363,7 @@ var PageSkeleton = ({
274
363
  backgroundColor: skeletonColor,
275
364
  borderRadius: SKELETON_BORDER_RADIUS,
276
365
  height: TEXT_LINE_HEIGHT,
277
- style: styles4.textLine,
366
+ style: styles5.textLine,
278
367
  width: TEXT_LINE_SHORT_WIDTH
279
368
  }
280
369
  )
@@ -286,7 +375,7 @@ var PageSkeleton = ({
286
375
  backgroundColor: skeletonColor,
287
376
  borderRadius: CARD_BORDER_RADIUS,
288
377
  height: CARD_HEIGHT,
289
- style: styles4.card
378
+ style: styles5.card
290
379
  },
291
380
  index
292
381
  );
@@ -297,7 +386,7 @@ var PageSkeleton = ({
297
386
  accessibilityHint: t("pageSkeleton.loadingHint"),
298
387
  accessibilityLabel: t("pageSkeleton.loadingLabel"),
299
388
  accessibilityState: { busy: true },
300
- style: [styles4.container, { backgroundColor: colors.background }],
389
+ style: [styles5.container, { backgroundColor: colors.background }],
301
390
  testID: FEEDBACK_TEST_IDS.pageSkeleton,
302
391
  children: [
303
392
  showHeader ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -306,7 +395,7 @@ var PageSkeleton = ({
306
395
  backgroundColor: skeletonColor,
307
396
  borderRadius: SKELETON_BORDER_RADIUS,
308
397
  height: HEADER_HEIGHT,
309
- style: styles4.header,
398
+ style: styles5.header,
310
399
  width: HEADER_WIDTH
311
400
  }
312
401
  ) : null,
@@ -331,7 +420,7 @@ var AsyncSurface = ({
331
420
  return children;
332
421
  };
333
422
  var DIALOG_MAX_WIDTH = 400;
334
- var styles5 = reactNative.StyleSheet.create({
423
+ var styles6 = reactNative.StyleSheet.create({
335
424
  overlay: {
336
425
  flex: 1,
337
426
  backgroundColor: MODAL_OVERLAY_COLOR,
@@ -421,17 +510,17 @@ var ConfirmDialog = ({
421
510
  animationType: "fade",
422
511
  visible,
423
512
  onRequestClose: onCancel,
424
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles5.overlay, testID: FEEDBACK_TEST_IDS.confirmDialog, children: /* @__PURE__ */ jsxRuntime.jsxs(
513
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles6.overlay, testID: FEEDBACK_TEST_IDS.confirmDialog, children: /* @__PURE__ */ jsxRuntime.jsxs(
425
514
  reactNative.View,
426
515
  {
427
516
  accessibilityViewIsModal: true,
428
517
  "aria-label": title,
429
518
  role: "dialog",
430
- style: [styles5.dialog, colorStyles.dialog],
519
+ style: [styles6.dialog, colorStyles.dialog],
431
520
  children: [
432
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.title, colorStyles.title], children: title }),
433
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.message, colorStyles.message], children: message }),
434
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles5.buttonRow, children: [
521
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.title, colorStyles.title], children: title }),
522
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.message, colorStyles.message], children: message }),
523
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles6.buttonRow, children: [
435
524
  /* @__PURE__ */ jsxRuntime.jsx(
436
525
  reactNative.TouchableOpacity,
437
526
  {
@@ -439,13 +528,13 @@ var ConfirmDialog = ({
439
528
  accessibilityLabel: resolvedCancelLabel,
440
529
  accessibilityRole: "button",
441
530
  style: [
442
- styles5.button,
443
- styles5.cancelButton,
531
+ styles6.button,
532
+ styles6.cancelButton,
444
533
  colorStyles.cancelButton
445
534
  ],
446
535
  testID: FEEDBACK_TEST_IDS.cancelConfirmButton,
447
536
  onPress: onCancel,
448
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.buttonText, colorStyles.cancelButtonText], children: resolvedCancelLabel })
537
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.buttonText, colorStyles.cancelButtonText], children: resolvedCancelLabel })
449
538
  }
450
539
  ),
451
540
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -457,10 +546,10 @@ var ConfirmDialog = ({
457
546
  accessibilityState: { disabled: isConfirmDisabled },
458
547
  disabled: isConfirmDisabled,
459
548
  style: [
460
- styles5.button,
461
- styles5.confirmButton,
549
+ styles6.button,
550
+ styles6.confirmButton,
462
551
  colorStyles.confirmButton,
463
- isConfirmDisabled && styles5.disabledButton
552
+ isConfirmDisabled && styles6.disabledButton
464
553
  ],
465
554
  testID: FEEDBACK_TEST_IDS.confirmButton,
466
555
  onPress: onConfirm,
@@ -474,7 +563,7 @@ var ConfirmDialog = ({
474
563
  ) : /* @__PURE__ */ jsxRuntime.jsx(
475
564
  reactNative.Text,
476
565
  {
477
- style: [styles5.buttonText, colorStyles.confirmButtonText],
566
+ style: [styles6.buttonText, colorStyles.confirmButtonText],
478
567
  children: resolvedConfirmLabel
479
568
  }
480
569
  )
@@ -506,7 +595,7 @@ var C1_CONTROL_END = 159;
506
595
  var ZERO_WIDTH_START = 8203;
507
596
  var ZERO_WIDTH_END = 8207;
508
597
  var BYTE_ORDER_MARK = 65279;
509
- var styles6 = reactNative.StyleSheet.create({
598
+ var styles7 = reactNative.StyleSheet.create({
510
599
  container: {
511
600
  position: "absolute",
512
601
  top: reactNative.Platform.OS === "web" ? TOAST_TOP_WEB : TOAST_TOP_MOBILE,
@@ -571,9 +660,9 @@ var ToastItem = ({ message, onDone, colors, durationMs, fadeMs, testID }) => {
571
660
  {
572
661
  accessibilityLiveRegion: isError ? "assertive" : "polite",
573
662
  role: isError ? "alert" : "status",
574
- style: [styles6.toast, { backgroundColor, transform: [{ translateY }], opacity }],
663
+ style: [styles7.toast, { backgroundColor, transform: [{ translateY }], opacity }],
575
664
  testID,
576
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.text, { color: colors.text }], children: message.text })
665
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles7.text, { color: colors.text }], children: message.text })
577
666
  }
578
667
  );
579
668
  };
@@ -611,7 +700,7 @@ var ToastHost = ({
611
700
  }, []);
612
701
  react.useEffect(() => subscribe(push), [subscribe, push]);
613
702
  if (messages.length === 0) return null;
614
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles6.container, children: messages.map((m) => /* @__PURE__ */ jsxRuntime.jsx(
703
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles7.container, children: messages.map((m) => /* @__PURE__ */ jsxRuntime.jsx(
615
704
  ToastItem,
616
705
  {
617
706
  colors,
@@ -682,12 +771,12 @@ function getWarmingSnapshot() {
682
771
  }
683
772
  var OVERLAY_Z_INDEX = 1e5;
684
773
  var CARD_GAP = 12;
685
- var TITLE_FONT_SIZE = 20;
774
+ var TITLE_FONT_SIZE2 = 20;
686
775
  var SUBTITLE_FONT_SIZE = 15;
687
776
  var ATTEMPT_FONT_SIZE = 13;
688
777
  var CARD_PADDING = 24;
689
778
  var NO_ATTEMPT = 0;
690
- var styles7 = reactNative.StyleSheet.create({
779
+ var styles8 = reactNative.StyleSheet.create({
691
780
  overlay: {
692
781
  position: "absolute",
693
782
  top: 0,
@@ -706,7 +795,7 @@ var styles7 = reactNative.StyleSheet.create({
706
795
  maxWidth: 320
707
796
  },
708
797
  title: {
709
- fontSize: TITLE_FONT_SIZE,
798
+ fontSize: TITLE_FONT_SIZE2,
710
799
  fontWeight: "700",
711
800
  textAlign: "center"
712
801
  },
@@ -744,13 +833,13 @@ var WarmingOverlay = ({
744
833
  {
745
834
  accessibilityLabel: mergedLabels.accessibilityLabel,
746
835
  accessibilityRole: "alert",
747
- style: [styles7.overlay, { backgroundColor: colors.background }],
836
+ style: [styles8.overlay, { backgroundColor: colors.background }],
748
837
  testID: testIdPrefix,
749
- children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles7.card, children: [
838
+ children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles8.card, children: [
750
839
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.ActivityIndicator, { color: primary, size: "large" }),
751
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles7.title, { color: colors.text }], testID: `${testIdPrefix}-title`, children: mergedLabels.title }),
752
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles7.subtitle, { color: colors.textSecondary }], testID: `${testIdPrefix}-subtitle`, children: mergedLabels.subtitle }),
753
- showHint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles7.attempt, { color: colors.textSecondary }], testID: `${testIdPrefix}-attempt`, children: mergedLabels.attemptHint(snapshot2.attempt) }) : null
840
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.title, { color: colors.text }], testID: `${testIdPrefix}-title`, children: mergedLabels.title }),
841
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.subtitle, { color: colors.textSecondary }], testID: `${testIdPrefix}-subtitle`, children: mergedLabels.subtitle }),
842
+ showHint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.attempt, { color: colors.textSecondary }], testID: `${testIdPrefix}-attempt`, children: mergedLabels.attemptHint(snapshot2.attempt) }) : null
754
843
  ] })
755
844
  }
756
845
  );
@@ -784,8 +873,8 @@ function createToastBus() {
784
873
  }
785
874
  var CONTAINER_PADDING3 = 20;
786
875
  var CONTENT_MAX_WIDTH = 400;
787
- var TITLE_FONT_SIZE2 = 24;
788
- var TITLE_MARGIN_BOTTOM = 12;
876
+ var TITLE_FONT_SIZE3 = 24;
877
+ var TITLE_MARGIN_BOTTOM2 = 12;
789
878
  var DETAILS_PADDING = 12;
790
879
  var DETAILS_BORDER_RADIUS = 8;
791
880
  var DETAILS_BORDER_WIDTH = 1;
@@ -793,12 +882,12 @@ var DETAILS_MARGIN_VERTICAL = 16;
793
882
  var DETAILS_TITLE_FONT_SIZE = 14;
794
883
  var DETAILS_TITLE_MARGIN_BOTTOM = 4;
795
884
  var DETAILS_TEXT_FONT_SIZE = 12;
796
- var BUTTON_PADDING_H2 = 24;
797
- var BUTTON_PADDING_V2 = 12;
798
- var BUTTON_BORDER_RADIUS2 = 8;
799
- var BUTTON_MARGIN_TOP2 = 12;
800
- var BUTTON_FONT_SIZE2 = 16;
801
- var styles8 = reactNative.StyleSheet.create({
885
+ var BUTTON_PADDING_H3 = 24;
886
+ var BUTTON_PADDING_V3 = 12;
887
+ var BUTTON_BORDER_RADIUS3 = 8;
888
+ var BUTTON_MARGIN_TOP3 = 12;
889
+ var BUTTON_FONT_SIZE3 = 16;
890
+ var styles9 = reactNative.StyleSheet.create({
802
891
  container: {
803
892
  flex: 1,
804
893
  justifyContent: "center",
@@ -810,9 +899,9 @@ var styles8 = reactNative.StyleSheet.create({
810
899
  alignItems: "center"
811
900
  },
812
901
  title: {
813
- fontSize: TITLE_FONT_SIZE2,
902
+ fontSize: TITLE_FONT_SIZE3,
814
903
  fontWeight: "bold",
815
- marginBottom: TITLE_MARGIN_BOTTOM,
904
+ marginBottom: TITLE_MARGIN_BOTTOM2,
816
905
  textAlign: "center"
817
906
  },
818
907
  details: {
@@ -832,13 +921,13 @@ var styles8 = reactNative.StyleSheet.create({
832
921
  fontFamily: "monospace"
833
922
  },
834
923
  button: {
835
- paddingHorizontal: BUTTON_PADDING_H2,
836
- paddingVertical: BUTTON_PADDING_V2,
837
- borderRadius: BUTTON_BORDER_RADIUS2,
838
- marginTop: BUTTON_MARGIN_TOP2
924
+ paddingHorizontal: BUTTON_PADDING_H3,
925
+ paddingVertical: BUTTON_PADDING_V3,
926
+ borderRadius: BUTTON_BORDER_RADIUS3,
927
+ marginTop: BUTTON_MARGIN_TOP3
839
928
  },
840
929
  buttonText: {
841
- fontSize: BUTTON_FONT_SIZE2,
930
+ fontSize: BUTTON_FONT_SIZE3,
842
931
  fontWeight: "600"
843
932
  }
844
933
  });
@@ -866,10 +955,10 @@ var ErrorBoundaryFallback = ({
866
955
  accessibilityHint: labels.tryAgainHint,
867
956
  accessibilityLabel: labels.tryAgain,
868
957
  accessibilityRole: "button",
869
- style: [styles8.button, reloadIsPrimary ? secondaryFill : primaryFill],
958
+ style: [styles9.button, reloadIsPrimary ? secondaryFill : primaryFill],
870
959
  testID: `${testIDPrefix}-retry-button`,
871
960
  onPress: onRetry,
872
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.buttonText, reloadIsPrimary ? secondaryInk : primaryInk], children: labels.tryAgain })
961
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.buttonText, reloadIsPrimary ? secondaryInk : primaryInk], children: labels.tryAgain })
873
962
  }
874
963
  ) : null;
875
964
  const reloadButton = typeof onReload === "function" ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -878,10 +967,10 @@ var ErrorBoundaryFallback = ({
878
967
  accessibilityHint: labels.reloadHint,
879
968
  accessibilityLabel: labels.reload,
880
969
  accessibilityRole: "button",
881
- style: [styles8.button, reloadIsPrimary ? primaryFill : secondaryFill],
970
+ style: [styles9.button, reloadIsPrimary ? primaryFill : secondaryFill],
882
971
  testID: `${testIDPrefix}-reload-button`,
883
972
  onPress: onReload,
884
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.buttonText, reloadIsPrimary ? primaryInk : secondaryInk], children: labels.reload })
973
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.buttonText, reloadIsPrimary ? primaryInk : secondaryInk], children: labels.reload })
885
974
  }
886
975
  ) : null;
887
976
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -889,19 +978,19 @@ var ErrorBoundaryFallback = ({
889
978
  {
890
979
  accessibilityLiveRegion: "assertive",
891
980
  role: "alert",
892
- style: [styles8.container, { backgroundColor: theme.colors.background }],
981
+ style: [styles9.container, { backgroundColor: theme.colors.background }],
893
982
  testID: testIDPrefix,
894
- children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles8.content, children: [
895
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.title, { color: theme.colors.text }], children: labels.title }),
983
+ children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles9.content, children: [
984
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.title, { color: theme.colors.text }], children: labels.title }),
896
985
  /* @__PURE__ */ jsxRuntime.jsx(ErrorState, { message: labels.message, testID: `${testIDPrefix}-message` }),
897
986
  hasDetails ? /* @__PURE__ */ jsxRuntime.jsxs(
898
987
  reactNative.View,
899
988
  {
900
- style: [styles8.details, { backgroundColor: theme.colors.surface, borderColor: warningColor }],
989
+ style: [styles9.details, { backgroundColor: theme.colors.surface, borderColor: warningColor }],
901
990
  testID: `${testIDPrefix}-details`,
902
991
  children: [
903
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.detailsTitle, { color: warningColor }], children: labels.errorDetails }),
904
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.detailsText, { color: theme.colors.textSecondary }], children: error.message })
992
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.detailsTitle, { color: warningColor }], children: labels.errorDetails }),
993
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.detailsText, { color: theme.colors.textSecondary }], children: error.message })
905
994
  ]
906
995
  }
907
996
  ) : null,
@@ -914,7 +1003,7 @@ var ErrorBoundaryFallback = ({
914
1003
  var CONTAINER_PADDING4 = 20;
915
1004
  var MESSAGE_FONT_SIZE3 = 16;
916
1005
  var MESSAGE_MARGIN_TOP = 12;
917
- var styles9 = reactNative.StyleSheet.create({
1006
+ var styles10 = reactNative.StyleSheet.create({
918
1007
  container: {
919
1008
  flex: 1,
920
1009
  justifyContent: "center",
@@ -937,11 +1026,11 @@ var ErrorBoundaryRecovering = ({
937
1026
  {
938
1027
  accessibilityLiveRegion: "polite",
939
1028
  role: "status",
940
- style: [styles9.container, { backgroundColor: theme.colors.background }],
1029
+ style: [styles10.container, { backgroundColor: theme.colors.background }],
941
1030
  testID,
942
1031
  children: [
943
1032
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.ActivityIndicator, { color: theme.palette.primary["500"], size: "large" }),
944
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.message, { color: theme.colors.textSecondary }], children: message })
1033
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.message, { color: theme.colors.textSecondary }], children: message })
945
1034
  ]
946
1035
  }
947
1036
  );