@reef-chain/react-lib 4.0.4 → 4.0.6
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/components/AccountSelector/AccountListModal.d.ts +10 -0
- package/dist/components/AccountSelector/AccountSelector.d.ts +28 -0
- package/dist/components/EvmBind/EvmBindComponent.d.ts +9 -0
- package/dist/components/Overlays/OverlayNFT.d.ts +16 -0
- package/dist/components/Overlays/OverlaySendNft.d.ts +15 -0
- package/dist/components/Overlays/OverlaySwap.d.ts +17 -0
- package/dist/components/PoolActions/Provide.d.ts +18 -0
- package/dist/components/PoolActions/Trade.d.ts +22 -0
- package/dist/components/PoolActions/Withdraw.d.ts +11 -0
- package/dist/components/RemoveLiquidity/index.d.ts +6 -0
- package/dist/components/SelectToken/index.d.ts +13 -0
- package/dist/components/SwapComponent/index.d.ts +10 -0
- package/dist/components/TokenFields/TokenAmountField.d.ts +5 -1
- package/dist/components/TokenFields/TokenAmountView.d.ts +7 -0
- package/dist/components/Transfer/Send.d.ts +13 -0
- package/dist/components/Transfer/TransferComponent.d.ts +13 -0
- package/dist/components/common/Button/index.d.ts +5 -0
- package/dist/components/common/Card/index.d.ts +3 -0
- package/dist/components/common/Icons/index.d.ts +7 -0
- package/dist/components/common/Input/index.d.ts +40 -0
- package/dist/components/common/Label/index.d.ts +7 -0
- package/dist/components/common/Loading/index.d.ts +4 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1,11 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ReefSigner } from '../../state';
|
|
3
|
+
interface AccountListModal {
|
|
4
|
+
id: string;
|
|
5
|
+
accounts: ReefSigner[];
|
|
6
|
+
selectAccount: (index: number, signer: ReefSigner) => void;
|
|
7
|
+
backButtonModalId?: string;
|
|
8
|
+
title?: string | ReactElement;
|
|
9
|
+
}
|
|
1
10
|
export declare const AccountListModal: ({ id, accounts, selectAccount, backButtonModalId, title, }: AccountListModal) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
import "./AccountSelector.css";
|
|
2
|
+
import { AccountCreationData, Extension } from "@reef-chain/ui-kit/dist/ui-kit/components/organisms/AccountSelector/AccountSelector";
|
|
3
|
+
import { ReefSigner } from "../../state";
|
|
2
4
|
export type Network = "mainnet" | "testnet";
|
|
3
5
|
export type Language = "en" | "hi";
|
|
6
|
+
interface AccountSelector {
|
|
7
|
+
availableExtensions?: Extension[];
|
|
8
|
+
selExtName?: string;
|
|
9
|
+
selectExtension?: (name: string) => void;
|
|
10
|
+
accounts: ReefSigner[];
|
|
11
|
+
selectedSigner?: ReefSigner;
|
|
12
|
+
selectAccount: (index: number, signer: ReefSigner) => void;
|
|
13
|
+
selectedNetwork?: Network;
|
|
14
|
+
onNetworkSelect?: (network: Network) => any;
|
|
15
|
+
onLanguageSelect?: (language: Language) => any;
|
|
16
|
+
isBalanceHidden?: boolean;
|
|
17
|
+
showBalance?: (...args: any[]) => any;
|
|
18
|
+
availableNetworks: Network[];
|
|
19
|
+
showSnapOptions?: boolean;
|
|
20
|
+
onRename?: (address: string, newName: string) => any;
|
|
21
|
+
onExport?: (address: string, password: string) => any;
|
|
22
|
+
onImport?: (...args: any[]) => any;
|
|
23
|
+
onForget?: (address: string) => any;
|
|
24
|
+
onUpdateMetadata?: (network: Network) => any;
|
|
25
|
+
onStartAccountCreation?: () => Promise<AccountCreationData>;
|
|
26
|
+
onConfirmAccountCreation?: (seed: string, name: string) => any;
|
|
27
|
+
handleWalletConnect?: () => Promise<void>;
|
|
28
|
+
open?: boolean;
|
|
29
|
+
setOpen?: (val: boolean) => void;
|
|
30
|
+
}
|
|
4
31
|
export declare const AccountSelector: ({ selectedSigner, availableExtensions, selExtName, selectExtension, accounts, selectAccount, selectedNetwork, onNetworkSelect, onLanguageSelect, isBalanceHidden, showBalance, availableNetworks, showSnapOptions, onRename, onExport, onImport, onForget, onUpdateMetadata, onStartAccountCreation, onConfirmAccountCreation, handleWalletConnect, open, setOpen }: AccountSelector) => JSX.Element;
|
|
32
|
+
export {};
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import { ReefSigner } from '../../state';
|
|
2
|
+
import { TxStatusHandler } from '../../utils';
|
|
1
3
|
import './bind.css';
|
|
2
4
|
export declare enum EvmBindComponentTxType {
|
|
3
5
|
TRANSFER = "TRANSFER",
|
|
4
6
|
BIND = "BIND"
|
|
5
7
|
}
|
|
8
|
+
interface EvmBindComponent {
|
|
9
|
+
bindSigner: ReefSigner;
|
|
10
|
+
signers: ReefSigner[];
|
|
11
|
+
onTxUpdate?: TxStatusHandler;
|
|
12
|
+
onComplete?: () => void;
|
|
13
|
+
}
|
|
6
14
|
export declare const EvmBindComponent: ({ bindSigner, onTxUpdate, signers, onComplete, }: EvmBindComponent) => JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,2 +1,18 @@
|
|
|
1
1
|
import './overlay.css';
|
|
2
|
+
interface OverlayNFT {
|
|
3
|
+
nftName?: string;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
isVideoNFT?: boolean;
|
|
6
|
+
iconUrl?: string;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
balance: string;
|
|
9
|
+
address: string;
|
|
10
|
+
contractType: string;
|
|
11
|
+
nftId: string;
|
|
12
|
+
accounts: any;
|
|
13
|
+
selectedSigner: any;
|
|
14
|
+
provider: any;
|
|
15
|
+
isDarkMode?: boolean;
|
|
16
|
+
}
|
|
2
17
|
export declare const OverlayNFT: ({ nftName, isOpen, isVideoNFT, iconUrl, onClose, balance, address, contractType, nftId, accounts, selectedSigner, provider, isDarkMode, }: OverlayNFT) => JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
import './overlay.css';
|
|
2
|
+
interface OverlaySendNFT {
|
|
3
|
+
nftName?: string;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
balance: string;
|
|
7
|
+
address: string;
|
|
8
|
+
nftId: string;
|
|
9
|
+
iconUrl?: string;
|
|
10
|
+
isVideoNFT?: boolean;
|
|
11
|
+
accounts: any;
|
|
12
|
+
selectedSigner: any;
|
|
13
|
+
provider: any;
|
|
14
|
+
isDarkMode?: boolean;
|
|
15
|
+
}
|
|
2
16
|
export declare const OverlaySendNFT: ({ nftName, isOpen, onClose, balance, isVideoNFT, iconUrl, address, nftId, accounts, selectedSigner, provider, isDarkMode }: OverlaySendNFT) => JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
+
import { network as libNet } from '@reef-chain/util-lib';
|
|
1
2
|
import './overlay.css';
|
|
3
|
+
import { Notify, PoolWithReserves, ReefSigner, Token, TokenPrices } from '../../state';
|
|
4
|
+
import { network as nw } from '@reef-chain/util-lib';
|
|
5
|
+
interface OverlaySwap {
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
tokenAddress: string;
|
|
8
|
+
onPoolsLoaded: (hasPools: boolean) => void;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
tokens: Token[];
|
|
11
|
+
signer: ReefSigner | undefined;
|
|
12
|
+
nw: nw.Network;
|
|
13
|
+
tokenPrices: TokenPrices;
|
|
14
|
+
pools: PoolWithReserves[];
|
|
15
|
+
network: libNet.DexProtocolv2 | undefined;
|
|
16
|
+
notify: (message: string, type?: Notify) => void;
|
|
17
|
+
}
|
|
2
18
|
export declare const OverlaySwap: ({ tokenAddress, isOpen, onPoolsLoaded, onClose, signer, tokens, nw, tokenPrices, pools, network, notify }: OverlaySwap) => JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -1 +1,19 @@
|
|
|
1
|
+
import { AddLiquidityState } from '../../store';
|
|
2
|
+
import { SelectToken } from './TokenField';
|
|
3
|
+
import { Token } from '../../state';
|
|
4
|
+
interface ProvideActions {
|
|
5
|
+
onAddLiquidity: () => Promise<void>;
|
|
6
|
+
setToken1Amount: (amount: string) => void;
|
|
7
|
+
setToken2Amount: (amount: string) => void;
|
|
8
|
+
setPercentage: (amount: number) => void;
|
|
9
|
+
selectToken1?: SelectToken;
|
|
10
|
+
selectToken2?: SelectToken;
|
|
11
|
+
}
|
|
12
|
+
interface Provide {
|
|
13
|
+
tokens: Token[];
|
|
14
|
+
state: AddLiquidityState;
|
|
15
|
+
actions: ProvideActions;
|
|
16
|
+
confirmText?: string;
|
|
17
|
+
}
|
|
1
18
|
export declare const Provide: ({ state, tokens, actions: { onAddLiquidity, setPercentage, setToken1Amount, setToken2Amount, selectToken1, selectToken2, }, }: Provide) => JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -1 +1,23 @@
|
|
|
1
|
+
import { SwapState } from '../../store';
|
|
2
|
+
import { SelectToken } from './TokenField';
|
|
3
|
+
import { LastPoolReserves, Token } from '../../state';
|
|
4
|
+
interface TradeActions {
|
|
5
|
+
onSwitch: () => void;
|
|
6
|
+
onSwap: () => Promise<void>;
|
|
7
|
+
setToken1Amount: (amount: string) => void;
|
|
8
|
+
setToken2Amount: (amount: string) => void;
|
|
9
|
+
setPercentage: (amount: number) => void;
|
|
10
|
+
selectToken1?: SelectToken;
|
|
11
|
+
selectToken2?: SelectToken;
|
|
12
|
+
setSlippage?: (slippage: number) => void;
|
|
13
|
+
}
|
|
14
|
+
interface Trade {
|
|
15
|
+
pools: LastPoolReserves[];
|
|
16
|
+
tokens: Token[];
|
|
17
|
+
state: SwapState;
|
|
18
|
+
actions: TradeActions;
|
|
19
|
+
maxSlippage?: number;
|
|
20
|
+
confirmText?: string;
|
|
21
|
+
}
|
|
1
22
|
export declare const Trade: ({ state: { token1, percentage, token2, focus, isLoading, isValid, pool, settings, status, }, actions: { onSwap, onSwitch, setPercentage, setToken1Amount, setToken2Amount, selectToken1, selectToken2, setSlippage, }, pools, tokens, maxSlippage, }: Trade) => JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -1 +1,12 @@
|
|
|
1
|
+
import { RemoveLiquidityState } from '../../store';
|
|
2
|
+
interface WithdrawActions {
|
|
3
|
+
onRemoveLiquidity: () => Promise<void>;
|
|
4
|
+
setPercentage: (percentage: number) => void;
|
|
5
|
+
}
|
|
6
|
+
interface Withdraw {
|
|
7
|
+
state: RemoveLiquidityState;
|
|
8
|
+
actions: WithdrawActions;
|
|
9
|
+
confirmText?: string;
|
|
10
|
+
}
|
|
1
11
|
export declare const Withdraw: ({ state: { pool, isLoading, isValid, percentage, status, token1, token2, }, actions: { onRemoveLiquidity, setPercentage, }, }: Withdraw) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1 +1,7 @@
|
|
|
1
|
+
import { RemoveLiquidityComponentActions, RemoveLiquidityState } from '../../store';
|
|
2
|
+
interface RemoveLiquidityComponent {
|
|
3
|
+
state: RemoveLiquidityState;
|
|
4
|
+
actions: RemoveLiquidityComponentActions;
|
|
5
|
+
}
|
|
1
6
|
export declare const RemoveLiquidityComponent: ({ state: { settings, pool, isLoading, isValid, percentage: percentageAmount, status, token1, token2, }, actions: { back, onRemoveLiquidity, setPercentage, setSettings, }, }: RemoveLiquidityComponent) => JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1 +1,14 @@
|
|
|
1
|
+
import { ReefSigner, Token } from '../../state';
|
|
2
|
+
interface SelectToken {
|
|
3
|
+
id: string;
|
|
4
|
+
iconUrl: string;
|
|
5
|
+
fullWidth?: boolean;
|
|
6
|
+
selectedTokenName: string;
|
|
7
|
+
tokens: Token[];
|
|
8
|
+
onTokenSelect: (newToken: Token) => void;
|
|
9
|
+
onAddressChange?: (address: string) => Promise<void>;
|
|
10
|
+
hideCommonBaseView?: boolean;
|
|
11
|
+
signer: ReefSigner;
|
|
12
|
+
}
|
|
1
13
|
export declare const SelectToken: ({ id, tokens, selectedTokenName, onTokenSelect, fullWidth, iconUrl, onAddressChange, hideCommonBaseView, signer, }: SelectToken) => JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
+
import { ReefSigner, Token } from '../../state';
|
|
2
|
+
import { SwapComponentActions } from '../../store/actions/swap';
|
|
3
|
+
import { SwapState } from '../../store/reducers/swap';
|
|
4
|
+
interface SwapComponent {
|
|
5
|
+
tokens: Token[];
|
|
6
|
+
account: ReefSigner;
|
|
7
|
+
state: SwapState;
|
|
8
|
+
actions: SwapComponentActions;
|
|
9
|
+
}
|
|
1
10
|
export declare const SwapComponent: ({ tokens, account, state: { token2: buy, token1: sell, status, isValid, settings, isLoading, }, actions: { onSwap, onSwitch, setSettings, selectToken1, selectToken2, setToken1Amount, setToken2Amount, onAddressChange, }, }: SwapComponent) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
2
|
import { ReefSigner, Token, TokenWithAmount } from '../../state';
|
|
3
3
|
interface TokenAmountFieldProps extends React.PropsWithChildren<{}> {
|
|
4
4
|
id?: string;
|
|
@@ -12,6 +12,10 @@ interface TokenAmountFieldProps extends React.PropsWithChildren<{}> {
|
|
|
12
12
|
signer: ReefSigner;
|
|
13
13
|
}
|
|
14
14
|
export declare const TokenAmountField: ({ id, token, tokens, signer, placeholder, onTokenSelect, onAmountChange, onAddressChange, }: TokenAmountFieldProps) => JSX.Element;
|
|
15
|
+
interface TokenAmountFieldMax extends TokenAmountFieldProps {
|
|
16
|
+
afterBalanceEl?: ReactElement;
|
|
17
|
+
hideSelectTokenCommonBaseView?: boolean;
|
|
18
|
+
}
|
|
15
19
|
export declare const TokenAmountFieldMax: ({ id, token, tokens, signer, placeholder, onTokenSelect, onAmountChange, onAddressChange, afterBalanceEl, hideSelectTokenCommonBaseView, }: TokenAmountFieldMax) => JSX.Element;
|
|
16
20
|
interface TokenAmountFieldImpactPriceProps extends TokenAmountFieldProps {
|
|
17
21
|
percentage: number;
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
import { Provider } from "@reef-chain/evm-provider";
|
|
2
|
+
import { NotifyFun, ReefSigner, Token } from "../../state";
|
|
1
3
|
import "../PoolActions/pool-actions.css";
|
|
2
4
|
import "./Send.css";
|
|
5
|
+
interface Send {
|
|
6
|
+
tokens: Token[];
|
|
7
|
+
signer: ReefSigner;
|
|
8
|
+
provider: Provider;
|
|
9
|
+
accounts: ReefSigner[];
|
|
10
|
+
notify: NotifyFun;
|
|
11
|
+
tokenAddress?: string;
|
|
12
|
+
isWalletConnect?: boolean;
|
|
13
|
+
handleWalletConnectModal?: (val: boolean) => void;
|
|
14
|
+
}
|
|
3
15
|
export declare const Send: ({ signer, tokens, accounts, provider, tokenAddress, isWalletConnect, handleWalletConnectModal }: Send) => JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -1 +1,14 @@
|
|
|
1
|
+
import { Provider } from '@reef-chain/evm-provider';
|
|
2
|
+
import { ReefSigner, Token, TokenWithAmount } from '../../state';
|
|
3
|
+
import { TxStatusHandler } from '../../utils/transactionUtil';
|
|
4
|
+
interface TransferComponent {
|
|
5
|
+
tokens: Token[];
|
|
6
|
+
from: ReefSigner;
|
|
7
|
+
token?: TokenWithAmount;
|
|
8
|
+
provider: Provider;
|
|
9
|
+
onTxUpdate?: TxStatusHandler;
|
|
10
|
+
accounts: ReefSigner[];
|
|
11
|
+
currentAccount: ReefSigner;
|
|
12
|
+
}
|
|
1
13
|
export declare const TransferComponent: ({ tokens, from, token, provider, onTxUpdate, currentAccount, accounts, }: TransferComponent) => JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -7,6 +7,11 @@ interface ButtonProps extends React.PropsWithChildren<{}> {
|
|
|
7
7
|
export declare const Button: React.FC<ButtonProps>;
|
|
8
8
|
export declare const EmptyButton: React.FC<ButtonProps>;
|
|
9
9
|
export declare const BackButton: ({ onClick }: ButtonProps) => JSX.Element;
|
|
10
|
+
interface SwitchTokenButton extends React.PropsWithChildren<{}> {
|
|
11
|
+
addIcon?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
}
|
|
10
15
|
interface IconButton extends React.PropsWithChildren<{}> {
|
|
11
16
|
onClick?: () => void;
|
|
12
17
|
}
|
|
@@ -21,6 +21,10 @@ export declare const CloseIcon: ({ small }: BaseIcon) => JSX.Element;
|
|
|
21
21
|
export declare const ExploreIcon: ({ small }: BaseIcon) => JSX.Element;
|
|
22
22
|
export declare const CopyIcon: ({ small }: BaseIcon) => JSX.Element;
|
|
23
23
|
export declare const PlusIcon: ({ small }: BaseIcon) => JSX.Element;
|
|
24
|
+
interface TokenIcon extends BaseIcon {
|
|
25
|
+
src: string;
|
|
26
|
+
address?: string;
|
|
27
|
+
}
|
|
24
28
|
/**
|
|
25
29
|
* Returns icon url if exists, otherwise return sample icon based on calculated
|
|
26
30
|
* checksum from provided address. Returned sample icon is svg encoded to base64
|
|
@@ -28,4 +32,7 @@ export declare const PlusIcon: ({ small }: BaseIcon) => JSX.Element;
|
|
|
28
32
|
*/
|
|
29
33
|
export declare const getIconUrl: (tokenAddress?: string) => string;
|
|
30
34
|
export declare const TokenIcon: ({ src, address }: TokenIcon) => JSX.Element;
|
|
35
|
+
interface ReefAddressIcon {
|
|
36
|
+
address: string;
|
|
37
|
+
}
|
|
31
38
|
export declare const ReefAddressIcon: ({ address }: ReefAddressIcon) => JSX.Element;
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
interface Input {
|
|
3
|
+
value?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
maxLength?: number;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
onChange?: (value: string) => void;
|
|
9
|
+
}
|
|
2
10
|
export declare const Input: ({ value, disabled, maxLength, placeholder, className, onChange, }: Input) => JSX.Element;
|
|
11
|
+
interface InputAmount {
|
|
12
|
+
amount: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
min?: number;
|
|
15
|
+
max?: number;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
onAmountChange: (value: string) => void;
|
|
18
|
+
onValidityChange?: (error: InputAmountValidity) => void;
|
|
19
|
+
}
|
|
3
20
|
export interface InputAmountValidity {
|
|
4
21
|
valid: boolean;
|
|
5
22
|
errorMessage?: string;
|
|
@@ -7,6 +24,29 @@ export interface InputAmountValidity {
|
|
|
7
24
|
export declare const InputAmount: ({ amount, onAmountChange, min, max, placeholder, disabled, onValidityChange, }: InputAmount) => JSX.Element;
|
|
8
25
|
export declare const InputGroup: React.FC<React.PropsWithChildren<{}>>;
|
|
9
26
|
export declare const InputTextGroup: React.FC<React.PropsWithChildren<{}>>;
|
|
27
|
+
interface NumberInput {
|
|
28
|
+
min?: number;
|
|
29
|
+
max?: number;
|
|
30
|
+
step?: number;
|
|
31
|
+
value: string;
|
|
32
|
+
className?: string;
|
|
33
|
+
placeholder?: string;
|
|
34
|
+
onChange: (value: string) => void;
|
|
35
|
+
disableDecimals?: boolean;
|
|
36
|
+
}
|
|
10
37
|
export declare const NumberInput: ({ value, min, max, step, placeholder, onChange, disableDecimals, className, }: NumberInput) => JSX.Element;
|
|
38
|
+
interface PercentageRangeAmount {
|
|
39
|
+
value: number;
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
onChange: (value: number) => void;
|
|
42
|
+
}
|
|
11
43
|
export declare const PercentageRangeAmount: ({ value, disabled, onChange, }: PercentageRangeAmount) => JSX.Element;
|
|
44
|
+
interface CheckboxInput {
|
|
45
|
+
checked: boolean;
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
onChange: (value: any) => void;
|
|
48
|
+
id: string;
|
|
49
|
+
labelText?: string;
|
|
50
|
+
}
|
|
12
51
|
export declare const CheckboxInput: ({ checked, disabled, onChange, id, labelText, }: CheckboxInput) => JSX.Element;
|
|
52
|
+
export {};
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const Label: React.FC<React.PropsWithChildren<{}>>;
|
|
3
|
+
interface ConfirmLabel {
|
|
4
|
+
title: string;
|
|
5
|
+
value: string;
|
|
6
|
+
titleSize?: string;
|
|
7
|
+
valueSize?: string;
|
|
8
|
+
}
|
|
3
9
|
export declare const ConfirmLabel: ({ title, value, titleSize, valueSize, }: ConfirmLabel) => JSX.Element;
|
|
4
10
|
export declare const FormLabel: React.FC<React.PropsWithChildren<{}>>;
|
|
5
11
|
export declare const TransactionWarningLabel: React.FC<React.PropsWithChildren<{}>>;
|
|
12
|
+
export {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export declare const Loading: () => JSX.Element;
|
|
2
2
|
export declare const LoadingButtonIcon: () => JSX.Element;
|
|
3
|
+
interface LoadingWithText {
|
|
4
|
+
text: string;
|
|
5
|
+
}
|
|
3
6
|
export declare const LoadingWithText: ({ text }: LoadingWithText) => JSX.Element;
|
|
4
7
|
export declare const LoadingComponent: ({ text }: LoadingWithText) => JSX.Element;
|
|
5
8
|
export declare const LoadingButtonIconWithText: ({ text, }: LoadingWithText) => JSX.Element;
|
|
9
|
+
export {};
|