@reef-chain/react-lib 2.6.4 → 3.0.0

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 (66) hide show
  1. package/dist/components/AccountSelector/AccountInlineInfo.d.ts +1 -0
  2. package/dist/components/AccountSelector/AccountSelector.d.ts +1 -0
  3. package/dist/components/AddLiquidity/index.d.ts +1 -0
  4. package/dist/components/EvmBind/EvmBindComponent.d.ts +1 -0
  5. package/dist/components/NFT/index.d.ts +1 -0
  6. package/dist/components/OverlayAction/index.d.ts +2 -1
  7. package/dist/components/Overlays/OverlayNFT.d.ts +3 -1
  8. package/dist/components/Overlays/OverlaySend.d.ts +1 -0
  9. package/dist/components/Overlays/OverlaySendNft.d.ts +3 -1
  10. package/dist/components/Overlays/OverlaySwap.d.ts +1 -0
  11. package/dist/components/PoolActions/ConfirmPopups/Address.d.ts +1 -0
  12. package/dist/components/PoolActions/ConfirmPopups/Bond.d.ts +1 -0
  13. package/dist/components/PoolActions/ConfirmPopups/Provide.d.ts +1 -0
  14. package/dist/components/PoolActions/ConfirmPopups/Send.d.ts +1 -0
  15. package/dist/components/PoolActions/ConfirmPopups/SummaryItem.d.ts +1 -0
  16. package/dist/components/PoolActions/ConfirmPopups/Token.d.ts +1 -0
  17. package/dist/components/PoolActions/ConfirmPopups/Trade.d.ts +1 -0
  18. package/dist/components/PoolActions/ConfirmPopups/Withdraw.d.ts +1 -0
  19. package/dist/components/PoolActions/Finalizing.d.ts +1 -0
  20. package/dist/components/PoolActions/Provide.d.ts +1 -0
  21. package/dist/components/PoolActions/TokenDropdown.d.ts +1 -0
  22. package/dist/components/PoolActions/TokenField.d.ts +1 -0
  23. package/dist/components/PoolActions/Trade.d.ts +1 -0
  24. package/dist/components/PoolActions/UsdAmountField.d.ts +1 -0
  25. package/dist/components/PoolActions/Withdraw.d.ts +1 -0
  26. package/dist/components/RemoveLiquidity/RemoveConfirmationModal.d.ts +1 -0
  27. package/dist/components/RemoveLiquidity/index.d.ts +1 -0
  28. package/dist/components/SelectToken/index.d.ts +1 -0
  29. package/dist/components/SwapComponent/SwapConfirmationModal.d.ts +1 -0
  30. package/dist/components/SwapComponent/index.d.ts +1 -0
  31. package/dist/components/TokenFields/TokenAmountField.d.ts +2 -2
  32. package/dist/components/TokenFields/TokenAmountView.d.ts +1 -0
  33. package/dist/components/Tokens/Skeleton.d.ts +7 -0
  34. package/dist/components/Tokens/TokenCard.d.ts +24 -0
  35. package/dist/components/Tokens/index.d.ts +2 -0
  36. package/dist/components/Transfer/Send.d.ts +1 -0
  37. package/dist/components/Transfer/SendConfirmationModal.d.ts +1 -0
  38. package/dist/components/Transfer/TransferComponent.d.ts +1 -0
  39. package/dist/components/WalletSelector/WalletSelector.d.ts +1 -0
  40. package/dist/components/common/Alert/index.d.ts +1 -1
  41. package/dist/components/common/Button/index.d.ts +5 -5
  42. package/dist/components/common/Card/index.d.ts +3 -3
  43. package/dist/components/common/Display/index.d.ts +12 -12
  44. package/dist/components/common/Dropdown/index.d.ts +2 -2
  45. package/dist/components/common/Icons/index.d.ts +1 -1
  46. package/dist/components/common/Input/index.d.ts +2 -2
  47. package/dist/components/common/Label/index.d.ts +3 -3
  48. package/dist/components/common/List/index.d.ts +2 -2
  49. package/dist/components/common/Loading/index.d.ts +1 -0
  50. package/dist/components/common/Logos/MetaMaskLogo.d.ts +1 -0
  51. package/dist/components/common/Logos/WalletConnectLogo.d.ts +1 -0
  52. package/dist/components/common/Modal/index.d.ts +7 -7
  53. package/dist/components/common/Text/index.d.ts +6 -6
  54. package/dist/components/common/Tooltip/index.d.ts +1 -1
  55. package/dist/components/index.d.ts +1 -0
  56. package/dist/index.css +1 -1
  57. package/dist/index.css.map +1 -1
  58. package/dist/index.js +4 -4
  59. package/dist/index.js.map +1 -1
  60. package/dist/index.modern.js +4 -4
  61. package/dist/index.modern.js.map +1 -1
  62. package/dist/l10n/l10n.d.ts +176 -0
  63. package/dist/utils/displayBalance.d.ts +4 -0
  64. package/dist/utils/tokenUtil.d.ts +0 -1
  65. package/dist/utils/utils.d.ts +3 -0
  66. package/package.json +10 -10
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AccountInlineInfo {
2
3
  name: string;
3
4
  address: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./AccountSelector.css";
2
3
  import { AccountCreationData, Extension } from "@reef-chain/ui-kit/dist/ui-kit/components/organisms/AccountSelector/AccountSelector";
3
4
  import { ReefSigner } from "../../state";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ReefSigner, Token } from '../../state';
2
3
  import { AddLiquidityComponentActions, AddLiquidityState } from '../../store';
3
4
  interface AddLiquidityComponent {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ReefSigner } from '../../state';
2
3
  import { TxStatusHandler } from '../../utils';
3
4
  import './bind.css';
@@ -6,6 +6,7 @@ interface NFTData {
6
6
  name: string;
7
7
  balance: BigNumber;
8
8
  mimetype?: string;
9
+ isDarkMode?: boolean;
9
10
  }
10
11
  export declare const NFTCard: React.FC<NFTData>;
11
12
  export {};
@@ -1,12 +1,13 @@
1
1
  import React from 'react';
2
2
  import './overlay-action.css';
3
- interface OverlayAction {
3
+ interface OverlayAction extends React.PropsWithChildren<{}> {
4
4
  isOpen: boolean;
5
5
  onClose?: () => any;
6
6
  onOpened?: () => any;
7
7
  onClosed?: () => any;
8
8
  className?: string;
9
9
  title?: string;
10
+ isDarkMode?: boolean;
10
11
  }
11
12
  export declare const OverlayAction: React.FC<OverlayAction>;
12
13
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './overlay.css';
2
3
  interface OverlayNFT {
3
4
  nftName?: string;
@@ -12,6 +13,7 @@ interface OverlayNFT {
12
13
  accounts: any;
13
14
  selectedSigner: any;
14
15
  provider: any;
16
+ isDarkMode?: boolean;
15
17
  }
16
- export declare const OverlayNFT: ({ nftName, isOpen, isVideoNFT, iconUrl, onClose, balance, address, contractType, nftId, accounts, selectedSigner, provider, }: OverlayNFT) => JSX.Element;
18
+ export declare const OverlayNFT: ({ nftName, isOpen, isVideoNFT, iconUrl, onClose, balance, address, contractType, nftId, accounts, selectedSigner, provider, isDarkMode, }: OverlayNFT) => JSX.Element;
17
19
  export {};
@@ -11,6 +11,7 @@ interface OverlaySend {
11
11
  provider: Provider | undefined;
12
12
  accounts: ReefSigner[] | undefined;
13
13
  notify: (message: string, type?: Notify) => void;
14
+ isDarkMode?: boolean;
14
15
  }
15
16
  export declare const OverlaySend: React.FC<OverlaySend>;
16
17
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './overlay.css';
2
3
  interface OverlaySendNFT {
3
4
  nftName?: string;
@@ -11,6 +12,7 @@ interface OverlaySendNFT {
11
12
  accounts: any;
12
13
  selectedSigner: any;
13
14
  provider: any;
15
+ isDarkMode?: boolean;
14
16
  }
15
- export declare const OverlaySendNFT: ({ nftName, isOpen, onClose, balance, isVideoNFT, iconUrl, address, nftId, accounts, selectedSigner, provider }: OverlaySendNFT) => JSX.Element;
17
+ export declare const OverlaySendNFT: ({ nftName, isOpen, onClose, balance, isVideoNFT, iconUrl, address, nftId, accounts, selectedSigner, provider, isDarkMode }: OverlaySendNFT) => JSX.Element;
16
18
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { network as libNet } from '@reef-chain/util-lib';
2
3
  import './overlay.css';
3
4
  import { Notify, PoolWithReserves, ReefSigner, Token, TokenPrices } from '../../state';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './confirm-popup.css';
2
3
  export interface Props {
3
4
  address: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './confirm-popup.css';
2
3
  export interface Props {
3
4
  isOpen: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TokenWithAmount } from '../../../state';
2
3
  import './confirm-popup.css';
3
4
  export interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TokenWithAmount } from '../../../state';
2
3
  import './confirm-popup.css';
3
4
  export interface SendPopup {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface Props {
2
3
  label?: string;
3
4
  value?: string | number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './confirm-popup.css';
2
3
  export interface Props {
3
4
  image?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TokenWithAmount } from '../../../state';
2
3
  import './confirm-popup.css';
3
4
  export interface TradePopup {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Pool } from '../../../state';
2
3
  import './confirm-popup.css';
3
4
  export interface Props {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import './finalizing.css';
2
3
  export declare const Finalizing: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AddLiquidityState } from '../../store';
2
3
  import { SelectToken } from './TokenField';
3
4
  import { Token } from '../../state';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Token, TokenWithAmount } from '../../state';
2
3
  import './token-field.css';
3
4
  interface TokenDropdown {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Token, TokenWithAmount } from '../../state';
2
3
  import './token-field.css';
3
4
  export type SelectToken = (token: Token) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SwapState } from '../../store';
2
3
  import { SelectToken } from './TokenField';
3
4
  import { LastPoolReserves, Token } from '../../state';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Token } from '../../state';
2
3
  import './token-field.css';
3
4
  export type SelectToken = (token: Token) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RemoveLiquidityState } from '../../store';
2
3
  interface WithdrawActions {
3
4
  onRemoveLiquidity: () => Promise<void>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Pool } from '../../state';
2
3
  interface RemoveConfirmationModal {
3
4
  id: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RemoveLiquidityComponentActions, RemoveLiquidityState } from '../../store';
2
3
  interface RemoveLiquidityComponent {
3
4
  state: RemoveLiquidityState;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ReefSigner, Token } from '../../state';
2
3
  interface SelectToken {
3
4
  id: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TokenWithAmount } from '../../state';
2
3
  interface SwapConfirmationModal {
3
4
  id?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ReefSigner, Token } from '../../state';
2
3
  import { SwapComponentActions } from '../../store/actions/swap';
3
4
  import { SwapState } from '../../store/reducers/swap';
@@ -1,6 +1,6 @@
1
- import { ReactElement } from 'react';
1
+ import React, { ReactElement } from 'react';
2
2
  import { ReefSigner, Token, TokenWithAmount } from '../../state';
3
- interface TokenAmountFieldProps {
3
+ interface TokenAmountFieldProps extends React.PropsWithChildren<{}> {
4
4
  id?: string;
5
5
  tokens: Token[];
6
6
  placeholder?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface TokenAmountView {
2
3
  name: string;
3
4
  amount: string;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import "./index.css";
3
+ interface Skeleton {
4
+ isDarkMode?: boolean;
5
+ }
6
+ export declare const Skeleton: React.FC<Skeleton>;
7
+ export {};
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import './index.css';
3
+ import { PoolWithReserves, ReefSigner, Token, TokenPrices } from '../../state';
4
+ import { Provider } from '@reef-chain/evm-provider';
5
+ interface TokenCard {
6
+ price: number;
7
+ token: Token;
8
+ onClickPrice?: () => void;
9
+ className?: string;
10
+ tokens: Token[];
11
+ selectedSigner: ReefSigner | undefined;
12
+ provider: Provider | undefined;
13
+ accounts: ReefSigner[] | undefined;
14
+ hideBalance: any;
15
+ tokenPrices: TokenPrices;
16
+ pools: PoolWithReserves[];
17
+ signer: ReefSigner | undefined;
18
+ nw: any;
19
+ useDexConfig: any;
20
+ isReefswapUI: boolean;
21
+ isDarkMode?: boolean;
22
+ }
23
+ export declare const TokenCard: React.FC<TokenCard>;
24
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './Skeleton';
2
+ export * from './TokenCard';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Provider } from "@reef-chain/evm-provider";
2
3
  import { NotifyFun, ReefSigner, Token } from "../../state";
3
4
  import "../PoolActions/pool-actions.css";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TokenWithAmount } from '../../state';
2
3
  interface SendConfirmationModal {
3
4
  id: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Provider } from '@reef-chain/evm-provider';
2
3
  import { ReefSigner, Token, TokenWithAmount } from '../../state';
3
4
  import { TxStatusHandler } from '../../utils/transactionUtil';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Extension } from "@reef-chain/ui-kit/dist/ui-kit/components/organisms/AccountSelector/AccountSelector";
2
3
  import "./WalletSelector.css";
3
4
  export declare const walletSelectorOptions: Record<string, Extension>;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export declare const DangerAlert: React.FC<unknown>;
2
+ export declare const DangerAlert: React.FC<React.PropsWithChildren<{}>>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- interface ButtonProps {
2
+ interface ButtonProps extends React.PropsWithChildren<{}> {
3
3
  onClick?: () => void;
4
4
  disabled?: boolean;
5
5
  className?: string;
@@ -7,18 +7,18 @@ interface ButtonProps {
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 {
10
+ interface SwitchTokenButton extends React.PropsWithChildren<{}> {
11
11
  addIcon?: boolean;
12
12
  disabled?: boolean;
13
13
  onClick?: () => void;
14
14
  }
15
- interface IconButton {
15
+ interface IconButton extends React.PropsWithChildren<{}> {
16
16
  onClick?: () => void;
17
17
  }
18
18
  export declare const SwitchTokenButton: ({ addIcon, disabled, onClick, }: SwitchTokenButton) => JSX.Element;
19
19
  export declare const IconButton: React.FC<IconButton>;
20
- export declare const ButtonGroup: React.FC<unknown>;
21
- interface PercentageButton {
20
+ export declare const ButtonGroup: React.FC<React.PropsWithChildren<{}>>;
21
+ interface PercentageButton extends React.PropsWithChildren<{}> {
22
22
  percentage?: number;
23
23
  onClick?: () => void;
24
24
  }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- export declare const Card: React.FC;
3
- export declare const CardHeader: React.FC<unknown>;
2
+ export declare const Card: React.FC<React.PropsWithChildren<{}>>;
3
+ export declare const CardHeader: React.FC<React.PropsWithChildren<{}>>;
4
4
  export declare const CardHeaderBlank: () => JSX.Element;
5
5
  interface Title {
6
6
  title: string;
@@ -15,5 +15,5 @@ interface ErrorCardProps {
15
15
  message: string;
16
16
  }
17
17
  export declare const ErrorCard: ({ title, message }: ErrorCardProps) => JSX.Element;
18
- export declare const SubCard: React.FC<unknown>;
18
+ export declare const SubCard: React.FC<React.PropsWithChildren<{}>>;
19
19
  export {};
@@ -1,22 +1,22 @@
1
1
  import React from 'react';
2
- interface FlexRow {
2
+ interface FlexRow extends React.PropsWithChildren<{}> {
3
3
  className?: string;
4
4
  children?: any;
5
5
  }
6
6
  export declare const FlexRow: React.FC<FlexRow>;
7
- export declare const FullRow: React.FC<unknown>;
8
- export declare const FlexColumn: React.FC<unknown>;
9
- export declare const FullColumn: React.FC<unknown>;
10
- export declare const CenterRow: React.FC<unknown>;
11
- export declare const CenterColumn: React.FC<unknown>;
12
- export declare const ContentCenter: React.FC<unknown>;
13
- export declare const ContentBetween: React.FC<unknown>;
14
- export declare const ContentEnd: React.FC<unknown>;
15
- interface Width {
7
+ export declare const FullRow: React.FC<React.PropsWithChildren<{}>>;
8
+ export declare const FlexColumn: React.FC<React.PropsWithChildren<{}>>;
9
+ export declare const FullColumn: React.FC<React.PropsWithChildren<{}>>;
10
+ export declare const CenterRow: React.FC<React.PropsWithChildren<{}>>;
11
+ export declare const CenterColumn: React.FC<React.PropsWithChildren<{}>>;
12
+ export declare const ContentCenter: React.FC<React.PropsWithChildren<{}>>;
13
+ export declare const ContentBetween: React.FC<React.PropsWithChildren<{}>>;
14
+ export declare const ContentEnd: React.FC<React.PropsWithChildren<{}>>;
15
+ interface Width extends React.PropsWithChildren<{}> {
16
16
  size: number;
17
17
  }
18
18
  export declare const Width: React.FC<Width>;
19
- interface Size {
19
+ interface Size extends React.PropsWithChildren<{}> {
20
20
  size?: '1' | '2' | '3' | '4' | '5' | '6' | 'auto';
21
21
  }
22
22
  export declare const Margin: React.FC<Size>;
@@ -31,5 +31,5 @@ export declare const PE: React.FC<Size>;
31
31
  export declare const PB: React.FC<Size>;
32
32
  export declare const PS: React.FC<Size>;
33
33
  export declare const Border: React.FC<Size>;
34
- export declare const ComponentCenter: React.FC<unknown>;
34
+ export declare const ComponentCenter: React.FC<React.PropsWithChildren<{}>>;
35
35
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface Dropdown {
2
+ interface Dropdown extends React.PropsWithChildren<{}> {
3
3
  id?: string;
4
4
  }
5
- export declare const Dropdown: React.FC<unknown>;
5
+ export declare const Dropdown: React.FC<React.PropsWithChildren<{}>>;
6
6
  export declare const DropdownButton: React.FC<Dropdown>;
7
7
  interface DropdownMenu extends Dropdown {
8
8
  size?: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- interface BaseIcon {
2
+ interface BaseIcon extends React.PropsWithChildren<{}> {
3
3
  small?: boolean;
4
4
  }
5
5
  interface Icon extends BaseIcon {
@@ -22,8 +22,8 @@ export interface InputAmountValidity {
22
22
  errorMessage?: string;
23
23
  }
24
24
  export declare const InputAmount: ({ amount, onAmountChange, min, max, placeholder, disabled, onValidityChange, }: InputAmount) => JSX.Element;
25
- export declare const InputGroup: React.FC<unknown>;
26
- export declare const InputTextGroup: React.FC<unknown>;
25
+ export declare const InputGroup: React.FC<React.PropsWithChildren<{}>>;
26
+ export declare const InputTextGroup: React.FC<React.PropsWithChildren<{}>>;
27
27
  interface NumberInput {
28
28
  min?: number;
29
29
  max?: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare const Label: React.FC<unknown>;
2
+ export declare const Label: React.FC<React.PropsWithChildren<{}>>;
3
3
  interface ConfirmLabel {
4
4
  title: string;
5
5
  value: string;
@@ -7,6 +7,6 @@ interface ConfirmLabel {
7
7
  valueSize?: string;
8
8
  }
9
9
  export declare const ConfirmLabel: ({ title, value, titleSize, valueSize, }: ConfirmLabel) => JSX.Element;
10
- export declare const FormLabel: React.FC<unknown>;
11
- export declare const TransactionWarningLabel: React.FC<unknown>;
10
+ export declare const FormLabel: React.FC<React.PropsWithChildren<{}>>;
11
+ export declare const TransactionWarningLabel: React.FC<React.PropsWithChildren<{}>>;
12
12
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- interface ListItem {
2
+ interface ListItem extends React.PropsWithChildren<{}> {
3
3
  onClick?: () => void;
4
4
  }
5
- export declare const List: React.FC<unknown>;
5
+ export declare const List: React.FC<ListItem>;
6
6
  export declare const ListItem: React.FC<ListItem>;
7
7
  export declare const ListItemDismissModal: React.FC<ListItem>;
8
8
  export declare const ListItemActionModal: React.FC<ListItem>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const Loading: () => JSX.Element;
2
3
  export declare const LoadingButtonIcon: () => JSX.Element;
3
4
  interface LoadingWithText {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface PropsIcon {
2
3
  className?: string;
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface PropsIcon {
2
3
  className?: string;
3
4
  }
@@ -1,23 +1,23 @@
1
1
  import React from 'react';
2
- interface Modal {
2
+ interface Modal extends React.PropsWithChildren<{}> {
3
3
  id?: string;
4
4
  }
5
5
  export declare const Modal: React.FC<Modal>;
6
- export declare const ModalHeader: React.FC<unknown>;
7
- export declare const ModalBody: React.FC<unknown>;
8
- export declare const ModalFooter: React.FC<unknown>;
9
- interface ModalClose {
6
+ export declare const ModalHeader: React.FC<React.PropsWithChildren<{}>>;
7
+ export declare const ModalBody: React.FC<React.PropsWithChildren<{}>>;
8
+ export declare const ModalFooter: React.FC<React.PropsWithChildren<{}>>;
9
+ interface ModalClose extends React.PropsWithChildren<{}> {
10
10
  onClick?: () => void;
11
11
  className?: string;
12
12
  }
13
13
  export declare const ModalClose: React.FC<ModalClose>;
14
- interface OpenModalButton {
14
+ interface OpenModalButton extends React.PropsWithChildren<{}> {
15
15
  id?: string;
16
16
  disabled?: boolean;
17
17
  className?: string;
18
18
  }
19
19
  export declare const OpenModalButton: React.FC<OpenModalButton>;
20
- interface ConfirmationModal {
20
+ interface ConfirmationModal extends React.PropsWithChildren<{}> {
21
21
  id?: string;
22
22
  title: string;
23
23
  confirmFun: () => void;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { Color } from '../../../state/types';
3
- export declare const LargeTitle: React.FC<unknown>;
4
- export declare const Title: React.FC<unknown>;
5
- export declare const LeadText: React.FC<unknown>;
6
- interface Text {
3
+ export declare const LargeTitle: React.FC<React.PropsWithChildren<{}>>;
4
+ export declare const Title: React.FC<React.PropsWithChildren<{}>>;
5
+ export declare const LeadText: React.FC<React.PropsWithChildren<{}>>;
6
+ interface Text extends React.PropsWithChildren<{}> {
7
7
  size?: number;
8
8
  className?: string;
9
9
  }
@@ -13,6 +13,6 @@ interface ColorText extends Text {
13
13
  color?: Color;
14
14
  }
15
15
  export declare const ColorText: React.FC<ColorText>;
16
- export declare const MiniText: React.FC<unknown>;
17
- export declare const MutedText: React.FC<unknown>;
16
+ export declare const MiniText: React.FC<React.PropsWithChildren<{}>>;
17
+ export declare const MutedText: React.FC<React.PropsWithChildren<{}>>;
18
18
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- interface Tooltip {
2
+ interface Tooltip extends React.PropsWithChildren<{}> {
3
3
  id?: string;
4
4
  }
5
5
  export declare const QuestionTooltip: React.FC<Tooltip>;
@@ -13,3 +13,4 @@ export * from './OverlayAction';
13
13
  export * from './WalletSelector/WalletSelector';
14
14
  export * from './NFT';
15
15
  export * from './Overlays';
16
+ export * from './Tokens';