@dloizides/ui-layout 1.39.3 → 1.40.1

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
  );
@@ -1783,7 +1784,7 @@ var ModalShell = ({
1783
1784
  }) => {
1784
1785
  const { theme, t } = useUi();
1785
1786
  const { style: sheetStyle, mounted } = useEnterExit({ visible, fromScale: PANEL_ENTER_SCALE2 });
1786
- const containerStyle = React13.useMemo(
1787
+ const containerStyle = React14.useMemo(
1787
1788
  () => [styles15.container, { backgroundColor: theme.colors.background }, contentStyle],
1788
1789
  [theme.colors.background, contentStyle]
1789
1790
  );
@@ -1903,10 +1904,110 @@ var SideSheet = ({
1903
1904
  )
1904
1905
  ] }) });
1905
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
+ const hardwareBackClose = Platform.OS === "web" ? void 0 : onClose;
1955
+ return /* @__PURE__ */ jsx(Modal$1, { transparent: true, visible: panel.mounted || backdrop.mounted, onRequestClose: hardwareBackClose, children: /* @__PURE__ */ jsxs(View, { style: styles17.root, children: [
1956
+ /* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, styles17.backdrop, { opacity: backdrop.style.opacity }] }),
1957
+ /* @__PURE__ */ jsx(
1958
+ Pressable,
1959
+ {
1960
+ accessibilityHint: t(LAYOUT_I18N.closeDialogHint),
1961
+ accessibilityLabel: t(LAYOUT_I18N.dialogClose),
1962
+ accessibilityRole: "button",
1963
+ style: StyleSheet.absoluteFill,
1964
+ testID: `${testID}-backdrop`,
1965
+ onPress: onClose
1966
+ }
1967
+ ),
1968
+ /* @__PURE__ */ jsxs(
1969
+ Animated.View,
1970
+ {
1971
+ ref: panelRef,
1972
+ accessibilityViewIsModal: true,
1973
+ "aria-modal": true,
1974
+ "aria-label": accessibilityLabel ?? title,
1975
+ role: "dialog",
1976
+ style: [
1977
+ styles17.panel,
1978
+ isWide ? styles17.wide : null,
1979
+ panelSize,
1980
+ { backgroundColor: theme.colors.surface },
1981
+ panel.style
1982
+ ],
1983
+ testID,
1984
+ children: [
1985
+ /* @__PURE__ */ jsxs(View, { style: styles17.header, children: [
1986
+ /* @__PURE__ */ jsx(View, { style: styles17.title, children: /* @__PURE__ */ jsx(AppText, { kind: "title" /* Title */, children: title }) }),
1987
+ /* @__PURE__ */ jsx(
1988
+ TouchableOpacity,
1989
+ {
1990
+ accessibilityHint: t(LAYOUT_I18N.closeDialogHint),
1991
+ accessibilityLabel: t(LAYOUT_I18N.dialogClose),
1992
+ accessibilityRole: "button",
1993
+ style: styles17.close,
1994
+ testID: `${testID}-close`,
1995
+ onPress: onClose,
1996
+ children: /* @__PURE__ */ jsx(SvgIcon, { color: theme.colors.textSecondary, name: "close", size: CLOSE_ICON_SIZE2 })
1997
+ }
1998
+ )
1999
+ ] }),
2000
+ /* @__PURE__ */ jsx(ScrollView, { contentContainerStyle: styles17.content, style: styles17.body, children }),
2001
+ hasFooter ? /* @__PURE__ */ jsx(View, { style: [styles17.footer, { borderColor: theme.colors.border }], testID: `${testID}-footer`, children: footer }) : null
2002
+ ]
2003
+ }
2004
+ )
2005
+ ] }) });
2006
+ };
1906
2007
  var MESSAGE_FONT_SIZE2 = 14;
1907
2008
  var MESSAGE_LINE_HEIGHT = 20;
1908
2009
  var BUTTON_GAP = 12;
1909
- var styles17 = StyleSheet.create({
2010
+ var styles18 = StyleSheet.create({
1910
2011
  message: { fontSize: MESSAGE_FONT_SIZE2, lineHeight: MESSAGE_LINE_HEIGHT },
1911
2012
  footer: { flexDirection: "row", justifyContent: "flex-end", columnGap: BUTTON_GAP }
1912
2013
  });
@@ -1925,7 +2026,7 @@ var ConfirmDialog = ({
1925
2026
  const { theme, t } = useUi();
1926
2027
  const resolvedConfirm = confirmLabel ?? t(LAYOUT_I18N.confirm);
1927
2028
  const resolvedCancel = cancelLabel ?? t(LAYOUT_I18N.cancel);
1928
- const footer = /* @__PURE__ */ jsxs(View, { style: styles17.footer, children: [
2029
+ const footer = /* @__PURE__ */ jsxs(View, { style: styles18.footer, children: [
1929
2030
  /* @__PURE__ */ jsx(
1930
2031
  Button,
1931
2032
  {
@@ -1961,7 +2062,7 @@ var ConfirmDialog = ({
1961
2062
  title,
1962
2063
  visible,
1963
2064
  onClose: onCancel,
1964
- children: /* @__PURE__ */ jsx(Text, { style: [styles17.message, { color: theme.colors.text }], testID: `${testID}-message`, children: message })
2065
+ children: /* @__PURE__ */ jsx(Text, { style: [styles18.message, { color: theme.colors.text }], testID: `${testID}-message`, children: message })
1965
2066
  }
1966
2067
  );
1967
2068
  };
@@ -1974,14 +2075,14 @@ function useAccordionContext() {
1974
2075
  return value;
1975
2076
  }
1976
2077
  var BOXED_GAP = 12;
1977
- var styles18 = StyleSheet.create({
2078
+ var styles19 = StyleSheet.create({
1978
2079
  container: { alignSelf: "stretch" },
1979
2080
  boxed: { gap: BOXED_GAP }
1980
2081
  });
1981
2082
  function computeInitialOpen(children, defaultOpenIds, allowMultiple) {
1982
2083
  const ids = new Set(defaultOpenIds ?? []);
1983
- React13.Children.forEach(children, (child) => {
1984
- if (!React13.isValidElement(child)) return;
2084
+ React14.Children.forEach(children, (child) => {
2085
+ if (!React14.isValidElement(child)) return;
1985
2086
  const props = child.props;
1986
2087
  if (props.defaultOpen === true && typeof props.id === "string") {
1987
2088
  ids.add(props.id);
@@ -2031,7 +2132,7 @@ var Accordion = ({
2031
2132
  [openSet, toggle, allowMultiple, variant]
2032
2133
  );
2033
2134
  const containerStyle = useMemo(() => {
2034
- const base = variant === "boxed" ? [styles18.container, styles18.boxed] : [styles18.container];
2135
+ const base = variant === "boxed" ? [styles19.container, styles19.boxed] : [styles19.container];
2035
2136
  if (style === void 0) return base;
2036
2137
  return [...base, ...Array.isArray(style) ? style : [style]];
2037
2138
  }, [style, variant]);
@@ -2063,7 +2164,7 @@ var BOX_TITLE_FONT_SIZE = 14;
2063
2164
  var BOX_MARKER_FONT_SIZE = 13;
2064
2165
  var BOX_MARKER_GAP = 6;
2065
2166
  var BOX_MARKER = "\u25B8";
2066
- var styles19 = StyleSheet.create({
2167
+ var styles20 = StyleSheet.create({
2067
2168
  item: { borderTopWidth: StyleSheet.hairlineWidth },
2068
2169
  boxItem: { borderWidth: 1, borderRadius: BOX_BORDER_RADIUS, paddingHorizontal: BOX_PADDING_H },
2069
2170
  header: {
@@ -2139,19 +2240,19 @@ var AccordionItem = ({
2139
2240
  );
2140
2241
  const keyboardProps = Platform.OS === "web" ? { onKeyDown: handleKeyDown2 } : {};
2141
2242
  const itemStyle = useMemo(
2142
- () => boxed ? [styles19.boxItem, { borderColor: colors.border }] : [styles19.item, { borderTopColor: colors.border }],
2243
+ () => boxed ? [styles20.boxItem, { borderColor: colors.border }] : [styles20.item, { borderTopColor: colors.border }],
2143
2244
  [boxed, colors.border]
2144
2245
  );
2145
2246
  const headerStyle = useMemo(
2146
2247
  () => [
2147
- styles19.header,
2148
- ...boxed ? [styles19.boxHeader] : [],
2248
+ styles20.header,
2249
+ ...boxed ? [styles20.boxHeader] : [],
2149
2250
  { opacity: disabled ? DISABLED_OPACITY : FULL_OPACITY }
2150
2251
  ],
2151
2252
  [boxed, disabled]
2152
2253
  );
2153
2254
  const resolvedLabel = accessibilityLabel ?? (typeof title === "string" ? title : void 0);
2154
- const titleNode = typeof title === "string" ? /* @__PURE__ */ jsx(Text, { style: [boxed ? styles19.boxTitle : styles19.title, { color: boxed ? colors.textSecondary : colors.text }], children: title }) : title;
2255
+ const titleNode = typeof title === "string" ? /* @__PURE__ */ jsx(Text, { style: [boxed ? styles20.boxTitle : styles20.title, { color: boxed ? colors.textSecondary : colors.text }], children: title }) : title;
2155
2256
  return /* @__PURE__ */ jsxs(View, { style: itemStyle, children: [
2156
2257
  /* @__PURE__ */ jsxs(
2157
2258
  Pressable,
@@ -2168,7 +2269,7 @@ var AccordionItem = ({
2168
2269
  onPress: handlePress,
2169
2270
  ...keyboardProps,
2170
2271
  children: [
2171
- /* @__PURE__ */ jsxs(View, { style: [styles19.headerLeft, boxed ? styles19.headerLeftRow : null], children: [
2272
+ /* @__PURE__ */ jsxs(View, { style: [styles20.headerLeft, boxed ? styles20.headerLeftRow : null], children: [
2172
2273
  boxed ? (
2173
2274
  // Decorative — the open/closed state is already conveyed by aria-expanded on the header.
2174
2275
  /* @__PURE__ */ jsx(
@@ -2177,15 +2278,15 @@ var AccordionItem = ({
2177
2278
  accessibilityElementsHidden: true,
2178
2279
  "aria-hidden": true,
2179
2280
  importantForAccessibility: "no-hide-descendants",
2180
- style: [styles19.marker, { transform: [{ rotate }] }],
2281
+ style: [styles20.marker, { transform: [{ rotate }] }],
2181
2282
  testID: chevronTestID,
2182
- children: /* @__PURE__ */ jsx(Text, { style: [styles19.markerText, { color: colors.textSecondary }], children: BOX_MARKER })
2283
+ children: /* @__PURE__ */ jsx(Text, { style: [styles20.markerText, { color: colors.textSecondary }], children: BOX_MARKER })
2183
2284
  }
2184
2285
  )
2185
2286
  ) : null,
2186
2287
  titleNode
2187
2288
  ] }),
2188
- /* @__PURE__ */ jsxs(View, { style: styles19.headerRight, children: [
2289
+ /* @__PURE__ */ jsxs(View, { style: styles20.headerRight, children: [
2189
2290
  right,
2190
2291
  boxed ? null : /* @__PURE__ */ jsx(
2191
2292
  Animated.View,
@@ -2193,7 +2294,7 @@ var AccordionItem = ({
2193
2294
  accessibilityElementsHidden: true,
2194
2295
  "aria-hidden": true,
2195
2296
  importantForAccessibility: "no-hide-descendants",
2196
- style: [styles19.chevron, { transform: [{ rotate }] }],
2297
+ style: [styles20.chevron, { transform: [{ rotate }] }],
2197
2298
  children: /* @__PURE__ */ jsx(SvgIcon, { color: colors.textSecondary, name: "chevronDown", size: CHEVRON_SIZE, testID: chevronTestID })
2198
2299
  }
2199
2300
  )
@@ -2207,7 +2308,7 @@ var AccordionItem = ({
2207
2308
  accessibilityLabel: resolvedLabel,
2208
2309
  nativeID: bodyTestID,
2209
2310
  role: ROLE_REGION,
2210
- style: boxed ? styles19.boxBody : styles19.body,
2311
+ style: boxed ? styles20.boxBody : styles20.body,
2211
2312
  testID: bodyTestID,
2212
2313
  children
2213
2314
  }
@@ -2270,7 +2371,7 @@ function useAvailableWidth() {
2270
2371
  var AVG_CHAR_WIDTH_RATIO = 0.58;
2271
2372
  var DEFAULT_FONT_SIZE2 = 13;
2272
2373
  var UNMEASURED2 = 0;
2273
- var styles20 = StyleSheet.create({
2374
+ var styles21 = StyleSheet.create({
2274
2375
  base: { fontSize: DEFAULT_FONT_SIZE2 },
2275
2376
  /** `minWidth: 0` lets the text shrink inside a flex row instead of forcing the row wider. */
2276
2377
  fill: { flexShrink: 1, minWidth: 0 }
@@ -2301,7 +2402,7 @@ var TruncatedText = ({
2301
2402
  [value, measureRef]
2302
2403
  );
2303
2404
  const flatStyle = useMemo(
2304
- () => StyleSheet.flatten([styles20.base, style]),
2405
+ () => StyleSheet.flatten([styles21.base, style]),
2305
2406
  [style]
2306
2407
  );
2307
2408
  const fontSize = flatStyle.fontSize ?? DEFAULT_FONT_SIZE2;
@@ -2316,7 +2417,7 @@ var TruncatedText = ({
2316
2417
  ref: attachRef,
2317
2418
  onLayout,
2318
2419
  numberOfLines: 1,
2319
- style: [styles20.base, styles20.fill, style],
2420
+ style: [styles21.base, styles21.fill, style],
2320
2421
  testID,
2321
2422
  accessibilityRole: onPress !== void 0 || href !== void 0 ? "link" : "text",
2322
2423
  accessibilityLabel,
@@ -2419,7 +2520,7 @@ var LABEL_LETTER_SPACING = 0.4;
2419
2520
  var ACTION_PADDING_H = 6;
2420
2521
  var ACTION_PADDING_V = 2;
2421
2522
  var ACTION_RADIUS = 6;
2422
- var styles21 = StyleSheet.create({
2523
+ var styles22 = StyleSheet.create({
2423
2524
  cell: { gap: CELL_GAP },
2424
2525
  label: {
2425
2526
  fontSize: LABEL_FONT_SIZE,
@@ -2484,14 +2585,14 @@ var CopyableId = ({
2484
2585
  const { colors } = theme;
2485
2586
  const { status, copy } = useCopyToClipboard(value, writer);
2486
2587
  const action = useActionState(status);
2487
- return /* @__PURE__ */ jsxs(View, { style: [styles21.cell, style], testID, children: [
2488
- label !== void 0 && /* @__PURE__ */ jsx(Text, { style: [styles21.label, { color: colors.textSecondary }], children: label }),
2489
- /* @__PURE__ */ jsxs(View, { style: styles21.row, children: [
2490
- /* @__PURE__ */ jsx(View, { style: styles21.valueWrap, children: /* @__PURE__ */ jsx(
2588
+ return /* @__PURE__ */ jsxs(View, { style: [styles22.cell, style], testID, children: [
2589
+ label !== void 0 && /* @__PURE__ */ jsx(Text, { style: [styles22.label, { color: colors.textSecondary }], children: label }),
2590
+ /* @__PURE__ */ jsxs(View, { style: styles22.row, children: [
2591
+ /* @__PURE__ */ jsx(View, { style: styles22.valueWrap, children: /* @__PURE__ */ jsx(
2491
2592
  TruncatedText,
2492
2593
  {
2493
2594
  value,
2494
- style: [styles21.value, { color: colors.text }],
2595
+ style: [styles22.value, { color: colors.text }],
2495
2596
  testID: `${testID}-value`,
2496
2597
  accessibilityLabel: accessibilityLabel ?? value,
2497
2598
  accessibilityHint: t(LAYOUT_I18N.copyableIdHint)
@@ -2505,7 +2606,7 @@ var CopyableId = ({
2505
2606
  accessibilityLabel: t(action.key),
2506
2607
  accessibilityHint: t(LAYOUT_I18N.copyHint),
2507
2608
  testID: `${testID}-copy`,
2508
- style: [styles21.action, { color: action.color }],
2609
+ style: [styles22.action, { color: action.color }],
2509
2610
  children: t(action.key)
2510
2611
  }
2511
2612
  )
@@ -2560,7 +2661,7 @@ var FOOTER_PADDING_V = 6;
2560
2661
  var FOOTER_PADDING_H = 12;
2561
2662
  var FOOTER_FONT_SIZE = 11;
2562
2663
  var FOOTER_OPACITY = 0.75;
2563
- var styles22 = StyleSheet.create({
2664
+ var styles23 = StyleSheet.create({
2564
2665
  footer: {
2565
2666
  paddingVertical: FOOTER_PADDING_V,
2566
2667
  paddingHorizontal: FOOTER_PADDING_H,
@@ -2586,7 +2687,7 @@ var BuildInfoFooter = ({
2586
2687
  const commit = apiCommit ?? fetchedCommit;
2587
2688
  const label = formatBuildInfo(buildVersion, commit);
2588
2689
  const textStyle = useMemo(
2589
- () => [styles22.text, { color: theme.colors.textSecondary }],
2690
+ () => [styles23.text, { color: theme.colors.textSecondary }],
2590
2691
  [theme.colors.textSecondary]
2591
2692
  );
2592
2693
  return /* @__PURE__ */ jsx(
@@ -2594,7 +2695,7 @@ var BuildInfoFooter = ({
2594
2695
  {
2595
2696
  accessibilityLabel: accessibilityLabel ?? label,
2596
2697
  accessibilityHint: accessibilityHint ?? t(LAYOUT_I18N.buildInfoHint),
2597
- style: [styles22.footer, style],
2698
+ style: [styles23.footer, style],
2598
2699
  testID,
2599
2700
  children: /* @__PURE__ */ jsx(Text, { style: textStyle, children: label })
2600
2701
  }
@@ -2605,7 +2706,7 @@ var BORDER = 2;
2605
2706
  var GLYPH_SIZE = 14;
2606
2707
  var GLYPH_LINE = 16;
2607
2708
  var TICK = "\u2713";
2608
- var styles23 = StyleSheet.create({
2709
+ var styles24 = StyleSheet.create({
2609
2710
  circle: {
2610
2711
  width: SIZE,
2611
2712
  height: SIZE,
@@ -2622,9 +2723,9 @@ var CheckMark = ({ filled, accent, ring, glyphColor, testID }) => /* @__PURE__ *
2622
2723
  "aria-hidden": true,
2623
2724
  accessibilityElementsHidden: true,
2624
2725
  importantForAccessibility: "no-hide-descendants",
2625
- style: [styles23.circle, { borderColor: filled ? accent : ring, backgroundColor: filled ? accent : void 0 }],
2726
+ style: [styles24.circle, { borderColor: filled ? accent : ring, backgroundColor: filled ? accent : void 0 }],
2626
2727
  testID,
2627
- children: filled ? /* @__PURE__ */ jsx(Text, { style: [styles23.glyph, { color: glyphColor }], children: TICK }) : null
2728
+ children: filled ? /* @__PURE__ */ jsx(Text, { style: [styles24.glyph, { color: glyphColor }], children: TICK }) : null
2628
2729
  }
2629
2730
  );
2630
2731
  var ListRowToneContext = createContext(null);
@@ -2747,7 +2848,7 @@ var PAD_V = 12;
2747
2848
  var GAP = 4;
2748
2849
  var MARK_GAP = 12;
2749
2850
  var LINE_GAP = 8;
2750
- var styles24 = StyleSheet.create({
2851
+ var styles25 = StyleSheet.create({
2751
2852
  row: {
2752
2853
  flexDirection: "row",
2753
2854
  alignItems: "center",
@@ -2771,7 +2872,7 @@ function focusTarget(event) {
2771
2872
  }
2772
2873
  function slot(node, color, strong) {
2773
2874
  if (typeof node !== "string") return node;
2774
- return /* @__PURE__ */ jsx(Text, { style: [styles24.shrink, strong ? styles24.strong : null, { color }], children: node });
2875
+ return /* @__PURE__ */ jsx(Text, { style: [styles25.shrink, strong ? styles25.strong : null, { color }], children: node });
2775
2876
  }
2776
2877
  var ListRow = ({
2777
2878
  title,
@@ -2803,7 +2904,7 @@ var ListRow = ({
2803
2904
  style: (state) => {
2804
2905
  const { pressed, hovered } = state;
2805
2906
  const look = resolveRowLook(selectedStyle, { selected, pressed, focused, hovered: hovered === true }, palette);
2806
- return [styles24.row, { borderTopColor: colors.border }, look.container];
2907
+ return [styles25.row, { borderTopColor: colors.border }, look.container];
2807
2908
  },
2808
2909
  testID,
2809
2910
  onBlur: () => {
@@ -2816,14 +2917,14 @@ var ListRow = ({
2816
2917
  ...pressedProps(selected),
2817
2918
  children: [
2818
2919
  rest.showCheck ? /* @__PURE__ */ jsx(CheckMark, { accent: palette.accent, filled: rest.checkFilled, glyphColor: palette.background, ring: palette.border, testID: checkTestId }) : null,
2819
- /* @__PURE__ */ jsxs(View, { style: styles24.body, children: [
2820
- /* @__PURE__ */ jsxs(View, { style: styles24.line, children: [
2920
+ /* @__PURE__ */ jsxs(View, { style: styles25.body, children: [
2921
+ /* @__PURE__ */ jsxs(View, { style: styles25.line, children: [
2821
2922
  slot(title, rest.titleColor, true),
2822
2923
  slot(trailing, rest.textColor, true)
2823
2924
  ] }),
2824
- /* @__PURE__ */ jsxs(View, { style: styles24.line, children: [
2825
- /* @__PURE__ */ jsx(View, { style: styles24.shrink, children: slot(meta, rest.textColor, false) }),
2826
- badges === void 0 ? null : /* @__PURE__ */ jsx(View, { style: styles24.badges, children: badges })
2925
+ /* @__PURE__ */ jsxs(View, { style: styles25.line, children: [
2926
+ /* @__PURE__ */ jsx(View, { style: styles25.shrink, children: slot(meta, rest.textColor, false) }),
2927
+ badges === void 0 ? null : /* @__PURE__ */ jsx(View, { style: styles25.badges, children: badges })
2827
2928
  ] })
2828
2929
  ] })
2829
2930
  ]
@@ -2833,6 +2934,6 @@ var ListRow = ({
2833
2934
  ] });
2834
2935
  };
2835
2936
 
2836
- 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 };
2937
+ 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 };
2837
2938
  //# sourceMappingURL=index.mjs.map
2838
2939
  //# sourceMappingURL=index.mjs.map