@dloizides/ui-layout 1.38.1 → 1.39.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 React12, { createContext, useMemo, useState, useRef, useEffect, useCallback, useContext, useLayoutEffect } from 'react';
1
+ import React13, { 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 = React12.useMemo(
41
+ const containerStyle = React13.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
  );
@@ -99,6 +99,7 @@ var LAYOUT_TEST_IDS = {
99
99
  modalShellClose: "cancel-button",
100
100
  /** Default base testID for the centered `Modal`; ✕ is `modal-close`, backdrop `modal-backdrop`. */
101
101
  modal: "modal",
102
+ sideSheet: "side-sheet",
102
103
  /** Default base testID for `ConfirmDialog`; Confirm/Cancel are `confirm-dialog-{confirm,cancel}`. */
103
104
  confirmDialog: "confirm-dialog",
104
105
  accordion: "accordion",
@@ -206,7 +207,7 @@ var Heading = ({
206
207
  testID
207
208
  }) => {
208
209
  const { theme } = useUi();
209
- const headingStyle = React12.useMemo(
210
+ const headingStyle = React13.useMemo(
210
211
  () => [styles3.heading, { color: theme.colors.text }, style],
211
212
  [theme.colors.text, style]
212
213
  );
@@ -767,6 +768,11 @@ var MENU_PADDING = 4;
767
768
  var MENU_SCROLL_MAX_HEIGHT = MENU_MAX_HEIGHT - (BORDER_WIDTH2 + MENU_PADDING) * 2;
768
769
  var MENU_BOX_SHADOW = "0px 2px 8px rgba(0, 0, 0, 0.15)";
769
770
  var MENU_VIEWPORT_MARGIN = 8;
771
+ var COMPACT_TRIGGER_MENU_MIN_WIDTH = 160;
772
+ function resolveMenuMinWidth(menuMinWidth, hasCustomTrigger) {
773
+ if (menuMinWidth !== void 0) return menuMinWidth;
774
+ return hasCustomTrigger ? COMPACT_TRIGGER_MENU_MIN_WIDTH : void 0;
775
+ }
770
776
  function buildPortalPopoverStyle(rect, minWidth = 0, viewportWidth = 0) {
771
777
  const width = Math.max(rect.width, minWidth);
772
778
  let left = rect.left;
@@ -1397,7 +1403,7 @@ var ModalDropdown = ({
1397
1403
  containerRef: anchorRef,
1398
1404
  isOpen,
1399
1405
  menuHeading,
1400
- menuMinWidth,
1406
+ menuMinWidth: resolveMenuMinWidth(menuMinWidth, renderTrigger !== void 0),
1401
1407
  optionTestID: optionTestIDFor,
1402
1408
  options,
1403
1409
  selectedMarker,
@@ -1734,7 +1740,7 @@ var ModalShell = ({
1734
1740
  }) => {
1735
1741
  const { theme, t } = useUi();
1736
1742
  const { style: sheetStyle, mounted } = useEnterExit({ visible, fromScale: PANEL_ENTER_SCALE2 });
1737
- const containerStyle = React12.useMemo(
1743
+ const containerStyle = React13.useMemo(
1738
1744
  () => [styles15.container, { backgroundColor: theme.colors.background }, contentStyle],
1739
1745
  [theme.colors.background, contentStyle]
1740
1746
  );
@@ -1777,10 +1783,87 @@ var ModalShell = ({
1777
1783
  }
1778
1784
  );
1779
1785
  };
1786
+ var SHEET_WIDTH = 560;
1787
+ var PHONE_CORNER = 16;
1788
+ var PHONE_ENTER_OFFSET = 24;
1789
+ var styles16 = StyleSheet.create({
1790
+ root: { flex: 1 },
1791
+ scrim: { backgroundColor: MODAL_OVERLAY_COLOR, pointerEvents: "none" },
1792
+ sheet: { position: "absolute", bottom: 0, overflow: "hidden" },
1793
+ wide: { top: 0, right: 0, width: SHEET_WIDTH, maxWidth: "100%", borderLeftWidth: 1 },
1794
+ phone: {
1795
+ top: MIN_TARGET_PX,
1796
+ left: 0,
1797
+ right: 0,
1798
+ borderTopLeftRadius: PHONE_CORNER,
1799
+ borderTopRightRadius: PHONE_CORNER
1800
+ },
1801
+ title: { paddingHorizontal: 16, paddingTop: 16 },
1802
+ scroll: { flex: 1 },
1803
+ content: { padding: 16, gap: 12 },
1804
+ bar: { flexDirection: "row", justifyContent: "flex-end", gap: 8, padding: 16, borderTopWidth: 1 }
1805
+ });
1806
+ var SideSheet = ({
1807
+ visible,
1808
+ onClose,
1809
+ title,
1810
+ children,
1811
+ footer,
1812
+ testID = LAYOUT_TEST_IDS.sideSheet,
1813
+ accessibilityLabel,
1814
+ initialFocusTestID
1815
+ }) => {
1816
+ const { theme, t } = useUi();
1817
+ const isWide = useIsWideViewport();
1818
+ const sheetRef = useRef(null);
1819
+ const backdrop = useEnterExit({ visible });
1820
+ const panel = useEnterExit({ visible, translateY: isWide ? 0 : PHONE_ENTER_OFFSET });
1821
+ const edges = { borderColor: theme.colors.border };
1822
+ useFocusTrap(sheetRef, visible && panel.mounted, initialFocusTestID);
1823
+ useEscapeKey(visible, onClose);
1824
+ useScrollLock(visible);
1825
+ return /* @__PURE__ */ jsx(Modal$1, { transparent: true, visible: panel.mounted || backdrop.mounted, onRequestClose: onClose, children: /* @__PURE__ */ jsxs(View, { style: styles16.root, children: [
1826
+ /* @__PURE__ */ jsx(Animated.View, { style: [StyleSheet.absoluteFill, styles16.scrim, { opacity: backdrop.style.opacity }] }),
1827
+ /* @__PURE__ */ jsx(
1828
+ Pressable,
1829
+ {
1830
+ accessibilityHint: t(LAYOUT_I18N.closeDialogHint),
1831
+ accessibilityLabel: t(LAYOUT_I18N.dialogClose),
1832
+ accessibilityRole: "button",
1833
+ style: StyleSheet.absoluteFill,
1834
+ testID: `${testID}-scrim`,
1835
+ onPress: onClose
1836
+ }
1837
+ ),
1838
+ /* @__PURE__ */ jsxs(
1839
+ Animated.View,
1840
+ {
1841
+ ref: sheetRef,
1842
+ accessibilityViewIsModal: true,
1843
+ "aria-modal": true,
1844
+ "aria-label": accessibilityLabel ?? title,
1845
+ role: "dialog",
1846
+ style: [
1847
+ styles16.sheet,
1848
+ isWide ? styles16.wide : styles16.phone,
1849
+ edges,
1850
+ { backgroundColor: theme.colors.surface },
1851
+ panel.style
1852
+ ],
1853
+ testID,
1854
+ children: [
1855
+ /* @__PURE__ */ jsx(View, { style: styles16.title, children: /* @__PURE__ */ jsx(AppText, { kind: "title" /* Title */, children: title }) }),
1856
+ /* @__PURE__ */ jsx(ScrollView, { contentContainerStyle: styles16.content, style: styles16.scroll, children }),
1857
+ /* @__PURE__ */ jsx(View, { style: [styles16.bar, edges], children: footer })
1858
+ ]
1859
+ }
1860
+ )
1861
+ ] }) });
1862
+ };
1780
1863
  var MESSAGE_FONT_SIZE2 = 14;
1781
1864
  var MESSAGE_LINE_HEIGHT = 20;
1782
1865
  var BUTTON_GAP = 12;
1783
- var styles16 = StyleSheet.create({
1866
+ var styles17 = StyleSheet.create({
1784
1867
  message: { fontSize: MESSAGE_FONT_SIZE2, lineHeight: MESSAGE_LINE_HEIGHT },
1785
1868
  footer: { flexDirection: "row", justifyContent: "flex-end", columnGap: BUTTON_GAP }
1786
1869
  });
@@ -1799,7 +1882,7 @@ var ConfirmDialog = ({
1799
1882
  const { theme, t } = useUi();
1800
1883
  const resolvedConfirm = confirmLabel ?? t(LAYOUT_I18N.confirm);
1801
1884
  const resolvedCancel = cancelLabel ?? t(LAYOUT_I18N.cancel);
1802
- const footer = /* @__PURE__ */ jsxs(View, { style: styles16.footer, children: [
1885
+ const footer = /* @__PURE__ */ jsxs(View, { style: styles17.footer, children: [
1803
1886
  /* @__PURE__ */ jsx(
1804
1887
  Button,
1805
1888
  {
@@ -1835,7 +1918,7 @@ var ConfirmDialog = ({
1835
1918
  title,
1836
1919
  visible,
1837
1920
  onClose: onCancel,
1838
- children: /* @__PURE__ */ jsx(Text, { style: [styles16.message, { color: theme.colors.text }], testID: `${testID}-message`, children: message })
1921
+ children: /* @__PURE__ */ jsx(Text, { style: [styles17.message, { color: theme.colors.text }], testID: `${testID}-message`, children: message })
1839
1922
  }
1840
1923
  );
1841
1924
  };
@@ -1848,14 +1931,14 @@ function useAccordionContext() {
1848
1931
  return value;
1849
1932
  }
1850
1933
  var BOXED_GAP = 12;
1851
- var styles17 = StyleSheet.create({
1934
+ var styles18 = StyleSheet.create({
1852
1935
  container: { alignSelf: "stretch" },
1853
1936
  boxed: { gap: BOXED_GAP }
1854
1937
  });
1855
1938
  function computeInitialOpen(children, defaultOpenIds, allowMultiple) {
1856
1939
  const ids = new Set(defaultOpenIds ?? []);
1857
- React12.Children.forEach(children, (child) => {
1858
- if (!React12.isValidElement(child)) return;
1940
+ React13.Children.forEach(children, (child) => {
1941
+ if (!React13.isValidElement(child)) return;
1859
1942
  const props = child.props;
1860
1943
  if (props.defaultOpen === true && typeof props.id === "string") {
1861
1944
  ids.add(props.id);
@@ -1905,7 +1988,7 @@ var Accordion = ({
1905
1988
  [openSet, toggle, allowMultiple, variant]
1906
1989
  );
1907
1990
  const containerStyle = useMemo(() => {
1908
- const base = variant === "boxed" ? [styles17.container, styles17.boxed] : [styles17.container];
1991
+ const base = variant === "boxed" ? [styles18.container, styles18.boxed] : [styles18.container];
1909
1992
  if (style === void 0) return base;
1910
1993
  return [...base, ...Array.isArray(style) ? style : [style]];
1911
1994
  }, [style, variant]);
@@ -1937,7 +2020,7 @@ var BOX_TITLE_FONT_SIZE = 14;
1937
2020
  var BOX_MARKER_FONT_SIZE = 13;
1938
2021
  var BOX_MARKER_GAP = 6;
1939
2022
  var BOX_MARKER = "\u25B8";
1940
- var styles18 = StyleSheet.create({
2023
+ var styles19 = StyleSheet.create({
1941
2024
  item: { borderTopWidth: StyleSheet.hairlineWidth },
1942
2025
  boxItem: { borderWidth: 1, borderRadius: BOX_BORDER_RADIUS, paddingHorizontal: BOX_PADDING_H },
1943
2026
  header: {
@@ -2013,19 +2096,19 @@ var AccordionItem = ({
2013
2096
  );
2014
2097
  const keyboardProps = Platform.OS === "web" ? { onKeyDown: handleKeyDown2 } : {};
2015
2098
  const itemStyle = useMemo(
2016
- () => boxed ? [styles18.boxItem, { borderColor: colors.border }] : [styles18.item, { borderTopColor: colors.border }],
2099
+ () => boxed ? [styles19.boxItem, { borderColor: colors.border }] : [styles19.item, { borderTopColor: colors.border }],
2017
2100
  [boxed, colors.border]
2018
2101
  );
2019
2102
  const headerStyle = useMemo(
2020
2103
  () => [
2021
- styles18.header,
2022
- ...boxed ? [styles18.boxHeader] : [],
2104
+ styles19.header,
2105
+ ...boxed ? [styles19.boxHeader] : [],
2023
2106
  { opacity: disabled ? DISABLED_OPACITY : FULL_OPACITY }
2024
2107
  ],
2025
2108
  [boxed, disabled]
2026
2109
  );
2027
2110
  const resolvedLabel = accessibilityLabel ?? (typeof title === "string" ? title : void 0);
2028
- const titleNode = typeof title === "string" ? /* @__PURE__ */ jsx(Text, { style: [boxed ? styles18.boxTitle : styles18.title, { color: boxed ? colors.textSecondary : colors.text }], children: title }) : title;
2111
+ const titleNode = typeof title === "string" ? /* @__PURE__ */ jsx(Text, { style: [boxed ? styles19.boxTitle : styles19.title, { color: boxed ? colors.textSecondary : colors.text }], children: title }) : title;
2029
2112
  return /* @__PURE__ */ jsxs(View, { style: itemStyle, children: [
2030
2113
  /* @__PURE__ */ jsxs(
2031
2114
  Pressable,
@@ -2042,7 +2125,7 @@ var AccordionItem = ({
2042
2125
  onPress: handlePress,
2043
2126
  ...keyboardProps,
2044
2127
  children: [
2045
- /* @__PURE__ */ jsxs(View, { style: [styles18.headerLeft, boxed ? styles18.headerLeftRow : null], children: [
2128
+ /* @__PURE__ */ jsxs(View, { style: [styles19.headerLeft, boxed ? styles19.headerLeftRow : null], children: [
2046
2129
  boxed ? (
2047
2130
  // Decorative — the open/closed state is already conveyed by aria-expanded on the header.
2048
2131
  /* @__PURE__ */ jsx(
@@ -2051,15 +2134,15 @@ var AccordionItem = ({
2051
2134
  accessibilityElementsHidden: true,
2052
2135
  "aria-hidden": true,
2053
2136
  importantForAccessibility: "no-hide-descendants",
2054
- style: [styles18.marker, { transform: [{ rotate }] }],
2137
+ style: [styles19.marker, { transform: [{ rotate }] }],
2055
2138
  testID: chevronTestID,
2056
- children: /* @__PURE__ */ jsx(Text, { style: [styles18.markerText, { color: colors.textSecondary }], children: BOX_MARKER })
2139
+ children: /* @__PURE__ */ jsx(Text, { style: [styles19.markerText, { color: colors.textSecondary }], children: BOX_MARKER })
2057
2140
  }
2058
2141
  )
2059
2142
  ) : null,
2060
2143
  titleNode
2061
2144
  ] }),
2062
- /* @__PURE__ */ jsxs(View, { style: styles18.headerRight, children: [
2145
+ /* @__PURE__ */ jsxs(View, { style: styles19.headerRight, children: [
2063
2146
  right,
2064
2147
  boxed ? null : /* @__PURE__ */ jsx(
2065
2148
  Animated.View,
@@ -2067,7 +2150,7 @@ var AccordionItem = ({
2067
2150
  accessibilityElementsHidden: true,
2068
2151
  "aria-hidden": true,
2069
2152
  importantForAccessibility: "no-hide-descendants",
2070
- style: [styles18.chevron, { transform: [{ rotate }] }],
2153
+ style: [styles19.chevron, { transform: [{ rotate }] }],
2071
2154
  children: /* @__PURE__ */ jsx(SvgIcon, { color: colors.textSecondary, name: "chevronDown", size: CHEVRON_SIZE, testID: chevronTestID })
2072
2155
  }
2073
2156
  )
@@ -2081,7 +2164,7 @@ var AccordionItem = ({
2081
2164
  accessibilityLabel: resolvedLabel,
2082
2165
  nativeID: bodyTestID,
2083
2166
  role: ROLE_REGION,
2084
- style: boxed ? styles18.boxBody : styles18.body,
2167
+ style: boxed ? styles19.boxBody : styles19.body,
2085
2168
  testID: bodyTestID,
2086
2169
  children
2087
2170
  }
@@ -2144,7 +2227,7 @@ function useAvailableWidth() {
2144
2227
  var AVG_CHAR_WIDTH_RATIO = 0.58;
2145
2228
  var DEFAULT_FONT_SIZE2 = 13;
2146
2229
  var UNMEASURED2 = 0;
2147
- var styles19 = StyleSheet.create({
2230
+ var styles20 = StyleSheet.create({
2148
2231
  base: { fontSize: DEFAULT_FONT_SIZE2 },
2149
2232
  /** `minWidth: 0` lets the text shrink inside a flex row instead of forcing the row wider. */
2150
2233
  fill: { flexShrink: 1, minWidth: 0 }
@@ -2175,7 +2258,7 @@ var TruncatedText = ({
2175
2258
  [value, measureRef]
2176
2259
  );
2177
2260
  const flatStyle = useMemo(
2178
- () => StyleSheet.flatten([styles19.base, style]),
2261
+ () => StyleSheet.flatten([styles20.base, style]),
2179
2262
  [style]
2180
2263
  );
2181
2264
  const fontSize = flatStyle.fontSize ?? DEFAULT_FONT_SIZE2;
@@ -2190,7 +2273,7 @@ var TruncatedText = ({
2190
2273
  ref: attachRef,
2191
2274
  onLayout,
2192
2275
  numberOfLines: 1,
2193
- style: [styles19.base, styles19.fill, style],
2276
+ style: [styles20.base, styles20.fill, style],
2194
2277
  testID,
2195
2278
  accessibilityRole: onPress !== void 0 || href !== void 0 ? "link" : "text",
2196
2279
  accessibilityLabel,
@@ -2293,7 +2376,7 @@ var LABEL_LETTER_SPACING = 0.4;
2293
2376
  var ACTION_PADDING_H = 6;
2294
2377
  var ACTION_PADDING_V = 2;
2295
2378
  var ACTION_RADIUS = 6;
2296
- var styles20 = StyleSheet.create({
2379
+ var styles21 = StyleSheet.create({
2297
2380
  cell: { gap: CELL_GAP },
2298
2381
  label: {
2299
2382
  fontSize: LABEL_FONT_SIZE,
@@ -2358,14 +2441,14 @@ var CopyableId = ({
2358
2441
  const { colors } = theme;
2359
2442
  const { status, copy } = useCopyToClipboard(value, writer);
2360
2443
  const action = useActionState(status);
2361
- return /* @__PURE__ */ jsxs(View, { style: [styles20.cell, style], testID, children: [
2362
- label !== void 0 && /* @__PURE__ */ jsx(Text, { style: [styles20.label, { color: colors.textSecondary }], children: label }),
2363
- /* @__PURE__ */ jsxs(View, { style: styles20.row, children: [
2364
- /* @__PURE__ */ jsx(View, { style: styles20.valueWrap, children: /* @__PURE__ */ jsx(
2444
+ return /* @__PURE__ */ jsxs(View, { style: [styles21.cell, style], testID, children: [
2445
+ label !== void 0 && /* @__PURE__ */ jsx(Text, { style: [styles21.label, { color: colors.textSecondary }], children: label }),
2446
+ /* @__PURE__ */ jsxs(View, { style: styles21.row, children: [
2447
+ /* @__PURE__ */ jsx(View, { style: styles21.valueWrap, children: /* @__PURE__ */ jsx(
2365
2448
  TruncatedText,
2366
2449
  {
2367
2450
  value,
2368
- style: [styles20.value, { color: colors.text }],
2451
+ style: [styles21.value, { color: colors.text }],
2369
2452
  testID: `${testID}-value`,
2370
2453
  accessibilityLabel: accessibilityLabel ?? value,
2371
2454
  accessibilityHint: t(LAYOUT_I18N.copyableIdHint)
@@ -2379,7 +2462,7 @@ var CopyableId = ({
2379
2462
  accessibilityLabel: t(action.key),
2380
2463
  accessibilityHint: t(LAYOUT_I18N.copyHint),
2381
2464
  testID: `${testID}-copy`,
2382
- style: [styles20.action, { color: action.color }],
2465
+ style: [styles21.action, { color: action.color }],
2383
2466
  children: t(action.key)
2384
2467
  }
2385
2468
  )
@@ -2434,7 +2517,7 @@ var FOOTER_PADDING_V = 6;
2434
2517
  var FOOTER_PADDING_H = 12;
2435
2518
  var FOOTER_FONT_SIZE = 11;
2436
2519
  var FOOTER_OPACITY = 0.75;
2437
- var styles21 = StyleSheet.create({
2520
+ var styles22 = StyleSheet.create({
2438
2521
  footer: {
2439
2522
  paddingVertical: FOOTER_PADDING_V,
2440
2523
  paddingHorizontal: FOOTER_PADDING_H,
@@ -2460,7 +2543,7 @@ var BuildInfoFooter = ({
2460
2543
  const commit = apiCommit ?? fetchedCommit;
2461
2544
  const label = formatBuildInfo(buildVersion, commit);
2462
2545
  const textStyle = useMemo(
2463
- () => [styles21.text, { color: theme.colors.textSecondary }],
2546
+ () => [styles22.text, { color: theme.colors.textSecondary }],
2464
2547
  [theme.colors.textSecondary]
2465
2548
  );
2466
2549
  return /* @__PURE__ */ jsx(
@@ -2468,7 +2551,7 @@ var BuildInfoFooter = ({
2468
2551
  {
2469
2552
  accessibilityLabel: accessibilityLabel ?? label,
2470
2553
  accessibilityHint: accessibilityHint ?? t(LAYOUT_I18N.buildInfoHint),
2471
- style: [styles21.footer, style],
2554
+ style: [styles22.footer, style],
2472
2555
  testID,
2473
2556
  children: /* @__PURE__ */ jsx(Text, { style: textStyle, children: label })
2474
2557
  }
@@ -2479,7 +2562,7 @@ var BORDER = 2;
2479
2562
  var GLYPH_SIZE = 14;
2480
2563
  var GLYPH_LINE = 16;
2481
2564
  var TICK = "\u2713";
2482
- var styles22 = StyleSheet.create({
2565
+ var styles23 = StyleSheet.create({
2483
2566
  circle: {
2484
2567
  width: SIZE,
2485
2568
  height: SIZE,
@@ -2496,9 +2579,9 @@ var CheckMark = ({ filled, accent, ring, glyphColor, testID }) => /* @__PURE__ *
2496
2579
  "aria-hidden": true,
2497
2580
  accessibilityElementsHidden: true,
2498
2581
  importantForAccessibility: "no-hide-descendants",
2499
- style: [styles22.circle, { borderColor: filled ? accent : ring, backgroundColor: filled ? accent : void 0 }],
2582
+ style: [styles23.circle, { borderColor: filled ? accent : ring, backgroundColor: filled ? accent : void 0 }],
2500
2583
  testID,
2501
- children: filled ? /* @__PURE__ */ jsx(Text, { style: [styles22.glyph, { color: glyphColor }], children: TICK }) : null
2584
+ children: filled ? /* @__PURE__ */ jsx(Text, { style: [styles23.glyph, { color: glyphColor }], children: TICK }) : null
2502
2585
  }
2503
2586
  );
2504
2587
  var ListRowToneContext = createContext(null);
@@ -2621,7 +2704,7 @@ var PAD_V = 12;
2621
2704
  var GAP = 4;
2622
2705
  var MARK_GAP = 12;
2623
2706
  var LINE_GAP = 8;
2624
- var styles23 = StyleSheet.create({
2707
+ var styles24 = StyleSheet.create({
2625
2708
  row: {
2626
2709
  flexDirection: "row",
2627
2710
  alignItems: "center",
@@ -2645,7 +2728,7 @@ function focusTarget(event) {
2645
2728
  }
2646
2729
  function slot(node, color, strong) {
2647
2730
  if (typeof node !== "string") return node;
2648
- return /* @__PURE__ */ jsx(Text, { style: [styles23.shrink, strong ? styles23.strong : null, { color }], children: node });
2731
+ return /* @__PURE__ */ jsx(Text, { style: [styles24.shrink, strong ? styles24.strong : null, { color }], children: node });
2649
2732
  }
2650
2733
  var ListRow = ({
2651
2734
  title,
@@ -2677,7 +2760,7 @@ var ListRow = ({
2677
2760
  style: (state) => {
2678
2761
  const { pressed, hovered } = state;
2679
2762
  const look = resolveRowLook(selectedStyle, { selected, pressed, focused, hovered: hovered === true }, palette);
2680
- return [styles23.row, { borderTopColor: colors.border }, look.container];
2763
+ return [styles24.row, { borderTopColor: colors.border }, look.container];
2681
2764
  },
2682
2765
  testID,
2683
2766
  onBlur: () => {
@@ -2690,14 +2773,14 @@ var ListRow = ({
2690
2773
  ...pressedProps(selected),
2691
2774
  children: [
2692
2775
  rest.showCheck ? /* @__PURE__ */ jsx(CheckMark, { accent: palette.accent, filled: rest.checkFilled, glyphColor: palette.background, ring: palette.border, testID: checkTestId }) : null,
2693
- /* @__PURE__ */ jsxs(View, { style: styles23.body, children: [
2694
- /* @__PURE__ */ jsxs(View, { style: styles23.line, children: [
2776
+ /* @__PURE__ */ jsxs(View, { style: styles24.body, children: [
2777
+ /* @__PURE__ */ jsxs(View, { style: styles24.line, children: [
2695
2778
  slot(title, rest.titleColor, true),
2696
2779
  slot(trailing, rest.textColor, true)
2697
2780
  ] }),
2698
- /* @__PURE__ */ jsxs(View, { style: styles23.line, children: [
2699
- /* @__PURE__ */ jsx(View, { style: styles23.shrink, children: slot(meta, rest.textColor, false) }),
2700
- badges === void 0 ? null : /* @__PURE__ */ jsx(View, { style: styles23.badges, children: badges })
2781
+ /* @__PURE__ */ jsxs(View, { style: styles24.line, children: [
2782
+ /* @__PURE__ */ jsx(View, { style: styles24.shrink, children: slot(meta, rest.textColor, false) }),
2783
+ badges === void 0 ? null : /* @__PURE__ */ jsx(View, { style: styles24.badges, children: badges })
2701
2784
  ] })
2702
2785
  ] })
2703
2786
  ]
@@ -2707,6 +2790,6 @@ var ListRow = ({
2707
2790
  ] });
2708
2791
  };
2709
2792
 
2710
- 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, 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 };
2793
+ 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 };
2711
2794
  //# sourceMappingURL=index.mjs.map
2712
2795
  //# sourceMappingURL=index.mjs.map