@orderly.network/ui-transfer 3.0.0-beta.0 → 3.0.0-beta.2
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 +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +551 -104
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +555 -109
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +15 -13
package/dist/index.d.mts
CHANGED
|
@@ -69,6 +69,9 @@ declare const useDepositFormScript: (options: DepositFormScriptOptions) => {
|
|
|
69
69
|
showSourceDepositCap: boolean;
|
|
70
70
|
showTargetDepositCap: boolean;
|
|
71
71
|
quantityNotional: number;
|
|
72
|
+
activeSubTab: "web3" | "exclusive_deposit";
|
|
73
|
+
setActiveSubTab: react.Dispatch<react.SetStateAction<"web3" | "exclusive_deposit">>;
|
|
74
|
+
showExclusiveDeposit: boolean;
|
|
72
75
|
};
|
|
73
76
|
|
|
74
77
|
declare const DepositForm: FC<DepositFormScriptReturn>;
|
|
@@ -205,11 +208,22 @@ declare const WithdrawFormWidget: FC<WithdrawFormWidgetProps>;
|
|
|
205
208
|
|
|
206
209
|
declare const DepositAndWithdrawWithDialogId = "DepositAndWithdrawWithDialogId";
|
|
207
210
|
declare const DepositAndWithdrawWithSheetId = "DepositAndWithdrawWithSheetId";
|
|
211
|
+
interface DepositTabExtension {
|
|
212
|
+
id: string;
|
|
213
|
+
title: string;
|
|
214
|
+
icon: React.ReactNode;
|
|
215
|
+
component: React.ComponentType<{
|
|
216
|
+
close?: () => void;
|
|
217
|
+
}>;
|
|
218
|
+
order?: number;
|
|
219
|
+
}
|
|
208
220
|
type DepositAndWithdrawProps = {
|
|
209
|
-
activeTab?:
|
|
221
|
+
activeTab?: string;
|
|
210
222
|
close?: () => void;
|
|
223
|
+
extraTabs?: DepositTabExtension[];
|
|
211
224
|
};
|
|
212
225
|
declare const DepositAndWithdraw: FC<DepositAndWithdrawProps>;
|
|
226
|
+
declare const InjectableDepositAndWithdraw: react.ComponentType<DepositAndWithdrawProps>;
|
|
213
227
|
|
|
214
228
|
type TransferFormScriptReturn = ReturnType<typeof useTransferFormScript>;
|
|
215
229
|
type TransferFormScriptOptions = {
|
|
@@ -512,4 +526,4 @@ declare const DepositStatus: react__default.FC<DepositStatusProps>;
|
|
|
512
526
|
type DepositStatusWidgetProps = Pick<DepositStatusProps, "className" | "onClick">;
|
|
513
527
|
declare const DepositStatusWidget: react__default.FC<DepositStatusWidgetProps>;
|
|
514
528
|
|
|
515
|
-
export { ActionButton, AvailableQuantity, BrokerWallet, ChainSelect, type ConvertFormProps, ConvertFormUI, ConvertFormWidget, type CurrentChain, DEPOSIT_ERROR_CODE_MAP, DepositAction, DepositAndWithdraw, type DepositAndWithdrawProps, DepositAndWithdrawWithDialogId, DepositAndWithdrawWithSheetId, DepositForm, type DepositFormScriptOptions, DepositFormWidget, type DepositFormWidgetProps, DepositStatus, DepositStatusWidget, ExchangeDivider, Fee, type InputStatus, QuantityInput, SwapCoin, TransferDialogId, TransferForm, TransferFormWidget, type TransferFormWidgetProps, TransferSheetId, TransferWidget, Web3Wallet, WithdrawForm, type WithdrawFormScriptOptions, WithdrawFormWidget, type WithdrawFormWidgetProps, WithdrawTo, YIELD_BEARING_ASSETS, type YieldBearingAsset, YieldBearingReminder, checkIsAccountId, feeDecimalsOffset, getDepositKnownErrorMessage, getTransferErrorMessage, getUSDCToken, getYieldBearingAsset, isYieldBearingAsset, sortTokensWithUSDCFirst, useConvertFormScript as useConvertForm, useDepositFormScript, useDepositStatusScript, useTransferFormScript, useWithdrawFormScript };
|
|
529
|
+
export { ActionButton, AvailableQuantity, BrokerWallet, ChainSelect, type ConvertFormProps, ConvertFormUI, ConvertFormWidget, type CurrentChain, DEPOSIT_ERROR_CODE_MAP, DepositAction, DepositAndWithdraw, type DepositAndWithdrawProps, DepositAndWithdrawWithDialogId, DepositAndWithdrawWithSheetId, DepositForm, type DepositFormScriptOptions, DepositFormWidget, type DepositFormWidgetProps, DepositStatus, DepositStatusWidget, type DepositTabExtension, ExchangeDivider, Fee, InjectableDepositAndWithdraw, type InputStatus, QuantityInput, SwapCoin, TransferDialogId, TransferForm, TransferFormWidget, type TransferFormWidgetProps, TransferSheetId, TransferWidget, Web3Wallet, WithdrawForm, type WithdrawFormScriptOptions, WithdrawFormWidget, type WithdrawFormWidgetProps, WithdrawTo, YIELD_BEARING_ASSETS, type YieldBearingAsset, YieldBearingReminder, checkIsAccountId, feeDecimalsOffset, getDepositKnownErrorMessage, getTransferErrorMessage, getUSDCToken, getYieldBearingAsset, isYieldBearingAsset, sortTokensWithUSDCFirst, useConvertFormScript as useConvertForm, useDepositFormScript, useDepositStatusScript, useTransferFormScript, useWithdrawFormScript };
|
package/dist/index.d.ts
CHANGED
|
@@ -69,6 +69,9 @@ declare const useDepositFormScript: (options: DepositFormScriptOptions) => {
|
|
|
69
69
|
showSourceDepositCap: boolean;
|
|
70
70
|
showTargetDepositCap: boolean;
|
|
71
71
|
quantityNotional: number;
|
|
72
|
+
activeSubTab: "web3" | "exclusive_deposit";
|
|
73
|
+
setActiveSubTab: react.Dispatch<react.SetStateAction<"web3" | "exclusive_deposit">>;
|
|
74
|
+
showExclusiveDeposit: boolean;
|
|
72
75
|
};
|
|
73
76
|
|
|
74
77
|
declare const DepositForm: FC<DepositFormScriptReturn>;
|
|
@@ -205,11 +208,22 @@ declare const WithdrawFormWidget: FC<WithdrawFormWidgetProps>;
|
|
|
205
208
|
|
|
206
209
|
declare const DepositAndWithdrawWithDialogId = "DepositAndWithdrawWithDialogId";
|
|
207
210
|
declare const DepositAndWithdrawWithSheetId = "DepositAndWithdrawWithSheetId";
|
|
211
|
+
interface DepositTabExtension {
|
|
212
|
+
id: string;
|
|
213
|
+
title: string;
|
|
214
|
+
icon: React.ReactNode;
|
|
215
|
+
component: React.ComponentType<{
|
|
216
|
+
close?: () => void;
|
|
217
|
+
}>;
|
|
218
|
+
order?: number;
|
|
219
|
+
}
|
|
208
220
|
type DepositAndWithdrawProps = {
|
|
209
|
-
activeTab?:
|
|
221
|
+
activeTab?: string;
|
|
210
222
|
close?: () => void;
|
|
223
|
+
extraTabs?: DepositTabExtension[];
|
|
211
224
|
};
|
|
212
225
|
declare const DepositAndWithdraw: FC<DepositAndWithdrawProps>;
|
|
226
|
+
declare const InjectableDepositAndWithdraw: react.ComponentType<DepositAndWithdrawProps>;
|
|
213
227
|
|
|
214
228
|
type TransferFormScriptReturn = ReturnType<typeof useTransferFormScript>;
|
|
215
229
|
type TransferFormScriptOptions = {
|
|
@@ -512,4 +526,4 @@ declare const DepositStatus: react__default.FC<DepositStatusProps>;
|
|
|
512
526
|
type DepositStatusWidgetProps = Pick<DepositStatusProps, "className" | "onClick">;
|
|
513
527
|
declare const DepositStatusWidget: react__default.FC<DepositStatusWidgetProps>;
|
|
514
528
|
|
|
515
|
-
export { ActionButton, AvailableQuantity, BrokerWallet, ChainSelect, type ConvertFormProps, ConvertFormUI, ConvertFormWidget, type CurrentChain, DEPOSIT_ERROR_CODE_MAP, DepositAction, DepositAndWithdraw, type DepositAndWithdrawProps, DepositAndWithdrawWithDialogId, DepositAndWithdrawWithSheetId, DepositForm, type DepositFormScriptOptions, DepositFormWidget, type DepositFormWidgetProps, DepositStatus, DepositStatusWidget, ExchangeDivider, Fee, type InputStatus, QuantityInput, SwapCoin, TransferDialogId, TransferForm, TransferFormWidget, type TransferFormWidgetProps, TransferSheetId, TransferWidget, Web3Wallet, WithdrawForm, type WithdrawFormScriptOptions, WithdrawFormWidget, type WithdrawFormWidgetProps, WithdrawTo, YIELD_BEARING_ASSETS, type YieldBearingAsset, YieldBearingReminder, checkIsAccountId, feeDecimalsOffset, getDepositKnownErrorMessage, getTransferErrorMessage, getUSDCToken, getYieldBearingAsset, isYieldBearingAsset, sortTokensWithUSDCFirst, useConvertFormScript as useConvertForm, useDepositFormScript, useDepositStatusScript, useTransferFormScript, useWithdrawFormScript };
|
|
529
|
+
export { ActionButton, AvailableQuantity, BrokerWallet, ChainSelect, type ConvertFormProps, ConvertFormUI, ConvertFormWidget, type CurrentChain, DEPOSIT_ERROR_CODE_MAP, DepositAction, DepositAndWithdraw, type DepositAndWithdrawProps, DepositAndWithdrawWithDialogId, DepositAndWithdrawWithSheetId, DepositForm, type DepositFormScriptOptions, DepositFormWidget, type DepositFormWidgetProps, DepositStatus, DepositStatusWidget, type DepositTabExtension, ExchangeDivider, Fee, InjectableDepositAndWithdraw, type InputStatus, QuantityInput, SwapCoin, TransferDialogId, TransferForm, TransferFormWidget, type TransferFormWidgetProps, TransferSheetId, TransferWidget, Web3Wallet, WithdrawForm, type WithdrawFormScriptOptions, WithdrawFormWidget, type WithdrawFormWidgetProps, WithdrawTo, YIELD_BEARING_ASSETS, type YieldBearingAsset, YieldBearingReminder, checkIsAccountId, feeDecimalsOffset, getDepositKnownErrorMessage, getTransferErrorMessage, getUSDCToken, getYieldBearingAsset, isYieldBearingAsset, sortTokensWithUSDCFirst, useConvertFormScript as useConvertForm, useDepositFormScript, useDepositStatusScript, useTransferFormScript, useWithdrawFormScript };
|