@kimafinance/kima-transaction-widget 1.2.16-beta.1 → 1.2.17-beta.1
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/assets/icons/BTC.d.ts +7 -0
- package/dist/assets/icons/index.d.ts +1 -0
- package/dist/components/modals/PendingTxPopup.d.ts +3 -0
- package/dist/components/reusable/ExpireTimeDropdown.d.ts +3 -0
- package/dist/components/reusable/TxButton.d.ts +5 -0
- package/dist/components/reusable/index.d.ts +1 -0
- package/dist/helpers/functions.d.ts +1 -0
- package/dist/hooks/useAllowance.d.ts +1 -0
- package/dist/hooks/useIsWalletReady.d.ts +1 -1
- package/dist/index.css +175 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +731 -184
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +494 -113
- package/dist/index.modern.js.map +1 -1
- package/dist/store/optionSlice.d.ts +473 -45
- package/dist/store/selectors.d.ts +4 -0
- package/dist/utils/btc/htlc.d.ts +8 -0
- package/dist/utils/btc/utils.d.ts +15 -0
- package/dist/utils/config.d.ts +0 -2
- package/dist/utils/constants.d.ts +5 -6
- package/package.json +10 -6
|
@@ -15,3 +15,4 @@ export { default as CustomCheckbox } from './CustomCheckbox';
|
|
|
15
15
|
export { default as StepBox } from './StepBox';
|
|
16
16
|
export { default as CopyButton } from './CopyButton';
|
|
17
17
|
export { default as BankInput } from './BankInput';
|
|
18
|
+
export { default as TxButton } from './TxButton';
|
package/dist/index.css
CHANGED
|
@@ -63,8 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
.kima-card .kima-card-header .topbar .control-buttons a, .kima-card .kima-card-header .topbar .control-buttons .menu-button {
|
|
65
65
|
margin-left: auto;
|
|
66
|
-
margin-right:
|
|
67
|
-
margin-top: 0.3em;
|
|
66
|
+
margin-right: 0.5em;
|
|
68
67
|
color: #5aa0db;
|
|
69
68
|
text-decoration: none;
|
|
70
69
|
cursor: pointer;
|
|
@@ -615,6 +614,93 @@
|
|
|
615
614
|
.kima-card .kima-card-content .single-form .coin-dropdown.dark {
|
|
616
615
|
background: #4f5156;
|
|
617
616
|
}
|
|
617
|
+
.kima-card .kima-card-content .single-form .expire-time-dropdown {
|
|
618
|
+
position: relative;
|
|
619
|
+
border-radius: 1em;
|
|
620
|
+
padding: 0.5em;
|
|
621
|
+
padding-right: 3em;
|
|
622
|
+
height: 2.8em;
|
|
623
|
+
display: flex;
|
|
624
|
+
align-items: center;
|
|
625
|
+
cursor: pointer;
|
|
626
|
+
box-sizing: content-box;
|
|
627
|
+
}
|
|
628
|
+
.kima-card .kima-card-content .single-form .expire-time-dropdown .expire-time-wrapper {
|
|
629
|
+
display: flex;
|
|
630
|
+
align-items: center;
|
|
631
|
+
border-radius: 1em;
|
|
632
|
+
font-size: 1em;
|
|
633
|
+
font-weight: 500;
|
|
634
|
+
padding: 0.2em;
|
|
635
|
+
padding-right: 0.5em;
|
|
636
|
+
padding-left: 0.5em;
|
|
637
|
+
color: black;
|
|
638
|
+
}
|
|
639
|
+
.kima-card .kima-card-content .single-form .expire-time-dropdown.dark .coin-wrapper {
|
|
640
|
+
color: white;
|
|
641
|
+
}
|
|
642
|
+
.kima-card .kima-card-content .single-form .expire-time-dropdown:before {
|
|
643
|
+
position: absolute;
|
|
644
|
+
content: "";
|
|
645
|
+
width: 0.8em;
|
|
646
|
+
height: 0.8em;
|
|
647
|
+
right: 1.1em;
|
|
648
|
+
top: 1.7em;
|
|
649
|
+
border-top: 2px solid;
|
|
650
|
+
border-right: 2px solid;
|
|
651
|
+
border-color: white;
|
|
652
|
+
transform: rotate(-45deg);
|
|
653
|
+
transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
654
|
+
}
|
|
655
|
+
.kima-card .kima-card-content .single-form .expire-time-dropdown .expire-time-menu {
|
|
656
|
+
box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
|
|
657
|
+
position: absolute;
|
|
658
|
+
z-index: 100;
|
|
659
|
+
max-height: 10em;
|
|
660
|
+
width: 100%;
|
|
661
|
+
top: calc(100% - 0.5em);
|
|
662
|
+
left: 0;
|
|
663
|
+
overflow: hidden;
|
|
664
|
+
transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
665
|
+
}
|
|
666
|
+
.kima-card .kima-card-content .single-form .expire-time-dropdown .expire-time-menu .expire-time-item {
|
|
667
|
+
padding: 0.5em 1em;
|
|
668
|
+
margin: 0;
|
|
669
|
+
transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
670
|
+
display: flex;
|
|
671
|
+
align-items: center;
|
|
672
|
+
}
|
|
673
|
+
.kima-card .kima-card-content .single-form .expire-time-dropdown .expire-time-menu .expire-time-item p {
|
|
674
|
+
width: 100%;
|
|
675
|
+
text-align: center;
|
|
676
|
+
margin: 0;
|
|
677
|
+
}
|
|
678
|
+
.kima-card .kima-card-content .single-form .expire-time-dropdown .expire-time-menu .expire-time-item:hover {
|
|
679
|
+
background: rgba(90, 160, 219, 0.5019607843);
|
|
680
|
+
}
|
|
681
|
+
.kima-card .kima-card-content .single-form .expire-time-dropdown .expire-time-menu.light {
|
|
682
|
+
background: white;
|
|
683
|
+
}
|
|
684
|
+
.kima-card .kima-card-content .single-form .expire-time-dropdown .expire-time-menu.dark {
|
|
685
|
+
background: #4f5156;
|
|
686
|
+
}
|
|
687
|
+
.kima-card .kima-card-content .single-form .expire-time-dropdown .expire-time-menu.collapsed {
|
|
688
|
+
max-height: 0;
|
|
689
|
+
opacity: 0;
|
|
690
|
+
}
|
|
691
|
+
.kima-card .kima-card-content .single-form .expire-time-dropdown.light {
|
|
692
|
+
background: #e3e3e3;
|
|
693
|
+
}
|
|
694
|
+
.kima-card .kima-card-content .single-form .expire-time-dropdown.light:before {
|
|
695
|
+
border-color: black;
|
|
696
|
+
}
|
|
697
|
+
.kima-card .kima-card-content .single-form .expire-time-dropdown.collapsed:before {
|
|
698
|
+
transform: rotate(135deg);
|
|
699
|
+
top: 1.2em;
|
|
700
|
+
}
|
|
701
|
+
.kima-card .kima-card-content .single-form .expire-time-dropdown.dark {
|
|
702
|
+
background: #4f5156;
|
|
703
|
+
}
|
|
618
704
|
.kima-card .kima-card-content .single-form .network-dropdown {
|
|
619
705
|
position: relative;
|
|
620
706
|
border-radius: 1em;
|
|
@@ -1203,6 +1289,15 @@
|
|
|
1203
1289
|
opacity: 0.7;
|
|
1204
1290
|
}
|
|
1205
1291
|
}
|
|
1292
|
+
.kima-card .tx-button {
|
|
1293
|
+
margin-right: 1em;
|
|
1294
|
+
-moz-column-gap: 0.5em;
|
|
1295
|
+
column-gap: 0.5em;
|
|
1296
|
+
width: 5em;
|
|
1297
|
+
display: flex;
|
|
1298
|
+
justify-content: center;
|
|
1299
|
+
align-items: center;
|
|
1300
|
+
}
|
|
1206
1301
|
.kima-card .dropdown-menu {
|
|
1207
1302
|
box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
|
|
1208
1303
|
position: absolute;
|
|
@@ -1232,7 +1327,7 @@
|
|
|
1232
1327
|
opacity: 0;
|
|
1233
1328
|
pointer-events: none;
|
|
1234
1329
|
}
|
|
1235
|
-
.kima-card .error-tooltip.dark {
|
|
1330
|
+
.kima-card .error-tooltip.dark, .kima-card .popup-tooltip.dark {
|
|
1236
1331
|
color: black;
|
|
1237
1332
|
background-color: white;
|
|
1238
1333
|
}
|
|
@@ -1349,6 +1444,83 @@
|
|
|
1349
1444
|
.kima-card .kima-modal.hash-popup .modal-content .hash-container .hash-item span {
|
|
1350
1445
|
width: 5em;
|
|
1351
1446
|
}
|
|
1447
|
+
.kima-card .kima-modal.pending-tx-popup .modal-content-container {
|
|
1448
|
+
width: 45em;
|
|
1449
|
+
height: 20em;
|
|
1450
|
+
}
|
|
1451
|
+
.kima-card .kima-modal.pending-tx-popup .modal-content {
|
|
1452
|
+
height: calc(100% - 2em);
|
|
1453
|
+
}
|
|
1454
|
+
.kima-card .kima-modal.pending-tx-popup .modal-content .scroll-area {
|
|
1455
|
+
height: 14em;
|
|
1456
|
+
width: 100%;
|
|
1457
|
+
margin-top: 1em;
|
|
1458
|
+
padding: 1em 0;
|
|
1459
|
+
overflow-y: scroll;
|
|
1460
|
+
overflow-x: clip;
|
|
1461
|
+
background: #e3e3e3;
|
|
1462
|
+
border-radius: 0.5em;
|
|
1463
|
+
}
|
|
1464
|
+
.kima-card .kima-modal.pending-tx-popup .modal-content .scroll-area::-webkit-scrollbar-track {
|
|
1465
|
+
background: transparent;
|
|
1466
|
+
border-radius: 3px;
|
|
1467
|
+
}
|
|
1468
|
+
.kima-card .kima-modal.pending-tx-popup .modal-content .scroll-area .tx-container {
|
|
1469
|
+
width: 100%;
|
|
1470
|
+
padding: 0;
|
|
1471
|
+
display: flex;
|
|
1472
|
+
flex-direction: column;
|
|
1473
|
+
row-gap: 0.5em;
|
|
1474
|
+
}
|
|
1475
|
+
.kima-card .kima-modal.pending-tx-popup .modal-content .scroll-area .tx-container .tx-item {
|
|
1476
|
+
display: flex;
|
|
1477
|
+
align-items: center;
|
|
1478
|
+
-moz-column-gap: 1em;
|
|
1479
|
+
column-gap: 1em;
|
|
1480
|
+
padding: 0.4em 0;
|
|
1481
|
+
cursor: pointer;
|
|
1482
|
+
transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
1483
|
+
}
|
|
1484
|
+
.kima-card .kima-modal.pending-tx-popup .modal-content .scroll-area .tx-container .tx-item:hover {
|
|
1485
|
+
background-color: rgba(90, 160, 219, 0.3137254902);
|
|
1486
|
+
}
|
|
1487
|
+
.kima-card .kima-modal.pending-tx-popup .modal-content .scroll-area .tx-container .tx-item .label {
|
|
1488
|
+
display: flex;
|
|
1489
|
+
flex-direction: column;
|
|
1490
|
+
align-items: center;
|
|
1491
|
+
width: 12em;
|
|
1492
|
+
}
|
|
1493
|
+
.kima-card .kima-modal.pending-tx-popup .modal-content .scroll-area .tx-container .tx-item .label .icon-wrapper {
|
|
1494
|
+
display: flex;
|
|
1495
|
+
align-items: center;
|
|
1496
|
+
-moz-column-gap: 0.4em;
|
|
1497
|
+
column-gap: 0.4em;
|
|
1498
|
+
}
|
|
1499
|
+
.kima-card .kima-modal.pending-tx-popup .modal-content .scroll-area .tx-container .tx-item .label .icon-wrapper svg {
|
|
1500
|
+
width: 1.5em;
|
|
1501
|
+
height: 1.5em;
|
|
1502
|
+
}
|
|
1503
|
+
.kima-card .kima-modal.pending-tx-popup .modal-content .scroll-area .tx-container .tx-item .amount-label {
|
|
1504
|
+
display: flex;
|
|
1505
|
+
align-items: center;
|
|
1506
|
+
-moz-column-gap: 0.5em;
|
|
1507
|
+
column-gap: 0.5em;
|
|
1508
|
+
width: 10em;
|
|
1509
|
+
justify-content: center;
|
|
1510
|
+
}
|
|
1511
|
+
.kima-card .kima-modal.pending-tx-popup .modal-content .scroll-area .tx-container .tx-item .status-label {
|
|
1512
|
+
width: 8em;
|
|
1513
|
+
text-align: center;
|
|
1514
|
+
}
|
|
1515
|
+
.kima-card .kima-modal.pending-tx-popup .modal-content .scroll-area .tx-container .tx-item .action-button {
|
|
1516
|
+
color: #5aa0db;
|
|
1517
|
+
display: flex;
|
|
1518
|
+
width: 5em;
|
|
1519
|
+
justify-content: center;
|
|
1520
|
+
}
|
|
1521
|
+
.kima-card .kima-modal.pending-tx-popup.dark .scroll-area {
|
|
1522
|
+
background-color: #434343;
|
|
1523
|
+
}
|
|
1352
1524
|
.kima-card .kima-modal.bank-popup .modal-content-container {
|
|
1353
1525
|
width: 100%;
|
|
1354
1526
|
height: calc(100% - 3em);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export { FontSizeOptions, ColorModeOptions, ThemeOptions, SupportNetworks, CurrencyOptions, ModeOptions, DAppOptions, CHAIN_STRING_TO_NAME, CHAIN_NAMES_TO_STRING } from './interface';
|
|
3
3
|
export { KimaTransactionWidget } from './components/KimaTransactionWidget';
|
|
4
|
-
export declare const KimaProvider: ({ children }: any) => React.JSX.Element;
|
|
4
|
+
export declare const KimaProvider: ({ walletConnectProjectId, children }: any) => React.JSX.Element;
|