@funkit/connect 2.0.6 → 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 (183) hide show
  1. package/CHANGELOG.md +21 -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/config/getDefaultConfig.d.ts +33 -0
  109. package/dist/consts/funkit.d.ts +8 -0
  110. package/dist/css/sprinkles.css.d.ts +93 -51
  111. package/dist/hooks/useDynamicFont.d.ts +5 -0
  112. package/dist/hooks/useInterval.d.ts +1 -0
  113. package/dist/hooks/useMesh.d.ts +5 -4
  114. package/dist/hooks/useScrollDivider.d.ts +11 -0
  115. package/dist/index.css +2679 -1481
  116. package/dist/index.d.ts +1 -0
  117. package/dist/index.js +10375 -8912
  118. package/dist/themes/baseTheme.d.ts +1 -1
  119. package/dist/themes/baseTheme.js +1 -1
  120. package/dist/themes/darkTheme.d.ts +22 -3
  121. package/dist/themes/darkTheme.js +2 -2
  122. package/dist/themes/lightTheme.d.ts +22 -3
  123. package/dist/themes/lightTheme.js +2 -2
  124. package/dist/utils/assets.d.ts +25 -0
  125. package/dist/utils/checkout.d.ts +7 -2
  126. package/dist/utils/formatTimestamp.d.ts +2 -1
  127. package/dist/wallets/useWalletConnectors.d.ts +1 -0
  128. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  129. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  130. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  131. package/dist/wallets/walletConnectors/chunk-32KBKKGT.js +182 -0
  132. package/dist/wallets/walletConnectors/chunk-3CLNL7LR.js +73 -0
  133. package/dist/wallets/walletConnectors/chunk-5CBRIEFK.js +94 -0
  134. package/dist/wallets/walletConnectors/chunk-5NAFNTDG.js +71 -0
  135. package/dist/wallets/walletConnectors/chunk-6LHOZPKY.js +101 -0
  136. package/dist/wallets/walletConnectors/chunk-7GGRZNT3.js +96 -0
  137. package/dist/wallets/walletConnectors/chunk-A7DLL4TF.js +102 -0
  138. package/dist/wallets/walletConnectors/chunk-AJKRYTH2.js +92 -0
  139. package/dist/wallets/walletConnectors/chunk-BNNARTHK.js +105 -0
  140. package/dist/wallets/walletConnectors/chunk-CMXZK5RR.js +94 -0
  141. package/dist/wallets/walletConnectors/chunk-CVGDYGHA.js +60 -0
  142. package/dist/wallets/walletConnectors/chunk-EWPQ4636.js +73 -0
  143. package/dist/wallets/walletConnectors/chunk-F4EJ42XO.js +105 -0
  144. package/dist/wallets/walletConnectors/chunk-FL2VIO76.js +71 -0
  145. package/dist/wallets/walletConnectors/chunk-IIJOJ6AD.js +102 -0
  146. package/dist/wallets/walletConnectors/chunk-IXI5EXND.js +95 -0
  147. package/dist/wallets/walletConnectors/chunk-KZFAL4RZ.js +27 -0
  148. package/dist/wallets/walletConnectors/chunk-LJRV5JY7.js +95 -0
  149. package/dist/wallets/walletConnectors/chunk-MSRKKVDE.js +98 -0
  150. package/dist/wallets/walletConnectors/chunk-OBYMPVH3.js +182 -0
  151. package/dist/wallets/walletConnectors/chunk-OKZSWAPF.js +60 -0
  152. package/dist/wallets/walletConnectors/chunk-OYKWP3N3.js +60 -0
  153. package/dist/wallets/walletConnectors/chunk-OYW4TIA3.js +81 -0
  154. package/dist/wallets/walletConnectors/chunk-P4BVOAJC.js +98 -0
  155. package/dist/wallets/walletConnectors/chunk-RCUBLYVS.js +96 -0
  156. package/dist/wallets/walletConnectors/chunk-YUIRWCAS.js +101 -0
  157. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  158. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  159. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  160. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  161. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  162. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  163. package/dist/wallets/walletConnectors/index.js +61 -61
  164. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  165. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  166. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  167. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  168. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  169. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  170. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  171. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  172. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  173. package/package.json +4 -4
  174. package/dist/components/FunButton/FunTermsAndConditionsTextButton.d.ts +0 -2
  175. package/dist/components/FunConnectOptions/FunConnectErrorStep.d.ts +0 -10
  176. package/dist/components/Icons/Back.d.ts +0 -2
  177. package/dist/components/Icons/Close.d.ts +0 -2
  178. package/dist/components/Icons/FunBackIcon.d.ts +0 -2
  179. package/dist/components/ModalSelection/ModalSelection.css.d.ts +0 -1
  180. package/dist/components/QRCode/QRCode.css.d.ts +0 -1
  181. package/dist/fun-error-AZCFCLIM.js +0 -6
  182. /package/dist/components/{FunDevTestModal → DevTest}/FunDevTestModal.d.ts +0 -0
  183. /package/dist/components/Icons/{Success.d.ts → SuccessIcon.d.ts} +0 -0
@@ -1,5 +1,6 @@
1
+ export declare const DialogAnimationTimeIn = 250;
2
+ export declare const DialogAnimationTimeOut = 120;
1
3
  export declare const overlay: string;
2
4
  export declare const overlayOut: string;
3
- export declare const DialogAnimationTime = 150;
4
5
  export declare const content: string;
5
6
  export declare const contentSlideOut: string;
@@ -1,6 +1,6 @@
1
1
  export declare const dialogContent: string;
2
- export declare const dialogContentWideMobile: string;
3
- export declare const dialogContentWideDesktop: string;
4
2
  export declare const dialogContentCompactMode: string;
5
3
  export declare const dialogContentMobile: string;
6
- export declare const bottomSheetOverrides: string;
4
+ export declare const scrollModalCheckoutContent: string;
5
+ export declare const scrollModalContent: string;
6
+ export declare const fullHeightContent: string;
@@ -1,11 +1,8 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { BoxProps } from '../Box/Box';
3
- interface DialogContentProps {
3
+ interface DialogContentProps extends BoxProps {
4
4
  children: ReactNode;
5
- bottomSheetOnMobile?: boolean;
6
- padding?: BoxProps['padding'];
7
- paddingBottom?: BoxProps['paddingBottom'];
8
- marginTop?: BoxProps['marginTop'];
5
+ fullHeight?: boolean;
9
6
  }
10
- export declare function DialogContent({ bottomSheetOnMobile, children, marginTop, padding, paddingBottom, }: DialogContentProps): React.JSX.Element;
7
+ export declare function DialogContent({ children, fullHeight, padding, ...boxProps }: DialogContentProps): React.JSX.Element;
11
8
  export {};
@@ -0,0 +1,5 @@
1
+ import React, { ReactNode } from 'react';
2
+ export declare function FunAlert({ icon, description, }: {
3
+ icon: ReactNode;
4
+ description: string | ReactNode;
5
+ }): React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { BoxProps } from '../Box/Box';
3
+ interface FunAssetBadgeProps {
4
+ children: React.ReactNode;
5
+ background?: BoxProps['background'];
6
+ color?: BoxProps['color'];
7
+ }
8
+ export declare function FunAssetBadge({ children, background, color, }: FunAssetBadgeProps): React.JSX.Element;
9
+ export {};
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { AssetHoldingsItem } from '../../utils/assets';
3
+ interface FunAssetItemProps {
4
+ asset: AssetHoldingsItem;
5
+ isActive?: boolean;
6
+ isDisabled?: boolean;
7
+ badgeText: string | null;
8
+ onClick: () => void;
9
+ }
10
+ export declare const FunAssetItem: ({ asset, isActive, isDisabled, badgeText, onClick, }: FunAssetItemProps) => React.JSX.Element;
11
+ export {};
@@ -1,4 +1,11 @@
1
1
  import React from 'react';
2
- export declare function FunBadge({ text }: {
3
- text: string;
4
- }): React.JSX.Element;
2
+ import { BoxProps } from '../Box/Box';
3
+ interface FunBadgeProps {
4
+ children: React.ReactNode;
5
+ paddingX?: BoxProps['paddingX'];
6
+ borderRadius?: BoxProps['borderRadius'];
7
+ background?: BoxProps['background'];
8
+ color?: BoxProps['color'];
9
+ }
10
+ export declare function FunBadge({ children, background, color, borderRadius, paddingX, }: FunBadgeProps): React.JSX.Element;
11
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const bottomBarDivider: string;
2
+ export declare const notificationOverlay: string;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { FunButtonProps } from '../FunButton/FunButton';
3
+ interface Props {
4
+ topSection?: React.ReactNode;
5
+ actionButtonProps: FunButtonProps;
6
+ bottomSection?: React.ReactNode;
7
+ withBorder?: boolean;
8
+ }
9
+ export declare const FunBottomBar: ({ topSection, actionButtonProps, bottomSection, withBorder, }: Props) => React.JSX.Element;
10
+ export {};
@@ -1,19 +1,18 @@
1
1
  import React from 'react';
2
2
  import { BoxProps } from '../Box/Box';
3
- import { TextProps } from '../Text/Text';
4
- export type funButtonTypes = 'primary' | 'secondary' | 'warning';
5
- interface FunButtonProps {
3
+ export type FunButtonTypes = 'primary' | 'warning' | 'tertiary';
4
+ export interface FunButtonProps {
6
5
  id?: string;
7
6
  title: string;
8
7
  onClick?: (e?: any) => void;
9
8
  titlePrefix?: React.ReactNode;
10
9
  titleSuffix?: React.ReactNode;
11
- type?: funButtonTypes;
10
+ type?: FunButtonTypes;
12
11
  isDisabled?: boolean;
13
12
  borderRadius?: BoxProps['borderRadius'];
14
- titleWeight?: TextProps['weight'];
15
13
  buttonStyle?: BoxProps['style'];
16
14
  textColor?: BoxProps['color'];
15
+ isLoading?: boolean;
16
+ loaderSize?: number;
17
17
  }
18
- export declare function FunButton({ id, title, onClick, titlePrefix, titleSuffix, isDisabled, type, borderRadius, titleWeight, buttonStyle, textColor, }: FunButtonProps): React.JSX.Element;
19
- export {};
18
+ export declare function FunButton({ id, title, onClick, titlePrefix, titleSuffix, isDisabled, type, borderRadius, buttonStyle, textColor, isLoading, loaderSize, }: FunButtonProps): React.JSX.Element;
@@ -3,8 +3,8 @@ import { BoxProps } from '../Box/Box';
3
3
  /**
4
4
  * Circular icon button with dynamic height and width
5
5
  */
6
- export declare const FunIconButton: ({ onClick, icon, size, showBorder, paddingX, paddingY, borderRadius, ariaLabel, color, background, width, rotateIconAnimation, }: {
7
- onClick: () => void;
6
+ export declare const FunIconButton: ({ onClick, icon, size, showBorder, paddingX, paddingY, borderRadius, ariaLabel, color, background, width, rotateIconAnimation, renderAsSquare, as, }: {
7
+ onClick?: () => void;
8
8
  icon: React.ReactNode;
9
9
  size?: BoxProps["height"];
10
10
  paddingX?: BoxProps["paddingX"];
@@ -16,4 +16,6 @@ export declare const FunIconButton: ({ onClick, icon, size, showBorder, paddingX
16
16
  background?: BoxProps["background"];
17
17
  width?: BoxProps["width"];
18
18
  rotateIconAnimation?: boolean;
19
+ renderAsSquare?: boolean;
20
+ as?: BoxProps["as"];
19
21
  }) => React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { BoxProps } from '../Box/Box';
3
+ interface CallToActionProps {
4
+ badgeText: string;
5
+ badgeBackground: BoxProps['background'];
6
+ badgeColor: BoxProps['color'];
7
+ children: React.ReactNode;
8
+ }
9
+ export declare function FunCallToAction({ badgeText, badgeBackground, badgeColor, children, }: CallToActionProps): React.JSX.Element;
10
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const ContentExpanded: string;
2
+ export declare const ContentCollapsed: string;
3
+ export declare const HistoryContainer: string;
4
+ export declare const Divider: string;
@@ -0,0 +1,8 @@
1
+ import { CheckoutHistoryItem } from '@funkit/api-base';
2
+ import React from 'react';
3
+ export declare function FunTxSummaryHistory({ checkoutHistoryItem, }: {
4
+ checkoutHistoryItem: CheckoutHistoryItem;
5
+ }): React.JSX.Element;
6
+ export declare function OrderDetail({ checkoutHistoryItem, }: {
7
+ checkoutHistoryItem: CheckoutHistoryItem;
8
+ }): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CheckoutHistoryItem } from '@funkit/api-base';
2
+ import React from 'react';
3
+ interface FunCheckoutStatusProps {
4
+ checkoutHistoryItem: CheckoutHistoryItem;
5
+ }
6
+ export declare function FunCheckoutStatus({ checkoutHistoryItem, }: FunCheckoutStatusProps): React.JSX.Element;
7
+ export {};
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import { FunCheckoutStep } from './FunCheckoutModal';
3
- export declare function FunCheckoutConfirmationStep({ checkoutId, checkoutStep, regenerateQuoteFn, onFinish, animateOut, }: {
3
+ export declare function FunCheckoutConfirmationStep({ checkoutId, checkoutStep, regenerateQuoteFn, onFinish, animateOut, isRegeneratingQuote, onConfirmClickCallback, }: {
4
4
  checkoutId: string | null;
5
5
  checkoutStep: FunCheckoutStep;
6
6
  regenerateQuoteFn: () => void;
7
7
  onFinish: (depositAddress: string) => void;
8
8
  animateOut: boolean;
9
+ isRegeneratingQuote: boolean;
10
+ onConfirmClickCallback: () => void;
9
11
  }): React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { PaymentMethodInfo } from '../../consts/payment';
3
+ import { MeshExchanges } from '../../utils/mesh';
4
+ interface Props {
5
+ exchange: MeshExchanges;
6
+ backAnimation?: boolean;
7
+ onSoftHide: (p: boolean) => void;
8
+ onSetup: (newPaymentMethodInfo: PaymentMethodInfo) => void;
9
+ }
10
+ export declare const FunCheckoutConnectExchangeStep: ({ exchange, backAnimation, onSoftHide, onSetup, }: Props) => React.JSX.Element;
11
+ export {};
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
- export declare function FunCheckoutInputAmountStep({ checkoutId, onContinue, animateOut, }: {
2
+ interface FunCheckoutInputAmountStepProps {
3
3
  checkoutId: string;
4
4
  onContinue: () => void;
5
5
  animateOut: boolean;
6
- }): React.JSX.Element;
6
+ ticker: string | undefined;
7
+ }
8
+ export declare const FunCheckoutInputAmountStep: ({ checkoutId, onContinue, animateOut, ticker, }: FunCheckoutInputAmountStepProps) => React.JSX.Element;
9
+ export {};
@@ -4,6 +4,7 @@ export declare enum FunCheckoutStep {
4
4
  SELECT_PAYMENT_METHOD = "select_payment",
5
5
  CONFIRMATION = "confirmation",
6
6
  PAYMENT_SETUP = "payment_setup",
7
+ CONNECT_EXCHANGE = "connect_exchange",
7
8
  SELECT_ASSET = "select_asset",
8
9
  MESH_VERIFICATION = "mesh_verification"
9
10
  }
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { WalletConnector } from '../../wallets/useWalletConnectors';
3
- export declare function ConnectDetail({ compactModeEnabled, qrCodeUri, wallet, }: {
4
- compactModeEnabled: boolean;
3
+ interface Props {
5
4
  qrCodeUri?: string;
6
5
  wallet: WalletConnector;
7
- }): React.JSX.Element;
6
+ }
7
+ export declare const ConnectDetail: ({ qrCodeUri, wallet }: Props) => React.JSX.Element;
8
+ export {};
@@ -1,10 +1,11 @@
1
1
  import React from 'react';
2
2
  export declare enum ConnectStep {
3
- SIGNIN = 0,
4
- PENDING_EMAIL = 1,
5
- PENDING_WALLET = 2,
6
- PENDING_FARCASTER = 3,
7
- ERROR = 4
3
+ SIGNIN_PRIMARY = 0,
4
+ SIGNIN_SECONDARY = 1,
5
+ PENDING_EMAIL = 2,
6
+ PENDING_WALLET = 3,
7
+ PENDING_FARCASTER = 4,
8
+ ERROR_WEB3 = 5
8
9
  }
9
10
  export declare function FunConnectOptions({ onClose }: {
10
11
  onClose: () => void;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { WalletConnector } from '../../wallets/useWalletConnectors';
3
+ type ResultType = 'success' | 'error';
4
+ interface FunErrorContentProps {
5
+ onBack: () => void;
6
+ onClose: () => void;
7
+ actionTitle: string;
8
+ onAction: () => void;
9
+ wallet: WalletConnector | undefined;
10
+ type: ResultType;
11
+ qrCodeUri: string;
12
+ }
13
+ export declare const FunConnectResultStep: ({ onBack, onClose, onAction, actionTitle, type, wallet, qrCodeUri, }: FunErrorContentProps) => React.JSX.Element;
14
+ export {};
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
- import { ConnectStep } from './FunConnectOptions';
3
- export declare function FunFarcasterConnectingStep({ farcasterUri, farcasterToken, changeStep, onClose, }: {
2
+ export declare function FunFarcasterConnectingStep({ farcasterUri, farcasterToken, onBack, onClose, }: {
4
3
  farcasterUri: string;
5
4
  farcasterToken: string;
6
- changeStep: (p: ConnectStep) => void;
5
+ onBack: () => void;
7
6
  onClose: () => void;
8
7
  }): React.JSX.Element;
@@ -5,8 +5,9 @@ import { ConnectStep } from './FunConnectOptions';
5
5
  * Modal content for a user that is not signed-in yet
6
6
  * Shows Web2 and Web3 sign in options
7
7
  */
8
- export declare function FunSignInStep({ onClose, changeStep, setSelectedWallet, connectToWallet, setQrCodeUri, emailInput, setEmailInput, onFarcasterSuccessInit, }: {
8
+ export declare function FunSignInStep({ onClose, signInStep, changeStep, setSelectedWallet, connectToWallet, setQrCodeUri, emailInput, setEmailInput, onFarcasterSuccessInit, }: {
9
9
  onClose: () => void;
10
+ signInStep: ConnectStep;
10
11
  changeStep: (p: ConnectStep) => void;
11
12
  setSelectedWallet: React.Dispatch<React.SetStateAction<WalletConnector | undefined>>;
12
13
  connectToWallet: (wallet: WalletConnector) => void;
@@ -1,12 +1,10 @@
1
1
  import React from 'react';
2
- import { WalletConnector } from '../../wallets/useWalletConnectors';
3
2
  interface FunWeb2ConnectingStepProps {
4
3
  onClose: () => void;
5
4
  onBack: () => void;
6
- setSelectedWallet: React.Dispatch<React.SetStateAction<WalletConnector | undefined>>;
7
5
  emailInput: string;
8
6
  otpInput: string;
9
7
  setOtpInput: React.Dispatch<React.SetStateAction<string>>;
10
8
  }
11
- export declare const FunWeb2ConnectingStep: (props: FunWeb2ConnectingStepProps) => React.JSX.Element;
9
+ export declare const FunWeb2ConnectingStep: ({ otpInput, setOtpInput, emailInput, onClose, onBack, }: FunWeb2ConnectingStepProps) => React.JSX.Element;
12
10
  export {};
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  import { WalletConnector } from '../../wallets/useWalletConnectors';
3
- import { ConnectStep } from './FunConnectOptions';
4
- export declare function FunWeb3ConnectingStep({ onClose, changeStep, selectedWallet, qrCodeUri, }: {
3
+ interface Props {
5
4
  onClose: () => void;
6
- changeStep: (newStep: ConnectStep) => void;
5
+ onBack: () => void;
7
6
  selectedWallet: WalletConnector | undefined;
8
7
  qrCodeUri: string;
9
- }): React.JSX.Element;
8
+ }
9
+ export declare const FunWeb3ConnectingStep: ({ onClose, onBack, selectedWallet, qrCodeUri, }: Props) => React.JSX.Element;
10
+ export {};
@@ -1,13 +1,11 @@
1
1
  import './FunContainer.css';
2
2
  import React, { PropsWithChildren } from 'react';
3
- import { BoxProps } from '../Box/Box';
4
3
  export interface FunContainerProps {
5
- title: string;
6
- titleSuffix?: React.ReactNode;
4
+ title?: string;
5
+ titlePrefix?: React.ReactNode;
7
6
  isCollapsible?: boolean;
8
7
  isCollapsed?: boolean;
9
8
  showHoverEffect?: boolean;
10
9
  onClick?: () => void;
11
- titlePaddingBottom?: BoxProps['paddingBottom'];
12
10
  }
13
- export declare function FunContainer({ children, title, titleSuffix, isCollapsible, isCollapsed, showHoverEffect, onClick, titlePaddingBottom, }: PropsWithChildren<FunContainerProps>): React.JSX.Element;
11
+ export declare function FunContainer({ children, title, titlePrefix, isCollapsible, isCollapsed, showHoverEffect, onClick, }: PropsWithChildren<FunContainerProps>): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const dividerBorder: string;
@@ -1,8 +1,11 @@
1
1
  import React from 'react';
2
2
  import { BoxProps } from '../Box/Box';
3
- export declare function FunDivider({ marginTop, marginBottom, transparent, borderWidth, }: {
3
+ interface FunDividerProps {
4
4
  marginTop?: BoxProps['margin'];
5
5
  marginBottom?: BoxProps['margin'];
6
+ borderColor?: BoxProps['borderColor'];
6
7
  transparent?: boolean;
7
- borderWidth?: BoxProps['borderWidth'];
8
- }): React.JSX.Element;
8
+ label?: string;
9
+ }
10
+ export declare function FunDivider({ marginTop, marginBottom, transparent, borderColor, label, }: FunDividerProps): React.JSX.Element;
11
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { MeshExchanges } from '../../utils/mesh';
3
+ interface FunGuaranteesProps {
4
+ exchange: MeshExchanges;
5
+ }
6
+ export declare const FunGuarantees: ({ exchange }: FunGuaranteesProps) => React.JSX.Element;
7
+ export {};
@@ -1,2 +1,3 @@
1
1
  export declare const inputClass: string;
2
2
  export declare const inputClassDisabled: string;
3
+ export declare const inputClassError: string;
@@ -1,27 +1,28 @@
1
1
  import './FunInputBase.css';
2
2
  import React, { HTMLInputTypeAttribute, ReactNode } from 'react';
3
3
  import { BoxProps } from '../Box/Box';
4
- export interface FunInputProps {
4
+ export interface FunInputProps<T = HTMLInputElement> {
5
5
  prefix?: ReactNode;
6
+ suffix?: ReactNode;
6
7
  prefixIcon?: 'SearchIcon' | '$';
7
8
  placeholder?: string;
8
9
  value: string | number | readonly string[] | undefined;
9
10
  label?: string;
10
- onChange: (value: React.ChangeEvent<HTMLInputElement>) => void;
11
- onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
11
+ onChange: (value: React.ChangeEvent<T>) => void;
12
+ onKeyDown?: (e: React.KeyboardEvent<T>) => void;
12
13
  onKeySubmit?: () => void;
13
- onPaste?: (e: React.ClipboardEvent<HTMLInputElement>) => void;
14
- onMouseDown?: (e: React.MouseEvent<HTMLInputElement>) => void;
15
- hasBackground?: boolean;
16
- inputStyle?: object;
17
- inputProps?: {
14
+ onPaste?: (e: React.ClipboardEvent<T>) => void;
15
+ onMouseDown?: (e: React.MouseEvent<T>) => void;
16
+ inputStyle?: React.CSSProperties;
17
+ inputProps?: React.HTMLProps<T> & {
18
18
  type?: HTMLInputTypeAttribute;
19
- [x: string]: any;
20
19
  };
21
20
  ref?: any;
22
21
  error?: string | boolean;
23
- focused?: boolean;
22
+ alwaysFocused?: boolean;
24
23
  textColor?: BoxProps['color'];
24
+ textWeight?: BoxProps['fontWeight'];
25
25
  overrideBorderWidth?: undefined | BoxProps['borderWidth'];
26
+ borderRadius?: BoxProps['borderRadius'];
26
27
  }
27
- export declare const FunInput: React.ForwardRefExoticComponent<Omit<FunInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
28
+ export declare const FunInput: React.ForwardRefExoticComponent<Omit<FunInputProps<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
2
  import { FunInputProps } from './FunInput';
3
- interface FunTextAreaInputProps extends Omit<FunInputProps, 'onChange' | 'onKeyDown'> {
4
- onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
5
- onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
3
+ interface FunTextAreaInputProps extends FunInputProps<HTMLTextAreaElement> {
4
+ hasBackground?: boolean;
6
5
  }
7
- export declare function FunTextAreaInput({ placeholder, value, label, onChange, onKeyDown, onKeySubmit, hasBackground, textColor, inputStyle, inputProps, error, focused: _focused, overrideBorderWidth, }: FunTextAreaInputProps): React.JSX.Element;
6
+ export declare function FunTextAreaInput({ placeholder, value, label, onChange, onKeyDown, onKeySubmit, textColor, inputStyle, inputProps, error, overrideBorderWidth, }: FunTextAreaInputProps): React.JSX.Element;
8
7
  export {};
@@ -2,9 +2,11 @@ import React from 'react';
2
2
  export interface FunTwoFaInputProps {
3
3
  value: string;
4
4
  onChange: (input: string) => void;
5
- onCompleted?: (input?: any) => void;
5
+ onCompleted?: (input: string) => void;
6
6
  hasError: boolean;
7
7
  errorMessage?: string;
8
8
  inputLength: number;
9
+ onResend?: () => void;
10
+ hasResent?: boolean;
9
11
  }
10
- export declare const FunTwoFaInput: ({ value, onChange, onCompleted, hasError, errorMessage, inputLength, }: FunTwoFaInputProps) => React.JSX.Element;
12
+ export declare const FunTwoFaInput: ({ value, onChange, onCompleted, hasError, errorMessage, inputLength, onResend, hasResent, }: FunTwoFaInputProps) => React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { BoxProps } from '../Box/Box';
3
+ interface Props extends BoxProps {
4
+ icon?: React.ReactNode;
5
+ title: string;
6
+ description?: string;
7
+ }
8
+ export declare const FunMessage: ({ icon, title, description, ...boxProps }: Props) => React.JSX.Element;
9
+ export {};
@@ -1,12 +1,14 @@
1
1
  import React from 'react';
2
- import { BoxProps } from '../Box/Box';
3
- export declare function FunModalTitleSection({ title, hasCloseButton, onClose, hasBackButton, onBack, backAnimation, skipBackDelay, customJustifyContentStyle, }: {
4
- title: string;
2
+ interface FunModalTitleSectionProps {
3
+ title?: string;
5
4
  hasCloseButton?: boolean;
6
5
  onClose?: (p?: any) => void;
7
6
  hasBackButton?: boolean;
8
7
  skipBackDelay?: boolean;
9
8
  onBack?: (p?: any) => void;
10
9
  backAnimation?: boolean;
11
- customJustifyContentStyle?: BoxProps['justifyContent'];
12
- }): React.JSX.Element;
10
+ countdownMs?: number;
11
+ countdownKey?: string;
12
+ }
13
+ export declare const FunModalTitleSection: ({ title, hasCloseButton, onClose, hasBackButton, onBack, backAnimation, skipBackDelay, countdownMs, countdownKey, }: FunModalTitleSectionProps) => React.JSX.Element;
14
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type FunModalTitleSectionCountdownProps = {
3
+ countdownMs: number;
4
+ notifyDeadlinePassed: () => void;
5
+ };
6
+ export declare const FunModalTitleSectionCountdown: ({ countdownMs, notifyDeadlinePassed, }: FunModalTitleSectionCountdownProps) => React.JSX.Element;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const FunNoResults: () => React.JSX.Element;
@@ -12,5 +12,9 @@ interface FunNotificationProps {
12
12
  isVisible?: boolean;
13
13
  }
14
14
  type FunNotificationType = 'default' | 'error';
15
- export declare function FunNotification({ type, description, actionText, onAction, textProps, containerProps, isVisible, }: FunNotificationProps): React.JSX.Element;
15
+ /**
16
+ * A notification/message component with height resizing animation.
17
+ * Control visibility by enabling/disabling `isVisible` prop instead of doing an outer conditional rendering.
18
+ */
19
+ export declare function FunNotification({ type, description, actionText, onAction, textProps, containerProps, isVisible: isVisibleProps, }: FunNotificationProps): React.JSX.Element;
16
20
  export {};
@@ -0,0 +1 @@
1
+ export declare const funOptionBoxStyle: Record<"defaultBorder" | "defaultBackground" | "baseStyle" | "transparentBorder" | "activeBorder" | "paymentOptionBorderDisabledBorder" | "activeBackground", string>;
@@ -0,0 +1,13 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { BoxProps } from '../Box/Box';
3
+ interface FunOptionBoxProps {
4
+ isActive?: boolean;
5
+ isDisabled?: boolean;
6
+ paddingX?: BoxProps['paddingX'];
7
+ paddingY?: BoxProps['paddingY'];
8
+ onClick?: null | (() => void);
9
+ type?: 'default' | 'bordered';
10
+ children: ReactNode;
11
+ }
12
+ export declare function FunOptionBox({ isActive, isDisabled, onClick, paddingX, paddingY, type, children, }: FunOptionBoxProps): React.JSX.Element;
13
+ export {};
@@ -0,0 +1,11 @@
1
+ import React, { ReactNode } from 'react';
2
+ export interface FunPaymentMethodItemProps {
3
+ keyIcon?: ReactNode;
4
+ keyText: string;
5
+ valueIcon?: ReactNode;
6
+ disclaimerText?: string;
7
+ onClick?: null | (() => void);
8
+ isDisabled?: boolean;
9
+ isActive?: boolean;
10
+ }
11
+ export declare function FunPaymentMethodItem({ keyIcon, keyText, valueIcon, disclaimerText, onClick, isDisabled, isActive, }: FunPaymentMethodItemProps): React.JSX.Element;
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
+ import { MeshExchanges } from '../../utils/mesh';
2
3
  export interface FunPaymentMeshTypeProps {
3
4
  isParentLoading: boolean;
4
- onSoftHide: (p: boolean) => void;
5
- onFinish: (meshMeta: any) => void;
6
5
  backAnimation?: boolean;
6
+ onContinue: (exchange: MeshExchanges) => void;
7
7
  }
8
8
  /**
9
9
  * This component handles payments <> mesh integration
10
10
  */
11
- export declare function FunPaymentMeshType({ isParentLoading, onFinish, onSoftHide, backAnimation, }: FunPaymentMeshTypeProps): React.JSX.Element;
11
+ export declare function FunPaymentMeshType({ isParentLoading, onContinue, backAnimation, }: FunPaymentMeshTypeProps): React.JSX.Element;
@@ -9,16 +9,15 @@ export declare function AddPaymentMethodItem({ paymentFlow, paymentMethod, isCli
9
9
  onClick?: () => void;
10
10
  disclaimerText?: undefined | string;
11
11
  }): React.JSX.Element;
12
- export declare function ExistingPaymentMethodItem({ paymentMethodInfo, onClick, isClickable, }: {
12
+ export declare function ExistingPaymentMethodItem({ paymentMethodInfo, }: {
13
13
  paymentMethodInfo: PaymentMethodInfo;
14
- onClick?: () => void;
15
- isClickable?: boolean;
16
14
  }): React.JSX.Element;
17
15
  /**
18
16
  * Handle selection and adding of payment methods
19
17
  */
20
- export declare function FunPaymentMethods({ checkoutId, // only valid for paymentFlow === CHECKOUT
18
+ export declare function FunPaymentMethods({ primaryInfo, checkoutId, // only valid for paymentFlow === CHECKOUT
21
19
  paymentFlow, onSelect, isDisabled, backAnimation, depositInfo, }: {
20
+ primaryInfo: React.ReactNode;
22
21
  checkoutId?: string | null;
23
22
  paymentFlow: PaymentFlow;
24
23
  onSelect: (paymentMethodInfo: PaymentMethodInfo) => void;
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import { Address } from 'viem';
3
- import { PaymentFlow, PaymentMethod, PaymentMethodInfo } from '../../consts/payment';
3
+ import { PaymentFlow, PaymentMethod } from '../../consts/payment';
4
+ import { MeshExchanges } from '../../utils/mesh';
4
5
  interface FunPaymentSetupProps {
5
6
  paymentFlow: PaymentFlow;
6
7
  paymentMethod: undefined | null | PaymentMethod;
7
- onSetup: (newPaymentMethodInfo: PaymentMethodInfo) => void;
8
- onSoftHide: (p: boolean) => void;
9
8
  onBackToHome: () => void;
9
+ onExchangeConfirm: (exchange: MeshExchanges) => void;
10
10
  paymentAddress: Address;
11
11
  token: string;
12
12
  tokenChainId: string;
@@ -16,5 +16,5 @@ interface FunPaymentSetupProps {
16
16
  isParentLoading: boolean;
17
17
  finalConvertedAssetName?: string;
18
18
  }
19
- export declare function FunPaymentSetup({ paymentFlow, paymentAddress, paymentMethod, onSetup, onSoftHide, onBackToHome, token, tokenChainId, tokenAmountUsd, backAnimation, redirectToCheckoutHistory, isParentLoading, finalConvertedAssetName, }: FunPaymentSetupProps): React.JSX.Element;
19
+ export declare function FunPaymentSetup({ paymentFlow, paymentAddress, paymentMethod, onBackToHome, onExchangeConfirm, token, tokenChainId, tokenAmountUsd, backAnimation, redirectToCheckoutHistory, isParentLoading, finalConvertedAssetName, }: FunPaymentSetupProps): React.JSX.Element;
20
20
  export {};