@dloizides/ui-forms 1.43.1 → 1.44.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.js CHANGED
@@ -1299,7 +1299,27 @@ function RecentInputField({
1299
1299
  ) : null
1300
1300
  ] });
1301
1301
  }
1302
- var FormField = ({
1302
+
1303
+ // src/FormField/textRows.ts
1304
+ var INPUT_SIDE_INSET = 26;
1305
+ var AVERAGE_CHAR_WIDTH = 8.4;
1306
+ var SPARE_ROWS = 1;
1307
+ var NARROWEST_INPUT_WIDTH = 296;
1308
+ function rowsForText(text, inputWidth, minRows) {
1309
+ const charsPerLine = Math.max(1, Math.floor((inputWidth - INPUT_SIDE_INSET) / AVERAGE_CHAR_WIDTH));
1310
+ const wrappedLines = text.split("\n").reduce((rows, line) => rows + Math.max(1, Math.ceil(line.length / charsPerLine)), 0);
1311
+ return Math.max(minRows, wrappedLines + SPARE_ROWS);
1312
+ }
1313
+
1314
+ // src/FormField/useAutoGrowRows.ts
1315
+ function useAutoGrowRows(text, minRows) {
1316
+ const [inputWidth, setInputWidth] = React37.useState(NARROWEST_INPUT_WIDTH);
1317
+ const onLayout = React37.useCallback((event) => {
1318
+ setInputWidth(event.nativeEvent.layout.width);
1319
+ }, []);
1320
+ return { numberOfLines: rowsForText(text, inputWidth, minRows), onLayout };
1321
+ }
1322
+ var PlainFormField = ({
1303
1323
  label,
1304
1324
  labelHidden = false,
1305
1325
  required = false,
@@ -1331,6 +1351,34 @@ var FormField = ({
1331
1351
  }
1332
1352
  }
1333
1353
  );
1354
+ var AutoGrowFormField = ({
1355
+ minRows,
1356
+ ...fieldProps
1357
+ }) => {
1358
+ const grow = useAutoGrowRows(fieldProps.value ?? "", minRows);
1359
+ return /* @__PURE__ */ jsxRuntime.jsx(
1360
+ PlainFormField,
1361
+ {
1362
+ ...fieldProps,
1363
+ multiline: true,
1364
+ numberOfLines: grow.numberOfLines,
1365
+ onLayout: grow.onLayout
1366
+ }
1367
+ );
1368
+ };
1369
+ var FormField = ({ autoGrowMinRows, ...fieldProps }) => autoGrowMinRows === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(PlainFormField, { ...fieldProps }) : /* @__PURE__ */ jsxRuntime.jsx(AutoGrowFormField, { ...fieldProps, minRows: autoGrowMinRows });
1370
+ var TEXT_INPUT_HEIGHT = 48;
1371
+ var styles12 = reactNative.StyleSheet.create({
1372
+ track: { padding: 0, borderWidth: 0 },
1373
+ besideTextInput: {
1374
+ padding: 0,
1375
+ borderWidth: 0,
1376
+ minHeight: TEXT_INPUT_HEIGHT,
1377
+ alignItems: "stretch"
1378
+ }
1379
+ });
1380
+ var SEGMENT_BESIDE_FIELD = styles12.track;
1381
+ var SEGMENT_BESIDE_TEXT_INPUT = styles12.besideTextInput;
1334
1382
 
1335
1383
  // src/ChipSelector/constants.ts
1336
1384
  var TRANSPARENT_COLOR = "transparent";
@@ -1575,7 +1623,7 @@ function chipIdentity(option, selected, config) {
1575
1623
  ariaChecked: isRadio ? selected : void 0
1576
1624
  };
1577
1625
  }
1578
- var styles12 = reactNative.StyleSheet.create({
1626
+ var styles13 = reactNative.StyleSheet.create({
1579
1627
  chipContainer: {
1580
1628
  flexDirection: "row",
1581
1629
  flexWrap: "wrap",
@@ -1661,7 +1709,7 @@ var ChipSelector = ({
1661
1709
  reactNative.View,
1662
1710
  {
1663
1711
  accessibilityRole: isRadioGroup ? "radiogroup" : void 0,
1664
- style: styles12.chipContainer,
1712
+ style: styles13.chipContainer,
1665
1713
  ...webFieldA11y({ describedById, hasError }),
1666
1714
  ...radio.groupProps,
1667
1715
  children: options.map(renderChip)
@@ -1671,7 +1719,7 @@ var ChipSelector = ({
1671
1719
  );
1672
1720
  };
1673
1721
  var DESCRIPTION_FONT_SIZE2 = 12;
1674
- var styles13 = reactNative.StyleSheet.create({
1722
+ var styles14 = reactNative.StyleSheet.create({
1675
1723
  container: {
1676
1724
  flexDirection: "row",
1677
1725
  justifyContent: "space-between",
@@ -1732,15 +1780,15 @@ var FormSwitch = ({
1732
1780
  accessible: false,
1733
1781
  disabled,
1734
1782
  onPress: toggle2,
1735
- style: [styles13.container, containerStyle],
1783
+ style: [styles14.container, containerStyle],
1736
1784
  tabIndex: -1,
1737
1785
  testID,
1738
1786
  children: [
1739
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles13.textColumn, children: [
1740
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.label, themeStyles.label], children: label }),
1741
- hasDescription ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles13.description, themeStyles.description], children: description }) : null
1787
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles14.textColumn, children: [
1788
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.label, themeStyles.label], children: label }),
1789
+ hasDescription ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.description, themeStyles.description], children: description }) : null
1742
1790
  ] }),
1743
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { pointerEvents: "none", style: styles13.switchSlot, testID: `${testID}-hitbox`, children: /* @__PURE__ */ jsxRuntime.jsx(
1791
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { pointerEvents: "none", style: styles14.switchSlot, testID: `${testID}-hitbox`, children: /* @__PURE__ */ jsxRuntime.jsx(
1744
1792
  reactNative.Switch,
1745
1793
  {
1746
1794
  accessibilityHint: accessibilityHint ?? label,
@@ -1764,12 +1812,15 @@ var ACTIVATION_KEYS = ["Enter", " ", "Spacebar"];
1764
1812
  var HINT_FONT_SIZE2 = 12;
1765
1813
  var BOX_SIZE = 20;
1766
1814
  var BOX_RADIUS = 5;
1767
- var CHECK_FONT_SIZE = 14;
1815
+ var TICK_WIDTH = 6;
1816
+ var TICK_HEIGHT = 10;
1817
+ var TICK_STROKE = 2;
1818
+ var TICK_LIFT = -2;
1768
1819
  var DISABLED_OPACITY = 0.5;
1769
1820
  var FOCUS_RING_WIDTH = 2;
1770
1821
  var WEB_NO_DEFAULT_OUTLINE = { outlineStyle: "none" };
1771
1822
  var FOCUS_RING_INSET = -6;
1772
- var styles14 = reactNative.StyleSheet.create({
1823
+ var styles15 = reactNative.StyleSheet.create({
1773
1824
  container: {
1774
1825
  flexDirection: "row",
1775
1826
  alignItems: "flex-start",
@@ -1802,10 +1853,13 @@ var styles14 = reactNative.StyleSheet.create({
1802
1853
  borderWidth: FOCUS_RING_WIDTH,
1803
1854
  borderRadius: BOX_RADIUS - FOCUS_RING_INSET
1804
1855
  },
1805
- check: {
1806
- fontSize: CHECK_FONT_SIZE,
1807
- fontWeight: "700",
1808
- lineHeight: CHECK_FONT_SIZE
1856
+ tick: {
1857
+ width: TICK_WIDTH,
1858
+ height: TICK_HEIGHT,
1859
+ marginTop: TICK_LIFT,
1860
+ borderRightWidth: TICK_STROKE,
1861
+ borderBottomWidth: TICK_STROKE,
1862
+ transform: [{ rotate: "45deg" }]
1809
1863
  },
1810
1864
  textColumn: {
1811
1865
  flex: 1
@@ -1874,8 +1928,8 @@ var FormCheckbox = ({
1874
1928
  onPress: toggle2,
1875
1929
  role: "checkbox",
1876
1930
  style: [
1877
- styles14.container,
1878
- hasHint ? null : styles14.centered,
1931
+ styles15.container,
1932
+ hasHint ? null : styles15.centered,
1879
1933
  containerStyle,
1880
1934
  disabled ? { opacity: DISABLED_OPACITY } : null,
1881
1935
  reactNative.Platform.OS === "web" ? WEB_NO_DEFAULT_OUTLINE : null
@@ -1883,13 +1937,13 @@ var FormCheckbox = ({
1883
1937
  testID,
1884
1938
  ...keyboardProps,
1885
1939
  children: [
1886
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles14.box, value ? themeStyles.boxOn : themeStyles.boxOff], testID: `${testID}-box`, children: [
1887
- focused ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { pointerEvents: "none", style: [styles14.focusRing, themeStyles.ring], testID: `${testID}-focus-ring` }) : null,
1888
- value ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.check, { color: colors.surface }], accessibilityElementsHidden: true, children: "\u2713" }) : null
1940
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles15.box, value ? themeStyles.boxOn : themeStyles.boxOff], testID: `${testID}-box`, children: [
1941
+ focused ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { pointerEvents: "none", style: [styles15.focusRing, themeStyles.ring], testID: `${testID}-focus-ring` }) : null,
1942
+ value ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityElementsHidden: true, pointerEvents: "none", style: [styles15.tick, { borderColor: colors.surface }], testID: `${testID}-tick` }) : null
1889
1943
  ] }),
1890
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles14.textColumn, children: [
1891
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles14.label, themeStyles.label], children: label }),
1892
- hasHint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { nativeID: hintId, style: [styles14.hint, themeStyles.hint], children: hintText }) : null
1944
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles15.textColumn, children: [
1945
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles15.label, themeStyles.label], children: label }),
1946
+ hasHint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { nativeID: hintId, style: [styles15.hint, themeStyles.hint], children: hintText }) : null
1893
1947
  ] })
1894
1948
  ]
1895
1949
  }
@@ -2510,20 +2564,20 @@ function DropdownSurface({ progress, translateY, anchorRef, onDismiss, closeLabe
2510
2564
  const place = frame === null ? null : { left: frame.left, width: frame.width, top: frame.top, bottom: frame.bottom };
2511
2565
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Modal, { transparent: true, visible: true, animationType: "none", "aria-label": accessibilityLabel, onRequestClose: onDismiss, children: [
2512
2566
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityHint: closeHint, accessibilityLabel: closeLabel, accessibilityRole: "button", style: reactNative.StyleSheet.absoluteFill, testID: `${testID}-backdrop`, onPress: onDismiss }),
2513
- frame !== null ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { style: [styles15.dropdown, place, { opacity: progress, transform: scale === void 0 ? [{ translateY }] : [{ translateY }, { scale }] }, scale === void 0 ? null : styles15.growFromField], testID: `${testID}-dropdown-${frame.placement}`, onLayout, children }) : null
2567
+ frame !== null ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { style: [styles16.dropdown, place, { opacity: progress, transform: scale === void 0 ? [{ translateY }] : [{ translateY }, { scale }] }, scale === void 0 ? null : styles16.growFromField], testID: `${testID}-dropdown-${frame.placement}`, onLayout, children }) : null
2514
2568
  ] });
2515
2569
  }
2516
- var styles15 = reactNative.StyleSheet.create({
2570
+ var styles16 = reactNative.StyleSheet.create({
2517
2571
  dropdown: { position: "absolute" },
2518
2572
  growFromField: { transformOrigin: "top left" }
2519
2573
  });
2520
2574
  function SheetSurface({ translateY, onDismiss, closeLabel, closeHint, testID, children, progress, scale, accessibilityLabel }) {
2521
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, visible: true, animationType: "none", "aria-label": accessibilityLabel, onRequestClose: onDismiss, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.backdrop, children: [
2575
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, visible: true, animationType: "none", "aria-label": accessibilityLabel, onRequestClose: onDismiss, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.backdrop, children: [
2522
2576
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityHint: closeHint, accessibilityLabel: closeLabel, accessibilityRole: "button", style: reactNative.StyleSheet.absoluteFill, testID: `${testID}-backdrop`, onPress: onDismiss }),
2523
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { testID: `${testID}-sheet`, style: [styles16.sheet, { transform: scale === void 0 ? [{ translateY }] : [{ translateY }, { scale }] }, progress === void 0 ? null : { opacity: progress }], children })
2577
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { testID: `${testID}-sheet`, style: [styles17.sheet, { transform: scale === void 0 ? [{ translateY }] : [{ translateY }, { scale }] }, progress === void 0 ? null : { opacity: progress }], children })
2524
2578
  ] }) });
2525
2579
  }
2526
- var styles16 = reactNative.StyleSheet.create({
2580
+ var styles17 = reactNative.StyleSheet.create({
2527
2581
  backdrop: { flex: 1, justifyContent: "flex-end" },
2528
2582
  sheet: { width: "100%", alignSelf: "stretch" }
2529
2583
  });
@@ -3553,7 +3607,7 @@ var ROW_GAP = 4;
3553
3607
  var TAB_PADDING = 4;
3554
3608
  var INDICATOR_WIDTH = 2;
3555
3609
  var TAB_FONT_SIZE = 12;
3556
- var styles17 = reactNative.StyleSheet.create({
3610
+ var styles18 = reactNative.StyleSheet.create({
3557
3611
  row: { flexDirection: "row", flexWrap: "nowrap", gap: ROW_GAP },
3558
3612
  tab: {
3559
3613
  borderBottomWidth: INDICATOR_WIDTH,
@@ -3593,13 +3647,13 @@ var StepperTab = ({
3593
3647
  accessibilityRole: "tab",
3594
3648
  accessibilityState: { selected },
3595
3649
  "aria-selected": selected,
3596
- style: [styles17.tab, { borderBottomColor: indicator }, ring.ringStyle],
3650
+ style: [styles18.tab, { borderBottomColor: indicator }, ring.ringStyle],
3597
3651
  testID,
3598
3652
  onBlur: ring.onBlur,
3599
3653
  onFocus: ring.onFocus,
3600
3654
  onPress: () => onStep(step.key),
3601
3655
  ...webKeyProps,
3602
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.text, { color: theme.colors.text }, selected ? styles17.textSelected : void 0], children: step.label })
3656
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles18.text, { color: theme.colors.text }, selected ? styles18.textSelected : void 0], children: step.label })
3603
3657
  }
3604
3658
  );
3605
3659
  };
@@ -3609,7 +3663,7 @@ var StepperTabs = ({
3609
3663
  onStep,
3610
3664
  stepHint,
3611
3665
  testID
3612
- }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "tablist", style: styles17.row, testID, children: steps.map((step) => /* @__PURE__ */ jsxRuntime.jsx(
3666
+ }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "tablist", style: styles18.row, testID, children: steps.map((step) => /* @__PURE__ */ jsxRuntime.jsx(
3613
3667
  StepperTab,
3614
3668
  {
3615
3669
  hint: stepHint,
@@ -3628,7 +3682,7 @@ function resolveStepNeighbours(steps, current) {
3628
3682
  return { previous: steps[index - 1] ?? null, next: steps[index + 1] ?? null };
3629
3683
  }
3630
3684
  var ROW_GAP2 = 8;
3631
- var styles18 = reactNative.StyleSheet.create({
3685
+ var styles19 = reactNative.StyleSheet.create({
3632
3686
  cell: { flex: 1, minWidth: 0 },
3633
3687
  row: { flexDirection: "row", gap: ROW_GAP2 }
3634
3688
  });
@@ -3640,8 +3694,8 @@ var StepperNav = ({
3640
3694
  testID
3641
3695
  }) => {
3642
3696
  const { previous, next } = resolveStepNeighbours(steps, current);
3643
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles18.row, testID, children: [
3644
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles18.cell, children: /* @__PURE__ */ jsxRuntime.jsx(
3697
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles19.row, testID, children: [
3698
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles19.cell, children: /* @__PURE__ */ jsxRuntime.jsx(
3645
3699
  uiButtons.Button,
3646
3700
  {
3647
3701
  fullWidth: true,
@@ -3657,7 +3711,7 @@ var StepperNav = ({
3657
3711
  }
3658
3712
  }
3659
3713
  ) }),
3660
- next === null ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles18.cell, children: /* @__PURE__ */ jsxRuntime.jsx(
3714
+ next === null ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles19.cell, children: /* @__PURE__ */ jsxRuntime.jsx(
3661
3715
  uiButtons.Button,
3662
3716
  {
3663
3717
  fullWidth: true,
@@ -3672,13 +3726,13 @@ var StepperNav = ({
3672
3726
  ] });
3673
3727
  };
3674
3728
  var STATUS_FONT = 16;
3675
- var styles19 = reactNative.StyleSheet.create({
3729
+ var styles20 = reactNative.StyleSheet.create({
3676
3730
  line: { fontSize: STATUS_FONT }
3677
3731
  });
3678
3732
  function FormStatusLine({ message, testID, style }) {
3679
3733
  const { theme } = uiFeedback.useUi();
3680
3734
  if (message === null || message === void 0 || message === "") return null;
3681
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "alert", style: [styles19.line, { color: theme.colors.text }, style], testID, children: message });
3735
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "alert", style: [styles20.line, { color: theme.colors.text }, style], testID, children: message });
3682
3736
  }
3683
3737
  function useFocusFirstInvalid(refs) {
3684
3738
  const latest = React37.useRef(refs);
@@ -3702,7 +3756,7 @@ function useKeepInView(trigger) {
3702
3756
  }
3703
3757
  var IS_WEB10 = reactNative.Platform.OS === "web";
3704
3758
  var INPUT_FONT2 = 14;
3705
- var styles20 = reactNative.StyleSheet.create({
3759
+ var styles21 = reactNative.StyleSheet.create({
3706
3760
  nativeButton: { minHeight: a11y.MIN_TOUCH_TARGET_PX, minWidth: a11y.MIN_TOUCH_TARGET_PX, justifyContent: "center" },
3707
3761
  nativeText: { fontSize: INPUT_FONT2 }
3708
3762
  });
@@ -3730,10 +3784,10 @@ function FileInput({
3730
3784
  accessibilityRole: "button",
3731
3785
  accessibilityState: { disabled },
3732
3786
  disabled,
3733
- style: styles20.nativeButton,
3787
+ style: styles21.nativeButton,
3734
3788
  testID,
3735
3789
  onPress: onNativePick,
3736
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles20.nativeText, { color: colors.text }], children: nativeLabel ?? accessibilityLabel })
3790
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles21.nativeText, { color: colors.text }], children: nativeLabel ?? accessibilityLabel })
3737
3791
  }
3738
3792
  );
3739
3793
  }
@@ -3763,7 +3817,7 @@ var PREVIEW_RADIUS = 8;
3763
3817
  var GAP6 = 8;
3764
3818
  var TITLE_FONT_SIZE = 14;
3765
3819
  var HELP_FONT_SIZE = 13;
3766
- var styles21 = reactNative.StyleSheet.create({
3820
+ var styles22 = reactNative.StyleSheet.create({
3767
3821
  help: { flex: 1, fontSize: HELP_FONT_SIZE },
3768
3822
  root: { gap: GAP6 },
3769
3823
  tile: { alignItems: "center", flexDirection: "row", gap: GAP6 },
@@ -3785,11 +3839,11 @@ var UploadWithLinkField = ({
3785
3839
  const url = value ?? "";
3786
3840
  const [pasting, setPasting] = React37.useState(url !== "");
3787
3841
  const previewBox = { borderRadius: PREVIEW_RADIUS, height: previewSize, width: previewSize };
3788
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles21.root, children: [
3789
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles21.title, { color: theme.colors.text }], children: labels.title }),
3790
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles21.tile, children: [
3842
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles22.root, children: [
3843
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles22.title, { color: theme.colors.text }], children: labels.title }),
3844
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles22.tile, children: [
3791
3845
  url === "" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [previewBox, { backgroundColor: theme.colors.border }] }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Image, { accessible: false, source: { uri: url }, style: previewBox, testID: `${testID}-preview` }),
3792
- labels.help === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles21.help, { color: theme.colors.text }], children: labels.help })
3846
+ labels.help === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles22.help, { color: theme.colors.text }], children: labels.help })
3793
3847
  ] }),
3794
3848
  uploadControl,
3795
3849
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -3800,12 +3854,12 @@ var UploadWithLinkField = ({
3800
3854
  accessibilityRole: "button",
3801
3855
  accessibilityState: { expanded: pasting },
3802
3856
  "aria-expanded": pasting,
3803
- style: [styles21.toggle, ring.ringStyle],
3857
+ style: [styles22.toggle, ring.ringStyle],
3804
3858
  testID: `${testID}-paste`,
3805
3859
  onBlur: ring.onBlur,
3806
3860
  onFocus: ring.onFocus,
3807
3861
  onPress: () => setPasting(!pasting),
3808
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles21.toggleText, { color: theme.colors.text }], children: labels.pasteToggle })
3862
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles22.toggleText, { color: theme.colors.text }], children: labels.pasteToggle })
3809
3863
  }
3810
3864
  ),
3811
3865
  pasting ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -3824,7 +3878,7 @@ var UploadWithLinkField = ({
3824
3878
  };
3825
3879
  var ACTION_GAP = 8;
3826
3880
  var GROUP_GAP = 16;
3827
- var styles22 = reactNative.StyleSheet.create({
3881
+ var styles23 = reactNative.StyleSheet.create({
3828
3882
  action: { alignItems: "flex-start", marginTop: ACTION_GAP },
3829
3883
  group: { marginBottom: GROUP_GAP }
3830
3884
  });
@@ -3847,7 +3901,7 @@ var AddOnRequest = ({
3847
3901
  onRemove();
3848
3902
  };
3849
3903
  if (!isAddOnOpen(hasValue, requested))
3850
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles22.action, style], children: /* @__PURE__ */ jsxRuntime.jsx(
3904
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles23.action, style], children: /* @__PURE__ */ jsxRuntime.jsx(
3851
3905
  uiButtons.Button,
3852
3906
  {
3853
3907
  accessibilityHint: addHint,
@@ -3859,9 +3913,9 @@ var AddOnRequest = ({
3859
3913
  onPress: () => setRequested(true)
3860
3914
  }
3861
3915
  ) });
3862
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles22.group, style], testID, children: [
3916
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles23.group, style], testID, children: [
3863
3917
  children,
3864
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles22.action, children: /* @__PURE__ */ jsxRuntime.jsx(
3918
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles23.action, children: /* @__PURE__ */ jsxRuntime.jsx(
3865
3919
  uiButtons.Button,
3866
3920
  {
3867
3921
  accessibilityHint: removeHint,
@@ -3878,7 +3932,7 @@ var AddOnRequest = ({
3878
3932
  var ROW_GAP3 = 8;
3879
3933
  var TEXT_SIZE = 13;
3880
3934
  var TEXT_LINE = 18;
3881
- var styles23 = reactNative.StyleSheet.create({
3935
+ var styles24 = reactNative.StyleSheet.create({
3882
3936
  row: { alignItems: "center", columnGap: ROW_GAP3, flexDirection: "row", justifyContent: "space-between" },
3883
3937
  text: { flexShrink: 1, fontSize: TEXT_SIZE, fontWeight: "700", lineHeight: TEXT_LINE }
3884
3938
  });
@@ -3886,8 +3940,8 @@ var isFixBarVisible = (count) => count > 0;
3886
3940
  var FixBar = ({ count, message, showLabel, showHint, onShow, testID, style }) => {
3887
3941
  const { theme } = uiFeedback.useUi();
3888
3942
  if (!isFixBarVisible(count)) return null;
3889
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles23.row, style], testID, children: [
3890
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "alert", style: [styles23.text, { color: fieldErrorInk(theme) }], testID: `${testID}-count`, children: message }),
3943
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles24.row, style], testID, children: [
3944
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "alert", style: [styles24.text, { color: fieldErrorInk(theme) }], testID: `${testID}-count`, children: message }),
3891
3945
  /* @__PURE__ */ jsxRuntime.jsx(
3892
3946
  uiButtons.Button,
3893
3947
  {
@@ -3925,21 +3979,21 @@ function OptionRow2({ option, active, current, renderLeading, renderDetail, onPi
3925
3979
  accessibilityLabel: option.label,
3926
3980
  accessibilityRole: "button",
3927
3981
  accessibilityState: { selected: active, checked: current },
3928
- style: [styles24.row, active ? { backgroundColor: colors.surface } : null],
3982
+ style: [styles25.row, active ? { backgroundColor: colors.surface } : null],
3929
3983
  testID: `${testID}-option-${option.value}`,
3930
3984
  onPress: () => onPick(option),
3931
3985
  children: [
3932
3986
  renderLeading?.(option),
3933
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles24.label, children: [
3934
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles24.primary, { color: colors.text }], children: option.label }),
3935
- detailBelow ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles24.secondary, { color: colors.textSecondary }], children: option.detail }) : null
3987
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles25.label, children: [
3988
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles25.primary, { color: colors.text }], children: option.label }),
3989
+ detailBelow ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles25.secondary, { color: colors.textSecondary }], children: option.detail }) : null
3936
3990
  ] }),
3937
3991
  renderDetail?.(option)
3938
3992
  ]
3939
3993
  }
3940
3994
  );
3941
3995
  }
3942
- var styles24 = reactNative.StyleSheet.create({
3996
+ var styles25 = reactNative.StyleSheet.create({
3943
3997
  row: { minHeight: a11y.MIN_TOUCH_TARGET_PX, flexDirection: "row", alignItems: "center", gap: ROW_GAP4, paddingHorizontal: ROW_PAD_H },
3944
3998
  label: { flex: 1 },
3945
3999
  primary: { fontSize: OPTION_FONT2, flexShrink: 1 },
@@ -3953,11 +4007,11 @@ function OptionSection({ title, options, offset, highlight, selectedValue, ...ro
3953
4007
  const { colors } = theme;
3954
4008
  if (options.length === 0) return null;
3955
4009
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { children: [
3956
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles25.header, { color: colors.textSecondary }], children: title }),
4010
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles26.header, { color: colors.textSecondary }], children: title }),
3957
4011
  options.map((option, index) => /* @__PURE__ */ jsxRuntime.jsx(OptionRow2, { ...row, active: offset + index === highlight, current: option.value === selectedValue, option }, option.value))
3958
4012
  ] });
3959
4013
  }
3960
- var styles25 = reactNative.StyleSheet.create({
4014
+ var styles26 = reactNative.StyleSheet.create({
3961
4015
  header: { fontSize: HEADER_FONT, paddingHorizontal: ROW_PAD_H2, paddingTop: ROW_GAP5, textTransform: "uppercase" }
3962
4016
  });
3963
4017
  var KEY_ESCAPE = "Escape";
@@ -3987,7 +4041,7 @@ function SearchSelectPanel({ motion, state, labels, anchorRef, renderLeading, re
3987
4041
  const translateY = progress.interpolate({ inputRange: [0, 1], outputRange: [motion.fromY, 0] });
3988
4042
  const isSheet = motion.surface === "sheet" /* Sheet */;
3989
4043
  const shared = { selectedValue, renderLeading, renderDetail, onPick: pick, optionHint: labels.optionHint, testID, highlight };
3990
- const list = /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles26.panel, { backgroundColor: colors.surfaceElevated, borderColor: colors.border }], testID: `${testID}-panel`, children: [
4044
+ const list = /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles27.panel, { backgroundColor: colors.surfaceElevated, borderColor: colors.border }], testID: `${testID}-panel`, children: [
3991
4045
  /* @__PURE__ */ jsxRuntime.jsx(
3992
4046
  reactNative.TextInput,
3993
4047
  {
@@ -4004,16 +4058,16 @@ function SearchSelectPanel({ motion, state, labels, anchorRef, renderLeading, re
4004
4058
  onSubmitEditing: submit
4005
4059
  }
4006
4060
  ),
4007
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.ScrollView, { keyboardShouldPersistTaps: "handled", style: isSheet ? styles26.sheetList : styles26.dropList, children: [
4061
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.ScrollView, { keyboardShouldPersistTaps: "handled", style: isSheet ? styles27.sheetList : styles27.dropList, children: [
4008
4062
  /* @__PURE__ */ jsxRuntime.jsx(OptionSection, { ...shared, offset: 0, options: sections.recent, title: labels.recent }),
4009
4063
  /* @__PURE__ */ jsxRuntime.jsx(OptionSection, { ...shared, offset: sections.recent.length, options: sections.all, title: labels.all }),
4010
- sections.flat.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles26.empty, { color: colors.textSecondary }], children: labels.empty }) : null
4064
+ sections.flat.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles27.empty, { color: colors.textSecondary }], children: labels.empty }) : null
4011
4065
  ] })
4012
4066
  ] });
4013
4067
  if (!isSheet) return /* @__PURE__ */ jsxRuntime.jsx(DropdownSurface, { anchorRef, closeHint: labels.closeHint, closeLabel: labels.close, progress, testID, translateY, onDismiss: dismiss, children: list });
4014
4068
  return /* @__PURE__ */ jsxRuntime.jsx(SheetSurface, { closeHint: labels.closeHint, closeLabel: labels.close, testID, translateY, onDismiss: dismiss, children: list });
4015
4069
  }
4016
- var styles26 = reactNative.StyleSheet.create({
4070
+ var styles27 = reactNative.StyleSheet.create({
4017
4071
  panel: { borderWidth: 1, borderRadius: PANEL_RADIUS, padding: PANEL_PAD, gap: PANEL_PAD },
4018
4072
  dropList: { maxHeight: MENU_MAX_HEIGHT },
4019
4073
  sheetList: { maxHeight: SHEET_MAX_HEIGHT2 },
@@ -4123,7 +4177,7 @@ function SearchSelect(props) {
4123
4177
  const onTriggerBlur = React37.useCallback(() => {
4124
4178
  if (!openRef.current) onBlur?.();
4125
4179
  }, [onBlur]);
4126
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: anchorRef, style: styles27.anchor, children: [
4180
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: anchorRef, style: styles28.anchor, children: [
4127
4181
  /* @__PURE__ */ jsxRuntime.jsx(
4128
4182
  reactNative.Pressable,
4129
4183
  {
@@ -4132,7 +4186,7 @@ function SearchSelect(props) {
4132
4186
  accessibilityLabel,
4133
4187
  accessibilityRole: "button",
4134
4188
  accessibilityState: { expanded: state.open },
4135
- style: renderTrigger === void 0 ? [controlStyles.selectTrigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }] : styles27.customTrigger,
4189
+ style: renderTrigger === void 0 ? [controlStyles.selectTrigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }] : styles28.customTrigger,
4136
4190
  testID,
4137
4191
  onBlur: onTriggerBlur,
4138
4192
  onPress,
@@ -4144,7 +4198,7 @@ function SearchSelect(props) {
4144
4198
  }
4145
4199
  function FieldBoxContent({ selected, placeholder, colors, renderLeading, renderDetail }) {
4146
4200
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4147
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles27.value, children: [
4201
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles28.value, children: [
4148
4202
  selected !== null && renderLeading !== void 0 ? renderLeading(selected) : null,
4149
4203
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [controlStyles.selectTriggerText, { color: selected === null ? colors.textSecondary : colors.text }], children: selected?.label ?? placeholder }),
4150
4204
  selected !== null ? /* @__PURE__ */ jsxRuntime.jsx(SelectedDetail, { colors, option: selected, renderDetail }) : null
@@ -4157,7 +4211,7 @@ function SelectedDetail({ option, colors, renderDetail }) {
4157
4211
  if (option.detail === void 0) return null;
4158
4212
  return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [controlStyles.selectTriggerText, { color: colors.textSecondary }], children: option.detail });
4159
4213
  }
4160
- var styles27 = reactNative.StyleSheet.create({
4214
+ var styles28 = reactNative.StyleSheet.create({
4161
4215
  anchor: { position: "relative" },
4162
4216
  customTrigger: { minHeight: MIN_TOUCH, minWidth: MIN_TOUCH, alignSelf: "flex-start", justifyContent: "center" },
4163
4217
  value: { flex: 1, flexDirection: "row", alignItems: "center", gap: VALUE_GAP }
@@ -4934,7 +4988,7 @@ function CountryField({ value, onChange, accessibilityLabel, accessibilityHint,
4934
4988
  const { theme } = uiFeedback.useUi();
4935
4989
  const { textSecondary } = theme.colors;
4936
4990
  const options = React37.useMemo(() => countryFieldOptions(countries, noneLabel), [countries, noneLabel]);
4937
- const renderCode = React37.useCallback((option) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles28.code, { color: textSecondary }], children: option.detail }), [textSecondary]);
4991
+ const renderCode = React37.useCallback((option) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles29.code, { color: textSecondary }], children: option.detail }), [textSecondary]);
4938
4992
  return /* @__PURE__ */ jsxRuntime.jsx(
4939
4993
  SearchSelect,
4940
4994
  {
@@ -4952,7 +5006,7 @@ function CountryField({ value, onChange, accessibilityLabel, accessibilityHint,
4952
5006
  }
4953
5007
  );
4954
5008
  }
4955
- var styles28 = reactNative.StyleSheet.create({
5009
+ var styles29 = reactNative.StyleSheet.create({
4956
5010
  code: { fontSize: CODE_FONT }
4957
5011
  });
4958
5012
  function useBlurVerdict(validate) {
@@ -5208,9 +5262,9 @@ var LINE_GAP = 4;
5208
5262
  function RejectionLine({ message, testID }) {
5209
5263
  const { theme } = uiFeedback.useUi();
5210
5264
  if (message === null) return null;
5211
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityLiveRegion: "polite", style: [styles29.line, { color: fieldErrorInk(theme) }], testID: `${testID}-rejection`, children: message });
5265
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityLiveRegion: "polite", style: [styles30.line, { color: fieldErrorInk(theme) }], testID: `${testID}-rejection`, children: message });
5212
5266
  }
5213
- var styles29 = reactNative.StyleSheet.create({
5267
+ var styles30 = reactNative.StyleSheet.create({
5214
5268
  line: { marginTop: LINE_GAP }
5215
5269
  });
5216
5270
 
@@ -5357,7 +5411,7 @@ var PAD_V = 10;
5357
5411
  var PAD_H = 16;
5358
5412
  var TEXT_SIZE2 = 13;
5359
5413
  var TEXT_LINE2 = 18;
5360
- var styles30 = reactNative.StyleSheet.create({
5414
+ var styles31 = reactNative.StyleSheet.create({
5361
5415
  bar: { borderTopWidth: 1, paddingHorizontal: PAD_H, paddingVertical: PAD_V, rowGap: BAR_GAP },
5362
5416
  actions: { flexDirection: "row", flexWrap: "wrap", gap: BAR_GAP },
5363
5417
  message: { fontSize: TEXT_SIZE2, fontWeight: "700", lineHeight: TEXT_LINE2 }
@@ -5369,9 +5423,9 @@ var ActionBar = ({ children, message, sticky = false, testID, style }) => {
5369
5423
  const { colors } = theme;
5370
5424
  const pinned = actionBarPosition(sticky, reactNative.Platform.OS) === "sticky" ? PINNED : null;
5371
5425
  const hasMessage = message !== void 0 && message !== "";
5372
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles30.bar, { backgroundColor: colors.surface, borderTopColor: colors.border }, pinned, style], testID, children: [
5373
- hasMessage ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "status", style: [styles30.message, { color: colors.text }], testID: `${testID}-message`, children: message }) : null,
5374
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles30.actions, children })
5426
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles31.bar, { backgroundColor: colors.surface, borderTopColor: colors.border }, pinned, style], testID, children: [
5427
+ hasMessage ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "status", style: [styles31.message, { color: colors.text }], testID: `${testID}-message`, children: message }) : null,
5428
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles31.actions, children })
5375
5429
  ] });
5376
5430
  };
5377
5431
 
@@ -5379,14 +5433,14 @@ var ActionBar = ({ children, message, sticky = false, testID, style }) => {
5379
5433
  var isChecklistComplete = (items, checked) => items.every((item) => checked.includes(item.id));
5380
5434
  var TITLE_SIZE = 13;
5381
5435
  var TITLE_GAP = 6;
5382
- var styles31 = reactNative.StyleSheet.create({
5436
+ var styles32 = reactNative.StyleSheet.create({
5383
5437
  title: { fontSize: TITLE_SIZE, fontWeight: "700", marginBottom: TITLE_GAP }
5384
5438
  });
5385
5439
  var GatedChecklist = ({ title, items, checked, onToggle, testID, disabled = false, children }) => {
5386
5440
  const { theme } = uiFeedback.useUi();
5387
5441
  const complete = isChecklistComplete(items, checked);
5388
5442
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { testID, children: [
5389
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles31.title, { color: theme.colors.text }], children: title }),
5443
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles32.title, { color: theme.colors.text }], children: title }),
5390
5444
  items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
5391
5445
  FormCheckbox,
5392
5446
  {
@@ -5412,7 +5466,7 @@ var RADIUS2 = 8;
5412
5466
  var LABEL_SIZE = 14;
5413
5467
  var DESCRIPTION_SIZE = 12;
5414
5468
  var DESCRIPTION_LINE = 16;
5415
- var styles32 = reactNative.StyleSheet.create({
5469
+ var styles33 = reactNative.StyleSheet.create({
5416
5470
  row: {
5417
5471
  alignItems: "center",
5418
5472
  borderRadius: RADIUS2,
@@ -5443,15 +5497,15 @@ function RadioRow({ option, identity, colors, tabIndex, hostRef, onPress }) {
5443
5497
  accessibilityState: identity.accessibilityState,
5444
5498
  "aria-checked": checked,
5445
5499
  disabled,
5446
- style: [styles32.row, { borderColor: accent, backgroundColor: checked ? colors.tint : colors.muted }],
5500
+ style: [styles33.row, { borderColor: accent, backgroundColor: checked ? colors.tint : colors.muted }],
5447
5501
  tabIndex,
5448
5502
  testID: identity.testID,
5449
5503
  onPress,
5450
5504
  children: [
5451
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles32.dot, { borderColor: accent }], children: checked ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles32.dotInner, { backgroundColor: colors.primary }] }) : null }),
5452
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles32.text, children: [
5453
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles32.label, { color: checked ? colors.primary : colors.textStrong }], children: option.label }),
5454
- hasDescription ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles32.description, { color: colors.textMuted }], testID: `${identity.testID}-description`, children: option.description }) : null
5505
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles33.dot, { borderColor: accent }], children: checked ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles33.dotInner, { backgroundColor: colors.primary }] }) : null }),
5506
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles33.text, children: [
5507
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles33.label, { color: checked ? colors.primary : colors.textStrong }], children: option.label }),
5508
+ hasDescription ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles33.description, { color: colors.textMuted }], testID: `${identity.testID}-description`, children: option.description }) : null
5455
5509
  ] })
5456
5510
  ]
5457
5511
  }
@@ -5468,7 +5522,7 @@ var radioRowIdentity = (option, selected, disabled, prefix) => {
5468
5522
  };
5469
5523
  };
5470
5524
  var ROW_GAP7 = 8;
5471
- var styles33 = reactNative.StyleSheet.create({
5525
+ var styles34 = reactNative.StyleSheet.create({
5472
5526
  list: { rowGap: ROW_GAP7 }
5473
5527
  });
5474
5528
  function RadioList(props) {
@@ -5481,7 +5535,7 @@ function RadioList(props) {
5481
5535
  reactNative.View,
5482
5536
  {
5483
5537
  accessibilityRole: "radiogroup",
5484
- style: styles33.list,
5538
+ style: styles34.list,
5485
5539
  ...webFieldA11y({ describedById, hasError }),
5486
5540
  ...radio.groupProps,
5487
5541
  children: options.map((option, index) => /* @__PURE__ */ jsxRuntime.jsx(
@@ -5535,11 +5589,11 @@ function DecisionNote({ state, labels, testID, disabled }) {
5535
5589
  );
5536
5590
  }
5537
5591
  var BUTTON_BASIS = "40%";
5538
- var styles34 = reactNative.StyleSheet.create({
5592
+ var styles35 = reactNative.StyleSheet.create({
5539
5593
  cell: { flexBasis: BUTTON_BASIS, flexGrow: 1 }
5540
5594
  });
5541
5595
  function OutcomeButtons({ outcomes, pending, disabled, testID, onPress }) {
5542
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: outcomes.map((item) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles34.cell, children: /* @__PURE__ */ jsxRuntime.jsx(
5596
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: outcomes.map((item) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles35.cell, children: /* @__PURE__ */ jsxRuntime.jsx(
5543
5597
  uiButtons.Button,
5544
5598
  {
5545
5599
  fullWidth: true,
@@ -5620,12 +5674,12 @@ function StickyBarDecision(props) {
5620
5674
  }
5621
5675
  var TEXT_SIZE3 = 13;
5622
5676
  var TEXT_LINE3 = 18;
5623
- var styles35 = reactNative.StyleSheet.create({
5677
+ var styles36 = reactNative.StyleSheet.create({
5624
5678
  text: { fontSize: TEXT_SIZE3, fontWeight: "700", lineHeight: TEXT_LINE3 }
5625
5679
  });
5626
5680
  var SubmitError = ({ message, testID }) => {
5627
5681
  const { theme } = uiFeedback.useUi();
5628
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "alert", style: [styles35.text, { color: fieldErrorInk(theme) }], testID, children: message });
5682
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "alert", style: [styles36.text, { color: fieldErrorInk(theme) }], testID, children: message });
5629
5683
  };
5630
5684
  var toggle = (list, id) => list.includes(id) ? list.filter((item) => item !== id) : [...list, id];
5631
5685
  function useDecisionPanel(outcomes, onSubmit) {
@@ -5668,7 +5722,7 @@ function useDecisionPanel(outcomes, onSubmit) {
5668
5722
  }
5669
5723
  var TITLE_SIZE2 = 15;
5670
5724
  var PANEL_GAP = 12;
5671
- var styles36 = reactNative.StyleSheet.create({
5725
+ var styles37 = reactNative.StyleSheet.create({
5672
5726
  panel: { rowGap: PANEL_GAP },
5673
5727
  title: { fontSize: TITLE_SIZE2, fontWeight: "700" }
5674
5728
  });
@@ -5682,8 +5736,8 @@ function DecisionPanel(props) {
5682
5736
  const { theme } = uiFeedback.useUi();
5683
5737
  const state = useDecisionPanel(outcomes, onSubmit);
5684
5738
  const body = (locked) => renderVariant(variant, { state, outcomes, labels, testID, disabled: disabled || locked, reasons, leadOutcome });
5685
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles36.panel, style], testID, children: [
5686
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles36.title, { color: theme.colors.text }], children: labels.title }),
5739
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles37.panel, style], testID, children: [
5740
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles37.title, { color: theme.colors.text }], children: labels.title }),
5687
5741
  checklist !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(GatedChecklist, { checked: state.checked, items: checklist.items, testID: `${testID}-checklist`, title: checklist.title, onToggle: state.toggleCheck, children: (complete) => body(!complete) }) : body(false),
5688
5742
  state.error === "submit" ? /* @__PURE__ */ jsxRuntime.jsx(SubmitError, { message: labels.submitError, testID: `${testID}-error` }) : null
5689
5743
  ] });
@@ -5740,6 +5794,8 @@ exports.PHONE_MAX_WIDTH = PHONE_MAX_WIDTH;
5740
5794
  exports.RESPONSIVE_FORM_DEFAULT_BREAKPOINT = RESPONSIVE_FORM_DEFAULT_BREAKPOINT;
5741
5795
  exports.RadioList = RadioList;
5742
5796
  exports.ResponsiveFormLayout = ResponsiveFormLayout;
5797
+ exports.SEGMENT_BESIDE_FIELD = SEGMENT_BESIDE_FIELD;
5798
+ exports.SEGMENT_BESIDE_TEXT_INPUT = SEGMENT_BESIDE_TEXT_INPUT;
5743
5799
  exports.SearchSelect = SearchSelect;
5744
5800
  exports.SelectControl = SelectControl;
5745
5801
  exports.SelectField = SelectField;
@@ -5788,9 +5844,11 @@ exports.rejectionMessage = rejectionMessage;
5788
5844
  exports.resolveGroupSelection = resolveGroupSelection;
5789
5845
  exports.resolveSelectMotion = resolveSelectMotion;
5790
5846
  exports.resolveStepNeighbours = resolveStepNeighbours;
5847
+ exports.rowsForText = rowsForText;
5791
5848
  exports.suggestOptions = suggestOptions;
5792
5849
  exports.toCountryValue = toCountryValue;
5793
5850
  exports.toggleGroupSelection = toggleGroupSelection;
5851
+ exports.useAutoGrowRows = useAutoGrowRows;
5794
5852
  exports.useBlurVerdict = useBlurVerdict;
5795
5853
  exports.useDeferredFocus = useDeferredFocus;
5796
5854
  exports.useFocusFirstInvalid = useFocusFirstInvalid;