@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.
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare const BTC: ({ width, height, ...rest }: {
3
+ [x: string]: any;
4
+ width?: number | undefined;
5
+ height?: number | undefined;
6
+ }) => React.JSX.Element;
7
+ export default BTC;
@@ -21,3 +21,4 @@ export { default as BankIcon } from './Bank';
21
21
  export { default as BSCIcon } from './BSC';
22
22
  export { default as KEURICON } from './KEUR';
23
23
  export { default as TronIcon } from './Tron';
24
+ export { default as BTCIcon } from './BTC';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const PendingTxPopup: () => React.JSX.Element;
3
+ export default PendingTxPopup;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const ExpireTimeDropdown: () => React.JSX.Element;
3
+ export default ExpireTimeDropdown;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const TxButton: ({ theme }: {
3
+ theme: any;
4
+ }) => React.JSX.Element;
5
+ export default TxButton;
@@ -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';
@@ -1,3 +1,4 @@
1
1
  export declare const formatterInt: Intl.NumberFormat;
2
2
  export declare const formatterFloat: Intl.NumberFormat;
3
3
  export declare function isEmptyObject(arg: any): boolean;
4
+ export declare const sleep: (delay: any) => Promise<unknown>;
@@ -2,5 +2,6 @@ export default function useAllowance({ setApproving }: {
2
2
  setApproving: any;
3
3
  }): {
4
4
  isApproved: boolean;
5
+ poolAddress: string;
5
6
  approve: () => Promise<void>;
6
7
  };
@@ -2,6 +2,6 @@ declare function useIsWalletReady(): {
2
2
  isReady: boolean;
3
3
  statusMessage: string;
4
4
  walletAddress?: string;
5
- forceNetworkSwitch: () => void;
5
+ connectBitcoinWallet: () => void;
6
6
  };
7
7
  export default useIsWalletReady;
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: 1em;
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;