@funkit/connect 5.2.1 → 5.3.1

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 (117) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/{chunk-3LR6KLPU.js → chunk-C63T33UV.js} +4 -0
  3. package/dist/{chunk-QMPPK7HO.js → chunk-LEJS74SX.js} +4 -0
  4. package/dist/components/Box/Box.d.ts +21 -21
  5. package/dist/components/Dialog/Dialog.css.d.ts +4 -2
  6. package/dist/components/Dialog/Dialog.d.ts +11 -3
  7. package/dist/components/Dialog/DialogContent.css.d.ts +2 -0
  8. package/dist/components/Dropdown/BaseDropdown.d.ts +4 -3
  9. package/dist/components/FunAsset/FunAssetLoading.d.ts +6 -3
  10. package/dist/components/FunBadge/BridgeCustomerStatusBadge.d.ts +9 -0
  11. package/dist/components/FunBadge/FunBadge.d.ts +4 -2
  12. package/dist/components/FunButton/FunIconButton.d.ts +1 -0
  13. package/dist/components/FunButton/FunLinkButton.d.ts +4 -0
  14. package/dist/components/FunCheckbox/FunCheckbox.d.ts +9 -0
  15. package/dist/components/FunCheckoutHistory/FunCheckoutStatus.d.ts +11 -2
  16. package/dist/components/FunCheckoutHistory/FunDirectExecutionStatus.d.ts +7 -0
  17. package/dist/components/FunFeatureList/FunFeatureList.d.ts +13 -0
  18. package/dist/components/FunFeatureList/FunFeatureListItem.d.ts +10 -0
  19. package/dist/components/FunGuarantees/FunGuarantees.d.ts +7 -3
  20. package/dist/components/FunInput/FunInput.d.ts +3 -1
  21. package/dist/components/FunInput/FunTextAreaInput.d.ts +1 -1
  22. package/dist/components/FunInputButton/FunInputButton.d.ts +14 -0
  23. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  24. package/dist/components/FunPayments/FunPaymentMethods.d.ts +8 -1
  25. package/dist/components/FunSelect/FunSelect.d.ts +3 -0
  26. package/dist/components/FunTooltip/FunTooltip.css.d.ts +1 -0
  27. package/dist/components/FunTooltip/FunTooltip.d.ts +15 -1
  28. package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +3 -4
  29. package/dist/components/Icons/CheckIcon.d.ts +1 -1
  30. package/dist/components/Icons/HomeIcon.d.ts +4 -0
  31. package/dist/components/Icons/Icons.css.d.ts +0 -1
  32. package/dist/components/Icons/New/BankIcon.d.ts +7 -0
  33. package/dist/components/Icons/New/BanknoteIcon.d.ts +4 -0
  34. package/dist/components/Icons/New/CoinsHandIcon.d.ts +4 -0
  35. package/dist/components/Icons/New/FiatAccountIcon.d.ts +4 -0
  36. package/dist/components/Icons/New/HelpIcon.d.ts +2 -0
  37. package/dist/components/Icons/New/LightningBoltOutlineIcon.d.ts +4 -0
  38. package/dist/components/Icons/New/ShieldCheckIcon.d.ts +4 -0
  39. package/dist/components/Icons/New/TimeIcon.d.ts +4 -0
  40. package/dist/components/Icons/New/UserIcon.d.ts +4 -0
  41. package/dist/components/Icons/SpinnerIconWithBackground.d.ts +6 -4
  42. package/dist/components/Icons/SuccessIcon.d.ts +3 -1
  43. package/dist/components/Icons/UserSquareIcon.d.ts +4 -0
  44. package/dist/components/Icons/VerificationFailedIcon.d.ts +4 -0
  45. package/dist/components/Icons/VerificationPendingIcon.d.ts +4 -0
  46. package/dist/components/Icons/VerificationSuccessIcon.d.ts +4 -0
  47. package/dist/components/Icons/VerifyIdentityIcon.d.ts +4 -0
  48. package/dist/components/SourcePaymentMethodItem/SourcePaymentMethodItem.d.ts +1 -2
  49. package/dist/components/Tabs/Tabs.d.ts +11 -0
  50. package/dist/components/Text/Text.d.ts +1 -1
  51. package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +2 -2
  52. package/dist/components/VirtualFiatAccount/CreateAccountScreen/CreateAccountScreen.d.ts +15 -0
  53. package/dist/components/VirtualFiatAccount/IntroScreen/IntroScreen.d.ts +6 -0
  54. package/dist/components/VirtualFiatAccount/VerifyAccountScreen/VerifyAccountScreen.d.ts +15 -0
  55. package/dist/consts/customers.d.ts +1 -0
  56. package/dist/consts/quote.d.ts +3 -10
  57. package/dist/css/sprinkles.css.d.ts +27 -21
  58. package/dist/domains/bridge.d.ts +25 -0
  59. package/dist/domains/fees.d.ts +14 -1
  60. package/dist/domains/paymentMethods.d.ts +25 -4
  61. package/dist/domains/quote.d.ts +13 -4
  62. package/dist/domains/relay.d.ts +35 -1
  63. package/dist/hooks/useCheckoutDirectExecution.d.ts +10 -2
  64. package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +11 -0
  65. package/dist/hooks/useCopyToClipboard.d.ts +7 -3
  66. package/dist/hooks/useFrogAccount.d.ts +335 -0
  67. package/dist/hooks/useIsUsBankrUser.d.ts +1 -0
  68. package/dist/hooks/usePaymentMethodIcon.d.ts +1 -0
  69. package/dist/hooks/usePaymentSources.d.ts +1 -1
  70. package/dist/hooks/useReceiveAmountLabel.d.ts +4 -0
  71. package/dist/hooks/useRelayExecutionInfo.d.ts +7 -0
  72. package/dist/hooks/useTokenTransfer.d.ts +3 -2
  73. package/dist/index.css +1631 -1445
  74. package/dist/index.js +17246 -14070
  75. package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +1 -1
  76. package/dist/modals/CheckoutModal/LoadingAccount.d.ts +4 -1
  77. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +8 -3
  78. package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer.d.ts +13 -0
  79. package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc.d.ts +22 -0
  80. package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +7 -0
  81. package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +9 -0
  82. package/dist/modals/CheckoutModal/VirtualFiatAccount/KycIframe.d.ts +5 -0
  83. package/dist/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount.d.ts +9 -0
  84. package/dist/modals/CheckoutModal/stepTransition.d.ts +26 -1
  85. package/dist/modals/CheckoutModal/useNewCheckoutQuote.d.ts +1 -1
  86. package/dist/providers/FunkitCheckoutContext.d.ts +9 -2
  87. package/dist/providers/FunkitConfigContext.d.ts +1 -0
  88. package/dist/providers/FunkitQuoteContext.d.ts +4 -1
  89. package/dist/providers/FunkitThemeProvider.d.ts +9 -0
  90. package/dist/providers/ModalContext.d.ts +1 -1
  91. package/dist/themes/darkTheme.js +1 -1
  92. package/dist/themes/lightTheme.js +1 -1
  93. package/dist/utils/checkout.d.ts +18 -1
  94. package/dist/utils/flags/config.d.ts +41 -16
  95. package/dist/utils/flags/types.d.ts +2 -0
  96. package/dist/utils/mesh.d.ts +1 -0
  97. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  98. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  99. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  100. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  101. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  102. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  103. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  104. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  105. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  106. package/dist/wallets/walletConnectors/index.js +58 -58
  107. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  108. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  109. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  110. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  111. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  112. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  113. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  114. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  115. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  116. package/package.json +6 -6
  117. /package/dist/components/{TransferTokenDetails/TransferTokenDetails.css.d.ts → FunFeatureList/FunFeatureList.css.d.ts} +0 -0
@@ -0,0 +1,10 @@
1
+ import React, { type ReactNode } from 'react';
2
+ import { type BoxProps } from '../Box/Box';
3
+ export interface FunFeatureListItemProps extends BoxProps {
4
+ text?: ReactNode;
5
+ tooltip?: ReactNode;
6
+ value?: string | string[];
7
+ prefix?: string;
8
+ icon: ReactNode;
9
+ }
10
+ export declare const FunFeatureListItem: ({ text, tooltip, value, prefix, icon, ...boxProps }: FunFeatureListItemProps) => React.JSX.Element;
@@ -1,7 +1,11 @@
1
1
  import React from 'react';
2
- import type { MeshExchangeType } from '~/consts/mesh';
2
+ export interface FunGuaranteeProps {
3
+ title: string;
4
+ description?: string;
5
+ icon: React.ReactNode;
6
+ }
3
7
  interface FunGuaranteesProps {
4
- brokerType: MeshExchangeType;
8
+ guarantees?: FunGuaranteeProps[];
5
9
  }
6
- export declare const FunGuarantees: ({ brokerType }: FunGuaranteesProps) => React.JSX.Element;
10
+ export declare const FunGuarantees: ({ guarantees }: FunGuaranteesProps) => React.JSX.Element;
7
11
  export {};
@@ -18,10 +18,12 @@ export interface FunInputProps<T = HTMLInputElement> {
18
18
  };
19
19
  error?: string | boolean;
20
20
  alwaysFocused?: boolean;
21
- textColor?: BoxProps['color'];
21
+ /** Color meant for prefix & suffix elements. Defaults to secondaryText. */
22
+ adornmentColor?: BoxProps['color'];
22
23
  textWeight?: BoxProps['fontWeight'];
23
24
  overrideBorderWidth?: undefined | BoxProps['borderWidth'];
24
25
  overrideBackground?: BoxProps['background'];
25
26
  borderRadius?: BoxProps['borderRadius'];
27
+ isLoading?: boolean;
26
28
  }
27
29
  export declare const FunInput: React.ForwardRefExoticComponent<FunInputProps<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import type { FunInputProps } from './FunInput';
3
- export declare function FunTextAreaInput({ placeholder, value, label, onChange, onKeyDown, onKeySubmit, textColor, inputStyle, inputProps, error, overrideBorderWidth, overrideBackground, }: FunInputProps<HTMLTextAreaElement>): React.JSX.Element;
3
+ export declare function FunTextAreaInput({ placeholder, value, label, onChange, onKeyDown, onKeySubmit, textWeight, inputStyle, inputProps, error, overrideBorderWidth, overrideBackground, isLoading, }: FunInputProps<HTMLTextAreaElement>): React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export interface FunInputButtonProps {
3
+ text: string;
4
+ label?: string;
5
+ isDisabled?: boolean;
6
+ isActive?: boolean;
7
+ isCopyable?: boolean;
8
+ }
9
+ /**
10
+ * Wrapper around FunOptionBox providing tooltip functionality on click
11
+ * Should be grouped in FunOptionPill in new DS along with other components utilizing
12
+ * @see FunOptionBox
13
+ */
14
+ export declare const FunInputButton: ({ text, label, isDisabled, isActive, isCopyable, }: FunInputButtonProps) => React.JSX.Element;
@@ -1 +1 @@
1
- export declare const funOptionBoxStyle: Record<"defaultBorder" | "defaultBackground" | "activeBackground" | "baseStyle" | "transparentBorder" | "activeBorder" | "disabledOptionBorder", string>;
1
+ export declare const funOptionBoxStyle: Record<"baseStyle" | "defaultBorder" | "transparentBorder" | "activeBorder" | "disabledOptionBorder" | "defaultBackground" | "activeBackground", string>;
@@ -1,6 +1,10 @@
1
1
  import React, { type ReactNode } from 'react';
2
- import { PaymentMethod, type PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
2
+ import { PaymentMethod, type PaymentMethodBrokerageInfo, type PaymentMethodVirtualBankInfo } from '../../domains/paymentMethods';
3
3
  export declare const getDynamicValueIconComponent: () => React.JSX.Element;
4
+ export declare function PaymentMethodIcon({ paymentIcon, keyIconSize, }: {
5
+ paymentIcon: ReactNode;
6
+ keyIconSize: number;
7
+ }): React.JSX.Element;
4
8
  interface ConnectedMeshPaymentMethodItemProps {
5
9
  paymentMethodInfo: PaymentMethodBrokerageInfo;
6
10
  isSelected: boolean;
@@ -16,6 +20,9 @@ export declare const ConnectedMeshPaymentMethodItem: ({ paymentMethodInfo, isSel
16
20
  export declare const AccountBalancePaymentMethodItem: ({ isActive, customValueIcon, onClick, targetChainId, }: BasePaymentMethodItemProps & {
17
21
  targetChainId: string;
18
22
  }) => React.JSX.Element;
23
+ export declare const ActiveFiatAccountPaymentMethodItem: ({ isActive, onClick, paymentMethodInfo, customValueIcon, }: BasePaymentMethodItemProps & {
24
+ paymentMethodInfo: PaymentMethodVirtualBankInfo;
25
+ }) => React.JSX.Element;
19
26
  type BasePaymentMethodItemProps = {
20
27
  isActive: boolean;
21
28
  onClick: () => void;
@@ -9,5 +9,8 @@ interface FunSelectProps {
9
9
  options: FunSelectOption[];
10
10
  onChange: (newValue: string) => void;
11
11
  }
12
+ /**
13
+ * @deprecated Utilize BaseDropdown instead
14
+ */
12
15
  export declare const FunSelect: ({ initValue, options, onChange }: FunSelectProps) => React.JSX.Element;
13
16
  export {};
@@ -1,5 +1,6 @@
1
1
  export declare const tooltipContainer: string;
2
2
  export declare const tooltipStyle: string;
3
+ export declare const tooltipStyleBottom: string;
3
4
  export declare const tooltipStyleCenter: string;
4
5
  export declare const tooltipStyleRight: string;
5
6
  export declare const tooltipStyleLeft: string;
@@ -1,4 +1,5 @@
1
1
  import React, { type ReactNode } from 'react';
2
+ import { type BoxProps } from '../Box/Box';
2
3
  export interface FunTooltipProps {
3
4
  content: ReactNode;
4
5
  children?: ReactNode;
@@ -14,6 +15,19 @@ export interface FunTooltipProps {
14
15
  * right: above children, right
15
16
  */
16
17
  tooltipPosition?: 'center' | 'left' | 'right';
18
+ /**
19
+ * Bottom offset of the tooltip from the children element, by default it is 6px
20
+ * This is used to adjust the tooltip position when it is rendered in the center
21
+ */
22
+ bottomOffset?: boolean;
17
23
  maxWidth?: number;
24
+ /** Whether to display the tooltip on hover or after clicking */
25
+ displayType?: 'hover' | 'click';
26
+ /**
27
+ * Delay after which the tooltip is hidden. Defaults to 150ms
28
+ * Based on display type the countdown starts immediately ('click') or after no longer hovering ('hover')
29
+ */
30
+ hideDelay?: number;
31
+ width?: BoxProps['width'];
18
32
  }
19
- export declare const FunTooltip: ({ content, children, wrapperElementRef, tooltipPosition, enableDynamicPositioning, maxWidth, }: FunTooltipProps) => React.JSX.Element;
33
+ export declare const FunTooltip: ({ content, children, wrapperElementRef, tooltipPosition, enableDynamicPositioning, bottomOffset, maxWidth, displayType, hideDelay, width, }: FunTooltipProps) => React.JSX.Element;
@@ -1,14 +1,13 @@
1
1
  import React from 'react';
2
+ import type { DirectExecutionType } from '@funkit/api-base';
2
3
  import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
3
4
  import type { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
4
- import { type FunkitTextCustomizationsConfig, type FunkitUiCustomizationsConfig } from '~/providers/FunkitConfigContext';
5
5
  interface PaymentAmountSummaryProps {
6
6
  isLoading: boolean;
7
7
  targetChainId: string;
8
8
  checkoutItem: FunkitActiveCheckoutItem | null;
9
9
  quote: FunkitCheckoutQuoteResult | null;
10
- textCustomizations: FunkitTextCustomizationsConfig['confirmationScreen'];
11
- uiCustomizations: FunkitUiCustomizationsConfig['confirmationScreen'];
10
+ directExecutionType?: DirectExecutionType | null;
12
11
  }
13
- export declare function PaymentAmountSummary({ isLoading, targetChainId, quote, checkoutItem, textCustomizations, uiCustomizations, }: PaymentAmountSummaryProps): React.JSX.Element;
12
+ export declare function PaymentAmountSummary({ isLoading, targetChainId, quote, checkoutItem, directExecutionType, }: PaymentAmountSummaryProps): React.JSX.Element;
14
13
  export {};
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  export declare const CheckIcon: ({ size }: {
3
- size?: string;
3
+ size?: number;
4
4
  }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const HomeIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -2,4 +2,3 @@ export declare const SpinnerIconClassName: string;
2
2
  export declare const SlowRotation: string;
3
3
  export declare const SpinnerIconWithBackgroundOuterClassName: string;
4
4
  export declare const SpinnerIconWithBackgroundInnerClassName: string;
5
- export declare const SpinnerIconPathClassName: string;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const BankIcon: ({ size }: {
3
+ size: number;
4
+ }) => React.JSX.Element;
5
+ export declare const BankIconActive: ({ size }: {
6
+ size: number;
7
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const BanknoteIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const CoinsHandIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const FiatAccountIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const HelpIcon: () => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const LightningBoltOutlineIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const ShieldCheckIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const TimeIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const UserIcon: ({ size }: {
3
+ size: number;
4
+ }) => React.JSX.Element;
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  import { type BoxProps } from '../Box/Box';
3
- /** @deprecated not used in the notifications anymore */
4
- export declare const SpinnerIconWithBackground: ({ size, }: {
5
- size?: BoxProps["width"];
6
- }) => React.JSX.Element;
3
+ interface SpinnerIconWithBackgroundProps {
4
+ size?: BoxProps['width'];
5
+ color?: BoxProps['borderColor'];
6
+ }
7
+ export declare const SpinnerIconWithBackground: ({ size, color, }: SpinnerIconWithBackgroundProps) => React.JSX.Element;
8
+ export {};
@@ -1,2 +1,4 @@
1
1
  import React from 'react';
2
- export declare const SuccessIcon: () => React.JSX.Element;
2
+ export declare const SuccessIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const UserSquareIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const VerificationFailedIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const VerificationPendingIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const VerificationSuccessIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const VerifyIdentityIcon: ({ size }: {
3
+ size?: number;
4
+ }) => React.JSX.Element;
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
2
  import { PaymentMethod } from '~/domains/paymentMethods';
3
3
  import { type FunPaymentMethodItemProps } from '../FunPaymentMethodItem/FunPaymentMethodItem';
4
- export type SourcePaymentMethodItemType = PaymentMethod;
5
4
  interface SourcePaymentMethodItemProps extends Omit<FunPaymentMethodItemProps, 'valueIcon'> {
6
- type: SourcePaymentMethodItemType;
5
+ type: PaymentMethod;
7
6
  }
8
7
  export declare const SourcePaymentMethodItem: ({ keyIcon, keyText, disclaimerText, onClick, isError, isDisabled, isActive, type, }: SourcePaymentMethodItemProps) => React.JSX.Element;
9
8
  export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export type Tab<T = string> = {
3
+ label: string;
4
+ value: T;
5
+ };
6
+ export type TabsProps = {
7
+ tabs: Tab[];
8
+ activeTab: string;
9
+ onTabChange: (tab: string) => void;
10
+ };
11
+ export declare const Tabs: React.FC<TabsProps>;
@@ -4,7 +4,7 @@ export type TextProps = {
4
4
  id?: string;
5
5
  as?: 'code' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label' | 'p' | 'span';
6
6
  children?: React.ReactNode;
7
- color?: BoxProps['color'];
7
+ color?: BoxProps['color'] | 'inherit';
8
8
  font?: BoxProps['fontFamily'];
9
9
  size?: BoxProps['fontSize'];
10
10
  style?: React.CSSProperties;
@@ -3,8 +3,8 @@ import type { FeeValue } from '~/hooks/useTokenTransfer';
3
3
  interface TransferTokenDetailsProps {
4
4
  minAmount?: number;
5
5
  disabled?: boolean;
6
- estPriceImpact: FeeValue;
7
- maxSlippage: FeeValue;
6
+ estPriceImpact: FeeValue | undefined;
7
+ maxSlippage: FeeValue | undefined;
8
8
  }
9
9
  export declare const TransferTokenDetails: ({ minAmount, disabled, estPriceImpact, maxSlippage, }: TransferTokenDetailsProps) => React.JSX.Element;
10
10
  export {};
@@ -0,0 +1,15 @@
1
+ import { type BridgeAccount } from '@funkit/api-base';
2
+ import React from 'react';
3
+ export type CreateAccountFormData = Omit<BridgeAccount, 'guid'>;
4
+ interface CreateAccountScreenProps {
5
+ onNext: (params: {
6
+ kycLink: string;
7
+ }) => void;
8
+ onError: (error: {
9
+ hasError: true;
10
+ errorCode: string;
11
+ rawErrorObject: unknown;
12
+ }) => void;
13
+ }
14
+ export declare function CreateAccountScreen({ onNext, onError, }: CreateAccountScreenProps): React.JSX.Element;
15
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface IntroScreenProps {
3
+ onNext: () => void;
4
+ }
5
+ export declare function IntroScreen({ onNext }: IntroScreenProps): React.JSX.Element;
6
+ export {};
@@ -0,0 +1,15 @@
1
+ import { BridgeCustomerStatus, type BridgeVirtualBankAccount } from '@funkit/api-base';
2
+ import React from 'react';
3
+ interface VerifyAccountScreenProps {
4
+ customerStatus: BridgeCustomerStatus | undefined;
5
+ /** Complements customer status - if user has KYC in progress with recoverable errors */
6
+ isSoftRejected?: boolean;
7
+ isLoading?: boolean;
8
+ withActionButton?: boolean;
9
+ onVirtualFiatCreated?: (account: BridgeVirtualBankAccount) => void;
10
+ onShowKyc?: () => void;
11
+ onError?: () => void;
12
+ onBack?: () => void;
13
+ }
14
+ export declare const VerifyAccountScreen: ({ customerStatus, isSoftRejected, isLoading, withActionButton, onVirtualFiatCreated, onShowKyc, onError, onBack, }: VerifyAccountScreenProps) => React.JSX.Element;
15
+ export {};
@@ -2,3 +2,4 @@ export declare function isDydxCustomer(apiKey: string): apiKey is "NJq0CGrsE19xB
2
2
  export declare function isPolymarketCustomer(apiKey: string): apiKey is "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6";
3
3
  export declare function isVertexCustomer(apiKey: string): apiKey is "OQXhzzkLHE2vHAK8nZBS76el5utuw3527RmnYn26";
4
4
  export declare function isOstiumCustomer(apiKey: string): apiKey is "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN";
5
+ export declare function isBankrCustomer(apiKey: string): apiKey is "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ";
@@ -13,18 +13,11 @@ export declare const PENDING_QUOTE_MESSAGE_GENERATOR: {
13
13
  export declare enum QuoteCustomErrorType {
14
14
  INSUFFICIENT_BALANCE_PRE_CHECK = 0,
15
15
  INSUFFICIENT_TOKEN_BALANCE_PRE_CHECK = 1,
16
- INSUFFICIENT_BALANCE_POST_CHECK = 2
16
+ INSUFFICIENT_BALANCE_POST_CHECK = 2,
17
+ INSUFFICIENT_AMOUNT_POST_CHECK = 3
17
18
  }
18
19
  export declare const QUOTE_CUSTOM_ERROR_STRING_INFO: {
19
- 0: {
20
- check: string;
21
- display: string;
22
- };
23
- 1: {
24
- check: string;
25
- display: string;
26
- };
27
- 2: {
20
+ [type in QuoteCustomErrorType]: {
28
21
  check: string;
29
22
  display: string;
30
23
  };