@matchain/matchid-sdk-react 0.1.48-alpha.10 → 0.1.48-alpha.3

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 (70) hide show
  1. package/dist/assets/icon/index.d.mts +2 -11
  2. package/dist/assets/icon/index.d.ts +2 -11
  3. package/dist/assets/icon/index.js +2 -93
  4. package/dist/assets/icon/index.js.map +1 -1
  5. package/dist/assets/icon/index.mjs +1 -9
  6. package/dist/{chunk-LHNKZISB.mjs → chunk-A5D3NKTK.mjs} +4 -91
  7. package/dist/chunk-A5D3NKTK.mjs.map +1 -0
  8. package/dist/{chunk-MXBUBTKR.mjs → chunk-LNSJ3ZXG.mjs} +5 -11
  9. package/dist/chunk-LNSJ3ZXG.mjs.map +1 -0
  10. package/dist/{chunk-YGFOHQU6.mjs → chunk-LPQROHSB.mjs} +2 -2
  11. package/dist/{chunk-2LRK5L4Z.mjs → chunk-V3WGYFWQ.mjs} +449 -1399
  12. package/dist/chunk-V3WGYFWQ.mjs.map +1 -0
  13. package/dist/components/index.d.mts +3 -3
  14. package/dist/components/index.d.ts +3 -3
  15. package/dist/components/index.js +448 -1689
  16. package/dist/components/index.js.map +1 -1
  17. package/dist/components/index.mjs +3 -12
  18. package/dist/hooks/api/index.d.mts +2 -2
  19. package/dist/hooks/api/index.d.ts +2 -2
  20. package/dist/hooks/api/index.js +185 -265
  21. package/dist/hooks/api/index.js.map +1 -1
  22. package/dist/hooks/api/index.mjs +4 -5
  23. package/dist/hooks/index.d.mts +2 -3
  24. package/dist/hooks/index.d.ts +2 -3
  25. package/dist/hooks/index.js +177 -1516
  26. package/dist/hooks/index.js.map +1 -1
  27. package/dist/hooks/index.mjs +3 -10
  28. package/dist/{index-NzZ-mfGZ.d.mts → index-B-s1k4Da.d.mts} +2 -5
  29. package/dist/{index-BxPB2IQ2.d.ts → index-B8DYrhSW.d.mts} +8 -29
  30. package/dist/{index-DAEvA2P4.d.ts → index-BHvCA7F9.d.ts} +4 -28
  31. package/dist/{index-BEwCPHZr.d.mts → index-BZrddrq-.d.mts} +4 -28
  32. package/dist/{index-BQPieWF9.d.ts → index-BvLpvebq.d.mts} +3 -4
  33. package/dist/{index-C9s2Ea9O.d.ts → index-Bzcc-y8m.d.ts} +1 -1
  34. package/dist/{index-CE20hVl1.d.mts → index-Cwx2p8th.d.ts} +8 -29
  35. package/dist/{index-BsmYcQQU.d.mts → index-DCeOyAw8.d.ts} +3 -4
  36. package/dist/{index-88JSE0j2.d.ts → index-DG_gyw1q.d.ts} +2 -5
  37. package/dist/index-DKyt0for.d.mts +181 -0
  38. package/dist/{index-DZ-eQkIA.d.mts → index-DbG5IjhP.d.mts} +1 -1
  39. package/dist/index-TkB89QxX.d.ts +181 -0
  40. package/dist/index.css +4 -468
  41. package/dist/index.d.mts +7 -8
  42. package/dist/index.d.ts +7 -8
  43. package/dist/index.js +1079 -2172
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.mjs +10 -11
  46. package/dist/types/index.d.mts +1 -1
  47. package/dist/types/index.d.ts +1 -1
  48. package/dist/{types-BZoVuUty.d.mts → types-CHkU0WHZ.d.mts} +33 -48
  49. package/dist/{types-BZoVuUty.d.ts → types-CHkU0WHZ.d.ts} +33 -48
  50. package/dist/ui/index.d.mts +3 -3
  51. package/dist/ui/index.d.ts +3 -3
  52. package/dist/ui/index.js +62 -80
  53. package/dist/ui/index.js.map +1 -1
  54. package/dist/ui/index.mjs +2 -2
  55. package/example/src/pages/Wallet/components/MatchWallet.tsx +10 -24
  56. package/package.json +1 -7
  57. package/dist/chunk-2LRK5L4Z.mjs.map +0 -1
  58. package/dist/chunk-5JHHHLG4.mjs +0 -136
  59. package/dist/chunk-5JHHHLG4.mjs.map +0 -1
  60. package/dist/chunk-LHNKZISB.mjs.map +0 -1
  61. package/dist/chunk-MXBUBTKR.mjs.map +0 -1
  62. package/dist/index-DIxrMLXq.d.ts +0 -3295
  63. package/dist/index-P71uc8y5.d.mts +0 -3295
  64. package/dist/utils/index.d.mts +0 -26
  65. package/dist/utils/index.d.ts +0 -26
  66. package/dist/utils/index.js +0 -181
  67. package/dist/utils/index.js.map +0 -1
  68. package/dist/utils/index.mjs +0 -30
  69. package/dist/utils/index.mjs.map +0 -1
  70. /package/dist/{chunk-YGFOHQU6.mjs.map → chunk-LPQROHSB.mjs.map} +0 -0
@@ -0,0 +1,181 @@
1
+ import { g as ISocialLoginMethod, h as OverviewInfo, C as CEXType, i as LoginMethodType, I as IMatchEvents, U as UserChainType, j as UserTransactionType } from './types-CHkU0WHZ.js';
2
+ import * as viem from 'viem';
3
+ import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
4
+ import { C as ChainType } from './mpc-CTbBWHld.js';
5
+ import { Hash } from 'viem/types/misc';
6
+ import { Abi } from 'abitype';
7
+ import React, { ReactNode } from 'react';
8
+ import * as _tanstack_react_query from '@tanstack/react-query';
9
+
10
+ declare const LOGIN_METHOD_MAP: {
11
+ email: string;
12
+ evm: string;
13
+ sol: string;
14
+ btc: string;
15
+ ton: string;
16
+ tron: string;
17
+ google: string;
18
+ facebook: string;
19
+ x: string;
20
+ telegram: string;
21
+ github: string;
22
+ discord: string;
23
+ linkedin: string;
24
+ youtube: string;
25
+ };
26
+
27
+ declare function useUserInfo(): {
28
+ loginByMethod: (method: ISocialLoginMethod) => Promise<Window | null>;
29
+ loginByTelegram: () => Promise<Window | null>;
30
+ loginByTwitter: () => Promise<Window | null>;
31
+ loginByGoogle: () => Promise<Window | null>;
32
+ loginByWallet: () => Promise<Window | null>;
33
+ loginByEmail: ({ email, code }: {
34
+ email: string;
35
+ code: string;
36
+ }) => Promise<boolean>;
37
+ bindWallet: () => Promise<Window | null>;
38
+ bindTelegram: () => Promise<void>;
39
+ token: string;
40
+ mid: string;
41
+ did: string;
42
+ address: string;
43
+ isLogin: boolean;
44
+ logout: () => Promise<void>;
45
+ getLoginEmailCode: (email: string) => Promise<string>;
46
+ refreshOverview: () => Promise<void>;
47
+ overview: OverviewInfo | null;
48
+ bindCex: (type: CEXType) => void;
49
+ username: string;
50
+ auth: () => Promise<any>;
51
+ login: (method: LoginMethodType | "wallet", extra?: {
52
+ [key: string]: any;
53
+ }) => Promise<void | Window | null>;
54
+ bind: (method: LoginMethodType | "wallet", extra?: {
55
+ [key: string]: any;
56
+ }) => Promise<void | Window | null>;
57
+ getAuthInfo: (method: keyof typeof LOGIN_METHOD_MAP) => Promise<unknown>;
58
+ };
59
+
60
+ declare function useMatchEvents(handlers: IMatchEvents): void;
61
+
62
+ type isRecoveredType = () => Promise<boolean>;
63
+ type signMessageType = (params: {
64
+ message: SignableMessage;
65
+ chainType?: ChainType;
66
+ }) => Promise<Hex>;
67
+ type signTransactionType = (params: {
68
+ transaction: TransactionSerializable;
69
+ chainType?: ChainType;
70
+ chain: {
71
+ id: number;
72
+ name: string;
73
+ nativeCurrency: {
74
+ name: string;
75
+ symbol: string;
76
+ decimals: number;
77
+ };
78
+ rpcUrls: {
79
+ [key: string]: any;
80
+ };
81
+ };
82
+ }) => Promise<`0x02${string}` | `0x01${string}` | `0x03${string}` | `0x04${string}` | viem.TransactionSerializedLegacy>;
83
+ type SendTransactionReturnType = Hash;
84
+ type SendTransactionParametersType = Omit<SendTransactionParameters, 'account'>;
85
+ type SendTransactionType = (transaction: SendTransactionParametersType) => Promise<SendTransactionReturnType>;
86
+ type DeployContractReturnType = SendTransactionReturnType;
87
+ type DeployContractType = <const abi extends Abi | readonly unknown[]>(parameters: DeployContractParameters<abi>) => Promise<DeployContractReturnType>;
88
+ type WriteContractParametersType = Omit<WriteContractParameters, 'account' | 'chain'> & {
89
+ chain?: Chain;
90
+ };
91
+ type WriteContractReturnType = SendTransactionReturnType;
92
+ type WriteContractType = (params: WriteContractParametersType) => Promise<WriteContractReturnType>;
93
+ interface UseWalletReturnType {
94
+ walletReady: boolean;
95
+ isRecovered: isRecoveredType;
96
+ signMessage: signMessageType;
97
+ signTransaction: signTransactionType;
98
+ address: string;
99
+ evmAccount: Account | undefined;
100
+ createWalletClient: (parameters: Omit<WalletClientConfig, 'account'>) => Omit<ReturnType<typeof createWalletClient>, 'sendTransaction' | 'deployContract' | 'writeContract'> & {
101
+ sendTransaction: SendTransactionType;
102
+ deployContract: DeployContractType;
103
+ writeContract: WriteContractType;
104
+ } | undefined;
105
+ }
106
+ declare function useWallet(): UseWalletReturnType;
107
+
108
+ declare function useCopyClipboard(timeout?: number): [boolean, (toCopy: string) => void];
109
+
110
+ interface ModalContextType {
111
+ show: (content: (props: {
112
+ close: () => void;
113
+ }) => ReactNode) => void;
114
+ open: (props: {
115
+ title: ReactNode;
116
+ content: React.ComponentType<{
117
+ close: () => void;
118
+ }>;
119
+ }) => void;
120
+ }
121
+ declare function useModal(): ModalContextType;
122
+
123
+ interface ToastContextType {
124
+ show: (options: {
125
+ icon?: ReactNode;
126
+ timeout?: number;
127
+ text: ReactNode;
128
+ }) => void;
129
+ success: (text: ReactNode, timeout?: number) => void;
130
+ error: (text: ReactNode, timeout?: number) => void;
131
+ }
132
+ declare function useToast(): ToastContextType;
133
+
134
+ declare function useMatchChain(): {
135
+ list: UserChainType[] | undefined;
136
+ chainId: number | null;
137
+ setChainId: (chainId: number) => void;
138
+ chain: UserChainType | null | undefined;
139
+ explorerLink: (url: string) => string;
140
+ showChangeNetwork: () => void;
141
+ };
142
+
143
+ declare function useMatchWallet(): {
144
+ showReceiveModal: () => void;
145
+ };
146
+ declare function useMatchWalletRecords({ pageSize }: {
147
+ pageSize?: number;
148
+ }): {
149
+ items: UserTransactionType[];
150
+ fetchMoreData: () => Promise<void>;
151
+ hasMore: boolean;
152
+ };
153
+
154
+ declare function useReceipt({ chainId, hash }: {
155
+ chainId: number;
156
+ hash: string;
157
+ }): _tanstack_react_query.UseQueryResult<any, Error>;
158
+
159
+ declare function useDownMd(): boolean;
160
+
161
+ declare const useLayout_useDownMd: typeof useDownMd;
162
+ declare namespace useLayout {
163
+ export { useLayout_useDownMd as useDownMd };
164
+ }
165
+
166
+ declare const index_useCopyClipboard: typeof useCopyClipboard;
167
+ declare const index_useLayout: typeof useLayout;
168
+ declare const index_useMatchChain: typeof useMatchChain;
169
+ declare const index_useMatchEvents: typeof useMatchEvents;
170
+ declare const index_useMatchWallet: typeof useMatchWallet;
171
+ declare const index_useMatchWalletRecords: typeof useMatchWalletRecords;
172
+ declare const index_useModal: typeof useModal;
173
+ declare const index_useReceipt: typeof useReceipt;
174
+ declare const index_useToast: typeof useToast;
175
+ declare const index_useUserInfo: typeof useUserInfo;
176
+ declare const index_useWallet: typeof useWallet;
177
+ declare namespace index {
178
+ export { index_useCopyClipboard as useCopyClipboard, index_useLayout as useLayout, index_useMatchChain as useMatchChain, index_useMatchEvents as useMatchEvents, index_useMatchWallet as useMatchWallet, index_useMatchWalletRecords as useMatchWalletRecords, index_useModal as useModal, index_useReceipt as useReceipt, index_useToast as useToast, index_useUserInfo as useUserInfo, index_useWallet as useWallet };
179
+ }
180
+
181
+ export { useMatchEvents as a, useWallet as b, useCopyClipboard as c, useModal as d, useToast as e, useMatchChain as f, useMatchWallet as g, useMatchWalletRecords as h, index as i, useReceipt as j, useLayout as k, useUserInfo as u };
package/dist/index.css CHANGED
@@ -15,12 +15,7 @@ body {
15
15
  --matchid-gray-100: #F8F8F8;
16
16
  --matchid-red-600: #F7585E;
17
17
  --matchid-green-600: #2CBF68;
18
- --matchid-secondary-grey: var(--matchid-gray-600);
19
- --matchid-light-grey: var(--matchid-gray-100);
20
- --matchid-disabled: var(--matchid-gray-350);
21
- --matchid-success: #2FCC00;
22
- --matchid-error: #F14141;
23
- --matchid-link: #006FFF;
18
+ --matchid-link:#006FFF;
24
19
 
25
20
  --matchid-shadow-full: 0px 15px 40px 0px rgba(22, 17, 46, 0.12);
26
21
  --matchid-shadow-middle: 0px 10px 30px 0px rgba(22, 17, 46, 0.12);
@@ -134,7 +129,6 @@ body {
134
129
  --matchid-radio-line: var(--matchid-gray-300);
135
130
  --matchid-radio-checked: var(--matchid-highlight-orange);
136
131
 
137
-
138
132
  }
139
133
 
140
134
  .matchid-login-box {
@@ -1001,19 +995,9 @@ body {
1001
995
  padding-bottom: 24px;
1002
996
  border-bottom: 1px solid var(--matchid-line);
1003
997
 
1004
- .matchid-drawer-header-content {
1005
- display: flex;
1006
- gap: 12px;
1007
- align-items: center;
1008
- }
1009
-
1010
998
  .matchid-drawer-header-close {
1011
999
  cursor: pointer;
1012
1000
  }
1013
-
1014
- .matchid-drawer-header-back {
1015
- cursor: pointer;
1016
- }
1017
1001
  }
1018
1002
  }
1019
1003
 
@@ -1223,15 +1207,14 @@ body {
1223
1207
 
1224
1208
  }
1225
1209
 
1226
- .matchid-toast-box {
1210
+ .matchid-toast-box{
1227
1211
  position: fixed;
1228
1212
  top: 20px; /* 5 * 4px = 20px */
1229
1213
  right: 20px; /* 5 * 4px = 20px */
1230
1214
  display: flex;
1231
1215
  flex-direction: column;
1232
1216
  gap: 8px; /* space-y-2 -> 2 * 4px = 8px */
1233
-
1234
- .matchid-toast {
1217
+ .matchid-toast{
1235
1218
  display: flex;
1236
1219
  align-items: center;
1237
1220
  box-shadow: var(--matchid-shadow-small);
@@ -1285,7 +1268,7 @@ body {
1285
1268
  .matchid-receive-link {
1286
1269
  text-align: center;
1287
1270
  word-break: break-all;
1288
- color: var(--matchid-link);
1271
+ color:var(--matchid-link);
1289
1272
  font-size: 12px;
1290
1273
  font-weight: 500;
1291
1274
 
@@ -1295,450 +1278,3 @@ body {
1295
1278
  }
1296
1279
  }
1297
1280
  }
1298
-
1299
- .matchid-import-token {
1300
- display: flex;
1301
- flex-direction: column;
1302
- gap: 48px;
1303
-
1304
- .matchid-import-token-form {
1305
- display: flex;
1306
- flex-direction: column;
1307
- gap: 24px
1308
- }
1309
- }
1310
-
1311
- .matchid-wallet-asset-list {
1312
- display: flex;
1313
- flex-direction: column;
1314
- gap: 16px;
1315
-
1316
- .matchid-wallet-asset-item {
1317
- display: flex;
1318
- cursor: pointer;
1319
- gap: 8px;
1320
- align-items: center;
1321
- padding: 16px;
1322
- border: 1px solid var(--matchid-line);
1323
- border-radius: 16px;
1324
-
1325
- &:hover {
1326
- border-color: var(--matchid-highlight-orange);
1327
- }
1328
-
1329
- .matchid-wallet-asset-logo {
1330
- position: relative;
1331
- height: 46px;
1332
- width: 42px;
1333
- display: flex;
1334
- align-items: center;
1335
-
1336
- .matchid-wallet-asset-icon {
1337
- width: 40px;
1338
- height: 40px;
1339
- border-radius: 8px;
1340
- }
1341
-
1342
- .matchid-wallet-asset-chain {
1343
- position: absolute;
1344
- border-radius: 100%;
1345
- width: 12px;
1346
- height: 12px;
1347
- right: 0px;
1348
- bottom: 1px;
1349
- }
1350
- }
1351
-
1352
- .matchid-wallet-asset-info {
1353
- height: 46px;
1354
- display: flex;
1355
- flex: 1;
1356
- align-items: center;
1357
- justify-content: space-between;
1358
-
1359
- .matchid-wallet-asset-name {
1360
- font-size: 16px;
1361
- font-weight: 500;
1362
- flex:2;
1363
- color: var(--matchid-black);
1364
- @media (max-width: 768px) {
1365
- font-size: 14px;
1366
- }
1367
- }
1368
-
1369
- .matchid-wallet-asset-content {
1370
- display: flex;
1371
- flex-direction: column;
1372
- gap: 4px;
1373
- flex:2;
1374
-
1375
- .matchid-wallet-asset-price {
1376
- font-size: 16px;
1377
- font-weight: 500;
1378
- color: var(--matchid-black);
1379
- @media (max-width: 768px) {
1380
- font-size: 14px;
1381
- }
1382
- }
1383
-
1384
- .matchid-wallet-asset-value {
1385
- font-size: 14px;
1386
- font-weight: 500;
1387
- color: var(--matchid-gray-600);
1388
- @media (max-width: 768px) {
1389
- font-size: 12px;
1390
- }
1391
- }
1392
- }
1393
-
1394
- .matchid-wallet-asset-footer {
1395
- flex:2;
1396
- display: flex;
1397
- flex-direction: column;
1398
- gap: 4px;
1399
- align-items: end;
1400
-
1401
- .matchid-wallet-asset-balance {
1402
- font-size: 16px;
1403
- font-weight: 500;
1404
- color: var(--matchid-success);
1405
- @media (max-width: 768px) {
1406
- font-size: 14px;
1407
- }
1408
- }
1409
-
1410
- .matchid-wallet-asset-change {
1411
- font-size: 14px;
1412
- font-weight: 400;
1413
- @media (max-width: 768px) {
1414
- font-size: 12px;
1415
- }
1416
- }
1417
- }
1418
- }
1419
- }
1420
-
1421
- .matchid-wallet-asset-down {
1422
- color: var(--matchid-error);
1423
- }
1424
-
1425
- .matchid-wallet-asset-up {
1426
- color: var(--matchid-success);
1427
- }
1428
- }
1429
-
1430
- .matchid-token-detail {
1431
- flex: 1;
1432
- display: flex;
1433
- justify-content: space-between;
1434
- flex-direction: column;
1435
- padding-bottom: 200px;
1436
- gap: 40px;
1437
- @media (max-width: 768px) {
1438
- padding-bottom: 0px;
1439
- }
1440
-
1441
- .matchid-token-main {
1442
- display: flex;
1443
- flex-direction: column;
1444
- gap: 24px;
1445
- align-items: center;
1446
-
1447
- .matchid-token-info {
1448
- display: flex;
1449
- flex-direction: column;
1450
- gap: 8px;
1451
- align-items: center;
1452
-
1453
- .matchid-token-logo {
1454
- position: relative;
1455
- width: 48px;
1456
- height: 48px;
1457
-
1458
- .matchid-token-icon {
1459
- width: 100%;
1460
- height: 100%;
1461
- border-radius: 100%
1462
- }
1463
-
1464
- .matchid-token-chain {
1465
- position: absolute;
1466
- border-radius: 100%;
1467
- width: 12px;
1468
- height: 12px;
1469
- right: 0px;
1470
- bottom: 0px;
1471
- }
1472
- }
1473
-
1474
- .matchid-token-name {
1475
- font-size: 20px;
1476
- font-weight: 500;
1477
- color: var(--matchid-black);
1478
- @media (max-width: 768px) {
1479
- font-size: 16px;
1480
- }
1481
- }
1482
- }
1483
-
1484
- .matchid-token-contract {
1485
- gap: 16px;
1486
- display: flex;
1487
- flex-direction: column;
1488
- padding: 16px;
1489
- background: var(--matchid-gray-100);
1490
- border-radius: 12px;
1491
-
1492
- .matchid-token-contract-title {
1493
- color: var(--matchid-black);
1494
- font-size: 16px;
1495
- font-weight: 500;
1496
- @media (max-width: 768px) {
1497
- font-size: 14px;
1498
- }
1499
- }
1500
-
1501
- .matchid-token-contract-address {
1502
- width: 100%;
1503
- word-break: break-all;
1504
- font-size: 14px;
1505
- color: var(--matchid-secondary-grey);
1506
- @media (max-width: 768px) {
1507
- font-size: 12px;
1508
- }
1509
- }
1510
- }
1511
- }
1512
- }
1513
-
1514
- .matchid-token-send-box {
1515
- flex: 1;
1516
- display: flex;
1517
- justify-content: space-between;
1518
- flex-direction: column;
1519
- padding-bottom: 200px;
1520
- gap: 40px;
1521
- @media (max-width: 768px) {
1522
- padding-bottom: 0px;
1523
- }
1524
-
1525
- .matchid-token-send-content {
1526
- display: flex;
1527
- flex-direction: column;
1528
- gap: 16px;
1529
-
1530
- .matchid-token-amount-content,.matchid-token-address-content{
1531
- padding: 16px;
1532
- background: var(--matchid-light-grey);
1533
- border-radius: 16px;
1534
- display: flex;
1535
- gap: 16px;
1536
- flex-direction: column;
1537
- position: relative;
1538
- }
1539
-
1540
- .matchid-token-amount-content {
1541
- .matchid-token-amount-transfer{
1542
- position: absolute;
1543
- left: 50%;
1544
- bottom:-20px;
1545
- transform: translateX(-50%);
1546
- }
1547
- .matchid-token-amount-header {
1548
- display: flex;
1549
- justify-content: space-between;
1550
- align-items: center;
1551
-
1552
- .matchid-token-amount-title {
1553
- font-size: 16px;
1554
- font-weight: 500;
1555
- color: var(--matchid-black);
1556
- @media (max-width: 768px) {
1557
- font-size: 14px;
1558
- }
1559
- }
1560
-
1561
- .matchid-token-amount-chain {
1562
- display: flex;
1563
- align-items: center;
1564
- gap: 4px;
1565
- border-radius: 100px;
1566
- padding: 4px 8px;
1567
- background: var(--matchid-white);
1568
-
1569
- .matchid-token-amount-chain-icon {
1570
- width: 16px;
1571
- height: 16px;
1572
- border-radius: 50%;
1573
- }
1574
-
1575
- span {
1576
-
1577
- font-size: 12px;
1578
- font-weight: 500;
1579
- color: var(--matchid-black);
1580
- }
1581
- }
1582
- }
1583
-
1584
- .matchid-token-amount-footer {
1585
- display: flex;
1586
- align-items: center;
1587
- gap: 8px;
1588
- font-size: 14px;
1589
- @media (max-width: 768px) {
1590
- font-size: 12px;
1591
- }
1592
-
1593
- .matchid-token-amount-title {
1594
- font-weight: 300;
1595
- color: var(--matchid-secondary-grey);
1596
- }
1597
-
1598
- .matchid-token-amount-value {
1599
- color: var(--matchid-black);
1600
- font-weight: 500;
1601
- }
1602
- }
1603
- }
1604
-
1605
- .matchid-token-address-content {
1606
- .matchid-token-address-header {
1607
- .matchid-token-address-title {
1608
- font-size: 16px;
1609
- font-weight: 500;
1610
- color: var(--matchid-black);
1611
- @media (max-width: 768px) {
1612
- font-size: 14px;
1613
- }
1614
- }
1615
- }
1616
- }
1617
- }
1618
- }
1619
-
1620
- .matchid-token-input-box {
1621
- display: flex;
1622
- flex-direction: column;
1623
- gap: 8px;
1624
-
1625
- .matchid-token-input {
1626
- width: 100%;
1627
- background: transparent;
1628
- font-size: 24px;
1629
- color: var(--matchid-black);
1630
- padding: 10px 0;
1631
- border: none;
1632
- font-weight: 600;
1633
- border-bottom: 1px solid var(--matchid-line);
1634
- caret-color: var(--matchid-black);
1635
-
1636
- &::placeholder {
1637
- color: var(--matchid-disabled);
1638
- font-weight: 300;
1639
- }
1640
-
1641
- &.matchid-token-input-error {
1642
- border-color: var(--matchid-highlight-orange);
1643
- }
1644
-
1645
- &:focus {
1646
- outline: none;
1647
- }
1648
- }
1649
-
1650
- &.matchid-token-input-sm {
1651
- .matchid-token-input {
1652
- font-size: 16px;
1653
- }
1654
- }
1655
-
1656
- .matchid-token-input-error-text {
1657
- font-size: 12px;
1658
- color: var(--matchid-error);
1659
- font-weight: 500;
1660
- }
1661
- }
1662
-
1663
- .matchid-token-send-list-box {
1664
- flex:1;
1665
- display: flex;
1666
- flex-direction: column;
1667
- justify-content: space-between;
1668
- gap: 48px;
1669
- padding-bottom: 200px;
1670
-
1671
- @media (max-width: 768px) {
1672
- padding-bottom: 0px;
1673
- }
1674
- .matchid-token-send-list {
1675
- display: flex;
1676
- flex-direction: column;
1677
- gap: 24px;
1678
- flex:1;
1679
- overflow-y: scroll;
1680
- .matchid-token-send-item {
1681
- cursor: pointer;
1682
- display: flex;
1683
- align-items: center;
1684
- gap: 8px;
1685
- justify-content: space-between;
1686
- padding: 16px;
1687
- border: 1px solid var(--matchid-line);
1688
- border-radius: 16px;
1689
- transition: border-color 0.2s;
1690
-
1691
- &:hover, &.matchid-token-send-checked {
1692
- border-color: var(--matchid-highlight-orange);
1693
- }
1694
-
1695
- .matchid-token-send-content {
1696
- display: flex;
1697
- align-items: center;
1698
- flex:1;
1699
- gap: 16px;
1700
-
1701
- .matchid-token-send-logo {
1702
- width: 32px;
1703
- height: 32px;
1704
- position: relative;
1705
- .matchid-token-send-icon{
1706
- width: 100%;
1707
- height: 100%;
1708
- border-radius: 8px;
1709
- }
1710
- .matchid-token-send-chain{
1711
- position: absolute;
1712
- border-radius: 100%;
1713
- width: 12px;
1714
- height: 12px;
1715
- right: -1px;
1716
- bottom: -1px;
1717
- }
1718
- @media (min-width: 768px) {
1719
- width: 40px;
1720
- height: 40px;
1721
- }
1722
- }
1723
-
1724
- .matchid-token-send-info {
1725
- font-size: 14px;
1726
- font-weight: 500;
1727
- display: flex;
1728
- flex:1;
1729
- align-items: center;
1730
- justify-content: space-between;
1731
- gap:10px;
1732
- @media (min-width: 768px) {
1733
- font-size: 16px;
1734
- }
1735
- }
1736
- }
1737
- }
1738
- }
1739
-
1740
- }
1741
-
1742
- .matchid-rotate{
1743
- animation: spin 2s linear infinite;
1744
- }