@matchain/matchid-sdk-react 0.1.42-alpha.2 → 0.1.42-alpha.4

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 (63) hide show
  1. package/dist/{chunk-2YN5Y3SM.mjs → chunk-FZUZ63FZ.mjs} +2 -2
  2. package/dist/chunk-GEM2V3W6.mjs +4638 -0
  3. package/dist/chunk-GEM2V3W6.mjs.map +1 -0
  4. package/dist/chunk-SQIJR7RA.mjs +29 -0
  5. package/dist/chunk-SQIJR7RA.mjs.map +1 -0
  6. package/dist/components/index.js +647 -452
  7. package/dist/components/index.js.map +1 -1
  8. package/dist/components/index.mjs +4 -1
  9. package/dist/hooks/api/index.js +113 -76
  10. package/dist/hooks/api/index.js.map +1 -1
  11. package/dist/hooks/api/index.mjs +3 -2
  12. package/dist/hooks/index.js +321 -151
  13. package/dist/hooks/index.js.map +1 -1
  14. package/dist/hooks/index.mjs +2 -1
  15. package/dist/index.css +84 -4
  16. package/dist/index.js +1033 -625
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.mjs +6 -2
  19. package/dist/types/index.js +44 -0
  20. package/dist/types/index.js.map +1 -0
  21. package/dist/types/index.mjs +10 -0
  22. package/dist/types/index.mjs.map +1 -0
  23. package/example/package.json +1 -0
  24. package/example/src/App.tsx +54 -28
  25. package/example/src/components/ButtonGroup/index.tsx +10 -0
  26. package/example/src/components/Login/index.tsx +2 -2
  27. package/example/src/components/RoutePrivate/index.tsx +4 -3
  28. package/example/src/config/chains/index.ts +2 -0
  29. package/example/src/config/chains/matchMain.ts +27 -0
  30. package/example/src/config/chains/matchTest.ts +33 -0
  31. package/example/src/config/index.ts +6 -2
  32. package/example/src/pages/User/components/BindListModal.tsx +10 -0
  33. package/example/src/pages/User/components/PohListModal.tsx +10 -0
  34. package/example/src/pages/User/components/QueryDisplay.tsx +25 -0
  35. package/example/src/pages/{User.tsx → User/index.tsx} +55 -84
  36. package/example/src/pages/Wallet.tsx +133 -44
  37. package/example/src/store/useLocalStore.ts +45 -0
  38. package/package.json +7 -2
  39. package/dist/assets/icon/index.d.mts +0 -133
  40. package/dist/assets/icon/index.d.ts +0 -133
  41. package/dist/chunk-PZPEWHBV.mjs +0 -4251
  42. package/dist/chunk-PZPEWHBV.mjs.map +0 -1
  43. package/dist/components/index.d.mts +0 -4
  44. package/dist/components/index.d.ts +0 -4
  45. package/dist/config/chains/index.d.mts +0 -2
  46. package/dist/config/chains/index.d.ts +0 -2
  47. package/dist/hooks/api/index.d.mts +0 -5
  48. package/dist/hooks/api/index.d.ts +0 -5
  49. package/dist/hooks/index.d.mts +0 -4
  50. package/dist/hooks/index.d.ts +0 -4
  51. package/dist/index-B4YpKSY3.d.ts +0 -94
  52. package/dist/index-CxY3u9Rv.d.ts +0 -89
  53. package/dist/index-DCReY5T2.d.mts +0 -89
  54. package/dist/index-DXRGMAbv.d.mts +0 -83
  55. package/dist/index-DXRGMAbv.d.ts +0 -83
  56. package/dist/index-DbjibQ5d.d.mts +0 -65
  57. package/dist/index-GcpJCj6O.d.ts +0 -65
  58. package/dist/index-_k6h9w0P.d.mts +0 -94
  59. package/dist/index.d.mts +0 -33
  60. package/dist/index.d.ts +0 -33
  61. package/dist/types.d-DwF-Pkvh.d.mts +0 -179
  62. package/dist/types.d-DwF-Pkvh.d.ts +0 -179
  63. /package/dist/{chunk-2YN5Y3SM.mjs.map → chunk-FZUZ63FZ.mjs.map} +0 -0
@@ -1,23 +1,92 @@
1
- import {Hooks} from "@matchain/matchid-sdk-react"
2
- import React, {useState} from "react";
3
- import {createPublicClient, http, formatUnits, parseUnits, createWalletClient, parseGwei, Account} from "viem";
1
+ import {useWallet} from "@matchain/matchid-sdk-react/hooks"
2
+ import {Input,Button} from "@matchain/matchid-sdk-react/components"
3
+ import React, {useEffect, useState} from "react";
4
+ import {
5
+ createPublicClient,
6
+ formatUnits,
7
+ parseUnits,
8
+ parseGwei,
9
+ Account,
10
+ Transport,
11
+ HttpTransportConfig, http, TransactionSerializable
12
+ } from "viem";
4
13
  import {useQuery} from "@tanstack/react-query";
5
- import {bscTestnet} from 'viem/chains';
14
+ import {
15
+ mainnet,
16
+ arbitrum,
17
+ arbitrumGoerli,
18
+ arbitrumNova,
19
+ arbitrumSepolia,
20
+ avalanche,
21
+ base,
22
+ baseSepolia,
23
+ baseGoerli,
24
+ bsc,
25
+ bscTestnet,
26
+ goerli,
27
+ linea,
28
+ lineaGoerli,
29
+ lineaSepolia,
30
+ sepolia,
31
+ polygonMumbai,
32
+ polygon,
33
+ polygonAmoy,
34
+ zkSync,
35
+ } from 'viem/chains';
36
+ import {matchMain, matchTest} from "@/config/chains";
37
+ import RoutePrivate from "@/components/RoutePrivate";
38
+ import useLocalStore from "@/store/useLocalStore";
39
+ import ButtonGroup from "@/components/ButtonGroup";
40
+ import type {SerializeTransactionFn} from "viem/utils/transaction/serializeTransaction";
6
41
 
7
- const {useWallet} = Hooks
42
+ const chainList = [
43
+ mainnet,
44
+ bsc,
45
+ bscTestnet,
46
+ matchMain,
47
+ matchTest,
48
+ arbitrum,
49
+ arbitrumGoerli,
50
+ arbitrumNova,
51
+ arbitrumSepolia,
52
+ avalanche,
53
+ base,
54
+ baseSepolia,
55
+ baseGoerli,
56
+ goerli,
57
+ linea,
58
+ lineaGoerli,
59
+ lineaSepolia,
60
+ sepolia,
61
+ polygonMumbai,
62
+ polygon,
63
+ polygonAmoy,
64
+ zkSync,
65
+ ]
8
66
 
9
67
  export default function Wallet() {
68
+
69
+ const {initChainId,setInitChainId} = useLocalStore()
70
+
10
71
  const [message, setMessage] = useState('hello')
11
72
  const [toAddress, setToAddress] = useState('')
12
73
  const [toAmount, setToAmount] = useState('0.0001')
13
74
  const [data, setToData] = useState('0x')
14
- const {address, evmAccount} = useWallet()
15
- const chain = bscTestnet
75
+ const {address, evmAccount, createWalletClient,walletReady} = useWallet()
76
+ const chain = chainList.find((chain) => chain.id === initChainId)
77
+
16
78
  const walletClient = createWalletClient({
17
79
  chain: chain,
18
80
  transport: http(),
81
+ // account:evmAccount
19
82
  })
20
83
 
84
+ useEffect(() => {
85
+ if (address && !toAddress) {
86
+ setToAddress(address)
87
+ }
88
+ }, [address, toAddress]);
89
+
21
90
 
22
91
  const [hash, setHash] = useState('')
23
92
  const [transactionSign, setTransactionSign] = useState('')
@@ -25,7 +94,7 @@ export default function Wallet() {
25
94
 
26
95
  const publicClient = createPublicClient({
27
96
  chain: chain,
28
- transport: http(),
97
+ transport: http() as Transport,
29
98
  });
30
99
 
31
100
  const balanceQuery = useQuery({
@@ -46,7 +115,13 @@ export default function Wallet() {
46
115
  }
47
116
  })
48
117
 
118
+ useEffect(() => {
119
+ gasPriceQuery.refetch()
120
+ balanceQuery.refetch()
121
+ }, [chain]);
122
+
49
123
  const onSign = async () => {
124
+ if (!walletClient) return;
50
125
  const res = await walletClient.signMessage({
51
126
  message,
52
127
  account: evmAccount as Account
@@ -55,43 +130,62 @@ export default function Wallet() {
55
130
  }
56
131
 
57
132
  const onSignTransaction = async () => {
58
- const transaction = {
59
- account:evmAccount as Account,
60
- to: toAddress as `0x${string}`,
61
- value: parseUnits(toAmount, 18),
62
- data: data as `0x${string}`,
133
+ if (!walletClient||!evmAccount) return
134
+ try {
135
+
136
+ const transaction = {
137
+ to: toAddress as `0x${string}`,
138
+ value: parseUnits(toAmount, 18),
139
+ data: data as `0x${string}`,
140
+ chain: chain
141
+ }
142
+ const request = await walletClient.prepareTransactionRequest(transaction)
143
+ const res = await evmAccount.signTransaction!(request as TransactionSerializable)
144
+ setTransactionSign(res)
145
+ } catch (e) {
146
+ console.error(e)
63
147
  }
64
- const request = await walletClient.prepareTransactionRequest(transaction)
65
- const res = await walletClient.signTransaction(request)
66
- setTransactionSign(res)
67
148
  }
68
149
 
69
150
  const onSendTransaction = async () => {
151
+ if (!walletClient) return
70
152
  const res = await walletClient.sendTransaction({
71
- account:evmAccount as Account,
153
+ // account:evmAccount as Account,
72
154
  to: toAddress as `0x${string}`,
73
155
  value: parseUnits(toAmount, 18),
74
156
  data: data as `0x${string}`,
157
+ chain: chain
75
158
  })
76
159
  setHash(res)
77
160
  }
78
161
 
79
162
 
80
163
  return <div>
81
- <div className={`text-ellipsis break-words`}>Chain:{chain.name}</div>
82
- <div className={`text-ellipsis break-words`}>address:{address}</div>
164
+ <ButtonGroup title={"Wallet Ready"}>
165
+ {walletReady ? 'Ready' : 'Not Ready'}
166
+ </ButtonGroup>
167
+ <ButtonGroup title={"CreateWalletClient Chain"}>
168
+ <select value={initChainId} onChange={(e) => setInitChainId(parseInt(e.target.value))}>
169
+ {chainList.map((chain,index) => {
170
+ return <option key={index} value={chain.id}>{chain.name}({chain.id})</option>
171
+ })}
172
+ </select>
173
+ </ButtonGroup>
174
+ <ButtonGroup title={"Ethereum address"}>
175
+ <div className={`flex-1 flex-wrap break-all`}>{address}</div>
176
+ </ButtonGroup>
177
+ <ButtonGroup title={"Signature Message"}>
178
+ <input className="border px-[8px]" type={'text'} placeholder={'message'} value={message}
179
+ onChange={(e) => setMessage(e.target.value)}/>
180
+ <Button onClick={onSign} size={"sm"} disabled={!walletReady}>Sign message</Button>
181
+ </ButtonGroup>
182
+ <ButtonGroup title={"Signature Result"}>
183
+ <div className={`flex-1 flex-wrap break-all`}>{signature||'-'}</div>
184
+ </ButtonGroup>
185
+
83
186
  <div className={`text-ellipsis break-words`}>balance:{balanceQuery.data?.toString()} wei/{balanceEth} eth</div>
84
187
  <div className={`text-ellipsis break-words`}>gas price:{gasPriceQuery.data?.toString()} wei</div>
85
- <div className={`flex gap-[20px]`}>
86
- <input className="border" type={'text'} placeholder={'message'} value={message}
87
- onChange={(e) => setMessage(e.target.value)}/>
88
- <button className={`bg-gray-300 p-1 rounded`}
89
- onClick={onSign}>Sign message
90
- </button>
91
- </div>
92
- <div>
93
- Signature:{signature}
94
- </div>
188
+
95
189
  <div className="text-bold">
96
190
  Send Transaction
97
191
  </div>
@@ -110,21 +204,16 @@ export default function Wallet() {
110
204
  <input className="border" type={'text'} placeholder={'data'} value={data}
111
205
  onChange={(e) => setToData(e.target.value)}/>
112
206
  </div>
113
- <div className={`flex gap-[20px]`}>
114
- <button className={`bg-gray-300 p-1 rounded`}
115
- onClick={onSignTransaction}>Sign
116
- </button>
117
- <button className={`bg-gray-300 p-1 rounded`}
118
- onClick={onSendTransaction}>Send
119
- </button>
120
- </div>
121
- <div>
122
- Sign:{transactionSign}
123
- </div>
124
- <div>
125
- TxHash:{hash}
126
- </div>
127
-
207
+ <ButtonGroup>
208
+ <Button onClick={onSignTransaction} size={"sm"} disabled={!walletReady}>Sign</Button>
209
+ <Button onClick={onSendTransaction} size={"sm"} disabled={!walletReady}>Send</Button>
210
+ </ButtonGroup>
211
+ <ButtonGroup title={"TxSignature"}>
212
+ <div className={`flex-1 flex-wrap break-all`}>{transactionSign || '-'}</div>
213
+ </ButtonGroup>
214
+ <ButtonGroup title={"TxHash"}>
215
+ <div className={`flex-1 flex-wrap break-all`}>{hash || '-'}</div>
216
+ </ButtonGroup>
128
217
 
129
218
  </div>
130
219
  }
@@ -0,0 +1,45 @@
1
+ import {create} from 'zustand';
2
+ import {devtools, persist} from 'zustand/middleware';
3
+ import {LocaleType} from "@matchain/matchid-sdk-react/types";
4
+
5
+ interface StoreState {
6
+ appid: string
7
+ endpoints: {
8
+ back: string;
9
+ auth: string;
10
+ }
11
+ locale: LocaleType;
12
+
13
+
14
+ setAppid: (appid: string) => void;
15
+ setEndpoints: (endpoints: StoreState['endpoints']) => void
16
+ setLocale: (locale: LocaleType) => void
17
+
18
+ initChainId: number;
19
+ setInitChainId: (initChainId: number) => void
20
+
21
+ }
22
+
23
+ const persistedState = persist<StoreState>(
24
+ set => ({
25
+ appid: '',
26
+ endpoints: {
27
+ back: "https://api.matchid.ai/",
28
+ auth: "https://auth.matchid.ai/"
29
+ },
30
+ locale: 'en',
31
+ setAppid: (appid: string) => set({appid: appid}),
32
+ setEndpoints: (endpoints: StoreState['endpoints']) => set({endpoints}),
33
+ setLocale: (locale: LocaleType) => set({locale}),
34
+
35
+ initChainId:1,
36
+ setInitChainId: (initChainId: number) => set({initChainId})
37
+ }),
38
+ {name: 'match-example-local'}
39
+ );
40
+
41
+ const useLocalStore = create(devtools(persistedState));
42
+
43
+ export const localStore = useLocalStore;
44
+
45
+ export default useLocalStore;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matchain/matchid-sdk-react",
3
- "version": "0.1.42-alpha.2",
3
+ "version": "0.1.42-alpha.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -28,6 +28,10 @@
28
28
  "import": "./dist/assets/icon/index.mjs",
29
29
  "require": "./dist/assets/icon/index.js"
30
30
  },
31
+ "./types": {
32
+ "import": "./dist/types/index.mjs",
33
+ "require": "./dist/types/index.js"
34
+ },
31
35
  "./index.css": "./dist/index.css"
32
36
  },
33
37
  "scripts": {
@@ -81,6 +85,7 @@
81
85
  "chokidar": "^4.0.3",
82
86
  "npm-run-all": "^4.1.5",
83
87
  "tsup": "^8.3.5",
84
- "typescript": "^5.6.3"
88
+ "typescript": "^5.6.3",
89
+ "url-loader": "^4.1.1"
85
90
  }
86
91
  }
@@ -1,133 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React, { CSSProperties } from 'react';
3
- import { m as IconProps$1 } from '../../types.d-DwF-Pkvh.mjs';
4
-
5
- declare function BackIcon({ color, size, className, style }: {
6
- color?: string;
7
- size?: number;
8
- style?: CSSProperties;
9
- className?: string;
10
- }): react_jsx_runtime.JSX.Element;
11
-
12
- declare function CloseIcon({ color, size, style }: {
13
- color?: string;
14
- size?: number;
15
- style?: CSSProperties;
16
- }): react_jsx_runtime.JSX.Element;
17
-
18
- declare function XIcon({ size }: {
19
- size?: number;
20
- }): react_jsx_runtime.JSX.Element;
21
-
22
- declare function GoogleIcon({ size }: {
23
- size?: number;
24
- }): react_jsx_runtime.JSX.Element;
25
-
26
- declare function WalletIcon({ size, }: {
27
- size?: number;
28
- }): react_jsx_runtime.JSX.Element;
29
-
30
- declare function TelegramIcon({ size, }: {
31
- size?: number;
32
- }): react_jsx_runtime.JSX.Element;
33
-
34
- declare function EmailIcon({ size, }: {
35
- size?: number;
36
- }): react_jsx_runtime.JSX.Element;
37
-
38
- declare function ArrowRightIcon({ color, size, className, style }: IconProps$1): react_jsx_runtime.JSX.Element;
39
-
40
- declare function CloseRoundIcon({ size, ...props }: IconProps$1): react_jsx_runtime.JSX.Element;
41
-
42
- interface LoadingIconProps {
43
- size?: number;
44
- className?: string;
45
- color?: string;
46
- }
47
- declare const LoadingIcon: React.FC<LoadingIconProps>;
48
-
49
- declare function EmailLineIcon({ size, color, ...props }: IconProps$1): react_jsx_runtime.JSX.Element;
50
-
51
- declare const UnLoginIcon: React.FC<IconProps$1>;
52
-
53
- declare const LoginIcon: React.FC<IconProps$1>;
54
-
55
- declare function CheckRoundIcon({ size, color, ...props }: Omit<IconProps$1, 'width' | 'height'>): react_jsx_runtime.JSX.Element;
56
-
57
- declare function PasswordRoundIcon(): react_jsx_runtime.JSX.Element;
58
-
59
- type IconProps = {
60
- color?: string,
61
- height?: string|number,
62
- width?: string|number,
63
- className?: string
64
- size?: number
65
- }
66
-
67
- type IconSizeColorProps = Omit<IconProps, 'height' |'width'>
68
-
69
- type IconSizeProps = Omit<IconProps, 'color'|'height'|'width'>
70
-
71
- declare function CloseEyeIcon({ size, color }: IconSizeColorProps): react_jsx_runtime.JSX.Element;
72
-
73
- declare function OpenEyeIcon({ size, color }: IconSizeColorProps): react_jsx_runtime.JSX.Element;
74
-
75
- declare function DeleteRoundIcon({ height, width, color, ...props }: IconProps$1): react_jsx_runtime.JSX.Element;
76
-
77
- declare function FacebookIcon({ size }: {
78
- size?: number | string;
79
- }): react_jsx_runtime.JSX.Element;
80
-
81
- declare function ArrowLeftIcon({ color, width, height, ...props }: IconProps$1): react_jsx_runtime.JSX.Element;
82
-
83
- declare function GithubIcon({ size }: {
84
- size?: number | string;
85
- }): react_jsx_runtime.JSX.Element;
86
-
87
- declare function DiscordIcon({ size }: {
88
- size?: number | string;
89
- }): react_jsx_runtime.JSX.Element;
90
-
91
- declare function CheckIcon({ size, color, ...props }: IconSizeColorProps): react_jsx_runtime.JSX.Element;
92
-
93
- declare function CopyIcon({ size, color, ...props }: IconSizeColorProps): react_jsx_runtime.JSX.Element;
94
-
95
- declare function LinkedinIcon({ size, ...props }: IconSizeColorProps): react_jsx_runtime.JSX.Element;
96
-
97
- declare function YoutubeIcon({ size, ...props }: IconSizeColorProps): react_jsx_runtime.JSX.Element;
98
-
99
- declare function BTCDarkIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
100
-
101
- declare function BTCLightIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
102
-
103
- declare function EVMDarkIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
104
-
105
- declare function EVMLightIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
106
-
107
- declare function SOLDarkIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
108
-
109
- declare function SOLLightIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
110
-
111
- declare function TRXDarkIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
112
-
113
- declare function TRXLightIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
114
-
115
- declare function ArrowDownIcon({ width, height, color, ...props }: IconProps): react_jsx_runtime.JSX.Element;
116
-
117
- declare function LeatherIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
118
-
119
- declare function UnisatIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
120
-
121
- declare function XverseIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
122
-
123
- declare function TronLinkIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
124
-
125
- declare function OKXIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
126
-
127
- declare function BitgetIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
128
-
129
- declare function TonLightIcon$1({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
130
-
131
- declare function TonLightIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
132
-
133
- export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, BTCDarkIcon, BTCLightIcon, BackIcon, BitgetIcon, CheckIcon, CheckRoundIcon, CloseEyeIcon, CloseIcon, CloseRoundIcon, CopyIcon, DeleteRoundIcon, DiscordIcon, EVMDarkIcon, EVMLightIcon, EmailIcon, EmailLineIcon, FacebookIcon, GithubIcon, GoogleIcon, LeatherIcon, LinkedinIcon, LoadingIcon, LoginIcon, OKXIcon, OpenEyeIcon, PasswordRoundIcon, SOLDarkIcon, SOLLightIcon, TRXDarkIcon, TRXLightIcon, TelegramIcon, TonLightIcon$1 as TonDarkIcon, TonLightIcon, TronLinkIcon, UnLoginIcon, UnisatIcon, WalletIcon, XIcon, XverseIcon, YoutubeIcon };
@@ -1,133 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React, { CSSProperties } from 'react';
3
- import { m as IconProps$1 } from '../../types.d-DwF-Pkvh.js';
4
-
5
- declare function BackIcon({ color, size, className, style }: {
6
- color?: string;
7
- size?: number;
8
- style?: CSSProperties;
9
- className?: string;
10
- }): react_jsx_runtime.JSX.Element;
11
-
12
- declare function CloseIcon({ color, size, style }: {
13
- color?: string;
14
- size?: number;
15
- style?: CSSProperties;
16
- }): react_jsx_runtime.JSX.Element;
17
-
18
- declare function XIcon({ size }: {
19
- size?: number;
20
- }): react_jsx_runtime.JSX.Element;
21
-
22
- declare function GoogleIcon({ size }: {
23
- size?: number;
24
- }): react_jsx_runtime.JSX.Element;
25
-
26
- declare function WalletIcon({ size, }: {
27
- size?: number;
28
- }): react_jsx_runtime.JSX.Element;
29
-
30
- declare function TelegramIcon({ size, }: {
31
- size?: number;
32
- }): react_jsx_runtime.JSX.Element;
33
-
34
- declare function EmailIcon({ size, }: {
35
- size?: number;
36
- }): react_jsx_runtime.JSX.Element;
37
-
38
- declare function ArrowRightIcon({ color, size, className, style }: IconProps$1): react_jsx_runtime.JSX.Element;
39
-
40
- declare function CloseRoundIcon({ size, ...props }: IconProps$1): react_jsx_runtime.JSX.Element;
41
-
42
- interface LoadingIconProps {
43
- size?: number;
44
- className?: string;
45
- color?: string;
46
- }
47
- declare const LoadingIcon: React.FC<LoadingIconProps>;
48
-
49
- declare function EmailLineIcon({ size, color, ...props }: IconProps$1): react_jsx_runtime.JSX.Element;
50
-
51
- declare const UnLoginIcon: React.FC<IconProps$1>;
52
-
53
- declare const LoginIcon: React.FC<IconProps$1>;
54
-
55
- declare function CheckRoundIcon({ size, color, ...props }: Omit<IconProps$1, 'width' | 'height'>): react_jsx_runtime.JSX.Element;
56
-
57
- declare function PasswordRoundIcon(): react_jsx_runtime.JSX.Element;
58
-
59
- type IconProps = {
60
- color?: string,
61
- height?: string|number,
62
- width?: string|number,
63
- className?: string
64
- size?: number
65
- }
66
-
67
- type IconSizeColorProps = Omit<IconProps, 'height' |'width'>
68
-
69
- type IconSizeProps = Omit<IconProps, 'color'|'height'|'width'>
70
-
71
- declare function CloseEyeIcon({ size, color }: IconSizeColorProps): react_jsx_runtime.JSX.Element;
72
-
73
- declare function OpenEyeIcon({ size, color }: IconSizeColorProps): react_jsx_runtime.JSX.Element;
74
-
75
- declare function DeleteRoundIcon({ height, width, color, ...props }: IconProps$1): react_jsx_runtime.JSX.Element;
76
-
77
- declare function FacebookIcon({ size }: {
78
- size?: number | string;
79
- }): react_jsx_runtime.JSX.Element;
80
-
81
- declare function ArrowLeftIcon({ color, width, height, ...props }: IconProps$1): react_jsx_runtime.JSX.Element;
82
-
83
- declare function GithubIcon({ size }: {
84
- size?: number | string;
85
- }): react_jsx_runtime.JSX.Element;
86
-
87
- declare function DiscordIcon({ size }: {
88
- size?: number | string;
89
- }): react_jsx_runtime.JSX.Element;
90
-
91
- declare function CheckIcon({ size, color, ...props }: IconSizeColorProps): react_jsx_runtime.JSX.Element;
92
-
93
- declare function CopyIcon({ size, color, ...props }: IconSizeColorProps): react_jsx_runtime.JSX.Element;
94
-
95
- declare function LinkedinIcon({ size, ...props }: IconSizeColorProps): react_jsx_runtime.JSX.Element;
96
-
97
- declare function YoutubeIcon({ size, ...props }: IconSizeColorProps): react_jsx_runtime.JSX.Element;
98
-
99
- declare function BTCDarkIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
100
-
101
- declare function BTCLightIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
102
-
103
- declare function EVMDarkIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
104
-
105
- declare function EVMLightIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
106
-
107
- declare function SOLDarkIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
108
-
109
- declare function SOLLightIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
110
-
111
- declare function TRXDarkIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
112
-
113
- declare function TRXLightIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
114
-
115
- declare function ArrowDownIcon({ width, height, color, ...props }: IconProps): react_jsx_runtime.JSX.Element;
116
-
117
- declare function LeatherIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
118
-
119
- declare function UnisatIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
120
-
121
- declare function XverseIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
122
-
123
- declare function TronLinkIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
124
-
125
- declare function OKXIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
126
-
127
- declare function BitgetIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
128
-
129
- declare function TonLightIcon$1({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
130
-
131
- declare function TonLightIcon({ size, ...props }: IconSizeProps): react_jsx_runtime.JSX.Element;
132
-
133
- export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, BTCDarkIcon, BTCLightIcon, BackIcon, BitgetIcon, CheckIcon, CheckRoundIcon, CloseEyeIcon, CloseIcon, CloseRoundIcon, CopyIcon, DeleteRoundIcon, DiscordIcon, EVMDarkIcon, EVMLightIcon, EmailIcon, EmailLineIcon, FacebookIcon, GithubIcon, GoogleIcon, LeatherIcon, LinkedinIcon, LoadingIcon, LoginIcon, OKXIcon, OpenEyeIcon, PasswordRoundIcon, SOLDarkIcon, SOLLightIcon, TRXDarkIcon, TRXLightIcon, TelegramIcon, TonLightIcon$1 as TonDarkIcon, TonLightIcon, TronLinkIcon, UnLoginIcon, UnisatIcon, WalletIcon, XIcon, XverseIcon, YoutubeIcon };