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

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-YGFOHQU6.mjs → chunk-6HRRPZPM.mjs} +2 -2
  7. package/dist/{chunk-LHNKZISB.mjs → chunk-A5D3NKTK.mjs} +4 -91
  8. package/dist/chunk-A5D3NKTK.mjs.map +1 -0
  9. package/dist/{chunk-2LRK5L4Z.mjs → chunk-D6IUBR7S.mjs} +446 -1442
  10. package/dist/chunk-D6IUBR7S.mjs.map +1 -0
  11. package/dist/{chunk-MXBUBTKR.mjs → chunk-LNSJ3ZXG.mjs} +5 -11
  12. package/dist/chunk-LNSJ3ZXG.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 +171 -1563
  26. package/dist/hooks/index.js.map +1 -1
  27. package/dist/hooks/index.mjs +3 -12
  28. package/dist/index-BHVMQGZj.d.mts +173 -0
  29. package/dist/{index-BxPB2IQ2.d.ts → index-BIgM4fy0.d.mts} +8 -29
  30. package/dist/{index-NzZ-mfGZ.d.mts → index-BVatQlwF.d.mts} +2 -5
  31. package/dist/{index-DZ-eQkIA.d.mts → index-Bb7IkjUW.d.mts} +1 -1
  32. package/dist/{index-CE20hVl1.d.mts → index-BwD1ij0H.d.ts} +8 -29
  33. package/dist/{index-BQPieWF9.d.ts → index-C2-M-aBb.d.ts} +3 -4
  34. package/dist/{index-DAEvA2P4.d.ts → index-CGs_yTFg.d.ts} +4 -28
  35. package/dist/{index-C9s2Ea9O.d.ts → index-CKiK4KHj.d.ts} +1 -1
  36. package/dist/{index-BsmYcQQU.d.mts → index-DamklTOJ.d.mts} +3 -4
  37. package/dist/index-DgAnNnit.d.ts +173 -0
  38. package/dist/{index-BEwCPHZr.d.mts → index-M7ZB3yR5.d.mts} +4 -28
  39. package/dist/{index-88JSE0j2.d.ts → index-RfA22r-Z.d.ts} +2 -5
  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 +1004 -2142
  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-DQq17lf4.d.mts} +33 -48
  49. package/dist/{types-BZoVuUty.d.ts → types-DQq17lf4.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-6HRRPZPM.mjs.map} +0 -0
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
- }
package/dist/index.d.mts CHANGED
@@ -1,18 +1,17 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-BZoVuUty.mjs';
3
- export { i as Components } from './index-BEwCPHZr.mjs';
4
- export { i as UI } from './index-BsmYcQQU.mjs';
5
- export { i as Hooks } from './index-P71uc8y5.mjs';
6
- export { i as Api } from './index-CE20hVl1.mjs';
2
+ import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-DQq17lf4.mjs';
3
+ export { i as Components } from './index-M7ZB3yR5.mjs';
4
+ export { i as UI } from './index-DamklTOJ.mjs';
5
+ export { i as Hooks } from './index-BHVMQGZj.mjs';
6
+ export { i as Api } from './index-BIgM4fy0.mjs';
7
7
  export { i as Chains } from './index-DXRGMAbv.mjs';
8
- export { i as Types } from './index-NzZ-mfGZ.mjs';
8
+ export { i as Types } from './index-BVatQlwF.mjs';
9
9
  import 'react/jsx-runtime';
10
- import './index-DZ-eQkIA.mjs';
10
+ import './index-Bb7IkjUW.mjs';
11
11
  import 'viem';
12
12
  import './mpc-CTbBWHld.mjs';
13
13
  import 'viem/types/misc';
14
14
  import 'abitype';
15
- import 'viem/_types/actions/siwe/verifySiweMessage';
16
15
  import '@tanstack/react-query';
17
16
  import '@tanstack/react-query/src/types';
18
17
 
package/dist/index.d.ts CHANGED
@@ -1,18 +1,17 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-BZoVuUty.js';
3
- export { i as Components } from './index-DAEvA2P4.js';
4
- export { i as UI } from './index-BQPieWF9.js';
5
- export { i as Hooks } from './index-DIxrMLXq.js';
6
- export { i as Api } from './index-BxPB2IQ2.js';
2
+ import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-DQq17lf4.js';
3
+ export { i as Components } from './index-CGs_yTFg.js';
4
+ export { i as UI } from './index-C2-M-aBb.js';
5
+ export { i as Hooks } from './index-DgAnNnit.js';
6
+ export { i as Api } from './index-BwD1ij0H.js';
7
7
  export { i as Chains } from './index-DXRGMAbv.js';
8
- export { i as Types } from './index-88JSE0j2.js';
8
+ export { i as Types } from './index-RfA22r-Z.js';
9
9
  import 'react/jsx-runtime';
10
- import './index-C9s2Ea9O.js';
10
+ import './index-CKiK4KHj.js';
11
11
  import 'viem';
12
12
  import './mpc-CTbBWHld.js';
13
13
  import 'viem/types/misc';
14
14
  import 'abitype';
15
- import 'viem/_types/actions/siwe/verifySiweMessage';
16
15
  import '@tanstack/react-query';
17
16
  import '@tanstack/react-query/src/types';
18
17