@dloizides/ui-layout 1.15.1 → 1.17.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
@@ -88,13 +88,29 @@ var styles2 = reactNative.StyleSheet.create({
88
88
  fontSize: 16
89
89
  }
90
90
  });
91
- var Heading = ({ text, children }) => {
91
+ var DEFAULT_HEADING_LEVEL = 2;
92
+ var Heading = ({
93
+ text,
94
+ children,
95
+ level = DEFAULT_HEADING_LEVEL,
96
+ style,
97
+ testID
98
+ }) => {
92
99
  const { theme } = uiFeedback.useUi();
93
100
  const headingStyle = React8__default.default.useMemo(
94
- () => [styles2.heading, { color: theme.colors.text }],
95
- [theme.colors.text]
101
+ () => [styles2.heading, { color: theme.colors.text }, style],
102
+ [theme.colors.text, style]
103
+ );
104
+ return /* @__PURE__ */ jsxRuntime.jsx(
105
+ reactNative.Text,
106
+ {
107
+ accessibilityRole: "header",
108
+ "aria-level": level,
109
+ style: headingStyle,
110
+ testID: testID ?? LAYOUT_TEST_IDS.headingText,
111
+ children: text ?? children
112
+ }
96
113
  );
97
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: headingStyle, testID: LAYOUT_TEST_IDS.headingText, children: text ?? children });
98
114
  };
99
115
  var DEFAULT_PADDING_H = 10;
100
116
  var DEFAULT_PADDING_V = 4;
@@ -215,6 +231,104 @@ function SegmentedControl({
215
231
  }
216
232
  );
217
233
  }
234
+ var PILL_RADIUS = 999;
235
+ var PILL_PAD_H = 16;
236
+ var PILL_PAD_V = 8;
237
+ var PILL_MIN_HEIGHT = 40;
238
+ var PILL_FONT = 14;
239
+ var PILL_WEIGHT = "600";
240
+ var ROW_GAP = 8;
241
+ var COLUMN_GAP = 8;
242
+ var ROW_PAD_V = 8;
243
+ var PANEL_PAD_TOP = 16;
244
+ var BORDER_WIDTH2 = 1;
245
+ var TEXT_ON_PRIMARY = "#ffffff";
246
+ var styles5 = reactNative.StyleSheet.create({
247
+ root: {
248
+ width: "100%"
249
+ },
250
+ strip: {
251
+ flexDirection: "row",
252
+ flexWrap: "wrap",
253
+ alignItems: "center",
254
+ columnGap: COLUMN_GAP,
255
+ rowGap: ROW_GAP,
256
+ paddingVertical: ROW_PAD_V,
257
+ borderBottomWidth: BORDER_WIDTH2
258
+ },
259
+ pill: {
260
+ paddingHorizontal: PILL_PAD_H,
261
+ paddingVertical: PILL_PAD_V,
262
+ borderRadius: PILL_RADIUS,
263
+ minHeight: PILL_MIN_HEIGHT,
264
+ flexDirection: "row",
265
+ alignItems: "center",
266
+ justifyContent: "center"
267
+ },
268
+ pillText: {
269
+ fontSize: PILL_FONT,
270
+ fontWeight: PILL_WEIGHT,
271
+ textAlign: "center"
272
+ },
273
+ panel: {
274
+ paddingTop: PANEL_PAD_TOP
275
+ }
276
+ });
277
+ function ariaTabProps(selected, panelId, tabId) {
278
+ return { "aria-selected": selected, "aria-controls": panelId, id: tabId };
279
+ }
280
+ var Tabs = ({
281
+ tabs,
282
+ activeKey,
283
+ onChange,
284
+ accessibilityLabel,
285
+ children,
286
+ idPrefix = "tabs",
287
+ style,
288
+ stripStyle,
289
+ panelStyle,
290
+ testID
291
+ }) => {
292
+ const { theme } = uiFeedback.useUi();
293
+ const { colors } = theme;
294
+ const primaryColor = theme.palette.primary["500"];
295
+ const activePanelId = `${idPrefix}-panel-${activeKey}`;
296
+ const activeTabId = `${idPrefix}-tab-${activeKey}`;
297
+ const panelAria = { "aria-labelledby": activeTabId, id: activePanelId };
298
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles5.root, style], testID, children: [
299
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, children: /* @__PURE__ */ jsxRuntime.jsx(
300
+ reactNative.View,
301
+ {
302
+ accessibilityRole: "tablist",
303
+ "aria-label": accessibilityLabel,
304
+ style: [styles5.strip, { borderBottomColor: colors.border }, stripStyle],
305
+ children: tabs.map((tab) => {
306
+ const selected = tab.key === activeKey;
307
+ const textColor = selected ? TEXT_ON_PRIMARY : colors.textSecondary;
308
+ const pillColor = selected ? primaryColor : colors.surfaceElevated;
309
+ const tabId = `${idPrefix}-tab-${tab.key}`;
310
+ const panelId = `${idPrefix}-panel-${tab.key}`;
311
+ return /* @__PURE__ */ jsxRuntime.jsx(
312
+ reactNative.Pressable,
313
+ {
314
+ accessibilityRole: "tab",
315
+ accessibilityState: { selected },
316
+ accessibilityLabel: tab.accessibilityLabel ?? tab.label,
317
+ accessibilityHint: tab.accessibilityHint,
318
+ onPress: () => onChange(tab.key),
319
+ style: [styles5.pill, { backgroundColor: pillColor }],
320
+ testID: tab.testID,
321
+ ...ariaTabProps(selected, panelId, tabId),
322
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.pillText, { color: textColor }], children: tab.label })
323
+ },
324
+ tab.key
325
+ );
326
+ })
327
+ }
328
+ ) }),
329
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "none", style: [styles5.panel, panelStyle], ...panelAria, children })
330
+ ] });
331
+ };
218
332
  var PROMPT_PADDING = 20;
219
333
  var PROMPT_BORDER_RADIUS = 12;
220
334
  var PROMPT_BORDER_WIDTH = 1;
@@ -227,7 +341,7 @@ var DISMISS_FONT_SIZE = 13;
227
341
  var TITLE_MARGIN_BOTTOM = 8;
228
342
  var MESSAGE_MARGIN_BOTTOM = 16;
229
343
  var CTA_MARGIN_BOTTOM = 8;
230
- var styles5 = reactNative.StyleSheet.create({
344
+ var styles6 = reactNative.StyleSheet.create({
231
345
  container: {
232
346
  padding: PROMPT_PADDING,
233
347
  borderRadius: PROMPT_BORDER_RADIUS,
@@ -255,21 +369,21 @@ var UpgradePrompt = ({
255
369
  return /* @__PURE__ */ jsxRuntime.jsxs(
256
370
  reactNative.View,
257
371
  {
258
- style: [styles5.container, { borderColor: primary, backgroundColor: colors.surface }],
372
+ style: [styles6.container, { borderColor: primary, backgroundColor: colors.surface }],
259
373
  testID: LAYOUT_TEST_IDS.upgradePrompt,
260
374
  children: [
261
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.title, { color: colors.text }], children: t(LAYOUT_I18N.upgradePromptTitle) }),
262
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.message, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptMessage, requiredTier, currentTier) }),
375
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.title, { color: colors.text }], children: t(LAYOUT_I18N.upgradePromptTitle) }),
376
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.message, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptMessage, requiredTier, currentTier) }),
263
377
  /* @__PURE__ */ jsxRuntime.jsx(
264
378
  reactNative.TouchableOpacity,
265
379
  {
266
380
  accessibilityHint: t(LAYOUT_I18N.upgradePromptCtaHint),
267
381
  accessibilityLabel: t(LAYOUT_I18N.upgradePromptCta),
268
382
  accessibilityRole: "button",
269
- style: [styles5.cta, { backgroundColor: primary }],
383
+ style: [styles6.cta, { backgroundColor: primary }],
270
384
  testID: LAYOUT_TEST_IDS.upgradePromptCta,
271
385
  onPress: handleUpgradePress,
272
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.ctaText, { color: colors.surface }], children: t(LAYOUT_I18N.upgradePromptCta) })
386
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.ctaText, { color: colors.surface }], children: t(LAYOUT_I18N.upgradePromptCta) })
273
387
  }
274
388
  ),
275
389
  onDismiss ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -278,10 +392,10 @@ var UpgradePrompt = ({
278
392
  accessibilityHint: t(LAYOUT_I18N.upgradePromptDismissHint),
279
393
  accessibilityLabel: t(LAYOUT_I18N.upgradePromptDismiss),
280
394
  accessibilityRole: "button",
281
- style: styles5.dismiss,
395
+ style: styles6.dismiss,
282
396
  testID: LAYOUT_TEST_IDS.upgradePromptDismiss,
283
397
  onPress: onDismiss,
284
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.dismissText, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptDismiss) })
398
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.dismissText, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptDismiss) })
285
399
  }
286
400
  ) : null
287
401
  ]
@@ -356,7 +470,7 @@ var MENU_ELEVATION = 8;
356
470
  var MENU_TOP_GAP = 4;
357
471
  var MENU_MAX_HEIGHT = 300;
358
472
  var BORDER_RADIUS = 8;
359
- var BORDER_WIDTH2 = 1;
473
+ var BORDER_WIDTH3 = 1;
360
474
  var MENU_PADDING = 4;
361
475
  var MENU_BOX_SHADOW = "0px 2px 8px rgba(0, 0, 0, 0.15)";
362
476
  function buildPortalPopoverStyle(rect, minWidth = 0) {
@@ -368,7 +482,7 @@ function buildPortalPopoverStyle(rect, minWidth = 0) {
368
482
  left: rect.left,
369
483
  width: Math.max(rect.width, minWidth),
370
484
  zIndex: MENU_Z_INDEX,
371
- borderWidth: BORDER_WIDTH2,
485
+ borderWidth: BORDER_WIDTH3,
372
486
  borderRadius: BORDER_RADIUS,
373
487
  padding: MENU_PADDING,
374
488
  maxHeight: MENU_MAX_HEIGHT,
@@ -393,7 +507,7 @@ var BODY_FONT_SIZE = 14;
393
507
  var SELECTED_FONT_WEIGHT = "600";
394
508
  var OPTION_PADDING_H = 16;
395
509
  var OPTION_PADDING_V = 12;
396
- var styles6 = reactNative.StyleSheet.create({
510
+ var styles7 = reactNative.StyleSheet.create({
397
511
  option: {
398
512
  paddingHorizontal: OPTION_PADDING_H,
399
513
  paddingVertical: OPTION_PADDING_V,
@@ -415,8 +529,8 @@ var OptionRow = ({
415
529
  onSelect();
416
530
  }, [onSelect]);
417
531
  const isActive = isSelected || isHighlighted;
418
- const rowStyle = [styles6.option, isActive ? { backgroundColor: colors.surfaceElevated } : null];
419
- const textStyle = [styles6.optionText, { color: colors.text }, isSelected ? styles6.selectedText : null];
532
+ const rowStyle = [styles7.option, isActive ? { backgroundColor: colors.surfaceElevated } : null];
533
+ const textStyle = [styles7.optionText, { color: colors.text }, isSelected ? styles7.selectedText : null];
420
534
  return /* @__PURE__ */ jsxRuntime.jsx(
421
535
  reactNative.TouchableOpacity,
422
536
  {
@@ -579,9 +693,9 @@ function useMenuKeyboard(params) {
579
693
  }
580
694
  var IS_WEB2 = reactNative.Platform.OS === "web";
581
695
  var BORDER_RADIUS2 = 8;
582
- var BORDER_WIDTH3 = 1;
696
+ var BORDER_WIDTH4 = 1;
583
697
  var MENU_PADDING2 = 4;
584
- var styles7 = reactNative.StyleSheet.create({
698
+ var styles8 = reactNative.StyleSheet.create({
585
699
  /** Native (in-tree) popover — anchored absolutely just under the trigger. */
586
700
  popover: {
587
701
  position: "absolute",
@@ -590,7 +704,7 @@ var styles7 = reactNative.StyleSheet.create({
590
704
  right: 0,
591
705
  marginTop: MENU_TOP_GAP,
592
706
  zIndex: MENU_Z_INDEX,
593
- borderWidth: BORDER_WIDTH3,
707
+ borderWidth: BORDER_WIDTH4,
594
708
  borderRadius: BORDER_RADIUS2,
595
709
  padding: MENU_PADDING2,
596
710
  maxHeight: MENU_MAX_HEIGHT,
@@ -647,7 +761,7 @@ var InlineMenu = ({
647
761
  buildPortalPopoverStyle(rect ?? { left: 0, width: 0, bottom: 0 }, menuMinWidth),
648
762
  themed
649
763
  ];
650
- return [styles7.popover, { minWidth: menuMinWidth }, themed];
764
+ return [styles8.popover, { minWidth: menuMinWidth }, themed];
651
765
  }, [colors.border, colors.surface, menuMinWidth, rect]);
652
766
  const menu = /* @__PURE__ */ jsxRuntime.jsx(
653
767
  reactNative.View,
@@ -685,17 +799,17 @@ function useResolvedDropdownVariant(explicit) {
685
799
  return resolveDropdownVariant(explicit, width, reactNative.Platform.OS);
686
800
  }
687
801
  var BORDER_RADIUS3 = 8;
688
- var BORDER_WIDTH4 = 1;
802
+ var BORDER_WIDTH5 = 1;
689
803
  var BODY_FONT_SIZE2 = 14;
690
804
  var MODAL_PADDING = 8;
691
805
  var MODAL_MIN_WIDTH = 200;
692
806
  var MODAL_MAX_HEIGHT = 300;
693
807
  var CONTAINER_PADDING_H = 12;
694
808
  var CONTAINER_PADDING_V = 10;
695
- var styles8 = reactNative.StyleSheet.create({
809
+ var styles9 = reactNative.StyleSheet.create({
696
810
  anchor: { position: "relative" },
697
811
  container: {
698
- borderWidth: BORDER_WIDTH4,
812
+ borderWidth: BORDER_WIDTH5,
699
813
  borderRadius: BORDER_RADIUS3,
700
814
  paddingHorizontal: CONTAINER_PADDING_H,
701
815
  paddingVertical: CONTAINER_PADDING_V
@@ -759,7 +873,7 @@ var ModalDropdown = ({
759
873
  [onChange]
760
874
  );
761
875
  const containerStyle = React8.useMemo(
762
- () => renderTrigger !== void 0 ? void 0 : [styles8.container, { borderColor: colors.border, backgroundColor: colors.surface }],
876
+ () => renderTrigger !== void 0 ? void 0 : [styles9.container, { borderColor: colors.border, backgroundColor: colors.surface }],
763
877
  [colors.border, colors.surface, renderTrigger]
764
878
  );
765
879
  const optionTestIDFor = React8.useCallback(
@@ -767,11 +881,11 @@ var ModalDropdown = ({
767
881
  [optionTestID, testID]
768
882
  );
769
883
  const anchorStyle = React8.useMemo(
770
- () => [styles8.anchor, buildAnchorStackStyle(isMenu && isOpen)],
884
+ () => [styles9.anchor, buildAnchorStackStyle(isMenu && isOpen)],
771
885
  [isMenu, isOpen]
772
886
  );
773
887
  const modalContentStyle = React8.useMemo(
774
- () => [styles8.modalContent, { backgroundColor: colors.surface }],
888
+ () => [styles9.modalContent, { backgroundColor: colors.surface }],
775
889
  [colors.surface]
776
890
  );
777
891
  const renderModalOption = React8.useCallback(
@@ -789,7 +903,7 @@ var ModalDropdown = ({
789
903
  const keyExtractor = React8.useCallback((item) => String(item.value), []);
790
904
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: anchorRef, style: anchorStyle, children: [
791
905
  /* @__PURE__ */ jsxRuntime.jsxs(reactNative.TouchableOpacity, { ...a11yProps, style: containerStyle, onPress: handleToggle, children: [
792
- renderTrigger !== void 0 ? renderTrigger({ label: selectedLabel, isOpen }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.selectedText, { color: colors.text }], children: selectedLabel }),
906
+ renderTrigger !== void 0 ? renderTrigger({ label: selectedLabel, isOpen }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.selectedText, { color: colors.text }], children: selectedLabel }),
793
907
  hintNode
794
908
  ] }),
795
909
  isMenu && isOpen ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -806,7 +920,7 @@ var ModalDropdown = ({
806
920
  onSelect: handleSelect
807
921
  }
808
922
  ) : null,
809
- !isMenu ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, animationType: "fade", visible: isOpen, onRequestClose: handleClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles8.modalOverlay, children: [
923
+ !isMenu ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, animationType: "fade", visible: isOpen, onRequestClose: handleClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles9.modalOverlay, children: [
810
924
  /* @__PURE__ */ jsxRuntime.jsx(
811
925
  reactNative.TouchableOpacity,
812
926
  {
@@ -835,7 +949,7 @@ var ModalDropdown = ({
835
949
  ] });
836
950
  };
837
951
  var CLOSE_ICON_SIZE = 18;
838
- var styles9 = reactNative.StyleSheet.create({
952
+ var styles10 = reactNative.StyleSheet.create({
839
953
  container: {
840
954
  flex: 1,
841
955
  padding: 16
@@ -860,7 +974,7 @@ var ModalShell = ({
860
974
  }) => {
861
975
  const { theme, t } = uiFeedback.useUi();
862
976
  const containerStyle = React8__default.default.useMemo(
863
- () => [styles9.container, { backgroundColor: theme.colors.background }, contentStyle],
977
+ () => [styles10.container, { backgroundColor: theme.colors.background }, contentStyle],
864
978
  [theme.colors.background, contentStyle]
865
979
  );
866
980
  const closeA11yLabel = t(LAYOUT_I18N.close);
@@ -880,7 +994,7 @@ var ModalShell = ({
880
994
  role: "dialog",
881
995
  style: containerStyle,
882
996
  children: [
883
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles9.headerRow, children: [
997
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles10.headerRow, children: [
884
998
  /* @__PURE__ */ jsxRuntime.jsx(Heading, { children: title ?? t(LAYOUT_I18N.closeHeading) }),
885
999
  showClose ? /* @__PURE__ */ jsxRuntime.jsx(
886
1000
  reactNative.TouchableOpacity,
@@ -888,7 +1002,7 @@ var ModalShell = ({
888
1002
  accessibilityHint: t(LAYOUT_I18N.closeDialogHint),
889
1003
  accessibilityLabel: closeA11yLabel,
890
1004
  accessibilityRole: "button",
891
- style: styles9.closeButton,
1005
+ style: styles10.closeButton,
892
1006
  testID: LAYOUT_TEST_IDS.modalShellClose,
893
1007
  onPress: onCancel,
894
1008
  children: /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color: theme.colors.textSecondary, name: "close", size: CLOSE_ICON_SIZE })
@@ -931,7 +1045,7 @@ function animateNextLayout() {
931
1045
  }
932
1046
  }
933
1047
  var BOXED_GAP = 12;
934
- var styles10 = reactNative.StyleSheet.create({
1048
+ var styles11 = reactNative.StyleSheet.create({
935
1049
  container: { alignSelf: "stretch" },
936
1050
  boxed: { gap: BOXED_GAP }
937
1051
  });
@@ -989,7 +1103,7 @@ var Accordion = ({
989
1103
  [openSet, toggle, allowMultiple, variant]
990
1104
  );
991
1105
  const containerStyle = React8.useMemo(() => {
992
- const base = variant === "boxed" ? [styles10.container, styles10.boxed] : [styles10.container];
1106
+ const base = variant === "boxed" ? [styles11.container, styles11.boxed] : [styles11.container];
993
1107
  if (style === void 0) return base;
994
1108
  return [...base, ...Array.isArray(style) ? style : [style]];
995
1109
  }, [style, variant]);
@@ -1021,7 +1135,7 @@ var BOX_TITLE_FONT_SIZE = 14;
1021
1135
  var BOX_MARKER_FONT_SIZE = 13;
1022
1136
  var BOX_MARKER_GAP = 6;
1023
1137
  var BOX_MARKER = "\u25B8";
1024
- var styles11 = reactNative.StyleSheet.create({
1138
+ var styles12 = reactNative.StyleSheet.create({
1025
1139
  item: { borderTopWidth: reactNative.StyleSheet.hairlineWidth },
1026
1140
  boxItem: { borderWidth: 1, borderRadius: BOX_BORDER_RADIUS, paddingHorizontal: BOX_PADDING_H },
1027
1141
  header: {
@@ -1095,19 +1209,19 @@ var AccordionItem = ({
1095
1209
  );
1096
1210
  const keyboardProps = reactNative.Platform.OS === "web" ? { onKeyDown: handleKeyDown2 } : {};
1097
1211
  const itemStyle = React8.useMemo(
1098
- () => boxed ? [styles11.boxItem, { borderColor: colors.border }] : [styles11.item, { borderTopColor: colors.border }],
1212
+ () => boxed ? [styles12.boxItem, { borderColor: colors.border }] : [styles12.item, { borderTopColor: colors.border }],
1099
1213
  [boxed, colors.border]
1100
1214
  );
1101
1215
  const headerStyle = React8.useMemo(
1102
1216
  () => [
1103
- styles11.header,
1104
- ...boxed ? [styles11.boxHeader] : [],
1217
+ styles12.header,
1218
+ ...boxed ? [styles12.boxHeader] : [],
1105
1219
  { opacity: disabled ? DISABLED_OPACITY : FULL_OPACITY }
1106
1220
  ],
1107
1221
  [boxed, disabled]
1108
1222
  );
1109
1223
  const resolvedLabel = accessibilityLabel ?? (typeof title === "string" ? title : void 0);
1110
- const titleNode = typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [boxed ? styles11.boxTitle : styles11.title, { color: boxed ? colors.textSecondary : colors.text }], children: title }) : title;
1224
+ const titleNode = typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [boxed ? styles12.boxTitle : styles12.title, { color: boxed ? colors.textSecondary : colors.text }], children: title }) : title;
1111
1225
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: itemStyle, children: [
1112
1226
  /* @__PURE__ */ jsxRuntime.jsxs(
1113
1227
  reactNative.Pressable,
@@ -1124,7 +1238,7 @@ var AccordionItem = ({
1124
1238
  onPress: handlePress,
1125
1239
  ...keyboardProps,
1126
1240
  children: [
1127
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles11.headerLeft, boxed ? styles11.headerLeftRow : null], children: [
1241
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles12.headerLeft, boxed ? styles12.headerLeftRow : null], children: [
1128
1242
  boxed ? (
1129
1243
  // Decorative — the open/closed state is already conveyed by aria-expanded on the header.
1130
1244
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -1133,15 +1247,15 @@ var AccordionItem = ({
1133
1247
  accessibilityElementsHidden: true,
1134
1248
  "aria-hidden": true,
1135
1249
  importantForAccessibility: "no-hide-descendants",
1136
- style: [styles11.marker, { transform: [{ rotate }] }],
1250
+ style: [styles12.marker, { transform: [{ rotate }] }],
1137
1251
  testID: chevronTestID,
1138
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.markerText, { color: colors.textSecondary }], children: BOX_MARKER })
1252
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.markerText, { color: colors.textSecondary }], children: BOX_MARKER })
1139
1253
  }
1140
1254
  )
1141
1255
  ) : null,
1142
1256
  titleNode
1143
1257
  ] }),
1144
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles11.headerRight, children: [
1258
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles12.headerRight, children: [
1145
1259
  right,
1146
1260
  boxed ? null : /* @__PURE__ */ jsxRuntime.jsx(
1147
1261
  reactNative.Animated.View,
@@ -1149,7 +1263,7 @@ var AccordionItem = ({
1149
1263
  accessibilityElementsHidden: true,
1150
1264
  "aria-hidden": true,
1151
1265
  importantForAccessibility: "no-hide-descendants",
1152
- style: [styles11.chevron, { transform: [{ rotate }] }],
1266
+ style: [styles12.chevron, { transform: [{ rotate }] }],
1153
1267
  children: /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color: colors.textSecondary, name: "chevronDown", size: CHEVRON_SIZE, testID: chevronTestID })
1154
1268
  }
1155
1269
  )
@@ -1163,7 +1277,7 @@ var AccordionItem = ({
1163
1277
  accessibilityLabel: resolvedLabel,
1164
1278
  nativeID: bodyTestID,
1165
1279
  role: ROLE_REGION,
1166
- style: boxed ? styles11.boxBody : styles11.body,
1280
+ style: boxed ? styles12.boxBody : styles12.body,
1167
1281
  testID: bodyTestID,
1168
1282
  children
1169
1283
  }
@@ -1226,7 +1340,7 @@ function useAvailableWidth() {
1226
1340
  var AVG_CHAR_WIDTH_RATIO = 0.58;
1227
1341
  var DEFAULT_FONT_SIZE2 = 13;
1228
1342
  var UNMEASURED2 = 0;
1229
- var styles12 = reactNative.StyleSheet.create({
1343
+ var styles13 = reactNative.StyleSheet.create({
1230
1344
  base: { fontSize: DEFAULT_FONT_SIZE2 },
1231
1345
  /** `minWidth: 0` lets the text shrink inside a flex row instead of forcing the row wider. */
1232
1346
  fill: { flexShrink: 1, minWidth: 0 }
@@ -1257,7 +1371,7 @@ var TruncatedText = ({
1257
1371
  [value, measureRef]
1258
1372
  );
1259
1373
  const flatStyle = React8.useMemo(
1260
- () => reactNative.StyleSheet.flatten([styles12.base, style]),
1374
+ () => reactNative.StyleSheet.flatten([styles13.base, style]),
1261
1375
  [style]
1262
1376
  );
1263
1377
  const fontSize = flatStyle.fontSize ?? DEFAULT_FONT_SIZE2;
@@ -1272,7 +1386,7 @@ var TruncatedText = ({
1272
1386
  ref: attachRef,
1273
1387
  onLayout,
1274
1388
  numberOfLines: 1,
1275
- style: [styles12.base, styles12.fill, style],
1389
+ style: [styles13.base, styles13.fill, style],
1276
1390
  testID,
1277
1391
  accessibilityRole: onPress !== void 0 || href !== void 0 ? "link" : "text",
1278
1392
  accessibilityLabel,
@@ -1369,13 +1483,13 @@ function useCopyToClipboard(value, writer) {
1369
1483
  var LABEL_FONT_SIZE = 11;
1370
1484
  var VALUE_FONT_SIZE = 12;
1371
1485
  var ACTION_FONT_SIZE = 12;
1372
- var ROW_GAP = 8;
1486
+ var ROW_GAP2 = 8;
1373
1487
  var CELL_GAP = 2;
1374
1488
  var LABEL_LETTER_SPACING = 0.4;
1375
1489
  var ACTION_PADDING_H = 6;
1376
1490
  var ACTION_PADDING_V = 2;
1377
1491
  var ACTION_RADIUS = 6;
1378
- var styles13 = reactNative.StyleSheet.create({
1492
+ var styles14 = reactNative.StyleSheet.create({
1379
1493
  cell: { gap: CELL_GAP },
1380
1494
  label: {
1381
1495
  fontSize: LABEL_FONT_SIZE,
@@ -1383,7 +1497,7 @@ var styles13 = reactNative.StyleSheet.create({
1383
1497
  letterSpacing: LABEL_LETTER_SPACING,
1384
1498
  textTransform: "uppercase"
1385
1499
  },
1386
- row: { flexDirection: "row", alignItems: "center", gap: ROW_GAP },
1500
+ row: { flexDirection: "row", alignItems: "center", gap: ROW_GAP2 },
1387
1501
  /**
1388
1502
  * The truncation width comes from this wrapper, not from the row: `TruncatedText` measures its
1389
1503
  * PARENT (see `useAvailableWidth`), and the row also holds the copy button.
@@ -1434,14 +1548,14 @@ var CopyableId = ({
1434
1548
  const { colors } = theme;
1435
1549
  const { status, copy } = useCopyToClipboard(value, writer);
1436
1550
  const action = useActionState(status);
1437
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles13.cell, style], testID, children: [
1438
- label !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.label, { color: colors.textSecondary }], children: label }),
1439
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles13.row, children: [
1440
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles13.valueWrap, children: /* @__PURE__ */ jsxRuntime.jsx(
1551
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles14.cell, style], testID, children: [
1552
+ label !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.label, { color: colors.textSecondary }], children: label }),
1553
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles14.row, children: [
1554
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles14.valueWrap, children: /* @__PURE__ */ jsxRuntime.jsx(
1441
1555
  TruncatedText,
1442
1556
  {
1443
1557
  value,
1444
- style: [styles13.value, { color: colors.text }],
1558
+ style: [styles14.value, { color: colors.text }],
1445
1559
  testID: `${testID}-value`,
1446
1560
  accessibilityLabel: accessibilityLabel ?? value,
1447
1561
  accessibilityHint: t(LAYOUT_I18N.copyableIdHint)
@@ -1455,7 +1569,7 @@ var CopyableId = ({
1455
1569
  accessibilityLabel: t(action.key),
1456
1570
  accessibilityHint: t(LAYOUT_I18N.copyHint),
1457
1571
  testID: `${testID}-copy`,
1458
- style: [styles13.action, { color: action.color }],
1572
+ style: [styles14.action, { color: action.color }],
1459
1573
  children: t(action.key)
1460
1574
  }
1461
1575
  )
@@ -1479,6 +1593,7 @@ exports.ModalShell = ModalShell;
1479
1593
  exports.Section = Section;
1480
1594
  exports.SegmentedControl = SegmentedControl;
1481
1595
  exports.StatusBadge = StatusBadge;
1596
+ exports.Tabs = Tabs;
1482
1597
  exports.TruncatedText = TruncatedText;
1483
1598
  exports.UpgradePrompt = UpgradePrompt;
1484
1599
  exports.copyText = copyText;