@unifold/ui-react 0.1.55 → 0.1.56
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.
- package/dist/index.d.mts +58 -4
- package/dist/index.d.ts +58 -4
- package/dist/index.js +3848 -1585
- package/dist/index.mjs +3827 -1540
- package/dist/styles-base.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { AutoSwapResponse, ChainType, DepositEvent, Wallet, ProductType, FiatCurrency, ExecutionStatus, FeaturedToken, PaymentNetwork, DestinationToken, DestinationTokenChain, PaymentIntent, DepositQuote, SupportedDestinationTokensResponse, SupportedDepositTokensResponse, VerifyAddressResponse } from '@unifold/core';
|
|
2
|
+
import { AutoSwapResponse, ChainType, DepositEvent, Wallet, ProductType, FiatCurrency, ExecutionStatus, FeaturedToken, PaymentNetwork, ConfirmIntegrationTransferResult, DestinationToken, DestinationTokenChain, PaymentIntent, DepositQuote, SupportedDestinationTokensResponse, SupportedDepositTokensResponse, VerifyAddressResponse } from '@unifold/core';
|
|
3
3
|
export { ChainType } from '@unifold/core';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
@@ -185,6 +185,8 @@ interface DepositModalProps {
|
|
|
185
185
|
browserWalletAmountQuickSelect?: BrowserWalletAmountQuickSelect;
|
|
186
186
|
/** Enable "Pay with Exchange" option. Overrides dashboard default. Defaults to dashboard value or true. */
|
|
187
187
|
enablePayWithExchange?: boolean;
|
|
188
|
+
/** Enable "Connect Exchange" option for direct Coinbase Connect integration. Defaults to false. */
|
|
189
|
+
enableConnectExchange?: boolean;
|
|
188
190
|
/** Enable "Pay with Cash App" option. Defaults to false. */
|
|
189
191
|
enableCashApp?: boolean;
|
|
190
192
|
/** Deposit with Card — onramp step: hide the You use / You buy / You receive card. @default false */
|
|
@@ -208,7 +210,7 @@ interface DepositModalProps {
|
|
|
208
210
|
/** First screen when the modal opens. Default `main` (deposit menu). */
|
|
209
211
|
initialScreen?: DepositModalInitialScreen;
|
|
210
212
|
}
|
|
211
|
-
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, defaultSourceChainType, defaultSourceChainId, defaultSourceTokenAddress, defaultSourceSymbol, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableConnectWallet, browserWalletAmountQuickSelect, enablePayWithExchange, enableCashApp, hideDepositFlowInfo, hideDisplayDescription, onDepositSuccess, onDepositError, onEvent, theme, hideOverlay, initialScreen, transferCryptoTitle, depositWithCardTitle, payWithExchangeTitle, depositTrackerTitle, depositTrackerSubTitle, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
213
|
+
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, defaultSourceChainType, defaultSourceChainId, defaultSourceTokenAddress, defaultSourceSymbol, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableConnectWallet, browserWalletAmountQuickSelect, enablePayWithExchange, enableConnectExchange, enableCashApp, hideDepositFlowInfo, hideDisplayDescription, onDepositSuccess, onDepositError, onEvent, theme, hideOverlay, initialScreen, transferCryptoTitle, depositWithCardTitle, payWithExchangeTitle, depositTrackerTitle, depositTrackerSubTitle, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
212
214
|
|
|
213
215
|
interface DepositHeaderProps {
|
|
214
216
|
title: string;
|
|
@@ -417,6 +419,29 @@ interface DepositWithCardButtonProps {
|
|
|
417
419
|
}
|
|
418
420
|
declare function DepositWithCardButton({ onClick, title, subtitle, paymentNetworks, }: DepositWithCardButtonProps): react_jsx_runtime.JSX.Element;
|
|
419
421
|
|
|
422
|
+
interface ExchangeIconInfo {
|
|
423
|
+
icon_url?: string;
|
|
424
|
+
icon_urls?: Array<{
|
|
425
|
+
url: string;
|
|
426
|
+
format: string;
|
|
427
|
+
}>;
|
|
428
|
+
service_provider_display_name?: string;
|
|
429
|
+
}
|
|
430
|
+
interface ConnectedExchangeInfo {
|
|
431
|
+
name: string;
|
|
432
|
+
iconUrl?: string;
|
|
433
|
+
balanceUsd: string | null;
|
|
434
|
+
isLoading?: boolean;
|
|
435
|
+
}
|
|
436
|
+
interface ConnectExchangeButtonProps {
|
|
437
|
+
onClick: () => void;
|
|
438
|
+
title: string;
|
|
439
|
+
subtitle: string;
|
|
440
|
+
exchanges?: ExchangeIconInfo[];
|
|
441
|
+
connectedExchange?: ConnectedExchangeInfo | null;
|
|
442
|
+
}
|
|
443
|
+
declare function ConnectExchangeButton({ onClick, title, subtitle, exchanges, connectedExchange, }: ConnectExchangeButtonProps): react_jsx_runtime.JSX.Element;
|
|
444
|
+
|
|
420
445
|
interface DepositTrackerButtonProps {
|
|
421
446
|
onClick: () => void;
|
|
422
447
|
title: string;
|
|
@@ -425,6 +450,33 @@ interface DepositTrackerButtonProps {
|
|
|
425
450
|
}
|
|
426
451
|
declare function DepositTrackerButton({ onClick, title, subtitle, badge, }: DepositTrackerButtonProps): react_jsx_runtime.JSX.Element;
|
|
427
452
|
|
|
453
|
+
interface DepositWallet {
|
|
454
|
+
id: string;
|
|
455
|
+
chain_type: string;
|
|
456
|
+
address: string;
|
|
457
|
+
}
|
|
458
|
+
interface CoinbaseConnectProps {
|
|
459
|
+
publishableKey: string;
|
|
460
|
+
userId: string;
|
|
461
|
+
wallets: DepositWallet[];
|
|
462
|
+
recipientAddress?: string;
|
|
463
|
+
destinationTokenAddress: string;
|
|
464
|
+
destinationChainId: string;
|
|
465
|
+
destinationChainType: string;
|
|
466
|
+
onTransferSuccess?: (result: ConfirmIntegrationTransferResult) => void;
|
|
467
|
+
onTransferError?: (error: {
|
|
468
|
+
message: string;
|
|
469
|
+
}) => void;
|
|
470
|
+
onClose?: () => void;
|
|
471
|
+
onBack?: () => void;
|
|
472
|
+
skipToHoldings?: boolean;
|
|
473
|
+
onExecutionsChange?: (executions: AutoSwapResponse[]) => void;
|
|
474
|
+
}
|
|
475
|
+
declare function CoinbaseConnect({ publishableKey, userId, wallets, recipientAddress, destinationTokenAddress, destinationChainId, destinationChainType, onTransferSuccess, onTransferError, onClose, onBack: parentOnBack, skipToHoldings, onExecutionsChange, }: CoinbaseConnectProps): react_jsx_runtime.JSX.Element | null;
|
|
476
|
+
declare namespace CoinbaseConnect {
|
|
477
|
+
var displayName: string;
|
|
478
|
+
}
|
|
479
|
+
|
|
428
480
|
interface DepositExecutionItemProps {
|
|
429
481
|
execution: AutoSwapResponse;
|
|
430
482
|
onClick?: () => void;
|
|
@@ -617,6 +669,7 @@ interface WithdrawFormProps {
|
|
|
617
669
|
recipientAddressProp?: string;
|
|
618
670
|
balanceData: AddressBalanceResult | null;
|
|
619
671
|
isLoadingBalance: boolean;
|
|
672
|
+
isStablecoin: boolean;
|
|
620
673
|
minimumWithdrawAmountUsd: number | null;
|
|
621
674
|
estimatedProcessingTime: number | null;
|
|
622
675
|
maxSlippagePercent: number | null;
|
|
@@ -646,7 +699,7 @@ interface WithdrawFormProps {
|
|
|
646
699
|
/** Optional element rendered on the left side of the footer row (e.g. tracker link) */
|
|
647
700
|
footerLeft?: React.ReactNode;
|
|
648
701
|
}
|
|
649
|
-
declare function WithdrawForm({ publishableKey, externalUserId, sourceChainType, selectedToken, selectedChain, sourceTokenSymbol, recipientAddressProp, balanceData, isLoadingBalance, minimumWithdrawAmountUsd, estimatedProcessingTime, maxSlippagePercent, priceImpactPercent, senderAddress, sourceChainId, sourceTokenAddress, onWithdraw, onWithdrawError, onDepositWalletCreation, onWithdrawSubmitted, footerLeft, }: WithdrawFormProps): react_jsx_runtime.JSX.Element;
|
|
702
|
+
declare function WithdrawForm({ publishableKey, externalUserId, sourceChainType, selectedToken, selectedChain, sourceTokenSymbol, recipientAddressProp, balanceData, isLoadingBalance, isStablecoin, minimumWithdrawAmountUsd, estimatedProcessingTime, maxSlippagePercent, priceImpactPercent, senderAddress, sourceChainId, sourceTokenAddress, onWithdraw, onWithdrawError, onDepositWalletCreation, onWithdrawSubmitted, footerLeft, }: WithdrawFormProps): react_jsx_runtime.JSX.Element;
|
|
650
703
|
|
|
651
704
|
interface WithdrawExecutionItemProps {
|
|
652
705
|
execution: AutoSwapResponse;
|
|
@@ -934,6 +987,7 @@ declare function useVerifyRecipientAddress(params: UseVerifyRecipientAddressPara
|
|
|
934
987
|
|
|
935
988
|
interface SourceTokenValidationResult {
|
|
936
989
|
isSupported: boolean;
|
|
990
|
+
isStablecoin: boolean;
|
|
937
991
|
minimumAmountUsd: number | null;
|
|
938
992
|
estimatedProcessingTime: number | null;
|
|
939
993
|
maxSlippagePercent: number | null;
|
|
@@ -1229,4 +1283,4 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
1229
1283
|
*/
|
|
1230
1284
|
declare function truncateAddress(address: string, startChars?: number, endChars?: number): string;
|
|
1231
1285
|
|
|
1232
|
-
export { type AllowedCountryResult, type BrowserWalletAmountQuickSelect, Button, type ButtonProps, type ButtonTokens, BuyWithCard, type BuyWithCardProps, type CardTokens, CheckingForDepositIndicator, CheckoutModal, type CheckoutModalProps, type ComponentConfig, type ComponentOverrides, type ComponentTokens, ConfirmingView, type ContainerTokens, CurrencyListItem, CurrencyListSection, CurrencyModal, type CustomThemeColors, type DepositConfirmationMode, DepositDetailContent, DepositExecutionItem, DepositHeader, DepositModal, type DepositModalInitialScreen, type DepositModalProps, DepositSuccessToast, DepositTrackerButton, DepositWithCardButton, DepositsModal, type DetectedWallet, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type EvmWalletProvider, type FontConfig, HYPERCORE_CHAIN_ID, type HeaderTokens, type InputTokens, type ListTokens, ManualDepositButton, type ResolvedFonts, type SearchTokens, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SolanaWalletProvider, StyledQRCode, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransferCryptoButton, TransferCryptoDoubleInput, TransferCryptoSingleInput, type UseDepositQuoteParams, type UsePaymentIntentParams, type UseSupportedDepositTokensOptions, WithdrawConfirmingView, WithdrawDoubleInput, WithdrawExecutionItem, WithdrawForm, WithdrawModal, type WithdrawModalProps, WithdrawTokenSelector, type WithdrawTransactionInfo, buttonVariants, cn, colors, defaultColors, detectBrowserWallet, getColors, isHypercoreChain, mergeColors, resolveComponentTokens, sendEvmWithdraw, sendHypercoreWithdraw, sendSolanaWithdraw, truncateAddress, useAddressBalance, useAllowedCountry, useDepositPolling, useDepositQuote, usePaymentIntent, useSourceTokenValidation, useSupportedDepositTokens, useSupportedDestinationTokens, useTheme, useVerifyRecipientAddress, useWithdrawPolling };
|
|
1286
|
+
export { type AllowedCountryResult, type BrowserWalletAmountQuickSelect, Button, type ButtonProps, type ButtonTokens, BuyWithCard, type BuyWithCardProps, type CardTokens, CheckingForDepositIndicator, CheckoutModal, type CheckoutModalProps, CoinbaseConnect, type ComponentConfig, type ComponentOverrides, type ComponentTokens, ConfirmingView, ConnectExchangeButton, type ContainerTokens, CurrencyListItem, CurrencyListSection, CurrencyModal, type CustomThemeColors, type DepositConfirmationMode, DepositDetailContent, DepositExecutionItem, DepositHeader, DepositModal, type DepositModalInitialScreen, type DepositModalProps, DepositSuccessToast, DepositTrackerButton, DepositWithCardButton, DepositsModal, type DetectedWallet, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type EvmWalletProvider, type FontConfig, HYPERCORE_CHAIN_ID, type HeaderTokens, type InputTokens, type ListTokens, ManualDepositButton, type ResolvedFonts, type SearchTokens, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SolanaWalletProvider, StyledQRCode, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransferCryptoButton, TransferCryptoDoubleInput, TransferCryptoSingleInput, type UseDepositQuoteParams, type UsePaymentIntentParams, type UseSupportedDepositTokensOptions, WithdrawConfirmingView, WithdrawDoubleInput, WithdrawExecutionItem, WithdrawForm, WithdrawModal, type WithdrawModalProps, WithdrawTokenSelector, type WithdrawTransactionInfo, buttonVariants, cn, colors, defaultColors, detectBrowserWallet, getColors, isHypercoreChain, mergeColors, resolveComponentTokens, sendEvmWithdraw, sendHypercoreWithdraw, sendSolanaWithdraw, truncateAddress, useAddressBalance, useAllowedCountry, useDepositPolling, useDepositQuote, usePaymentIntent, useSourceTokenValidation, useSupportedDepositTokens, useSupportedDestinationTokens, useTheme, useVerifyRecipientAddress, useWithdrawPolling };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { AutoSwapResponse, ChainType, DepositEvent, Wallet, ProductType, FiatCurrency, ExecutionStatus, FeaturedToken, PaymentNetwork, DestinationToken, DestinationTokenChain, PaymentIntent, DepositQuote, SupportedDestinationTokensResponse, SupportedDepositTokensResponse, VerifyAddressResponse } from '@unifold/core';
|
|
2
|
+
import { AutoSwapResponse, ChainType, DepositEvent, Wallet, ProductType, FiatCurrency, ExecutionStatus, FeaturedToken, PaymentNetwork, ConfirmIntegrationTransferResult, DestinationToken, DestinationTokenChain, PaymentIntent, DepositQuote, SupportedDestinationTokensResponse, SupportedDepositTokensResponse, VerifyAddressResponse } from '@unifold/core';
|
|
3
3
|
export { ChainType } from '@unifold/core';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
@@ -185,6 +185,8 @@ interface DepositModalProps {
|
|
|
185
185
|
browserWalletAmountQuickSelect?: BrowserWalletAmountQuickSelect;
|
|
186
186
|
/** Enable "Pay with Exchange" option. Overrides dashboard default. Defaults to dashboard value or true. */
|
|
187
187
|
enablePayWithExchange?: boolean;
|
|
188
|
+
/** Enable "Connect Exchange" option for direct Coinbase Connect integration. Defaults to false. */
|
|
189
|
+
enableConnectExchange?: boolean;
|
|
188
190
|
/** Enable "Pay with Cash App" option. Defaults to false. */
|
|
189
191
|
enableCashApp?: boolean;
|
|
190
192
|
/** Deposit with Card — onramp step: hide the You use / You buy / You receive card. @default false */
|
|
@@ -208,7 +210,7 @@ interface DepositModalProps {
|
|
|
208
210
|
/** First screen when the modal opens. Default `main` (deposit menu). */
|
|
209
211
|
initialScreen?: DepositModalInitialScreen;
|
|
210
212
|
}
|
|
211
|
-
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, defaultSourceChainType, defaultSourceChainId, defaultSourceTokenAddress, defaultSourceSymbol, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableConnectWallet, browserWalletAmountQuickSelect, enablePayWithExchange, enableCashApp, hideDepositFlowInfo, hideDisplayDescription, onDepositSuccess, onDepositError, onEvent, theme, hideOverlay, initialScreen, transferCryptoTitle, depositWithCardTitle, payWithExchangeTitle, depositTrackerTitle, depositTrackerSubTitle, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
213
|
+
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, defaultSourceChainType, defaultSourceChainId, defaultSourceTokenAddress, defaultSourceSymbol, hideDepositTracker, showBalanceHeader, transferInputVariant, depositConfirmationMode, enableConnectWallet, browserWalletAmountQuickSelect, enablePayWithExchange, enableConnectExchange, enableCashApp, hideDepositFlowInfo, hideDisplayDescription, onDepositSuccess, onDepositError, onEvent, theme, hideOverlay, initialScreen, transferCryptoTitle, depositWithCardTitle, payWithExchangeTitle, depositTrackerTitle, depositTrackerSubTitle, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
212
214
|
|
|
213
215
|
interface DepositHeaderProps {
|
|
214
216
|
title: string;
|
|
@@ -417,6 +419,29 @@ interface DepositWithCardButtonProps {
|
|
|
417
419
|
}
|
|
418
420
|
declare function DepositWithCardButton({ onClick, title, subtitle, paymentNetworks, }: DepositWithCardButtonProps): react_jsx_runtime.JSX.Element;
|
|
419
421
|
|
|
422
|
+
interface ExchangeIconInfo {
|
|
423
|
+
icon_url?: string;
|
|
424
|
+
icon_urls?: Array<{
|
|
425
|
+
url: string;
|
|
426
|
+
format: string;
|
|
427
|
+
}>;
|
|
428
|
+
service_provider_display_name?: string;
|
|
429
|
+
}
|
|
430
|
+
interface ConnectedExchangeInfo {
|
|
431
|
+
name: string;
|
|
432
|
+
iconUrl?: string;
|
|
433
|
+
balanceUsd: string | null;
|
|
434
|
+
isLoading?: boolean;
|
|
435
|
+
}
|
|
436
|
+
interface ConnectExchangeButtonProps {
|
|
437
|
+
onClick: () => void;
|
|
438
|
+
title: string;
|
|
439
|
+
subtitle: string;
|
|
440
|
+
exchanges?: ExchangeIconInfo[];
|
|
441
|
+
connectedExchange?: ConnectedExchangeInfo | null;
|
|
442
|
+
}
|
|
443
|
+
declare function ConnectExchangeButton({ onClick, title, subtitle, exchanges, connectedExchange, }: ConnectExchangeButtonProps): react_jsx_runtime.JSX.Element;
|
|
444
|
+
|
|
420
445
|
interface DepositTrackerButtonProps {
|
|
421
446
|
onClick: () => void;
|
|
422
447
|
title: string;
|
|
@@ -425,6 +450,33 @@ interface DepositTrackerButtonProps {
|
|
|
425
450
|
}
|
|
426
451
|
declare function DepositTrackerButton({ onClick, title, subtitle, badge, }: DepositTrackerButtonProps): react_jsx_runtime.JSX.Element;
|
|
427
452
|
|
|
453
|
+
interface DepositWallet {
|
|
454
|
+
id: string;
|
|
455
|
+
chain_type: string;
|
|
456
|
+
address: string;
|
|
457
|
+
}
|
|
458
|
+
interface CoinbaseConnectProps {
|
|
459
|
+
publishableKey: string;
|
|
460
|
+
userId: string;
|
|
461
|
+
wallets: DepositWallet[];
|
|
462
|
+
recipientAddress?: string;
|
|
463
|
+
destinationTokenAddress: string;
|
|
464
|
+
destinationChainId: string;
|
|
465
|
+
destinationChainType: string;
|
|
466
|
+
onTransferSuccess?: (result: ConfirmIntegrationTransferResult) => void;
|
|
467
|
+
onTransferError?: (error: {
|
|
468
|
+
message: string;
|
|
469
|
+
}) => void;
|
|
470
|
+
onClose?: () => void;
|
|
471
|
+
onBack?: () => void;
|
|
472
|
+
skipToHoldings?: boolean;
|
|
473
|
+
onExecutionsChange?: (executions: AutoSwapResponse[]) => void;
|
|
474
|
+
}
|
|
475
|
+
declare function CoinbaseConnect({ publishableKey, userId, wallets, recipientAddress, destinationTokenAddress, destinationChainId, destinationChainType, onTransferSuccess, onTransferError, onClose, onBack: parentOnBack, skipToHoldings, onExecutionsChange, }: CoinbaseConnectProps): react_jsx_runtime.JSX.Element | null;
|
|
476
|
+
declare namespace CoinbaseConnect {
|
|
477
|
+
var displayName: string;
|
|
478
|
+
}
|
|
479
|
+
|
|
428
480
|
interface DepositExecutionItemProps {
|
|
429
481
|
execution: AutoSwapResponse;
|
|
430
482
|
onClick?: () => void;
|
|
@@ -617,6 +669,7 @@ interface WithdrawFormProps {
|
|
|
617
669
|
recipientAddressProp?: string;
|
|
618
670
|
balanceData: AddressBalanceResult | null;
|
|
619
671
|
isLoadingBalance: boolean;
|
|
672
|
+
isStablecoin: boolean;
|
|
620
673
|
minimumWithdrawAmountUsd: number | null;
|
|
621
674
|
estimatedProcessingTime: number | null;
|
|
622
675
|
maxSlippagePercent: number | null;
|
|
@@ -646,7 +699,7 @@ interface WithdrawFormProps {
|
|
|
646
699
|
/** Optional element rendered on the left side of the footer row (e.g. tracker link) */
|
|
647
700
|
footerLeft?: React.ReactNode;
|
|
648
701
|
}
|
|
649
|
-
declare function WithdrawForm({ publishableKey, externalUserId, sourceChainType, selectedToken, selectedChain, sourceTokenSymbol, recipientAddressProp, balanceData, isLoadingBalance, minimumWithdrawAmountUsd, estimatedProcessingTime, maxSlippagePercent, priceImpactPercent, senderAddress, sourceChainId, sourceTokenAddress, onWithdraw, onWithdrawError, onDepositWalletCreation, onWithdrawSubmitted, footerLeft, }: WithdrawFormProps): react_jsx_runtime.JSX.Element;
|
|
702
|
+
declare function WithdrawForm({ publishableKey, externalUserId, sourceChainType, selectedToken, selectedChain, sourceTokenSymbol, recipientAddressProp, balanceData, isLoadingBalance, isStablecoin, minimumWithdrawAmountUsd, estimatedProcessingTime, maxSlippagePercent, priceImpactPercent, senderAddress, sourceChainId, sourceTokenAddress, onWithdraw, onWithdrawError, onDepositWalletCreation, onWithdrawSubmitted, footerLeft, }: WithdrawFormProps): react_jsx_runtime.JSX.Element;
|
|
650
703
|
|
|
651
704
|
interface WithdrawExecutionItemProps {
|
|
652
705
|
execution: AutoSwapResponse;
|
|
@@ -934,6 +987,7 @@ declare function useVerifyRecipientAddress(params: UseVerifyRecipientAddressPara
|
|
|
934
987
|
|
|
935
988
|
interface SourceTokenValidationResult {
|
|
936
989
|
isSupported: boolean;
|
|
990
|
+
isStablecoin: boolean;
|
|
937
991
|
minimumAmountUsd: number | null;
|
|
938
992
|
estimatedProcessingTime: number | null;
|
|
939
993
|
maxSlippagePercent: number | null;
|
|
@@ -1229,4 +1283,4 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
1229
1283
|
*/
|
|
1230
1284
|
declare function truncateAddress(address: string, startChars?: number, endChars?: number): string;
|
|
1231
1285
|
|
|
1232
|
-
export { type AllowedCountryResult, type BrowserWalletAmountQuickSelect, Button, type ButtonProps, type ButtonTokens, BuyWithCard, type BuyWithCardProps, type CardTokens, CheckingForDepositIndicator, CheckoutModal, type CheckoutModalProps, type ComponentConfig, type ComponentOverrides, type ComponentTokens, ConfirmingView, type ContainerTokens, CurrencyListItem, CurrencyListSection, CurrencyModal, type CustomThemeColors, type DepositConfirmationMode, DepositDetailContent, DepositExecutionItem, DepositHeader, DepositModal, type DepositModalInitialScreen, type DepositModalProps, DepositSuccessToast, DepositTrackerButton, DepositWithCardButton, DepositsModal, type DetectedWallet, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type EvmWalletProvider, type FontConfig, HYPERCORE_CHAIN_ID, type HeaderTokens, type InputTokens, type ListTokens, ManualDepositButton, type ResolvedFonts, type SearchTokens, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SolanaWalletProvider, StyledQRCode, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransferCryptoButton, TransferCryptoDoubleInput, TransferCryptoSingleInput, type UseDepositQuoteParams, type UsePaymentIntentParams, type UseSupportedDepositTokensOptions, WithdrawConfirmingView, WithdrawDoubleInput, WithdrawExecutionItem, WithdrawForm, WithdrawModal, type WithdrawModalProps, WithdrawTokenSelector, type WithdrawTransactionInfo, buttonVariants, cn, colors, defaultColors, detectBrowserWallet, getColors, isHypercoreChain, mergeColors, resolveComponentTokens, sendEvmWithdraw, sendHypercoreWithdraw, sendSolanaWithdraw, truncateAddress, useAddressBalance, useAllowedCountry, useDepositPolling, useDepositQuote, usePaymentIntent, useSourceTokenValidation, useSupportedDepositTokens, useSupportedDestinationTokens, useTheme, useVerifyRecipientAddress, useWithdrawPolling };
|
|
1286
|
+
export { type AllowedCountryResult, type BrowserWalletAmountQuickSelect, Button, type ButtonProps, type ButtonTokens, BuyWithCard, type BuyWithCardProps, type CardTokens, CheckingForDepositIndicator, CheckoutModal, type CheckoutModalProps, CoinbaseConnect, type ComponentConfig, type ComponentOverrides, type ComponentTokens, ConfirmingView, ConnectExchangeButton, type ContainerTokens, CurrencyListItem, CurrencyListSection, CurrencyModal, type CustomThemeColors, type DepositConfirmationMode, DepositDetailContent, DepositExecutionItem, DepositHeader, DepositModal, type DepositModalInitialScreen, type DepositModalProps, DepositSuccessToast, DepositTrackerButton, DepositWithCardButton, DepositsModal, type DetectedWallet, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type EvmWalletProvider, type FontConfig, HYPERCORE_CHAIN_ID, type HeaderTokens, type InputTokens, type ListTokens, ManualDepositButton, type ResolvedFonts, type SearchTokens, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SolanaWalletProvider, StyledQRCode, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TransferCryptoButton, TransferCryptoDoubleInput, TransferCryptoSingleInput, type UseDepositQuoteParams, type UsePaymentIntentParams, type UseSupportedDepositTokensOptions, WithdrawConfirmingView, WithdrawDoubleInput, WithdrawExecutionItem, WithdrawForm, WithdrawModal, type WithdrawModalProps, WithdrawTokenSelector, type WithdrawTransactionInfo, buttonVariants, cn, colors, defaultColors, detectBrowserWallet, getColors, isHypercoreChain, mergeColors, resolveComponentTokens, sendEvmWithdraw, sendHypercoreWithdraw, sendSolanaWithdraw, truncateAddress, useAddressBalance, useAllowedCountry, useDepositPolling, useDepositQuote, usePaymentIntent, useSourceTokenValidation, useSupportedDepositTokens, useSupportedDestinationTokens, useTheme, useVerifyRecipientAddress, useWithdrawPolling };
|