@dloizides/ui-forms 1.48.0 → 1.49.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,5 +1,5 @@
1
- import React38, { forwardRef, createContext, useRef, useImperativeHandle, useState, useCallback, useMemo, useEffect, useLayoutEffect, useContext } from 'react';
2
- import { Platform, StyleSheet, TextInput, View, Text, Pressable, useWindowDimensions, ScrollView, Animated, Easing, AccessibilityInfo, Switch, Image, TouchableOpacity, Modal } from 'react-native';
1
+ import React39, { forwardRef, createContext, useRef, useImperativeHandle, useState, useCallback, useMemo, useEffect, useLayoutEffect, useContext } from 'react';
2
+ import { Platform, StyleSheet, TextInput, View, Text, Pressable, useWindowDimensions, ScrollView, Animated, Easing, AccessibilityInfo, Image, TouchableOpacity, Switch, Modal } from 'react-native';
3
3
  import { useUi } from '@dloizides/ui-feedback';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
5
  import { Z_INDEX, focusRingOutline, readableScaleInk, resolveOnBrand } from '@dloizides/design-tokens';
@@ -12,7 +12,7 @@ import Svg, { Rect, Circle, Polygon } from 'react-native-svg';
12
12
 
13
13
  // src/Field/Field.tsx
14
14
  function attachControlId(child, candidateId, describedById) {
15
- if (!React38.isValidElement(child) || child.type === React38.Fragment) {
15
+ if (!React39.isValidElement(child) || child.type === React39.Fragment) {
16
16
  return { node: child };
17
17
  }
18
18
  const props = child.props;
@@ -23,7 +23,7 @@ function attachControlId(child, candidateId, describedById) {
23
23
  if (describedById !== void 0 && props.describedById === void 0) {
24
24
  injected.describedById = describedById;
25
25
  }
26
- return { node: React38.cloneElement(element, injected), controlId };
26
+ return { node: React39.cloneElement(element, injected), controlId };
27
27
  }
28
28
  var IS_WEB = Platform.OS === "web";
29
29
  function isAttributeHost(node) {
@@ -141,15 +141,15 @@ var labelVariantStyles = StyleSheet.create({
141
141
  function resolveLabelVariantStyle(variant) {
142
142
  return labelVariantStyles[variant ?? "field"] ?? labelVariantStyles.field;
143
143
  }
144
- var FormGridContext = React38.createContext(null);
145
- var GapOwnedContext = React38.createContext(false);
144
+ var FormGridContext = React39.createContext(null);
145
+ var GapOwnedContext = React39.createContext(false);
146
146
  var FormGridProvider = FormGridContext.Provider;
147
147
  var GapOwnedProvider = GapOwnedContext.Provider;
148
148
  function useFormGridMetrics() {
149
- return React38.useContext(FormGridContext);
149
+ return React39.useContext(FormGridContext);
150
150
  }
151
151
  function useIsGapOwned() {
152
- return React38.useContext(GapOwnedContext);
152
+ return React39.useContext(GapOwnedContext);
153
153
  }
154
154
  var ERROR_LIGHT_STEPS = ["500", "600", "700"];
155
155
  var ERROR_DARK_STEPS = ["300", "200", "400", "100", "500"];
@@ -172,7 +172,7 @@ var styles = StyleSheet.create({
172
172
  });
173
173
  var fieldSeq = 0;
174
174
  function useFieldIds() {
175
- const [ids] = React38.useState(() => {
175
+ const [ids] = React39.useState(() => {
176
176
  fieldSeq += 1;
177
177
  const seq = String(fieldSeq);
178
178
  return {
@@ -219,7 +219,7 @@ var Field = ({
219
219
  const hasLabel = labelText !== "";
220
220
  const marker = resolveFieldMarker(required, optional);
221
221
  const { hintId, errorId, controlId, labelId } = useFieldIds();
222
- const themeStyles = React38.useMemo(
222
+ const themeStyles = React39.useMemo(
223
223
  () => ({
224
224
  label: { color: colors.textSecondary },
225
225
  requiredMark: { color: errorColor },
@@ -271,7 +271,7 @@ var FormGrid = ({
271
271
  style,
272
272
  testID
273
273
  }) => {
274
- const metrics = React38.useMemo(() => ({ minWidth, basis }), [minWidth, basis]);
274
+ const metrics = React39.useMemo(() => ({ minWidth, basis }), [minWidth, basis]);
275
275
  return /* @__PURE__ */ jsx(FormGridProvider, { value: metrics, children: /* @__PURE__ */ jsx(GapOwnedProvider, { value: true, children: /* @__PURE__ */ jsx(View, { style: [styles2.grid, { gap }, style], testID, children }) }) });
276
276
  };
277
277
  var LABEL_LINE_PLACEHOLDER = "\xA0";
@@ -538,7 +538,7 @@ var styles9 = StyleSheet.create({
538
538
  });
539
539
  var sectionSeq = 0;
540
540
  function useSectionLegendId() {
541
- const [id] = React38.useState(() => {
541
+ const [id] = React39.useState(() => {
542
542
  sectionSeq += 1;
543
543
  return `form-section-legend-${String(sectionSeq)}`;
544
544
  });
@@ -932,7 +932,7 @@ function AnchoredMenu({
932
932
  listbox,
933
933
  placement
934
934
  }) {
935
- const menuRef = React38.useRef(null);
935
+ const menuRef = React39.useRef(null);
936
936
  useDismiss(anchorRef, menuRef, onDismiss);
937
937
  useKeepHighlightInView(testID, listbox?.highlightedValue);
938
938
  const rect2 = useAnchorRect(placement?.positionRef ?? anchorRef, usePortal);
@@ -1092,7 +1092,7 @@ var boxStyles = StyleSheet.create({
1092
1092
  textAlignVertical: "top"
1093
1093
  }
1094
1094
  });
1095
- var ThemedTextInput = React38.forwardRef(function ThemedTextInput2({
1095
+ var ThemedTextInput = React39.forwardRef(function ThemedTextInput2({
1096
1096
  hasError = false,
1097
1097
  describedById,
1098
1098
  requiredField = false,
@@ -1494,7 +1494,7 @@ function ChipContent(props) {
1494
1494
  }
1495
1495
  function OutlineChip(props) {
1496
1496
  const { option, selected, disabled, colors, testID, accessibilityHint, onPress } = props;
1497
- const [hovered, setHovered] = React38.useState(false);
1497
+ const [hovered, setHovered] = React39.useState(false);
1498
1498
  const active = selected || hovered;
1499
1499
  const borderColor = active ? colors.primary : colors.border;
1500
1500
  const fill = chipFill({
@@ -1608,8 +1608,8 @@ function radioTabIndex(index, selectedIndex, disabled) {
1608
1608
  var NO_GROUP_PROPS = {};
1609
1609
  function useRadioKeyboard(config) {
1610
1610
  const { enabled, disabled, values, selectedIndex, onChange } = config;
1611
- const nodes = React38.useRef([]);
1612
- const chipRef = React38.useCallback((index) => (node) => {
1611
+ const nodes = React39.useRef([]);
1612
+ const chipRef = React39.useCallback((index) => (node) => {
1613
1613
  nodes.current[index] = node;
1614
1614
  }, []);
1615
1615
  const onKeyDown = (event) => {
@@ -1724,7 +1724,7 @@ var ChipSelector = ({
1724
1724
  const isRadioGroup = !multiple && singleSelectRole === "radio";
1725
1725
  const { theme } = useUi();
1726
1726
  const { colors, palette } = theme;
1727
- const chipColors = React38.useMemo(() => buildChipColors(colors, palette), [colors, palette]);
1727
+ const chipColors = React39.useMemo(() => buildChipColors(colors, palette), [colors, palette]);
1728
1728
  function isSelected(optionValue) {
1729
1729
  if (multiple && Array.isArray(value))
1730
1730
  return value.includes(optionValue);
@@ -1783,8 +1783,95 @@ var ChipSelector = ({
1783
1783
  }
1784
1784
  );
1785
1785
  };
1786
- var DESCRIPTION_FONT_SIZE2 = 12;
1786
+ var BOX_SLOT_PAD_H = 10;
1787
1787
  var styles14 = StyleSheet.create({
1788
+ row: {
1789
+ minWidth: MIN_TOUCH_TARGET_PX,
1790
+ minHeight: MIN_TOUCH_TARGET_PX,
1791
+ alignItems: "center",
1792
+ justifyContent: "center"
1793
+ },
1794
+ box: {
1795
+ alignSelf: "stretch",
1796
+ alignItems: "center",
1797
+ justifyContent: "center",
1798
+ paddingHorizontal: BOX_SLOT_PAD_H
1799
+ }
1800
+ });
1801
+ var SwitchSlot = ({
1802
+ label,
1803
+ value,
1804
+ onValueChange,
1805
+ disabled,
1806
+ testID,
1807
+ accessibilityHint,
1808
+ activeTrackColor,
1809
+ inBox = false
1810
+ }) => /* @__PURE__ */ jsx(View, { pointerEvents: "none", style: inBox ? styles14.box : styles14.row, testID: `${testID}-hitbox`, children: /* @__PURE__ */ jsx(
1811
+ Switch,
1812
+ {
1813
+ accessibilityHint: accessibilityHint ?? label,
1814
+ accessibilityLabel: label,
1815
+ accessibilityState: { checked: value, disabled },
1816
+ disabled,
1817
+ testID: `${testID}-switch`,
1818
+ trackColor: activeTrackColor === void 0 ? void 0 : { true: activeTrackColor },
1819
+ value,
1820
+ onValueChange
1821
+ }
1822
+ ) });
1823
+ var BOX_RADIUS = 8;
1824
+ var BOX_PAD_LEFT = 10;
1825
+ var BOX_BORDER = 1;
1826
+ var STATE_FONT_SIZE = 13;
1827
+ var styles15 = StyleSheet.create({
1828
+ box: {
1829
+ flexDirection: "row",
1830
+ alignItems: "center",
1831
+ justifyContent: "space-between",
1832
+ minHeight: MIN_TOUCH_TARGET_PX,
1833
+ borderWidth: BOX_BORDER,
1834
+ borderRadius: BOX_RADIUS,
1835
+ paddingLeft: BOX_PAD_LEFT
1836
+ },
1837
+ state: {
1838
+ flex: 1,
1839
+ fontSize: STATE_FONT_SIZE
1840
+ }
1841
+ });
1842
+ var FormSwitchBox = ({
1843
+ stateLabel,
1844
+ description,
1845
+ containerStyle,
1846
+ ...slot
1847
+ }) => {
1848
+ const { colors } = useUi().theme;
1849
+ const { disabled, onValueChange, value } = slot;
1850
+ const toggle2 = React39.useCallback(() => {
1851
+ if (!disabled) onValueChange(!value);
1852
+ }, [disabled, onValueChange, value]);
1853
+ const boxColors = React39.useMemo(
1854
+ () => ({ borderColor: colors.border, backgroundColor: colors.surface }),
1855
+ [colors.border, colors.surface]
1856
+ );
1857
+ return /* @__PURE__ */ jsx(Field, { containerStyle, hint: description, label: slot.label, labelVariant: "control", children: () => /* @__PURE__ */ jsxs(
1858
+ Pressable,
1859
+ {
1860
+ accessible: false,
1861
+ disabled,
1862
+ style: [styles15.box, boxColors],
1863
+ tabIndex: -1,
1864
+ testID: slot.testID,
1865
+ onPress: toggle2,
1866
+ children: [
1867
+ /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles15.state, { color: colors.text }], children: stateLabel ?? "" }),
1868
+ /* @__PURE__ */ jsx(SwitchSlot, { ...slot, inBox: true })
1869
+ ]
1870
+ }
1871
+ ) });
1872
+ };
1873
+ var DESCRIPTION_FONT_SIZE2 = 12;
1874
+ var styles16 = StyleSheet.create({
1788
1875
  container: {
1789
1876
  flexDirection: "row",
1790
1877
  justifyContent: "space-between",
@@ -1794,12 +1881,6 @@ var styles14 = StyleSheet.create({
1794
1881
  // `hitSlop`, so a pointer target smaller than the floor cannot be widened any other way.
1795
1882
  minHeight: MIN_TOUCH_TARGET_PX
1796
1883
  },
1797
- switchSlot: {
1798
- minWidth: MIN_TOUCH_TARGET_PX,
1799
- minHeight: MIN_TOUCH_TARGET_PX,
1800
- alignItems: "center",
1801
- justifyContent: "center"
1802
- },
1803
1884
  textColumn: {
1804
1885
  flex: 1
1805
1886
  },
@@ -1811,23 +1892,24 @@ var styles14 = StyleSheet.create({
1811
1892
  marginTop: 2
1812
1893
  }
1813
1894
  });
1814
- var FormSwitch = ({
1895
+ var FormSwitchRow = ({
1815
1896
  label,
1816
1897
  value,
1817
1898
  onValueChange,
1818
1899
  disabled = false,
1819
1900
  description,
1820
1901
  containerStyle,
1821
- testID = "form-switch",
1822
- accessibilityHint
1902
+ testID,
1903
+ accessibilityHint,
1904
+ activeTrackColor
1823
1905
  }) => {
1824
1906
  const { theme } = useUi();
1825
- const toggle2 = React38.useCallback(() => {
1907
+ const toggle2 = React39.useCallback(() => {
1826
1908
  if (!disabled) onValueChange(!value);
1827
1909
  }, [disabled, onValueChange, value]);
1828
1910
  const { colors } = theme;
1829
1911
  const hasDescription = typeof description === "string" && description !== "";
1830
- const themeStyles = React38.useMemo(() => {
1912
+ const themeStyles = React39.useMemo(() => {
1831
1913
  const labelStyle = { color: colors.text };
1832
1914
  const descriptionStyle = { color: colors.textSecondary };
1833
1915
  return { label: labelStyle, description: descriptionStyle };
@@ -1845,38 +1927,45 @@ var FormSwitch = ({
1845
1927
  accessible: false,
1846
1928
  disabled,
1847
1929
  onPress: toggle2,
1848
- style: [styles14.container, containerStyle],
1930
+ style: [styles16.container, containerStyle],
1849
1931
  tabIndex: -1,
1850
1932
  testID,
1851
1933
  children: [
1852
- /* @__PURE__ */ jsxs(View, { style: styles14.textColumn, children: [
1853
- /* @__PURE__ */ jsx(Text, { style: [styles14.label, themeStyles.label], children: label }),
1854
- hasDescription ? /* @__PURE__ */ jsx(Text, { style: [styles14.description, themeStyles.description], children: description }) : null
1934
+ /* @__PURE__ */ jsxs(View, { style: styles16.textColumn, children: [
1935
+ /* @__PURE__ */ jsx(Text, { style: [styles16.label, themeStyles.label], children: label }),
1936
+ hasDescription ? /* @__PURE__ */ jsx(Text, { style: [styles16.description, themeStyles.description], children: description }) : null
1855
1937
  ] }),
1856
- /* @__PURE__ */ jsx(View, { pointerEvents: "none", style: styles14.switchSlot, testID: `${testID}-hitbox`, children: /* @__PURE__ */ jsx(
1857
- Switch,
1938
+ /* @__PURE__ */ jsx(
1939
+ SwitchSlot,
1858
1940
  {
1859
- accessibilityHint: accessibilityHint ?? label,
1860
- accessibilityLabel: label,
1861
- accessibilityState: { checked: value, disabled },
1941
+ accessibilityHint,
1942
+ activeTrackColor,
1862
1943
  disabled,
1863
- testID: `${testID}-switch`,
1944
+ label,
1945
+ testID,
1864
1946
  value,
1865
1947
  onValueChange
1866
1948
  }
1867
- ) })
1949
+ )
1868
1950
  ]
1869
1951
  }
1870
1952
  )
1871
1953
  );
1872
1954
  };
1955
+ var FormSwitch = ({
1956
+ variant = "row",
1957
+ stateLabel,
1958
+ testID = "form-switch",
1959
+ disabled = false,
1960
+ ...props
1961
+ }) => variant === "box" ? /* @__PURE__ */ jsx(FormSwitchBox, { ...props, disabled, stateLabel, testID }) : /* @__PURE__ */ jsx(FormSwitchRow, { ...props, disabled, testID });
1873
1962
 
1874
1963
  // src/FormCheckbox/checkboxColors.ts
1875
1964
  var checkboxBoxColors = (colors, brand, checked) => checked ? { backgroundColor: brand, borderColor: brand } : { backgroundColor: "transparent", borderColor: colors.textSecondary };
1876
1965
  var ACTIVATION_KEYS = ["Enter", " ", "Spacebar"];
1877
1966
  var HINT_FONT_SIZE2 = 12;
1878
1967
  var BOX_SIZE = 20;
1879
- var BOX_RADIUS = 5;
1968
+ var BOX_RADIUS2 = 5;
1880
1969
  var TICK_WIDTH = 6;
1881
1970
  var TICK_HEIGHT = 10;
1882
1971
  var TICK_STROKE = 2;
@@ -1885,7 +1974,7 @@ var DISABLED_OPACITY = 0.5;
1885
1974
  var FOCUS_RING_WIDTH = 2;
1886
1975
  var WEB_NO_DEFAULT_OUTLINE = { outlineStyle: "none" };
1887
1976
  var FOCUS_RING_INSET = -6;
1888
- var styles15 = StyleSheet.create({
1977
+ var styles17 = StyleSheet.create({
1889
1978
  container: {
1890
1979
  flexDirection: "row",
1891
1980
  alignItems: "flex-start",
@@ -1902,7 +1991,7 @@ var styles15 = StyleSheet.create({
1902
1991
  box: {
1903
1992
  width: BOX_SIZE,
1904
1993
  height: BOX_SIZE,
1905
- borderRadius: BOX_RADIUS,
1994
+ borderRadius: BOX_RADIUS2,
1906
1995
  borderWidth: 2,
1907
1996
  alignItems: "center",
1908
1997
  justifyContent: "center",
@@ -1916,7 +2005,7 @@ var styles15 = StyleSheet.create({
1916
2005
  right: FOCUS_RING_INSET,
1917
2006
  bottom: FOCUS_RING_INSET,
1918
2007
  borderWidth: FOCUS_RING_WIDTH,
1919
- borderRadius: BOX_RADIUS - FOCUS_RING_INSET
2008
+ borderRadius: BOX_RADIUS2 - FOCUS_RING_INSET
1920
2009
  },
1921
2010
  tick: {
1922
2011
  width: TICK_WIDTH,
@@ -1956,8 +2045,8 @@ var FormCheckbox = ({
1956
2045
  const hintText = typeof hint === "string" && hint !== "" ? hint : description;
1957
2046
  const hasHint = typeof hintText === "string" && hintText !== "";
1958
2047
  const { hintId } = useFieldIds();
1959
- const [focused, setFocused] = React38.useState(false);
1960
- const themeStyles = React38.useMemo(() => {
2048
+ const [focused, setFocused] = React39.useState(false);
2049
+ const themeStyles = React39.useMemo(() => {
1961
2050
  const boxOn = checkboxBoxColors(colors, brand, true);
1962
2051
  const boxOff = checkboxBoxColors(colors, brand, false);
1963
2052
  const ring = { borderColor: brand };
@@ -1993,8 +2082,8 @@ var FormCheckbox = ({
1993
2082
  onPress: toggle2,
1994
2083
  role: "checkbox",
1995
2084
  style: [
1996
- styles15.container,
1997
- hasHint ? null : styles15.centered,
2085
+ styles17.container,
2086
+ hasHint ? null : styles17.centered,
1998
2087
  containerStyle,
1999
2088
  disabled ? { opacity: DISABLED_OPACITY } : null,
2000
2089
  Platform.OS === "web" ? WEB_NO_DEFAULT_OUTLINE : null
@@ -2002,13 +2091,13 @@ var FormCheckbox = ({
2002
2091
  testID,
2003
2092
  ...keyboardProps,
2004
2093
  children: [
2005
- /* @__PURE__ */ jsxs(View, { style: [styles15.box, value ? themeStyles.boxOn : themeStyles.boxOff], testID: `${testID}-box`, children: [
2006
- focused ? /* @__PURE__ */ jsx(View, { pointerEvents: "none", style: [styles15.focusRing, themeStyles.ring], testID: `${testID}-focus-ring` }) : null,
2007
- value ? /* @__PURE__ */ jsx(View, { accessibilityElementsHidden: true, pointerEvents: "none", style: [styles15.tick, { borderColor: colors.surface }], testID: `${testID}-tick` }) : null
2094
+ /* @__PURE__ */ jsxs(View, { style: [styles17.box, value ? themeStyles.boxOn : themeStyles.boxOff], testID: `${testID}-box`, children: [
2095
+ focused ? /* @__PURE__ */ jsx(View, { pointerEvents: "none", style: [styles17.focusRing, themeStyles.ring], testID: `${testID}-focus-ring` }) : null,
2096
+ value ? /* @__PURE__ */ jsx(View, { accessibilityElementsHidden: true, pointerEvents: "none", style: [styles17.tick, { borderColor: colors.surface }], testID: `${testID}-tick` }) : null
2008
2097
  ] }),
2009
- /* @__PURE__ */ jsxs(View, { style: styles15.textColumn, children: [
2010
- /* @__PURE__ */ jsx(Text, { style: [styles15.label, themeStyles.label], children: label }),
2011
- hasHint ? /* @__PURE__ */ jsx(Text, { nativeID: hintId, style: [styles15.hint, themeStyles.hint], children: hintText }) : null
2098
+ /* @__PURE__ */ jsxs(View, { style: styles17.textColumn, children: [
2099
+ /* @__PURE__ */ jsx(Text, { style: [styles17.label, themeStyles.label], children: label }),
2100
+ hasHint ? /* @__PURE__ */ jsx(Text, { nativeID: hintId, style: [styles17.hint, themeStyles.hint], children: hintText }) : null
2012
2101
  ] })
2013
2102
  ]
2014
2103
  }
@@ -2224,7 +2313,7 @@ var CHIP_PAD_H = 8;
2224
2313
  var CHIP_PAD_V = 4;
2225
2314
  var CHIP_RADIUS = 999;
2226
2315
  var CHIP_FONT = 13;
2227
- var styles16 = StyleSheet.create({
2316
+ var styles18 = StyleSheet.create({
2228
2317
  chip: {
2229
2318
  flexDirection: "row",
2230
2319
  alignItems: "center",
@@ -2245,12 +2334,12 @@ function SelectedChip({ option, colors, removeLabel, removeHint, onRemove, testI
2245
2334
  accessibilityLabel: removeLabel,
2246
2335
  accessibilityRole: "button",
2247
2336
  hitSlop: CHIP_HIT_SLOP,
2248
- style: [styles16.chip, { borderColor: colors.border, backgroundColor: colors.surface }],
2337
+ style: [styles18.chip, { borderColor: colors.border, backgroundColor: colors.surface }],
2249
2338
  testID,
2250
2339
  onPress: () => onRemove(option.value),
2251
2340
  children: [
2252
- /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles16.text, { color: colors.text }], children: option.label }),
2253
- /* @__PURE__ */ jsx(Text, { "aria-hidden": true, style: [styles16.text, { color: colors.text }], children: REMOVE_GLYPH })
2341
+ /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles18.text, { color: colors.text }], children: option.label }),
2342
+ /* @__PURE__ */ jsx(Text, { "aria-hidden": true, style: [styles18.text, { color: colors.text }], children: REMOVE_GLYPH })
2254
2343
  ]
2255
2344
  }
2256
2345
  );
@@ -2273,7 +2362,7 @@ var CHEVRON_DOWN2 = "\u25BE";
2273
2362
  var CHEVRON_UP2 = "\u25B4";
2274
2363
  var BOX_GAP = 6;
2275
2364
  var TRIGGER_MIN_WIDTH = 96;
2276
- var styles17 = StyleSheet.create({
2365
+ var styles19 = StyleSheet.create({
2277
2366
  box: { flexWrap: "wrap", justifyContent: "flex-start", gap: BOX_GAP },
2278
2367
  trigger: {
2279
2368
  flexGrow: 1,
@@ -2307,7 +2396,7 @@ function MultiSelectBox(props) {
2307
2396
  const chipColors = { text: colors.text, border: colors.border, surface: colors.surface };
2308
2397
  const summary = chosen.map((option) => option.label).join(", ");
2309
2398
  return /* @__PURE__ */ jsxs(View, { ref: anchorRef, style: controlStyles.anchor, children: [
2310
- /* @__PURE__ */ jsxs(View, { style: [controlStyles.selectTrigger, styles17.box, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }], testID: `${testID}-box`, children: [
2399
+ /* @__PURE__ */ jsxs(View, { style: [controlStyles.selectTrigger, styles19.box, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }], testID: `${testID}-box`, children: [
2311
2400
  chosen.map((option) => /* @__PURE__ */ jsx(
2312
2401
  SelectedChip,
2313
2402
  {
@@ -2331,7 +2420,7 @@ function MultiSelectBox(props) {
2331
2420
  "aria-haspopup": "menu",
2332
2421
  "aria-labelledby": labelId,
2333
2422
  disabled: remaining.length === 0,
2334
- style: styles17.trigger,
2423
+ style: styles19.trigger,
2335
2424
  testID: `${testID}-trigger`,
2336
2425
  onPress: toggle2,
2337
2426
  children: [
@@ -2769,20 +2858,20 @@ function DropdownSurface({ progress, translateY, anchorRef, onDismiss, closeLabe
2769
2858
  const place = frame === null ? null : { left: frame.left, width: frame.width, top: frame.top, bottom: frame.bottom };
2770
2859
  return /* @__PURE__ */ jsxs(Modal, { transparent: true, visible: true, animationType: "none", "aria-label": accessibilityLabel, onRequestClose: onDismiss, children: [
2771
2860
  /* @__PURE__ */ jsx(Pressable, { accessibilityHint: closeHint, accessibilityLabel: closeLabel, accessibilityRole: "button", style: StyleSheet.absoluteFill, testID: `${testID}-backdrop`, onPress: onDismiss }),
2772
- frame !== null ? /* @__PURE__ */ jsx(Animated.View, { style: [styles18.dropdown, place, { opacity: progress, transform: scale === void 0 ? [{ translateY }] : [{ translateY }, { scale }] }, scale === void 0 ? null : styles18.growFromField], testID: `${testID}-dropdown-${frame.placement}`, onLayout, children }) : null
2861
+ frame !== null ? /* @__PURE__ */ jsx(Animated.View, { style: [styles20.dropdown, place, { opacity: progress, transform: scale === void 0 ? [{ translateY }] : [{ translateY }, { scale }] }, scale === void 0 ? null : styles20.growFromField], testID: `${testID}-dropdown-${frame.placement}`, onLayout, children }) : null
2773
2862
  ] });
2774
2863
  }
2775
- var styles18 = StyleSheet.create({
2864
+ var styles20 = StyleSheet.create({
2776
2865
  dropdown: { position: "absolute" },
2777
2866
  growFromField: { transformOrigin: "top left" }
2778
2867
  });
2779
2868
  function SheetSurface({ translateY, onDismiss, closeLabel, closeHint, testID, children, progress, scale, accessibilityLabel }) {
2780
- return /* @__PURE__ */ jsx(Modal, { transparent: true, visible: true, animationType: "none", "aria-label": accessibilityLabel, onRequestClose: onDismiss, children: /* @__PURE__ */ jsxs(View, { style: styles19.backdrop, children: [
2869
+ return /* @__PURE__ */ jsx(Modal, { transparent: true, visible: true, animationType: "none", "aria-label": accessibilityLabel, onRequestClose: onDismiss, children: /* @__PURE__ */ jsxs(View, { style: styles21.backdrop, children: [
2781
2870
  /* @__PURE__ */ jsx(Pressable, { accessibilityHint: closeHint, accessibilityLabel: closeLabel, accessibilityRole: "button", style: StyleSheet.absoluteFill, testID: `${testID}-backdrop`, onPress: onDismiss }),
2782
- /* @__PURE__ */ jsx(Animated.View, { testID: `${testID}-sheet`, style: [styles19.sheet, { transform: scale === void 0 ? [{ translateY }] : [{ translateY }, { scale }] }, progress === void 0 ? null : { opacity: progress }], children })
2871
+ /* @__PURE__ */ jsx(Animated.View, { testID: `${testID}-sheet`, style: [styles21.sheet, { transform: scale === void 0 ? [{ translateY }] : [{ translateY }, { scale }] }, progress === void 0 ? null : { opacity: progress }], children })
2783
2872
  ] }) });
2784
2873
  }
2785
- var styles19 = StyleSheet.create({
2874
+ var styles21 = StyleSheet.create({
2786
2875
  backdrop: { flex: 1, justifyContent: "flex-end" },
2787
2876
  sheet: { width: "100%", alignSelf: "stretch" }
2788
2877
  });
@@ -3822,7 +3911,7 @@ var ROW_GAP = 4;
3822
3911
  var TAB_PADDING = 4;
3823
3912
  var INDICATOR_WIDTH = 2;
3824
3913
  var TAB_FONT_SIZE = 12;
3825
- var styles20 = StyleSheet.create({
3914
+ var styles22 = StyleSheet.create({
3826
3915
  row: { flexDirection: "row", flexWrap: "nowrap", gap: ROW_GAP },
3827
3916
  tab: {
3828
3917
  borderBottomWidth: INDICATOR_WIDTH,
@@ -3862,13 +3951,13 @@ var StepperTab = ({
3862
3951
  accessibilityRole: "tab",
3863
3952
  accessibilityState: { selected },
3864
3953
  "aria-selected": selected,
3865
- style: [styles20.tab, { borderBottomColor: indicator }, ring.ringStyle],
3954
+ style: [styles22.tab, { borderBottomColor: indicator }, ring.ringStyle],
3866
3955
  testID,
3867
3956
  onBlur: ring.onBlur,
3868
3957
  onFocus: ring.onFocus,
3869
3958
  onPress: () => onStep(step.key),
3870
3959
  ...webKeyProps,
3871
- children: /* @__PURE__ */ jsx(Text, { style: [styles20.text, { color: theme.colors.text }, selected ? styles20.textSelected : void 0], children: step.label })
3960
+ children: /* @__PURE__ */ jsx(Text, { style: [styles22.text, { color: theme.colors.text }, selected ? styles22.textSelected : void 0], children: step.label })
3872
3961
  }
3873
3962
  );
3874
3963
  };
@@ -3878,7 +3967,7 @@ var StepperTabs = ({
3878
3967
  onStep,
3879
3968
  stepHint,
3880
3969
  testID
3881
- }) => /* @__PURE__ */ jsx(View, { accessibilityRole: "tablist", style: styles20.row, testID, children: steps.map((step) => /* @__PURE__ */ jsx(
3970
+ }) => /* @__PURE__ */ jsx(View, { accessibilityRole: "tablist", style: styles22.row, testID, children: steps.map((step) => /* @__PURE__ */ jsx(
3882
3971
  StepperTab,
3883
3972
  {
3884
3973
  hint: stepHint,
@@ -3897,7 +3986,7 @@ function resolveStepNeighbours(steps, current) {
3897
3986
  return { previous: steps[index - 1] ?? null, next: steps[index + 1] ?? null };
3898
3987
  }
3899
3988
  var ROW_GAP2 = 8;
3900
- var styles21 = StyleSheet.create({
3989
+ var styles23 = StyleSheet.create({
3901
3990
  cell: { flex: 1, minWidth: 0 },
3902
3991
  row: { flexDirection: "row", gap: ROW_GAP2 }
3903
3992
  });
@@ -3909,8 +3998,8 @@ var StepperNav = ({
3909
3998
  testID
3910
3999
  }) => {
3911
4000
  const { previous, next } = resolveStepNeighbours(steps, current);
3912
- return /* @__PURE__ */ jsxs(View, { style: styles21.row, testID, children: [
3913
- /* @__PURE__ */ jsx(View, { style: styles21.cell, children: /* @__PURE__ */ jsx(
4001
+ return /* @__PURE__ */ jsxs(View, { style: styles23.row, testID, children: [
4002
+ /* @__PURE__ */ jsx(View, { style: styles23.cell, children: /* @__PURE__ */ jsx(
3914
4003
  Button,
3915
4004
  {
3916
4005
  fullWidth: true,
@@ -3926,7 +4015,7 @@ var StepperNav = ({
3926
4015
  }
3927
4016
  }
3928
4017
  ) }),
3929
- next === null ? null : /* @__PURE__ */ jsx(View, { style: styles21.cell, children: /* @__PURE__ */ jsx(
4018
+ next === null ? null : /* @__PURE__ */ jsx(View, { style: styles23.cell, children: /* @__PURE__ */ jsx(
3930
4019
  Button,
3931
4020
  {
3932
4021
  fullWidth: true,
@@ -3941,13 +4030,13 @@ var StepperNav = ({
3941
4030
  ] });
3942
4031
  };
3943
4032
  var STATUS_FONT = 16;
3944
- var styles22 = StyleSheet.create({
4033
+ var styles24 = StyleSheet.create({
3945
4034
  line: { fontSize: STATUS_FONT }
3946
4035
  });
3947
4036
  function FormStatusLine({ message, testID, style }) {
3948
4037
  const { theme } = useUi();
3949
4038
  if (message === null || message === void 0 || message === "") return null;
3950
- return /* @__PURE__ */ jsx(Text, { role: "alert", style: [styles22.line, { color: theme.colors.text }, style], testID, children: message });
4039
+ return /* @__PURE__ */ jsx(Text, { role: "alert", style: [styles24.line, { color: theme.colors.text }, style], testID, children: message });
3951
4040
  }
3952
4041
  function useFocusFirstInvalid(refs) {
3953
4042
  const latest = useRef(refs);
@@ -4036,7 +4125,7 @@ function useKeepInView(trigger) {
4036
4125
  }
4037
4126
  var IS_WEB10 = Platform.OS === "web";
4038
4127
  var INPUT_FONT2 = 14;
4039
- var styles23 = StyleSheet.create({
4128
+ var styles25 = StyleSheet.create({
4040
4129
  nativeButton: { minHeight: MIN_TOUCH_TARGET_PX, minWidth: MIN_TOUCH_TARGET_PX, justifyContent: "center" },
4041
4130
  nativeText: { fontSize: INPUT_FONT2 }
4042
4131
  });
@@ -4064,10 +4153,10 @@ function FileInput({
4064
4153
  accessibilityRole: "button",
4065
4154
  accessibilityState: { disabled },
4066
4155
  disabled,
4067
- style: styles23.nativeButton,
4156
+ style: styles25.nativeButton,
4068
4157
  testID,
4069
4158
  onPress: onNativePick,
4070
- children: /* @__PURE__ */ jsx(Text, { style: [styles23.nativeText, { color: colors.text }], children: nativeLabel ?? accessibilityLabel })
4159
+ children: /* @__PURE__ */ jsx(Text, { style: [styles25.nativeText, { color: colors.text }], children: nativeLabel ?? accessibilityLabel })
4071
4160
  }
4072
4161
  );
4073
4162
  }
@@ -4097,7 +4186,7 @@ var PREVIEW_RADIUS = 8;
4097
4186
  var GAP6 = 8;
4098
4187
  var TITLE_FONT_SIZE = 14;
4099
4188
  var HELP_FONT_SIZE = 13;
4100
- var styles24 = StyleSheet.create({
4189
+ var styles26 = StyleSheet.create({
4101
4190
  help: { flex: 1, fontSize: HELP_FONT_SIZE },
4102
4191
  root: { gap: GAP6 },
4103
4192
  tile: { alignItems: "center", flexDirection: "row", gap: GAP6 },
@@ -4119,11 +4208,11 @@ var UploadWithLinkField = ({
4119
4208
  const url = value ?? "";
4120
4209
  const [pasting, setPasting] = useState(url !== "");
4121
4210
  const previewBox = { borderRadius: PREVIEW_RADIUS, height: previewSize, width: previewSize };
4122
- return /* @__PURE__ */ jsxs(View, { style: styles24.root, children: [
4123
- /* @__PURE__ */ jsx(Text, { style: [styles24.title, { color: theme.colors.text }], children: labels.title }),
4124
- /* @__PURE__ */ jsxs(View, { style: styles24.tile, children: [
4211
+ return /* @__PURE__ */ jsxs(View, { style: styles26.root, children: [
4212
+ /* @__PURE__ */ jsx(Text, { style: [styles26.title, { color: theme.colors.text }], children: labels.title }),
4213
+ /* @__PURE__ */ jsxs(View, { style: styles26.tile, children: [
4125
4214
  url === "" ? /* @__PURE__ */ jsx(View, { style: [previewBox, { backgroundColor: theme.colors.border }] }) : /* @__PURE__ */ jsx(Image, { accessible: false, source: { uri: url }, style: previewBox, testID: `${testID}-preview` }),
4126
- labels.help === void 0 ? null : /* @__PURE__ */ jsx(Text, { style: [styles24.help, { color: theme.colors.text }], children: labels.help })
4215
+ labels.help === void 0 ? null : /* @__PURE__ */ jsx(Text, { style: [styles26.help, { color: theme.colors.text }], children: labels.help })
4127
4216
  ] }),
4128
4217
  uploadControl,
4129
4218
  /* @__PURE__ */ jsx(
@@ -4134,12 +4223,12 @@ var UploadWithLinkField = ({
4134
4223
  accessibilityRole: "button",
4135
4224
  accessibilityState: { expanded: pasting },
4136
4225
  "aria-expanded": pasting,
4137
- style: [styles24.toggle, ring.ringStyle],
4226
+ style: [styles26.toggle, ring.ringStyle],
4138
4227
  testID: `${testID}-paste`,
4139
4228
  onBlur: ring.onBlur,
4140
4229
  onFocus: ring.onFocus,
4141
4230
  onPress: () => setPasting(!pasting),
4142
- children: /* @__PURE__ */ jsx(Text, { style: [styles24.toggleText, { color: theme.colors.text }], children: labels.pasteToggle })
4231
+ children: /* @__PURE__ */ jsx(Text, { style: [styles26.toggleText, { color: theme.colors.text }], children: labels.pasteToggle })
4143
4232
  }
4144
4233
  ),
4145
4234
  pasting ? /* @__PURE__ */ jsx(
@@ -4158,7 +4247,7 @@ var UploadWithLinkField = ({
4158
4247
  };
4159
4248
  var ACTION_GAP = 8;
4160
4249
  var GROUP_GAP = 16;
4161
- var styles25 = StyleSheet.create({
4250
+ var styles27 = StyleSheet.create({
4162
4251
  action: { alignItems: "flex-start", marginTop: ACTION_GAP },
4163
4252
  group: { marginBottom: GROUP_GAP }
4164
4253
  });
@@ -4181,7 +4270,7 @@ var AddOnRequest = ({
4181
4270
  onRemove();
4182
4271
  };
4183
4272
  if (!isAddOnOpen(hasValue, requested))
4184
- return /* @__PURE__ */ jsx(View, { style: [styles25.action, style], children: /* @__PURE__ */ jsx(
4273
+ return /* @__PURE__ */ jsx(View, { style: [styles27.action, style], children: /* @__PURE__ */ jsx(
4185
4274
  Button,
4186
4275
  {
4187
4276
  accessibilityHint: addHint,
@@ -4193,9 +4282,9 @@ var AddOnRequest = ({
4193
4282
  onPress: () => setRequested(true)
4194
4283
  }
4195
4284
  ) });
4196
- return /* @__PURE__ */ jsxs(View, { style: [styles25.group, style], testID, children: [
4285
+ return /* @__PURE__ */ jsxs(View, { style: [styles27.group, style], testID, children: [
4197
4286
  children,
4198
- /* @__PURE__ */ jsx(View, { style: styles25.action, children: /* @__PURE__ */ jsx(
4287
+ /* @__PURE__ */ jsx(View, { style: styles27.action, children: /* @__PURE__ */ jsx(
4199
4288
  Button,
4200
4289
  {
4201
4290
  accessibilityHint: removeHint,
@@ -4212,7 +4301,7 @@ var AddOnRequest = ({
4212
4301
  var ROW_GAP3 = 8;
4213
4302
  var TEXT_SIZE = 13;
4214
4303
  var TEXT_LINE = 18;
4215
- var styles26 = StyleSheet.create({
4304
+ var styles28 = StyleSheet.create({
4216
4305
  row: { alignItems: "center", columnGap: ROW_GAP3, flexDirection: "row", justifyContent: "space-between" },
4217
4306
  text: { flexShrink: 1, fontSize: TEXT_SIZE, fontWeight: "700", lineHeight: TEXT_LINE }
4218
4307
  });
@@ -4220,8 +4309,8 @@ var isFixBarVisible = (count) => count > 0;
4220
4309
  var FixBar = ({ count, message, showLabel, showHint, onShow, testID, style }) => {
4221
4310
  const { theme } = useUi();
4222
4311
  if (!isFixBarVisible(count)) return null;
4223
- return /* @__PURE__ */ jsxs(View, { style: [styles26.row, style], testID, children: [
4224
- /* @__PURE__ */ jsx(Text, { role: "alert", style: [styles26.text, { color: fieldErrorInk(theme) }], testID: `${testID}-count`, children: message }),
4312
+ return /* @__PURE__ */ jsxs(View, { style: [styles28.row, style], testID, children: [
4313
+ /* @__PURE__ */ jsx(Text, { role: "alert", style: [styles28.text, { color: fieldErrorInk(theme) }], testID: `${testID}-count`, children: message }),
4225
4314
  /* @__PURE__ */ jsx(
4226
4315
  Button,
4227
4316
  {
@@ -4259,21 +4348,21 @@ function OptionRow2({ option, active, current, renderLeading, renderDetail, onPi
4259
4348
  accessibilityLabel: option.label,
4260
4349
  accessibilityRole: "button",
4261
4350
  accessibilityState: { selected: active, checked: current },
4262
- style: [styles27.row, active ? { backgroundColor: colors.surface } : null],
4351
+ style: [styles29.row, active ? { backgroundColor: colors.surface } : null],
4263
4352
  testID: `${testID}-option-${option.value}`,
4264
4353
  onPress: () => onPick(option),
4265
4354
  children: [
4266
4355
  renderLeading?.(option),
4267
- /* @__PURE__ */ jsxs(View, { style: styles27.label, children: [
4268
- /* @__PURE__ */ jsx(Text, { style: [styles27.primary, { color: colors.text }], children: option.label }),
4269
- detailBelow ? /* @__PURE__ */ jsx(Text, { style: [styles27.secondary, { color: colors.textSecondary }], children: option.detail }) : null
4356
+ /* @__PURE__ */ jsxs(View, { style: styles29.label, children: [
4357
+ /* @__PURE__ */ jsx(Text, { style: [styles29.primary, { color: colors.text }], children: option.label }),
4358
+ detailBelow ? /* @__PURE__ */ jsx(Text, { style: [styles29.secondary, { color: colors.textSecondary }], children: option.detail }) : null
4270
4359
  ] }),
4271
4360
  renderDetail?.(option)
4272
4361
  ]
4273
4362
  }
4274
4363
  );
4275
4364
  }
4276
- var styles27 = StyleSheet.create({
4365
+ var styles29 = StyleSheet.create({
4277
4366
  row: { minHeight: MIN_TOUCH_TARGET_PX, flexDirection: "row", alignItems: "center", gap: ROW_GAP4, paddingHorizontal: ROW_PAD_H },
4278
4367
  label: { flex: 1 },
4279
4368
  primary: { fontSize: OPTION_FONT2, flexShrink: 1 },
@@ -4287,11 +4376,11 @@ function OptionSection({ title, options, offset, highlight, selectedValue, ...ro
4287
4376
  const { colors } = theme;
4288
4377
  if (options.length === 0) return null;
4289
4378
  return /* @__PURE__ */ jsxs(View, { children: [
4290
- /* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [styles28.header, { color: colors.textSecondary }], children: title }),
4379
+ /* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [styles30.header, { color: colors.textSecondary }], children: title }),
4291
4380
  options.map((option, index) => /* @__PURE__ */ jsx(OptionRow2, { ...row, active: offset + index === highlight, current: option.value === selectedValue, option }, option.value))
4292
4381
  ] });
4293
4382
  }
4294
- var styles28 = StyleSheet.create({
4383
+ var styles30 = StyleSheet.create({
4295
4384
  header: { fontSize: HEADER_FONT, paddingHorizontal: ROW_PAD_H2, paddingTop: ROW_GAP5, textTransform: "uppercase" }
4296
4385
  });
4297
4386
  var KEY_ESCAPE = "Escape";
@@ -4321,7 +4410,7 @@ function SearchSelectPanel({ motion, state, labels, anchorRef, renderLeading, re
4321
4410
  const translateY = progress.interpolate({ inputRange: [0, 1], outputRange: [motion.fromY, 0] });
4322
4411
  const isSheet = motion.surface === "sheet" /* Sheet */;
4323
4412
  const shared = { selectedValue, renderLeading, renderDetail, onPick: pick, optionHint: labels.optionHint, testID, highlight };
4324
- const list = /* @__PURE__ */ jsxs(View, { style: [styles29.panel, { backgroundColor: colors.surfaceElevated, borderColor: colors.border }], testID: `${testID}-panel`, children: [
4413
+ const list = /* @__PURE__ */ jsxs(View, { style: [styles31.panel, { backgroundColor: colors.surfaceElevated, borderColor: colors.border }], testID: `${testID}-panel`, children: [
4325
4414
  /* @__PURE__ */ jsx(
4326
4415
  TextInput,
4327
4416
  {
@@ -4338,16 +4427,16 @@ function SearchSelectPanel({ motion, state, labels, anchorRef, renderLeading, re
4338
4427
  onSubmitEditing: submit
4339
4428
  }
4340
4429
  ),
4341
- /* @__PURE__ */ jsxs(ScrollView, { keyboardShouldPersistTaps: "handled", style: isSheet ? styles29.sheetList : styles29.dropList, children: [
4430
+ /* @__PURE__ */ jsxs(ScrollView, { keyboardShouldPersistTaps: "handled", style: isSheet ? styles31.sheetList : styles31.dropList, children: [
4342
4431
  /* @__PURE__ */ jsx(OptionSection, { ...shared, offset: 0, options: sections.recent, title: labels.recent }),
4343
4432
  /* @__PURE__ */ jsx(OptionSection, { ...shared, offset: sections.recent.length, options: sections.all, title: labels.all }),
4344
- sections.flat.length === 0 ? /* @__PURE__ */ jsx(Text, { style: [styles29.empty, { color: colors.textSecondary }], children: labels.empty }) : null
4433
+ sections.flat.length === 0 ? /* @__PURE__ */ jsx(Text, { style: [styles31.empty, { color: colors.textSecondary }], children: labels.empty }) : null
4345
4434
  ] })
4346
4435
  ] });
4347
4436
  if (!isSheet) return /* @__PURE__ */ jsx(DropdownSurface, { anchorRef, closeHint: labels.closeHint, closeLabel: labels.close, progress, testID, translateY, onDismiss: dismiss, children: list });
4348
4437
  return /* @__PURE__ */ jsx(SheetSurface, { closeHint: labels.closeHint, closeLabel: labels.close, testID, translateY, onDismiss: dismiss, children: list });
4349
4438
  }
4350
- var styles29 = StyleSheet.create({
4439
+ var styles31 = StyleSheet.create({
4351
4440
  panel: { borderWidth: 1, borderRadius: PANEL_RADIUS, padding: PANEL_PAD, gap: PANEL_PAD },
4352
4441
  dropList: { maxHeight: MENU_MAX_HEIGHT },
4353
4442
  sheetList: { maxHeight: SHEET_MAX_HEIGHT2 },
@@ -4457,7 +4546,7 @@ function SearchSelect(props) {
4457
4546
  const onTriggerBlur = useCallback(() => {
4458
4547
  if (!openRef.current) onBlur?.();
4459
4548
  }, [onBlur]);
4460
- return /* @__PURE__ */ jsxs(View, { ref: anchorRef, style: styles30.anchor, children: [
4549
+ return /* @__PURE__ */ jsxs(View, { ref: anchorRef, style: styles32.anchor, children: [
4461
4550
  /* @__PURE__ */ jsx(
4462
4551
  Pressable,
4463
4552
  {
@@ -4466,7 +4555,7 @@ function SearchSelect(props) {
4466
4555
  accessibilityLabel,
4467
4556
  accessibilityRole: "button",
4468
4557
  accessibilityState: { expanded: state.open },
4469
- style: renderTrigger === void 0 ? [controlStyles.selectTrigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }] : styles30.customTrigger,
4558
+ style: renderTrigger === void 0 ? [controlStyles.selectTrigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }] : styles32.customTrigger,
4470
4559
  testID,
4471
4560
  onBlur: onTriggerBlur,
4472
4561
  onPress,
@@ -4478,7 +4567,7 @@ function SearchSelect(props) {
4478
4567
  }
4479
4568
  function FieldBoxContent({ selected, placeholder, colors, renderLeading, renderDetail }) {
4480
4569
  return /* @__PURE__ */ jsxs(Fragment, { children: [
4481
- /* @__PURE__ */ jsxs(View, { style: styles30.value, children: [
4570
+ /* @__PURE__ */ jsxs(View, { style: styles32.value, children: [
4482
4571
  selected !== null && renderLeading !== void 0 ? renderLeading(selected) : null,
4483
4572
  /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [controlStyles.selectTriggerText, { color: selected === null ? colors.textSecondary : colors.text }], children: selected?.label ?? placeholder }),
4484
4573
  selected !== null ? /* @__PURE__ */ jsx(SelectedDetail, { colors, option: selected, renderDetail }) : null
@@ -4491,7 +4580,7 @@ function SelectedDetail({ option, colors, renderDetail }) {
4491
4580
  if (option.detail === void 0) return null;
4492
4581
  return /* @__PURE__ */ jsx(Text, { style: [controlStyles.selectTriggerText, { color: colors.textSecondary }], children: option.detail });
4493
4582
  }
4494
- var styles30 = StyleSheet.create({
4583
+ var styles32 = StyleSheet.create({
4495
4584
  anchor: { position: "relative" },
4496
4585
  customTrigger: { minHeight: MIN_TOUCH, minWidth: MIN_TOUCH, alignSelf: "flex-start", justifyContent: "center" },
4497
4586
  value: { flex: 1, flexDirection: "row", alignItems: "center", gap: VALUE_GAP }
@@ -5268,7 +5357,7 @@ function CountryField({ value, onChange, accessibilityLabel, accessibilityHint,
5268
5357
  const { theme } = useUi();
5269
5358
  const { textSecondary } = theme.colors;
5270
5359
  const options = useMemo(() => countryFieldOptions(countries, noneLabel), [countries, noneLabel]);
5271
- const renderCode = useCallback((option) => /* @__PURE__ */ jsx(Text, { style: [styles31.code, { color: textSecondary }], children: option.detail }), [textSecondary]);
5360
+ const renderCode = useCallback((option) => /* @__PURE__ */ jsx(Text, { style: [styles33.code, { color: textSecondary }], children: option.detail }), [textSecondary]);
5272
5361
  return /* @__PURE__ */ jsx(
5273
5362
  SearchSelect,
5274
5363
  {
@@ -5286,7 +5375,7 @@ function CountryField({ value, onChange, accessibilityLabel, accessibilityHint,
5286
5375
  }
5287
5376
  );
5288
5377
  }
5289
- var styles31 = StyleSheet.create({
5378
+ var styles33 = StyleSheet.create({
5290
5379
  code: { fontSize: CODE_FONT }
5291
5380
  });
5292
5381
  function useBlurVerdict(validate) {
@@ -5542,9 +5631,9 @@ var LINE_GAP = 4;
5542
5631
  function RejectionLine({ message, testID }) {
5543
5632
  const { theme } = useUi();
5544
5633
  if (message === null) return null;
5545
- return /* @__PURE__ */ jsx(Text, { accessibilityLiveRegion: "polite", style: [styles32.line, { color: fieldErrorInk(theme) }], testID: `${testID}-rejection`, children: message });
5634
+ return /* @__PURE__ */ jsx(Text, { accessibilityLiveRegion: "polite", style: [styles34.line, { color: fieldErrorInk(theme) }], testID: `${testID}-rejection`, children: message });
5546
5635
  }
5547
- var styles32 = StyleSheet.create({
5636
+ var styles34 = StyleSheet.create({
5548
5637
  line: { marginTop: LINE_GAP }
5549
5638
  });
5550
5639
 
@@ -5691,7 +5780,7 @@ var PAD_V = 10;
5691
5780
  var PAD_H = 16;
5692
5781
  var TEXT_SIZE2 = 13;
5693
5782
  var TEXT_LINE2 = 18;
5694
- var styles33 = StyleSheet.create({
5783
+ var styles35 = StyleSheet.create({
5695
5784
  bar: { borderTopWidth: 1, paddingHorizontal: PAD_H, paddingVertical: PAD_V, rowGap: BAR_GAP },
5696
5785
  actions: { flexDirection: "row", flexWrap: "wrap", gap: BAR_GAP },
5697
5786
  message: { fontSize: TEXT_SIZE2, fontWeight: "700", lineHeight: TEXT_LINE2 }
@@ -5703,9 +5792,9 @@ var ActionBar = ({ children, message, sticky = false, testID, style }) => {
5703
5792
  const { colors } = theme;
5704
5793
  const pinned = actionBarPosition(sticky, Platform.OS) === "sticky" ? PINNED : null;
5705
5794
  const hasMessage = message !== void 0 && message !== "";
5706
- return /* @__PURE__ */ jsxs(View, { style: [styles33.bar, { backgroundColor: colors.surface, borderTopColor: colors.border }, pinned, style], testID, children: [
5707
- hasMessage ? /* @__PURE__ */ jsx(Text, { role: "status", style: [styles33.message, { color: colors.text }], testID: `${testID}-message`, children: message }) : null,
5708
- /* @__PURE__ */ jsx(View, { style: styles33.actions, children })
5795
+ return /* @__PURE__ */ jsxs(View, { style: [styles35.bar, { backgroundColor: colors.surface, borderTopColor: colors.border }, pinned, style], testID, children: [
5796
+ hasMessage ? /* @__PURE__ */ jsx(Text, { role: "status", style: [styles35.message, { color: colors.text }], testID: `${testID}-message`, children: message }) : null,
5797
+ /* @__PURE__ */ jsx(View, { style: styles35.actions, children })
5709
5798
  ] });
5710
5799
  };
5711
5800
 
@@ -5713,14 +5802,14 @@ var ActionBar = ({ children, message, sticky = false, testID, style }) => {
5713
5802
  var isChecklistComplete = (items, checked) => items.every((item) => checked.includes(item.id));
5714
5803
  var TITLE_SIZE = 13;
5715
5804
  var TITLE_GAP = 6;
5716
- var styles34 = StyleSheet.create({
5805
+ var styles36 = StyleSheet.create({
5717
5806
  title: { fontSize: TITLE_SIZE, fontWeight: "700", marginBottom: TITLE_GAP }
5718
5807
  });
5719
5808
  var GatedChecklist = ({ title, items, checked, onToggle, testID, disabled = false, children }) => {
5720
5809
  const { theme } = useUi();
5721
5810
  const complete = isChecklistComplete(items, checked);
5722
5811
  return /* @__PURE__ */ jsxs(View, { testID, children: [
5723
- /* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [styles34.title, { color: theme.colors.text }], children: title }),
5812
+ /* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [styles36.title, { color: theme.colors.text }], children: title }),
5724
5813
  items.map((item) => /* @__PURE__ */ jsx(
5725
5814
  FormCheckbox,
5726
5815
  {
@@ -5746,7 +5835,7 @@ var RADIUS2 = 8;
5746
5835
  var LABEL_SIZE = 14;
5747
5836
  var DESCRIPTION_SIZE = 12;
5748
5837
  var DESCRIPTION_LINE = 16;
5749
- var styles35 = StyleSheet.create({
5838
+ var styles37 = StyleSheet.create({
5750
5839
  row: {
5751
5840
  alignItems: "center",
5752
5841
  borderRadius: RADIUS2,
@@ -5777,15 +5866,15 @@ function RadioRow({ option, identity, colors, tabIndex, hostRef, onPress }) {
5777
5866
  accessibilityState: identity.accessibilityState,
5778
5867
  "aria-checked": checked,
5779
5868
  disabled,
5780
- style: [styles35.row, { borderColor: accent, backgroundColor: checked ? colors.tint : colors.muted }],
5869
+ style: [styles37.row, { borderColor: accent, backgroundColor: checked ? colors.tint : colors.muted }],
5781
5870
  tabIndex,
5782
5871
  testID: identity.testID,
5783
5872
  onPress,
5784
5873
  children: [
5785
- /* @__PURE__ */ jsx(View, { style: [styles35.dot, { borderColor: accent }], children: checked ? /* @__PURE__ */ jsx(View, { style: [styles35.dotInner, { backgroundColor: colors.primary }] }) : null }),
5786
- /* @__PURE__ */ jsxs(View, { style: styles35.text, children: [
5787
- /* @__PURE__ */ jsx(Text, { style: [styles35.label, { color: checked ? colors.primary : colors.textStrong }], children: option.label }),
5788
- hasDescription ? /* @__PURE__ */ jsx(Text, { style: [styles35.description, { color: colors.textMuted }], testID: `${identity.testID}-description`, children: option.description }) : null
5874
+ /* @__PURE__ */ jsx(View, { style: [styles37.dot, { borderColor: accent }], children: checked ? /* @__PURE__ */ jsx(View, { style: [styles37.dotInner, { backgroundColor: colors.primary }] }) : null }),
5875
+ /* @__PURE__ */ jsxs(View, { style: styles37.text, children: [
5876
+ /* @__PURE__ */ jsx(Text, { style: [styles37.label, { color: checked ? colors.primary : colors.textStrong }], children: option.label }),
5877
+ hasDescription ? /* @__PURE__ */ jsx(Text, { style: [styles37.description, { color: colors.textMuted }], testID: `${identity.testID}-description`, children: option.description }) : null
5789
5878
  ] })
5790
5879
  ]
5791
5880
  }
@@ -5802,20 +5891,20 @@ var radioRowIdentity = (option, selected, disabled, prefix) => {
5802
5891
  };
5803
5892
  };
5804
5893
  var ROW_GAP7 = 8;
5805
- var styles36 = StyleSheet.create({
5894
+ var styles38 = StyleSheet.create({
5806
5895
  list: { rowGap: ROW_GAP7 }
5807
5896
  });
5808
5897
  function RadioList(props) {
5809
5898
  const { options, value, onChange, optionTestIDPrefix, label, error, required = false, disabled = false, testID } = props;
5810
5899
  const { theme } = useUi();
5811
- const colors = React38.useMemo(() => buildChipColors(theme.colors, theme.palette), [theme.colors, theme.palette]);
5900
+ const colors = React39.useMemo(() => buildChipColors(theme.colors, theme.palette), [theme.colors, theme.palette]);
5812
5901
  const selectedIndex = options.findIndex((option) => option.value === value);
5813
5902
  const radio = useRadioKeyboard({ enabled: true, disabled, values: options.map((option) => option.value), selectedIndex, onChange });
5814
5903
  return /* @__PURE__ */ jsx(Field, { error, label, required, testID, children: ({ describedById, hasError }) => /* @__PURE__ */ jsx(
5815
5904
  View,
5816
5905
  {
5817
5906
  accessibilityRole: "radiogroup",
5818
- style: styles36.list,
5907
+ style: styles38.list,
5819
5908
  ...webFieldA11y({ describedById, hasError }),
5820
5909
  ...radio.groupProps,
5821
5910
  children: options.map((option, index) => /* @__PURE__ */ jsx(
@@ -5869,11 +5958,11 @@ function DecisionNote({ state, labels, testID, disabled }) {
5869
5958
  );
5870
5959
  }
5871
5960
  var BUTTON_BASIS = "40%";
5872
- var styles37 = StyleSheet.create({
5961
+ var styles39 = StyleSheet.create({
5873
5962
  cell: { flexBasis: BUTTON_BASIS, flexGrow: 1 }
5874
5963
  });
5875
5964
  function OutcomeButtons({ outcomes, pending, disabled, testID, onPress }) {
5876
- return /* @__PURE__ */ jsx(Fragment, { children: outcomes.map((item) => /* @__PURE__ */ jsx(View, { style: styles37.cell, children: /* @__PURE__ */ jsx(
5965
+ return /* @__PURE__ */ jsx(Fragment, { children: outcomes.map((item) => /* @__PURE__ */ jsx(View, { style: styles39.cell, children: /* @__PURE__ */ jsx(
5877
5966
  Button,
5878
5967
  {
5879
5968
  fullWidth: true,
@@ -5954,21 +6043,21 @@ function StickyBarDecision(props) {
5954
6043
  }
5955
6044
  var TEXT_SIZE3 = 13;
5956
6045
  var TEXT_LINE3 = 18;
5957
- var styles38 = StyleSheet.create({
6046
+ var styles40 = StyleSheet.create({
5958
6047
  text: { fontSize: TEXT_SIZE3, fontWeight: "700", lineHeight: TEXT_LINE3 }
5959
6048
  });
5960
6049
  var SubmitError = ({ message, testID }) => {
5961
6050
  const { theme } = useUi();
5962
- return /* @__PURE__ */ jsx(Text, { role: "alert", style: [styles38.text, { color: fieldErrorInk(theme) }], testID, children: message });
6051
+ return /* @__PURE__ */ jsx(Text, { role: "alert", style: [styles40.text, { color: fieldErrorInk(theme) }], testID, children: message });
5963
6052
  };
5964
6053
  var toggle = (list, id) => list.includes(id) ? list.filter((item) => item !== id) : [...list, id];
5965
6054
  function useDecisionPanel(outcomes, onSubmit) {
5966
- const [outcome, setOutcome] = React38.useState("");
5967
- const [note, setNote] = React38.useState("");
5968
- const [reasons, setReasons] = React38.useState([]);
5969
- const [checked, setChecked] = React38.useState([]);
5970
- const [error, setError] = React38.useState(null);
5971
- const [pending, setPending] = React38.useState(null);
6055
+ const [outcome, setOutcome] = React39.useState("");
6056
+ const [note, setNote] = React39.useState("");
6057
+ const [reasons, setReasons] = React39.useState([]);
6058
+ const [checked, setChecked] = React39.useState([]);
6059
+ const [error, setError] = React39.useState(null);
6060
+ const [pending, setPending] = React39.useState(null);
5972
6061
  const submit = async (override) => {
5973
6062
  const target = override ?? outcome;
5974
6063
  const problem = validateDecision(outcomes, target, note);
@@ -6002,7 +6091,7 @@ function useDecisionPanel(outcomes, onSubmit) {
6002
6091
  }
6003
6092
  var TITLE_SIZE2 = 15;
6004
6093
  var PANEL_GAP = 12;
6005
- var styles39 = StyleSheet.create({
6094
+ var styles41 = StyleSheet.create({
6006
6095
  panel: { rowGap: PANEL_GAP },
6007
6096
  title: { fontSize: TITLE_SIZE2, fontWeight: "700" }
6008
6097
  });
@@ -6016,8 +6105,8 @@ function DecisionPanel(props) {
6016
6105
  const { theme } = useUi();
6017
6106
  const state = useDecisionPanel(outcomes, onSubmit);
6018
6107
  const body = (locked) => renderVariant(variant, { state, outcomes, labels, testID, disabled: disabled || locked, reasons, leadOutcome });
6019
- return /* @__PURE__ */ jsxs(View, { style: [styles39.panel, style], testID, children: [
6020
- /* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [styles39.title, { color: theme.colors.text }], children: labels.title }),
6108
+ return /* @__PURE__ */ jsxs(View, { style: [styles41.panel, style], testID, children: [
6109
+ /* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [styles41.title, { color: theme.colors.text }], children: labels.title }),
6021
6110
  checklist !== void 0 ? /* @__PURE__ */ jsx(GatedChecklist, { checked: state.checked, items: checklist.items, testID: `${testID}-checklist`, title: checklist.title, onToggle: state.toggleCheck, children: (complete) => body(!complete) }) : body(false),
6022
6111
  state.error === "submit" ? /* @__PURE__ */ jsx(SubmitError, { message: labels.submitError, testID: `${testID}-error` }) : null
6023
6112
  ] });
@@ -6050,7 +6139,7 @@ var POP_FROM = 0.6;
6050
6139
  var POP_PEAK = 1.12;
6051
6140
  var POP_UP_MS = 160;
6052
6141
  var POP_SETTLE_MS = 100;
6053
- var styles40 = StyleSheet.create({
6142
+ var styles42 = StyleSheet.create({
6054
6143
  mark: { width: MARK_SIZE, height: MARK_SIZE, borderRadius: MARK_SIZE / 2, alignItems: "center", justifyContent: "center" },
6055
6144
  ring: { borderWidth: RING_WIDTH }
6056
6145
  });
@@ -6070,8 +6159,8 @@ function RuleMark({ tone, colors }) {
6070
6159
  ]).start();
6071
6160
  }, [met, reduced, scale]);
6072
6161
  const color = colors.mark[tone];
6073
- const shape = met ? { backgroundColor: color } : [styles40.ring, { borderColor: color }];
6074
- return /* @__PURE__ */ jsx(Animated.View, { style: { transform: [{ scale }] }, children: /* @__PURE__ */ jsx(View, { style: [styles40.mark, shape], children: met ? /* @__PURE__ */ jsx(SvgIcon, { color: colors.onMark, name: "check", size: CHECK_SIZE2 }) : null }) });
6162
+ const shape = met ? { backgroundColor: color } : [styles42.ring, { borderColor: color }];
6163
+ return /* @__PURE__ */ jsx(Animated.View, { style: { transform: [{ scale }] }, children: /* @__PURE__ */ jsx(View, { style: [styles42.mark, shape], children: met ? /* @__PURE__ */ jsx(SvgIcon, { color: colors.onMark, name: "check", size: CHECK_SIZE2 }) : null }) });
6075
6164
  }
6076
6165
  var GAP8 = 6;
6077
6166
  var ROW_GAP8 = 8;
@@ -6083,7 +6172,7 @@ var CHIP_PAD_V2 = 4;
6083
6172
  var CHIP_PAD_H2 = 10;
6084
6173
  var CHIP_BORDER2 = 1;
6085
6174
  var HALF4 = "50%";
6086
- var styles41 = StyleSheet.create({
6175
+ var styles43 = StyleSheet.create({
6087
6176
  column: { gap: GAP8 },
6088
6177
  row: { flexDirection: "row", alignItems: "center", gap: ROW_GAP8 },
6089
6178
  text: { fontSize: FONT5, lineHeight: LINE, flexShrink: 1 },
@@ -6099,31 +6188,31 @@ function RuleList({ rules, flagUnmet, colors, testID, listStyle, itemStyle, outl
6099
6188
  return /* @__PURE__ */ jsx(View, { role: "list", style: listStyle, testID, children: rules.map((rule) => {
6100
6189
  const tone = ruleTone(rule.met, flagUnmet);
6101
6190
  const outline = outlined ? { borderColor: colors.mark[tone] } : null;
6102
- return /* @__PURE__ */ jsxs(View, { role: "listitem", style: [styles41.row, itemStyle, outline], testID: `${testID}-${rule.id}`, ...{ dataSet: { tone } }, children: [
6191
+ return /* @__PURE__ */ jsxs(View, { role: "listitem", style: [styles43.row, itemStyle, outline], testID: `${testID}-${rule.id}`, ...{ dataSet: { tone } }, children: [
6103
6192
  /* @__PURE__ */ jsx(RuleMark, { colors, tone }),
6104
- /* @__PURE__ */ jsx(Text, { style: [styles41.text, { color: colors.text[tone] }], children: rule.label })
6193
+ /* @__PURE__ */ jsx(Text, { style: [styles43.text, { color: colors.text[tone] }], children: rule.label })
6105
6194
  ] }, rule.id);
6106
6195
  }) });
6107
6196
  }
6108
6197
  function RulesChecklist(props) {
6109
- return /* @__PURE__ */ jsx(RuleList, { ...props, listStyle: styles41.column });
6198
+ return /* @__PURE__ */ jsx(RuleList, { ...props, listStyle: styles43.column });
6110
6199
  }
6111
6200
  function RulesChips(props) {
6112
- return /* @__PURE__ */ jsx(RuleList, { ...props, outlined: true, itemStyle: styles41.chip, listStyle: styles41.chips });
6201
+ return /* @__PURE__ */ jsx(RuleList, { ...props, outlined: true, itemStyle: styles43.chip, listStyle: styles43.chips });
6113
6202
  }
6114
6203
  function RulesMeterGrid(props) {
6115
6204
  const { rules, flagUnmet, colors, testID } = props;
6116
6205
  const metCount = rules.filter((rule) => rule.met).length;
6117
6206
  const unfilled = flagUnmet ? colors.mark.refused : colors.track;
6118
- return /* @__PURE__ */ jsxs(View, { style: styles41.column, children: [
6119
- /* @__PURE__ */ jsx(View, { style: styles41.meter, testID: `${testID}-meter`, children: rules.map((rule, index) => /* @__PURE__ */ jsx(View, { style: [styles41.segment, { backgroundColor: index < metCount ? colors.mark.met : unfilled }] }, rule.id)) }),
6120
- /* @__PURE__ */ jsx(RuleList, { ...props, itemStyle: styles41.cell, listStyle: styles41.grid })
6207
+ return /* @__PURE__ */ jsxs(View, { style: styles43.column, children: [
6208
+ /* @__PURE__ */ jsx(View, { style: styles43.meter, testID: `${testID}-meter`, children: rules.map((rule, index) => /* @__PURE__ */ jsx(View, { style: [styles43.segment, { backgroundColor: index < metCount ? colors.mark.met : unfilled }] }, rule.id)) }),
6209
+ /* @__PURE__ */ jsx(RuleList, { ...props, itemStyle: styles43.cell, listStyle: styles43.grid })
6121
6210
  ] });
6122
6211
  }
6123
6212
  function RulesSentence({ rules, flagUnmet, colors, testID }) {
6124
- return /* @__PURE__ */ jsx(Text, { style: [styles41.text, { color: colors.text.unmet }], testID, children: rules.map((rule, index) => {
6213
+ return /* @__PURE__ */ jsx(Text, { style: [styles43.text, { color: colors.text.unmet }], testID, children: rules.map((rule, index) => {
6125
6214
  const tone = ruleTone(rule.met, flagUnmet);
6126
- return /* @__PURE__ */ jsxs(Text, { style: [{ color: colors.text[tone] }, rule.met ? styles41.metPhrase : null], testID: `${testID}-${rule.id}`, ...{ dataSet: { tone } }, children: [
6215
+ return /* @__PURE__ */ jsxs(Text, { style: [{ color: colors.text[tone] }, rule.met ? styles43.metPhrase : null], testID: `${testID}-${rule.id}`, ...{ dataSet: { tone } }, children: [
6127
6216
  index > 0 ? ", " : "",
6128
6217
  rule.label
6129
6218
  ] }, rule.id);
@@ -6142,7 +6231,7 @@ function PasswordRules({ display, ...variant }) {
6142
6231
  }
6143
6232
  }
6144
6233
  var ICON_SIZE = 20;
6145
- var styles42 = StyleSheet.create({
6234
+ var styles44 = StyleSheet.create({
6146
6235
  button: { width: MIN_TOUCH_TARGET_PX, height: MIN_TOUCH_TARGET_PX, alignItems: "center", justifyContent: "center" }
6147
6236
  });
6148
6237
  function RevealToggle({ revealed, onToggle, onPressIn, showLabel, hideLabel, color, testID }) {
@@ -6154,7 +6243,7 @@ function RevealToggle({ revealed, onToggle, onPressIn, showLabel, hideLabel, col
6154
6243
  accessibilityLabel: label,
6155
6244
  accessibilityRole: "button",
6156
6245
  "aria-pressed": revealed,
6157
- style: styles42.button,
6246
+ style: styles44.button,
6158
6247
  testID,
6159
6248
  onPress: onToggle,
6160
6249
  onPressIn,
@@ -6208,7 +6297,7 @@ function useRuleColors(override) {
6208
6297
  var RULES_GAP = 8;
6209
6298
  var TOGGLE_INSET = 48;
6210
6299
  var NO_RULES = [];
6211
- var styles43 = StyleSheet.create({
6300
+ var styles45 = StyleSheet.create({
6212
6301
  inputRow: { position: "relative", justifyContent: "center" },
6213
6302
  input: { paddingRight: TOGGLE_INSET },
6214
6303
  toggle: { position: "absolute", right: 0, top: 0, bottom: 0, justifyContent: "center" },
@@ -6241,7 +6330,7 @@ function useCaretKeepingToggle(inputRef, initialLength) {
6241
6330
  }, [inputRef]);
6242
6331
  return { revealed, onPressIn, onToggle, onSelectionChange };
6243
6332
  }
6244
- var PasswordField = React38.forwardRef(function PasswordField2({ label, value, onChangeText, labels, testID, rules = NO_RULES, rulesDisplay = "meterGrid" /* MeterGrid */, flagUnmet = false, error, colors: colorOverride, inputProps }, ref) {
6333
+ var PasswordField = React39.forwardRef(function PasswordField2({ label, value, onChangeText, labels, testID, rules = NO_RULES, rulesDisplay = "meterGrid" /* MeterGrid */, flagUnmet = false, error, colors: colorOverride, inputProps }, ref) {
6245
6334
  const inputRef = useRef(null);
6246
6335
  useImperativeHandle(ref, () => inputRef.current);
6247
6336
  const toggle2 = useCaretKeepingToggle(inputRef, value.length);
@@ -6250,7 +6339,7 @@ var PasswordField = React38.forwardRef(function PasswordField2({ label, value, o
6250
6339
  const rulesId = `${testID}-rules`;
6251
6340
  const hasRules = rules.length > 0;
6252
6341
  return /* @__PURE__ */ jsx(Field, { error, label, testID: `${testID}-field`, children: (context) => /* @__PURE__ */ jsxs(View, { children: [
6253
- /* @__PURE__ */ jsxs(View, { style: styles43.inputRow, children: [
6342
+ /* @__PURE__ */ jsxs(View, { style: styles45.inputRow, children: [
6254
6343
  /* @__PURE__ */ jsx(
6255
6344
  ThemedTextInput,
6256
6345
  {
@@ -6262,18 +6351,18 @@ var PasswordField = React38.forwardRef(function PasswordField2({ label, value, o
6262
6351
  hasError: context.hasError || flagUnmet && rules.some((rule) => !rule.met),
6263
6352
  id: context.controlId,
6264
6353
  secureTextEntry: !toggle2.revealed,
6265
- style: [styles43.input, inputProps?.style],
6354
+ style: [styles45.input, inputProps?.style],
6266
6355
  testID,
6267
6356
  value,
6268
6357
  onChangeText,
6269
6358
  onSelectionChange: toggle2.onSelectionChange
6270
6359
  }
6271
6360
  ),
6272
- /* @__PURE__ */ jsx(View, { style: styles43.toggle, children: /* @__PURE__ */ jsx(RevealToggle, { color: colors.text.unmet, hideLabel: labels.hide, revealed: toggle2.revealed, showLabel: labels.show, testID: `${testID}-reveal`, onPressIn: toggle2.onPressIn, onToggle: toggle2.onToggle }) })
6361
+ /* @__PURE__ */ jsx(View, { style: styles45.toggle, children: /* @__PURE__ */ jsx(RevealToggle, { color: colors.text.unmet, hideLabel: labels.hide, revealed: toggle2.revealed, showLabel: labels.show, testID: `${testID}-reveal`, onPressIn: toggle2.onPressIn, onToggle: toggle2.onToggle }) })
6273
6362
  ] }),
6274
- hasRules ? /* @__PURE__ */ jsxs(View, { nativeID: rulesId, style: styles43.rules, children: [
6363
+ hasRules ? /* @__PURE__ */ jsxs(View, { nativeID: rulesId, style: styles45.rules, children: [
6275
6364
  /* @__PURE__ */ jsx(PasswordRules, { colors, display: rulesDisplay, flagUnmet, rules, testID: rulesId }),
6276
- /* @__PURE__ */ jsx(Text, { "aria-live": "polite", accessibilityLiveRegion: "polite", style: styles43.live, testID: `${testID}-announce`, children: announcement })
6365
+ /* @__PURE__ */ jsx(Text, { "aria-live": "polite", accessibilityLiveRegion: "polite", style: styles45.live, testID: `${testID}-announce`, children: announcement })
6277
6366
  ] }) : null
6278
6367
  ] }) });
6279
6368
  });