@dloizides/ui-forms 1.62.0 → 1.64.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.js CHANGED
@@ -632,6 +632,16 @@ var FormActions = ({
632
632
  }
633
633
  )
634
634
  ] });
635
+ var ICON_INSET = 12;
636
+ var ICON_ROOM = 36;
637
+ var styles11 = reactNative.StyleSheet.create({
638
+ box: { justifyContent: "center" },
639
+ icon: { position: "absolute", left: ICON_INSET, zIndex: 1 }
640
+ });
641
+ var FieldIcon = ({ icon, children }) => /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles11.box, children: [
642
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, pointerEvents: "none", style: styles11.icon, testID: "form-field-icon", children: icon }),
643
+ children
644
+ ] });
635
645
  var FIELD_GAP = 4;
636
646
  var LABEL_FONT = 11;
637
647
  var LABEL_LETTER_SPACING = 0.4;
@@ -726,7 +736,7 @@ var DETAIL_FONT = 12;
726
736
  var DETAIL_GAP = 12;
727
737
  var STACK_GAP = 2;
728
738
  var DETAIL_BESIDE_MIN_MENU_WIDTH = 400;
729
- var styles11 = reactNative.StyleSheet.create({
739
+ var styles12 = reactNative.StyleSheet.create({
730
740
  beside: { alignItems: "baseline", flexDirection: "row", gap: DETAIL_GAP, justifyContent: "space-between" },
731
741
  stacked: { gap: STACK_GAP },
732
742
  shrink: { flexShrink: 1 },
@@ -761,9 +771,9 @@ function OptionRow({ option, isActive, isHighlighted, isListboxRow, menuWidth, h
761
771
  onPress: () => onSelect(option.value),
762
772
  style: [controlStyles.option, isHighlighted ? { backgroundColor: colors.text } : null],
763
773
  testID: `${testID}-option-${option.value}`,
764
- children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: isDetailBesideTitle(menuWidth) ? styles11.beside : styles11.stacked, children: [
765
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [controlStyles.optionText, styles11.shrink, { color: ink.title, fontWeight: isBold ? ACTIVE_WEIGHT : IDLE_WEIGHT }], children: option.label }),
766
- hasDetail ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.detail, { color: ink.detail }], children: option.detail }) : null
774
+ children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: isDetailBesideTitle(menuWidth) ? styles12.beside : styles12.stacked, children: [
775
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [controlStyles.optionText, styles12.shrink, { color: ink.title, fontWeight: isBold ? ACTIVE_WEIGHT : IDLE_WEIGHT }], children: option.label }),
776
+ hasDetail ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles12.detail, { color: ink.detail }], children: option.detail }) : null
767
777
  ] })
768
778
  }
769
779
  );
@@ -1329,6 +1339,7 @@ function useAutoGrowRows(text, minRows) {
1329
1339
  }, []);
1330
1340
  return { numberOfLines: rowsForText(text, inputWidth, minRows), onLayout };
1331
1341
  }
1342
+ var iconRoom = { paddingLeft: ICON_ROOM };
1332
1343
  var PlainFormField = ({
1333
1344
  label,
1334
1345
  labelHidden = false,
@@ -1339,6 +1350,7 @@ var PlainFormField = ({
1339
1350
  recentMax,
1340
1351
  inputRef,
1341
1352
  labelVariant,
1353
+ icon,
1342
1354
  ...textInputProps
1343
1355
  }) => /* @__PURE__ */ jsxRuntime.jsx(
1344
1356
  Field,
@@ -1359,7 +1371,7 @@ var PlainFormField = ({
1359
1371
  testID: "form-field-input",
1360
1372
  ...textInputProps
1361
1373
  };
1362
- return recentKey !== void 0 && recentKey !== "" ? /* @__PURE__ */ jsxRuntime.jsx(RecentInputField, { label, recentKey, recentMax, ...inputProps }) : /* @__PURE__ */ jsxRuntime.jsx(ThemedTextInput, { ref: inputRef, ...inputProps });
1374
+ return recentKey !== void 0 && recentKey !== "" ? /* @__PURE__ */ jsxRuntime.jsx(RecentInputField, { label, recentKey, recentMax, ...inputProps }) : icon === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(ThemedTextInput, { ref: inputRef, ...inputProps }) : /* @__PURE__ */ jsxRuntime.jsx(FieldIcon, { icon, children: /* @__PURE__ */ jsxRuntime.jsx(ThemedTextInput, { ref: inputRef, style: iconRoom, ...inputProps }) });
1363
1375
  }
1364
1376
  }
1365
1377
  );
@@ -1380,7 +1392,7 @@ var AutoGrowFormField = ({
1380
1392
  };
1381
1393
  var FormField = ({ autoGrowMinRows, ...fieldProps }) => autoGrowMinRows === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(PlainFormField, { ...fieldProps }) : /* @__PURE__ */ jsxRuntime.jsx(AutoGrowFormField, { ...fieldProps, minRows: autoGrowMinRows });
1382
1394
  var TEXT_INPUT_HEIGHT = 48;
1383
- var styles12 = reactNative.StyleSheet.create({
1395
+ var styles13 = reactNative.StyleSheet.create({
1384
1396
  track: { padding: 0, borderWidth: 0 },
1385
1397
  besideTextInput: {
1386
1398
  padding: 0,
@@ -1389,8 +1401,8 @@ var styles12 = reactNative.StyleSheet.create({
1389
1401
  alignItems: "stretch"
1390
1402
  }
1391
1403
  });
1392
- var SEGMENT_BESIDE_FIELD = styles12.track;
1393
- var SEGMENT_BESIDE_TEXT_INPUT = styles12.besideTextInput;
1404
+ var SEGMENT_BESIDE_FIELD = styles13.track;
1405
+ var SEGMENT_BESIDE_TEXT_INPUT = styles13.besideTextInput;
1394
1406
 
1395
1407
  // src/ChipSelector/constants.ts
1396
1408
  var TRANSPARENT_COLOR = "transparent";
@@ -1761,7 +1773,7 @@ function chipIdentity(option, selected, config) {
1761
1773
  ariaChecked: isRadio ? selected : void 0
1762
1774
  };
1763
1775
  }
1764
- var styles13 = reactNative.StyleSheet.create({
1776
+ var styles14 = reactNative.StyleSheet.create({
1765
1777
  chipContainer: {
1766
1778
  flexDirection: "row",
1767
1779
  flexWrap: "wrap",
@@ -1855,7 +1867,7 @@ var ChipSelector = ({
1855
1867
  reactNative.View,
1856
1868
  {
1857
1869
  accessibilityRole: isRadioGroup ? "radiogroup" : void 0,
1858
- style: [styles13.chipContainer, chipRowGap(size)],
1870
+ style: [styles14.chipContainer, chipRowGap(size)],
1859
1871
  ...webFieldA11y({ describedById, hasError }),
1860
1872
  ...radio.groupProps,
1861
1873
  children: options.map(renderChip)
@@ -1865,7 +1877,7 @@ var ChipSelector = ({
1865
1877
  );
1866
1878
  };
1867
1879
  var BOX_SLOT_PAD_H = 10;
1868
- var styles14 = reactNative.StyleSheet.create({
1880
+ var styles15 = reactNative.StyleSheet.create({
1869
1881
  row: {
1870
1882
  minWidth: a11y.MIN_TOUCH_TARGET_PX,
1871
1883
  minHeight: a11y.MIN_TOUCH_TARGET_PX,
@@ -1888,7 +1900,7 @@ var SwitchSlot = ({
1888
1900
  accessibilityHint,
1889
1901
  activeTrackColor,
1890
1902
  inBox = false
1891
- }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { pointerEvents: "none", style: inBox ? styles14.box : styles14.row, testID: `${testID}-hitbox`, children: /* @__PURE__ */ jsxRuntime.jsx(
1903
+ }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { pointerEvents: "none", style: inBox ? styles15.box : styles15.row, testID: `${testID}-hitbox`, children: /* @__PURE__ */ jsxRuntime.jsx(
1892
1904
  reactNative.Switch,
1893
1905
  {
1894
1906
  accessibilityHint: accessibilityHint ?? label,
@@ -1905,7 +1917,7 @@ var BOX_RADIUS = 8;
1905
1917
  var BOX_PAD_LEFT = 10;
1906
1918
  var BOX_BORDER = 1;
1907
1919
  var STATE_FONT_SIZE = 13;
1908
- var styles15 = reactNative.StyleSheet.create({
1920
+ var styles16 = reactNative.StyleSheet.create({
1909
1921
  box: {
1910
1922
  flexDirection: "row",
1911
1923
  alignItems: "center",
@@ -1940,19 +1952,19 @@ var FormSwitchBox = ({
1940
1952
  {
1941
1953
  accessible: false,
1942
1954
  disabled,
1943
- style: [styles15.box, boxColors],
1955
+ style: [styles16.box, boxColors],
1944
1956
  tabIndex: -1,
1945
1957
  testID: slot.testID,
1946
1958
  onPress: toggle2,
1947
1959
  children: [
1948
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles15.state, { color: colors.text }], children: stateLabel ?? "" }),
1960
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles16.state, { color: colors.text }], children: stateLabel ?? "" }),
1949
1961
  /* @__PURE__ */ jsxRuntime.jsx(SwitchSlot, { ...slot, inBox: true })
1950
1962
  ]
1951
1963
  }
1952
1964
  ) });
1953
1965
  };
1954
1966
  var DESCRIPTION_FONT_SIZE2 = 12;
1955
- var styles16 = reactNative.StyleSheet.create({
1967
+ var styles17 = reactNative.StyleSheet.create({
1956
1968
  container: {
1957
1969
  flexDirection: "row",
1958
1970
  justifyContent: "space-between",
@@ -2008,13 +2020,13 @@ var FormSwitchRow = ({
2008
2020
  accessible: false,
2009
2021
  disabled,
2010
2022
  onPress: toggle2,
2011
- style: [styles16.container, containerStyle],
2023
+ style: [styles17.container, containerStyle],
2012
2024
  tabIndex: -1,
2013
2025
  testID,
2014
2026
  children: [
2015
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles16.textColumn, children: [
2016
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.label, themeStyles.label], children: label }),
2017
- hasDescription ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles16.description, themeStyles.description], children: description }) : null
2027
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.textColumn, children: [
2028
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.label, themeStyles.label], children: label }),
2029
+ hasDescription ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.description, themeStyles.description], children: description }) : null
2018
2030
  ] }),
2019
2031
  /* @__PURE__ */ jsxRuntime.jsx(
2020
2032
  SwitchSlot,
@@ -2042,6 +2054,7 @@ var FormSwitch = ({
2042
2054
  }) => variant === "box" ? /* @__PURE__ */ jsxRuntime.jsx(FormSwitchBox, { ...props, disabled, stateLabel, testID }) : /* @__PURE__ */ jsxRuntime.jsx(FormSwitchRow, { ...props, disabled, testID });
2043
2055
  var checkboxBoxColors = (colors, brand, checked) => checked ? { backgroundColor: brand, borderColor: brand } : { backgroundColor: "transparent", borderColor: colors.textSecondary };
2044
2056
  var checkboxTickColor = (brand) => designTokens.resolveOnBrand(brand);
2057
+ var CHECKBOX_TEXT_COLUMN = { flexGrow: 1, flexShrink: 1 };
2045
2058
  var COMPACT_BOX = { width: 16, height: 16, borderRadius: 4, borderWidth: 1.5 };
2046
2059
  var CheckboxLookContext = React41.createContext("default");
2047
2060
  function CheckboxLookProvider({ look, children }) {
@@ -2065,7 +2078,7 @@ var DISABLED_OPACITY = 0.5;
2065
2078
  var FOCUS_RING_WIDTH = 2;
2066
2079
  var WEB_NO_DEFAULT_OUTLINE = { outlineStyle: "none" };
2067
2080
  var FOCUS_RING_INSET = -6;
2068
- var styles17 = reactNative.StyleSheet.create({
2081
+ var styles18 = reactNative.StyleSheet.create({
2069
2082
  container: {
2070
2083
  flexDirection: "row",
2071
2084
  alignItems: "flex-start",
@@ -2111,9 +2124,7 @@ var styles17 = reactNative.StyleSheet.create({
2111
2124
  borderBottomWidth: TICK_STROKE,
2112
2125
  transform: [{ rotate: "45deg" }]
2113
2126
  },
2114
- textColumn: {
2115
- flex: 1
2116
- },
2127
+ textColumn: CHECKBOX_TEXT_COLUMN,
2117
2128
  label: {
2118
2129
  fontWeight: "600"
2119
2130
  },
@@ -2181,9 +2192,9 @@ var FormCheckbox = ({
2181
2192
  onPress: toggle2,
2182
2193
  role: "checkbox",
2183
2194
  style: [
2184
- styles17.container,
2185
- hasHint ? null : styles17.centered,
2186
- labelHidden ? styles17.boxOnly : null,
2195
+ styles18.container,
2196
+ hasHint ? null : styles18.centered,
2197
+ labelHidden ? styles18.boxOnly : null,
2187
2198
  containerStyle,
2188
2199
  disabled ? { opacity: DISABLED_OPACITY } : null,
2189
2200
  reactNative.Platform.OS === "web" ? WEB_NO_DEFAULT_OUTLINE : null
@@ -2191,13 +2202,13 @@ var FormCheckbox = ({
2191
2202
  testID,
2192
2203
  ...keyboardProps,
2193
2204
  children: [
2194
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles17.box, lookBox, value ? themeStyles.boxOn : themeStyles.boxOff], testID: `${testID}-box`, children: [
2195
- focused ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { pointerEvents: "none", style: [styles17.focusRing, themeStyles.ring], testID: `${testID}-focus-ring` }) : null,
2196
- value ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityElementsHidden: true, pointerEvents: "none", style: [styles17.tick, themeStyles.tick], testID: `${testID}-tick` }) : null
2205
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles18.box, lookBox, value ? themeStyles.boxOn : themeStyles.boxOff], testID: `${testID}-box`, children: [
2206
+ focused ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { pointerEvents: "none", style: [styles18.focusRing, themeStyles.ring], testID: `${testID}-focus-ring` }) : null,
2207
+ value ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityElementsHidden: true, pointerEvents: "none", style: [styles18.tick, themeStyles.tick], testID: `${testID}-tick` }) : null
2197
2208
  ] }),
2198
- labelHidden ? null : /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles17.textColumn, children: [
2199
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles17.label, themeStyles.label], children: label }),
2200
- hasHint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { nativeID: hintId, style: [styles17.hint, themeStyles.hint], children: hintText }) : null
2209
+ labelHidden ? null : /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles18.textColumn, children: [
2210
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles18.label, themeStyles.label], children: label }),
2211
+ hasHint ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { nativeID: hintId, style: [styles18.hint, themeStyles.hint], children: hintText }) : null
2201
2212
  ] })
2202
2213
  ]
2203
2214
  }
@@ -2544,7 +2555,7 @@ var CHIP_PAD_H = 8;
2544
2555
  var CHIP_PAD_V = 4;
2545
2556
  var CHIP_RADIUS = 999;
2546
2557
  var CHIP_FONT = 13;
2547
- var styles18 = reactNative.StyleSheet.create({
2558
+ var styles19 = reactNative.StyleSheet.create({
2548
2559
  chip: {
2549
2560
  flexDirection: "row",
2550
2561
  alignItems: "center",
@@ -2565,12 +2576,12 @@ function SelectedChip({ option, colors, removeLabel, removeHint, onRemove, testI
2565
2576
  accessibilityLabel: removeLabel,
2566
2577
  accessibilityRole: "button",
2567
2578
  hitSlop: CHIP_HIT_SLOP,
2568
- style: [styles18.chip, { borderColor: colors.border, backgroundColor: colors.surface }],
2579
+ style: [styles19.chip, { borderColor: colors.border, backgroundColor: colors.surface }],
2569
2580
  testID,
2570
2581
  onPress: () => onRemove(option.value),
2571
2582
  children: [
2572
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles18.text, { color: colors.text }], children: option.label }),
2573
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [styles18.text, { color: colors.text }], children: REMOVE_GLYPH })
2583
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles19.text, { color: colors.text }], children: option.label }),
2584
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [styles19.text, { color: colors.text }], children: REMOVE_GLYPH })
2574
2585
  ]
2575
2586
  }
2576
2587
  );
@@ -2593,7 +2604,7 @@ var CHEVRON_DOWN2 = "\u25BE";
2593
2604
  var CHEVRON_UP2 = "\u25B4";
2594
2605
  var BOX_GAP = 6;
2595
2606
  var TRIGGER_MIN_WIDTH = 96;
2596
- var styles19 = reactNative.StyleSheet.create({
2607
+ var styles20 = reactNative.StyleSheet.create({
2597
2608
  box: { flexWrap: "wrap", justifyContent: "flex-start", gap: BOX_GAP },
2598
2609
  trigger: {
2599
2610
  flexGrow: 1,
@@ -2627,7 +2638,7 @@ function MultiSelectBox(props) {
2627
2638
  const chipColors = { text: colors.text, border: colors.border, surface: colors.surface };
2628
2639
  const summary = chosen.map((option) => option.label).join(", ");
2629
2640
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: anchorRef, style: controlStyles.anchor, children: [
2630
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [controlStyles.selectTrigger, styles19.box, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }], testID: `${testID}-box`, children: [
2641
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [controlStyles.selectTrigger, styles20.box, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }], testID: `${testID}-box`, children: [
2631
2642
  chosen.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
2632
2643
  SelectedChip,
2633
2644
  {
@@ -2651,7 +2662,7 @@ function MultiSelectBox(props) {
2651
2662
  "aria-haspopup": "menu",
2652
2663
  "aria-labelledby": labelId,
2653
2664
  disabled: remaining.length === 0,
2654
- style: styles19.trigger,
2665
+ style: styles20.trigger,
2655
2666
  testID: `${testID}-trigger`,
2656
2667
  onPress: toggle2,
2657
2668
  children: [
@@ -3091,20 +3102,20 @@ function DropdownSurface({ progress, translateY, anchorRef, onDismiss, closeLabe
3091
3102
  const place = frame === null ? null : { left: frame.left, width: frame.width, top: frame.top, bottom: frame.bottom };
3092
3103
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Modal, { transparent: true, visible: true, animationType: "none", "aria-label": accessibilityLabel, onRequestClose: onDismiss, children: [
3093
3104
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityHint: closeHint, accessibilityLabel: closeLabel, accessibilityRole: "button", style: reactNative.StyleSheet.absoluteFill, testID: `${testID}-backdrop`, onPress: onDismiss }),
3094
- frame !== null ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.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
3105
+ frame !== null ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { style: [styles21.dropdown, place, { opacity: progress, transform: scale === void 0 ? [{ translateY }] : [{ translateY }, { scale }] }, scale === void 0 ? null : styles21.growFromField], testID: `${testID}-dropdown-${frame.placement}`, onLayout, children }) : null
3095
3106
  ] });
3096
3107
  }
3097
- var styles20 = reactNative.StyleSheet.create({
3108
+ var styles21 = reactNative.StyleSheet.create({
3098
3109
  dropdown: { position: "absolute" },
3099
3110
  growFromField: { transformOrigin: "top left" }
3100
3111
  });
3101
3112
  function SheetSurface({ translateY, onDismiss, closeLabel, closeHint, testID, children, progress, scale, accessibilityLabel }) {
3102
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, visible: true, animationType: "none", "aria-label": accessibilityLabel, onRequestClose: onDismiss, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles21.backdrop, children: [
3113
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, visible: true, animationType: "none", "aria-label": accessibilityLabel, onRequestClose: onDismiss, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles22.backdrop, children: [
3103
3114
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityHint: closeHint, accessibilityLabel: closeLabel, accessibilityRole: "button", style: reactNative.StyleSheet.absoluteFill, testID: `${testID}-backdrop`, onPress: onDismiss }),
3104
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { testID: `${testID}-sheet`, style: [styles21.sheet, { transform: scale === void 0 ? [{ translateY }] : [{ translateY }, { scale }] }, progress === void 0 ? null : { opacity: progress }], children })
3115
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { testID: `${testID}-sheet`, style: [styles22.sheet, { transform: scale === void 0 ? [{ translateY }] : [{ translateY }, { scale }] }, progress === void 0 ? null : { opacity: progress }], children })
3105
3116
  ] }) });
3106
3117
  }
3107
- var styles21 = reactNative.StyleSheet.create({
3118
+ var styles22 = reactNative.StyleSheet.create({
3108
3119
  backdrop: { flex: 1, justifyContent: "flex-end" },
3109
3120
  sheet: { width: "100%", alignSelf: "stretch" }
3110
3121
  });
@@ -3124,6 +3135,9 @@ function useReducedMotion() {
3124
3135
  return reduced;
3125
3136
  }
3126
3137
 
3138
+ // src/DatePicker/data/defaultLocale.ts
3139
+ var DEFAULT_DATE_LOCALE = "en-GB";
3140
+
3127
3141
  // src/DatePicker/data/defaultLabels.ts
3128
3142
  var DEFAULT_DATE_PICKER_LABELS = {
3129
3143
  dialog: "Choose a date",
@@ -3329,8 +3343,9 @@ function DatePickerProvider({ labels, locale, today, display, children }) {
3329
3343
  }
3330
3344
  function useDatePickerConfig() {
3331
3345
  const config = React41.useContext(DatePickerContext);
3332
- const firstDay = React41.useMemo(() => weekFirstDay(config.locale), [config.locale]);
3333
- return { labels: config.labels, locale: config.locale, today: config.today ?? todayIso(), firstDay, display: config.display ?? "long" /* Long */ };
3346
+ const locale = config.locale ?? DEFAULT_DATE_LOCALE;
3347
+ const firstDay = React41.useMemo(() => weekFirstDay(locale), [locale]);
3348
+ return { labels: config.labels, locale, today: config.today ?? todayIso(), firstDay, display: config.display ?? "long" /* Long */ };
3334
3349
  }
3335
3350
 
3336
3351
  // src/DatePicker/utils/motionStyles.ts
@@ -3680,9 +3695,9 @@ var GLYPH_EM = 0.62;
3680
3695
  var PAD_INLINE = 12;
3681
3696
  var BORDER = 1;
3682
3697
  var PLACEHOLDER_CHARS = 15;
3683
- function closedFieldMinWidth(text, iconRoom) {
3698
+ function closedFieldMinWidth(text, iconRoom2) {
3684
3699
  const chars = Math.max(text.length, PLACEHOLDER_CHARS);
3685
- return Math.ceil(chars * FONT_PX * GLYPH_EM) + PAD_INLINE + iconRoom + BORDER + BORDER;
3700
+ return Math.ceil(chars * FONT_PX * GLYPH_EM) + PAD_INLINE + iconRoom2 + BORDER + BORDER;
3686
3701
  }
3687
3702
 
3688
3703
  // src/DatePicker/utils/datePattern.ts
@@ -3738,7 +3753,7 @@ function typedEditBind(typed) {
3738
3753
  };
3739
3754
  }
3740
3755
  var SINGLE_PICKER_WIDTH = 340;
3741
- var ICON_ROOM = 48;
3756
+ var ICON_ROOM2 = 48;
3742
3757
  var ICON_SLOT = { position: "absolute", right: 2, top: 0, bottom: 0, display: "flex", alignItems: "center" };
3743
3758
  var anchorStyles = reactNative.StyleSheet.create({ wrap: { position: "relative", width: "100%" } });
3744
3759
  function DatePickerInput({ fieldProps, context, onTypedError }) {
@@ -3773,7 +3788,7 @@ function DatePickerInput({ fieldProps, context, onTypedError }) {
3773
3788
  event.preventDefault();
3774
3789
  if (typed.isReady()) onSubmit();
3775
3790
  };
3776
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: anchorRef, style: [anchorStyles.wrap, { minWidth: closedFieldMinWidth(typed.display, ICON_ROOM) }], testID: `${testID}-anchor`, children: [
3791
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: anchorRef, style: [anchorStyles.wrap, { minWidth: closedFieldMinWidth(typed.display, ICON_ROOM2) }], testID: `${testID}-anchor`, children: [
3777
3792
  /* @__PURE__ */ jsxRuntime.jsx(
3778
3793
  "input",
3779
3794
  {
@@ -3786,7 +3801,7 @@ function DatePickerInput({ fieldProps, context, onTypedError }) {
3786
3801
  disabled,
3787
3802
  id: context.controlId,
3788
3803
  placeholder: labels.datePlaceholder !== "" ? labels.datePlaceholder : datePattern(locale),
3789
- style: { ...buildNativeInputStyle(style, look), paddingInlineEnd: ICON_ROOM },
3804
+ style: { ...buildNativeInputStyle(style, look), paddingInlineEnd: ICON_ROOM2 },
3790
3805
  title: accessibilityHint,
3791
3806
  type: "text",
3792
3807
  value: typed.display,
@@ -4018,7 +4033,8 @@ function orNone(value) {
4018
4033
  return value !== "" ? value : void 0;
4019
4034
  }
4020
4035
  function WebDateRange({ value, onChange, onSubmit, fromLabel, toLabel, hint, testID, context, onTypedError }) {
4021
- const { labels } = useDatePickerConfig();
4036
+ const { labels, locale } = useDatePickerConfig();
4037
+ const placeholder = labels.datePlaceholder !== "" ? labels.datePlaceholder : datePattern(locale);
4022
4038
  const phone = useIsPhone();
4023
4039
  const [open, setOpen] = React41.useState(false);
4024
4040
  const [fromError, setFromError] = React41.useState(void 0);
@@ -4055,6 +4071,7 @@ function WebDateRange({ value, onChange, onSubmit, fromLabel, toLabel, hint, tes
4055
4071
  autoComplete: "off",
4056
4072
  "data-testid": `${testID}-${side}`,
4057
4073
  id: side === "from" /* From */ ? context.controlId : void 0,
4074
+ placeholder,
4058
4075
  style: SEGMENT,
4059
4076
  title: hint,
4060
4077
  type: "text",
@@ -4078,7 +4095,7 @@ function WebDateRange({ value, onChange, onSubmit, fromLabel, toLabel, hint, tes
4078
4095
  );
4079
4096
  };
4080
4097
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: anchorRef, style: anchorStyles.wrap, children: [
4081
- /* @__PURE__ */ jsxRuntime.jsxs("div", { ...hoverBind, style: { ...buildNativeInputStyle(style), display: "flex", alignItems: "center", gap: GAP5, paddingInlineEnd: ICON_ROOM }, children: [
4098
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { ...hoverBind, style: { ...buildNativeInputStyle(style), display: "flex", alignItems: "center", gap: GAP5, paddingInlineEnd: ICON_ROOM2 }, children: [
4082
4099
  segment("from" /* From */, from),
4083
4100
  /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: "\u2192" }),
4084
4101
  segment("to" /* To */, to)
@@ -4156,7 +4173,7 @@ var ROW_GAP = 4;
4156
4173
  var TAB_PADDING = 4;
4157
4174
  var INDICATOR_WIDTH = 2;
4158
4175
  var TAB_FONT_SIZE = 12;
4159
- var styles22 = reactNative.StyleSheet.create({
4176
+ var styles23 = reactNative.StyleSheet.create({
4160
4177
  row: { flexDirection: "row", flexWrap: "nowrap", gap: ROW_GAP },
4161
4178
  tab: {
4162
4179
  borderBottomWidth: INDICATOR_WIDTH,
@@ -4196,13 +4213,13 @@ var StepperTab = ({
4196
4213
  accessibilityRole: "tab",
4197
4214
  accessibilityState: { selected },
4198
4215
  "aria-selected": selected,
4199
- style: [styles22.tab, { borderBottomColor: indicator }, ring.ringStyle],
4216
+ style: [styles23.tab, { borderBottomColor: indicator }, ring.ringStyle],
4200
4217
  testID,
4201
4218
  onBlur: ring.onBlur,
4202
4219
  onFocus: ring.onFocus,
4203
4220
  onPress: () => onStep(step.key),
4204
4221
  ...webKeyProps,
4205
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles22.text, { color: theme.colors.text }, selected ? styles22.textSelected : void 0], children: step.label })
4222
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles23.text, { color: theme.colors.text }, selected ? styles23.textSelected : void 0], children: step.label })
4206
4223
  }
4207
4224
  );
4208
4225
  };
@@ -4212,7 +4229,7 @@ var StepperTabs = ({
4212
4229
  onStep,
4213
4230
  stepHint,
4214
4231
  testID
4215
- }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "tablist", style: styles22.row, testID, children: steps.map((step) => /* @__PURE__ */ jsxRuntime.jsx(
4232
+ }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "tablist", style: styles23.row, testID, children: steps.map((step) => /* @__PURE__ */ jsxRuntime.jsx(
4216
4233
  StepperTab,
4217
4234
  {
4218
4235
  hint: stepHint,
@@ -4231,7 +4248,7 @@ function resolveStepNeighbours(steps, current) {
4231
4248
  return { previous: steps[index - 1] ?? null, next: steps[index + 1] ?? null };
4232
4249
  }
4233
4250
  var ROW_GAP2 = 8;
4234
- var styles23 = reactNative.StyleSheet.create({
4251
+ var styles24 = reactNative.StyleSheet.create({
4235
4252
  cell: { flex: 1, minWidth: 0 },
4236
4253
  row: { flexDirection: "row", gap: ROW_GAP2 }
4237
4254
  });
@@ -4243,8 +4260,8 @@ var StepperNav = ({
4243
4260
  testID
4244
4261
  }) => {
4245
4262
  const { previous, next } = resolveStepNeighbours(steps, current);
4246
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles23.row, testID, children: [
4247
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles23.cell, children: /* @__PURE__ */ jsxRuntime.jsx(
4263
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles24.row, testID, children: [
4264
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles24.cell, children: /* @__PURE__ */ jsxRuntime.jsx(
4248
4265
  uiButtons.Button,
4249
4266
  {
4250
4267
  fullWidth: true,
@@ -4260,7 +4277,7 @@ var StepperNav = ({
4260
4277
  }
4261
4278
  }
4262
4279
  ) }),
4263
- next === null ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles23.cell, children: /* @__PURE__ */ jsxRuntime.jsx(
4280
+ next === null ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles24.cell, children: /* @__PURE__ */ jsxRuntime.jsx(
4264
4281
  uiButtons.Button,
4265
4282
  {
4266
4283
  fullWidth: true,
@@ -4275,13 +4292,13 @@ var StepperNav = ({
4275
4292
  ] });
4276
4293
  };
4277
4294
  var STATUS_FONT = 16;
4278
- var styles24 = reactNative.StyleSheet.create({
4295
+ var styles25 = reactNative.StyleSheet.create({
4279
4296
  line: { fontSize: STATUS_FONT }
4280
4297
  });
4281
4298
  function FormStatusLine({ message, testID, style }) {
4282
4299
  const { theme } = uiFeedback.useUi();
4283
4300
  if (message === null || message === void 0 || message === "") return null;
4284
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "alert", style: [styles24.line, { color: theme.colors.text }, style], testID, children: message });
4301
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "alert", style: [styles25.line, { color: theme.colors.text }, style], testID, children: message });
4285
4302
  }
4286
4303
  function useFocusFirstInvalid(refs) {
4287
4304
  const latest = React41.useRef(refs);
@@ -4370,7 +4387,7 @@ function useKeepInView(trigger) {
4370
4387
  }
4371
4388
  var IS_WEB10 = reactNative.Platform.OS === "web";
4372
4389
  var INPUT_FONT2 = 14;
4373
- var styles25 = reactNative.StyleSheet.create({
4390
+ var styles26 = reactNative.StyleSheet.create({
4374
4391
  nativeButton: { minHeight: a11y.MIN_TOUCH_TARGET_PX, minWidth: a11y.MIN_TOUCH_TARGET_PX, justifyContent: "center" },
4375
4392
  nativeText: { fontSize: INPUT_FONT2 }
4376
4393
  });
@@ -4398,10 +4415,10 @@ function FileInput({
4398
4415
  accessibilityRole: "button",
4399
4416
  accessibilityState: { disabled },
4400
4417
  disabled,
4401
- style: styles25.nativeButton,
4418
+ style: styles26.nativeButton,
4402
4419
  testID,
4403
4420
  onPress: onNativePick,
4404
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles25.nativeText, { color: colors.text }], children: nativeLabel ?? accessibilityLabel })
4421
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles26.nativeText, { color: colors.text }], children: nativeLabel ?? accessibilityLabel })
4405
4422
  }
4406
4423
  );
4407
4424
  }
@@ -4431,7 +4448,7 @@ var PREVIEW_RADIUS = 8;
4431
4448
  var GAP6 = 8;
4432
4449
  var TITLE_FONT_SIZE = 14;
4433
4450
  var HELP_FONT_SIZE = 13;
4434
- var styles26 = reactNative.StyleSheet.create({
4451
+ var styles27 = reactNative.StyleSheet.create({
4435
4452
  help: { flex: 1, fontSize: HELP_FONT_SIZE },
4436
4453
  root: { gap: GAP6 },
4437
4454
  tile: { alignItems: "center", flexDirection: "row", gap: GAP6 },
@@ -4453,11 +4470,11 @@ var UploadWithLinkField = ({
4453
4470
  const url = value ?? "";
4454
4471
  const [pasting, setPasting] = React41.useState(url !== "");
4455
4472
  const previewBox = { borderRadius: PREVIEW_RADIUS, height: previewSize, width: previewSize };
4456
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles26.root, children: [
4457
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles26.title, { color: theme.colors.text }], children: labels.title }),
4458
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles26.tile, children: [
4473
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles27.root, children: [
4474
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles27.title, { color: theme.colors.text }], children: labels.title }),
4475
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles27.tile, children: [
4459
4476
  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` }),
4460
- labels.help === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles26.help, { color: theme.colors.text }], children: labels.help })
4477
+ labels.help === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles27.help, { color: theme.colors.text }], children: labels.help })
4461
4478
  ] }),
4462
4479
  uploadControl,
4463
4480
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -4468,12 +4485,12 @@ var UploadWithLinkField = ({
4468
4485
  accessibilityRole: "button",
4469
4486
  accessibilityState: { expanded: pasting },
4470
4487
  "aria-expanded": pasting,
4471
- style: [styles26.toggle, ring.ringStyle],
4488
+ style: [styles27.toggle, ring.ringStyle],
4472
4489
  testID: `${testID}-paste`,
4473
4490
  onBlur: ring.onBlur,
4474
4491
  onFocus: ring.onFocus,
4475
4492
  onPress: () => setPasting(!pasting),
4476
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles26.toggleText, { color: theme.colors.text }], children: labels.pasteToggle })
4493
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles27.toggleText, { color: theme.colors.text }], children: labels.pasteToggle })
4477
4494
  }
4478
4495
  ),
4479
4496
  pasting ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -4492,7 +4509,7 @@ var UploadWithLinkField = ({
4492
4509
  };
4493
4510
  var ACTION_GAP = 8;
4494
4511
  var GROUP_GAP = 16;
4495
- var styles27 = reactNative.StyleSheet.create({
4512
+ var styles28 = reactNative.StyleSheet.create({
4496
4513
  action: { alignItems: "flex-start", marginTop: ACTION_GAP },
4497
4514
  group: { marginBottom: GROUP_GAP }
4498
4515
  });
@@ -4515,7 +4532,7 @@ var AddOnRequest = ({
4515
4532
  onRemove();
4516
4533
  };
4517
4534
  if (!isAddOnOpen(hasValue, requested))
4518
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles27.action, style], children: /* @__PURE__ */ jsxRuntime.jsx(
4535
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles28.action, style], children: /* @__PURE__ */ jsxRuntime.jsx(
4519
4536
  uiButtons.Button,
4520
4537
  {
4521
4538
  accessibilityHint: addHint,
@@ -4527,9 +4544,9 @@ var AddOnRequest = ({
4527
4544
  onPress: () => setRequested(true)
4528
4545
  }
4529
4546
  ) });
4530
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles27.group, style], testID, children: [
4547
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles28.group, style], testID, children: [
4531
4548
  children,
4532
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles27.action, children: /* @__PURE__ */ jsxRuntime.jsx(
4549
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles28.action, children: /* @__PURE__ */ jsxRuntime.jsx(
4533
4550
  uiButtons.Button,
4534
4551
  {
4535
4552
  accessibilityHint: removeHint,
@@ -4546,7 +4563,7 @@ var AddOnRequest = ({
4546
4563
  var ROW_GAP3 = 8;
4547
4564
  var TEXT_SIZE = 13;
4548
4565
  var TEXT_LINE = 18;
4549
- var styles28 = reactNative.StyleSheet.create({
4566
+ var styles29 = reactNative.StyleSheet.create({
4550
4567
  row: { alignItems: "center", columnGap: ROW_GAP3, flexDirection: "row", justifyContent: "space-between" },
4551
4568
  text: { flexShrink: 1, fontSize: TEXT_SIZE, fontWeight: "700", lineHeight: TEXT_LINE }
4552
4569
  });
@@ -4554,8 +4571,8 @@ var isFixBarVisible = (count) => count > 0;
4554
4571
  var FixBar = ({ count, message, showLabel, showHint, onShow, testID, style }) => {
4555
4572
  const { theme } = uiFeedback.useUi();
4556
4573
  if (!isFixBarVisible(count)) return null;
4557
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles28.row, style], testID, children: [
4558
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "alert", style: [styles28.text, { color: fieldErrorInk(theme) }], testID: `${testID}-count`, children: message }),
4574
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles29.row, style], testID, children: [
4575
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "alert", style: [styles29.text, { color: fieldErrorInk(theme) }], testID: `${testID}-count`, children: message }),
4559
4576
  /* @__PURE__ */ jsxRuntime.jsx(
4560
4577
  uiButtons.Button,
4561
4578
  {
@@ -4586,21 +4603,21 @@ function OptionRow2({ option, active, current, renderLeading, renderDetail, onPi
4586
4603
  accessibilityLabel: option.label,
4587
4604
  accessibilityRole: "button",
4588
4605
  accessibilityState: { selected: active, checked: current },
4589
- style: [styles29.row, active ? { backgroundColor: colors.surface } : null],
4606
+ style: [styles30.row, active ? { backgroundColor: colors.surface } : null],
4590
4607
  testID: `${testID}-option-${option.value}`,
4591
4608
  onPress: () => onPick(option),
4592
4609
  children: [
4593
4610
  renderLeading?.(option),
4594
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles29.label, children: [
4595
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles29.primary, { color: colors.text }], children: option.label }),
4596
- detailBelow ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles29.secondary, { color: colors.textSecondary }], children: option.detail }) : null
4611
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles30.label, children: [
4612
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles30.primary, { color: colors.text }], children: option.label }),
4613
+ detailBelow ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles30.secondary, { color: colors.textSecondary }], children: option.detail }) : null
4597
4614
  ] }),
4598
4615
  renderDetail?.(option)
4599
4616
  ]
4600
4617
  }
4601
4618
  );
4602
4619
  }
4603
- var styles29 = reactNative.StyleSheet.create({
4620
+ var styles30 = reactNative.StyleSheet.create({
4604
4621
  row: { minHeight: a11y.MIN_TOUCH_TARGET_PX, flexDirection: "row", alignItems: "center", gap: ROW_GAP4, paddingHorizontal: ROW_PAD_H },
4605
4622
  label: { flex: 1 },
4606
4623
  primary: { fontSize: OPTION_FONT2, flexShrink: 1 },
@@ -4614,11 +4631,11 @@ function OptionSection({ title, options, offset, highlight, selectedValue, ...ro
4614
4631
  const { colors } = theme;
4615
4632
  if (options.length === 0) return null;
4616
4633
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { children: [
4617
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles30.header, { color: colors.textSecondary }], children: title }),
4634
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles31.header, { color: colors.textSecondary }], children: title }),
4618
4635
  options.map((option, index) => /* @__PURE__ */ jsxRuntime.jsx(OptionRow2, { ...row, active: offset + index === highlight, current: option.value === selectedValue, option }, option.value))
4619
4636
  ] });
4620
4637
  }
4621
- var styles30 = reactNative.StyleSheet.create({
4638
+ var styles31 = reactNative.StyleSheet.create({
4622
4639
  header: { fontSize: HEADER_FONT, paddingHorizontal: ROW_PAD_H2, paddingTop: ROW_GAP5, textTransform: "uppercase" }
4623
4640
  });
4624
4641
  var KEY_ESCAPE = "Escape";
@@ -4648,7 +4665,7 @@ function SearchSelectPanel({ motion, state, labels, anchorRef, renderLeading, re
4648
4665
  const translateY = progress.interpolate({ inputRange: [0, 1], outputRange: [motion.fromY, 0] });
4649
4666
  const isSheet = motion.surface === "sheet" /* Sheet */;
4650
4667
  const shared = { selectedValue, renderLeading, renderDetail, onPick: pick, optionHint: labels.optionHint, testID, highlight };
4651
- const list = /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles31.panel, { backgroundColor: colors.surfaceElevated, borderColor: colors.border }], testID: `${testID}-panel`, children: [
4668
+ const list = /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles32.panel, { backgroundColor: colors.surfaceElevated, borderColor: colors.border }], testID: `${testID}-panel`, children: [
4652
4669
  /* @__PURE__ */ jsxRuntime.jsx(
4653
4670
  reactNative.TextInput,
4654
4671
  {
@@ -4665,16 +4682,16 @@ function SearchSelectPanel({ motion, state, labels, anchorRef, renderLeading, re
4665
4682
  onSubmitEditing: submit
4666
4683
  }
4667
4684
  ),
4668
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.ScrollView, { keyboardShouldPersistTaps: "handled", style: isSheet ? styles31.sheetList : styles31.dropList, children: [
4685
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.ScrollView, { keyboardShouldPersistTaps: "handled", style: isSheet ? styles32.sheetList : styles32.dropList, children: [
4669
4686
  /* @__PURE__ */ jsxRuntime.jsx(OptionSection, { ...shared, offset: 0, options: sections.recent, title: labels.recent }),
4670
4687
  /* @__PURE__ */ jsxRuntime.jsx(OptionSection, { ...shared, offset: sections.recent.length, options: sections.all, title: labels.all }),
4671
- sections.flat.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles31.empty, { color: colors.textSecondary }], children: labels.empty }) : null
4688
+ sections.flat.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles32.empty, { color: colors.textSecondary }], children: labels.empty }) : null
4672
4689
  ] })
4673
4690
  ] });
4674
4691
  if (!isSheet) return /* @__PURE__ */ jsxRuntime.jsx(DropdownSurface, { anchorRef, closeHint: labels.closeHint, closeLabel: labels.close, progress, testID, translateY, onDismiss: dismiss, children: list });
4675
4692
  return /* @__PURE__ */ jsxRuntime.jsx(SheetSurface, { closeHint: labels.closeHint, closeLabel: labels.close, testID, translateY, onDismiss: dismiss, children: list });
4676
4693
  }
4677
- var styles31 = reactNative.StyleSheet.create({
4694
+ var styles32 = reactNative.StyleSheet.create({
4678
4695
  panel: { borderWidth: 1, borderRadius: PANEL_RADIUS, padding: PANEL_PAD, gap: PANEL_PAD },
4679
4696
  dropList: { maxHeight: MENU_MAX_HEIGHT },
4680
4697
  sheetList: { maxHeight: SHEET_MAX_HEIGHT2 },
@@ -4771,7 +4788,7 @@ function SearchSelect(props) {
4771
4788
  const onTriggerBlur = React41.useCallback(() => {
4772
4789
  if (!openRef.current) onBlur?.();
4773
4790
  }, [onBlur]);
4774
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: anchorRef, style: styles32.anchor, children: [
4791
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: anchorRef, style: styles33.anchor, children: [
4775
4792
  /* @__PURE__ */ jsxRuntime.jsx(
4776
4793
  reactNative.Pressable,
4777
4794
  {
@@ -4780,7 +4797,7 @@ function SearchSelect(props) {
4780
4797
  accessibilityLabel,
4781
4798
  accessibilityRole: "button",
4782
4799
  accessibilityState: { expanded: state.open },
4783
- style: renderTrigger === void 0 ? [controlStyles.selectTrigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }] : styles32.customTrigger,
4800
+ style: renderTrigger === void 0 ? [controlStyles.selectTrigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }] : styles33.customTrigger,
4784
4801
  testID,
4785
4802
  onBlur: onTriggerBlur,
4786
4803
  onPress,
@@ -4792,7 +4809,7 @@ function SearchSelect(props) {
4792
4809
  }
4793
4810
  function FieldBoxContent({ selected, placeholder, colors, renderLeading, renderDetail }) {
4794
4811
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4795
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles32.value, children: [
4812
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles33.value, children: [
4796
4813
  selected !== null && renderLeading !== void 0 ? renderLeading(selected) : null,
4797
4814
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [controlStyles.selectTriggerText, { color: selected === null ? colors.textSecondary : colors.text }], children: selected?.label ?? placeholder }),
4798
4815
  selected !== null ? /* @__PURE__ */ jsxRuntime.jsx(SelectedDetail, { colors, option: selected, renderDetail }) : null
@@ -4805,7 +4822,7 @@ function SelectedDetail({ option, colors, renderDetail }) {
4805
4822
  if (option.detail === void 0) return null;
4806
4823
  return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [controlStyles.selectTriggerText, { color: colors.textSecondary }], children: option.detail });
4807
4824
  }
4808
- var styles32 = reactNative.StyleSheet.create({
4825
+ var styles33 = reactNative.StyleSheet.create({
4809
4826
  anchor: { position: "relative" },
4810
4827
  customTrigger: { minHeight: MIN_TOUCH, minWidth: MIN_TOUCH, alignSelf: "flex-start", justifyContent: "center" },
4811
4828
  value: { flex: 1, flexDirection: "row", alignItems: "center", gap: VALUE_GAP }
@@ -5582,7 +5599,7 @@ function CountryField({ value, onChange, accessibilityLabel, accessibilityHint,
5582
5599
  const { theme } = uiFeedback.useUi();
5583
5600
  const { textSecondary } = theme.colors;
5584
5601
  const options = React41.useMemo(() => countryFieldOptions(countries, noneLabel), [countries, noneLabel]);
5585
- const renderCode = React41.useCallback((option) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles33.code, { color: textSecondary }], children: option.detail }), [textSecondary]);
5602
+ const renderCode = React41.useCallback((option) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles34.code, { color: textSecondary }], children: option.detail }), [textSecondary]);
5586
5603
  return /* @__PURE__ */ jsxRuntime.jsx(
5587
5604
  SearchSelect,
5588
5605
  {
@@ -5600,7 +5617,7 @@ function CountryField({ value, onChange, accessibilityLabel, accessibilityHint,
5600
5617
  }
5601
5618
  );
5602
5619
  }
5603
- var styles33 = reactNative.StyleSheet.create({
5620
+ var styles34 = reactNative.StyleSheet.create({
5604
5621
  code: { fontSize: CODE_FONT }
5605
5622
  });
5606
5623
  function useBlurVerdict(validate) {
@@ -5856,9 +5873,9 @@ var LINE_GAP = 4;
5856
5873
  function RejectionLine({ message, testID }) {
5857
5874
  const { theme } = uiFeedback.useUi();
5858
5875
  if (message === null) return null;
5859
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityLiveRegion: "polite", style: [styles34.line, { color: fieldErrorInk(theme) }], testID: `${testID}-rejection`, children: message });
5876
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityLiveRegion: "polite", style: [styles35.line, { color: fieldErrorInk(theme) }], testID: `${testID}-rejection`, children: message });
5860
5877
  }
5861
- var styles34 = reactNative.StyleSheet.create({
5878
+ var styles35 = reactNative.StyleSheet.create({
5862
5879
  line: { marginTop: LINE_GAP }
5863
5880
  });
5864
5881
 
@@ -6005,7 +6022,7 @@ var PAD_V = 10;
6005
6022
  var PAD_H = 16;
6006
6023
  var TEXT_SIZE2 = 13;
6007
6024
  var TEXT_LINE2 = 18;
6008
- var styles35 = reactNative.StyleSheet.create({
6025
+ var styles36 = reactNative.StyleSheet.create({
6009
6026
  bar: { borderTopWidth: 1, paddingHorizontal: PAD_H, paddingVertical: PAD_V, rowGap: BAR_GAP },
6010
6027
  actions: { flexDirection: "row", flexWrap: "wrap", gap: BAR_GAP },
6011
6028
  message: { fontSize: TEXT_SIZE2, fontWeight: "700", lineHeight: TEXT_LINE2 }
@@ -6017,9 +6034,9 @@ var ActionBar = ({ children, message, sticky = false, testID, style }) => {
6017
6034
  const { colors } = theme;
6018
6035
  const pinned = actionBarPosition(sticky, reactNative.Platform.OS) === "sticky" ? PINNED : null;
6019
6036
  const hasMessage = message !== void 0 && message !== "";
6020
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles35.bar, { backgroundColor: colors.surface, borderTopColor: colors.border }, pinned, style], testID, children: [
6021
- hasMessage ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "status", style: [styles35.message, { color: colors.text }], testID: `${testID}-message`, children: message }) : null,
6022
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles35.actions, children })
6037
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles36.bar, { backgroundColor: colors.surface, borderTopColor: colors.border }, pinned, style], testID, children: [
6038
+ hasMessage ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "status", style: [styles36.message, { color: colors.text }], testID: `${testID}-message`, children: message }) : null,
6039
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles36.actions, children })
6023
6040
  ] });
6024
6041
  };
6025
6042
 
@@ -6027,14 +6044,14 @@ var ActionBar = ({ children, message, sticky = false, testID, style }) => {
6027
6044
  var isChecklistComplete = (items, checked) => items.every((item) => checked.includes(item.id));
6028
6045
  var TITLE_SIZE = 13;
6029
6046
  var TITLE_GAP = 6;
6030
- var styles36 = reactNative.StyleSheet.create({
6047
+ var styles37 = reactNative.StyleSheet.create({
6031
6048
  title: { fontSize: TITLE_SIZE, fontWeight: "700", marginBottom: TITLE_GAP }
6032
6049
  });
6033
6050
  var GatedChecklist = ({ title, items, checked, onToggle, testID, disabled = false, children }) => {
6034
6051
  const { theme } = uiFeedback.useUi();
6035
6052
  const complete = isChecklistComplete(items, checked);
6036
6053
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { testID, children: [
6037
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles36.title, { color: theme.colors.text }], children: title }),
6054
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles37.title, { color: theme.colors.text }], children: title }),
6038
6055
  items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
6039
6056
  FormCheckbox,
6040
6057
  {
@@ -6060,7 +6077,7 @@ var RADIUS2 = 8;
6060
6077
  var LABEL_SIZE = 14;
6061
6078
  var DESCRIPTION_SIZE = 12;
6062
6079
  var DESCRIPTION_LINE = 16;
6063
- var styles37 = reactNative.StyleSheet.create({
6080
+ var styles38 = reactNative.StyleSheet.create({
6064
6081
  row: {
6065
6082
  alignItems: "center",
6066
6083
  borderRadius: RADIUS2,
@@ -6091,15 +6108,15 @@ function RadioRow({ option, identity, colors, tabIndex, hostRef, onPress }) {
6091
6108
  accessibilityState: identity.accessibilityState,
6092
6109
  "aria-checked": checked,
6093
6110
  disabled,
6094
- style: [styles37.row, { borderColor: accent, backgroundColor: checked ? colors.tint : colors.muted }],
6111
+ style: [styles38.row, { borderColor: accent, backgroundColor: checked ? colors.tint : colors.muted }],
6095
6112
  tabIndex,
6096
6113
  testID: identity.testID,
6097
6114
  onPress,
6098
6115
  children: [
6099
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles37.dot, { borderColor: accent }], children: checked ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles37.dotInner, { backgroundColor: colors.primary }] }) : null }),
6100
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles37.text, children: [
6101
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles37.label, { color: checked ? colors.primary : colors.textStrong }], children: option.label }),
6102
- hasDescription ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles37.description, { color: colors.textMuted }], testID: `${identity.testID}-description`, children: option.description }) : null
6116
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles38.dot, { borderColor: accent }], children: checked ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles38.dotInner, { backgroundColor: colors.primary }] }) : null }),
6117
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles38.text, children: [
6118
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles38.label, { color: checked ? colors.primary : colors.textStrong }], children: option.label }),
6119
+ hasDescription ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles38.description, { color: colors.textMuted }], testID: `${identity.testID}-description`, children: option.description }) : null
6103
6120
  ] })
6104
6121
  ]
6105
6122
  }
@@ -6116,7 +6133,7 @@ var radioRowIdentity = (option, selected, disabled, prefix) => {
6116
6133
  };
6117
6134
  };
6118
6135
  var ROW_GAP7 = 8;
6119
- var styles38 = reactNative.StyleSheet.create({
6136
+ var styles39 = reactNative.StyleSheet.create({
6120
6137
  list: { rowGap: ROW_GAP7 }
6121
6138
  });
6122
6139
  function RadioList(props) {
@@ -6129,7 +6146,7 @@ function RadioList(props) {
6129
6146
  reactNative.View,
6130
6147
  {
6131
6148
  accessibilityRole: "radiogroup",
6132
- style: styles38.list,
6149
+ style: styles39.list,
6133
6150
  ...webFieldA11y({ describedById, hasError }),
6134
6151
  ...radio.groupProps,
6135
6152
  children: options.map((option, index) => /* @__PURE__ */ jsxRuntime.jsx(
@@ -6183,11 +6200,11 @@ function DecisionNote({ state, labels, testID, disabled }) {
6183
6200
  );
6184
6201
  }
6185
6202
  var BUTTON_BASIS = "40%";
6186
- var styles39 = reactNative.StyleSheet.create({
6203
+ var styles40 = reactNative.StyleSheet.create({
6187
6204
  cell: { flexBasis: BUTTON_BASIS, flexGrow: 1 }
6188
6205
  });
6189
6206
  function OutcomeButtons({ outcomes, pending, disabled, testID, onPress }) {
6190
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: outcomes.map((item) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles39.cell, children: /* @__PURE__ */ jsxRuntime.jsx(
6207
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: outcomes.map((item) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles40.cell, children: /* @__PURE__ */ jsxRuntime.jsx(
6191
6208
  uiButtons.Button,
6192
6209
  {
6193
6210
  fullWidth: true,
@@ -6268,12 +6285,12 @@ function StickyBarDecision(props) {
6268
6285
  }
6269
6286
  var TEXT_SIZE3 = 13;
6270
6287
  var TEXT_LINE3 = 18;
6271
- var styles40 = reactNative.StyleSheet.create({
6288
+ var styles41 = reactNative.StyleSheet.create({
6272
6289
  text: { fontSize: TEXT_SIZE3, fontWeight: "700", lineHeight: TEXT_LINE3 }
6273
6290
  });
6274
6291
  var SubmitError = ({ message, testID }) => {
6275
6292
  const { theme } = uiFeedback.useUi();
6276
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "alert", style: [styles40.text, { color: fieldErrorInk(theme) }], testID, children: message });
6293
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "alert", style: [styles41.text, { color: fieldErrorInk(theme) }], testID, children: message });
6277
6294
  };
6278
6295
  var toggle = (list, id) => list.includes(id) ? list.filter((item) => item !== id) : [...list, id];
6279
6296
  function useDecisionPanel(outcomes, onSubmit) {
@@ -6316,7 +6333,7 @@ function useDecisionPanel(outcomes, onSubmit) {
6316
6333
  }
6317
6334
  var TITLE_SIZE2 = 15;
6318
6335
  var PANEL_GAP = 12;
6319
- var styles41 = reactNative.StyleSheet.create({
6336
+ var styles42 = reactNative.StyleSheet.create({
6320
6337
  panel: { rowGap: PANEL_GAP },
6321
6338
  title: { fontSize: TITLE_SIZE2, fontWeight: "700" }
6322
6339
  });
@@ -6330,8 +6347,8 @@ function DecisionPanel(props) {
6330
6347
  const { theme } = uiFeedback.useUi();
6331
6348
  const state = useDecisionPanel(outcomes, onSubmit);
6332
6349
  const body = (locked) => renderVariant(variant, { state, outcomes, labels, testID, disabled: disabled || locked, reasons, leadOutcome });
6333
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles41.panel, style], testID, children: [
6334
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles41.title, { color: theme.colors.text }], children: labels.title }),
6350
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles42.panel, style], testID, children: [
6351
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles42.title, { color: theme.colors.text }], children: labels.title }),
6335
6352
  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),
6336
6353
  state.error === "submit" ? /* @__PURE__ */ jsxRuntime.jsx(SubmitError, { message: labels.submitError, testID: `${testID}-error` }) : null
6337
6354
  ] });
@@ -6364,7 +6381,7 @@ var POP_FROM = 0.6;
6364
6381
  var POP_PEAK = 1.12;
6365
6382
  var POP_UP_MS = 160;
6366
6383
  var POP_SETTLE_MS = 100;
6367
- var styles42 = reactNative.StyleSheet.create({
6384
+ var styles43 = reactNative.StyleSheet.create({
6368
6385
  mark: { width: MARK_SIZE, height: MARK_SIZE, borderRadius: MARK_SIZE / 2, alignItems: "center", justifyContent: "center" },
6369
6386
  ring: { borderWidth: RING_WIDTH }
6370
6387
  });
@@ -6384,8 +6401,8 @@ function RuleMark({ tone, colors }) {
6384
6401
  ]).start();
6385
6402
  }, [met, reduced, scale]);
6386
6403
  const color = colors.mark[tone];
6387
- const shape = met ? { backgroundColor: color } : [styles42.ring, { borderColor: color }];
6388
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { style: { transform: [{ scale }] }, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles42.mark, shape], children: met ? /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color: colors.onMark, name: "check", size: CHECK_SIZE2 }) : null }) });
6404
+ const shape = met ? { backgroundColor: color } : [styles43.ring, { borderColor: color }];
6405
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { style: { transform: [{ scale }] }, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles43.mark, shape], children: met ? /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color: colors.onMark, name: "check", size: CHECK_SIZE2 }) : null }) });
6389
6406
  }
6390
6407
  var GAP8 = 6;
6391
6408
  var ROW_GAP8 = 8;
@@ -6397,7 +6414,7 @@ var CHIP_PAD_V2 = 4;
6397
6414
  var CHIP_PAD_H2 = 10;
6398
6415
  var CHIP_BORDER2 = 1;
6399
6416
  var HALF4 = "50%";
6400
- var styles43 = reactNative.StyleSheet.create({
6417
+ var styles44 = reactNative.StyleSheet.create({
6401
6418
  column: { gap: GAP8 },
6402
6419
  row: { flexDirection: "row", alignItems: "center", gap: ROW_GAP8 },
6403
6420
  text: { fontSize: FONT5, lineHeight: LINE, flexShrink: 1 },
@@ -6413,31 +6430,31 @@ function RuleList({ rules, flagUnmet, colors, testID, listStyle, itemStyle, outl
6413
6430
  return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { role: "list", style: listStyle, testID, children: rules.map((rule) => {
6414
6431
  const tone = ruleTone(rule.met, flagUnmet);
6415
6432
  const outline = outlined ? { borderColor: colors.mark[tone] } : null;
6416
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { role: "listitem", style: [styles43.row, itemStyle, outline], testID: `${testID}-${rule.id}`, ...{ dataSet: { tone } }, children: [
6433
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { role: "listitem", style: [styles44.row, itemStyle, outline], testID: `${testID}-${rule.id}`, ...{ dataSet: { tone } }, children: [
6417
6434
  /* @__PURE__ */ jsxRuntime.jsx(RuleMark, { colors, tone }),
6418
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles43.text, { color: colors.text[tone] }], children: rule.label })
6435
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles44.text, { color: colors.text[tone] }], children: rule.label })
6419
6436
  ] }, rule.id);
6420
6437
  }) });
6421
6438
  }
6422
6439
  function RulesChecklist(props) {
6423
- return /* @__PURE__ */ jsxRuntime.jsx(RuleList, { ...props, listStyle: styles43.column });
6440
+ return /* @__PURE__ */ jsxRuntime.jsx(RuleList, { ...props, listStyle: styles44.column });
6424
6441
  }
6425
6442
  function RulesChips(props) {
6426
- return /* @__PURE__ */ jsxRuntime.jsx(RuleList, { ...props, outlined: true, itemStyle: styles43.chip, listStyle: styles43.chips });
6443
+ return /* @__PURE__ */ jsxRuntime.jsx(RuleList, { ...props, outlined: true, itemStyle: styles44.chip, listStyle: styles44.chips });
6427
6444
  }
6428
6445
  function RulesMeterGrid(props) {
6429
6446
  const { rules, flagUnmet, colors, testID } = props;
6430
6447
  const metCount = rules.filter((rule) => rule.met).length;
6431
6448
  const unfilled = flagUnmet ? colors.mark.refused : colors.track;
6432
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles43.column, children: [
6433
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles43.meter, testID: `${testID}-meter`, children: rules.map((rule, index) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles43.segment, { backgroundColor: index < metCount ? colors.mark.met : unfilled }] }, rule.id)) }),
6434
- /* @__PURE__ */ jsxRuntime.jsx(RuleList, { ...props, itemStyle: styles43.cell, listStyle: styles43.grid })
6449
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles44.column, children: [
6450
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles44.meter, testID: `${testID}-meter`, children: rules.map((rule, index) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles44.segment, { backgroundColor: index < metCount ? colors.mark.met : unfilled }] }, rule.id)) }),
6451
+ /* @__PURE__ */ jsxRuntime.jsx(RuleList, { ...props, itemStyle: styles44.cell, listStyle: styles44.grid })
6435
6452
  ] });
6436
6453
  }
6437
6454
  function RulesSentence({ rules, flagUnmet, colors, testID }) {
6438
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles43.text, { color: colors.text.unmet }], testID, children: rules.map((rule, index) => {
6455
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles44.text, { color: colors.text.unmet }], testID, children: rules.map((rule, index) => {
6439
6456
  const tone = ruleTone(rule.met, flagUnmet);
6440
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style: [{ color: colors.text[tone] }, rule.met ? styles43.metPhrase : null], testID: `${testID}-${rule.id}`, ...{ dataSet: { tone } }, children: [
6457
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { style: [{ color: colors.text[tone] }, rule.met ? styles44.metPhrase : null], testID: `${testID}-${rule.id}`, ...{ dataSet: { tone } }, children: [
6441
6458
  index > 0 ? ", " : "",
6442
6459
  rule.label
6443
6460
  ] }, rule.id);
@@ -6456,7 +6473,7 @@ function PasswordRules({ display, ...variant }) {
6456
6473
  }
6457
6474
  }
6458
6475
  var ICON_SIZE = 20;
6459
- var styles44 = reactNative.StyleSheet.create({
6476
+ var styles45 = reactNative.StyleSheet.create({
6460
6477
  button: { width: a11y.MIN_TOUCH_TARGET_PX, height: a11y.MIN_TOUCH_TARGET_PX, alignItems: "center", justifyContent: "center" }
6461
6478
  });
6462
6479
  function RevealToggle({ revealed, onToggle, onPressIn, showLabel, hideLabel, color, testID }) {
@@ -6468,7 +6485,7 @@ function RevealToggle({ revealed, onToggle, onPressIn, showLabel, hideLabel, col
6468
6485
  accessibilityLabel: label,
6469
6486
  accessibilityRole: "button",
6470
6487
  "aria-pressed": revealed,
6471
- style: styles44.button,
6488
+ style: styles45.button,
6472
6489
  testID,
6473
6490
  onPress: onToggle,
6474
6491
  onPressIn,
@@ -6522,7 +6539,7 @@ function useRuleColors(override) {
6522
6539
  var RULES_GAP = 8;
6523
6540
  var TOGGLE_INSET = 48;
6524
6541
  var NO_RULES = [];
6525
- var styles45 = reactNative.StyleSheet.create({
6542
+ var styles46 = reactNative.StyleSheet.create({
6526
6543
  inputRow: { position: "relative", justifyContent: "center" },
6527
6544
  input: { paddingRight: TOGGLE_INSET },
6528
6545
  toggle: { position: "absolute", right: 0, top: 0, bottom: 0, justifyContent: "center" },
@@ -6564,7 +6581,7 @@ var PasswordField = React41__default.default.forwardRef(function PasswordField2(
6564
6581
  const rulesId = `${testID}-rules`;
6565
6582
  const hasRules = rules.length > 0;
6566
6583
  return /* @__PURE__ */ jsxRuntime.jsx(Field, { error, label, testID: `${testID}-field`, children: (context) => /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { children: [
6567
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles45.inputRow, children: [
6584
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles46.inputRow, children: [
6568
6585
  /* @__PURE__ */ jsxRuntime.jsx(
6569
6586
  ThemedTextInput,
6570
6587
  {
@@ -6576,18 +6593,18 @@ var PasswordField = React41__default.default.forwardRef(function PasswordField2(
6576
6593
  hasError: context.hasError || flagUnmet && rules.some((rule) => !rule.met),
6577
6594
  id: context.controlId,
6578
6595
  secureTextEntry: !toggle2.revealed,
6579
- style: [styles45.input, inputProps?.style],
6596
+ style: [styles46.input, inputProps?.style],
6580
6597
  testID,
6581
6598
  value,
6582
6599
  onChangeText,
6583
6600
  onSelectionChange: toggle2.onSelectionChange
6584
6601
  }
6585
6602
  ),
6586
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles45.toggle, children: /* @__PURE__ */ jsxRuntime.jsx(RevealToggle, { color: colors.text.unmet, hideLabel: labels.hide, revealed: toggle2.revealed, showLabel: labels.show, testID: `${testID}-reveal`, onPressIn: toggle2.onPressIn, onToggle: toggle2.onToggle }) })
6603
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles46.toggle, children: /* @__PURE__ */ jsxRuntime.jsx(RevealToggle, { color: colors.text.unmet, hideLabel: labels.hide, revealed: toggle2.revealed, showLabel: labels.show, testID: `${testID}-reveal`, onPressIn: toggle2.onPressIn, onToggle: toggle2.onToggle }) })
6587
6604
  ] }),
6588
- hasRules ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { nativeID: rulesId, style: styles45.rules, children: [
6605
+ hasRules ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { nativeID: rulesId, style: styles46.rules, children: [
6589
6606
  /* @__PURE__ */ jsxRuntime.jsx(PasswordRules, { colors, display: rulesDisplay, flagUnmet, rules, testID: rulesId }),
6590
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-live": "polite", accessibilityLiveRegion: "polite", style: styles45.live, testID: `${testID}-announce`, children: announcement })
6607
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-live": "polite", accessibilityLiveRegion: "polite", style: styles46.live, testID: `${testID}-announce`, children: announcement })
6591
6608
  ] }) : null
6592
6609
  ] }) });
6593
6610
  });