@dloizides/ui-forms 1.42.2 → 1.43.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
@@ -1895,6 +1895,61 @@ var FormCheckbox = ({
1895
1895
  }
1896
1896
  );
1897
1897
  };
1898
+ var NATIVE_SELECT_BOX = {
1899
+ borderStyle: "solid",
1900
+ boxSizing: "border-box",
1901
+ fontFamily: "inherit",
1902
+ width: "100%"
1903
+ };
1904
+ function nativeSelectStyle(borderColor, backgroundColor, color) {
1905
+ const trigger = reactNative.StyleSheet.flatten(controlStyles.selectTrigger);
1906
+ const text = reactNative.StyleSheet.flatten(controlStyles.selectTriggerText);
1907
+ return {
1908
+ ...NATIVE_SELECT_BOX,
1909
+ minHeight: trigger.minHeight,
1910
+ borderWidth: trigger.borderWidth,
1911
+ borderRadius: trigger.borderRadius,
1912
+ fontSize: text.fontSize,
1913
+ paddingBlock: trigger.paddingVertical,
1914
+ paddingInline: trigger.paddingHorizontal,
1915
+ borderColor,
1916
+ backgroundColor,
1917
+ color
1918
+ };
1919
+ }
1920
+ function NativeSelect({
1921
+ options,
1922
+ value,
1923
+ onChange,
1924
+ placeholder = "",
1925
+ accessibilityLabel,
1926
+ accessibilityHint,
1927
+ labelledById,
1928
+ style,
1929
+ testID
1930
+ }) {
1931
+ const { theme } = uiFeedback.useUi();
1932
+ const { colors } = theme;
1933
+ const hasMatch = options.some((o) => o.value === value);
1934
+ const textColor = hasMatch ? colors.text : colors.textSecondary;
1935
+ const handleChange = (event) => onChange(event.target.value);
1936
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [controlStyles.anchor, style], children: /* @__PURE__ */ jsxRuntime.jsxs(
1937
+ "select",
1938
+ {
1939
+ "aria-label": accessibilityLabel,
1940
+ "aria-labelledby": labelledById,
1941
+ "data-testid": `${testID}-trigger`,
1942
+ style: nativeSelectStyle(colors.border, colors.surfaceElevated, textColor),
1943
+ title: accessibilityHint,
1944
+ value,
1945
+ onChange: handleChange,
1946
+ children: [
1947
+ hasMatch ? null : /* @__PURE__ */ jsxRuntime.jsx("option", { disabled: true, value, children: placeholder }),
1948
+ options.map((o) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: o.value, children: o.label }, o.value))
1949
+ ]
1950
+ }
1951
+ ) });
1952
+ }
1898
1953
 
1899
1954
  // src/controls/nextHighlight.ts
1900
1955
  var NO_HIGHLIGHT = -1;
@@ -1927,6 +1982,7 @@ function useSelectListbox({ options, isOpen, open, toggle: toggle2, select }) {
1927
1982
  };
1928
1983
  return { highlighted, onKeyDown };
1929
1984
  }
1985
+ var IS_WEB7 = reactNative.Platform.OS === "web";
1930
1986
  var CHEVRON_DOWN = "\u25BE";
1931
1987
  var CHEVRON_UP = "\u25B4";
1932
1988
  function listboxTriggerAria(testID, hasList, highlighted) {
@@ -1936,7 +1992,10 @@ function listboxTriggerAria(testID, hasList, highlighted) {
1936
1992
  "aria-activedescendant": highlighted !== void 0 ? optionDomId(testID, highlighted.value) : void 0
1937
1993
  };
1938
1994
  }
1939
- function SelectControl({
1995
+ function SelectControl(props) {
1996
+ return props.native === true && IS_WEB7 ? /* @__PURE__ */ jsxRuntime.jsx(NativeSelect, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MenuSelectControl, { ...props });
1997
+ }
1998
+ function MenuSelectControl({
1940
1999
  options,
1941
2000
  value,
1942
2001
  onChange,
@@ -2840,17 +2899,17 @@ var BOLD2 = 700;
2840
2899
  var ROW = { display: "flex" };
2841
2900
  var EMPTY = { width: DAY_CELL_PX, height: DAY_CELL_PX, flexShrink: 0 };
2842
2901
  var FALLBACK = { year: 1970, month: 1};
2843
- function MonthGrid({ month, selection, focusedDay, bounds, testID, onPick, onKey, showCaption = false, motion }) {
2902
+ function MonthGrid({ month, selection: selection2, focusedDay, bounds, testID, onPick, onKey, showCaption = false, motion }) {
2844
2903
  const { labels, locale, today, firstDay } = useDatePickerConfig();
2845
2904
  const colors = usePickerColors();
2846
2905
  const parts = parseIso(month) ?? FALLBACK;
2847
2906
  const weeks = React37.useMemo(() => buildMonthGrid(parts.year, parts.month, firstDay), [parts.year, parts.month, firstDay]);
2848
2907
  const weekdays = React37.useMemo(() => weekdayNames(locale, firstDay), [locale, firstDay]);
2849
2908
  const title = formatMonthYear(month, locale);
2850
- const end = selection.to === "" ? selection.from : selection.to;
2909
+ const end = selection2.to === "" ? selection2.from : selection2.to;
2851
2910
  const stateOf = (iso) => ({
2852
- inRange: selection.from !== "" && iso >= selection.from && iso <= end,
2853
- isEnd: iso === selection.from || iso === selection.to,
2911
+ inRange: selection2.from !== "" && iso >= selection2.from && iso <= end,
2912
+ isEnd: iso === selection2.from || iso === selection2.to,
2854
2913
  isToday: iso === today,
2855
2914
  enabled: isWithinBounds(iso, bounds.min, bounds.max),
2856
2915
  focusable: iso === focusedDay
@@ -3036,16 +3095,32 @@ function closedFieldMinWidth(text, iconRoom) {
3036
3095
 
3037
3096
  // src/DatePicker/utils/typedEdit.ts
3038
3097
  var DELETE_KEYS = /* @__PURE__ */ new Set(["Backspace", "Delete"]);
3039
- function coversAll(input) {
3040
- const { selectionStart, selectionEnd, value } = input;
3041
- return value !== "" && selectionStart === 0 && selectionEnd === value.length;
3042
- }
3043
3098
  function isPrintable(event) {
3044
3099
  return event.key.length === 1 && !event.ctrlKey && !event.metaKey;
3045
3100
  }
3101
+ function selection(input) {
3102
+ const end = input.selectionEnd ?? input.value.length;
3103
+ return [input.selectionStart ?? end, end];
3104
+ }
3105
+ function editedText(input, insert) {
3106
+ const [start, end] = selection(input);
3107
+ return { text: input.value.slice(0, start) + insert + input.value.slice(end), caret: start + insert.length };
3108
+ }
3109
+ function placeCaret(input, caret) {
3110
+ requestAnimationFrame(() => input.setSelectionRange(caret, caret));
3111
+ }
3046
3112
  function typedEditBind(typed) {
3047
- const start = (event, replacement) => {
3048
- if (typed.onEdit(coversAll(event.currentTarget) ? replacement : void 0)) event.preventDefault();
3113
+ const start = (event, insert) => {
3114
+ const input = event.currentTarget;
3115
+ const [from, to] = selection(input);
3116
+ if (from === to) {
3117
+ typed.onEdit();
3118
+ return;
3119
+ }
3120
+ const edit = editedText(input, insert);
3121
+ if (!typed.onEdit(edit.text)) return;
3122
+ event.preventDefault();
3123
+ placeCaret(input, edit.caret);
3049
3124
  };
3050
3125
  return {
3051
3126
  onEditKey: (event) => {
@@ -3054,7 +3129,11 @@ function typedEditBind(typed) {
3054
3129
  },
3055
3130
  onPaste: (event) => start(event, event.clipboardData.getData("text")),
3056
3131
  onCut: (event) => {
3057
- if (!coversAll(event.currentTarget)) typed.onEdit();
3132
+ const input = event.currentTarget;
3133
+ const [from, to] = selection(input);
3134
+ if (from === to) return;
3135
+ event.clipboardData.setData("text/plain", input.value.slice(from, to));
3136
+ start(event, "");
3058
3137
  }
3059
3138
  };
3060
3139
  }
@@ -3127,11 +3206,11 @@ function DatePickerInput({ fieldProps, context, onTypedError }) {
3127
3206
  open ? /* @__PURE__ */ jsxRuntime.jsx(PickerSurface, { anchorRef, label: labels.dialog, minWidth: SINGLE_PICKER_WIDTH, phone, testID: `${testID}-picker`, onDismiss: close, children: /* @__PURE__ */ jsxRuntime.jsx(SingleCalendar, { bounds, testID: `${testID}-picker`, value, onCommit: commit }) }) : null
3128
3207
  ] });
3129
3208
  }
3130
- var IS_WEB7 = reactNative.Platform.OS === "web";
3209
+ var IS_WEB8 = reactNative.Platform.OS === "web";
3131
3210
  var DATE_TYPE = "date";
3132
3211
  function TemporalInput({ fieldProps, context, webInputType, onTypedError }) {
3133
- if (IS_WEB7 && webInputType === DATE_TYPE) return /* @__PURE__ */ jsxRuntime.jsx(DatePickerInput, { context, fieldProps, onTypedError });
3134
- if (IS_WEB7) return /* @__PURE__ */ jsxRuntime.jsx(WebDateInput, { context, fieldProps, webInputType });
3212
+ if (IS_WEB8 && webInputType === DATE_TYPE) return /* @__PURE__ */ jsxRuntime.jsx(DatePickerInput, { context, fieldProps, onTypedError });
3213
+ if (IS_WEB8) return /* @__PURE__ */ jsxRuntime.jsx(WebDateInput, { context, fieldProps, webInputType });
3135
3214
  return /* @__PURE__ */ jsxRuntime.jsx(
3136
3215
  ThemedTextInput,
3137
3216
  {
@@ -3363,36 +3442,39 @@ function WebDateRange({ value, onChange, onSubmit, fromLabel, toLabel, hint, tes
3363
3442
  const ready = [from.isReady(), to.isReady()].every(Boolean);
3364
3443
  if (ready) onSubmit();
3365
3444
  };
3366
- const segment = (side, typed) => /* @__PURE__ */ jsxRuntime.jsx(
3367
- "input",
3368
- {
3369
- ...webA11y,
3370
- ref: side === "from" /* From */ ? fromRef : void 0,
3371
- "aria-label": side === "from" /* From */ ? fromLabel : toLabel,
3372
- autoComplete: "off",
3373
- "data-testid": `${testID}-${side}`,
3374
- id: side === "from" /* From */ ? context.controlId : void 0,
3375
- style: SEGMENT,
3376
- title: hint,
3377
- type: "text",
3378
- value: typed.display,
3379
- onBlur: (event) => {
3380
- focus.onBlur?.(event);
3381
- typed.onBlur();
3382
- },
3383
- onChange: (event) => typed.onText(event.target.value),
3384
- onFocus: (event) => {
3385
- focus.onFocus?.(event);
3386
- typed.onFocus();
3387
- },
3388
- onCut: typedEditBind(typed).onCut,
3389
- onKeyDown: (event) => {
3390
- typedEditBind(typed).onEditKey(event);
3391
- onKeyDown(event);
3392
- },
3393
- onPaste: typedEditBind(typed).onPaste
3394
- }
3395
- );
3445
+ const segment = (side, typed) => {
3446
+ const edit = typedEditBind(typed);
3447
+ return /* @__PURE__ */ jsxRuntime.jsx(
3448
+ "input",
3449
+ {
3450
+ ...webA11y,
3451
+ ref: side === "from" /* From */ ? fromRef : void 0,
3452
+ "aria-label": side === "from" /* From */ ? fromLabel : toLabel,
3453
+ autoComplete: "off",
3454
+ "data-testid": `${testID}-${side}`,
3455
+ id: side === "from" /* From */ ? context.controlId : void 0,
3456
+ style: SEGMENT,
3457
+ title: hint,
3458
+ type: "text",
3459
+ value: typed.display,
3460
+ onBlur: (event) => {
3461
+ focus.onBlur?.(event);
3462
+ typed.onBlur();
3463
+ },
3464
+ onChange: (event) => typed.onText(event.target.value),
3465
+ onFocus: (event) => {
3466
+ focus.onFocus?.(event);
3467
+ typed.onFocus();
3468
+ },
3469
+ onCut: edit.onCut,
3470
+ onKeyDown: (event) => {
3471
+ edit.onEditKey(event);
3472
+ onKeyDown(event);
3473
+ },
3474
+ onPaste: edit.onPaste
3475
+ }
3476
+ );
3477
+ };
3396
3478
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: anchorRef, style: anchorStyles.wrap, children: [
3397
3479
  /* @__PURE__ */ jsxRuntime.jsxs("div", { ...hoverBind, style: { ...buildNativeInputStyle(style), display: "flex", alignItems: "center", gap: GAP5, paddingInlineEnd: ICON_ROOM }, children: [
3398
3480
  segment("from" /* From */, from),
@@ -3418,7 +3500,7 @@ function WebDateRange({ value, onChange, onSubmit, fromLabel, toLabel, hint, tes
3418
3500
  ) }) : null
3419
3501
  ] });
3420
3502
  }
3421
- var IS_WEB8 = reactNative.Platform.OS === "web";
3503
+ var IS_WEB9 = reactNative.Platform.OS === "web";
3422
3504
  function DateRangeControl({
3423
3505
  value,
3424
3506
  onChange,
@@ -3432,7 +3514,7 @@ function DateRangeControl({
3432
3514
  const hint = accessibilityHint ?? `${fromLabel} \u2013 ${toLabel}`;
3433
3515
  const { labels } = useDatePickerConfig();
3434
3516
  const [typedError, setTypedError] = React37.useState(void 0);
3435
- if (!IS_WEB8) {
3517
+ if (!IS_WEB9) {
3436
3518
  return /* @__PURE__ */ jsxRuntime.jsx(GapOwnedProvider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(NativeDateRange, { fromLabel, hint, style, testID, toLabel, value, onChange, onSubmit }) });
3437
3519
  }
3438
3520
  return /* @__PURE__ */ jsxRuntime.jsx(GapOwnedProvider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style, testID: `${testID}-range`, children: /* @__PURE__ */ jsxRuntime.jsx(Field, { error: typedError, label: `${fromLabel}${labels.rangeSeparator}${toLabel}`, children: (context) => /* @__PURE__ */ jsxRuntime.jsx(WebDateRange, { context, fromLabel, hint, testID, toLabel, value, onChange, onSubmit, onTypedError: setTypedError }) }) }) });
@@ -3618,12 +3700,70 @@ function useKeepInView(trigger) {
3618
3700
  }, [trigger]);
3619
3701
  return ref;
3620
3702
  }
3703
+ var IS_WEB10 = reactNative.Platform.OS === "web";
3704
+ var INPUT_FONT2 = 14;
3705
+ var styles20 = reactNative.StyleSheet.create({
3706
+ nativeButton: { minHeight: a11y.MIN_TOUCH_TARGET_PX, minWidth: a11y.MIN_TOUCH_TARGET_PX, justifyContent: "center" },
3707
+ nativeText: { fontSize: INPUT_FONT2 }
3708
+ });
3709
+ function FileInput({
3710
+ accessibilityLabel,
3711
+ accessibilityHint,
3712
+ onFiles,
3713
+ accept,
3714
+ multiple = false,
3715
+ disabled = false,
3716
+ id,
3717
+ describedById,
3718
+ nativeLabel,
3719
+ onNativePick,
3720
+ testID
3721
+ }) {
3722
+ const { theme } = uiFeedback.useUi();
3723
+ const { colors } = theme;
3724
+ if (!IS_WEB10) {
3725
+ return /* @__PURE__ */ jsxRuntime.jsx(
3726
+ reactNative.Pressable,
3727
+ {
3728
+ accessibilityHint,
3729
+ accessibilityLabel,
3730
+ accessibilityRole: "button",
3731
+ accessibilityState: { disabled },
3732
+ disabled,
3733
+ style: styles20.nativeButton,
3734
+ testID,
3735
+ onPress: onNativePick,
3736
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles20.nativeText, { color: colors.text }], children: nativeLabel ?? accessibilityLabel })
3737
+ }
3738
+ );
3739
+ }
3740
+ const handleChange = (event) => {
3741
+ const files = Array.from(event.target.files ?? []);
3742
+ if (files.length > 0) onFiles(files);
3743
+ };
3744
+ return /* @__PURE__ */ jsxRuntime.jsx(
3745
+ "input",
3746
+ {
3747
+ accept,
3748
+ "aria-describedby": describedById,
3749
+ "aria-label": accessibilityLabel,
3750
+ "data-testid": testID,
3751
+ disabled,
3752
+ id,
3753
+ multiple,
3754
+ style: { minHeight: a11y.MIN_TOUCH_TARGET_PX, color: colors.text, fontSize: INPUT_FONT2, fontFamily: "inherit" },
3755
+ title: accessibilityHint,
3756
+ type: "file",
3757
+ onChange: handleChange
3758
+ }
3759
+ );
3760
+ }
3621
3761
  var DEFAULT_PREVIEW_PX = 48;
3622
3762
  var PREVIEW_RADIUS = 8;
3623
3763
  var GAP6 = 8;
3624
3764
  var TITLE_FONT_SIZE = 14;
3625
3765
  var HELP_FONT_SIZE = 13;
3626
- var styles20 = reactNative.StyleSheet.create({
3766
+ var styles21 = reactNative.StyleSheet.create({
3627
3767
  help: { flex: 1, fontSize: HELP_FONT_SIZE },
3628
3768
  root: { gap: GAP6 },
3629
3769
  tile: { alignItems: "center", flexDirection: "row", gap: GAP6 },
@@ -3645,11 +3785,11 @@ var UploadWithLinkField = ({
3645
3785
  const url = value ?? "";
3646
3786
  const [pasting, setPasting] = React37.useState(url !== "");
3647
3787
  const previewBox = { borderRadius: PREVIEW_RADIUS, height: previewSize, width: previewSize };
3648
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles20.root, children: [
3649
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles20.title, { color: theme.colors.text }], children: labels.title }),
3650
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles20.tile, children: [
3788
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles21.root, children: [
3789
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles21.title, { color: theme.colors.text }], children: labels.title }),
3790
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles21.tile, children: [
3651
3791
  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` }),
3652
- labels.help === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles20.help, { color: theme.colors.text }], children: labels.help })
3792
+ labels.help === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles21.help, { color: theme.colors.text }], children: labels.help })
3653
3793
  ] }),
3654
3794
  uploadControl,
3655
3795
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -3660,12 +3800,12 @@ var UploadWithLinkField = ({
3660
3800
  accessibilityRole: "button",
3661
3801
  accessibilityState: { expanded: pasting },
3662
3802
  "aria-expanded": pasting,
3663
- style: [styles20.toggle, ring.ringStyle],
3803
+ style: [styles21.toggle, ring.ringStyle],
3664
3804
  testID: `${testID}-paste`,
3665
3805
  onBlur: ring.onBlur,
3666
3806
  onFocus: ring.onFocus,
3667
3807
  onPress: () => setPasting(!pasting),
3668
- children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles20.toggleText, { color: theme.colors.text }], children: labels.pasteToggle })
3808
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles21.toggleText, { color: theme.colors.text }], children: labels.pasteToggle })
3669
3809
  }
3670
3810
  ),
3671
3811
  pasting ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -3684,7 +3824,7 @@ var UploadWithLinkField = ({
3684
3824
  };
3685
3825
  var ACTION_GAP = 8;
3686
3826
  var GROUP_GAP = 16;
3687
- var styles21 = reactNative.StyleSheet.create({
3827
+ var styles22 = reactNative.StyleSheet.create({
3688
3828
  action: { alignItems: "flex-start", marginTop: ACTION_GAP },
3689
3829
  group: { marginBottom: GROUP_GAP }
3690
3830
  });
@@ -3707,7 +3847,7 @@ var AddOnRequest = ({
3707
3847
  onRemove();
3708
3848
  };
3709
3849
  if (!isAddOnOpen(hasValue, requested))
3710
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles21.action, style], children: /* @__PURE__ */ jsxRuntime.jsx(
3850
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles22.action, style], children: /* @__PURE__ */ jsxRuntime.jsx(
3711
3851
  uiButtons.Button,
3712
3852
  {
3713
3853
  accessibilityHint: addHint,
@@ -3719,9 +3859,9 @@ var AddOnRequest = ({
3719
3859
  onPress: () => setRequested(true)
3720
3860
  }
3721
3861
  ) });
3722
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles21.group, style], testID, children: [
3862
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles22.group, style], testID, children: [
3723
3863
  children,
3724
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles21.action, children: /* @__PURE__ */ jsxRuntime.jsx(
3864
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles22.action, children: /* @__PURE__ */ jsxRuntime.jsx(
3725
3865
  uiButtons.Button,
3726
3866
  {
3727
3867
  accessibilityHint: removeHint,
@@ -3738,7 +3878,7 @@ var AddOnRequest = ({
3738
3878
  var ROW_GAP3 = 8;
3739
3879
  var TEXT_SIZE = 13;
3740
3880
  var TEXT_LINE = 18;
3741
- var styles22 = reactNative.StyleSheet.create({
3881
+ var styles23 = reactNative.StyleSheet.create({
3742
3882
  row: { alignItems: "center", columnGap: ROW_GAP3, flexDirection: "row", justifyContent: "space-between" },
3743
3883
  text: { flexShrink: 1, fontSize: TEXT_SIZE, fontWeight: "700", lineHeight: TEXT_LINE }
3744
3884
  });
@@ -3746,8 +3886,8 @@ var isFixBarVisible = (count) => count > 0;
3746
3886
  var FixBar = ({ count, message, showLabel, showHint, onShow, testID, style }) => {
3747
3887
  const { theme } = uiFeedback.useUi();
3748
3888
  if (!isFixBarVisible(count)) return null;
3749
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles22.row, style], testID, children: [
3750
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "alert", style: [styles22.text, { color: fieldErrorInk(theme) }], testID: `${testID}-count`, children: message }),
3889
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles23.row, style], testID, children: [
3890
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "alert", style: [styles23.text, { color: fieldErrorInk(theme) }], testID: `${testID}-count`, children: message }),
3751
3891
  /* @__PURE__ */ jsxRuntime.jsx(
3752
3892
  uiButtons.Button,
3753
3893
  {
@@ -3785,21 +3925,21 @@ function OptionRow2({ option, active, current, renderLeading, renderDetail, onPi
3785
3925
  accessibilityLabel: option.label,
3786
3926
  accessibilityRole: "button",
3787
3927
  accessibilityState: { selected: active, checked: current },
3788
- style: [styles23.row, active ? { backgroundColor: colors.surface } : null],
3928
+ style: [styles24.row, active ? { backgroundColor: colors.surface } : null],
3789
3929
  testID: `${testID}-option-${option.value}`,
3790
3930
  onPress: () => onPick(option),
3791
3931
  children: [
3792
3932
  renderLeading?.(option),
3793
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles23.label, children: [
3794
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles23.primary, { color: colors.text }], children: option.label }),
3795
- detailBelow ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles23.secondary, { color: colors.textSecondary }], children: option.detail }) : null
3933
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles24.label, children: [
3934
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles24.primary, { color: colors.text }], children: option.label }),
3935
+ detailBelow ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles24.secondary, { color: colors.textSecondary }], children: option.detail }) : null
3796
3936
  ] }),
3797
3937
  renderDetail?.(option)
3798
3938
  ]
3799
3939
  }
3800
3940
  );
3801
3941
  }
3802
- var styles23 = reactNative.StyleSheet.create({
3942
+ var styles24 = reactNative.StyleSheet.create({
3803
3943
  row: { minHeight: a11y.MIN_TOUCH_TARGET_PX, flexDirection: "row", alignItems: "center", gap: ROW_GAP4, paddingHorizontal: ROW_PAD_H },
3804
3944
  label: { flex: 1 },
3805
3945
  primary: { fontSize: OPTION_FONT2, flexShrink: 1 },
@@ -3813,11 +3953,11 @@ function OptionSection({ title, options, offset, highlight, selectedValue, ...ro
3813
3953
  const { colors } = theme;
3814
3954
  if (options.length === 0) return null;
3815
3955
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { children: [
3816
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles24.header, { color: colors.textSecondary }], children: title }),
3956
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles25.header, { color: colors.textSecondary }], children: title }),
3817
3957
  options.map((option, index) => /* @__PURE__ */ jsxRuntime.jsx(OptionRow2, { ...row, active: offset + index === highlight, current: option.value === selectedValue, option }, option.value))
3818
3958
  ] });
3819
3959
  }
3820
- var styles24 = reactNative.StyleSheet.create({
3960
+ var styles25 = reactNative.StyleSheet.create({
3821
3961
  header: { fontSize: HEADER_FONT, paddingHorizontal: ROW_PAD_H2, paddingTop: ROW_GAP5, textTransform: "uppercase" }
3822
3962
  });
3823
3963
  var KEY_ESCAPE = "Escape";
@@ -3847,7 +3987,7 @@ function SearchSelectPanel({ motion, state, labels, anchorRef, renderLeading, re
3847
3987
  const translateY = progress.interpolate({ inputRange: [0, 1], outputRange: [motion.fromY, 0] });
3848
3988
  const isSheet = motion.surface === "sheet" /* Sheet */;
3849
3989
  const shared = { selectedValue, renderLeading, renderDetail, onPick: pick, optionHint: labels.optionHint, testID, highlight };
3850
- const list = /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles25.panel, { backgroundColor: colors.surfaceElevated, borderColor: colors.border }], testID: `${testID}-panel`, children: [
3990
+ const list = /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles26.panel, { backgroundColor: colors.surfaceElevated, borderColor: colors.border }], testID: `${testID}-panel`, children: [
3851
3991
  /* @__PURE__ */ jsxRuntime.jsx(
3852
3992
  reactNative.TextInput,
3853
3993
  {
@@ -3864,16 +4004,16 @@ function SearchSelectPanel({ motion, state, labels, anchorRef, renderLeading, re
3864
4004
  onSubmitEditing: submit
3865
4005
  }
3866
4006
  ),
3867
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.ScrollView, { keyboardShouldPersistTaps: "handled", style: isSheet ? styles25.sheetList : styles25.dropList, children: [
4007
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.ScrollView, { keyboardShouldPersistTaps: "handled", style: isSheet ? styles26.sheetList : styles26.dropList, children: [
3868
4008
  /* @__PURE__ */ jsxRuntime.jsx(OptionSection, { ...shared, offset: 0, options: sections.recent, title: labels.recent }),
3869
4009
  /* @__PURE__ */ jsxRuntime.jsx(OptionSection, { ...shared, offset: sections.recent.length, options: sections.all, title: labels.all }),
3870
- sections.flat.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles25.empty, { color: colors.textSecondary }], children: labels.empty }) : null
4010
+ sections.flat.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles26.empty, { color: colors.textSecondary }], children: labels.empty }) : null
3871
4011
  ] })
3872
4012
  ] });
3873
4013
  if (!isSheet) return /* @__PURE__ */ jsxRuntime.jsx(DropdownSurface, { anchorRef, closeHint: labels.closeHint, closeLabel: labels.close, progress, testID, translateY, onDismiss: dismiss, children: list });
3874
4014
  return /* @__PURE__ */ jsxRuntime.jsx(SheetSurface, { closeHint: labels.closeHint, closeLabel: labels.close, testID, translateY, onDismiss: dismiss, children: list });
3875
4015
  }
3876
- var styles25 = reactNative.StyleSheet.create({
4016
+ var styles26 = reactNative.StyleSheet.create({
3877
4017
  panel: { borderWidth: 1, borderRadius: PANEL_RADIUS, padding: PANEL_PAD, gap: PANEL_PAD },
3878
4018
  dropList: { maxHeight: MENU_MAX_HEIGHT },
3879
4019
  sheetList: { maxHeight: SHEET_MAX_HEIGHT2 },
@@ -3983,7 +4123,7 @@ function SearchSelect(props) {
3983
4123
  const onTriggerBlur = React37.useCallback(() => {
3984
4124
  if (!openRef.current) onBlur?.();
3985
4125
  }, [onBlur]);
3986
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: anchorRef, style: styles26.anchor, children: [
4126
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: anchorRef, style: styles27.anchor, children: [
3987
4127
  /* @__PURE__ */ jsxRuntime.jsx(
3988
4128
  reactNative.Pressable,
3989
4129
  {
@@ -3992,7 +4132,7 @@ function SearchSelect(props) {
3992
4132
  accessibilityLabel,
3993
4133
  accessibilityRole: "button",
3994
4134
  accessibilityState: { expanded: state.open },
3995
- style: renderTrigger === void 0 ? [controlStyles.selectTrigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }] : styles26.customTrigger,
4135
+ style: renderTrigger === void 0 ? [controlStyles.selectTrigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }] : styles27.customTrigger,
3996
4136
  testID,
3997
4137
  onBlur: onTriggerBlur,
3998
4138
  onPress,
@@ -4004,7 +4144,7 @@ function SearchSelect(props) {
4004
4144
  }
4005
4145
  function FieldBoxContent({ selected, placeholder, colors, renderLeading, renderDetail }) {
4006
4146
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4007
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles26.value, children: [
4147
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles27.value, children: [
4008
4148
  selected !== null && renderLeading !== void 0 ? renderLeading(selected) : null,
4009
4149
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [controlStyles.selectTriggerText, { color: selected === null ? colors.textSecondary : colors.text }], children: selected?.label ?? placeholder }),
4010
4150
  selected !== null ? /* @__PURE__ */ jsxRuntime.jsx(SelectedDetail, { colors, option: selected, renderDetail }) : null
@@ -4017,7 +4157,7 @@ function SelectedDetail({ option, colors, renderDetail }) {
4017
4157
  if (option.detail === void 0) return null;
4018
4158
  return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [controlStyles.selectTriggerText, { color: colors.textSecondary }], children: option.detail });
4019
4159
  }
4020
- var styles26 = reactNative.StyleSheet.create({
4160
+ var styles27 = reactNative.StyleSheet.create({
4021
4161
  anchor: { position: "relative" },
4022
4162
  customTrigger: { minHeight: MIN_TOUCH, minWidth: MIN_TOUCH, alignSelf: "flex-start", justifyContent: "center" },
4023
4163
  value: { flex: 1, flexDirection: "row", alignItems: "center", gap: VALUE_GAP }
@@ -4794,7 +4934,7 @@ function CountryField({ value, onChange, accessibilityLabel, accessibilityHint,
4794
4934
  const { theme } = uiFeedback.useUi();
4795
4935
  const { textSecondary } = theme.colors;
4796
4936
  const options = React37.useMemo(() => countryFieldOptions(countries, noneLabel), [countries, noneLabel]);
4797
- const renderCode = React37.useCallback((option) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles27.code, { color: textSecondary }], children: option.detail }), [textSecondary]);
4937
+ const renderCode = React37.useCallback((option) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles28.code, { color: textSecondary }], children: option.detail }), [textSecondary]);
4798
4938
  return /* @__PURE__ */ jsxRuntime.jsx(
4799
4939
  SearchSelect,
4800
4940
  {
@@ -4812,7 +4952,7 @@ function CountryField({ value, onChange, accessibilityLabel, accessibilityHint,
4812
4952
  }
4813
4953
  );
4814
4954
  }
4815
- var styles27 = reactNative.StyleSheet.create({
4955
+ var styles28 = reactNative.StyleSheet.create({
4816
4956
  code: { fontSize: CODE_FONT }
4817
4957
  });
4818
4958
  function useBlurVerdict(validate) {
@@ -4972,15 +5112,15 @@ function rawCaretAfterChange(previous, previousCaret, next) {
4972
5112
 
4973
5113
  // src/IbanInput/hooks/useIbanCaret.ts
4974
5114
  function useIbanCaret(display) {
4975
- const [selection, setSelection] = React37.useState({ start: display.length, end: display.length });
5115
+ const [selection2, setSelection] = React37.useState({ start: display.length, end: display.length });
4976
5116
  const onSelectionChange = React37.useCallback((event) => {
4977
5117
  setSelection(event.nativeEvent.selection);
4978
5118
  }, []);
4979
5119
  const placeAfterEdit = React37.useCallback((text) => {
4980
- const caret = caretAfterEdit(text, rawCaretAfterChange(display, selection.end, text));
5120
+ const caret = caretAfterEdit(text, rawCaretAfterChange(display, selection2.end, text));
4981
5121
  setSelection({ start: caret, end: caret });
4982
- }, [display, selection.end]);
4983
- const clamped = { start: Math.min(selection.start, display.length), end: Math.min(selection.end, display.length) };
5122
+ }, [display, selection2.end]);
5123
+ const clamped = { start: Math.min(selection2.start, display.length), end: Math.min(selection2.end, display.length) };
4984
5124
  return { selection: clamped, onSelectionChange, placeAfterEdit };
4985
5125
  }
4986
5126
  var FONT_SIZE = 14;
@@ -5068,9 +5208,9 @@ var LINE_GAP = 4;
5068
5208
  function RejectionLine({ message, testID }) {
5069
5209
  const { theme } = uiFeedback.useUi();
5070
5210
  if (message === null) return null;
5071
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityLiveRegion: "polite", style: [styles28.line, { color: fieldErrorInk(theme) }], testID: `${testID}-rejection`, children: message });
5211
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityLiveRegion: "polite", style: [styles29.line, { color: fieldErrorInk(theme) }], testID: `${testID}-rejection`, children: message });
5072
5212
  }
5073
- var styles28 = reactNative.StyleSheet.create({
5213
+ var styles29 = reactNative.StyleSheet.create({
5074
5214
  line: { marginTop: LINE_GAP }
5075
5215
  });
5076
5216
 
@@ -5087,7 +5227,7 @@ function IbanInput({ value, onChange, onVerdict, accessibilityLabel, accessibili
5087
5227
  const { verdict, onEdit, onLeave } = useBlurVerdict(validate);
5088
5228
  const message = value === "" ? null : rejectionMessage(verdict?.rejection ?? null, "None" /* None */, rejectionLabels);
5089
5229
  const counter = ibanCounter(draft);
5090
- const { selection, onSelectionChange, placeAfterEdit } = useIbanCaret(draft.display);
5230
+ const { selection: selection2, onSelectionChange, placeAfterEdit } = useIbanCaret(draft.display);
5091
5231
  const onChangeText = React37.useCallback((text) => {
5092
5232
  onEdit();
5093
5233
  onVerdict?.(null);
@@ -5116,7 +5256,7 @@ function IbanInput({ value, onChange, onVerdict, accessibilityLabel, accessibili
5116
5256
  autoCorrect: false,
5117
5257
  placeholder: draft.display === "" ? placeholder : void 0,
5118
5258
  placeholderTextColor: colors.textSecondary,
5119
- selection,
5259
+ selection: selection2,
5120
5260
  spellCheck: false,
5121
5261
  style: [ghostStyles.mono, ghostStyles.input, { color: colors.text }],
5122
5262
  testID,
@@ -5217,7 +5357,7 @@ var PAD_V = 10;
5217
5357
  var PAD_H = 16;
5218
5358
  var TEXT_SIZE2 = 13;
5219
5359
  var TEXT_LINE2 = 18;
5220
- var styles29 = reactNative.StyleSheet.create({
5360
+ var styles30 = reactNative.StyleSheet.create({
5221
5361
  bar: { borderTopWidth: 1, paddingHorizontal: PAD_H, paddingVertical: PAD_V, rowGap: BAR_GAP },
5222
5362
  actions: { flexDirection: "row", flexWrap: "wrap", gap: BAR_GAP },
5223
5363
  message: { fontSize: TEXT_SIZE2, fontWeight: "700", lineHeight: TEXT_LINE2 }
@@ -5229,9 +5369,9 @@ var ActionBar = ({ children, message, sticky = false, testID, style }) => {
5229
5369
  const { colors } = theme;
5230
5370
  const pinned = actionBarPosition(sticky, reactNative.Platform.OS) === "sticky" ? PINNED : null;
5231
5371
  const hasMessage = message !== void 0 && message !== "";
5232
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles29.bar, { backgroundColor: colors.surface, borderTopColor: colors.border }, pinned, style], testID, children: [
5233
- hasMessage ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "status", style: [styles29.message, { color: colors.text }], testID: `${testID}-message`, children: message }) : null,
5234
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles29.actions, children })
5372
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles30.bar, { backgroundColor: colors.surface, borderTopColor: colors.border }, pinned, style], testID, children: [
5373
+ hasMessage ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "status", style: [styles30.message, { color: colors.text }], testID: `${testID}-message`, children: message }) : null,
5374
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles30.actions, children })
5235
5375
  ] });
5236
5376
  };
5237
5377
 
@@ -5239,14 +5379,14 @@ var ActionBar = ({ children, message, sticky = false, testID, style }) => {
5239
5379
  var isChecklistComplete = (items, checked) => items.every((item) => checked.includes(item.id));
5240
5380
  var TITLE_SIZE = 13;
5241
5381
  var TITLE_GAP = 6;
5242
- var styles30 = reactNative.StyleSheet.create({
5382
+ var styles31 = reactNative.StyleSheet.create({
5243
5383
  title: { fontSize: TITLE_SIZE, fontWeight: "700", marginBottom: TITLE_GAP }
5244
5384
  });
5245
5385
  var GatedChecklist = ({ title, items, checked, onToggle, testID, disabled = false, children }) => {
5246
5386
  const { theme } = uiFeedback.useUi();
5247
5387
  const complete = isChecklistComplete(items, checked);
5248
5388
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { testID, children: [
5249
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles30.title, { color: theme.colors.text }], children: title }),
5389
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles31.title, { color: theme.colors.text }], children: title }),
5250
5390
  items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
5251
5391
  FormCheckbox,
5252
5392
  {
@@ -5272,7 +5412,7 @@ var RADIUS2 = 8;
5272
5412
  var LABEL_SIZE = 14;
5273
5413
  var DESCRIPTION_SIZE = 12;
5274
5414
  var DESCRIPTION_LINE = 16;
5275
- var styles31 = reactNative.StyleSheet.create({
5415
+ var styles32 = reactNative.StyleSheet.create({
5276
5416
  row: {
5277
5417
  alignItems: "center",
5278
5418
  borderRadius: RADIUS2,
@@ -5303,15 +5443,15 @@ function RadioRow({ option, identity, colors, tabIndex, hostRef, onPress }) {
5303
5443
  accessibilityState: identity.accessibilityState,
5304
5444
  "aria-checked": checked,
5305
5445
  disabled,
5306
- style: [styles31.row, { borderColor: accent, backgroundColor: checked ? colors.tint : colors.muted }],
5446
+ style: [styles32.row, { borderColor: accent, backgroundColor: checked ? colors.tint : colors.muted }],
5307
5447
  tabIndex,
5308
5448
  testID: identity.testID,
5309
5449
  onPress,
5310
5450
  children: [
5311
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles31.dot, { borderColor: accent }], children: checked ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles31.dotInner, { backgroundColor: colors.primary }] }) : null }),
5312
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles31.text, children: [
5313
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles31.label, { color: checked ? colors.primary : colors.textStrong }], children: option.label }),
5314
- hasDescription ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles31.description, { color: colors.textMuted }], testID: `${identity.testID}-description`, children: option.description }) : null
5451
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles32.dot, { borderColor: accent }], children: checked ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles32.dotInner, { backgroundColor: colors.primary }] }) : null }),
5452
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles32.text, children: [
5453
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles32.label, { color: checked ? colors.primary : colors.textStrong }], children: option.label }),
5454
+ hasDescription ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles32.description, { color: colors.textMuted }], testID: `${identity.testID}-description`, children: option.description }) : null
5315
5455
  ] })
5316
5456
  ]
5317
5457
  }
@@ -5328,7 +5468,7 @@ var radioRowIdentity = (option, selected, disabled, prefix) => {
5328
5468
  };
5329
5469
  };
5330
5470
  var ROW_GAP7 = 8;
5331
- var styles32 = reactNative.StyleSheet.create({
5471
+ var styles33 = reactNative.StyleSheet.create({
5332
5472
  list: { rowGap: ROW_GAP7 }
5333
5473
  });
5334
5474
  function RadioList(props) {
@@ -5341,7 +5481,7 @@ function RadioList(props) {
5341
5481
  reactNative.View,
5342
5482
  {
5343
5483
  accessibilityRole: "radiogroup",
5344
- style: styles32.list,
5484
+ style: styles33.list,
5345
5485
  ...webFieldA11y({ describedById, hasError }),
5346
5486
  ...radio.groupProps,
5347
5487
  children: options.map((option, index) => /* @__PURE__ */ jsxRuntime.jsx(
@@ -5395,11 +5535,11 @@ function DecisionNote({ state, labels, testID, disabled }) {
5395
5535
  );
5396
5536
  }
5397
5537
  var BUTTON_BASIS = "40%";
5398
- var styles33 = reactNative.StyleSheet.create({
5538
+ var styles34 = reactNative.StyleSheet.create({
5399
5539
  cell: { flexBasis: BUTTON_BASIS, flexGrow: 1 }
5400
5540
  });
5401
5541
  function OutcomeButtons({ outcomes, pending, disabled, testID, onPress }) {
5402
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: outcomes.map((item) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles33.cell, children: /* @__PURE__ */ jsxRuntime.jsx(
5542
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: outcomes.map((item) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles34.cell, children: /* @__PURE__ */ jsxRuntime.jsx(
5403
5543
  uiButtons.Button,
5404
5544
  {
5405
5545
  fullWidth: true,
@@ -5480,12 +5620,12 @@ function StickyBarDecision(props) {
5480
5620
  }
5481
5621
  var TEXT_SIZE3 = 13;
5482
5622
  var TEXT_LINE3 = 18;
5483
- var styles34 = reactNative.StyleSheet.create({
5623
+ var styles35 = reactNative.StyleSheet.create({
5484
5624
  text: { fontSize: TEXT_SIZE3, fontWeight: "700", lineHeight: TEXT_LINE3 }
5485
5625
  });
5486
5626
  var SubmitError = ({ message, testID }) => {
5487
5627
  const { theme } = uiFeedback.useUi();
5488
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "alert", style: [styles34.text, { color: fieldErrorInk(theme) }], testID, children: message });
5628
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { role: "alert", style: [styles35.text, { color: fieldErrorInk(theme) }], testID, children: message });
5489
5629
  };
5490
5630
  var toggle = (list, id) => list.includes(id) ? list.filter((item) => item !== id) : [...list, id];
5491
5631
  function useDecisionPanel(outcomes, onSubmit) {
@@ -5528,7 +5668,7 @@ function useDecisionPanel(outcomes, onSubmit) {
5528
5668
  }
5529
5669
  var TITLE_SIZE2 = 15;
5530
5670
  var PANEL_GAP = 12;
5531
- var styles35 = reactNative.StyleSheet.create({
5671
+ var styles36 = reactNative.StyleSheet.create({
5532
5672
  panel: { rowGap: PANEL_GAP },
5533
5673
  title: { fontSize: TITLE_SIZE2, fontWeight: "700" }
5534
5674
  });
@@ -5542,8 +5682,8 @@ function DecisionPanel(props) {
5542
5682
  const { theme } = uiFeedback.useUi();
5543
5683
  const state = useDecisionPanel(outcomes, onSubmit);
5544
5684
  const body = (locked) => renderVariant(variant, { state, outcomes, labels, testID, disabled: disabled || locked, reasons, leadOutcome });
5545
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles35.panel, style], testID, children: [
5546
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles35.title, { color: theme.colors.text }], children: labels.title }),
5685
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles36.panel, style], testID, children: [
5686
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles36.title, { color: theme.colors.text }], children: labels.title }),
5547
5687
  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),
5548
5688
  state.error === "submit" ? /* @__PURE__ */ jsxRuntime.jsx(SubmitError, { message: labels.submitError, testID: `${testID}-error` }) : null
5549
5689
  ] });
@@ -5575,6 +5715,7 @@ exports.DropdownPlacement = DropdownPlacement;
5575
5715
  exports.FLAG_HEIGHT = FLAG_HEIGHT;
5576
5716
  exports.FLAG_WIDTH = FLAG_WIDTH;
5577
5717
  exports.Field = Field;
5718
+ exports.FileInput = FileInput;
5578
5719
  exports.FixBar = FixBar;
5579
5720
  exports.FlagShapeKind = FlagShapeKind;
5580
5721
  exports.FormActions = FormActions;