@matchain/matchid-sdk-react 0.1.53-alpha.0 → 0.1.53-alpha.10

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 (101) hide show
  1. package/dist/assets/icon/index.d.mts +4 -144
  2. package/dist/assets/icon/index.d.ts +4 -144
  3. package/dist/assets/icon/index.js +54 -0
  4. package/dist/assets/icon/index.js.map +1 -1
  5. package/dist/assets/icon/index.mjs +5 -1
  6. package/dist/chunk-3CR66BEX.mjs +19 -0
  7. package/dist/chunk-3CR66BEX.mjs.map +1 -0
  8. package/dist/{chunk-LHNKZISB.mjs → chunk-FKXS2XRG.mjs} +114 -2
  9. package/dist/chunk-FKXS2XRG.mjs.map +1 -0
  10. package/dist/{chunk-HLUFAIFV.mjs → chunk-IZOOVZAD.mjs} +11 -6
  11. package/dist/chunk-IZOOVZAD.mjs.map +1 -0
  12. package/dist/{chunk-HYQ3T6WW.mjs → chunk-JX73EY6V.mjs} +2 -14
  13. package/dist/chunk-JX73EY6V.mjs.map +1 -0
  14. package/dist/{chunk-LRJDS2OK.mjs → chunk-NCVBLRAJ.mjs} +5750 -4942
  15. package/dist/chunk-NCVBLRAJ.mjs.map +1 -0
  16. package/dist/{chunk-FB5MHLWX.mjs → chunk-X5HGL3ZX.mjs} +45 -3
  17. package/dist/chunk-X5HGL3ZX.mjs.map +1 -0
  18. package/dist/components/index.d.mts +3 -3
  19. package/dist/components/index.d.ts +3 -3
  20. package/dist/components/index.js +1468 -591
  21. package/dist/components/index.js.map +1 -1
  22. package/dist/components/index.mjs +11 -6
  23. package/dist/config/chains/index.mjs +2 -1
  24. package/dist/hooks/api/index.d.mts +3 -2
  25. package/dist/hooks/api/index.d.ts +3 -2
  26. package/dist/hooks/api/index.js +402 -148
  27. package/dist/hooks/api/index.js.map +1 -1
  28. package/dist/hooks/api/index.mjs +9 -8
  29. package/dist/hooks/index.d.mts +3 -2
  30. package/dist/hooks/index.d.ts +3 -2
  31. package/dist/hooks/index.js +638 -545
  32. package/dist/hooks/index.js.map +1 -1
  33. package/dist/hooks/index.mjs +5 -4
  34. package/dist/index-BVfCh4l-.d.mts +203 -0
  35. package/dist/{index-CGx_yc95.d.mts → index-BaFmUVw-.d.mts} +1 -1
  36. package/dist/{index-BoIDCH41.d.ts → index-BgdY5xdW.d.ts} +41 -17
  37. package/dist/{index-CteYYAoN.d.mts → index-BrzFSkOe.d.mts} +41 -17
  38. package/dist/{index-CO1j3Cxc.d.ts → index-C0UKUm0h.d.ts} +25 -5
  39. package/dist/{index-BlYHNOxm.d.ts → index-CQmN0dN4.d.ts} +1 -1
  40. package/dist/index-D3Kp05kW.d.ts +203 -0
  41. package/dist/{index-BNNgBoTN.d.ts → index-D5WIVIkc.d.ts} +4 -2
  42. package/dist/{index-Ce5JlNJv.d.ts → index-D7S5DMUy.d.mts} +21 -8
  43. package/dist/{index-CqO8nMTh.d.mts → index-DC4F1u-w.d.mts} +25 -5
  44. package/dist/{index-0EM3dXJ4.d.mts → index-DQFQ39D9.d.ts} +21 -8
  45. package/dist/{index-C7InzeOC.d.ts → index-DjbH13zc.d.mts} +16 -14
  46. package/dist/{index-C29kl7io.d.mts → index-SOVt-ADK.d.mts} +4 -2
  47. package/dist/{index-Bsfb3Ysq.d.mts → index-zc2GEzJ9.d.ts} +16 -14
  48. package/dist/index.css +139 -16
  49. package/dist/index.d.mts +9 -8
  50. package/dist/index.d.ts +9 -8
  51. package/dist/index.js +1861 -920
  52. package/dist/index.js.map +1 -1
  53. package/dist/index.mjs +10 -8
  54. package/dist/request-B0CyrGFT.d.mts +15 -0
  55. package/dist/request-B0CyrGFT.d.ts +15 -0
  56. package/dist/types/index.d.mts +1 -1
  57. package/dist/types/index.d.ts +1 -1
  58. package/dist/{types-Cv5UhCIP.d.mts → types-VrV1kYga.d.mts} +10 -2
  59. package/dist/{types-Cv5UhCIP.d.ts → types-VrV1kYga.d.ts} +10 -2
  60. package/dist/ui/index.d.mts +3 -3
  61. package/dist/ui/index.d.ts +3 -3
  62. package/dist/ui/index.js +109 -61
  63. package/dist/ui/index.js.map +1 -1
  64. package/dist/ui/index.mjs +8 -4
  65. package/dist/utils/index.d.mts +3 -2
  66. package/dist/utils/index.d.ts +3 -2
  67. package/dist/utils/index.js +10 -4
  68. package/dist/utils/index.js.map +1 -1
  69. package/dist/utils/index.mjs +3 -1
  70. package/example/package.json +5 -2
  71. package/example/src/App.tsx +42 -6
  72. package/example/src/pages/Contact/index.tsx +90 -0
  73. package/example/src/pages/UI/components/Tabs.tsx +18 -0
  74. package/example/src/pages/UI/index.tsx +2 -0
  75. package/example/src/pages/User/index.tsx +7 -1
  76. package/example/src/store/useLocalStore.ts +9 -0
  77. package/package.json +5 -5
  78. package/dist/chunk-FB5MHLWX.mjs.map +0 -1
  79. package/dist/chunk-HLUFAIFV.mjs.map +0 -1
  80. package/dist/chunk-HYQ3T6WW.mjs.map +0 -1
  81. package/dist/chunk-LHNKZISB.mjs.map +0 -1
  82. package/dist/chunk-LRJDS2OK.mjs.map +0 -1
  83. package/dist/chunk-YQHI5BIZ.mjs +0 -97
  84. package/dist/chunk-YQHI5BIZ.mjs.map +0 -1
  85. package/example/dist/assets/TransportWebHID-BwG9Tbw2.js +0 -1
  86. package/example/dist/assets/bignumber-FiRdtNkj.js +0 -10
  87. package/example/dist/assets/ccip-CJyR03AW.js +0 -1
  88. package/example/dist/assets/draggabilly-1Sl0icBA.js +0 -14
  89. package/example/dist/assets/index-BAfSBdWW.js +0 -1
  90. package/example/dist/assets/index-CYk2C9XJ.js +0 -1
  91. package/example/dist/assets/index-CcgesoWE.js +0 -179
  92. package/example/dist/assets/index-D5RU9xxK.js +0 -3
  93. package/example/dist/assets/index-D8N4Z5B5.js +0 -1677
  94. package/example/dist/assets/index-DATAk5xI.js +0 -569
  95. package/example/dist/assets/index-DN1wW-Mo.js +0 -3
  96. package/example/dist/assets/index-DxxLiL3_.js +0 -303
  97. package/example/dist/assets/index-Gy3FXGhr.css +0 -1
  98. package/example/dist/assets/index-RIWy1Hg7.js +0 -1
  99. package/example/dist/assets/inherits_browser-BlmhoU4v.js +0 -1
  100. package/example/dist/assets/solanaEmbed.esm-CNS-QKE2.js +0 -38
  101. package/example/dist/index.html +0 -14
package/dist/index.css CHANGED
@@ -54,6 +54,7 @@ body {
54
54
 
55
55
  /**overlay component**/
56
56
  --matchid-overlay-index: 9999;
57
+ --matchid-overlay-color: var(--matchid-black);
57
58
  /**modal component**/
58
59
  --matchid-modal-bg: var(--matchid-white);
59
60
  --matchid-modal-shadow: var(--matchid-shadow-full);
@@ -133,6 +134,15 @@ body {
133
134
  /**radio**/
134
135
  --matchid-radio-line: var(--matchid-gray-300);
135
136
  --matchid-radio-checked: var(--matchid-highlight-orange);
137
+ /**matchid-wallet-asset**/
138
+ --matchid-wallet-asset-bg: var(--matchid-white);
139
+ --matchid-wallet-asset-color: var(--matchid-black);
140
+ /**matchid-transaction-list**/
141
+ --matchid-wallet-transaction-bg: var(--matchid-white);
142
+ --matchid-wallet-transaction-color: var(--matchid-black);
143
+ /**tab**/
144
+ --matchid-tab-color:var(--matchid-secondary-grey);
145
+ --matchid-tab-active-color: var(--matchid-highlight-orange);
136
146
 
137
147
 
138
148
  }
@@ -393,7 +403,7 @@ body {
393
403
  overflow: hidden;
394
404
  backdrop-filter: blur(2px);
395
405
  background: rgba(0, 0, 0, .3);
396
- color:#000000;
406
+ color: var(--matchid-overlay-color);
397
407
  @media screen and (max-width: 768px) {
398
408
  align-items: center;
399
409
  }
@@ -449,8 +459,8 @@ body {
449
459
 
450
460
  .matchid-modal-header-title {
451
461
  color: var(--matchid-modal-header-color, #000);
452
- font-size: 18px;
453
- font-weight: 600;
462
+ font-size: 20px;
463
+ font-weight: 500;
454
464
  @media screen and (max-width: 768px) {
455
465
  font-size: 16px;
456
466
  font-weight: 500;
@@ -496,7 +506,7 @@ body {
496
506
  outline: 0;
497
507
  color: var(--matchid-input-color);
498
508
  font-size: 18px;
499
- font-weight: 600;
509
+ font-weight: 500;
500
510
  background: none;
501
511
  min-width: 0;
502
512
  @media screen and (max-width: 768px) {
@@ -553,7 +563,7 @@ body {
553
563
  .matchid-field-label {
554
564
  color: var(--matchid-field-color);
555
565
  font-size: 18px;
556
- font-weight: 600;
566
+ font-weight: 500;
557
567
  @media screen and (max-width: 768px) {
558
568
  font-size: 14px;
559
569
  font-weight: 500;
@@ -566,7 +576,7 @@ body {
566
576
 
567
577
  .matchid-field-error {
568
578
  font-size: 14px;
569
- font-weight: 600;
579
+ font-weight: 400;
570
580
  color: var(--matchid-field-error-color);
571
581
  }
572
582
  }
@@ -1176,7 +1186,7 @@ body {
1176
1186
  flex-direction: column;
1177
1187
  gap: 48px;
1178
1188
  @media screen and (max-width: 768px) {
1179
- gap:36px;
1189
+ gap: 36px;
1180
1190
  }
1181
1191
 
1182
1192
  .matchid-change-network-list {
@@ -1211,7 +1221,7 @@ body {
1211
1221
  align-items: center;
1212
1222
  gap: 16px;
1213
1223
  @media screen and (max-width: 768px) {
1214
- gap:8px;
1224
+ gap: 8px;
1215
1225
  }
1216
1226
 
1217
1227
  .matchid-change-network-item-icon {
@@ -1281,6 +1291,7 @@ body {
1281
1291
  @media screen and (max-width: 768px) {
1282
1292
  gap: 24px;
1283
1293
  }
1294
+
1284
1295
  .matchid-receive-text {
1285
1296
  font-size: 14px;
1286
1297
  font-weight: 500;
@@ -1297,6 +1308,7 @@ body {
1297
1308
  @media screen and (max-width: 768px) {
1298
1309
  padding: 10px;
1299
1310
  }
1311
+
1300
1312
  .matchid-qr-code {
1301
1313
  width: 148px;
1302
1314
  height: 148px;
@@ -1344,6 +1356,9 @@ body {
1344
1356
  }
1345
1357
 
1346
1358
  .matchid-wallet-asset-item {
1359
+
1360
+ background: var(--matchid-wallet-asset-bg);
1361
+ color: var(--matchid-wallet-asset-color);
1347
1362
  display: flex;
1348
1363
  cursor: pointer;
1349
1364
  gap: 8px;
@@ -1369,6 +1384,7 @@ body {
1369
1384
  width: 36px;
1370
1385
  height: 36px;
1371
1386
  }
1387
+
1372
1388
  .matchid-wallet-asset-icon {
1373
1389
  width: 40px;
1374
1390
  height: 40px;
@@ -1387,8 +1403,8 @@ body {
1387
1403
  right: 0px;
1388
1404
  bottom: 1px;
1389
1405
  @media screen and (max-width: 768px) {
1390
- wdth:10px;
1391
- height:10px;
1406
+ wdth: 10px;
1407
+ height: 10px;
1392
1408
  }
1393
1409
  }
1394
1410
  }
@@ -1404,6 +1420,7 @@ body {
1404
1420
  @media screen and (max-width: 768px) {
1405
1421
  height: 44px;
1406
1422
  }
1423
+
1407
1424
  .matchid-wallet-asset-name {
1408
1425
  font-size: 16px;
1409
1426
  font-weight: 500;
@@ -1485,7 +1502,7 @@ body {
1485
1502
 
1486
1503
  @media (max-width: 768px) {
1487
1504
  padding-bottom: 0px;
1488
- gap:36px;
1505
+ gap: 36px;
1489
1506
  }
1490
1507
 
1491
1508
  .matchid-token-main {
@@ -1539,7 +1556,7 @@ body {
1539
1556
  background: var(--matchid-gray-100);
1540
1557
  border-radius: 12px;
1541
1558
  @media (max-width: 768px) {
1542
- gap:8px;
1559
+ gap: 8px;
1543
1560
  }
1544
1561
 
1545
1562
  .matchid-token-contract-title {
@@ -1573,7 +1590,7 @@ body {
1573
1590
  gap: 40px;
1574
1591
  @media (max-width: 768px) {
1575
1592
  padding-bottom: 0px;
1576
- gap:68px;
1593
+ gap: 68px;
1577
1594
  }
1578
1595
 
1579
1596
  .matchid-token-send-content {
@@ -1733,7 +1750,7 @@ body {
1733
1750
 
1734
1751
  @media (max-width: 768px) {
1735
1752
  padding-bottom: 0px;
1736
- gap:36px;
1753
+ gap: 36px;
1737
1754
  }
1738
1755
 
1739
1756
  .matchid-token-send-list {
@@ -1830,6 +1847,8 @@ body {
1830
1847
  border: 1px solid var(--matchid-line);
1831
1848
  border-radius: 16px;
1832
1849
  height: 78px;
1850
+ background: var(--matchid-wallet-transaction-bg);
1851
+ color: var(--matchid-wallet-transaction-color);
1833
1852
  @media screen and (max-width: 768px) {
1834
1853
  height: 64px;
1835
1854
  }
@@ -1895,7 +1914,8 @@ body {
1895
1914
  gap: 8px;
1896
1915
  font-size: 16px;
1897
1916
  font-weight: 500;
1898
- span{
1917
+
1918
+ span {
1899
1919
  text-align: right;
1900
1920
  }
1901
1921
 
@@ -1954,7 +1974,7 @@ body {
1954
1974
  justify-content: space-between;
1955
1975
  @media screen and (max-width: 768px) {
1956
1976
  padding-bottom: 0;
1957
- gap:115px;
1977
+ gap: 115px;
1958
1978
  }
1959
1979
 
1960
1980
  .matchid-import-token-result-box {
@@ -1985,4 +2005,107 @@ body {
1985
2005
  }
1986
2006
  }
1987
2007
 
2008
+ }
2009
+
2010
+ .matchid-error {
2011
+ color: var(--matchid-red-600);
2012
+ }
2013
+
2014
+ .matchid-skeleton {
2015
+ background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
2016
+ background-size: 200% 100%;
2017
+ animation: matchid-loading 1.5s infinite;
2018
+ }
2019
+
2020
+ @keyframes matchid-loading {
2021
+ 0% {
2022
+ background-position: 200% 0;
2023
+ }
2024
+ 100% {
2025
+ background-position: -200% 0;
2026
+ }
2027
+ }
2028
+
2029
+ .matchid-contact-item{
2030
+ justify-content: space-between;
2031
+ align-items: center;
2032
+ padding:8px 16px;
2033
+ .matchid-contact-item-content{
2034
+ height:48px;
2035
+ display: flex;
2036
+ gap:16px;
2037
+ align-items: center;
2038
+ .matchid-contact-item-avatar{
2039
+ width:48px;
2040
+ height:48px;
2041
+ border-radius: 50%;
2042
+ }
2043
+ .matchid-contact-item-info{
2044
+ display: flex;
2045
+ flex-direction: column;
2046
+ justify-content: space-between;
2047
+ height:100%;
2048
+ .matchid-contact-item-name{
2049
+ font-size: 18px;
2050
+ font-weight: 500;
2051
+ color: var(--matchid-black);
2052
+ }
2053
+ .matchid-contact-item-address{
2054
+ font-size: 14px;
2055
+ color: var(--matchid-secondary-grey);
2056
+ }
2057
+ @media screen and (max-width: 768px) {
2058
+ .matchid-contact-item-name{
2059
+ font-size: 16px;
2060
+ }
2061
+ .matchid-contact-item-address{
2062
+ font-size: 12px;
2063
+ }
2064
+ }
2065
+ }
2066
+ }
2067
+
2068
+ }
2069
+
2070
+ .matchid-nomore{
2071
+ display: flex;
2072
+ justify-content: center;
2073
+ align-items: center;
2074
+ font-weight: 500;
2075
+ font-size: 16px;
2076
+ color: var(--matchid-secondary-grey);
2077
+ padding:20px 0;
2078
+ @media screen and (max-width: 768px) {
2079
+ font-size: 14px;
2080
+ }
2081
+ }
2082
+
2083
+ .matchid-tabs{
2084
+ gap:36px;
2085
+ align-items: start;
2086
+ display: flex;
2087
+ }
2088
+
2089
+ .matchid-tab{
2090
+ color:var(--matchid-tab-color);
2091
+ font-weight:500;
2092
+ font-size: 20px;
2093
+ cursor: pointer;
2094
+
2095
+ @media screen and (max-width: 768px) {
2096
+ font-size: 14px;
2097
+ padding:10px 0;
2098
+ }
2099
+ &.matchid-tab-active{
2100
+ color:var(--matchid-tab-active-color);
2101
+ border-bottom: 2px solid var(--matchid-tab-active-color);
2102
+ }
2103
+ }
2104
+
2105
+ .matchid-cursor-pointer{
2106
+ cursor: pointer;
2107
+ }
2108
+
2109
+ .matchid-remove-box{
2110
+ padding:0px 20px;
1988
2111
  }
package/dist/index.d.mts CHANGED
@@ -1,25 +1,26 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-Cv5UhCIP.mjs';
3
- export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-Bsfb3Ysq.mjs';
4
- export { i as Components } from './index-0EM3dXJ4.mjs';
5
- export { i as UI } from './index-CqO8nMTh.mjs';
6
- export { i as Api } from './index-CteYYAoN.mjs';
2
+ import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-VrV1kYga.mjs';
3
+ export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-DjbH13zc.mjs';
4
+ export { i as Components } from './index-D7S5DMUy.mjs';
5
+ export { i as UI } from './index-DC4F1u-w.mjs';
6
+ export { i as Api } from './index-BrzFSkOe.mjs';
7
7
  export { i as Chains } from './index-DXRGMAbv.mjs';
8
- export { i as Types } from './index-C29kl7io.mjs';
8
+ export { i as Types } from './index-SOVt-ADK.mjs';
9
+ export { i as Icon } from './index-BVfCh4l-.mjs';
9
10
  import '@tanstack/react-query/src/types';
11
+ import './request-B0CyrGFT.mjs';
10
12
  import 'viem';
11
13
  import 'viem/types/misc';
12
14
  import 'abitype';
13
15
  import 'react/jsx-runtime';
14
16
  import 'viem/_types/actions/siwe/verifySiweMessage';
15
17
  import '@tanstack/react-query';
16
- import './index-CGx_yc95.mjs';
18
+ import './index-BaFmUVw-.mjs';
17
19
 
18
20
  type MatchContextType = {
19
21
  appid: string;
20
22
  events?: IMatchEvents;
21
23
  login: (data: {
22
- mid: string;
23
24
  token: string;
24
25
  }) => Promise<void>;
25
26
  theme: "light" | "dark";
package/dist/index.d.ts CHANGED
@@ -1,25 +1,26 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-Cv5UhCIP.js';
3
- export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-C7InzeOC.js';
4
- export { i as Components } from './index-Ce5JlNJv.js';
5
- export { i as UI } from './index-CO1j3Cxc.js';
6
- export { i as Api } from './index-BoIDCH41.js';
2
+ import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-VrV1kYga.js';
3
+ export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-zc2GEzJ9.js';
4
+ export { i as Components } from './index-DQFQ39D9.js';
5
+ export { i as UI } from './index-C0UKUm0h.js';
6
+ export { i as Api } from './index-BgdY5xdW.js';
7
7
  export { i as Chains } from './index-DXRGMAbv.js';
8
- export { i as Types } from './index-BNNgBoTN.js';
8
+ export { i as Types } from './index-D5WIVIkc.js';
9
+ export { i as Icon } from './index-D3Kp05kW.js';
9
10
  import '@tanstack/react-query/src/types';
11
+ import './request-B0CyrGFT.js';
10
12
  import 'viem';
11
13
  import 'viem/types/misc';
12
14
  import 'abitype';
13
15
  import 'react/jsx-runtime';
14
16
  import 'viem/_types/actions/siwe/verifySiweMessage';
15
17
  import '@tanstack/react-query';
16
- import './index-BlYHNOxm.js';
18
+ import './index-CQmN0dN4.js';
17
19
 
18
20
  type MatchContextType = {
19
21
  appid: string;
20
22
  events?: IMatchEvents;
21
23
  login: (data: {
22
- mid: string;
23
24
  token: string;
24
25
  }) => Promise<void>;
25
26
  theme: "light" | "dark";