@dloizides/ui-layout 1.39.2 → 1.40.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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import React13, { createContext, useMemo, useState, useRef, useEffect, useCallback, useContext, useLayoutEffect } from 'react';
1
+ import React14, { createContext, useMemo, useState, useRef, useEffect, useCallback, useContext, useLayoutEffect } from 'react';
2
2
  import { StyleSheet, Platform, View, Text, useWindowDimensions, Modal as Modal$1, Animated, TouchableOpacity, ScrollView, Pressable, FlatList, Easing } from 'react-native';
3
3
  import { MODAL_OVERLAY_COLOR, useUi } from '@dloizides/ui-feedback';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -38,7 +38,7 @@ var Section = ({
38
38
  const { theme } = useUi();
39
39
  const isCard = variant === "card" /* Card */;
40
40
  const fill = isCard ? theme.colors.background : theme.colors.surface;
41
- const containerStyle = React13.useMemo(
41
+ const containerStyle = React14.useMemo(
42
42
  () => [styles.card, isCard ? styles.raised : null, { borderColor: theme.colors.border, backgroundColor: fill }, style],
43
43
  [theme.colors.border, fill, isCard, style]
44
44
  );
@@ -100,6 +100,7 @@ var LAYOUT_TEST_IDS = {
100
100
  /** Default base testID for the centered `Modal`; ✕ is `modal-close`, backdrop `modal-backdrop`. */
101
101
  modal: "modal",
102
102
  sideSheet: "side-sheet",
103
+ bottomSheet: "bottom-sheet",
103
104
  /** Default base testID for `ConfirmDialog`; Confirm/Cancel are `confirm-dialog-{confirm,cancel}`. */
104
105
  confirmDialog: "confirm-dialog",
105
106
  accordion: "accordion",
@@ -207,7 +208,7 @@ var Heading = ({
207
208
  testID
208
209
  }) => {
209
210
  const { theme } = useUi();
210
- const headingStyle = React13.useMemo(
211
+ const headingStyle = React14.useMemo(
211
212
  () => [styles3.heading, { color: theme.colors.text }, style],
212
213
  [theme.colors.text, style]
213
214
  );
@@ -1766,7 +1767,10 @@ var styles15 = StyleSheet.create({
1766
1767
  justifyContent: "space-between"
1767
1768
  },
1768
1769
  closeButton: {
1769
- padding: 6,
1770
+ minWidth: MIN_TOUCH_TARGET_PX,
1771
+ minHeight: MIN_TOUCH_TARGET_PX,
1772
+ alignItems: "center",
1773
+ justifyContent: "center",
1770
1774
  borderRadius: 6
1771
1775
  }
1772
1776
  });
@@ -1780,7 +1784,7 @@ var ModalShell = ({
1780
1784
  }) => {
1781
1785
  const { theme, t } = useUi();
1782
1786
  const { style: sheetStyle, mounted } = useEnterExit({ visible, fromScale: PANEL_ENTER_SCALE2 });
1783
- const containerStyle = React13.useMemo(
1787
+ const containerStyle = React14.useMemo(
1784
1788
  () => [styles15.container, { backgroundColor: theme.colors.background }, contentStyle],
1785
1789
  [theme.colors.background, contentStyle]
1786
1790
  );
@@ -1900,10 +1904,109 @@ var SideSheet = ({
1900
1904
  )
1901
1905
  ] }) });
1902
1906
  };
1907
+ var DEFAULT_MAX_HEIGHT_FRACTION = 0.92;
1908
+ var PERCENT = 100;
1909
+ var WIDE_MAX_WIDTH = 560;
1910
+ var TOP_CORNER = 16;
1911
+ var ENTER_OFFSET = 24;
1912
+ var CLOSE_ICON_SIZE2 = 18;
1913
+ var styles17 = StyleSheet.create({
1914
+ root: { flex: 1 },
1915
+ backdrop: { backgroundColor: MODAL_OVERLAY_COLOR, pointerEvents: "none" },
1916
+ panel: {
1917
+ position: "absolute",
1918
+ bottom: 0,
1919
+ left: 0,
1920
+ right: 0,
1921
+ overflow: "hidden",
1922
+ borderTopLeftRadius: TOP_CORNER,
1923
+ borderTopRightRadius: TOP_CORNER
1924
+ },
1925
+ wide: { maxWidth: WIDE_MAX_WIDTH, marginHorizontal: "auto" },
1926
+ header: { flexDirection: "row", alignItems: "center", gap: 8, paddingLeft: 16, paddingRight: 8, paddingTop: 8 },
1927
+ title: { flex: 1 },
1928
+ close: { minWidth: MIN_TOUCH_TARGET_PX, minHeight: MIN_TOUCH_TARGET_PX, alignItems: "center", justifyContent: "center" },
1929
+ body: { flexGrow: 0, flexShrink: 1 },
1930
+ content: { padding: 16, gap: 12 },
1931
+ footer: { padding: 16, borderTopWidth: 1 }
1932
+ });
1933
+ var BottomSheet = ({
1934
+ visible,
1935
+ onClose,
1936
+ title,
1937
+ children,
1938
+ footer,
1939
+ maxHeightFraction = DEFAULT_MAX_HEIGHT_FRACTION,
1940
+ testID = LAYOUT_TEST_IDS.bottomSheet,
1941
+ accessibilityLabel,
1942
+ initialFocusTestID
1943
+ }) => {
1944
+ const { theme, t } = useUi();
1945
+ const isWide = useIsWideViewport();
1946
+ const panelRef = useRef(null);
1947
+ const backdrop = useEnterExit({ visible });
1948
+ const panel = useEnterExit({ visible, translateY: ENTER_OFFSET });
1949
+ const hasFooter = footer !== void 0 && footer !== null;
1950
+ const panelSize = { maxHeight: `${maxHeightFraction * PERCENT}%` };
1951
+ useFocusTrap(panelRef, visible && panel.mounted, initialFocusTestID);
1952
+ useEscapeKey(visible, onClose);
1953
+ useScrollLock(visible);
1954
+ return /* @__PURE__ */ jsx(Modal$1, { transparent: true, visible: panel.mounted || backdrop.mounted, onRequestClose: onClose, children: /* @__PURE__ */ jsxs(View, { style: styles17.root, children: [
1955
+ /* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, styles17.backdrop, { opacity: backdrop.style.opacity }] }),
1956
+ /* @__PURE__ */ jsx(
1957
+ Pressable,
1958
+ {
1959
+ accessibilityHint: t(LAYOUT_I18N.closeDialogHint),
1960
+ accessibilityLabel: t(LAYOUT_I18N.dialogClose),
1961
+ accessibilityRole: "button",
1962
+ style: StyleSheet.absoluteFill,
1963
+ testID: `${testID}-backdrop`,
1964
+ onPress: onClose
1965
+ }
1966
+ ),
1967
+ /* @__PURE__ */ jsxs(
1968
+ Animated.View,
1969
+ {
1970
+ ref: panelRef,
1971
+ accessibilityViewIsModal: true,
1972
+ "aria-modal": true,
1973
+ "aria-label": accessibilityLabel ?? title,
1974
+ role: "dialog",
1975
+ style: [
1976
+ styles17.panel,
1977
+ isWide ? styles17.wide : null,
1978
+ panelSize,
1979
+ { backgroundColor: theme.colors.surface },
1980
+ panel.style
1981
+ ],
1982
+ testID,
1983
+ children: [
1984
+ /* @__PURE__ */ jsxs(View, { style: styles17.header, children: [
1985
+ /* @__PURE__ */ jsx(View, { style: styles17.title, children: /* @__PURE__ */ jsx(AppText, { kind: "title" /* Title */, children: title }) }),
1986
+ /* @__PURE__ */ jsx(
1987
+ TouchableOpacity,
1988
+ {
1989
+ accessibilityHint: t(LAYOUT_I18N.closeDialogHint),
1990
+ accessibilityLabel: t(LAYOUT_I18N.dialogClose),
1991
+ accessibilityRole: "button",
1992
+ style: styles17.close,
1993
+ testID: `${testID}-close`,
1994
+ onPress: onClose,
1995
+ children: /* @__PURE__ */ jsx(SvgIcon, { color: theme.colors.textSecondary, name: "close", size: CLOSE_ICON_SIZE2 })
1996
+ }
1997
+ )
1998
+ ] }),
1999
+ /* @__PURE__ */ jsx(ScrollView, { contentContainerStyle: styles17.content, style: styles17.body, children }),
2000
+ hasFooter ? /* @__PURE__ */ jsx(View, { style: [styles17.footer, { borderColor: theme.colors.border }], testID: `${testID}-footer`, children: footer }) : null
2001
+ ]
2002
+ }
2003
+ )
2004
+ ] }) });
2005
+ };
1903
2006
  var MESSAGE_FONT_SIZE2 = 14;
1904
2007
  var MESSAGE_LINE_HEIGHT = 20;
1905
2008
  var BUTTON_GAP = 12;
1906
- var styles17 = StyleSheet.create({
2009
+ var styles18 = StyleSheet.create({
1907
2010
  message: { fontSize: MESSAGE_FONT_SIZE2, lineHeight: MESSAGE_LINE_HEIGHT },
1908
2011
  footer: { flexDirection: "row", justifyContent: "flex-end", columnGap: BUTTON_GAP }
1909
2012
  });
@@ -1922,7 +2025,7 @@ var ConfirmDialog = ({
1922
2025
  const { theme, t } = useUi();
1923
2026
  const resolvedConfirm = confirmLabel ?? t(LAYOUT_I18N.confirm);
1924
2027
  const resolvedCancel = cancelLabel ?? t(LAYOUT_I18N.cancel);
1925
- const footer = /* @__PURE__ */ jsxs(View, { style: styles17.footer, children: [
2028
+ const footer = /* @__PURE__ */ jsxs(View, { style: styles18.footer, children: [
1926
2029
  /* @__PURE__ */ jsx(
1927
2030
  Button,
1928
2031
  {
@@ -1958,7 +2061,7 @@ var ConfirmDialog = ({
1958
2061
  title,
1959
2062
  visible,
1960
2063
  onClose: onCancel,
1961
- children: /* @__PURE__ */ jsx(Text, { style: [styles17.message, { color: theme.colors.text }], testID: `${testID}-message`, children: message })
2064
+ children: /* @__PURE__ */ jsx(Text, { style: [styles18.message, { color: theme.colors.text }], testID: `${testID}-message`, children: message })
1962
2065
  }
1963
2066
  );
1964
2067
  };
@@ -1971,14 +2074,14 @@ function useAccordionContext() {
1971
2074
  return value;
1972
2075
  }
1973
2076
  var BOXED_GAP = 12;
1974
- var styles18 = StyleSheet.create({
2077
+ var styles19 = StyleSheet.create({
1975
2078
  container: { alignSelf: "stretch" },
1976
2079
  boxed: { gap: BOXED_GAP }
1977
2080
  });
1978
2081
  function computeInitialOpen(children, defaultOpenIds, allowMultiple) {
1979
2082
  const ids = new Set(defaultOpenIds ?? []);
1980
- React13.Children.forEach(children, (child) => {
1981
- if (!React13.isValidElement(child)) return;
2083
+ React14.Children.forEach(children, (child) => {
2084
+ if (!React14.isValidElement(child)) return;
1982
2085
  const props = child.props;
1983
2086
  if (props.defaultOpen === true && typeof props.id === "string") {
1984
2087
  ids.add(props.id);
@@ -2028,7 +2131,7 @@ var Accordion = ({
2028
2131
  [openSet, toggle, allowMultiple, variant]
2029
2132
  );
2030
2133
  const containerStyle = useMemo(() => {
2031
- const base = variant === "boxed" ? [styles18.container, styles18.boxed] : [styles18.container];
2134
+ const base = variant === "boxed" ? [styles19.container, styles19.boxed] : [styles19.container];
2032
2135
  if (style === void 0) return base;
2033
2136
  return [...base, ...Array.isArray(style) ? style : [style]];
2034
2137
  }, [style, variant]);
@@ -2060,7 +2163,7 @@ var BOX_TITLE_FONT_SIZE = 14;
2060
2163
  var BOX_MARKER_FONT_SIZE = 13;
2061
2164
  var BOX_MARKER_GAP = 6;
2062
2165
  var BOX_MARKER = "\u25B8";
2063
- var styles19 = StyleSheet.create({
2166
+ var styles20 = StyleSheet.create({
2064
2167
  item: { borderTopWidth: StyleSheet.hairlineWidth },
2065
2168
  boxItem: { borderWidth: 1, borderRadius: BOX_BORDER_RADIUS, paddingHorizontal: BOX_PADDING_H },
2066
2169
  header: {
@@ -2136,19 +2239,19 @@ var AccordionItem = ({
2136
2239
  );
2137
2240
  const keyboardProps = Platform.OS === "web" ? { onKeyDown: handleKeyDown2 } : {};
2138
2241
  const itemStyle = useMemo(
2139
- () => boxed ? [styles19.boxItem, { borderColor: colors.border }] : [styles19.item, { borderTopColor: colors.border }],
2242
+ () => boxed ? [styles20.boxItem, { borderColor: colors.border }] : [styles20.item, { borderTopColor: colors.border }],
2140
2243
  [boxed, colors.border]
2141
2244
  );
2142
2245
  const headerStyle = useMemo(
2143
2246
  () => [
2144
- styles19.header,
2145
- ...boxed ? [styles19.boxHeader] : [],
2247
+ styles20.header,
2248
+ ...boxed ? [styles20.boxHeader] : [],
2146
2249
  { opacity: disabled ? DISABLED_OPACITY : FULL_OPACITY }
2147
2250
  ],
2148
2251
  [boxed, disabled]
2149
2252
  );
2150
2253
  const resolvedLabel = accessibilityLabel ?? (typeof title === "string" ? title : void 0);
2151
- const titleNode = typeof title === "string" ? /* @__PURE__ */ jsx(Text, { style: [boxed ? styles19.boxTitle : styles19.title, { color: boxed ? colors.textSecondary : colors.text }], children: title }) : title;
2254
+ const titleNode = typeof title === "string" ? /* @__PURE__ */ jsx(Text, { style: [boxed ? styles20.boxTitle : styles20.title, { color: boxed ? colors.textSecondary : colors.text }], children: title }) : title;
2152
2255
  return /* @__PURE__ */ jsxs(View, { style: itemStyle, children: [
2153
2256
  /* @__PURE__ */ jsxs(
2154
2257
  Pressable,
@@ -2165,7 +2268,7 @@ var AccordionItem = ({
2165
2268
  onPress: handlePress,
2166
2269
  ...keyboardProps,
2167
2270
  children: [
2168
- /* @__PURE__ */ jsxs(View, { style: [styles19.headerLeft, boxed ? styles19.headerLeftRow : null], children: [
2271
+ /* @__PURE__ */ jsxs(View, { style: [styles20.headerLeft, boxed ? styles20.headerLeftRow : null], children: [
2169
2272
  boxed ? (
2170
2273
  // Decorative — the open/closed state is already conveyed by aria-expanded on the header.
2171
2274
  /* @__PURE__ */ jsx(
@@ -2174,15 +2277,15 @@ var AccordionItem = ({
2174
2277
  accessibilityElementsHidden: true,
2175
2278
  "aria-hidden": true,
2176
2279
  importantForAccessibility: "no-hide-descendants",
2177
- style: [styles19.marker, { transform: [{ rotate }] }],
2280
+ style: [styles20.marker, { transform: [{ rotate }] }],
2178
2281
  testID: chevronTestID,
2179
- children: /* @__PURE__ */ jsx(Text, { style: [styles19.markerText, { color: colors.textSecondary }], children: BOX_MARKER })
2282
+ children: /* @__PURE__ */ jsx(Text, { style: [styles20.markerText, { color: colors.textSecondary }], children: BOX_MARKER })
2180
2283
  }
2181
2284
  )
2182
2285
  ) : null,
2183
2286
  titleNode
2184
2287
  ] }),
2185
- /* @__PURE__ */ jsxs(View, { style: styles19.headerRight, children: [
2288
+ /* @__PURE__ */ jsxs(View, { style: styles20.headerRight, children: [
2186
2289
  right,
2187
2290
  boxed ? null : /* @__PURE__ */ jsx(
2188
2291
  Animated.View,
@@ -2190,7 +2293,7 @@ var AccordionItem = ({
2190
2293
  accessibilityElementsHidden: true,
2191
2294
  "aria-hidden": true,
2192
2295
  importantForAccessibility: "no-hide-descendants",
2193
- style: [styles19.chevron, { transform: [{ rotate }] }],
2296
+ style: [styles20.chevron, { transform: [{ rotate }] }],
2194
2297
  children: /* @__PURE__ */ jsx(SvgIcon, { color: colors.textSecondary, name: "chevronDown", size: CHEVRON_SIZE, testID: chevronTestID })
2195
2298
  }
2196
2299
  )
@@ -2204,7 +2307,7 @@ var AccordionItem = ({
2204
2307
  accessibilityLabel: resolvedLabel,
2205
2308
  nativeID: bodyTestID,
2206
2309
  role: ROLE_REGION,
2207
- style: boxed ? styles19.boxBody : styles19.body,
2310
+ style: boxed ? styles20.boxBody : styles20.body,
2208
2311
  testID: bodyTestID,
2209
2312
  children
2210
2313
  }
@@ -2267,7 +2370,7 @@ function useAvailableWidth() {
2267
2370
  var AVG_CHAR_WIDTH_RATIO = 0.58;
2268
2371
  var DEFAULT_FONT_SIZE2 = 13;
2269
2372
  var UNMEASURED2 = 0;
2270
- var styles20 = StyleSheet.create({
2373
+ var styles21 = StyleSheet.create({
2271
2374
  base: { fontSize: DEFAULT_FONT_SIZE2 },
2272
2375
  /** `minWidth: 0` lets the text shrink inside a flex row instead of forcing the row wider. */
2273
2376
  fill: { flexShrink: 1, minWidth: 0 }
@@ -2298,7 +2401,7 @@ var TruncatedText = ({
2298
2401
  [value, measureRef]
2299
2402
  );
2300
2403
  const flatStyle = useMemo(
2301
- () => StyleSheet.flatten([styles20.base, style]),
2404
+ () => StyleSheet.flatten([styles21.base, style]),
2302
2405
  [style]
2303
2406
  );
2304
2407
  const fontSize = flatStyle.fontSize ?? DEFAULT_FONT_SIZE2;
@@ -2313,7 +2416,7 @@ var TruncatedText = ({
2313
2416
  ref: attachRef,
2314
2417
  onLayout,
2315
2418
  numberOfLines: 1,
2316
- style: [styles20.base, styles20.fill, style],
2419
+ style: [styles21.base, styles21.fill, style],
2317
2420
  testID,
2318
2421
  accessibilityRole: onPress !== void 0 || href !== void 0 ? "link" : "text",
2319
2422
  accessibilityLabel,
@@ -2416,7 +2519,7 @@ var LABEL_LETTER_SPACING = 0.4;
2416
2519
  var ACTION_PADDING_H = 6;
2417
2520
  var ACTION_PADDING_V = 2;
2418
2521
  var ACTION_RADIUS = 6;
2419
- var styles21 = StyleSheet.create({
2522
+ var styles22 = StyleSheet.create({
2420
2523
  cell: { gap: CELL_GAP },
2421
2524
  label: {
2422
2525
  fontSize: LABEL_FONT_SIZE,
@@ -2481,14 +2584,14 @@ var CopyableId = ({
2481
2584
  const { colors } = theme;
2482
2585
  const { status, copy } = useCopyToClipboard(value, writer);
2483
2586
  const action = useActionState(status);
2484
- return /* @__PURE__ */ jsxs(View, { style: [styles21.cell, style], testID, children: [
2485
- label !== void 0 && /* @__PURE__ */ jsx(Text, { style: [styles21.label, { color: colors.textSecondary }], children: label }),
2486
- /* @__PURE__ */ jsxs(View, { style: styles21.row, children: [
2487
- /* @__PURE__ */ jsx(View, { style: styles21.valueWrap, children: /* @__PURE__ */ jsx(
2587
+ return /* @__PURE__ */ jsxs(View, { style: [styles22.cell, style], testID, children: [
2588
+ label !== void 0 && /* @__PURE__ */ jsx(Text, { style: [styles22.label, { color: colors.textSecondary }], children: label }),
2589
+ /* @__PURE__ */ jsxs(View, { style: styles22.row, children: [
2590
+ /* @__PURE__ */ jsx(View, { style: styles22.valueWrap, children: /* @__PURE__ */ jsx(
2488
2591
  TruncatedText,
2489
2592
  {
2490
2593
  value,
2491
- style: [styles21.value, { color: colors.text }],
2594
+ style: [styles22.value, { color: colors.text }],
2492
2595
  testID: `${testID}-value`,
2493
2596
  accessibilityLabel: accessibilityLabel ?? value,
2494
2597
  accessibilityHint: t(LAYOUT_I18N.copyableIdHint)
@@ -2502,7 +2605,7 @@ var CopyableId = ({
2502
2605
  accessibilityLabel: t(action.key),
2503
2606
  accessibilityHint: t(LAYOUT_I18N.copyHint),
2504
2607
  testID: `${testID}-copy`,
2505
- style: [styles21.action, { color: action.color }],
2608
+ style: [styles22.action, { color: action.color }],
2506
2609
  children: t(action.key)
2507
2610
  }
2508
2611
  )
@@ -2557,7 +2660,7 @@ var FOOTER_PADDING_V = 6;
2557
2660
  var FOOTER_PADDING_H = 12;
2558
2661
  var FOOTER_FONT_SIZE = 11;
2559
2662
  var FOOTER_OPACITY = 0.75;
2560
- var styles22 = StyleSheet.create({
2663
+ var styles23 = StyleSheet.create({
2561
2664
  footer: {
2562
2665
  paddingVertical: FOOTER_PADDING_V,
2563
2666
  paddingHorizontal: FOOTER_PADDING_H,
@@ -2583,7 +2686,7 @@ var BuildInfoFooter = ({
2583
2686
  const commit = apiCommit ?? fetchedCommit;
2584
2687
  const label = formatBuildInfo(buildVersion, commit);
2585
2688
  const textStyle = useMemo(
2586
- () => [styles22.text, { color: theme.colors.textSecondary }],
2689
+ () => [styles23.text, { color: theme.colors.textSecondary }],
2587
2690
  [theme.colors.textSecondary]
2588
2691
  );
2589
2692
  return /* @__PURE__ */ jsx(
@@ -2591,7 +2694,7 @@ var BuildInfoFooter = ({
2591
2694
  {
2592
2695
  accessibilityLabel: accessibilityLabel ?? label,
2593
2696
  accessibilityHint: accessibilityHint ?? t(LAYOUT_I18N.buildInfoHint),
2594
- style: [styles22.footer, style],
2697
+ style: [styles23.footer, style],
2595
2698
  testID,
2596
2699
  children: /* @__PURE__ */ jsx(Text, { style: textStyle, children: label })
2597
2700
  }
@@ -2602,7 +2705,7 @@ var BORDER = 2;
2602
2705
  var GLYPH_SIZE = 14;
2603
2706
  var GLYPH_LINE = 16;
2604
2707
  var TICK = "\u2713";
2605
- var styles23 = StyleSheet.create({
2708
+ var styles24 = StyleSheet.create({
2606
2709
  circle: {
2607
2710
  width: SIZE,
2608
2711
  height: SIZE,
@@ -2619,9 +2722,9 @@ var CheckMark = ({ filled, accent, ring, glyphColor, testID }) => /* @__PURE__ *
2619
2722
  "aria-hidden": true,
2620
2723
  accessibilityElementsHidden: true,
2621
2724
  importantForAccessibility: "no-hide-descendants",
2622
- style: [styles23.circle, { borderColor: filled ? accent : ring, backgroundColor: filled ? accent : void 0 }],
2725
+ style: [styles24.circle, { borderColor: filled ? accent : ring, backgroundColor: filled ? accent : void 0 }],
2623
2726
  testID,
2624
- children: filled ? /* @__PURE__ */ jsx(Text, { style: [styles23.glyph, { color: glyphColor }], children: TICK }) : null
2727
+ children: filled ? /* @__PURE__ */ jsx(Text, { style: [styles24.glyph, { color: glyphColor }], children: TICK }) : null
2625
2728
  }
2626
2729
  );
2627
2730
  var ListRowToneContext = createContext(null);
@@ -2744,7 +2847,7 @@ var PAD_V = 12;
2744
2847
  var GAP = 4;
2745
2848
  var MARK_GAP = 12;
2746
2849
  var LINE_GAP = 8;
2747
- var styles24 = StyleSheet.create({
2850
+ var styles25 = StyleSheet.create({
2748
2851
  row: {
2749
2852
  flexDirection: "row",
2750
2853
  alignItems: "center",
@@ -2768,7 +2871,7 @@ function focusTarget(event) {
2768
2871
  }
2769
2872
  function slot(node, color, strong) {
2770
2873
  if (typeof node !== "string") return node;
2771
- return /* @__PURE__ */ jsx(Text, { style: [styles24.shrink, strong ? styles24.strong : null, { color }], children: node });
2874
+ return /* @__PURE__ */ jsx(Text, { style: [styles25.shrink, strong ? styles25.strong : null, { color }], children: node });
2772
2875
  }
2773
2876
  var ListRow = ({
2774
2877
  title,
@@ -2800,7 +2903,7 @@ var ListRow = ({
2800
2903
  style: (state) => {
2801
2904
  const { pressed, hovered } = state;
2802
2905
  const look = resolveRowLook(selectedStyle, { selected, pressed, focused, hovered: hovered === true }, palette);
2803
- return [styles24.row, { borderTopColor: colors.border }, look.container];
2906
+ return [styles25.row, { borderTopColor: colors.border }, look.container];
2804
2907
  },
2805
2908
  testID,
2806
2909
  onBlur: () => {
@@ -2813,14 +2916,14 @@ var ListRow = ({
2813
2916
  ...pressedProps(selected),
2814
2917
  children: [
2815
2918
  rest.showCheck ? /* @__PURE__ */ jsx(CheckMark, { accent: palette.accent, filled: rest.checkFilled, glyphColor: palette.background, ring: palette.border, testID: checkTestId }) : null,
2816
- /* @__PURE__ */ jsxs(View, { style: styles24.body, children: [
2817
- /* @__PURE__ */ jsxs(View, { style: styles24.line, children: [
2919
+ /* @__PURE__ */ jsxs(View, { style: styles25.body, children: [
2920
+ /* @__PURE__ */ jsxs(View, { style: styles25.line, children: [
2818
2921
  slot(title, rest.titleColor, true),
2819
2922
  slot(trailing, rest.textColor, true)
2820
2923
  ] }),
2821
- /* @__PURE__ */ jsxs(View, { style: styles24.line, children: [
2822
- /* @__PURE__ */ jsx(View, { style: styles24.shrink, children: slot(meta, rest.textColor, false) }),
2823
- badges === void 0 ? null : /* @__PURE__ */ jsx(View, { style: styles24.badges, children: badges })
2924
+ /* @__PURE__ */ jsxs(View, { style: styles25.line, children: [
2925
+ /* @__PURE__ */ jsx(View, { style: styles25.shrink, children: slot(meta, rest.textColor, false) }),
2926
+ badges === void 0 ? null : /* @__PURE__ */ jsx(View, { style: styles25.badges, children: badges })
2824
2927
  ] })
2825
2928
  ] })
2826
2929
  ]
@@ -2830,6 +2933,6 @@ var ListRow = ({
2830
2933
  ] });
2831
2934
  };
2832
2935
 
2833
- export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, AppText, BUILD_INFO_PREFIX, BuildInfoFooter, COPY_FEEDBACK_MS, ConfirmDialog, CopyStatus, CopyableId, DEFAULT_BILLING_ROUTE, DropdownVariant, ELLIPSIS, Heading, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListRow, MIN_TARGET_PX, Modal, ModalDropdown, ModalShell, PageFrame, RowSelectedStyle, ScreenColumn, Section, SectionVariant, SegmentedControl, SelectedMarker, SideSheet, StatusBadge, StickyPreview, TYPE_SCALE_BREAKPOINT, Tabs, TabsCollapsedTrigger, TextKind, TruncatedText, UpgradePrompt, copyText, formatBuildInfo, formatUrlForDisplay, isKeyboardOpen, isWideWebViewport, pageScale, resolveRowLook, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
2936
+ export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, AppText, BUILD_INFO_PREFIX, BottomSheet, BuildInfoFooter, COPY_FEEDBACK_MS, ConfirmDialog, CopyStatus, CopyableId, DEFAULT_BILLING_ROUTE, DropdownVariant, ELLIPSIS, Heading, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListRow, MIN_TARGET_PX, Modal, ModalDropdown, ModalShell, PageFrame, RowSelectedStyle, ScreenColumn, Section, SectionVariant, SegmentedControl, SelectedMarker, SideSheet, StatusBadge, StickyPreview, TYPE_SCALE_BREAKPOINT, Tabs, TabsCollapsedTrigger, TextKind, TruncatedText, UpgradePrompt, copyText, formatBuildInfo, formatUrlForDisplay, isKeyboardOpen, isWideWebViewport, pageScale, resolveRowLook, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
2834
2937
  //# sourceMappingURL=index.mjs.map
2835
2938
  //# sourceMappingURL=index.mjs.map