@funkit/connect 2.0.7 → 3.0.0-next.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 (172) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/__private__/index.d.ts +2 -0
  3. package/dist/{chunk-I24HX4XM.js → chunk-O57HO5YO.js} +9 -5
  4. package/dist/{chunk-BZPWFPPL.js → chunk-T74JTC6K.js} +25 -14
  5. package/dist/{chunk-3AR2EI7X.js → chunk-X5AJP4CF.js} +25 -14
  6. package/dist/components/Box/Box.d.ts +49 -45
  7. package/dist/components/ChainModal/Chain.d.ts +2 -1
  8. package/dist/components/CloseButton/CloseButton.d.ts +1 -2
  9. package/dist/components/ConnectButton/ConnectButtonRenderer.d.ts +1 -0
  10. package/dist/components/DevTest/DevEmbed.d.ts +2 -0
  11. package/dist/components/Dialog/Dialog.css.d.ts +2 -1
  12. package/dist/components/Dialog/DialogContent.css.d.ts +3 -3
  13. package/dist/components/Dialog/DialogContent.d.ts +3 -6
  14. package/dist/components/FunAlert/FunAlert.d.ts +5 -0
  15. package/dist/components/FunAsset/FunAssetBadge.d.ts +9 -0
  16. package/dist/components/FunAsset/FunAssetItem.d.ts +11 -0
  17. package/dist/components/FunBadge/FunBadge.d.ts +10 -3
  18. package/dist/components/FunBottomBar/FunBottomBar.css.d.ts +2 -0
  19. package/dist/components/FunBottomBar/FunBottomBar.d.ts +10 -0
  20. package/dist/components/FunButton/FunButton.d.ts +6 -7
  21. package/dist/components/FunButton/FunIconButton.d.ts +4 -2
  22. package/dist/components/FunCallToAction/FunCallToAction.d.ts +10 -0
  23. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.css.d.ts +4 -0
  24. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.d.ts +8 -0
  25. package/dist/components/FunCheckoutHistoryModal/FunCheckoutStatus.d.ts +7 -0
  26. package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +3 -1
  27. package/dist/components/FunCheckoutModal/FunCheckoutConnectExchangeStep.d.ts +11 -0
  28. package/dist/components/FunCheckoutModal/FunCheckoutInputAmountStep.d.ts +5 -2
  29. package/dist/components/FunCheckoutModal/FunCheckoutModal.d.ts +1 -0
  30. package/dist/components/FunConnectOptions/ConnectDetails.d.ts +4 -3
  31. package/dist/components/FunConnectOptions/FunConnectOptions.d.ts +6 -5
  32. package/dist/components/FunConnectOptions/FunConnectResultStep.d.ts +14 -0
  33. package/dist/components/FunConnectOptions/FunFarcasterConnectingStep.d.ts +2 -3
  34. package/dist/components/FunConnectOptions/FunSignInStep.d.ts +2 -1
  35. package/dist/components/FunConnectOptions/FunWeb2ConnectingStep.d.ts +1 -3
  36. package/dist/components/FunConnectOptions/FunWeb3ConnectingStep.d.ts +5 -4
  37. package/dist/components/FunContainer/FunContainer.d.ts +3 -5
  38. package/dist/components/FunDivider/FunDivider.css.d.ts +1 -0
  39. package/dist/components/FunDivider/FunDivider.d.ts +6 -3
  40. package/dist/components/FunGuarantees/FunGuarantees.d.ts +7 -0
  41. package/dist/components/FunInput/FunInput.css.d.ts +1 -0
  42. package/dist/components/FunInput/FunInput.d.ts +12 -11
  43. package/dist/components/FunInput/FunTextAreaInput.d.ts +3 -4
  44. package/dist/components/FunInput/FunTwoFaInput.d.ts +4 -2
  45. package/dist/components/FunMessage/FunMessage.d.ts +9 -0
  46. package/dist/components/FunModalTitleSection/FunModalTitleSection.d.ts +7 -5
  47. package/dist/components/FunModalTitleSection/FunModalTitleSectionCountdown.d.ts +7 -0
  48. package/dist/components/FunNoResults/FunNoResults.d.ts +2 -0
  49. package/dist/components/FunNotification/FunNotification.d.ts +5 -1
  50. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -0
  51. package/dist/components/FunOptionBox/FunOptionBox.d.ts +13 -0
  52. package/dist/components/FunPaymentMethodItem/FunPaymentMethodItem.d.ts +11 -0
  53. package/dist/components/FunPayments/FunPaymentMeshType.d.ts +3 -3
  54. package/dist/components/FunPayments/FunPaymentMethods.d.ts +3 -4
  55. package/dist/components/FunPayments/FunPaymentSetup.d.ts +4 -4
  56. package/dist/components/FunSelect/FunSelect.d.ts +3 -21
  57. package/dist/components/FunSelectBrokerage/FunBrokerageItem.css.d.ts +1 -0
  58. package/dist/components/FunSelectBrokerage/FunBrokerageItem.d.ts +9 -0
  59. package/dist/components/FunSelectBrokerage/FunSelectBrokerage.css.d.ts +1 -0
  60. package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +9 -0
  61. package/dist/components/FunSocials/FunSocials.d.ts +9 -0
  62. package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +5 -20
  63. package/dist/components/FunkitProvider/FunkitThemeProvider.d.ts +88 -12
  64. package/dist/components/FunkitProvider/FunkitWeb2Provider.d.ts +1 -0
  65. package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +1 -0
  66. package/dist/components/GradientLoader/GradientLoader.css.d.ts +1 -0
  67. package/dist/components/GradientLoader/GradientLoader.d.ts +2 -0
  68. package/dist/components/Icons/AlpacaIcon.d.ts +3 -1
  69. package/dist/components/Icons/ArrowIcon.d.ts +9 -0
  70. package/dist/components/Icons/BinanceIcon.d.ts +3 -1
  71. package/dist/components/Icons/CexloIcon.d.ts +3 -1
  72. package/dist/components/Icons/{Copied.d.ts → Checked.d.ts} +1 -1
  73. package/dist/components/Icons/{NoAssetsFoundIcon.d.ts → CloseIcon.d.ts} +1 -1
  74. package/dist/components/Icons/CopyDoubleIcon.d.ts +2 -0
  75. package/dist/components/Icons/CryptoIcon.d.ts +2 -0
  76. package/dist/components/Icons/EtoroIcon.d.ts +3 -1
  77. package/dist/components/Icons/FunLogoIcon.d.ts +2 -0
  78. package/dist/components/Icons/GeminiIcon.d.ts +3 -1
  79. package/dist/components/Icons/GreenRoundCheckmark.d.ts +4 -0
  80. package/dist/components/Icons/HandIcon.d.ts +2 -0
  81. package/dist/components/Icons/Icons.css.d.ts +0 -1
  82. package/dist/components/Icons/Info.d.ts +3 -2
  83. package/dist/components/Icons/LockIcon.d.ts +2 -0
  84. package/dist/components/Icons/LogoutIcon.d.ts +3 -1
  85. package/dist/components/Icons/MailIcon.d.ts +2 -0
  86. package/dist/components/Icons/MoonPayLogoIcon.d.ts +2 -0
  87. package/dist/components/Icons/OkcoinIcon.d.ts +3 -1
  88. package/dist/components/Icons/PhoneIcon.d.ts +2 -0
  89. package/dist/components/Icons/PublicIcon.d.ts +3 -1
  90. package/dist/components/Icons/ReceiptIcon.d.ts +3 -1
  91. package/dist/components/Icons/RedRoundErrorCross.d.ts +4 -0
  92. package/dist/components/Icons/RobinhoodIcon.d.ts +3 -1
  93. package/dist/components/Icons/SearchSkeletonIcon.d.ts +2 -0
  94. package/dist/components/Icons/SelectDropdownIcon.d.ts +2 -0
  95. package/dist/components/Icons/SettingsIcon.d.ts +3 -1
  96. package/dist/components/Icons/ShieldIcon.d.ts +2 -0
  97. package/dist/components/Icons/SocialsIcon.d.ts +2 -0
  98. package/dist/components/Icons/Spinner.d.ts +3 -1
  99. package/dist/components/Icons/StatusIcons.d.ts +7 -3
  100. package/dist/components/Icons/TwoFaIcon.d.ts +2 -0
  101. package/dist/components/Icons/WalletIcon.d.ts +1 -0
  102. package/dist/components/Icons/WeBullIcon.d.ts +3 -1
  103. package/dist/components/ModalSelection/ModalSelection.d.ts +2 -1
  104. package/dist/components/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.css.d.ts +1 -0
  105. package/dist/components/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +7 -0
  106. package/dist/components/ProfileDetails/FunProfileViews/Home/index.d.ts +6 -1
  107. package/dist/components/ProfileDetails/ProfileDetails.d.ts +1 -0
  108. package/dist/consts/funkit.d.ts +8 -0
  109. package/dist/css/sprinkles.css.d.ts +93 -51
  110. package/dist/hooks/useDynamicFont.d.ts +5 -0
  111. package/dist/hooks/useInterval.d.ts +1 -0
  112. package/dist/hooks/useMesh.d.ts +5 -4
  113. package/dist/hooks/useScrollDivider.d.ts +11 -0
  114. package/dist/index.css +2679 -1481
  115. package/dist/index.d.ts +1 -0
  116. package/dist/index.js +10333 -8882
  117. package/dist/themes/baseTheme.d.ts +1 -1
  118. package/dist/themes/baseTheme.js +1 -1
  119. package/dist/themes/darkTheme.d.ts +22 -3
  120. package/dist/themes/darkTheme.js +2 -2
  121. package/dist/themes/lightTheme.d.ts +22 -3
  122. package/dist/themes/lightTheme.js +2 -2
  123. package/dist/utils/assets.d.ts +25 -0
  124. package/dist/utils/checkout.d.ts +7 -2
  125. package/dist/utils/formatTimestamp.d.ts +2 -1
  126. package/dist/wallets/useWalletConnectors.d.ts +1 -0
  127. package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
  128. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +3 -3
  129. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +3 -3
  130. package/dist/wallets/walletConnectors/bloomWallet/bloomWallet.js +2 -2
  131. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  132. package/dist/wallets/walletConnectors/chunk-32KBKKGT.js +182 -0
  133. package/dist/wallets/walletConnectors/chunk-3CLNL7LR.js +73 -0
  134. package/dist/wallets/walletConnectors/chunk-7GGRZNT3.js +96 -0
  135. package/dist/wallets/walletConnectors/chunk-CMXZK5RR.js +94 -0
  136. package/dist/wallets/walletConnectors/chunk-F4EJ42XO.js +105 -0
  137. package/dist/wallets/walletConnectors/chunk-FL2VIO76.js +71 -0
  138. package/dist/wallets/walletConnectors/chunk-IIJOJ6AD.js +102 -0
  139. package/dist/wallets/walletConnectors/chunk-LJRV5JY7.js +95 -0
  140. package/dist/wallets/walletConnectors/chunk-MSRKKVDE.js +98 -0
  141. package/dist/wallets/walletConnectors/chunk-YUIRWCAS.js +101 -0
  142. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  143. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  144. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  145. package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +2 -2
  146. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  147. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +3 -3
  148. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +3 -3
  149. package/dist/wallets/walletConnectors/index.js +69 -69
  150. package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
  151. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +3 -3
  152. package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
  153. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +3 -3
  154. package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
  155. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +3 -3
  156. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  157. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  158. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  159. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +3 -3
  160. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +3 -3
  161. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +3 -3
  162. package/package.json +3 -3
  163. package/dist/components/FunButton/FunTermsAndConditionsTextButton.d.ts +0 -2
  164. package/dist/components/FunConnectOptions/FunConnectErrorStep.d.ts +0 -10
  165. package/dist/components/Icons/Back.d.ts +0 -2
  166. package/dist/components/Icons/Close.d.ts +0 -2
  167. package/dist/components/Icons/FunBackIcon.d.ts +0 -2
  168. package/dist/components/ModalSelection/ModalSelection.css.d.ts +0 -1
  169. package/dist/components/QRCode/QRCode.css.d.ts +0 -1
  170. package/dist/fun-error-AZCFCLIM.js +0 -6
  171. /package/dist/components/{FunDevTestModal → DevTest}/FunDevTestModal.d.ts +0 -0
  172. /package/dist/components/Icons/{Success.d.ts → SuccessIcon.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ export declare const brokerageItemStyle: string;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface BrokerateItemProps {
3
+ exchange: string;
4
+ exchangeIcon: React.ReactNode;
5
+ fullInfo: boolean;
6
+ hasActiveConnection: boolean;
7
+ }
8
+ export declare const FunBrokerageItem: ({ exchange, exchangeIcon, fullInfo, hasActiveConnection, }: BrokerateItemProps) => React.JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export declare const selectBrokerageStyle: string;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { FunSelectOption } from '../FunSelect/FunSelect';
3
+ interface FunSelectBrokerageProps {
4
+ handleSelect: (newValue: FunSelectOption['value']) => void;
5
+ options: FunSelectOption[];
6
+ selectedValue: FunSelectOption['value'];
7
+ }
8
+ export declare function FunSelectBrokerage({ handleSelect, options, selectedValue, }: FunSelectBrokerageProps): React.JSX.Element;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { SocialLoginOption } from '../../consts/funkit';
3
+ interface Props {
4
+ options: SocialLoginOption[];
5
+ onSelect: (provider: SocialLoginOption['provider']) => void;
6
+ flexDirection?: 'row' | 'column';
7
+ }
8
+ export declare const FunSocials: ({ options, onSelect, flexDirection }: Props) => React.JSX.Element;
9
+ export {};
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { FunkitSocialLoginMethod } from '../../consts/funkit';
2
+ import { FunkitPrioritizedLoginType, FunkitSocialLoginMethod } from '../../consts/funkit';
3
3
  import { PaymentMethod } from '../../consts/payment';
4
4
  import { BoxProps } from '../Box/Box';
5
5
  export interface FunkitTextCustomizationsConfig {
@@ -14,11 +14,10 @@ export interface FunkitTextCustomizationsConfig {
14
14
  otc: string;
15
15
  }
16
16
  export declare const DEFAULT_TEXT_CUSTOMIZATIONS: FunkitTextCustomizationsConfig;
17
- export declare const DEFAULT_PRIVY_APP_ID = "clnatprpv00sfmi0fv3qc185b";
18
17
  interface FunkitLoginOptionsConfig {
19
18
  web2: boolean;
20
19
  web3: boolean;
21
- prioritizeWeb2Logins?: boolean;
20
+ prioritizedLogin: FunkitPrioritizedLoginType;
22
21
  /** Enables social logins. Each type requires configuration in your app's privy dashboard. Please ensure to do so before enabling any. **/
23
22
  web2SocialLogins: {
24
23
  [FunkitSocialLoginMethod.GOOGLE]?: boolean;
@@ -27,12 +26,6 @@ interface FunkitLoginOptionsConfig {
27
26
  [FunkitSocialLoginMethod.FARCASTER]?: boolean;
28
27
  };
29
28
  }
30
- interface FunkitAccountOptionsConfig {
31
- /** Whether end users can deposit usdc/eth from the account modal **/
32
- allowDepositing?: boolean;
33
- /** Whether unknown tokens are shown in users' account balance. Default: false. **/
34
- showUnknownTokens?: boolean;
35
- }
36
29
  interface FunkitPaymentsConfig {
37
30
  /** If available, the specified payment method will be selected by default during checkout or deposits **/
38
31
  defaultPaymentMethod?: PaymentMethod | undefined;
@@ -46,7 +39,7 @@ interface FunkitPaymentsConfig {
46
39
  optionsSecondaryGap: BoxProps['gap'];
47
40
  /** Padding of each payment method option **/
48
41
  optionsPadding: BoxProps['paddingY'];
49
- /** Vertical padding of all primary buttons **/
42
+ /** Vertical padding of all primary & secondary buttons **/
50
43
  buttonPaddingY: BoxProps['paddingY'];
51
44
  };
52
45
  methodsConfig: {
@@ -82,26 +75,18 @@ export type FunkitConfig = {
82
75
  allowBackgroundScroll?: boolean;
83
76
  /** Text customizations across all widgets **/
84
77
  textCustomizations?: Partial<FunkitTextCustomizationsConfig>;
85
- /** Privy appId for social account management. It is not recommended to replace this. **/
86
- privyAppId?: string;
87
78
  /** Login modal configuration **/
88
- loginModalConfig: Partial<FunkitLoginOptionsConfig>;
89
- /** Account modal configuration **/
90
- accountModalConfig?: Partial<FunkitAccountOptionsConfig>;
79
+ loginConfig: Partial<FunkitLoginOptionsConfig>;
91
80
  /** Payments configuration **/
92
81
  paymentsConfig?: Partial<FunkitPaymentsConfig>;
93
- /** T&Cs font size **/
94
- termsFontSize?: number;
95
82
  };
96
83
  interface FinalFunkitConfigInternal extends FunkitConfig {
97
84
  appLogoSrc: string;
98
85
  appLogoBackgroundColor: string;
99
86
  allowBackgroundScroll: boolean;
100
87
  textCustomizations: FunkitTextCustomizationsConfig;
101
- loginModalConfig: FunkitLoginOptionsConfig;
102
- accountModalConfig: FunkitAccountOptionsConfig;
88
+ loginConfig: FunkitLoginOptionsConfig;
103
89
  paymentsConfig: FunkitPaymentsConfig;
104
- privyAppId: string;
105
90
  }
106
91
  export declare const FunkitConfigContext: React.Context<FunkitConfig>;
107
92
  export declare function useFunkitConfig(): FinalFunkitConfigInternal;
@@ -27,16 +27,22 @@ export declare const defaultTheme: {
27
27
  paymentOptionBorderHover: string;
28
28
  paymentOptionBorderActive: string;
29
29
  paymentOptionBorderActiveHover: string;
30
+ paymentOptionBorderDisabled: string;
30
31
  standby: string;
32
+ success: string;
31
33
  loadingBase: string;
32
34
  loadingAccent: string;
35
+ chainIconBorder: string;
33
36
  modalBackdrop: string;
34
37
  modalBackground: string;
35
38
  modalBorder: string;
36
39
  notificationPrimary: string;
37
- textPrimary: string;
38
- textSecondary: string;
39
- textTertiary: string;
40
+ offBackground: string;
41
+ hoverState: string;
42
+ offBackgroundInverse: string;
43
+ primaryText: string;
44
+ secondaryText: string;
45
+ tertiaryText: string;
40
46
  textDisabled: string;
41
47
  textSelection: string;
42
48
  inputFieldPrimary: string;
@@ -44,6 +50,9 @@ export declare const defaultTheme: {
44
50
  inputFieldDisabled: string;
45
51
  optionBackground: string;
46
52
  optionBackgroundSecondary: string;
53
+ actionColor: string;
54
+ actionColorHover: string;
55
+ actionColorDisabled: string;
47
56
  buttonPrimary: string;
48
57
  buttonProcessing: string;
49
58
  buttonDisabled: string;
@@ -63,9 +72,15 @@ export declare const defaultTheme: {
63
72
  selectedOption: string;
64
73
  selectedWallet: string;
65
74
  walletLogo: string;
75
+ button: string;
76
+ callToAction: string;
66
77
  };
67
78
  moonpayTheme: string;
68
79
  fontSize: {
80
+ '8': {
81
+ fontSize: string;
82
+ lineHeight: string;
83
+ };
69
84
  '10': {
70
85
  fontSize: string;
71
86
  lineHeight: string;
@@ -98,6 +113,10 @@ export declare const defaultTheme: {
98
113
  fontSize: string;
99
114
  lineHeight: string;
100
115
  };
116
+ '40': {
117
+ fontSize: string;
118
+ lineHeight: string;
119
+ };
101
120
  '57': {
102
121
  fontSize: string;
103
122
  lineHeight: string;
@@ -164,16 +183,22 @@ export declare const useActiveTheme: () => {
164
183
  paymentOptionBorderHover: string;
165
184
  paymentOptionBorderActive: string;
166
185
  paymentOptionBorderActiveHover: string;
186
+ paymentOptionBorderDisabled: string;
167
187
  standby: string;
188
+ success: string;
168
189
  loadingBase: string;
169
190
  loadingAccent: string;
191
+ chainIconBorder: string;
170
192
  modalBackdrop: string;
171
193
  modalBackground: string;
172
194
  modalBorder: string;
173
195
  notificationPrimary: string;
174
- textPrimary: string;
175
- textSecondary: string;
176
- textTertiary: string;
196
+ offBackground: string;
197
+ hoverState: string;
198
+ offBackgroundInverse: string;
199
+ primaryText: string;
200
+ secondaryText: string;
201
+ tertiaryText: string;
177
202
  textDisabled: string;
178
203
  textSelection: string;
179
204
  inputFieldPrimary: string;
@@ -181,6 +206,9 @@ export declare const useActiveTheme: () => {
181
206
  inputFieldDisabled: string;
182
207
  optionBackground: string;
183
208
  optionBackgroundSecondary: string;
209
+ actionColor: string;
210
+ actionColorHover: string;
211
+ actionColorDisabled: string;
184
212
  buttonPrimary: string;
185
213
  buttonProcessing: string;
186
214
  buttonDisabled: string;
@@ -204,6 +232,10 @@ export declare const useActiveTheme: () => {
204
232
  heavy: string;
205
233
  };
206
234
  fontSize: {
235
+ '8': {
236
+ fontSize: string;
237
+ lineHeight: string;
238
+ };
207
239
  '10': {
208
240
  fontSize: string;
209
241
  lineHeight: string;
@@ -236,6 +268,10 @@ export declare const useActiveTheme: () => {
236
268
  fontSize: string;
237
269
  lineHeight: string;
238
270
  };
271
+ '40': {
272
+ fontSize: string;
273
+ lineHeight: string;
274
+ };
239
275
  '57': {
240
276
  fontSize: string;
241
277
  lineHeight: string;
@@ -255,6 +291,8 @@ export declare const useActiveTheme: () => {
255
291
  selectedOption: string;
256
292
  selectedWallet: string;
257
293
  walletLogo: string;
294
+ button: string;
295
+ callToAction: string;
258
296
  };
259
297
  blurs: {
260
298
  modalOverlay: string;
@@ -289,16 +327,22 @@ export declare const useActiveTheme: () => {
289
327
  paymentOptionBorderHover: string;
290
328
  paymentOptionBorderActive: string;
291
329
  paymentOptionBorderActiveHover: string;
330
+ paymentOptionBorderDisabled: string;
292
331
  standby: string;
332
+ success: string;
293
333
  loadingBase: string;
294
334
  loadingAccent: string;
335
+ chainIconBorder: string;
295
336
  modalBackdrop: string;
296
337
  modalBackground: string;
297
338
  modalBorder: string;
298
339
  notificationPrimary: string;
299
- textPrimary: string;
300
- textSecondary: string;
301
- textTertiary: string;
340
+ offBackground: string;
341
+ hoverState: string;
342
+ offBackgroundInverse: string;
343
+ primaryText: string;
344
+ secondaryText: string;
345
+ tertiaryText: string;
302
346
  textDisabled: string;
303
347
  textSelection: string;
304
348
  inputFieldPrimary: string;
@@ -306,6 +350,9 @@ export declare const useActiveTheme: () => {
306
350
  inputFieldDisabled: string;
307
351
  optionBackground: string;
308
352
  optionBackgroundSecondary: string;
353
+ actionColor: string;
354
+ actionColorHover: string;
355
+ actionColorDisabled: string;
309
356
  buttonPrimary: string;
310
357
  buttonProcessing: string;
311
358
  buttonDisabled: string;
@@ -329,6 +376,10 @@ export declare const useActiveTheme: () => {
329
376
  heavy: string;
330
377
  };
331
378
  fontSize: {
379
+ '8': {
380
+ fontSize: string;
381
+ lineHeight: string;
382
+ };
332
383
  '10': {
333
384
  fontSize: string;
334
385
  lineHeight: string;
@@ -361,6 +412,10 @@ export declare const useActiveTheme: () => {
361
412
  fontSize: string;
362
413
  lineHeight: string;
363
414
  };
415
+ '40': {
416
+ fontSize: string;
417
+ lineHeight: string;
418
+ };
364
419
  '57': {
365
420
  fontSize: string;
366
421
  lineHeight: string;
@@ -380,6 +435,8 @@ export declare const useActiveTheme: () => {
380
435
  selectedOption: string;
381
436
  selectedWallet: string;
382
437
  walletLogo: string;
438
+ button: string;
439
+ callToAction: string;
383
440
  };
384
441
  blurs: {
385
442
  modalOverlay: string;
@@ -413,16 +470,22 @@ export declare const useActiveTheme: () => {
413
470
  paymentOptionBorderHover: string;
414
471
  paymentOptionBorderActive: string;
415
472
  paymentOptionBorderActiveHover: string;
473
+ paymentOptionBorderDisabled: string;
416
474
  standby: string;
475
+ success: string;
417
476
  loadingBase: string;
418
477
  loadingAccent: string;
478
+ chainIconBorder: string;
419
479
  modalBackdrop: string;
420
480
  modalBackground: string;
421
481
  modalBorder: string;
422
482
  notificationPrimary: string;
423
- textPrimary: string;
424
- textSecondary: string;
425
- textTertiary: string;
483
+ offBackground: string;
484
+ hoverState: string;
485
+ offBackgroundInverse: string;
486
+ primaryText: string;
487
+ secondaryText: string;
488
+ tertiaryText: string;
426
489
  textDisabled: string;
427
490
  textSelection: string;
428
491
  inputFieldPrimary: string;
@@ -430,6 +493,9 @@ export declare const useActiveTheme: () => {
430
493
  inputFieldDisabled: string;
431
494
  optionBackground: string;
432
495
  optionBackgroundSecondary: string;
496
+ actionColor: string;
497
+ actionColorHover: string;
498
+ actionColorDisabled: string;
433
499
  buttonPrimary: string;
434
500
  buttonProcessing: string;
435
501
  buttonDisabled: string;
@@ -453,6 +519,10 @@ export declare const useActiveTheme: () => {
453
519
  heavy: string;
454
520
  };
455
521
  fontSize: {
522
+ '8': {
523
+ fontSize: string;
524
+ lineHeight: string;
525
+ };
456
526
  '10': {
457
527
  fontSize: string;
458
528
  lineHeight: string;
@@ -485,6 +555,10 @@ export declare const useActiveTheme: () => {
485
555
  fontSize: string;
486
556
  lineHeight: string;
487
557
  };
558
+ '40': {
559
+ fontSize: string;
560
+ lineHeight: string;
561
+ };
488
562
  '57': {
489
563
  fontSize: string;
490
564
  lineHeight: string;
@@ -504,6 +578,8 @@ export declare const useActiveTheme: () => {
504
578
  selectedOption: string;
505
579
  selectedWallet: string;
506
580
  walletLogo: string;
581
+ button: string;
582
+ callToAction: string;
507
583
  };
508
584
  blurs: {
509
585
  modalOverlay: string;
@@ -46,6 +46,7 @@ interface FunkitWeb2ContextType {
46
46
  }>;
47
47
  web2UserInfo: FunkitUserInfoBase;
48
48
  }
49
+ export declare const AUTH_PROVIDER = "privy.io";
49
50
  interface FunkitWeb2ProviderProps {
50
51
  children: ReactNode;
51
52
  }
@@ -14,6 +14,7 @@ interface GeneralWalletContextProps {
14
14
  userInfo: FunkitUserInfo;
15
15
  isFetchingAssets: boolean;
16
16
  walletAssets: GeneralWalletAssets;
17
+ totalWalletAssetsUsd: number;
17
18
  startAssetsListener: () => void;
18
19
  stopAssetsListener: () => void;
19
20
  funWallet: FunWallet | null;
@@ -0,0 +1 @@
1
+ export declare const loader: string;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const GradientLoader: React.FC;
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const AlpacaIcon: () => React.JSX.Element;
2
+ export declare const AlpacaIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ type Direction = 'left' | 'right' | 'up' | 'down';
3
+ interface Props {
4
+ direction: Direction;
5
+ size?: number;
6
+ }
7
+ export declare const ArrowIcon: ({ direction, size }: Props) => React.JSX.Element;
8
+ export declare const BackIcon: () => React.JSX.Element;
9
+ export {};
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const BinanceIcon: () => React.JSX.Element;
2
+ export declare const BinanceIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const CexloIcon: () => React.JSX.Element;
2
+ export declare const CexloIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- export declare const CopiedIcon: ({ size }: {
2
+ export declare const CheckIcon: ({ size }: {
3
3
  size?: string;
4
4
  }) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- export declare const NotFoundIcon: ({ size }: {
2
+ export declare const CloseIcon: ({ size }: {
3
3
  size?: number;
4
4
  }) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CopyDoubleIcon: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CryptoIcon: () => React.JSX.Element;
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const EtoroIcon: () => React.JSX.Element;
2
+ export declare const EtoroIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const FunLogoIcon: () => React.JSX.Element;
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const GeminiIcon: () => React.JSX.Element;
2
+ export declare const GeminiIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const GreenRoundCheckmark: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const HandIcon: () => React.JSX.Element;
@@ -1,3 +1,2 @@
1
- export declare const CloseIconClassName: string;
2
1
  export declare const SpinnerIconClassName: string;
3
2
  export declare const SpinnerIconPathClassName: string;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- export declare const InfoIcon: () => React.JSX.Element;
3
- export declare const FunInfoIcon: () => React.JSX.Element;
2
+ export declare const FunInfoIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const LockIcon: () => React.JSX.Element;
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const LogoutIcon: () => React.JSX.Element;
2
+ export declare const LogoutIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const MailIcon: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const MoonPayLogoIcon: () => React.JSX.Element;
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const OkcoinIcon: () => React.JSX.Element;
2
+ export declare const OkcoinIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const PhoneIcon: () => React.JSX.Element;
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const PublicIcon: () => React.JSX.Element;
2
+ export declare const PublicIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const ReceiptIcon: () => React.JSX.Element;
2
+ export declare const ReceiptIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const RedRoundErrorCross: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const RobinhoodIcon: () => React.JSX.Element;
2
+ export declare const RobinhoodIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SearchSkeletonIcon: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SelectDropdownIcon: () => React.JSX.Element;
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const SettingsIcon: () => React.JSX.Element;
2
+ export declare const SettingsIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ShieldIcon: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SocialsIcon: () => React.JSX.Element;
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
- export declare const SpinnerIcon: ({ height, width, }: {
2
+ export declare const SpinnerIcon: ({ height, width, strokeWidth, strokeColor, }: {
3
3
  width?: string | number;
4
4
  height?: string | number;
5
+ strokeWidth?: number;
6
+ strokeColor?: "black" | "currentColor";
5
7
  }) => React.JSX.Element;
@@ -1,4 +1,8 @@
1
1
  import React from 'react';
2
- export declare const CompletedStatusIcon: () => React.JSX.Element;
3
- export declare const PendingStatusIcon: () => React.JSX.Element;
4
- export declare const FailedStatusIcon: () => React.JSX.Element;
2
+ interface IconProps {
3
+ size?: number;
4
+ }
5
+ export declare const CompletedStatusIcon: ({ size }: IconProps) => React.JSX.Element;
6
+ export declare const PendingStatusIcon: ({ size }: IconProps) => React.JSX.Element;
7
+ export declare const FailedStatusIcon: ({ size }: IconProps) => React.JSX.Element;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const TwoFaIcon: () => React.JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
2
  export declare const WalletIcon: () => React.JSX.Element;
3
3
  export declare const WalletDecoratedIcon: () => React.JSX.Element;
4
+ export declare const GeneralMetamaskWalletIcon: () => React.JSX.Element;
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const WeBullIcon: () => React.JSX.Element;
2
+ export declare const WeBullIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -8,11 +8,12 @@ type Props = {
8
8
  name: string;
9
9
  iconUrl: string | (() => Promise<string>);
10
10
  iconBackground?: string;
11
+ icon?: React.ReactNode;
11
12
  testId?: string;
12
13
  isFunkitSdkConnector?: boolean;
13
14
  };
14
15
  export declare const ModalSelection: {
15
- ({ as, currentlySelected, iconBackground, iconUrl, name, onClick, ready, recent, testId, isFunkitSdkConnector, ...urlProps }: Props): React.JSX.Element;
16
+ ({ as, currentlySelected, iconBackground, iconUrl, icon, name, onClick, ready, recent, testId, isFunkitSdkConnector, ...urlProps }: Props): React.JSX.Element;
16
17
  displayName: string;
17
18
  };
18
19
  export {};
@@ -0,0 +1 @@
1
+ export declare const homeCheckoutDisplayRowStyle: Record<"defaultBorder" | "defaultBackground" | "hoverBackground", string>;
@@ -0,0 +1,7 @@
1
+ import { CheckoutHistoryItem } from '@funkit/api-base';
2
+ import React from 'react';
3
+ import { HistoryContentPages } from '../../../../utils/checkoutHistory';
4
+ export declare const HomeCheckoutDisplayRow: ({ checkoutHistoryItem, onSelect, }: {
5
+ checkoutHistoryItem: CheckoutHistoryItem;
6
+ onSelect: (depositAddress: `0x${string}`, initialPage: HistoryContentPages) => void;
7
+ }) => React.JSX.Element;