@unifold/ui-react 0.1.21 → 0.1.22
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 +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.js +500 -214
- package/dist/index.mjs +437 -149
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -20,6 +20,8 @@ interface DepositModalProps {
|
|
|
20
20
|
destinationChainId?: string;
|
|
21
21
|
destinationTokenAddress?: string;
|
|
22
22
|
hideDepositTracker?: boolean;
|
|
23
|
+
/** Show balance in deposit modal header. Defaults to false */
|
|
24
|
+
showBalanceHeader?: boolean;
|
|
23
25
|
/** Input variant for Transfer Crypto view: "single_input" or "double_input" (default) */
|
|
24
26
|
transferInputVariant?: "single_input" | "double_input";
|
|
25
27
|
onDepositSuccess?: (data: {
|
|
@@ -34,7 +36,7 @@ interface DepositModalProps {
|
|
|
34
36
|
}) => void;
|
|
35
37
|
theme?: "light" | "dark" | "auto";
|
|
36
38
|
}
|
|
37
|
-
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, hideDepositTracker, transferInputVariant, onDepositSuccess, onDepositError, theme, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, hideDepositTracker, showBalanceHeader, transferInputVariant, onDepositSuccess, onDepositError, theme, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
38
40
|
|
|
39
41
|
interface DepositHeaderProps {
|
|
40
42
|
title: string;
|
|
@@ -45,8 +47,14 @@ interface DepositHeaderProps {
|
|
|
45
47
|
badge?: {
|
|
46
48
|
count: number;
|
|
47
49
|
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
showBalance?: boolean;
|
|
51
|
+
balanceAddress?: string;
|
|
52
|
+
balanceChainType?: "ethereum" | "solana" | "bitcoin";
|
|
53
|
+
balanceChainId?: string;
|
|
54
|
+
balanceTokenAddress?: string;
|
|
55
|
+
publishableKey?: string;
|
|
56
|
+
}
|
|
57
|
+
declare function DepositHeader({ title, showBack, showClose, onBack, onClose, badge, showBalance, balanceAddress, balanceChainType, balanceChainId, balanceTokenAddress, publishableKey, }: DepositHeaderProps): react_jsx_runtime.JSX.Element;
|
|
50
58
|
|
|
51
59
|
interface TransferCryptoSingleInputProps {
|
|
52
60
|
userId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ interface DepositModalProps {
|
|
|
20
20
|
destinationChainId?: string;
|
|
21
21
|
destinationTokenAddress?: string;
|
|
22
22
|
hideDepositTracker?: boolean;
|
|
23
|
+
/** Show balance in deposit modal header. Defaults to false */
|
|
24
|
+
showBalanceHeader?: boolean;
|
|
23
25
|
/** Input variant for Transfer Crypto view: "single_input" or "double_input" (default) */
|
|
24
26
|
transferInputVariant?: "single_input" | "double_input";
|
|
25
27
|
onDepositSuccess?: (data: {
|
|
@@ -34,7 +36,7 @@ interface DepositModalProps {
|
|
|
34
36
|
}) => void;
|
|
35
37
|
theme?: "light" | "dark" | "auto";
|
|
36
38
|
}
|
|
37
|
-
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, hideDepositTracker, transferInputVariant, onDepositSuccess, onDepositError, theme, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
declare function DepositModal({ open, onOpenChange, userId, publishableKey, modalTitle, destinationTokenSymbol, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, hideDepositTracker, showBalanceHeader, transferInputVariant, onDepositSuccess, onDepositError, theme, }: DepositModalProps): react_jsx_runtime.JSX.Element;
|
|
38
40
|
|
|
39
41
|
interface DepositHeaderProps {
|
|
40
42
|
title: string;
|
|
@@ -45,8 +47,14 @@ interface DepositHeaderProps {
|
|
|
45
47
|
badge?: {
|
|
46
48
|
count: number;
|
|
47
49
|
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
showBalance?: boolean;
|
|
51
|
+
balanceAddress?: string;
|
|
52
|
+
balanceChainType?: "ethereum" | "solana" | "bitcoin";
|
|
53
|
+
balanceChainId?: string;
|
|
54
|
+
balanceTokenAddress?: string;
|
|
55
|
+
publishableKey?: string;
|
|
56
|
+
}
|
|
57
|
+
declare function DepositHeader({ title, showBack, showClose, onBack, onClose, badge, showBalance, balanceAddress, balanceChainType, balanceChainId, balanceTokenAddress, publishableKey, }: DepositHeaderProps): react_jsx_runtime.JSX.Element;
|
|
50
58
|
|
|
51
59
|
interface TransferCryptoSingleInputProps {
|
|
52
60
|
userId: string;
|