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