@dloizides/ui-layout 1.16.1 → 1.18.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
@@ -231,6 +231,113 @@ function SegmentedControl({
231
231
  }
232
232
  );
233
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
+ // The full-width rule under the row lives here (not on the strip) so it spans the
251
+ // whole width even when the tabs are narrower than the viewport (desktop) and is
252
+ // not clipped to the scroll content width.
253
+ stripOuter: {
254
+ width: "100%",
255
+ borderBottomWidth: BORDER_WIDTH2
256
+ },
257
+ strip: {
258
+ flexDirection: "row",
259
+ flexWrap: "nowrap",
260
+ alignItems: "center",
261
+ columnGap: COLUMN_GAP,
262
+ rowGap: ROW_GAP,
263
+ paddingVertical: ROW_PAD_V
264
+ },
265
+ pill: {
266
+ // Keep each pill at its natural size so the row scrolls instead of squashing
267
+ // the tabs when they don't all fit.
268
+ flexShrink: 0,
269
+ paddingHorizontal: PILL_PAD_H,
270
+ paddingVertical: PILL_PAD_V,
271
+ borderRadius: PILL_RADIUS,
272
+ minHeight: PILL_MIN_HEIGHT,
273
+ flexDirection: "row",
274
+ alignItems: "center",
275
+ justifyContent: "center"
276
+ },
277
+ pillText: {
278
+ fontSize: PILL_FONT,
279
+ fontWeight: PILL_WEIGHT,
280
+ textAlign: "center"
281
+ },
282
+ panel: {
283
+ paddingTop: PANEL_PAD_TOP
284
+ }
285
+ });
286
+ function ariaTabProps(selected, panelId, tabId) {
287
+ return { "aria-selected": selected, "aria-controls": panelId, id: tabId };
288
+ }
289
+ var Tabs = ({
290
+ tabs,
291
+ activeKey,
292
+ onChange,
293
+ accessibilityLabel,
294
+ children,
295
+ idPrefix = "tabs",
296
+ style,
297
+ stripStyle,
298
+ panelStyle,
299
+ testID
300
+ }) => {
301
+ const { theme } = uiFeedback.useUi();
302
+ const { colors } = theme;
303
+ const primaryColor = theme.palette.primary["500"];
304
+ const activePanelId = `${idPrefix}-panel-${activeKey}`;
305
+ const activeTabId = `${idPrefix}-tab-${activeKey}`;
306
+ const panelAria = { "aria-labelledby": activeTabId, id: activePanelId };
307
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles5.root, style], testID, children: [
308
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles5.stripOuter, { borderBottomColor: colors.border }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, children: /* @__PURE__ */ jsxRuntime.jsx(
309
+ reactNative.View,
310
+ {
311
+ accessibilityRole: "tablist",
312
+ "aria-label": accessibilityLabel,
313
+ style: [styles5.strip, stripStyle],
314
+ children: tabs.map((tab) => {
315
+ const selected = tab.key === activeKey;
316
+ const textColor = selected ? TEXT_ON_PRIMARY : colors.textSecondary;
317
+ const pillColor = selected ? primaryColor : colors.surfaceElevated;
318
+ const tabId = `${idPrefix}-tab-${tab.key}`;
319
+ const panelId = `${idPrefix}-panel-${tab.key}`;
320
+ return /* @__PURE__ */ jsxRuntime.jsx(
321
+ reactNative.Pressable,
322
+ {
323
+ accessibilityRole: "tab",
324
+ accessibilityState: { selected },
325
+ accessibilityLabel: tab.accessibilityLabel ?? tab.label,
326
+ accessibilityHint: tab.accessibilityHint,
327
+ onPress: () => onChange(tab.key),
328
+ style: [styles5.pill, { backgroundColor: pillColor }],
329
+ testID: tab.testID,
330
+ ...ariaTabProps(selected, panelId, tabId),
331
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.pillText, { color: textColor }], children: tab.label })
332
+ },
333
+ tab.key
334
+ );
335
+ })
336
+ }
337
+ ) }) }),
338
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "none", style: [styles5.panel, panelStyle], ...panelAria, children })
339
+ ] });
340
+ };
234
341
  var PROMPT_PADDING = 20;
235
342
  var PROMPT_BORDER_RADIUS = 12;
236
343
  var PROMPT_BORDER_WIDTH = 1;
@@ -243,7 +350,7 @@ var DISMISS_FONT_SIZE = 13;
243
350
  var TITLE_MARGIN_BOTTOM = 8;
244
351
  var MESSAGE_MARGIN_BOTTOM = 16;
245
352
  var CTA_MARGIN_BOTTOM = 8;
246
- var styles5 = reactNative.StyleSheet.create({
353
+ var styles6 = reactNative.StyleSheet.create({
247
354
  container: {
248
355
  padding: PROMPT_PADDING,
249
356
  borderRadius: PROMPT_BORDER_RADIUS,
@@ -271,21 +378,21 @@ var UpgradePrompt = ({
271
378
  return /* @__PURE__ */ jsxRuntime.jsxs(
272
379
  reactNative.View,
273
380
  {
274
- style: [styles5.container, { borderColor: primary, backgroundColor: colors.surface }],
381
+ style: [styles6.container, { borderColor: primary, backgroundColor: colors.surface }],
275
382
  testID: LAYOUT_TEST_IDS.upgradePrompt,
276
383
  children: [
277
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.title, { color: colors.text }], children: t(LAYOUT_I18N.upgradePromptTitle) }),
278
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.message, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptMessage, requiredTier, currentTier) }),
384
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.title, { color: colors.text }], children: t(LAYOUT_I18N.upgradePromptTitle) }),
385
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.message, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptMessage, requiredTier, currentTier) }),
279
386
  /* @__PURE__ */ jsxRuntime.jsx(
280
387
  reactNative.TouchableOpacity,
281
388
  {
282
389
  accessibilityHint: t(LAYOUT_I18N.upgradePromptCtaHint),
283
390
  accessibilityLabel: t(LAYOUT_I18N.upgradePromptCta),
284
391
  accessibilityRole: "button",
285
- style: [styles5.cta, { backgroundColor: primary }],
392
+ style: [styles6.cta, { backgroundColor: primary }],
286
393
  testID: LAYOUT_TEST_IDS.upgradePromptCta,
287
394
  onPress: handleUpgradePress,
288
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.ctaText, { color: colors.surface }], children: t(LAYOUT_I18N.upgradePromptCta) })
395
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.ctaText, { color: colors.surface }], children: t(LAYOUT_I18N.upgradePromptCta) })
289
396
  }
290
397
  ),
291
398
  onDismiss ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -294,10 +401,10 @@ var UpgradePrompt = ({
294
401
  accessibilityHint: t(LAYOUT_I18N.upgradePromptDismissHint),
295
402
  accessibilityLabel: t(LAYOUT_I18N.upgradePromptDismiss),
296
403
  accessibilityRole: "button",
297
- style: styles5.dismiss,
404
+ style: styles6.dismiss,
298
405
  testID: LAYOUT_TEST_IDS.upgradePromptDismiss,
299
406
  onPress: onDismiss,
300
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles5.dismissText, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptDismiss) })
407
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.dismissText, { color: colors.textSecondary }], children: t(LAYOUT_I18N.upgradePromptDismiss) })
301
408
  }
302
409
  ) : null
303
410
  ]
@@ -372,7 +479,7 @@ var MENU_ELEVATION = 8;
372
479
  var MENU_TOP_GAP = 4;
373
480
  var MENU_MAX_HEIGHT = 300;
374
481
  var BORDER_RADIUS = 8;
375
- var BORDER_WIDTH2 = 1;
482
+ var BORDER_WIDTH3 = 1;
376
483
  var MENU_PADDING = 4;
377
484
  var MENU_BOX_SHADOW = "0px 2px 8px rgba(0, 0, 0, 0.15)";
378
485
  function buildPortalPopoverStyle(rect, minWidth = 0) {
@@ -384,7 +491,7 @@ function buildPortalPopoverStyle(rect, minWidth = 0) {
384
491
  left: rect.left,
385
492
  width: Math.max(rect.width, minWidth),
386
493
  zIndex: MENU_Z_INDEX,
387
- borderWidth: BORDER_WIDTH2,
494
+ borderWidth: BORDER_WIDTH3,
388
495
  borderRadius: BORDER_RADIUS,
389
496
  padding: MENU_PADDING,
390
497
  maxHeight: MENU_MAX_HEIGHT,
@@ -409,7 +516,7 @@ var BODY_FONT_SIZE = 14;
409
516
  var SELECTED_FONT_WEIGHT = "600";
410
517
  var OPTION_PADDING_H = 16;
411
518
  var OPTION_PADDING_V = 12;
412
- var styles6 = reactNative.StyleSheet.create({
519
+ var styles7 = reactNative.StyleSheet.create({
413
520
  option: {
414
521
  paddingHorizontal: OPTION_PADDING_H,
415
522
  paddingVertical: OPTION_PADDING_V,
@@ -431,8 +538,8 @@ var OptionRow = ({
431
538
  onSelect();
432
539
  }, [onSelect]);
433
540
  const isActive = isSelected || isHighlighted;
434
- const rowStyle = [styles6.option, isActive ? { backgroundColor: colors.surfaceElevated } : null];
435
- const textStyle = [styles6.optionText, { color: colors.text }, isSelected ? styles6.selectedText : null];
541
+ const rowStyle = [styles7.option, isActive ? { backgroundColor: colors.surfaceElevated } : null];
542
+ const textStyle = [styles7.optionText, { color: colors.text }, isSelected ? styles7.selectedText : null];
436
543
  return /* @__PURE__ */ jsxRuntime.jsx(
437
544
  reactNative.TouchableOpacity,
438
545
  {
@@ -595,9 +702,9 @@ function useMenuKeyboard(params) {
595
702
  }
596
703
  var IS_WEB2 = reactNative.Platform.OS === "web";
597
704
  var BORDER_RADIUS2 = 8;
598
- var BORDER_WIDTH3 = 1;
705
+ var BORDER_WIDTH4 = 1;
599
706
  var MENU_PADDING2 = 4;
600
- var styles7 = reactNative.StyleSheet.create({
707
+ var styles8 = reactNative.StyleSheet.create({
601
708
  /** Native (in-tree) popover — anchored absolutely just under the trigger. */
602
709
  popover: {
603
710
  position: "absolute",
@@ -606,7 +713,7 @@ var styles7 = reactNative.StyleSheet.create({
606
713
  right: 0,
607
714
  marginTop: MENU_TOP_GAP,
608
715
  zIndex: MENU_Z_INDEX,
609
- borderWidth: BORDER_WIDTH3,
716
+ borderWidth: BORDER_WIDTH4,
610
717
  borderRadius: BORDER_RADIUS2,
611
718
  padding: MENU_PADDING2,
612
719
  maxHeight: MENU_MAX_HEIGHT,
@@ -663,7 +770,7 @@ var InlineMenu = ({
663
770
  buildPortalPopoverStyle(rect ?? { left: 0, width: 0, bottom: 0 }, menuMinWidth),
664
771
  themed
665
772
  ];
666
- return [styles7.popover, { minWidth: menuMinWidth }, themed];
773
+ return [styles8.popover, { minWidth: menuMinWidth }, themed];
667
774
  }, [colors.border, colors.surface, menuMinWidth, rect]);
668
775
  const menu = /* @__PURE__ */ jsxRuntime.jsx(
669
776
  reactNative.View,
@@ -701,17 +808,17 @@ function useResolvedDropdownVariant(explicit) {
701
808
  return resolveDropdownVariant(explicit, width, reactNative.Platform.OS);
702
809
  }
703
810
  var BORDER_RADIUS3 = 8;
704
- var BORDER_WIDTH4 = 1;
811
+ var BORDER_WIDTH5 = 1;
705
812
  var BODY_FONT_SIZE2 = 14;
706
813
  var MODAL_PADDING = 8;
707
814
  var MODAL_MIN_WIDTH = 200;
708
815
  var MODAL_MAX_HEIGHT = 300;
709
816
  var CONTAINER_PADDING_H = 12;
710
817
  var CONTAINER_PADDING_V = 10;
711
- var styles8 = reactNative.StyleSheet.create({
818
+ var styles9 = reactNative.StyleSheet.create({
712
819
  anchor: { position: "relative" },
713
820
  container: {
714
- borderWidth: BORDER_WIDTH4,
821
+ borderWidth: BORDER_WIDTH5,
715
822
  borderRadius: BORDER_RADIUS3,
716
823
  paddingHorizontal: CONTAINER_PADDING_H,
717
824
  paddingVertical: CONTAINER_PADDING_V
@@ -775,7 +882,7 @@ var ModalDropdown = ({
775
882
  [onChange]
776
883
  );
777
884
  const containerStyle = React8.useMemo(
778
- () => renderTrigger !== void 0 ? void 0 : [styles8.container, { borderColor: colors.border, backgroundColor: colors.surface }],
885
+ () => renderTrigger !== void 0 ? void 0 : [styles9.container, { borderColor: colors.border, backgroundColor: colors.surface }],
779
886
  [colors.border, colors.surface, renderTrigger]
780
887
  );
781
888
  const optionTestIDFor = React8.useCallback(
@@ -783,11 +890,11 @@ var ModalDropdown = ({
783
890
  [optionTestID, testID]
784
891
  );
785
892
  const anchorStyle = React8.useMemo(
786
- () => [styles8.anchor, buildAnchorStackStyle(isMenu && isOpen)],
893
+ () => [styles9.anchor, buildAnchorStackStyle(isMenu && isOpen)],
787
894
  [isMenu, isOpen]
788
895
  );
789
896
  const modalContentStyle = React8.useMemo(
790
- () => [styles8.modalContent, { backgroundColor: colors.surface }],
897
+ () => [styles9.modalContent, { backgroundColor: colors.surface }],
791
898
  [colors.surface]
792
899
  );
793
900
  const renderModalOption = React8.useCallback(
@@ -805,7 +912,7 @@ var ModalDropdown = ({
805
912
  const keyExtractor = React8.useCallback((item) => String(item.value), []);
806
913
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: anchorRef, style: anchorStyle, children: [
807
914
  /* @__PURE__ */ jsxRuntime.jsxs(reactNative.TouchableOpacity, { ...a11yProps, style: containerStyle, onPress: handleToggle, children: [
808
- renderTrigger !== void 0 ? renderTrigger({ label: selectedLabel, isOpen }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles8.selectedText, { color: colors.text }], children: selectedLabel }),
915
+ renderTrigger !== void 0 ? renderTrigger({ label: selectedLabel, isOpen }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles9.selectedText, { color: colors.text }], children: selectedLabel }),
809
916
  hintNode
810
917
  ] }),
811
918
  isMenu && isOpen ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -822,7 +929,7 @@ var ModalDropdown = ({
822
929
  onSelect: handleSelect
823
930
  }
824
931
  ) : null,
825
- !isMenu ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, animationType: "fade", visible: isOpen, onRequestClose: handleClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles8.modalOverlay, children: [
932
+ !isMenu ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, animationType: "fade", visible: isOpen, onRequestClose: handleClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles9.modalOverlay, children: [
826
933
  /* @__PURE__ */ jsxRuntime.jsx(
827
934
  reactNative.TouchableOpacity,
828
935
  {
@@ -851,7 +958,7 @@ var ModalDropdown = ({
851
958
  ] });
852
959
  };
853
960
  var CLOSE_ICON_SIZE = 18;
854
- var styles9 = reactNative.StyleSheet.create({
961
+ var styles10 = reactNative.StyleSheet.create({
855
962
  container: {
856
963
  flex: 1,
857
964
  padding: 16
@@ -876,7 +983,7 @@ var ModalShell = ({
876
983
  }) => {
877
984
  const { theme, t } = uiFeedback.useUi();
878
985
  const containerStyle = React8__default.default.useMemo(
879
- () => [styles9.container, { backgroundColor: theme.colors.background }, contentStyle],
986
+ () => [styles10.container, { backgroundColor: theme.colors.background }, contentStyle],
880
987
  [theme.colors.background, contentStyle]
881
988
  );
882
989
  const closeA11yLabel = t(LAYOUT_I18N.close);
@@ -896,7 +1003,7 @@ var ModalShell = ({
896
1003
  role: "dialog",
897
1004
  style: containerStyle,
898
1005
  children: [
899
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles9.headerRow, children: [
1006
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles10.headerRow, children: [
900
1007
  /* @__PURE__ */ jsxRuntime.jsx(Heading, { children: title ?? t(LAYOUT_I18N.closeHeading) }),
901
1008
  showClose ? /* @__PURE__ */ jsxRuntime.jsx(
902
1009
  reactNative.TouchableOpacity,
@@ -904,7 +1011,7 @@ var ModalShell = ({
904
1011
  accessibilityHint: t(LAYOUT_I18N.closeDialogHint),
905
1012
  accessibilityLabel: closeA11yLabel,
906
1013
  accessibilityRole: "button",
907
- style: styles9.closeButton,
1014
+ style: styles10.closeButton,
908
1015
  testID: LAYOUT_TEST_IDS.modalShellClose,
909
1016
  onPress: onCancel,
910
1017
  children: /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color: theme.colors.textSecondary, name: "close", size: CLOSE_ICON_SIZE })
@@ -947,7 +1054,7 @@ function animateNextLayout() {
947
1054
  }
948
1055
  }
949
1056
  var BOXED_GAP = 12;
950
- var styles10 = reactNative.StyleSheet.create({
1057
+ var styles11 = reactNative.StyleSheet.create({
951
1058
  container: { alignSelf: "stretch" },
952
1059
  boxed: { gap: BOXED_GAP }
953
1060
  });
@@ -1005,7 +1112,7 @@ var Accordion = ({
1005
1112
  [openSet, toggle, allowMultiple, variant]
1006
1113
  );
1007
1114
  const containerStyle = React8.useMemo(() => {
1008
- const base = variant === "boxed" ? [styles10.container, styles10.boxed] : [styles10.container];
1115
+ const base = variant === "boxed" ? [styles11.container, styles11.boxed] : [styles11.container];
1009
1116
  if (style === void 0) return base;
1010
1117
  return [...base, ...Array.isArray(style) ? style : [style]];
1011
1118
  }, [style, variant]);
@@ -1037,7 +1144,7 @@ var BOX_TITLE_FONT_SIZE = 14;
1037
1144
  var BOX_MARKER_FONT_SIZE = 13;
1038
1145
  var BOX_MARKER_GAP = 6;
1039
1146
  var BOX_MARKER = "\u25B8";
1040
- var styles11 = reactNative.StyleSheet.create({
1147
+ var styles12 = reactNative.StyleSheet.create({
1041
1148
  item: { borderTopWidth: reactNative.StyleSheet.hairlineWidth },
1042
1149
  boxItem: { borderWidth: 1, borderRadius: BOX_BORDER_RADIUS, paddingHorizontal: BOX_PADDING_H },
1043
1150
  header: {
@@ -1111,19 +1218,19 @@ var AccordionItem = ({
1111
1218
  );
1112
1219
  const keyboardProps = reactNative.Platform.OS === "web" ? { onKeyDown: handleKeyDown2 } : {};
1113
1220
  const itemStyle = React8.useMemo(
1114
- () => boxed ? [styles11.boxItem, { borderColor: colors.border }] : [styles11.item, { borderTopColor: colors.border }],
1221
+ () => boxed ? [styles12.boxItem, { borderColor: colors.border }] : [styles12.item, { borderTopColor: colors.border }],
1115
1222
  [boxed, colors.border]
1116
1223
  );
1117
1224
  const headerStyle = React8.useMemo(
1118
1225
  () => [
1119
- styles11.header,
1120
- ...boxed ? [styles11.boxHeader] : [],
1226
+ styles12.header,
1227
+ ...boxed ? [styles12.boxHeader] : [],
1121
1228
  { opacity: disabled ? DISABLED_OPACITY : FULL_OPACITY }
1122
1229
  ],
1123
1230
  [boxed, disabled]
1124
1231
  );
1125
1232
  const resolvedLabel = accessibilityLabel ?? (typeof title === "string" ? title : void 0);
1126
- 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;
1233
+ 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;
1127
1234
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: itemStyle, children: [
1128
1235
  /* @__PURE__ */ jsxRuntime.jsxs(
1129
1236
  reactNative.Pressable,
@@ -1140,7 +1247,7 @@ var AccordionItem = ({
1140
1247
  onPress: handlePress,
1141
1248
  ...keyboardProps,
1142
1249
  children: [
1143
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles11.headerLeft, boxed ? styles11.headerLeftRow : null], children: [
1250
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles12.headerLeft, boxed ? styles12.headerLeftRow : null], children: [
1144
1251
  boxed ? (
1145
1252
  // Decorative — the open/closed state is already conveyed by aria-expanded on the header.
1146
1253
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -1149,15 +1256,15 @@ var AccordionItem = ({
1149
1256
  accessibilityElementsHidden: true,
1150
1257
  "aria-hidden": true,
1151
1258
  importantForAccessibility: "no-hide-descendants",
1152
- style: [styles11.marker, { transform: [{ rotate }] }],
1259
+ style: [styles12.marker, { transform: [{ rotate }] }],
1153
1260
  testID: chevronTestID,
1154
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.markerText, { color: colors.textSecondary }], children: BOX_MARKER })
1261
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.markerText, { color: colors.textSecondary }], children: BOX_MARKER })
1155
1262
  }
1156
1263
  )
1157
1264
  ) : null,
1158
1265
  titleNode
1159
1266
  ] }),
1160
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles11.headerRight, children: [
1267
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles12.headerRight, children: [
1161
1268
  right,
1162
1269
  boxed ? null : /* @__PURE__ */ jsxRuntime.jsx(
1163
1270
  reactNative.Animated.View,
@@ -1165,7 +1272,7 @@ var AccordionItem = ({
1165
1272
  accessibilityElementsHidden: true,
1166
1273
  "aria-hidden": true,
1167
1274
  importantForAccessibility: "no-hide-descendants",
1168
- style: [styles11.chevron, { transform: [{ rotate }] }],
1275
+ style: [styles12.chevron, { transform: [{ rotate }] }],
1169
1276
  children: /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color: colors.textSecondary, name: "chevronDown", size: CHEVRON_SIZE, testID: chevronTestID })
1170
1277
  }
1171
1278
  )
@@ -1179,7 +1286,7 @@ var AccordionItem = ({
1179
1286
  accessibilityLabel: resolvedLabel,
1180
1287
  nativeID: bodyTestID,
1181
1288
  role: ROLE_REGION,
1182
- style: boxed ? styles11.boxBody : styles11.body,
1289
+ style: boxed ? styles12.boxBody : styles12.body,
1183
1290
  testID: bodyTestID,
1184
1291
  children
1185
1292
  }
@@ -1242,7 +1349,7 @@ function useAvailableWidth() {
1242
1349
  var AVG_CHAR_WIDTH_RATIO = 0.58;
1243
1350
  var DEFAULT_FONT_SIZE2 = 13;
1244
1351
  var UNMEASURED2 = 0;
1245
- var styles12 = reactNative.StyleSheet.create({
1352
+ var styles13 = reactNative.StyleSheet.create({
1246
1353
  base: { fontSize: DEFAULT_FONT_SIZE2 },
1247
1354
  /** `minWidth: 0` lets the text shrink inside a flex row instead of forcing the row wider. */
1248
1355
  fill: { flexShrink: 1, minWidth: 0 }
@@ -1273,7 +1380,7 @@ var TruncatedText = ({
1273
1380
  [value, measureRef]
1274
1381
  );
1275
1382
  const flatStyle = React8.useMemo(
1276
- () => reactNative.StyleSheet.flatten([styles12.base, style]),
1383
+ () => reactNative.StyleSheet.flatten([styles13.base, style]),
1277
1384
  [style]
1278
1385
  );
1279
1386
  const fontSize = flatStyle.fontSize ?? DEFAULT_FONT_SIZE2;
@@ -1288,7 +1395,7 @@ var TruncatedText = ({
1288
1395
  ref: attachRef,
1289
1396
  onLayout,
1290
1397
  numberOfLines: 1,
1291
- style: [styles12.base, styles12.fill, style],
1398
+ style: [styles13.base, styles13.fill, style],
1292
1399
  testID,
1293
1400
  accessibilityRole: onPress !== void 0 || href !== void 0 ? "link" : "text",
1294
1401
  accessibilityLabel,
@@ -1385,13 +1492,13 @@ function useCopyToClipboard(value, writer) {
1385
1492
  var LABEL_FONT_SIZE = 11;
1386
1493
  var VALUE_FONT_SIZE = 12;
1387
1494
  var ACTION_FONT_SIZE = 12;
1388
- var ROW_GAP = 8;
1495
+ var ROW_GAP2 = 8;
1389
1496
  var CELL_GAP = 2;
1390
1497
  var LABEL_LETTER_SPACING = 0.4;
1391
1498
  var ACTION_PADDING_H = 6;
1392
1499
  var ACTION_PADDING_V = 2;
1393
1500
  var ACTION_RADIUS = 6;
1394
- var styles13 = reactNative.StyleSheet.create({
1501
+ var styles14 = reactNative.StyleSheet.create({
1395
1502
  cell: { gap: CELL_GAP },
1396
1503
  label: {
1397
1504
  fontSize: LABEL_FONT_SIZE,
@@ -1399,7 +1506,7 @@ var styles13 = reactNative.StyleSheet.create({
1399
1506
  letterSpacing: LABEL_LETTER_SPACING,
1400
1507
  textTransform: "uppercase"
1401
1508
  },
1402
- row: { flexDirection: "row", alignItems: "center", gap: ROW_GAP },
1509
+ row: { flexDirection: "row", alignItems: "center", gap: ROW_GAP2 },
1403
1510
  /**
1404
1511
  * The truncation width comes from this wrapper, not from the row: `TruncatedText` measures its
1405
1512
  * PARENT (see `useAvailableWidth`), and the row also holds the copy button.
@@ -1450,14 +1557,14 @@ var CopyableId = ({
1450
1557
  const { colors } = theme;
1451
1558
  const { status, copy } = useCopyToClipboard(value, writer);
1452
1559
  const action = useActionState(status);
1453
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles13.cell, style], testID, children: [
1454
- label !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.label, { color: colors.textSecondary }], children: label }),
1455
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles13.row, children: [
1456
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles13.valueWrap, children: /* @__PURE__ */ jsxRuntime.jsx(
1560
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles14.cell, style], testID, children: [
1561
+ label !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.label, { color: colors.textSecondary }], children: label }),
1562
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles14.row, children: [
1563
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles14.valueWrap, children: /* @__PURE__ */ jsxRuntime.jsx(
1457
1564
  TruncatedText,
1458
1565
  {
1459
1566
  value,
1460
- style: [styles13.value, { color: colors.text }],
1567
+ style: [styles14.value, { color: colors.text }],
1461
1568
  testID: `${testID}-value`,
1462
1569
  accessibilityLabel: accessibilityLabel ?? value,
1463
1570
  accessibilityHint: t(LAYOUT_I18N.copyableIdHint)
@@ -1471,7 +1578,7 @@ var CopyableId = ({
1471
1578
  accessibilityLabel: t(action.key),
1472
1579
  accessibilityHint: t(LAYOUT_I18N.copyHint),
1473
1580
  testID: `${testID}-copy`,
1474
- style: [styles13.action, { color: action.color }],
1581
+ style: [styles14.action, { color: action.color }],
1475
1582
  children: t(action.key)
1476
1583
  }
1477
1584
  )
@@ -1495,6 +1602,7 @@ exports.ModalShell = ModalShell;
1495
1602
  exports.Section = Section;
1496
1603
  exports.SegmentedControl = SegmentedControl;
1497
1604
  exports.StatusBadge = StatusBadge;
1605
+ exports.Tabs = Tabs;
1498
1606
  exports.TruncatedText = TruncatedText;
1499
1607
  exports.UpgradePrompt = UpgradePrompt;
1500
1608
  exports.copyText = copyText;