@dloizides/ui-layout 1.29.0 → 1.30.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.d.mts CHANGED
@@ -320,8 +320,10 @@ interface ModalDropdownProps<T> {
320
320
  * control, so screen readers do not announce it.
321
321
  */
322
322
  showHamburger?: boolean;
323
+ /** Visible, non-focusable heading at the top of the open menu; it also names the menu. */
324
+ menuHeading?: string;
323
325
  }
324
- declare const ModalDropdown: <T extends string | number>({ testID, accessibilityLabel, accessibilityHint, value, options, onChange, variant, renderTrigger, optionTestID, menuMinWidth, showCaret, showHamburger, }: ModalDropdownProps<T>) => React.ReactElement;
326
+ declare const ModalDropdown: <T extends string | number>({ testID, accessibilityLabel, accessibilityHint, value, options, onChange, variant, renderTrigger, optionTestID, menuMinWidth, showCaret, showHamburger, menuHeading, }: ModalDropdownProps<T>) => React.ReactElement;
325
327
 
326
328
  /**
327
329
  * ModalShell — a slide-up full-screen modal with a themed header (title + close button)
package/dist/index.d.ts CHANGED
@@ -320,8 +320,10 @@ interface ModalDropdownProps<T> {
320
320
  * control, so screen readers do not announce it.
321
321
  */
322
322
  showHamburger?: boolean;
323
+ /** Visible, non-focusable heading at the top of the open menu; it also names the menu. */
324
+ menuHeading?: string;
323
325
  }
324
- declare const ModalDropdown: <T extends string | number>({ testID, accessibilityLabel, accessibilityHint, value, options, onChange, variant, renderTrigger, optionTestID, menuMinWidth, showCaret, showHamburger, }: ModalDropdownProps<T>) => React.ReactElement;
326
+ declare const ModalDropdown: <T extends string | number>({ testID, accessibilityLabel, accessibilityHint, value, options, onChange, variant, renderTrigger, optionTestID, menuMinWidth, showCaret, showHamburger, menuHeading, }: ModalDropdownProps<T>) => React.ReactElement;
325
327
 
326
328
  /**
327
329
  * ModalShell — a slide-up full-screen modal with a themed header (title + close button)
package/dist/index.js CHANGED
@@ -386,12 +386,40 @@ function isAnchorHidden(rect, clip, minVisiblePx) {
386
386
  const visibleWidth = Math.min(rect.left + rect.width, clip.right) - Math.max(rect.left, clip.left);
387
387
  return visibleHeight < minVisiblePx || visibleWidth < minVisiblePx;
388
388
  }
389
+ var HEADING_FONT_SIZE = 12;
390
+ var HEADING_FONT_WEIGHT = "600";
391
+ var HEADING_PADDING_H = 16;
392
+ var HEADING_PADDING_TOP = 8;
393
+ var HEADING_PADDING_BOTTOM = 4;
394
+ var HEADING_LETTER_SPACING = 0.5;
395
+ var styles5 = reactNative.StyleSheet.create({
396
+ heading: {
397
+ fontSize: HEADING_FONT_SIZE,
398
+ fontWeight: HEADING_FONT_WEIGHT,
399
+ letterSpacing: HEADING_LETTER_SPACING,
400
+ paddingHorizontal: HEADING_PADDING_H,
401
+ paddingTop: HEADING_PADDING_TOP,
402
+ paddingBottom: HEADING_PADDING_BOTTOM
403
+ }
404
+ });
405
+ var MenuHeading = ({ testID, text }) => {
406
+ const { theme } = uiFeedback.useUi();
407
+ return /* @__PURE__ */ jsxRuntime.jsx(
408
+ reactNative.Text,
409
+ {
410
+ accessibilityRole: "header",
411
+ style: [styles5.heading, { color: theme.colors.textSecondary }],
412
+ testID: `${testID}-menu-heading`,
413
+ children: text
414
+ }
415
+ );
416
+ };
389
417
  var OPTION_BORDER_RADIUS = 4;
390
418
  var BODY_FONT_SIZE = 14;
391
419
  var SELECTED_FONT_WEIGHT = "600";
392
420
  var OPTION_PADDING_H = 16;
393
421
  var OPTION_PADDING_V = 12;
394
- var styles5 = reactNative.StyleSheet.create({
422
+ var styles6 = reactNative.StyleSheet.create({
395
423
  option: {
396
424
  paddingHorizontal: OPTION_PADDING_H,
397
425
  paddingVertical: OPTION_PADDING_V,
@@ -415,8 +443,8 @@ var OptionRow = ({
415
443
  onSelect();
416
444
  }, [onSelect]);
417
445
  const isActive = isSelected || isHighlighted;
418
- const rowStyle = [styles5.option, isActive ? { backgroundColor: colors.surfaceElevated } : null];
419
- const textStyle = [styles5.optionText, { color: colors.text }, isSelected ? styles5.selectedText : null];
446
+ const rowStyle = [styles6.option, isActive ? { backgroundColor: colors.surfaceElevated } : null];
447
+ const textStyle = [styles6.optionText, { color: colors.text }, isSelected ? styles6.selectedText : null];
420
448
  return /* @__PURE__ */ jsxRuntime.jsx(
421
449
  reactNative.TouchableOpacity,
422
450
  {
@@ -585,7 +613,7 @@ var IS_WEB2 = reactNative.Platform.OS === "web";
585
613
  var BORDER_RADIUS2 = 8;
586
614
  var BORDER_WIDTH3 = 1;
587
615
  var MENU_PADDING2 = 4;
588
- var styles6 = reactNative.StyleSheet.create({
616
+ var styles7 = reactNative.StyleSheet.create({
589
617
  /** Native (in-tree) popover — anchored absolutely just under the trigger. */
590
618
  popover: {
591
619
  position: "absolute",
@@ -620,6 +648,7 @@ var InlineMenu = ({
620
648
  isOpen,
621
649
  optionTestID,
622
650
  menuMinWidth = 0,
651
+ menuHeading,
623
652
  animatedStyle,
624
653
  onSelect,
625
654
  onClose
@@ -670,7 +699,7 @@ var InlineMenu = ({
670
699
  themed
671
700
  ];
672
701
  }
673
- return [styles6.popover, { minWidth: menuMinWidth }, themed];
702
+ return [styles7.popover, { minWidth: menuMinWidth }, themed];
674
703
  }, [colors.border, colors.surface, menuMinWidth, rect]);
675
704
  const menu = /* @__PURE__ */ jsxRuntime.jsx(
676
705
  reactNative.View,
@@ -678,25 +707,28 @@ var InlineMenu = ({
678
707
  ref: menuRef,
679
708
  accessibilityRole: "menu",
680
709
  "aria-hidden": !isOpen,
681
- "aria-label": accessibilityLabel,
710
+ "aria-label": menuHeading ?? accessibilityLabel,
682
711
  style: popoverStyle,
683
712
  testID: `${testID}-menu`,
684
- children: /* @__PURE__ */ jsxRuntime.jsx(
713
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
685
714
  reactNative.Animated.View,
686
715
  {
687
716
  pointerEvents: isOpen ? "auto" : "none",
688
- style: [styles6.animated, animatedStyle, isOpen ? null : styles6.inert],
689
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { style: styles6.scroll, keyboardShouldPersistTaps: "handled", children: options.map((option, index) => /* @__PURE__ */ jsxRuntime.jsx(
690
- OptionRow,
691
- {
692
- isHighlighted: index === highlightedIndex,
693
- isSelected: option.value === value,
694
- label: option.label,
695
- testID: optionTestID !== void 0 ? optionTestID(option.value) : `${testID}-option-${String(option.value)}`,
696
- onSelect: () => handleSelect(option.value)
697
- },
698
- String(option.value)
699
- )) })
717
+ style: [styles7.animated, animatedStyle, isOpen ? null : styles7.inert],
718
+ children: [
719
+ menuHeading !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(MenuHeading, { testID, text: menuHeading }) : null,
720
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { style: styles7.scroll, keyboardShouldPersistTaps: "handled", children: options.map((option, index) => /* @__PURE__ */ jsxRuntime.jsx(
721
+ OptionRow,
722
+ {
723
+ isHighlighted: index === highlightedIndex,
724
+ isSelected: option.value === value,
725
+ label: option.label,
726
+ testID: optionTestID !== void 0 ? optionTestID(option.value) : `${testID}-option-${String(option.value)}`,
727
+ onSelect: () => handleSelect(option.value)
728
+ },
729
+ String(option.value)
730
+ )) })
731
+ ]
700
732
  }
701
733
  )
702
734
  }
@@ -739,7 +771,7 @@ var CARET_OPEN_ROTATION = "180deg";
739
771
  var CARET_CLOSED_ROTATION = "0deg";
740
772
  var POPOVER_ENTER_SCALE = 0.96;
741
773
  var POPOVER_MOTION_MS = 120;
742
- var styles7 = reactNative.StyleSheet.create({
774
+ var styles8 = reactNative.StyleSheet.create({
743
775
  anchor: { position: "relative" },
744
776
  container: {
745
777
  borderWidth: BORDER_WIDTH4,
@@ -801,7 +833,8 @@ var ModalDropdown = ({
801
833
  optionTestID,
802
834
  menuMinWidth,
803
835
  showCaret = false,
804
- showHamburger = false
836
+ showHamburger = false,
837
+ menuHeading
805
838
  }) => {
806
839
  const { theme, t } = uiFeedback.useUi();
807
840
  const { colors } = theme;
@@ -849,19 +882,19 @@ var ModalDropdown = ({
849
882
  const isCaret = showCaret && !isHamburger;
850
883
  const containerStyle = React10.useMemo(
851
884
  () => renderTrigger !== void 0 ? void 0 : [
852
- styles7.container,
853
- isHamburger ? styles7.containerHamburger : isCaret ? styles7.containerMenu : null,
885
+ styles8.container,
886
+ isHamburger ? styles8.containerHamburger : isCaret ? styles8.containerMenu : null,
854
887
  { borderColor: colors.border, backgroundColor: colors.surface }
855
888
  ],
856
889
  [colors.border, colors.surface, renderTrigger, isHamburger, isCaret]
857
890
  );
858
891
  const hamburgerStyle = React10.useMemo(
859
- () => [styles7.hamburger, { color: colors.textSecondary }],
892
+ () => [styles8.hamburger, { color: colors.textSecondary }],
860
893
  [colors.textSecondary]
861
894
  );
862
895
  const caretStyle = React10.useMemo(
863
896
  () => [
864
- styles7.caret,
897
+ styles8.caret,
865
898
  { color: colors.textSecondary, transform: [{ rotate: isOpen ? CARET_OPEN_ROTATION : CARET_CLOSED_ROTATION }] }
866
899
  ],
867
900
  [colors.textSecondary, isOpen]
@@ -871,11 +904,11 @@ var ModalDropdown = ({
871
904
  [optionTestID, testID]
872
905
  );
873
906
  const anchorStyle = React10.useMemo(
874
- () => [styles7.anchor, buildAnchorStackStyle(isMenu && isOpen)],
907
+ () => [styles8.anchor, buildAnchorStackStyle(isMenu && isOpen)],
875
908
  [isMenu, isOpen]
876
909
  );
877
910
  const modalContentStyle = React10.useMemo(
878
- () => [styles7.modalContent, { backgroundColor: colors.surface }],
911
+ () => [styles8.modalContent, { backgroundColor: colors.surface }],
879
912
  [colors.surface]
880
913
  );
881
914
  const renderModalOption = React10.useCallback(
@@ -895,11 +928,11 @@ var ModalDropdown = ({
895
928
  /* @__PURE__ */ jsxRuntime.jsxs(reactNative.TouchableOpacity, { ...a11yProps, style: containerStyle, onPress: handleToggle, children: [
896
929
  renderTrigger !== void 0 ? renderTrigger({ label: selectedLabel, isOpen }) : isHamburger ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
897
930
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: hamburgerStyle, children: HAMBURGER_GLYPH }),
898
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles7.selectedText, styles7.selectedTextMenu, { color: colors.text }], children: selectedLabel })
931
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles8.selectedText, styles8.selectedTextMenu, { color: colors.text }], children: selectedLabel })
899
932
  ] }) : isCaret ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
900
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles7.selectedText, styles7.selectedTextMenu, { color: colors.text }], children: selectedLabel }),
933
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles8.selectedText, styles8.selectedTextMenu, { color: colors.text }], children: selectedLabel }),
901
934
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: caretStyle, children: CARET_GLYPH })
902
- ] }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles7.selectedText, { color: colors.text }], children: selectedLabel }),
935
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.selectedText, { color: colors.text }], children: selectedLabel }),
903
936
  hintNode
904
937
  ] }),
905
938
  isMenu && menuAnim.mounted ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -909,6 +942,7 @@ var ModalDropdown = ({
909
942
  animatedStyle: menuAnim.style,
910
943
  containerRef: anchorRef,
911
944
  isOpen,
945
+ menuHeading,
912
946
  menuMinWidth,
913
947
  optionTestID: optionTestIDFor,
914
948
  options,
@@ -918,7 +952,7 @@ var ModalDropdown = ({
918
952
  onSelect: handleSelect
919
953
  }
920
954
  ) : null,
921
- !isMenu ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, visible: modalAnim.mounted, onRequestClose: handleClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles7.modalOverlay, children: [
955
+ !isMenu ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, visible: modalAnim.mounted, onRequestClose: handleClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles8.modalOverlay, children: [
922
956
  /* @__PURE__ */ jsxRuntime.jsx(
923
957
  reactNative.TouchableOpacity,
924
958
  {
@@ -937,10 +971,18 @@ var ModalDropdown = ({
937
971
  {
938
972
  ref: dialogRef,
939
973
  accessibilityViewIsModal: true,
940
- "aria-label": accessibilityLabel,
974
+ "aria-label": menuHeading ?? accessibilityLabel,
941
975
  role: "dialog",
942
976
  style: [modalContentStyle, modalAnim.style],
943
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.FlatList, { data: [...options], keyExtractor, renderItem: renderModalOption })
977
+ children: /* @__PURE__ */ jsxRuntime.jsx(
978
+ reactNative.FlatList,
979
+ {
980
+ data: [...options],
981
+ keyExtractor,
982
+ ListHeaderComponent: menuHeading !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(MenuHeading, { testID, text: menuHeading }) : null,
983
+ renderItem: renderModalOption
984
+ }
985
+ )
944
986
  }
945
987
  )
946
988
  ] }) }) : null
@@ -1003,7 +1045,7 @@ var ROW_PAD_V = 8;
1003
1045
  var PANEL_PAD_TOP = 16;
1004
1046
  var BORDER_WIDTH5 = 1;
1005
1047
  var TEXT_ON_PRIMARY = "#ffffff";
1006
- var styles8 = reactNative.StyleSheet.create({
1048
+ var styles9 = reactNative.StyleSheet.create({
1007
1049
  root: {
1008
1050
  width: "100%"
1009
1051
  },
@@ -1057,7 +1099,7 @@ var WideTabStrip = ({
1057
1099
  textSecondary,
1058
1100
  surfaceElevated,
1059
1101
  stripStyle
1060
- }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles8.stripOuter, { borderBottomColor: borderColor }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [styles8.strip, stripStyle], children: tabs.map((tab) => {
1102
+ }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles9.stripOuter, { borderBottomColor: borderColor }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [styles9.strip, stripStyle], children: tabs.map((tab) => {
1061
1103
  const selected = tab.key === activeKey;
1062
1104
  const textColor = selected ? TEXT_ON_PRIMARY : textSecondary;
1063
1105
  const pillColor = selected ? primaryColor : surfaceElevated;
@@ -1071,10 +1113,10 @@ var WideTabStrip = ({
1071
1113
  accessibilityLabel: tab.accessibilityLabel ?? tab.label,
1072
1114
  accessibilityHint: tab.accessibilityHint,
1073
1115
  onPress: () => onChange(tab.key),
1074
- style: [styles8.pill, { backgroundColor: pillColor }],
1116
+ style: [styles9.pill, { backgroundColor: pillColor }],
1075
1117
  testID: tab.testID,
1076
1118
  ...ariaTabProps(selected, panelId, tabId),
1077
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.pillText, { color: textColor }], children: tab.label })
1119
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.pillText, { color: textColor }], children: tab.label })
1078
1120
  },
1079
1121
  tab.key
1080
1122
  );
@@ -1099,7 +1141,7 @@ var Tabs = ({
1099
1141
  const activePanelId = `${idPrefix}-panel-${activeKey}`;
1100
1142
  const activeTabId = `${idPrefix}-tab-${activeKey}`;
1101
1143
  const panelAria = { "aria-labelledby": activeTabId, id: activePanelId };
1102
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles8.root, style], testID, children: [
1144
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles9.root, style], testID, children: [
1103
1145
  collapsed ? /* @__PURE__ */ jsxRuntime.jsx(
1104
1146
  TabsMenu,
1105
1147
  {
@@ -1126,7 +1168,7 @@ var Tabs = ({
1126
1168
  onChange
1127
1169
  }
1128
1170
  ),
1129
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "none", style: [styles8.panel, panelStyle], ...panelAria, children })
1171
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "none", style: [styles9.panel, panelStyle], ...panelAria, children })
1130
1172
  ] });
1131
1173
  };
1132
1174
  var PROMPT_PADDING = 20;
@@ -1141,7 +1183,7 @@ var DISMISS_FONT_SIZE = 13;
1141
1183
  var TITLE_MARGIN_BOTTOM = 8;
1142
1184
  var MESSAGE_MARGIN_BOTTOM = 16;
1143
1185
  var CTA_MARGIN_BOTTOM = 8;
1144
- var styles9 = reactNative.StyleSheet.create({
1186
+ var styles10 = reactNative.StyleSheet.create({
1145
1187
  container: {
1146
1188
  padding: PROMPT_PADDING,
1147
1189
  borderRadius: PROMPT_BORDER_RADIUS,
@@ -1176,21 +1218,21 @@ var UpgradePrompt = ({
1176
1218
  return /* @__PURE__ */ jsxRuntime.jsxs(
1177
1219
  reactNative.View,
1178
1220
  {
1179
- style: [styles9.container, { borderColor: primary, backgroundColor: colors.surface }],
1221
+ style: [styles10.container, { borderColor: primary, backgroundColor: colors.surface }],
1180
1222
  testID: LAYOUT_TEST_IDS.upgradePrompt,
1181
1223
  children: [
1182
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.title, { color: colors.text }], children: t(LAYOUT_I18N.upgradePromptTitle) }),
1183
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.message, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptMessage, requiredTier, currentTier) }),
1224
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.title, { color: colors.text }], children: t(LAYOUT_I18N.upgradePromptTitle) }),
1225
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.message, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptMessage, requiredTier, currentTier) }),
1184
1226
  /* @__PURE__ */ jsxRuntime.jsx(
1185
1227
  reactNative.TouchableOpacity,
1186
1228
  {
1187
1229
  accessibilityHint: t(LAYOUT_I18N.upgradePromptCtaHint),
1188
1230
  accessibilityLabel: t(LAYOUT_I18N.upgradePromptCta),
1189
1231
  accessibilityRole: "button",
1190
- style: [styles9.cta, { backgroundColor: primary }],
1232
+ style: [styles10.cta, { backgroundColor: primary }],
1191
1233
  testID: LAYOUT_TEST_IDS.upgradePromptCta,
1192
1234
  onPress: handleUpgradePress,
1193
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.ctaText, { color: colors.surface }], children: t(LAYOUT_I18N.upgradePromptCta) })
1235
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.ctaText, { color: colors.surface }], children: t(LAYOUT_I18N.upgradePromptCta) })
1194
1236
  }
1195
1237
  ),
1196
1238
  onDismiss ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -1199,10 +1241,10 @@ var UpgradePrompt = ({
1199
1241
  accessibilityHint: t(LAYOUT_I18N.upgradePromptDismissHint),
1200
1242
  accessibilityLabel: t(LAYOUT_I18N.upgradePromptDismiss),
1201
1243
  accessibilityRole: "button",
1202
- style: styles9.dismiss,
1244
+ style: styles10.dismiss,
1203
1245
  testID: LAYOUT_TEST_IDS.upgradePromptDismiss,
1204
1246
  onPress: onDismiss,
1205
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.dismissText, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptDismiss) })
1247
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles10.dismissText, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptDismiss) })
1206
1248
  }
1207
1249
  ) : null
1208
1250
  ]
@@ -1211,7 +1253,7 @@ var UpgradePrompt = ({
1211
1253
  };
1212
1254
  var CLOSE_ICON_SIZE = 18;
1213
1255
  var PANEL_ENTER_SCALE = 0.96;
1214
- var styles10 = reactNative.StyleSheet.create({
1256
+ var styles11 = reactNative.StyleSheet.create({
1215
1257
  animatedFill: { flex: 1 },
1216
1258
  container: {
1217
1259
  flex: 1,
@@ -1238,7 +1280,7 @@ var ModalShell = ({
1238
1280
  const { theme, t } = uiFeedback.useUi();
1239
1281
  const { style: sheetStyle, mounted } = uiMotion.useEnterExit({ visible, fromScale: PANEL_ENTER_SCALE });
1240
1282
  const containerStyle = React10__default.default.useMemo(
1241
- () => [styles10.container, { backgroundColor: theme.colors.background }, contentStyle],
1283
+ () => [styles11.container, { backgroundColor: theme.colors.background }, contentStyle],
1242
1284
  [theme.colors.background, contentStyle]
1243
1285
  );
1244
1286
  const closeA11yLabel = t(LAYOUT_I18N.close);
@@ -1250,7 +1292,7 @@ var ModalShell = ({
1250
1292
  testID: LAYOUT_TEST_IDS.modalShell,
1251
1293
  visible: mounted,
1252
1294
  onRequestClose: onCancel,
1253
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { style: [styles10.animatedFill, sheetStyle], children: /* @__PURE__ */ jsxRuntime.jsxs(
1295
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { style: [styles11.animatedFill, sheetStyle], children: /* @__PURE__ */ jsxRuntime.jsxs(
1254
1296
  reactNative.ScrollView,
1255
1297
  {
1256
1298
  accessibilityViewIsModal: true,
@@ -1258,7 +1300,7 @@ var ModalShell = ({
1258
1300
  role: "dialog",
1259
1301
  style: containerStyle,
1260
1302
  children: [
1261
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles10.headerRow, children: [
1303
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles11.headerRow, children: [
1262
1304
  /* @__PURE__ */ jsxRuntime.jsx(Heading, { children: title ?? t(LAYOUT_I18N.closeHeading) }),
1263
1305
  showClose ? /* @__PURE__ */ jsxRuntime.jsx(
1264
1306
  reactNative.TouchableOpacity,
@@ -1266,7 +1308,7 @@ var ModalShell = ({
1266
1308
  accessibilityHint: t(LAYOUT_I18N.closeDialogHint),
1267
1309
  accessibilityLabel: closeA11yLabel,
1268
1310
  accessibilityRole: "button",
1269
- style: styles10.closeButton,
1311
+ style: styles11.closeButton,
1270
1312
  testID: LAYOUT_TEST_IDS.modalShellClose,
1271
1313
  onPress: onCancel,
1272
1314
  children: /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color: theme.colors.textSecondary, name: "close", size: CLOSE_ICON_SIZE })
@@ -1312,7 +1354,7 @@ var HEADER_MARGIN = 12;
1312
1354
  var DIALOG_MAX_HEIGHT = "90%";
1313
1355
  var PANEL_ENTER_SCALE2 = 0.96;
1314
1356
  var SIZE_MAX_WIDTH = { sm: 360, md: 480, lg: 640 };
1315
- var styles11 = reactNative.StyleSheet.create({
1357
+ var styles12 = reactNative.StyleSheet.create({
1316
1358
  overlay: {
1317
1359
  flex: 1,
1318
1360
  justifyContent: "center",
@@ -1364,15 +1406,15 @@ var Modal3 = ({
1364
1406
  const accessibleName = accessibilityLabel ?? title ?? t(LAYOUT_I18N.dialog);
1365
1407
  const closeLabel = t(LAYOUT_I18N.dialogClose);
1366
1408
  const dialogStyle = React10.useMemo(
1367
- () => [styles11.dialog, { backgroundColor: theme.colors.surface, maxWidth: SIZE_MAX_WIDTH[size] }],
1409
+ () => [styles12.dialog, { backgroundColor: theme.colors.surface, maxWidth: SIZE_MAX_WIDTH[size] }],
1368
1410
  [theme.colors.surface, size]
1369
1411
  );
1370
1412
  const hasHeader = title !== void 0 || showClose;
1371
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, visible: mounted, onRequestClose: onClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles11.overlay, children: [
1413
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, visible: mounted, onRequestClose: onClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles12.overlay, children: [
1372
1414
  /* @__PURE__ */ jsxRuntime.jsx(
1373
1415
  reactNative.Animated.View,
1374
1416
  {
1375
- style: [reactNative.StyleSheet.absoluteFill, styles11.scrim, { opacity: backdrop.style.opacity }]
1417
+ style: [reactNative.StyleSheet.absoluteFill, styles12.scrim, { opacity: backdrop.style.opacity }]
1376
1418
  }
1377
1419
  ),
1378
1420
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -1398,8 +1440,8 @@ var Modal3 = ({
1398
1440
  style: [dialogStyle, panel.style],
1399
1441
  testID,
1400
1442
  children: [
1401
- hasHeader ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles11.headerRow, children: [
1402
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles11.titleWrap, children: title !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(Heading, { children: title }) : null }),
1443
+ hasHeader ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles12.headerRow, children: [
1444
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles12.titleWrap, children: title !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(Heading, { children: title }) : null }),
1403
1445
  showClose ? /* @__PURE__ */ jsxRuntime.jsx(
1404
1446
  uiButtons.IconButton,
1405
1447
  {
@@ -1416,7 +1458,7 @@ var Modal3 = ({
1416
1458
  ) : null
1417
1459
  ] }) : null,
1418
1460
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { children }),
1419
- footer !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles11.footer, children: footer }) : null
1461
+ footer !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles12.footer, children: footer }) : null
1420
1462
  ]
1421
1463
  }
1422
1464
  )
@@ -1425,7 +1467,7 @@ var Modal3 = ({
1425
1467
  var MESSAGE_FONT_SIZE2 = 14;
1426
1468
  var MESSAGE_LINE_HEIGHT = 20;
1427
1469
  var BUTTON_GAP = 12;
1428
- var styles12 = reactNative.StyleSheet.create({
1470
+ var styles13 = reactNative.StyleSheet.create({
1429
1471
  message: { fontSize: MESSAGE_FONT_SIZE2, lineHeight: MESSAGE_LINE_HEIGHT },
1430
1472
  footer: { flexDirection: "row", justifyContent: "flex-end", columnGap: BUTTON_GAP }
1431
1473
  });
@@ -1444,7 +1486,7 @@ var ConfirmDialog = ({
1444
1486
  const { theme, t } = uiFeedback.useUi();
1445
1487
  const resolvedConfirm = confirmLabel ?? t(LAYOUT_I18N.confirm);
1446
1488
  const resolvedCancel = cancelLabel ?? t(LAYOUT_I18N.cancel);
1447
- const footer = /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles12.footer, children: [
1489
+ const footer = /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles13.footer, children: [
1448
1490
  /* @__PURE__ */ jsxRuntime.jsx(
1449
1491
  uiButtons.Button,
1450
1492
  {
@@ -1480,7 +1522,7 @@ var ConfirmDialog = ({
1480
1522
  title,
1481
1523
  visible,
1482
1524
  onClose: onCancel,
1483
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.message, { color: theme.colors.text }], testID: `${testID}-message`, children: message })
1525
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.message, { color: theme.colors.text }], testID: `${testID}-message`, children: message })
1484
1526
  }
1485
1527
  );
1486
1528
  };
@@ -1493,7 +1535,7 @@ function useAccordionContext() {
1493
1535
  return value;
1494
1536
  }
1495
1537
  var BOXED_GAP = 12;
1496
- var styles13 = reactNative.StyleSheet.create({
1538
+ var styles14 = reactNative.StyleSheet.create({
1497
1539
  container: { alignSelf: "stretch" },
1498
1540
  boxed: { gap: BOXED_GAP }
1499
1541
  });
@@ -1550,7 +1592,7 @@ var Accordion = ({
1550
1592
  [openSet, toggle, allowMultiple, variant]
1551
1593
  );
1552
1594
  const containerStyle = React10.useMemo(() => {
1553
- const base = variant === "boxed" ? [styles13.container, styles13.boxed] : [styles13.container];
1595
+ const base = variant === "boxed" ? [styles14.container, styles14.boxed] : [styles14.container];
1554
1596
  if (style === void 0) return base;
1555
1597
  return [...base, ...Array.isArray(style) ? style : [style]];
1556
1598
  }, [style, variant]);
@@ -1582,7 +1624,7 @@ var BOX_TITLE_FONT_SIZE = 14;
1582
1624
  var BOX_MARKER_FONT_SIZE = 13;
1583
1625
  var BOX_MARKER_GAP = 6;
1584
1626
  var BOX_MARKER = "\u25B8";
1585
- var styles14 = reactNative.StyleSheet.create({
1627
+ var styles15 = reactNative.StyleSheet.create({
1586
1628
  item: { borderTopWidth: reactNative.StyleSheet.hairlineWidth },
1587
1629
  boxItem: { borderWidth: 1, borderRadius: BOX_BORDER_RADIUS, paddingHorizontal: BOX_PADDING_H },
1588
1630
  header: {
@@ -1658,19 +1700,19 @@ var AccordionItem = ({
1658
1700
  );
1659
1701
  const keyboardProps = reactNative.Platform.OS === "web" ? { onKeyDown: handleKeyDown2 } : {};
1660
1702
  const itemStyle = React10.useMemo(
1661
- () => boxed ? [styles14.boxItem, { borderColor: colors.border }] : [styles14.item, { borderTopColor: colors.border }],
1703
+ () => boxed ? [styles15.boxItem, { borderColor: colors.border }] : [styles15.item, { borderTopColor: colors.border }],
1662
1704
  [boxed, colors.border]
1663
1705
  );
1664
1706
  const headerStyle = React10.useMemo(
1665
1707
  () => [
1666
- styles14.header,
1667
- ...boxed ? [styles14.boxHeader] : [],
1708
+ styles15.header,
1709
+ ...boxed ? [styles15.boxHeader] : [],
1668
1710
  { opacity: disabled ? DISABLED_OPACITY : FULL_OPACITY }
1669
1711
  ],
1670
1712
  [boxed, disabled]
1671
1713
  );
1672
1714
  const resolvedLabel = accessibilityLabel ?? (typeof title === "string" ? title : void 0);
1673
- const titleNode = typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [boxed ? styles14.boxTitle : styles14.title, { color: boxed ? colors.textSecondary : colors.text }], children: title }) : title;
1715
+ const titleNode = typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [boxed ? styles15.boxTitle : styles15.title, { color: boxed ? colors.textSecondary : colors.text }], children: title }) : title;
1674
1716
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: itemStyle, children: [
1675
1717
  /* @__PURE__ */ jsxRuntime.jsxs(
1676
1718
  reactNative.Pressable,
@@ -1687,7 +1729,7 @@ var AccordionItem = ({
1687
1729
  onPress: handlePress,
1688
1730
  ...keyboardProps,
1689
1731
  children: [
1690
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles14.headerLeft, boxed ? styles14.headerLeftRow : null], children: [
1732
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles15.headerLeft, boxed ? styles15.headerLeftRow : null], children: [
1691
1733
  boxed ? (
1692
1734
  // Decorative — the open/closed state is already conveyed by aria-expanded on the header.
1693
1735
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -1696,15 +1738,15 @@ var AccordionItem = ({
1696
1738
  accessibilityElementsHidden: true,
1697
1739
  "aria-hidden": true,
1698
1740
  importantForAccessibility: "no-hide-descendants",
1699
- style: [styles14.marker, { transform: [{ rotate }] }],
1741
+ style: [styles15.marker, { transform: [{ rotate }] }],
1700
1742
  testID: chevronTestID,
1701
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.markerText, { color: colors.textSecondary }], children: BOX_MARKER })
1743
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles15.markerText, { color: colors.textSecondary }], children: BOX_MARKER })
1702
1744
  }
1703
1745
  )
1704
1746
  ) : null,
1705
1747
  titleNode
1706
1748
  ] }),
1707
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles14.headerRight, children: [
1749
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles15.headerRight, children: [
1708
1750
  right,
1709
1751
  boxed ? null : /* @__PURE__ */ jsxRuntime.jsx(
1710
1752
  reactNative.Animated.View,
@@ -1712,7 +1754,7 @@ var AccordionItem = ({
1712
1754
  accessibilityElementsHidden: true,
1713
1755
  "aria-hidden": true,
1714
1756
  importantForAccessibility: "no-hide-descendants",
1715
- style: [styles14.chevron, { transform: [{ rotate }] }],
1757
+ style: [styles15.chevron, { transform: [{ rotate }] }],
1716
1758
  children: /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color: colors.textSecondary, name: "chevronDown", size: CHEVRON_SIZE, testID: chevronTestID })
1717
1759
  }
1718
1760
  )
@@ -1726,7 +1768,7 @@ var AccordionItem = ({
1726
1768
  accessibilityLabel: resolvedLabel,
1727
1769
  nativeID: bodyTestID,
1728
1770
  role: ROLE_REGION,
1729
- style: boxed ? styles14.boxBody : styles14.body,
1771
+ style: boxed ? styles15.boxBody : styles15.body,
1730
1772
  testID: bodyTestID,
1731
1773
  children
1732
1774
  }
@@ -1789,7 +1831,7 @@ function useAvailableWidth() {
1789
1831
  var AVG_CHAR_WIDTH_RATIO = 0.58;
1790
1832
  var DEFAULT_FONT_SIZE2 = 13;
1791
1833
  var UNMEASURED2 = 0;
1792
- var styles15 = reactNative.StyleSheet.create({
1834
+ var styles16 = reactNative.StyleSheet.create({
1793
1835
  base: { fontSize: DEFAULT_FONT_SIZE2 },
1794
1836
  /** `minWidth: 0` lets the text shrink inside a flex row instead of forcing the row wider. */
1795
1837
  fill: { flexShrink: 1, minWidth: 0 }
@@ -1820,7 +1862,7 @@ var TruncatedText = ({
1820
1862
  [value, measureRef]
1821
1863
  );
1822
1864
  const flatStyle = React10.useMemo(
1823
- () => reactNative.StyleSheet.flatten([styles15.base, style]),
1865
+ () => reactNative.StyleSheet.flatten([styles16.base, style]),
1824
1866
  [style]
1825
1867
  );
1826
1868
  const fontSize = flatStyle.fontSize ?? DEFAULT_FONT_SIZE2;
@@ -1835,7 +1877,7 @@ var TruncatedText = ({
1835
1877
  ref: attachRef,
1836
1878
  onLayout,
1837
1879
  numberOfLines: 1,
1838
- style: [styles15.base, styles15.fill, style],
1880
+ style: [styles16.base, styles16.fill, style],
1839
1881
  testID,
1840
1882
  accessibilityRole: onPress !== void 0 || href !== void 0 ? "link" : "text",
1841
1883
  accessibilityLabel,
@@ -1938,7 +1980,7 @@ var LABEL_LETTER_SPACING = 0.4;
1938
1980
  var ACTION_PADDING_H = 6;
1939
1981
  var ACTION_PADDING_V = 2;
1940
1982
  var ACTION_RADIUS = 6;
1941
- var styles16 = reactNative.StyleSheet.create({
1983
+ var styles17 = reactNative.StyleSheet.create({
1942
1984
  cell: { gap: CELL_GAP },
1943
1985
  label: {
1944
1986
  fontSize: LABEL_FONT_SIZE,
@@ -2003,14 +2045,14 @@ var CopyableId = ({
2003
2045
  const { colors } = theme;
2004
2046
  const { status, copy } = useCopyToClipboard(value, writer);
2005
2047
  const action = useActionState(status);
2006
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles16.cell, style], testID, children: [
2007
- label !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.label, { color: colors.textSecondary }], children: label }),
2008
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.row, children: [
2009
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles16.valueWrap, children: /* @__PURE__ */ jsxRuntime.jsx(
2048
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles17.cell, style], testID, children: [
2049
+ label !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.label, { color: colors.textSecondary }], children: label }),
2050
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.row, children: [
2051
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles17.valueWrap, children: /* @__PURE__ */ jsxRuntime.jsx(
2010
2052
  TruncatedText,
2011
2053
  {
2012
2054
  value,
2013
- style: [styles16.value, { color: colors.text }],
2055
+ style: [styles17.value, { color: colors.text }],
2014
2056
  testID: `${testID}-value`,
2015
2057
  accessibilityLabel: accessibilityLabel ?? value,
2016
2058
  accessibilityHint: t(LAYOUT_I18N.copyableIdHint)
@@ -2024,7 +2066,7 @@ var CopyableId = ({
2024
2066
  accessibilityLabel: t(action.key),
2025
2067
  accessibilityHint: t(LAYOUT_I18N.copyHint),
2026
2068
  testID: `${testID}-copy`,
2027
- style: [styles16.action, { color: action.color }],
2069
+ style: [styles17.action, { color: action.color }],
2028
2070
  children: t(action.key)
2029
2071
  }
2030
2072
  )
@@ -2079,7 +2121,7 @@ var FOOTER_PADDING_V = 6;
2079
2121
  var FOOTER_PADDING_H = 12;
2080
2122
  var FOOTER_FONT_SIZE = 11;
2081
2123
  var FOOTER_OPACITY = 0.75;
2082
- var styles17 = reactNative.StyleSheet.create({
2124
+ var styles18 = reactNative.StyleSheet.create({
2083
2125
  footer: {
2084
2126
  paddingVertical: FOOTER_PADDING_V,
2085
2127
  paddingHorizontal: FOOTER_PADDING_H,
@@ -2105,7 +2147,7 @@ var BuildInfoFooter = ({
2105
2147
  const commit = apiCommit ?? fetchedCommit;
2106
2148
  const label = formatBuildInfo(buildVersion, commit);
2107
2149
  const textStyle = React10.useMemo(
2108
- () => [styles17.text, { color: theme.colors.textSecondary }],
2150
+ () => [styles18.text, { color: theme.colors.textSecondary }],
2109
2151
  [theme.colors.textSecondary]
2110
2152
  );
2111
2153
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -2113,7 +2155,7 @@ var BuildInfoFooter = ({
2113
2155
  {
2114
2156
  accessibilityLabel: accessibilityLabel ?? label,
2115
2157
  accessibilityHint: accessibilityHint ?? t(LAYOUT_I18N.buildInfoHint),
2116
- style: [styles17.footer, style],
2158
+ style: [styles18.footer, style],
2117
2159
  testID,
2118
2160
  children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: textStyle, children: label })
2119
2161
  }