@funkit/connect-rn 4.1.0 → 4.2.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.
Files changed (97) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/{chunk-SCMY3DZK.js → chunk-A66EO5J5.js} +377 -25
  3. package/dist/chunk-A66EO5J5.js.map +7 -0
  4. package/dist/{chunk-EZBXZZJG.js → chunk-N7Z6UHT7.js} +4 -3
  5. package/dist/chunk-N7Z6UHT7.js.map +7 -0
  6. package/dist/clients/lighter.js +1 -1
  7. package/dist/clients/nado.js +2 -2
  8. package/dist/index.js +3511 -701
  9. package/dist/index.js.map +4 -4
  10. package/dist/src/fiat/FiatBackButton.d.ts +11 -0
  11. package/dist/src/fiat/FiatBackButton.d.ts.map +1 -0
  12. package/dist/src/fiat/FiatConsentCheck.d.ts +11 -0
  13. package/dist/src/fiat/FiatConsentCheck.d.ts.map +1 -0
  14. package/dist/src/fiat/FiatContactScreen.d.ts +17 -0
  15. package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -0
  16. package/dist/src/fiat/FiatDatePickerDock.d.ts +26 -0
  17. package/dist/src/fiat/FiatDatePickerDock.d.ts.map +1 -0
  18. package/dist/src/fiat/FiatFormAdvance.d.ts +17 -0
  19. package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -0
  20. package/dist/src/fiat/FiatFormConsent.d.ts +6 -0
  21. package/dist/src/fiat/FiatFormConsent.d.ts.map +1 -0
  22. package/dist/src/fiat/FiatFormFieldRow.d.ts +66 -0
  23. package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -0
  24. package/dist/src/fiat/FiatFormScreen.d.ts +32 -0
  25. package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -0
  26. package/dist/src/fiat/FiatGradientTitle.d.ts +15 -0
  27. package/dist/src/fiat/FiatGradientTitle.d.ts.map +1 -0
  28. package/dist/src/fiat/FiatKycIntroScreen.d.ts +16 -0
  29. package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -0
  30. package/dist/src/fiat/FiatKycNotice.d.ts +12 -0
  31. package/dist/src/fiat/FiatKycNotice.d.ts.map +1 -0
  32. package/dist/src/fiat/FiatOtpScreen.d.ts +30 -0
  33. package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -0
  34. package/dist/src/fiat/FiatProviderTerms.d.ts +12 -0
  35. package/dist/src/fiat/FiatProviderTerms.d.ts.map +1 -0
  36. package/dist/src/fiat/FiatQuotePrice.d.ts +12 -0
  37. package/dist/src/fiat/FiatQuotePrice.d.ts.map +1 -0
  38. package/dist/src/fiat/calendarDate.d.ts +40 -0
  39. package/dist/src/fiat/calendarDate.d.ts.map +1 -0
  40. package/dist/src/fiat/ctaLabel.d.ts +11 -0
  41. package/dist/src/fiat/ctaLabel.d.ts.map +1 -1
  42. package/dist/src/fiat/fieldAutofill.d.ts +17 -0
  43. package/dist/src/fiat/fieldAutofill.d.ts.map +1 -0
  44. package/dist/src/fiat/formLayout.d.ts +55 -0
  45. package/dist/src/fiat/formLayout.d.ts.map +1 -0
  46. package/dist/src/fiat/formNotice.d.ts +13 -0
  47. package/dist/src/fiat/formNotice.d.ts.map +1 -0
  48. package/dist/src/fiat/formScreenProps.d.ts +17 -0
  49. package/dist/src/fiat/formScreenProps.d.ts.map +1 -0
  50. package/dist/src/fiat/keyboardReturnKey.d.ts +7 -0
  51. package/dist/src/fiat/keyboardReturnKey.d.ts.map +1 -0
  52. package/dist/src/fiat/kycFormTheme.d.ts +86 -0
  53. package/dist/src/fiat/kycFormTheme.d.ts.map +1 -0
  54. package/dist/src/fiat/legalLinks.d.ts +22 -0
  55. package/dist/src/fiat/legalLinks.d.ts.map +1 -0
  56. package/dist/src/fiat/nativeDatePicker.d.ts +43 -0
  57. package/dist/src/fiat/nativeDatePicker.d.ts.map +1 -0
  58. package/dist/src/fiat/otpScreenProps.d.ts +17 -0
  59. package/dist/src/fiat/otpScreenProps.d.ts.map +1 -0
  60. package/dist/src/fiat/providers/SumsubKycSurface.d.ts +22 -0
  61. package/dist/src/fiat/providers/SumsubKycSurface.d.ts.map +1 -0
  62. package/dist/src/fiat/providers/adapter.d.ts +21 -5
  63. package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
  64. package/dist/src/fiat/providers/banxaRedirect.d.ts +4 -0
  65. package/dist/src/fiat/providers/banxaRedirect.d.ts.map +1 -0
  66. package/dist/src/fiat/providers/sumsubKyc.d.ts +19 -0
  67. package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -0
  68. package/dist/src/fiat/providers/transakApplePay.d.ts.map +1 -1
  69. package/dist/src/fiat/renderCaptureSurface.d.ts +13 -3
  70. package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
  71. package/dist/src/fiat/sectionDetail.d.ts +11 -0
  72. package/dist/src/fiat/sectionDetail.d.ts.map +1 -0
  73. package/dist/src/fiat/sessionContact.d.ts +31 -0
  74. package/dist/src/fiat/sessionContact.d.ts.map +1 -0
  75. package/dist/src/fiat/stepDetails.d.ts +18 -1
  76. package/dist/src/fiat/stepDetails.d.ts.map +1 -1
  77. package/dist/src/fiat/useDatePickerDock.d.ts +29 -0
  78. package/dist/src/fiat/useDatePickerDock.d.ts.map +1 -0
  79. package/dist/src/fiat/useStaleQuoteRecovery.d.ts +23 -0
  80. package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -0
  81. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  82. package/dist/src/geo/useUserIpInfo.d.ts.map +1 -1
  83. package/dist/src/screens/DepositAmountScreen.d.ts +3 -1
  84. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  85. package/dist/src/theme/buildFunkitTheme.d.ts +16 -0
  86. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  87. package/dist/src/theme/isDarkColor.d.ts +9 -0
  88. package/dist/src/theme/isDarkColor.d.ts.map +1 -0
  89. package/dist/src/theme/restyle.d.ts +528 -0
  90. package/dist/src/theme/restyle.d.ts.map +1 -1
  91. package/dist/src/theme/toRestyleTheme.d.ts +48 -0
  92. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  93. package/dist/src/theme/tokens.d.ts +40 -0
  94. package/dist/src/theme/tokens.d.ts.map +1 -1
  95. package/package.json +8 -4
  96. package/dist/chunk-EZBXZZJG.js.map +0 -7
  97. package/dist/chunk-SCMY3DZK.js.map +0 -7
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The disc every fiat step leaves the current screen by (1844:17447).
3
+ *
4
+ * It pays no status-bar inset of its own: every screen that draws it already
5
+ * starts below the bar, and insetting again dropped it a full bar past the 5
6
+ * the frames leave it — 79 below the Dynamic Island where the design says 16.
7
+ */
8
+ export declare function FiatBackButton({ onPress }: {
9
+ onPress: () => void;
10
+ }): import("react").JSX.Element;
11
+ //# sourceMappingURL=FiatBackButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatBackButton.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatBackButton.tsx"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,+BAkBlE"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The consent the buyer has to give before the form opens (1844:17451).
3
+ *
4
+ * The whole row is the control, not the box alone: the copy is four lines of
5
+ * 12pt type, and a 32pt square is a small target beside it.
6
+ */
7
+ export declare function FiatConsentCheck({ isChecked, onToggle, }: {
8
+ isChecked: boolean;
9
+ onToggle: () => void;
10
+ }): import("react").JSX.Element;
11
+ //# sourceMappingURL=FiatConsentCheck.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatConsentCheck.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatConsentCheck.tsx"],"names":[],"mappings":"AAaA;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,+BAgDA"}
@@ -0,0 +1,17 @@
1
+ import type { SessionContactField } from './sessionContact';
2
+ export interface FiatContactScreenProps {
3
+ /** What the session transition asks for — a phone number, or an address. */
4
+ field: SessionContactField;
5
+ isSubmitting: boolean;
6
+ onChangeContact: (value: string) => void;
7
+ onSubmit: () => void;
8
+ onClose: () => void;
9
+ }
10
+ /**
11
+ * Where the code is sent (screen 2's first half).
12
+ *
13
+ * Collected before the transition that opens the session, so the step is the
14
+ * client's own rather than one the server drives.
15
+ */
16
+ export declare function FiatContactScreen({ field, isSubmitting, onChangeContact, onSubmit, onClose, }: FiatContactScreenProps): import("react").JSX.Element;
17
+ //# sourceMappingURL=FiatContactScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatContactScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatContactScreen.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAG3D,MAAM,WAAW,sBAAsB;IACrC,4EAA4E;IAC5E,KAAK,EAAE,mBAAmB,CAAA;IAC1B,YAAY,EAAE,OAAO,CAAA;IACrB,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,OAAO,GACR,EAAE,sBAAsB,+BAkGxB"}
@@ -0,0 +1,26 @@
1
+ import { Animated } from 'react-native';
2
+ import { type NativeDatePicker } from './nativeDatePicker';
3
+ /**
4
+ * The date picker in the keyboard's slot (1844:17543).
5
+ *
6
+ * iOS draws its calendar inline, so the panel is a surface the step gives up
7
+ * room for. Android opens a dialog over everything instead — the same
8
+ * component, mounted with nothing reserved for it.
9
+ */
10
+ export declare function FiatDatePickerDock({ Picker, value, isDark, isOpen, slide, onChangeValue, onDismiss, }: {
11
+ Picker: NativeDatePicker;
12
+ /** The answer held so far, in the wire format. */
13
+ value: string;
14
+ isDark: boolean;
15
+ isOpen: boolean;
16
+ /** 0 closed, 1 open — what slides the panel in off the bottom edge. */
17
+ slide: Animated.AnimatedValue;
18
+ onChangeValue: (value: string) => void;
19
+ /**
20
+ * The user closed the picker without choosing. Android's dialog closes
21
+ * itself, and the module re-shows a dialog that is still mounted on the next
22
+ * render — so the holder has to hear about it and unmount.
23
+ */
24
+ onDismiss?: () => void;
25
+ }): import("react").JSX.Element | null;
26
+ //# sourceMappingURL=FiatDatePickerDock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatDatePickerDock.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatDatePickerDock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAc,MAAM,cAAc,CAAA;AASnD,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAA;AAE3B;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,aAAa,EACb,SAAS,GACV,EAAE;IACD,MAAM,EAAE,gBAAgB,CAAA;IACxB,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,OAAO,CAAA;IACf,uEAAuE;IACvE,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAA;IAC7B,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB,sCAyDA"}
@@ -0,0 +1,17 @@
1
+ import { Animated } from 'react-native';
2
+ /**
3
+ * The control that ends a form page (1508:2616, 1844:17471).
4
+ *
5
+ * Pinned above whatever is up rather than left at the end of the column: a
6
+ * long section scrolls past it, and the design floats it over the card on
7
+ * every step that has one.
8
+ */
9
+ export declare function FiatFormAdvance({ isLastStep, isSubmitting, canAdvance, bottom, onPress, }: {
10
+ isLastStep: boolean;
11
+ isSubmitting: boolean;
12
+ canAdvance: boolean;
13
+ /** Where it sits above the keyboard, the picker, or the home indicator. */
14
+ bottom: Animated.WithAnimatedValue<number>;
15
+ onPress: () => void;
16
+ }): import("react").JSX.Element;
17
+ //# sourceMappingURL=FiatFormAdvance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatFormAdvance.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatFormAdvance.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAGT,MAAM,cAAc,CAAA;AAOrB;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,YAAY,EACZ,UAAU,EACV,MAAM,EACN,OAAO,GACR,EAAE;IACD,UAAU,EAAE,OAAO,CAAA;IACnB,YAAY,EAAE,OAAO,CAAA;IACrB,UAAU,EAAE,OAAO,CAAA;IACnB,2EAA2E;IAC3E,MAAM,EAAE,QAAQ,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAA;IAC1C,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BAsCA"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * What the form's answers are used for, said once — the design carries it
3
+ * under the first section's fields and nowhere else.
4
+ */
5
+ export declare function FiatFormConsent(): import("react").JSX.Element;
6
+ //# sourceMappingURL=FiatFormConsent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatFormConsent.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatFormConsent.tsx"],"names":[],"mappings":"AAQA;;;GAGG;AACH,wBAAgB,eAAe,gCAyB9B"}
@@ -0,0 +1,66 @@
1
+ import type { FormField, FormFieldIssue } from '@funkit/connect-core';
2
+ import { type RefObject } from 'react';
3
+ import { TextInput, type TextInputProps } from 'react-native';
4
+ import { type FieldAutofill } from './fieldAutofill';
5
+ /**
6
+ * What the return key does at the end of a field.
7
+ *
8
+ * `next` hands focus on without dropping the keyboard; `done` ends the step,
9
+ * because the last field has nowhere left to go.
10
+ */
11
+ /** However the holder wants the box's node — a ref object or a callback. */
12
+ export type FieldInputRef = RefObject<TextInput | null> | ((node: TextInput | null) => void);
13
+ export interface FieldReturnKey {
14
+ kind: 'next' | 'done';
15
+ onPress: () => void;
16
+ }
17
+ export interface FiatFormFieldRowProps {
18
+ field: FormField;
19
+ value: string;
20
+ /** Shown only once the field has been visited, so a blank form is quiet. */
21
+ issue?: FormFieldIssue;
22
+ /** The step focuses through its fields, so it holds the first box's node. */
23
+ inputRef?: FieldInputRef;
24
+ /** Absent on a field with nothing to type into. */
25
+ returnKey?: FieldReturnKey;
26
+ /** Inside a section's card: the card fills and rounds it, so the box won't. */
27
+ grouped?: boolean;
28
+ /** A date a picker answers: the box shows the answer instead of taking it. */
29
+ picked?: FieldPicked;
30
+ onChangeValue: (value: string) => void;
31
+ onBlur: () => void;
32
+ }
33
+ /** A field answered by a picker rather than typed into. */
34
+ export interface FieldPicked {
35
+ isOpen: boolean;
36
+ onOpen: () => void;
37
+ }
38
+ /**
39
+ * One field of a KYC form, drawn as the design draws its type.
40
+ *
41
+ * The label is the placeholder — the design has no label above the box — so a
42
+ * field type this build has never seen still reads correctly from the server's
43
+ * `labelFallback`.
44
+ */
45
+ export declare function FiatFormFieldRow({ field, value, issue, inputRef, returnKey, grouped, picked, onChangeValue, onBlur, }: FiatFormFieldRowProps): import("react").JSX.Element;
46
+ /**
47
+ * The design's field: a filled box with the label as its placeholder, and an
48
+ * "optional" caption under the label where the form does not require it.
49
+ */
50
+ export declare function FieldBox({ value, placeholder, optional, maxLength, align, keyboardType, inputRef, returnKey, grouped, invalid, autofill, onChangeValue, onBlur, }: {
51
+ value: string;
52
+ placeholder: string;
53
+ optional?: boolean;
54
+ maxLength?: number;
55
+ align?: 'left' | 'center';
56
+ keyboardType?: TextInputProps['keyboardType'];
57
+ inputRef?: FieldInputRef;
58
+ returnKey?: FieldReturnKey;
59
+ grouped?: boolean;
60
+ /** A refused answer: the box takes the design's yellow. */
61
+ invalid?: boolean;
62
+ autofill?: FieldAutofill;
63
+ onChangeValue: (value: string) => void;
64
+ onBlur: () => void;
65
+ }): import("react").JSX.Element;
66
+ //# sourceMappingURL=FiatFormFieldRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatFormFieldRow.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatFormFieldRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAkB,KAAK,SAAS,EAAY,MAAM,OAAO,CAAA;AAChE,OAAO,EAGL,SAAS,EACT,KAAK,cAAc,EAEpB,MAAM,cAAc,CAAA;AAKrB,OAAO,EAAE,KAAK,aAAa,EAAiB,MAAM,iBAAiB,CAAA;AAKnE;;;;;GAKG;AACH,4EAA4E;AAC5E,MAAM,MAAM,aAAa,GACrB,SAAS,CAAC,SAAS,GAAG,IAAI,CAAC,GAC3B,CAAC,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC,CAAA;AAEtC,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,SAAS,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,4EAA4E;IAC5E,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB,mDAAmD;IACnD,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,+EAA+E;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,8EAA8E;IAC9E,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED,2DAA2D;AAC3D,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,KAAK,EACL,KAAK,EACL,QAAQ,EACR,SAAS,EACT,OAAO,EACP,MAAM,EACN,aAAa,EACb,MAAM,GACP,EAAE,qBAAqB,+BAcvB;AAuFD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,WAAW,EACX,QAAgB,EAChB,SAAS,EACT,KAAc,EACd,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,OAAe,EACf,OAAe,EACf,QAAQ,EACR,aAAa,EACb,MAAM,GACP,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IACzB,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAA;IAC7C,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,+BAsDA"}
@@ -0,0 +1,32 @@
1
+ import type { FiatProvider, FormDescriptor, FormValues, JsonValue, Quote } from '@funkit/connect-core';
2
+ export interface FiatFormScreenProps {
3
+ form: FormDescriptor;
4
+ /** Shown through the round: the price never hides behind the form. */
5
+ quote: Quote;
6
+ /** The provider the round names, for the consent the intro takes. */
7
+ provider?: FiatProvider;
8
+ values: FormValues;
9
+ /**
10
+ * The buyer's region, ISO 3166-1 alpha-2. A blank COUNTRY field is filled
11
+ * with it on arrival, so nobody is asked to type "US" into a box the frames
12
+ * never drew.
13
+ */
14
+ defaultCountry?: string;
15
+ /** The form's own error, when the server re-entered it carrying one. */
16
+ errorMessage?: string;
17
+ isSubmitting: boolean;
18
+ onChangeField: (fieldId: string, value: JsonValue) => void;
19
+ /** Several fields at once, as one write — see `formScreenProps`. */
20
+ onPrefill?: (values: FormValues) => void;
21
+ onSubmit: () => void;
22
+ onClose: () => void;
23
+ }
24
+ /**
25
+ * The identity form (KYC screen 3), stepped one section at a time as the
26
+ * design draws it: name, then address, then date of birth.
27
+ *
28
+ * Only the last section submits — the ones before it advance locally, because
29
+ * the contract sends the form whole and has no per-page call.
30
+ */
31
+ export declare function FiatFormScreen({ form, quote, provider, values, defaultCountry, errorMessage, isSubmitting, onChangeField, onPrefill, onSubmit, onClose, }: FiatFormScreenProps): import("react").JSX.Element | null;
32
+ //# sourceMappingURL=FiatFormScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatFormScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatFormScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EAEd,UAAU,EACV,SAAS,EACT,KAAK,EACN,MAAM,sBAAsB,CAAA;AAsC7B,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,cAAc,CAAA;IACpB,sEAAsE;IACtE,KAAK,EAAE,KAAK,CAAA;IACZ,qEAAqE;IACrE,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,MAAM,EAAE,UAAU,CAAA;IAClB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,KAAK,IAAI,CAAA;IAC1D,oEAAoE;IACpE,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAA;IACxC,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,MAAM,EACN,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,SAAS,EACT,QAAQ,EACR,OAAO,GACR,EAAE,mBAAmB,sCAyTrB"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The intro's headline under the brand's own gradient (1844:17444).
3
+ *
4
+ * RN draws no gradient type, so a real `Text` lays the line out and reports
5
+ * where each one landed, and the same lines are drawn again as SVG over it —
6
+ * which keeps the wrap, the measure and the translation the text had.
7
+ */
8
+ export declare function FiatGradientTitle({ text, from, to, }: {
9
+ text: string;
10
+ /** The frame's first stop: the headline's own color. */
11
+ from: string;
12
+ /** Its last: the brand's. Equal to `from` on a host that sets no brand. */
13
+ to: string;
14
+ }): import("react").JSX.Element;
15
+ //# sourceMappingURL=FiatGradientTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatGradientTitle.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatGradientTitle.tsx"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,IAAI,EACJ,EAAE,GACH,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAA;IACZ,2EAA2E;IAC3E,EAAE,EAAE,MAAM,CAAA;CACX,+BAsDA"}
@@ -0,0 +1,16 @@
1
+ import type { FiatProvider } from '@funkit/connect-core';
2
+ export interface FiatKycIntroScreenProps {
3
+ /** The provider the round names; whose terms the buyer is agreeing to. */
4
+ provider?: FiatProvider;
5
+ onContinue: () => void;
6
+ onCancel: () => void;
7
+ }
8
+ /**
9
+ * What the form opens on (1844:17377): why identity is being asked for, and
10
+ * the consent to ask, before any field is.
11
+ *
12
+ * Client-local — the contract has no state for it, so it is a step this screen
13
+ * owns rather than one the server drives.
14
+ */
15
+ export declare function FiatKycIntroScreen({ provider, onContinue, onCancel, }: FiatKycIntroScreenProps): import("react").JSX.Element;
16
+ //# sourceMappingURL=FiatKycIntroScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatKycIntroScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycIntroScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAiBxD,MAAM,WAAW,uBAAuB;IACtC,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,UAAU,EACV,QAAQ,GACT,EAAE,uBAAuB,+BA6EzB"}
@@ -0,0 +1,12 @@
1
+ export interface FiatKycNoticeProps {
2
+ title: string;
3
+ detail: string;
4
+ }
5
+ /**
6
+ * The banner the deposit surface wears while identity is outstanding.
7
+ *
8
+ * The design draws a person-with-badge glyph the icon set has no equivalent
9
+ * for, so the alert glyph carries it.
10
+ */
11
+ export declare function FiatKycNotice({ title, detail }: FiatKycNoticeProps): import("react").JSX.Element;
12
+ //# sourceMappingURL=FiatKycNotice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatKycNotice.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatKycNotice.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,kBAAkB,+BA2BlE"}
@@ -0,0 +1,30 @@
1
+ /** What the design draws, and what a step omitting `length` falls back to. */
2
+ export declare const OTP_CODE_LENGTH = 6;
3
+ export interface FiatOtpScreenProps {
4
+ /** Digits the step expects, as the transition declares them. */
5
+ length?: number;
6
+ /** Where the code went. Always known: nothing could have sent it otherwise. */
7
+ destination: string;
8
+ /** Which channel carried it, as the step reports it. */
9
+ isSms: boolean;
10
+ /** The step's own error — a bad code re-enters this same state. */
11
+ errorMessage?: string;
12
+ /**
13
+ * Sends a fresh code. The row is always drawn — every frame has it — but it
14
+ * is live only when the round carries a transition for it; absent, the link
15
+ * is disabled rather than a press that does nothing.
16
+ */
17
+ onResend?: () => void;
18
+ isSubmitting: boolean;
19
+ onChangeCode: (code: string) => void;
20
+ onSubmit: () => void;
21
+ onClose: () => void;
22
+ }
23
+ /**
24
+ * The one-time code (screen 2).
25
+ *
26
+ * The per-digit boxes are a display: one field holds the code, so iOS fills it
27
+ * from the message and a paste lands whole.
28
+ */
29
+ export declare function FiatOtpScreen({ length, destination, isSms, errorMessage, onResend, isSubmitting, onChangeCode, onSubmit, onClose, }: FiatOtpScreenProps): import("react").JSX.Element;
30
+ //# sourceMappingURL=FiatOtpScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatOtpScreen.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatOtpScreen.tsx"],"names":[],"mappings":"AAkBA,8EAA8E;AAC9E,eAAO,MAAM,eAAe,IAAI,CAAA;AAEhC,MAAM,WAAW,kBAAkB;IACjC,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,+EAA+E;IAC/E,WAAW,EAAE,MAAM,CAAA;IACnB,wDAAwD;IACxD,KAAK,EAAE,OAAO,CAAA;IACd,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,MAAwB,EACxB,WAAW,EACX,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,OAAO,GACR,EAAE,kBAAkB,+BAmJpB"}
@@ -0,0 +1,12 @@
1
+ import type { FiatProvider } from '@funkit/connect-core';
2
+ /**
3
+ * The terms of the provider that settles the order (1844:17449) — told, not
4
+ * asked: pressing the action below is what accepts them.
5
+ *
6
+ * The provider is the round's, not a constant: the routing engine picks it per
7
+ * user, and a buyer routed to one provider must never consent to another's.
8
+ */
9
+ export declare function FiatProviderTerms({ provider }: {
10
+ provider?: FiatProvider;
11
+ }): import("react").JSX.Element;
12
+ //# sourceMappingURL=FiatProviderTerms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatProviderTerms.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatProviderTerms.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAUxD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,YAAY,CAAA;CAAE,+BA6C1E"}
@@ -0,0 +1,12 @@
1
+ import type { Quote } from '@funkit/connect-core';
2
+ /**
3
+ * What the buyer is paying, kept on screen through verification.
4
+ *
5
+ * Every `KYC` state carries its quote precisely so the price never disappears
6
+ * behind the identity step — someone asked for a tax ID has to be able to see
7
+ * what they are being asked it for.
8
+ */
9
+ export declare function FiatQuotePrice({ quote }: {
10
+ quote: Quote;
11
+ }): import("react").JSX.Element;
12
+ //# sourceMappingURL=FiatQuotePrice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatQuotePrice.d.ts","sourceRoot":"","sources":["../../../src/fiat/FiatQuotePrice.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAOjD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,+BAazD"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * The calendar date a KYC form carries, between the wire and a date picker.
3
+ *
4
+ * - The wire value is a **zoneless day**: `YYYY-MM-DD`, the day the user
5
+ * tapped, identical from every timezone. The server reads it as a UTC day
6
+ * (`new Date(value + 'T00:00:00Z')`), and so does `validateForm`.
7
+ * - `Date` objects here are local midnight of that day, never a conversion of
8
+ * it: `new Date('1990-12-10')` is UTC midnight, which is the 9th behind UTC,
9
+ * so the picker would open and save a day early.
10
+ * - "Today" is therefore the **UTC** day — the clock the not-future rule is
11
+ * judged on — so a user ahead of UTC cannot pick a day the server refuses.
12
+ */
13
+ /** The wire format, read off a `Date` the picker handed back. */
14
+ export declare function toCalendarDate(date: Date): string;
15
+ /**
16
+ * The date a stored answer names, or `undefined` when it names none.
17
+ *
18
+ * The round trip is what rejects `2026-02-30`: `Date` rolls an impossible day
19
+ * forward into the next month rather than refusing it.
20
+ */
21
+ export declare function parseCalendarDate(value: string): Date | undefined;
22
+ /**
23
+ * The answer as the user's own locale writes it, or the answer itself when
24
+ * that cannot be formatted — an unformatted date still reads as the date.
25
+ */
26
+ export declare function formatCalendarDate(value: string, locale: string): string;
27
+ /**
28
+ * The bounds the picker offers.
29
+ *
30
+ * - A birth date in the future is never right, and the provider answers one
31
+ * with an empty 400 the user reads as an SDK failure.
32
+ * - The ceiling is the **UTC** day, because that is the clock the server's
33
+ * not-future rule is judged on. Anyone ahead of UTC would otherwise be
34
+ * offered a day their own submission comes back refused for.
35
+ */
36
+ export declare function birthDateRange(now?: Date): {
37
+ minimumDate: Date;
38
+ maximumDate: Date;
39
+ };
40
+ //# sourceMappingURL=calendarDate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendarDate.d.ts","sourceRoot":"","sources":["../../../src/fiat/calendarDate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,iEAAiE;AACjE,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAIjD;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAQjE;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAWxE;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,GAAG,OAAa,GAAG;IAChD,WAAW,EAAE,IAAI,CAAA;IACjB,WAAW,EAAE,IAAI,CAAA;CAClB,CAUA"}
@@ -7,6 +7,14 @@ import type { TFunction } from 'i18next';
7
7
  * release.
8
8
  */
9
9
  export declare function ctaLabel(cta: SubmitTransition, t: TFunction): string;
10
+ /**
11
+ * Whether the quote is holding the deposit on identity, which the entry
12
+ * screen answers with a banner as well as a relabelled button.
13
+ *
14
+ * A round the endpoint answered with says so by its state; a quote that will
15
+ * price once identity clears says so by its transition id.
16
+ */
17
+ export declare function isIdentityDetour(entry: EntryCta): boolean;
10
18
  /**
11
19
  * The words on the amount screen's primary button.
12
20
  *
@@ -14,6 +22,9 @@ export declare function ctaLabel(cta: SubmitTransition, t: TFunction): string;
14
22
  * Every other step is the server's to name, which is what lets a step this
15
23
  * build has never seen still render sensibly. The screen asks this rather
16
24
  * than inspecting `kind`, so intent stays separate from presentation.
25
+ *
26
+ * A round is the exception: it arrived with no transition of its own to name
27
+ * it, so the state it holds the deposit on is what the button says.
17
28
  */
18
29
  export declare function entryCtaLabel(entry: EntryCta, t: TFunction, appLabel: string): string;
19
30
  //# sourceMappingURL=ctaLabel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ctaLabel.d.ts","sourceRoot":"","sources":["../../../src/fiat/ctaLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,gBAAgB,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAWpE;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,QAAQ,EACf,CAAC,EAAE,SAAS,EACZ,QAAQ,EAAE,MAAM,GACf,MAAM,CAMR"}
1
+ {"version":3,"file":"ctaLabel.d.ts","sourceRoot":"","sources":["../../../src/fiat/ctaLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,gBAAgB,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAYpE;AAKD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAOzD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,QAAQ,EACf,CAAC,EAAE,SAAS,EACZ,QAAQ,EAAE,MAAM,GACf,MAAM,CAWR"}
@@ -0,0 +1,17 @@
1
+ import type { FormField } from '@funkit/connect-core';
2
+ import type { TextInputProps } from 'react-native';
3
+ /**
4
+ * What the platform needs in order to offer an address the user already has.
5
+ *
6
+ * Both are declared: iOS reads `textContentType`, Android reads `autoComplete`,
7
+ * and a field that declares only one is filled on only one platform.
8
+ */
9
+ export interface FieldAutofill {
10
+ textContentType?: TextInputProps['textContentType'];
11
+ autoComplete?: TextInputProps['autoComplete'];
12
+ /** Names are capitalised as the user would write them, codes as codes. */
13
+ autoCapitalize?: TextInputProps['autoCapitalize'];
14
+ }
15
+ /** What the platform should offer for this field, if anything. */
16
+ export declare function fieldAutofill(field: FormField): FieldAutofill;
17
+ //# sourceMappingURL=fieldAutofill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldAutofill.d.ts","sourceRoot":"","sources":["../../../src/fiat/fieldAutofill.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAElD;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,eAAe,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAA;IACnD,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAA;IAC7C,0EAA0E;IAC1E,cAAc,CAAC,EAAE,cAAc,CAAC,gBAAgB,CAAC,CAAA;CAClD;AAuDD,kEAAkE;AAClE,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,aAAa,CAE7D"}
@@ -0,0 +1,55 @@
1
+ import type { FormField } from '@funkit/connect-core';
2
+ /**
3
+ * The pages the US form is drawn as, in the order the design steps them.
4
+ *
5
+ * Figma "EDIT: KYC Enhancements": 1508:2616 (name), 1844:17471 (date of
6
+ * birth), 1631:7256 (address), 1631:7883 (SSN). `DETAILS` is not a frame — it
7
+ * is where a field the design never drew goes, so a form the server words its
8
+ * own way still renders.
9
+ */
10
+ export type KycSection = 'NAME' | 'DOB' | 'ADDRESS' | 'SSN' | 'DETAILS';
11
+ export interface KycSectionPage {
12
+ section: KycSection;
13
+ /** Drawn as one card with a rule between rows, rather than loose boxes. */
14
+ grouped: boolean;
15
+ /** Fields sharing a row sit side by side, as the design pairs them. */
16
+ rows: FormField[][];
17
+ }
18
+ /**
19
+ * The page's field a date picker can answer, when that is the whole page.
20
+ *
21
+ * A picker takes the keyboard's slot, so it can only be offered on a page
22
+ * with nothing else to type: a date beside two names would leave one of the
23
+ * two controls covering the other. Anywhere else the date is typed.
24
+ */
25
+ export declare function pickedDateField(page: KycSectionPage): FormField | undefined;
26
+ /**
27
+ * Whether the field is typed into, and so takes a turn in the return-key
28
+ * chain. A choice is not.
29
+ */
30
+ export declare function isFocusableField(field: FormField): boolean;
31
+ /**
32
+ * Whether the field raises a number pad. The SSN page is drawn over one
33
+ * (1631:7883); every other page in the form is drawn over letters.
34
+ */
35
+ export declare function isDigitsField(field: FormField): boolean;
36
+ /** Whether the field is drawn at a fixed width rather than growing to fill. */
37
+ export declare function isFixedWidthField(field: FormField): boolean;
38
+ /**
39
+ * The form's fields that no page draws.
40
+ *
41
+ * Type only: an unknown id has a page (`DETAILS`), so refusing one would
42
+ * reject a whole form over a field the screens can draw perfectly well. A
43
+ * form with any of these cannot be completed here, so the caller shows its
44
+ * unsupported state rather than a form missing a field the server requires.
45
+ */
46
+ export declare function unsupportedFields(fields: readonly FormField[]): FormField[];
47
+ /**
48
+ * Splits a form into the pages the design steps through.
49
+ *
50
+ * Pages keep the design's order; fields keep the server's, so a page that
51
+ * gains a field it already draws renders it without a client release. A page
52
+ * with no fields is not a page.
53
+ */
54
+ export declare function sectionPages(fields: readonly FormField[]): KycSectionPage[];
55
+ //# sourceMappingURL=formLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formLayout.d.ts","sourceRoot":"","sources":["../../../src/fiat/formLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,sBAAsB,CAAA;AAGjE;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,CAAA;AAEvE,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,UAAU,CAAA;IACnB,2EAA2E;IAC3E,OAAO,EAAE,OAAO,CAAA;IAChB,uEAAuE;IACvE,IAAI,EAAE,SAAS,EAAE,EAAE,CAAA;CACpB;AAuDD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,SAAS,CAI3E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAI1D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAEvD;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAE3D;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,GAAG,SAAS,EAAE,CAE3E;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,GAAG,cAAc,EAAE,CA4B3E"}
@@ -0,0 +1,13 @@
1
+ import type { FormFieldIssue } from '@funkit/connect-core';
2
+ import type { TFunction } from 'i18next';
3
+ /**
4
+ * What the notice under the fields says.
5
+ *
6
+ * A refused field is drawn in the design's yellow and worded nowhere else, so
7
+ * the page's own refusals have to reach the notice — a colour arriving with no
8
+ * reason leaves the user re-reading a page that looks correct.
9
+ *
10
+ * The round's own error outranks them: the server saw the whole form.
11
+ */
12
+ export declare function formNotice(errorMessage: string | undefined, issues: readonly FormFieldIssue[], t: TFunction): string | undefined;
13
+ //# sourceMappingURL=formNotice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formNotice.d.ts","sourceRoot":"","sources":["../../../src/fiat/formNotice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,MAAM,EAAE,SAAS,cAAc,EAAE,EACjC,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAMpB"}
@@ -0,0 +1,17 @@
1
+ import type { FiatFlow } from '@funkit/connect-core';
2
+ import type { TFunction } from 'i18next';
3
+ import type { FiatFormScreenProps } from './FiatFormScreen';
4
+ /**
5
+ * Binds a `KYC{INPUT_REQUIRED}` step response to the form screen.
6
+ *
7
+ * Every answer rides in one transition input, so a keystroke rewrites that
8
+ * input's object rather than adding a key of its own — the body the contract
9
+ * declares is `{ formId, <values> }`, never a flattened field per key.
10
+ *
11
+ * `undefined` means the form is unrenderable: no page to walk, or no CTA to
12
+ * send it with.
13
+ */
14
+ export declare function formScreenProps(flow: FiatFlow, t: TFunction,
15
+ /** The buyer's region, ISO 3166-1 alpha-2, when the lookup has answered. */
16
+ defaultCountry?: string): Omit<FiatFormScreenProps, 'onClose'> | undefined;
17
+ //# sourceMappingURL=formScreenProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formScreenProps.d.ts","sourceRoot":"","sources":["../../../src/fiat/formScreenProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAyB,MAAM,sBAAsB,CAAA;AAE3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAG3D;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS;AACZ,4EAA4E;AAC5E,cAAc,CAAC,EAAE,MAAM,GACtB,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG,SAAS,CAmClD"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Keyboards with no return key. iOS draws a floating button of its own when
3
+ * one of these is asked for a return key, and it lands over the screen's
4
+ * bottom-right — where the advance control already is.
5
+ */
6
+ export declare const PADS_WITHOUT_RETURN_KEY: Set<import("react-native").KeyboardTypeOptions | undefined>;
7
+ //# sourceMappingURL=keyboardReturnKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyboardReturnKey.d.ts","sourceRoot":"","sources":["../../../src/fiat/keyboardReturnKey.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,6DAKlC,CAAA"}