@funkit/connect-rn 5.0.0 → 6.1.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 (146) hide show
  1. package/CHANGELOG.md +112 -0
  2. package/README.md +61 -0
  3. package/dist/{chunk-X4RK3XTG.js → chunk-HMAJXI66.js} +447 -39
  4. package/dist/chunk-HMAJXI66.js.map +7 -0
  5. package/dist/{chunk-KPP7KXYB.js → chunk-MKOPF7Y5.js} +2 -2
  6. package/dist/clients/lighter.js +1 -1
  7. package/dist/clients/nado.js +4 -4
  8. package/dist/clients/nado.js.map +2 -2
  9. package/dist/index.js +5560 -3292
  10. package/dist/index.js.map +4 -4
  11. package/dist/src/components/ActionLoading.d.ts +19 -0
  12. package/dist/src/components/ActionLoading.d.ts.map +1 -0
  13. package/dist/src/components/DepositActionMotion.d.ts +33 -2
  14. package/dist/src/components/DepositActionMotion.d.ts.map +1 -1
  15. package/dist/src/components/LoadingSpinner.d.ts +23 -0
  16. package/dist/src/components/LoadingSpinner.d.ts.map +1 -0
  17. package/dist/src/components/PillButton.d.ts.map +1 -1
  18. package/dist/src/components/ScrollFade.d.ts +7 -1
  19. package/dist/src/components/ScrollFade.d.ts.map +1 -1
  20. package/dist/src/components/v2/AmountDisplay.d.ts +2 -8
  21. package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
  22. package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
  23. package/dist/src/fiat/FiatActionButton.d.ts.map +1 -1
  24. package/dist/src/fiat/FiatBirthDateField.d.ts +5 -1
  25. package/dist/src/fiat/FiatBirthDateField.d.ts.map +1 -1
  26. package/dist/src/fiat/FiatChoiceField.d.ts +1 -1
  27. package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
  28. package/dist/src/fiat/FiatChoiceList.d.ts +19 -0
  29. package/dist/src/fiat/FiatChoiceList.d.ts.map +1 -0
  30. package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
  31. package/dist/src/fiat/FiatCountryIndexRail.d.ts +26 -0
  32. package/dist/src/fiat/FiatCountryIndexRail.d.ts.map +1 -0
  33. package/dist/src/fiat/FiatCountrySheet.d.ts +18 -0
  34. package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -0
  35. package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -1
  36. package/dist/src/fiat/FiatFormAdvance.d.ts +21 -6
  37. package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -1
  38. package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
  39. package/dist/src/fiat/FiatKycFieldControl.d.ts +8 -1
  40. package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
  41. package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
  42. package/dist/src/fiat/FiatKycNotice.d.ts +12 -2
  43. package/dist/src/fiat/FiatKycNotice.d.ts.map +1 -1
  44. package/dist/src/fiat/FiatKycOptionRow.d.ts +15 -0
  45. package/dist/src/fiat/FiatKycOptionRow.d.ts.map +1 -0
  46. package/dist/src/fiat/FiatKycOptionsScreen.d.ts +21 -0
  47. package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -0
  48. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
  49. package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
  50. package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -1
  51. package/dist/src/fiat/SurfaceSlot.d.ts +17 -4
  52. package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
  53. package/dist/src/fiat/countryListEntries.d.ts +63 -0
  54. package/dist/src/fiat/countryListEntries.d.ts.map +1 -0
  55. package/dist/src/fiat/countrySections.d.ts +25 -0
  56. package/dist/src/fiat/countrySections.d.ts.map +1 -0
  57. package/dist/src/fiat/formLayout.d.ts +1 -0
  58. package/dist/src/fiat/formLayout.d.ts.map +1 -1
  59. package/dist/src/fiat/kycFormState.d.ts.map +1 -1
  60. package/dist/src/fiat/kycFormTheme.d.ts +23 -8
  61. package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
  62. package/dist/src/fiat/nativeDatePicker.d.ts.map +1 -1
  63. package/dist/src/fiat/phoneCountries.d.ts +9 -2
  64. package/dist/src/fiat/phoneCountries.d.ts.map +1 -1
  65. package/dist/src/fiat/phoneDraft.d.ts +10 -3
  66. package/dist/src/fiat/phoneDraft.d.ts.map +1 -1
  67. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
  68. package/dist/src/fiat/providers/HostedControlFrame.d.ts +23 -0
  69. package/dist/src/fiat/providers/HostedControlFrame.d.ts.map +1 -0
  70. package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +1 -1
  71. package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts +14 -0
  72. package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts.map +1 -0
  73. package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
  74. package/dist/src/fiat/providers/transakApplePay.d.ts.map +1 -1
  75. package/dist/src/fiat/stepDetails.d.ts +8 -5
  76. package/dist/src/fiat/stepDetails.d.ts.map +1 -1
  77. package/dist/src/fiat/useContactEligibility.d.ts.map +1 -1
  78. package/dist/src/fiat/useCountrySheet.d.ts +21 -0
  79. package/dist/src/fiat/useCountrySheet.d.ts.map +1 -0
  80. package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -1
  81. package/dist/src/fiat/useFiatDirectDelivery.d.ts +32 -0
  82. package/dist/src/fiat/useFiatDirectDelivery.d.ts.map +1 -0
  83. package/dist/src/fiat/useKycCompletion.d.ts +13 -0
  84. package/dist/src/fiat/useKycCompletion.d.ts.map +1 -0
  85. package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +1 -1
  86. package/dist/src/fiat/useOtpReceipt.d.ts.map +1 -1
  87. package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
  88. package/dist/src/flow/Drawer.d.ts +23 -0
  89. package/dist/src/flow/Drawer.d.ts.map +1 -0
  90. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
  91. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  92. package/dist/src/flow/FlowSheet.d.ts +4 -18
  93. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  94. package/dist/src/flow/depositFlowConfig.d.ts +14 -1
  95. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  96. package/dist/src/flow/useV2DrawerMotion.d.ts +4 -0
  97. package/dist/src/flow/useV2DrawerMotion.d.ts.map +1 -0
  98. package/dist/src/hooks/useDelayedSpinner.d.ts +10 -0
  99. package/dist/src/hooks/useDelayedSpinner.d.ts.map +1 -0
  100. package/dist/src/hooks/useGuardedAmountInput.d.ts +19 -2
  101. package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
  102. package/dist/src/hooks/useMinimumAmountValidation.d.ts +21 -0
  103. package/dist/src/hooks/useMinimumAmountValidation.d.ts.map +1 -0
  104. package/dist/src/hooks/useNestedSheet.d.ts.map +1 -1
  105. package/dist/src/hooks/useTrailingTrue.d.ts +7 -0
  106. package/dist/src/hooks/useTrailingTrue.d.ts.map +1 -0
  107. package/dist/src/icons/KycStatusIcon.d.ts +10 -0
  108. package/dist/src/icons/KycStatusIcon.d.ts.map +1 -0
  109. package/dist/src/screens/DepositAmountScreen.d.ts +3 -1
  110. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  111. package/dist/src/screens/FeeDetailsScreen.d.ts +3 -4
  112. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  113. package/dist/src/screens/depositMetrics.d.ts +6 -0
  114. package/dist/src/screens/depositMetrics.d.ts.map +1 -1
  115. package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
  116. package/dist/src/theme/FunkitThemeProvider.d.ts.map +1 -1
  117. package/dist/src/theme/buttonRadius.d.ts +10 -0
  118. package/dist/src/theme/buttonRadius.d.ts.map +1 -0
  119. package/dist/src/theme/cornerCurve.d.ts +11 -0
  120. package/dist/src/theme/cornerCurve.d.ts.map +1 -0
  121. package/dist/src/theme/textStyle.d.ts +16 -0
  122. package/dist/src/theme/textStyle.d.ts.map +1 -0
  123. package/dist/src/theme/useFunkitTheme.d.ts.map +1 -1
  124. package/dist/src/transfer/hooks/useDepositRecipient.d.ts +29 -0
  125. package/dist/src/transfer/hooks/useDepositRecipient.d.ts.map +1 -0
  126. package/dist/src/transfer/hooks/useSupportedTokens.d.ts.map +1 -1
  127. package/dist/src/transfer/hooks/useTokenTransfer.d.ts +4 -0
  128. package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
  129. package/dist/src/transfer/hooks/useTransferInit.d.ts +8 -1
  130. package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
  131. package/dist/src/utils/colorMotion.d.ts +14 -0
  132. package/dist/src/utils/colorMotion.d.ts.map +1 -0
  133. package/dist/src/utils/formatAmount.d.ts +10 -1
  134. package/dist/src/utils/formatAmount.d.ts.map +1 -1
  135. package/dist/src/utils/motion.d.ts +34 -0
  136. package/dist/src/utils/motion.d.ts.map +1 -1
  137. package/dist/src/utils/v2/amountRowGeometry.d.ts +6 -0
  138. package/dist/src/utils/v2/amountRowGeometry.d.ts.map +1 -0
  139. package/dist/src/withdrawal/validation.d.ts.map +1 -1
  140. package/package.json +6 -6
  141. package/dist/chunk-X4RK3XTG.js.map +0 -7
  142. package/dist/src/fiat/FiatCountryDock.d.ts +0 -17
  143. package/dist/src/fiat/FiatCountryDock.d.ts.map +0 -1
  144. package/dist/src/fiat/useCountryDock.d.ts +0 -21
  145. package/dist/src/fiat/useCountryDock.d.ts.map +0 -1
  146. /package/dist/{chunk-KPP7KXYB.js.map → chunk-MKOPF7Y5.js.map} +0 -0
@@ -0,0 +1,25 @@
1
+ import { type PhoneCountry } from './phoneCountries';
2
+ /** A country and the name this locale gives it — what a row draws. */
3
+ export interface NamedCountry {
4
+ country: PhoneCountry;
5
+ name: string;
6
+ }
7
+ /** One initial's worth of the list, under the heading that names it. */
8
+ export interface CountrySection {
9
+ /** The heading, and the label the index rail scrubs to. */
10
+ key: string;
11
+ data: NamedCountry[];
12
+ }
13
+ /** Heads everything no letter does — digits, punctuation — and reads last. */
14
+ export declare const OTHER_SECTION_KEY = "#";
15
+ /**
16
+ * The countries as the design groups them (2184:14277): named in the reading
17
+ * locale, ordered by that locale's collation, and cut into sections at the
18
+ * initial.
19
+ *
20
+ * Grouped on the *localised* name rather than the table's English, so a
21
+ * Japanese reader's 日本 is not filed under J, and sorted by a collator rather
22
+ * than by code unit, so Åland lands beside Albania instead of past Zimbabwe.
23
+ */
24
+ export declare function countrySections(countries: readonly PhoneCountry[], locale: string): CountrySection[];
25
+ //# sourceMappingURL=countrySections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countrySections.d.ts","sourceRoot":"","sources":["../../../src/fiat/countrySections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,kBAAkB,CAAA;AAEjE,sEAAsE;AACtE,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,YAAY,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wEAAwE;AACxE,MAAM,WAAW,cAAc;IAC7B,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,YAAY,EAAE,CAAA;CACrB;AAED,8EAA8E;AAC9E,eAAO,MAAM,iBAAiB,MAAM,CAAA;AAEpC;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,SAAS,YAAY,EAAE,EAClC,MAAM,EAAE,MAAM,GACb,cAAc,EAAE,CA4BlB"}
@@ -20,6 +20,7 @@ export interface KycSectionPage {
20
20
  * identity: only the frames that collect who someone is qualify.
21
21
  */
22
22
  export declare function isIdentityField(field: FormField): boolean;
23
+ export declare function isInlineChoiceSection(section: KycSection): boolean;
23
24
  export declare function pickedDateField(page: KycSectionPage): FormField | undefined;
24
25
  /**
25
26
  * Whether the field is typed into, and so takes a turn in the return-key
@@ -1 +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,GAClB,MAAM,GACN,KAAK,GACL,SAAS,GACT,SAAS,GACT,KAAK,GACL,YAAY,GACZ,SAAS,GACT,SAAS,CAAA;AAEb,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;AA+ED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAGzD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,SAAS,CAI3E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAE1D;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,CAuC3E"}
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,UAA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,EAAE,MAAM,CAAC,CAAA;AAElD,+EAA+E;AAC/E,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,aAAa,CAO7D;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,SAAS,EAAE,EAC5B,MAAM,EAAE,UAAU,GACjB,SAAS,EAAE,CAIb;AAED,uEAAuE;AACvE,eAAO,MAAM,iBAAiB,KAAK,CAAA;AAInC;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,IAAiB,GACvB,eAAe,GAAG,SAAS,CAuB7B;AAWD,gEAAgE;AAChE,wBAAgB,eAAe,CAC7B,IAAI,EAAE,cAAc,EACpB,MAAM,EAAE,UAAU,GACjB,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAY/B"}
@@ -18,6 +18,26 @@ export declare const KYC_FORM_METRICS: {
18
18
  /** Card bottom (364) to the notice (411). */
19
19
  readonly noticeTop: 47;
20
20
  readonly noticeTracking: -0.14;
21
+ readonly choiceListRadius: 26;
22
+ readonly choiceRowHeight: 52;
23
+ readonly choiceRowPaddingHorizontal: 20;
24
+ /** Makes 52 on one line and the design's 64 on two — see `FiatChoiceList`. */
25
+ readonly choiceRowPaddingVertical: 15;
26
+ readonly choiceLabelFontSize: 15;
27
+ readonly choiceLabelLineHeight: 16.8;
28
+ readonly choiceCheckSize: 21;
29
+ /** The title's own line, which these pages carry instead of two. */
30
+ readonly questionnaireTitleFontSize: 24;
31
+ readonly questionnaireTitleLineHeight: 26.88;
32
+ readonly questionnaireTitleTracking: -0.48;
33
+ /** Below the back disc (108) to the title (162), as every `headingTop` is. */
34
+ readonly questionnaireHeadingTop: 54;
35
+ /** Title to card (18), less the column's own gap. */
36
+ readonly questionnaireHeadingBottom: 10;
37
+ readonly dateTitleWidth: 203;
38
+ readonly dateWheelHeight: 216;
39
+ /** Below the title, before the wheel. */
40
+ readonly dateHeadingBottom: 19;
21
41
  /** Between two fields sharing a row (first name + M.I., day/month/year). */
22
42
  readonly fieldGap: 9;
23
43
  /** The middle-initial field is fixed while its neighbour grows. */
@@ -48,14 +68,6 @@ export declare const KYC_FORM_METRICS: {
48
68
  readonly datePickerInsetY: 12;
49
69
  /** Tighter than over a keyboard: 1844:17471 puts the advance 24 above it. */
50
70
  readonly datePickerGap: 24;
51
- /**
52
- * The country list takes the same slot the date picker does — the room the
53
- * keyboard gives up. It draws no keyboard of its own until the filter is
54
- * touched, and then it rides above one.
55
- */
56
- readonly countryDockHeight: 371;
57
- /** Between the filter and the list under it. */
58
- readonly countryDockGap: 12;
59
71
  /** Disc bottom (108) to the headline's line box (181). */
60
72
  readonly introHeadingTop: 73;
61
73
  /** 38/38 with the box 286 wide, which is what wraps it onto two lines. */
@@ -83,6 +95,9 @@ export declare const KYC_FORM_METRICS: {
83
95
  readonly consentGap: 16;
84
96
  /** They are inset past the action, as the heading is past the fields. */
85
97
  readonly consentInset: 16;
98
+ readonly otpHeadingFontSize: 24;
99
+ readonly otpHeadingLineHeight: 27;
100
+ readonly otpHeadingTracking: -0.24;
86
101
  /** A code box is taller than a form field, and its digit larger. */
87
102
  readonly codeBoxHeight: 64;
88
103
  readonly codeBoxGap: 8;
@@ -1 +1 @@
1
- {"version":3,"file":"kycFormTheme.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycFormTheme.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAC3B,oDAAoD;;;;IAIpD,0EAA0E;;IAE1E,kEAAkE;;IAElE,uCAAuC;;;;IAQvC,6CAA6C;;;IAG7C,4EAA4E;;IAE5E,mEAAmE;;;;IAInE,mDAAmD;;IAEnD,iEAAiE;;IAEjE,2BAA2B;;IAE3B,sDAAsD;;IAEtD,mDAAmD;;IAEnD,6EAA6E;;;IAG7E,kEAAkE;;IAElE;;;OAGG;;;;IAIH,6EAA6E;;IAE7E;;;;OAIG;;IAEH,gDAAgD;;IAOhD,0DAA0D;;IAE1D,0EAA0E;;;;IAI1E,oDAAoD;;IAEpD,2DAA2D;;;IAG3D;;;OAGG;;IAEH,+DAA+D;;;IAG/D,sEAAsE;;IAEtE,oEAAoE;;IAEpE,yDAAyD;;IAEzD,yEAAyE;;IAEzE,oEAAoE;;;;CAI5D,CAAA"}
1
+ {"version":3,"file":"kycFormTheme.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycFormTheme.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAC3B,oDAAoD;;;;IAIpD,0EAA0E;;IAE1E,kEAAkE;;IAElE,uCAAuC;;;;IAQvC,6CAA6C;;;;;;IAW7C,8EAA8E;;;;;IAK9E,oEAAoE;;;;IAIpE,8EAA8E;;IAE9E,qDAAqD;;;;IASrD,yCAAyC;;IAEzC,4EAA4E;;IAE5E,mEAAmE;;;;IAInE,mDAAmD;;IAEnD,iEAAiE;;IAEjE,2BAA2B;;IAE3B,sDAAsD;;IAEtD,mDAAmD;;IAEnD,6EAA6E;;;IAG7E,kEAAkE;;IAElE;;;OAGG;;;;IAIH,6EAA6E;;IAO7E,0DAA0D;;IAE1D,0EAA0E;;;;IAI1E,oDAAoD;;IAEpD,2DAA2D;;;IAG3D;;;OAGG;;IAEH,+DAA+D;;;IAG/D,sEAAsE;;IAEtE,oEAAoE;;IAEpE,yDAAyD;;IAEzD,yEAAyE;;;;;IASzE,oEAAoE;;;;CAI5D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"nativeDatePicker.d.ts","sourceRoot":"","sources":["../../../src/fiat/nativeDatePicker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAM1C,4EAA4E;AAC5E,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,IAAI,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAA;IAC1C,WAAW,EAAE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AEnE;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAAG,IAAI,GAAG,SAAS,CAAA;AAQvE;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,IAAI,qBAAqB,CA6B3D;AASD,6EAA6E;AAC7E,eAAO,MAAM,mBAAmB,QAAgD,CAAA;AAEhF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,SAAwB,CAAA;AAE1D,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAgB7E"}
@@ -49,6 +49,13 @@ export declare function countryName(country: PhoneCountry, locale: string): stri
49
49
  * `+61` alone is not an incomplete number, it is no number.
50
50
  */
51
51
  export declare function toE164(country: PhoneCountry, national: string): string;
52
- /** What the box shows: the wire value less the code the chip already draws. */
53
- export declare function nationalPart(value: string, country: PhoneCountry): string;
52
+ /** The code a number opens with, read off digits carrying no `+`. */
53
+ export declare function leadingDialCode(digits: string): string | undefined;
54
+ /** The chip keeps a code it already carries; else the code's own country. */
55
+ export declare function countryOnDialCode(code: string, preferred: PhoneCountry): PhoneCountry;
56
+ /**
57
+ * What the box shows: the number less any code the table knows, not only the
58
+ * chip's — autofill hands the contact over with its own.
59
+ */
60
+ export declare function nationalPart(value: string): string;
54
61
  //# sourceMappingURL=phoneCountries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"phoneCountries.d.ts","sourceRoot":"","sources":["../../../src/fiat/phoneCountries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,YAAY;IAC3B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;IACd,wCAAwC;IACxC,QAAQ,EAAE,MAAM,CAAA;IAChB,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AA6PD,0EAA0E;AAC1E,eAAO,MAAM,eAAe,EAAE,SAAS,YAAY,EAOlD,CA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AAID;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEzE;AAqBD;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGtE;AAuBD,qEAAqE;AACrE,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAElE;AAuBD,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,YAAY,GACtB,YAAY,CASd;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAOlD"}
@@ -2,9 +2,16 @@ import { type PhoneCountry } from './phoneCountries';
2
2
  export declare function formatPhoneDraft(country: PhoneCountry, value: string): string;
3
3
  /** Removing a formatting character must still let Backspace remove a digit. */
4
4
  export declare function editPhoneDraft(previous: string, next: string): string;
5
- /** A pasted international number moves its prefix into the country selector. */
6
- export declare function pastedPhone(value: string): {
5
+ /** A number split where its calling code ends. */
6
+ export interface DialledPhone {
7
7
  country: PhoneCountry;
8
8
  national: string;
9
- } | undefined;
9
+ }
10
+ /** A pasted international number moves its prefix into the country selector. */
11
+ export declare function pastedPhone(value: string): DialledPhone | undefined;
12
+ /**
13
+ * A number arriving whole, with the code it carries moved to the chip:
14
+ * `pastedPhone` moves one only out of a number libphonenumber calls valid.
15
+ */
16
+ export declare function insertedPhone(previous: string, next: string, selected: PhoneCountry): DialledPhone | undefined;
10
17
  //# sourceMappingURL=phoneDraft.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"phoneDraft.d.ts","sourceRoot":"","sources":["../../../src/fiat/phoneDraft.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAA;AAEzB,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAY7E;AAED,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAiBrE;AAWD,gFAAgF;AAChF,wBAAgB,WAAW,CACzB,KAAK,EAAE,MAAM,GACZ;IAAE,OAAO,EAAE,YAAY,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAOzD"}
1
+ {"version":3,"file":"phoneDraft.d.ts","sourceRoot":"","sources":["../../../src/fiat/phoneDraft.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,kBAAkB,CAAA;AAEzB,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAc7E;AAED,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAiBrE;AAWD,kDAAkD;AAClD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,YAAY,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,gFAAgF;AAChF,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAanE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,YAAY,GACrB,YAAY,GAAG,SAAS,CAW1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"CoinbaseCheckoutSurface.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/CoinbaseCheckoutSurface.tsx"],"names":[],"mappings":"AAYA,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAA;IACnB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,yEAAyE;IACzE,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAClD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,WAAW,EACX,OAAO,EACP,MAAM,EACN,QAAQ,GACT,EAAE,4BAA4B,+BAqG9B"}
1
+ {"version":3,"file":"CoinbaseCheckoutSurface.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/CoinbaseCheckoutSurface.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAA;IACnB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,yEAAyE;IACzE,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAClD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,WAAW,EACX,OAAO,EACP,MAAM,EACN,QAAQ,GACT,EAAE,4BAA4B,+BAuG9B"}
@@ -0,0 +1,23 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { SurfaceContext } from './adapter';
3
+ /**
4
+ * The slot a provider-drawn control (an Apple Pay button in a WebView) is
5
+ * clipped into, shaped like the button it stands in for: the theme's button
6
+ * height and radius, so a brand that squares its buttons off squares this one
7
+ * off with them.
8
+ *
9
+ * `fill` paints the corners the hosted control rounds off — it must match that
10
+ * control's own background, since the provider owns everything inside.
11
+ *
12
+ * Drawn at the large button's size, which an adapter cannot ask its host for:
13
+ * inline, `SurfaceSlot` must be given the same one (`SURFACE_MATCHED_SIZE`) or
14
+ * its clip and this frame's disagree.
15
+ */
16
+ export declare function HostedControlFrame({ fill, edgeColor, placement, children, }: {
17
+ fill: string;
18
+ /** Hairline ring for a control whose fill matches the surface behind it. */
19
+ edgeColor?: string;
20
+ placement: SurfaceContext['placement'];
21
+ children: ReactNode;
22
+ }): import("react").JSX.Element;
23
+ //# sourceMappingURL=HostedControlFrame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HostedControlFrame.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/HostedControlFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAM/C;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,SAAS,EACT,SAAS,EACT,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC,CAAA;IACtC,QAAQ,EAAE,SAAS,CAAA;CACpB,+BA+BA"}
@@ -1 +1 @@
1
- {"version":3,"file":"coinbaseApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/coinbaseApplePay.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AA4D/D;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,cAO9B,CAAA"}
1
+ {"version":3,"file":"coinbaseApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/coinbaseApplePay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AA0D/D;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,cAO9B,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { TFunction } from 'i18next';
2
+ /**
3
+ * What the buyer is told when Coinbase's page refuses the payment.
4
+ *
5
+ * Coinbase-only: these codes come from their headless onramp and mean nothing
6
+ * to another provider. Their `errorMessage` is not used — it is written against
7
+ * their page, and their docs word several codes as notes to the integrator.
8
+ *
9
+ * `undefined` for a code with no copy yet, which the screen answers with its
10
+ * own generic line. One literal key per branch, as `t()` requires
11
+ * (`.ast-grep/rules/i18n-t-string-literal.yml`).
12
+ */
13
+ export declare function coinbaseFailureCopy(code: string, t: TFunction): string | undefined;
14
+ //# sourceMappingURL=coinbaseFailureCopy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coinbaseFailureCopy.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/coinbaseFailureCopy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAiEpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"moonpay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpay.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAwE/D,eAAO,MAAM,OAAO,EAAE,cAiCrB,CAAA"}
1
+ {"version":3,"file":"moonpay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpay.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAwE/D,eAAO,MAAM,OAAO,EAAE,cAiCrB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"transakApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/transakApplePay.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AA6C/D,mEAAmE;AACnE,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAA"}
1
+ {"version":3,"file":"transakApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/transakApplePay.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AA4C/D,mEAAmE;AACnE,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAA"}
@@ -17,11 +17,14 @@ export declare function recoveryCta(flow: FiatFlow, t: TFunction): {
17
17
  /** The refreshed price a post-KYC review carries. */
18
18
  export declare function reviewDetail(flow: FiatFlow): string | undefined;
19
19
  /**
20
- * The quote's fee breakdown, as the disclosure drawer's rows. The fee is inside
21
- * the charge, not added to it: `fiat.amount` is what the card is billed and the
22
- * crypto is priced on what's left, so the amount row is the remainder and the
23
- * total is the charge itself. The provider's own labels render — the ids it
24
- * keys them by have no entry in this package's catalogue.
20
+ * The quote's fee breakdown, as the disclosure drawer's rows.
21
+ *
22
+ * - The fee is inside the charge, not added to it: `fiat.amount` is what the
23
+ * card is billed and the crypto is priced on what's left, so the amount row
24
+ * is the remainder and the total is the charge itself.
25
+ * - One fee row, off `totalFee` rather than the provider's own `feeBreakdown`
26
+ * labels: those name the rail ("Coinbase fee"), which the drawer must not,
27
+ * and only the total keeps the three rows adding up.
25
28
  */
26
29
  export declare function quoteFeeRows(quote: Quote | undefined, t: TFunction): FeeDetailsRow[];
27
30
  /** The rail disclosure, priced from the quote rather than host configuration. */
@@ -1 +1 @@
1
- {"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../src/fiat/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAIhE;;;;;;GAMG;AACH,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AAgB,kBAAkB,CAChC,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAGpB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAKrE"}
@@ -1 +1 @@
1
- {"version":3,"file":"useContactEligibility.d.ts","sourceRoot":"","sources":["../../../src/fiat/useContactEligibility.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,MAAM,CAAA;AAE3C,0EAA0E;AAC1E,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,WAWrE"}
1
+ {"version":3,"file":"useContactEligibility.d.ts","sourceRoot":"","sources":["../../../src/fiat/useContactEligibility.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,MAAM,CAAA;AAE3C,0EAA0E;AAC1E,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,WAarE"}
@@ -0,0 +1,21 @@
1
+ import { type NestedSheet } from '../hooks/useNestedSheet';
2
+ export interface CountrySheet {
3
+ /**
4
+ * The field the list answers. Held after it closes: the sheet dismisses on
5
+ * its own animation, and the rows have to stay drawn while it plays out.
6
+ */
7
+ fieldName?: string;
8
+ isOpen: boolean;
9
+ open: (fieldName: string) => void;
10
+ close: () => void;
11
+ /** The handle and backdrop the step feeds to its `BottomSheetModal`. */
12
+ sheet: NestedSheet<'countries'>;
13
+ }
14
+ /**
15
+ * The country list a phone field raises, as a sheet over the step.
16
+ *
17
+ * Opening it drops the keyboard: the sheet covers the field it was typed into,
18
+ * and a keyboard left standing behind it is one the user has to dismiss twice.
19
+ */
20
+ export declare function useCountrySheet(): CountrySheet;
21
+ //# sourceMappingURL=useCountrySheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCountrySheet.d.ts","sourceRoot":"","sources":["../../../src/fiat/useCountrySheet.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAE1E,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,wEAAwE;IACxE,KAAK,EAAE,WAAW,CAAC,WAAW,CAAC,CAAA;CAChC;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,IAAI,YAAY,CA8B9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"useFiatCheckoutPreparation.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatCheckoutPreparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAUlE,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,OAAO,GACR,EAAE;IACD,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,QAAQ,EAAE,QAAQ,CAAA;IAClB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,GAAG,OAAO,CA8BV"}
1
+ {"version":3,"file":"useFiatCheckoutPreparation.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatCheckoutPreparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAUlE,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,OAAO,GACR,EAAE;IACD,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;IAClC,QAAQ,EAAE,QAAQ,CAAA;IAClB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,GAAG,OAAO,CAqCV"}
@@ -0,0 +1,32 @@
1
+ import { type CheckoutTokenTransferConfig } from '@funkit/connect-core';
2
+ import type { DepositClientMetadata, FiatRailConfig } from '../flow/depositFlowConfig';
3
+ export interface UseFiatDirectDeliveryParams {
4
+ /** Destination chain/asset the deposit is headed for. */
5
+ checkoutConfig: CheckoutTokenTransferConfig | undefined;
6
+ rail: FiatRailConfig;
7
+ dynamicRoutingId: string | undefined;
8
+ checkoutId: string;
9
+ clientMetadata: DepositClientMetadata | undefined;
10
+ /** Host fallback for local/dev clients that mint no address of their own. */
11
+ depositAddressOverride?: string;
12
+ }
13
+ export interface UseFiatDirectDeliveryResult {
14
+ /** Where the order delivers the crypto; `undefined` until one resolves. */
15
+ depositAddress: string | undefined;
16
+ /** The rail buys the destination asset itself, so no address was minted. */
17
+ isDirect: boolean;
18
+ /** Why no generated address resolved; always `undefined` on the direct route. */
19
+ depositAddressError: Error | undefined;
20
+ /** Re-requests the generated address; a no-op on the direct route. */
21
+ retryDepositAddress: () => void;
22
+ }
23
+ /**
24
+ * Resolves where a V2 fiat order delivers.
25
+ *
26
+ * The generated deposit address exists to swap what the rail bought into what
27
+ * the user asked for. When the rail buys that asset outright it has nothing to
28
+ * do, so the order names the recipient instead — the crypto lands where it is
29
+ * wanted rather than at a per-checkout address the backend has still to sweep.
30
+ */
31
+ export declare function useFiatDirectDelivery({ checkoutConfig, rail, dynamicRoutingId, checkoutId, clientMetadata, depositAddressOverride, }: UseFiatDirectDeliveryParams): UseFiatDirectDeliveryResult;
32
+ //# sourceMappingURL=useFiatDirectDelivery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFiatDirectDelivery.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatDirectDelivery.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,2BAA2B,EAKjC,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAOlC,MAAM,WAAW,2BAA2B;IAC1C,yDAAyD;IACzD,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,IAAI,EAAE,cAAc,CAAA;IACpB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,6EAA6E;IAC7E,sBAAsB,CAAC,EAAE,MAAM,CAAA;CAChC;AAED,MAAM,WAAW,2BAA2B;IAC1C,2EAA2E;IAC3E,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,4EAA4E;IAC5E,QAAQ,EAAE,OAAO,CAAA;IACjB,iFAAiF;IACjF,mBAAmB,EAAE,KAAK,GAAG,SAAS,CAAA;IACtC,sEAAsE;IACtE,mBAAmB,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,cAAc,EACd,IAAI,EACJ,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,sBAAsB,GACvB,EAAE,2BAA2B,GAAG,2BAA2B,CA4D3D"}
@@ -0,0 +1,13 @@
1
+ import type { FiatFlow } from '@funkit/connect-core';
2
+ import type { FiatKycOutcomeScreenProps } from './FiatKycOutcomeScreen';
3
+ export type KycCompletion = FiatKycOutcomeScreenProps['outcome'];
4
+ /**
5
+ * The acknowledgement owed to a finished identity form, which the quote-time
6
+ * banner cannot give: that one reports a verdict returned with a price, so a
7
+ * form answered with a price says nothing.
8
+ *
9
+ * Derived in render, not an effect — the amount screen must not paint in the
10
+ * gap. Capture is excluded: a provider surface reporting back is not a form.
11
+ */
12
+ export declare function useKycCompletion(flow: FiatFlow): KycCompletion | undefined;
13
+ //# sourceMappingURL=useKycCompletion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useKycCompletion.d.ts","sourceRoot":"","sources":["../../../src/fiat/useKycCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAIpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAEvE,MAAM,MAAM,aAAa,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAA;AAIhE;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,aAAa,GAAG,SAAS,CAa1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"useOtpAutoSubmit.d.ts","sourceRoot":"","sources":["../../../src/fiat/useOtpAutoSubmit.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,QAkBA"}
1
+ {"version":3,"file":"useOtpAutoSubmit.d.ts","sourceRoot":"","sources":["../../../src/fiat/useOtpAutoSubmit.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,QAoBA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useOtpReceipt.d.ts","sourceRoot":"","sources":["../../../src/fiat/useOtpReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,KAAK,QAAQ,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAA;AACnD,UAAU,UAAU;IAClB,KAAK,EAAE,QAAQ,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AAED,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ;kBAiCrB,QAAQ,KAAG,QAAQ;;EAYzC"}
1
+ {"version":3,"file":"useOtpReceipt.d.ts","sourceRoot":"","sources":["../../../src/fiat/useOtpReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,KAAK,QAAQ,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAA;AACnD,UAAU,UAAU;IAClB,KAAK,EAAE,QAAQ,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AAED,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ;kBAmCrB,QAAQ,KAAG,QAAQ;;EAYzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAU5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,GACX,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,SAAS,EAAE,oBAAoB,CAAA;IAC/B,iCAAiC;IACjC,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+BAqHA"}
1
+ {"version":3,"file":"DepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAmountStep.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAU5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,GACX,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,SAAS,EAAE,oBAAoB,CAAA;IAC/B,iCAAiC;IACjC,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+BA2HA"}
@@ -0,0 +1,23 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { NestedSheet } from '../hooks/useNestedSheet';
3
+ export interface DrawerProps<TScreen extends string> {
4
+ sheet: NestedSheet<TScreen>;
5
+ /**
6
+ * Span the window rather than sizing to the content. A drawer whose content
7
+ * scrolls has to take a fixed detent, because a gorhom scrollable reports
8
+ * only its own height (see `sheetSizing`).
9
+ */
10
+ fullHeight?: boolean;
11
+ children: ReactNode;
12
+ }
13
+ /**
14
+ * Every drawer that opens over the deposit sheet: the fee breakdown, the
15
+ * country list and the KYC choosers all present through this one component, so
16
+ * they are dismissed the same way and drawn on the same material.
17
+ *
18
+ * The drawer owns its grabber, drawn over the content rather than above it, so
19
+ * it stays put while a list scrolls under it. Nothing here draws a close
20
+ * button — the gesture, the grabber and the backdrop are the way out.
21
+ */
22
+ export declare function Drawer<TScreen extends string>({ sheet, fullHeight, children, }: DrawerProps<TScreen>): import("react").JSX.Element;
23
+ //# sourceMappingURL=Drawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/flow/Drawer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EAGf,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAe1D,MAAM,WAAW,WAAW,CAAC,OAAO,SAAS,MAAM;IACjD,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC3B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,OAAO,SAAS,MAAM,EAAE,EAC7C,KAAK,EACL,UAAkB,EAClB,QAAQ,GACT,EAAE,WAAW,CAAC,OAAO,CAAC,+BAqFtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"FeeDetailsSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FeeDetailsSheet.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAE1E,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAA;AAapC,iEAAiE;AACjE,wBAAgB,kBAAkB,IAAI;IACpC,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B,CAWA;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,OAAO,GACR,EAAE;IACD,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,+BA2DA"}
1
+ {"version":3,"file":"FeeDetailsSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FeeDetailsSheet.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAE1E,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAA;AAOpC,iEAAiE;AACjE,wBAAgB,kBAAkB,IAAI;IACpC,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B,CAWA;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,OAAO,GACR,EAAE;IACD,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,+BAiBA"}
@@ -1 +1 @@
1
- {"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AA4FA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAmD5B,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BAqBA"}
1
+ {"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAoD5B,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BA2BA"}
@@ -63,23 +63,9 @@ export declare function FlowSheetBackground(props: BottomSheetBackgroundProps):
63
63
  */
64
64
  export declare function GlassSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
65
65
  /**
66
- * {@link FlowSheetBackground} for a drawer that opens over another sheet: the
67
- * opaque material with the design's soft lift. Dark themes use the fixed
68
- * material in the design; light/custom themes keep their own modal color so
69
- * customer text tokens remain legible.
66
+ * {@link FlowSheetBackground} for a screen stacked over another sheet — the
67
+ * country list (2531:8471). Glass rather than a panel, so the step it was
68
+ * raised from still reads faintly underneath it.
70
69
  */
71
- export declare function DrawerSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
72
- /**
73
- * Black at the sheet's top edge, clear a tenth of the way down — the shading the
74
- * design lays under the header so the title and balance hold up against
75
- * whatever host content is showing through the glass. Black, not the modal
76
- * color: it is a shadow over the surface, not more of it.
77
- */
78
- /**
79
- * The dim a drawer is laid over (Figma node 2:1315): clear at the screen's top,
80
- * half-black through the middle band, clear again before the bottom — so the
81
- * screen it was opened from stays readable at its head while the drawer's own
82
- * ground goes dark.
83
- */
84
- export declare function DrawerOverlay(): import("react").JSX.Element;
70
+ export declare function StackedSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
85
71
  //# sourceMappingURL=FlowSheet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlowSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAGd,OAAO,EAEL,KAAK,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;AAa7B;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,SAAS,CAAA;AAElD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kDAAkD;IAClD,OAAO,EAAE,SAAS,CAAA;IAClB,yDAAyD;IACzD,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,C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AU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAsBD,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,EAC5B,oBAA2B,EAC3B,aAAqB,EACrB,UAAkB,EAClB,KAAa,GACd,EAAE,cAAc,+BA2KhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,0BAA0B,+BAEpE;AAaD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,0BAA0B,+BAerE;AAeD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,0BAA0B,+BAQvE"}
@@ -74,12 +74,19 @@ export interface DepositAmountEntryConfig {
74
74
  * the figures alone.
75
75
  */
76
76
  methodName?: string;
77
+ /** Header title; defaults to the SDK's own translated "Deposit". */
78
+ title?: string;
77
79
  /** Submit CTA label naming the rail (e.g. "Deposit with Apple Pay"). */
78
80
  submitLabel: string;
79
81
  /** Quick-amount presets in whole dollars; defaults to 10/20/50/100. */
80
82
  quickAmountsUsd?: string[];
81
83
  /** Hard input cap in dollars; omit when the source defines no limit. */
82
84
  limitUsd?: string;
85
+ /**
86
+ * Smallest amount the source will take, in dollars. Below it the CTA names
87
+ * the floor instead of submitting; omit when the source defines none.
88
+ */
89
+ minLimitUsd?: string;
83
90
  /** Brand glyph beside the title; the title stands alone without one. */
84
91
  brandIcon?: ReactNode;
85
92
  /** Badge on the fee line's leading side (e.g. an Apple Pay mark). */
@@ -113,8 +120,14 @@ export interface DepositInitialAmount {
113
120
  export interface FiatRailConfig {
114
121
  /** The rail quoted and fired, e.g. `apple_pay`. */
115
122
  paymentMethod: string;
116
- /** Token the fiat buys, as its ticker (e.g. `USDC`). */
123
+ /** Token the fiat buys, as its ticker (e.g. `USDC`) — quotes are priced in it. */
117
124
  cryptoCurrencyCode: string;
125
+ /**
126
+ * That same token's address, or SPL mint. What decides where an order
127
+ * delivers: matching `checkoutConfig.targetAsset` leaves nothing to swap, so
128
+ * the crypto goes to the recipient and no deposit address is minted.
129
+ */
130
+ cryptoCurrencyAddress: string;
118
131
  /** Destination chain id used for the quote. */
119
132
  chainId: string;
120
133
  }
@@ -1 +1 @@
1
- {"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,6BAA6B,CAAA;AAEpC,YAAY,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAEvE;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,kCAAkC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,mBAAmB,CAAC,EAAE,GAAG,MAAM,EAAE,CAAA;CAClC;AAED;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,GAC7D,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAA;AAE5C;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,2BAA2B,EAAE,GAAG,SAAS,EACrD,gBAAgB,EAAE,MAAM,GAAG,SAAS,GACnC,2BAA2B,GAAG,SAAS,CAczC;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,0DAA0D;IAC1D,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED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AAM,IAAI,CAAA;IAC9B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7C"}
@@ -0,0 +1,4 @@
1
+ import { type WithSpringConfig } from 'react-native-reanimated';
2
+ /** A spring fitted to the release/settle motion in the Stocks reference. */
3
+ export declare function useV2DrawerMotion(): WithSpringConfig;
4
+ //# sourceMappingURL=useV2DrawerMotion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useV2DrawerMotion.d.ts","sourceRoot":"","sources":["../../../src/flow/useV2DrawerMotion.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAE7E,4EAA4E;AAC5E,wBAAgB,iBAAiB,IAAI,gBAAgB,CAcpD"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Whether a wait has run long enough to be worth drawing a ring for. A wait
3
+ * that resolves inside `delayMs` never draws one, so a re-quote that lands in
4
+ * a few frames doesn't flash a spinning animation.
5
+ *
6
+ * Reduced motion draws it straight away: there is no animation to suppress
7
+ * then, only a busy cue to hold back.
8
+ */
9
+ export declare function useDelayedSpinner(delayMs: number): boolean;
10
+ //# sourceMappingURL=useDelayedSpinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDelayedSpinner.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDelayedSpinner.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,WAWhD"}
@@ -1,12 +1,27 @@
1
1
  import { type NumpadKey } from '../utils/numpadInput';
2
+ /**
3
+ * Which bound a refused value fell outside of, when it was a bound at all.
4
+ *
5
+ * Only the cap refuses. A floor is a state the amount is allowed to sit in —
6
+ * the screen answers that one, and the keypad stays out of its way.
7
+ */
8
+ export type AmountRefusal = 'max' | undefined;
9
+ /**
10
+ * The value sits under the source's floor. Empty and zero are the untouched
11
+ * state rather than a violation — there is nothing yet to be too small.
12
+ */
13
+ export declare function isBelowMinimum(value: string, minLimitUsd?: string): boolean;
2
14
  /**
3
15
  * An amount screen's input policy, separate from its layout. Every way a value
4
- * enters — a numpad key or a quick-amount chip — commits through `commitInput`,
5
- * so the source's hard cap is enforced in exactly one place. Input the policy
16
+ * enters — a numpad key or a quick-amount chip — commits through this hook, so
17
+ * the source's limits are enforced in exactly one place. Input the policy
6
18
  * refuses — deleting from zero, typing past `limitUsd`, or any edit at all
7
19
  * while `disabled` — answers with a side-to-side shake, a brief warning tint
8
20
  * and a haptic instead of changing the value; a zero typed onto zero is a
9
21
  * no-op that swells to acknowledge it.
22
+ *
23
+ * A floor is deliberately not enforced here: an amount below it is entered
24
+ * normally and answered by the screen, not refused by the keypad.
10
25
  */
11
26
  export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd, disabled, }: {
12
27
  input: string;
@@ -17,6 +32,8 @@ export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd,
17
32
  disabled?: boolean;
18
33
  }): {
19
34
  hasWarning: boolean;
35
+ refusal: AmountRefusal;
36
+ isLocked: boolean;
20
37
  feedbackStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
21
38
  transform: ({
22
39
  translateX: number;
@@ -1 +1 @@
1
- {"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAmBrE;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;;;;;;;;;;;wBAgDU,MAAM;2BAoBP,SAAS;EA2BlB"}
1
+ {"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAmBrE;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,SAAS,CAAA;AAE7C;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAM3E;AAOD;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;;;;;;;;;;;;;wBAmEU,MAAM;2BAuBP,SAAS;EAuClB"}