@thenamespace/ens-components 0.0.5-alpha → 0.0.7-alpha
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.
- package/dist/index.css +218 -208
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +37 -26
- package/dist/index.js +1374 -960
- package/dist/index.js.map +1 -1
- package/dist/types/components/atoms/chain-icon/icons/ArbSvg.d.ts +6 -0
- package/dist/types/components/atoms/chain-icon/icons/BaseSvg.d.ts +6 -0
- package/dist/types/components/atoms/chain-icon/icons/BitcoinSvg.d.ts +6 -0
- package/dist/types/components/atoms/chain-icon/icons/CeloSvg.d.ts +6 -0
- package/dist/types/components/atoms/chain-icon/icons/EthSvg.d.ts +6 -0
- package/dist/types/components/atoms/chain-icon/icons/MaticSvg.d.ts +6 -0
- package/dist/types/components/atoms/chain-icon/icons/OpSvg.d.ts +6 -0
- package/dist/types/components/atoms/chain-icon/icons/SolSvg.d.ts +6 -0
- package/dist/types/components/atoms/chain-icon/icons/ZoraSvg.d.ts +6 -0
- package/dist/types/components/index.d.ts +3 -2
- package/dist/types/constants/records/textConstants.d.ts +1 -1
- package/dist/types/hooks/useWeb3Clients.d.ts +14 -14
- package/dist/types/types/chain.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -909,6 +909,218 @@
|
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
911
|
|
|
912
|
+
.ns-pending-tx{
|
|
913
|
+
align-items:center;
|
|
914
|
+
box-shadow:var(--ns-shadow);
|
|
915
|
+
display:flex;
|
|
916
|
+
flex-direction:column;
|
|
917
|
+
margin:0 auto;
|
|
918
|
+
max-width:400px;
|
|
919
|
+
overflow:hidden;
|
|
920
|
+
padding:24px;
|
|
921
|
+
position:relative;
|
|
922
|
+
text-align:center;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.ns-pending-tx:before{
|
|
926
|
+
background:linear-gradient(90deg, var(--ns-color-primary), var(--ns-color-muted));
|
|
927
|
+
border-radius:var(--ns-radius-lg) var(--ns-radius-lg) 0 0;
|
|
928
|
+
content:"";
|
|
929
|
+
height:4px;
|
|
930
|
+
left:0;
|
|
931
|
+
position:absolute;
|
|
932
|
+
right:0;
|
|
933
|
+
top:0;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
.ns-pending-tx--in-progress:before{
|
|
937
|
+
animation:progress-shimmer 2s ease-in-out infinite;
|
|
938
|
+
background:linear-gradient(90deg, #3b82f6, #1d4ed8);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.ns-pending-tx--completed:before{
|
|
942
|
+
background:linear-gradient(90deg, var(--ns-alert-success-text), #16a34a);
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
.ns-pending-tx--failed:before{
|
|
946
|
+
background:linear-gradient(90deg, var(--ns-alert-error-text), #dc2626);
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
@keyframes progress-shimmer{
|
|
950
|
+
0%{
|
|
951
|
+
background-position:-200% 0;
|
|
952
|
+
}
|
|
953
|
+
to{
|
|
954
|
+
background-position:200% 0;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.ns-pending-tx__content{
|
|
959
|
+
align-items:center;
|
|
960
|
+
display:flex;
|
|
961
|
+
flex-direction:column;
|
|
962
|
+
gap:16px;
|
|
963
|
+
width:100%;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.ns-pending-tx__status{
|
|
967
|
+
align-items:center;
|
|
968
|
+
display:flex;
|
|
969
|
+
font-size:16px;
|
|
970
|
+
font-weight:500;
|
|
971
|
+
gap:12px;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
.ns-pending-tx__icon{
|
|
975
|
+
align-items:center;
|
|
976
|
+
border-radius:50%;
|
|
977
|
+
display:flex;
|
|
978
|
+
height:48px;
|
|
979
|
+
justify-content:center;
|
|
980
|
+
position:relative;
|
|
981
|
+
width:48px;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
.ns-pending-tx__icon--in-progress{
|
|
985
|
+
animation:pulse 2s ease-in-out infinite;
|
|
986
|
+
background:rgba(59,130,246,.1);
|
|
987
|
+
color:#3b82f6;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
.ns-pending-tx__icon--completed{
|
|
991
|
+
animation:success-bounce .6s ease-out;
|
|
992
|
+
background:rgba(22,163,74,.1);
|
|
993
|
+
color:var(--ns-alert-success-text);
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.ns-pending-tx__icon--failed{
|
|
997
|
+
animation:error-shake .5s ease-in-out;
|
|
998
|
+
background:rgba(220,38,38,.1);
|
|
999
|
+
color:var(--ns-alert-error-text);
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
@keyframes pulse{
|
|
1003
|
+
0%,to{
|
|
1004
|
+
opacity:1;
|
|
1005
|
+
transform:scale(1);
|
|
1006
|
+
}
|
|
1007
|
+
50%{
|
|
1008
|
+
opacity:.8;
|
|
1009
|
+
transform:scale(1.05);
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
@keyframes success-bounce{
|
|
1014
|
+
0%{
|
|
1015
|
+
transform:scale(.3);
|
|
1016
|
+
}
|
|
1017
|
+
50%{
|
|
1018
|
+
transform:scale(1.1);
|
|
1019
|
+
}
|
|
1020
|
+
to{
|
|
1021
|
+
transform:scale(1);
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
@keyframes error-shake{
|
|
1026
|
+
0%,to{
|
|
1027
|
+
transform:translateX(0);
|
|
1028
|
+
}
|
|
1029
|
+
25%{
|
|
1030
|
+
transform:translateX(-5px);
|
|
1031
|
+
}
|
|
1032
|
+
75%{
|
|
1033
|
+
transform:translateX(5px);
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.ns-pending-tx__spinner{
|
|
1038
|
+
animation:spin 1s linear infinite;
|
|
1039
|
+
border:2px solid rgba(59,130,246,.2);
|
|
1040
|
+
border-radius:50%;
|
|
1041
|
+
border-top-color:#3b82f6;
|
|
1042
|
+
height:24px;
|
|
1043
|
+
width:24px;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
@keyframes spin{
|
|
1047
|
+
0%{
|
|
1048
|
+
transform:rotate(0deg);
|
|
1049
|
+
}
|
|
1050
|
+
to{
|
|
1051
|
+
transform:rotate(1turn);
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
.ns-pending-tx__message{
|
|
1056
|
+
color:var(--ns-color-muted);
|
|
1057
|
+
font-size:14px;
|
|
1058
|
+
margin:0;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
.ns-pending-tx__link{
|
|
1062
|
+
align-items:center;
|
|
1063
|
+
background:var(--ns-color-bg-accent);
|
|
1064
|
+
border:1px solid var(--ns-color-border);
|
|
1065
|
+
border-radius:var(--ns-radius-md);
|
|
1066
|
+
color:var(--ns-color-fg);
|
|
1067
|
+
display:inline-flex;
|
|
1068
|
+
font-size:14px;
|
|
1069
|
+
font-weight:500;
|
|
1070
|
+
gap:8px;
|
|
1071
|
+
padding:12px 20px;
|
|
1072
|
+
text-decoration:none;
|
|
1073
|
+
transition:all .2s ease;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
.ns-pending-tx__link:hover{
|
|
1077
|
+
background:var(--ns-color-bg-accent-hover);
|
|
1078
|
+
box-shadow:0 4px 12px rgba(0,0,0,.1);
|
|
1079
|
+
transform:translateY(-1px);
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
.ns-pending-tx__link:active{
|
|
1083
|
+
transform:translateY(0);
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
.ns-pending-tx__link-icon{
|
|
1087
|
+
transition:transform .2s ease;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
.ns-pending-tx__link:hover .ns-pending-tx__link-icon{
|
|
1091
|
+
transform:translateX(2px);
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
[data-theme=dark] .ns-pending-tx{
|
|
1095
|
+
background:var(--ns-color-bg);
|
|
1096
|
+
border-color:var(--ns-color-border);
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
[data-theme=dark] .ns-pending-tx__link{
|
|
1100
|
+
background:var(--ns-color-bg-accent);
|
|
1101
|
+
border-color:var(--ns-color-border);
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
[data-theme=dark] .ns-pending-tx__link:hover{
|
|
1105
|
+
background:var(--ns-color-bg-accent-hover);
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
@media (max-width:480px){
|
|
1109
|
+
.ns-pending-tx{
|
|
1110
|
+
margin:0 16px;
|
|
1111
|
+
padding:20px;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
.ns-pending-tx__status{
|
|
1115
|
+
font-size:14px;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
.ns-pending-tx__icon{
|
|
1119
|
+
height:40px;
|
|
1120
|
+
width:40px;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
|
|
912
1124
|
.ns-dropdown{
|
|
913
1125
|
display:inline-block;
|
|
914
1126
|
position:relative;
|
|
@@ -1415,218 +1627,16 @@
|
|
|
1415
1627
|
opacity:1;
|
|
1416
1628
|
}
|
|
1417
1629
|
|
|
1418
|
-
.ns-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
display:flex;
|
|
1422
|
-
flex-direction:column;
|
|
1423
|
-
margin:0 auto;
|
|
1424
|
-
max-width:400px;
|
|
1425
|
-
overflow:hidden;
|
|
1426
|
-
padding:24px;
|
|
1427
|
-
position:relative;
|
|
1428
|
-
text-align:center;
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
.ns-pending-tx:before{
|
|
1432
|
-
background:linear-gradient(90deg, var(--ns-color-primary), var(--ns-color-muted));
|
|
1433
|
-
border-radius:var(--ns-radius-lg) var(--ns-radius-lg) 0 0;
|
|
1434
|
-
content:"";
|
|
1435
|
-
height:4px;
|
|
1436
|
-
left:0;
|
|
1437
|
-
position:absolute;
|
|
1438
|
-
right:0;
|
|
1439
|
-
top:0;
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
.ns-pending-tx--in-progress:before{
|
|
1443
|
-
animation:progress-shimmer 2s ease-in-out infinite;
|
|
1444
|
-
background:linear-gradient(90deg, #3b82f6, #1d4ed8);
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
|
-
.ns-pending-tx--completed:before{
|
|
1448
|
-
background:linear-gradient(90deg, var(--ns-alert-success-text), #16a34a);
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
.ns-pending-tx--failed:before{
|
|
1452
|
-
background:linear-gradient(90deg, var(--ns-alert-error-text), #dc2626);
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
|
-
@keyframes progress-shimmer{
|
|
1456
|
-
0%{
|
|
1457
|
-
background-position:-200% 0;
|
|
1458
|
-
}
|
|
1459
|
-
to{
|
|
1460
|
-
background-position:200% 0;
|
|
1461
|
-
}
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
.ns-pending-tx__content{
|
|
1465
|
-
align-items:center;
|
|
1466
|
-
display:flex;
|
|
1467
|
-
flex-direction:column;
|
|
1468
|
-
gap:16px;
|
|
1469
|
-
width:100%;
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
.ns-pending-tx__status{
|
|
1473
|
-
align-items:center;
|
|
1474
|
-
display:flex;
|
|
1475
|
-
font-size:16px;
|
|
1476
|
-
font-weight:500;
|
|
1477
|
-
gap:12px;
|
|
1478
|
-
}
|
|
1479
|
-
|
|
1480
|
-
.ns-pending-tx__icon{
|
|
1481
|
-
align-items:center;
|
|
1482
|
-
border-radius:50%;
|
|
1483
|
-
display:flex;
|
|
1484
|
-
height:48px;
|
|
1485
|
-
justify-content:center;
|
|
1486
|
-
position:relative;
|
|
1487
|
-
width:48px;
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
.ns-pending-tx__icon--in-progress{
|
|
1491
|
-
animation:pulse 2s ease-in-out infinite;
|
|
1492
|
-
background:rgba(59,130,246,.1);
|
|
1493
|
-
color:#3b82f6;
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
.ns-pending-tx__icon--completed{
|
|
1497
|
-
animation:success-bounce .6s ease-out;
|
|
1498
|
-
background:rgba(22,163,74,.1);
|
|
1499
|
-
color:var(--ns-alert-success-text);
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
.ns-pending-tx__icon--failed{
|
|
1503
|
-
animation:error-shake .5s ease-in-out;
|
|
1504
|
-
background:rgba(220,38,38,.1);
|
|
1505
|
-
color:var(--ns-alert-error-text);
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1508
|
-
@keyframes pulse{
|
|
1509
|
-
0%,to{
|
|
1510
|
-
opacity:1;
|
|
1511
|
-
transform:scale(1);
|
|
1512
|
-
}
|
|
1513
|
-
50%{
|
|
1514
|
-
opacity:.8;
|
|
1515
|
-
transform:scale(1.05);
|
|
1516
|
-
}
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
|
-
@keyframes success-bounce{
|
|
1520
|
-
0%{
|
|
1521
|
-
transform:scale(.3);
|
|
1522
|
-
}
|
|
1523
|
-
50%{
|
|
1524
|
-
transform:scale(1.1);
|
|
1525
|
-
}
|
|
1526
|
-
to{
|
|
1527
|
-
transform:scale(1);
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
|
|
1531
|
-
@keyframes error-shake{
|
|
1532
|
-
0%,to{
|
|
1533
|
-
transform:translateX(0);
|
|
1534
|
-
}
|
|
1535
|
-
25%{
|
|
1536
|
-
transform:translateX(-5px);
|
|
1537
|
-
}
|
|
1538
|
-
75%{
|
|
1539
|
-
transform:translateX(5px);
|
|
1540
|
-
}
|
|
1541
|
-
}
|
|
1542
|
-
|
|
1543
|
-
.ns-pending-tx__spinner{
|
|
1544
|
-
animation:spin 1s linear infinite;
|
|
1545
|
-
border:2px solid rgba(59,130,246,.2);
|
|
1546
|
-
border-radius:50%;
|
|
1547
|
-
border-top-color:#3b82f6;
|
|
1548
|
-
height:24px;
|
|
1549
|
-
width:24px;
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
@keyframes spin{
|
|
1553
|
-
0%{
|
|
1554
|
-
transform:rotate(0deg);
|
|
1555
|
-
}
|
|
1556
|
-
to{
|
|
1557
|
-
transform:rotate(1turn);
|
|
1558
|
-
}
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
|
-
.ns-pending-tx__message{
|
|
1562
|
-
color:var(--ns-color-muted);
|
|
1563
|
-
font-size:14px;
|
|
1564
|
-
margin:0;
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
.ns-pending-tx__link{
|
|
1568
|
-
align-items:center;
|
|
1569
|
-
background:var(--ns-color-bg-accent);
|
|
1570
|
-
border:1px solid var(--ns-color-border);
|
|
1571
|
-
border-radius:var(--ns-radius-md);
|
|
1572
|
-
color:var(--ns-color-fg);
|
|
1573
|
-
display:inline-flex;
|
|
1574
|
-
font-size:14px;
|
|
1575
|
-
font-weight:500;
|
|
1576
|
-
gap:8px;
|
|
1577
|
-
padding:12px 20px;
|
|
1578
|
-
text-decoration:none;
|
|
1579
|
-
transition:all .2s ease;
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
.ns-pending-tx__link:hover{
|
|
1583
|
-
background:var(--ns-color-bg-accent-hover);
|
|
1584
|
-
box-shadow:0 4px 12px rgba(0,0,0,.1);
|
|
1585
|
-
transform:translateY(-1px);
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
.ns-pending-tx__link:active{
|
|
1589
|
-
transform:translateY(0);
|
|
1590
|
-
}
|
|
1591
|
-
|
|
1592
|
-
.ns-pending-tx__link-icon{
|
|
1593
|
-
transition:transform .2s ease;
|
|
1594
|
-
}
|
|
1595
|
-
|
|
1596
|
-
.ns-pending-tx__link:hover .ns-pending-tx__link-icon{
|
|
1597
|
-
transform:translateX(2px);
|
|
1598
|
-
}
|
|
1599
|
-
|
|
1600
|
-
[data-theme=dark] .ns-pending-tx{
|
|
1601
|
-
background:var(--ns-color-bg);
|
|
1602
|
-
border-color:var(--ns-color-border);
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
[data-theme=dark] .ns-pending-tx__link{
|
|
1606
|
-
background:var(--ns-color-bg-accent);
|
|
1607
|
-
border-color:var(--ns-color-border);
|
|
1608
|
-
}
|
|
1609
|
-
|
|
1610
|
-
[data-theme=dark] .ns-pending-tx__link:hover{
|
|
1611
|
-
background:var(--ns-color-bg-accent-hover);
|
|
1630
|
+
.ns-edit-records-form{
|
|
1631
|
+
background-color:var(--ns-color-bg-accent);
|
|
1632
|
+
width:500px;
|
|
1612
1633
|
}
|
|
1613
1634
|
|
|
1614
|
-
@media (max-width:
|
|
1615
|
-
.ns-
|
|
1616
|
-
|
|
1617
|
-
padding:20px;
|
|
1618
|
-
}
|
|
1619
|
-
|
|
1620
|
-
.ns-pending-tx__status{
|
|
1621
|
-
font-size:14px;
|
|
1622
|
-
}
|
|
1623
|
-
|
|
1624
|
-
.ns-pending-tx__icon{
|
|
1625
|
-
height:40px;
|
|
1626
|
-
width:40px;
|
|
1635
|
+
@media screen and (max-width:600px){
|
|
1636
|
+
.ns-edit-records-form{
|
|
1637
|
+
width:100%;
|
|
1627
1638
|
}
|
|
1628
1639
|
}
|
|
1629
|
-
|
|
1630
1640
|
:root{
|
|
1631
1641
|
--ns-font-family:"Satoshi", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
|
|
1632
1642
|
--ns-radius-sm:4px;
|