@multiversx/sdk-dapp-liquidity 1.0.12 → 1.0.14
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/ConstantsUtil-BinYIDR2.mjs +8 -0
- package/ConstantsUtil-CbnVdQ5P.js +8 -0
- package/add-D-ECcdUh.mjs +19 -0
- package/add-Diz8heiY.js +20 -0
- package/all-wallets-_iOQf3bl.js +11 -0
- package/all-wallets-puIIQy3Y.mjs +10 -0
- package/app-store-BGTKFL27.js +22 -0
- package/app-store-Bsf7w3pv.mjs +21 -0
- package/apple-Cw8e8IGH.mjs +22 -0
- package/apple-DF7n_Yzl.js +23 -0
- package/arrow-bottom-Cp2C4fQv.mjs +12 -0
- package/arrow-bottom-DTvIR3s3.js +13 -0
- package/arrow-bottom-circle-CN6i5mHz.mjs +15 -0
- package/arrow-bottom-circle-CzPwiwWH.js +16 -0
- package/arrow-left-9VFYHQSW.js +13 -0
- package/arrow-left-BDQHoEvX.mjs +12 -0
- package/arrow-right-BxkuSpWU.mjs +12 -0
- package/arrow-right-DBLQ6w92.js +13 -0
- package/arrow-top-BiQd5Aey.js +13 -0
- package/arrow-top-BrLVX4Rj.mjs +12 -0
- package/bank-B7EC6Kdz.mjs +18 -0
- package/bank-CvPn9sfV.js +19 -0
- package/{bignumber-CKZkoo0g.mjs → bignumber-2Z7uapuD.mjs} +6 -6
- package/{bignumber-B8vjg9qn.js → bignumber-D1Wl54dL.js} +6 -6
- package/bin-BXO1kNZh.js +9 -0
- package/bin-CwiYVJ1L.mjs +8 -0
- package/bitcoin-C3kBVar_.mjs +17 -0
- package/bitcoin-DAvQGpeP.js +3251 -0
- package/bitcoin-dNBGbS2B.mjs +3251 -0
- package/bitcoin-k6bvmzMA.js +18 -0
- package/browser-ShRLuKKz.mjs +18 -0
- package/browser-t7nfT7HL.js +19 -0
- package/card-BJg5bdoM.mjs +18 -0
- package/card-hxUDXttT.js +19 -0
- package/checkmark-BpR0Yy93.mjs +15 -0
- package/checkmark-D9AVWgl5.js +16 -0
- package/checkmark-bold-D3Xcby1U.mjs +12 -0
- package/checkmark-bold-De02hde8.js +13 -0
- package/chevron-bottom-DcBf7T5F.js +13 -0
- package/chevron-bottom-DfGpWIz7.mjs +12 -0
- package/chevron-left-BKvYVnUo.js +13 -0
- package/chevron-left-DGSG9WJQ.mjs +12 -0
- package/chevron-right-BLgYIEeO.js +13 -0
- package/chevron-right-C2nsTx_Y.mjs +12 -0
- package/chevron-top-CwFOEFy8.js +13 -0
- package/chevron-top-vk-9DvUU.mjs +12 -0
- package/chrome-store-4H_ie3vA.mjs +65 -0
- package/chrome-store-BWarxVMl.js +66 -0
- package/circle-BtqWJU0_.mjs +8 -0
- package/circle-DYjG6o7-.js +9 -0
- package/clock-Ba5SM-pl.mjs +12 -0
- package/clock-DPzNREdU.js +13 -0
- package/close-CJHKFOyp.mjs +12 -0
- package/close-DDWnJdJe.js +13 -0
- package/coinPlaceholder-Cbba3D1H.mjs +12 -0
- package/coinPlaceholder-DdxQIc2D.js +13 -0
- package/compass-CugCxeSC.js +13 -0
- package/compass-DbN5DkTl.mjs +12 -0
- package/copy-CHSZprYJ.mjs +19 -0
- package/copy-En5h5Uhu.js +20 -0
- package/cursor-DCRkvEhr.mjs +7 -0
- package/cursor-DnEQtrUK.js +8 -0
- package/cursor-transparent-CU8lk-xg.js +17 -0
- package/cursor-transparent-CliETg4d.mjs +16 -0
- package/desktop-BgD7aypB.js +14 -0
- package/desktop-Cg5I32-p.mjs +13 -0
- package/disconnect-CCyMbAdw.js +13 -0
- package/disconnect-Cp2vRWB2.mjs +12 -0
- package/discord-B1d-qeSk.mjs +21 -0
- package/discord-BEB5klec.js +22 -0
- package/email-CorlePKz.js +873 -0
- package/email-Znno7H8_.mjs +878 -0
- package/embedded-wallet-B9ro9Tel.js +549 -0
- package/embedded-wallet-CnTWeseG.mjs +552 -0
- package/ethereum-BRcsRjUU.mjs +14 -0
- package/ethereum-CZ_xe09e.js +15 -0
- package/etherscan-BZKGpKp8.mjs +10 -0
- package/etherscan-DtLi-C3z.js +11 -0
- package/exclamation-triangle-BLNnBLEc.js +9 -0
- package/exclamation-triangle-CFThXxRT.mjs +8 -0
- package/extension-CwUepr-W.mjs +12 -0
- package/extension-DOD67G1k.js +13 -0
- package/external-link-CZkQS5XK.js +13 -0
- package/external-link-ClYNKSPt.mjs +12 -0
- package/facebook-CFjrd4my.mjs +30 -0
- package/facebook-CbE6K6AK.js +31 -0
- package/farcaster-Ba7_C-Vm.js +17 -0
- package/farcaster-DyVJtVS9.mjs +16 -0
- package/filters-CpHaFNjT.mjs +12 -0
- package/filters-w5LC-r6e.js +13 -0
- package/github-CeO70C3E.mjs +22 -0
- package/github-uLFBWAa5.js +23 -0
- package/google-CyOdUlbw.mjs +22 -0
- package/google-ILGK-opP.js +23 -0
- package/help-circle-Dh3dRNoB.mjs +16 -0
- package/help-circle-HUMbz_KN.js +17 -0
- package/id-Cy3Qkrvb.js +17 -0
- package/id-D-Q0uPFM.mjs +16 -0
- package/if-defined-CJ5EZLw2.js +815 -0
- package/if-defined-DjC5UMfF.mjs +815 -0
- package/image-BTGOf8bb.mjs +8 -0
- package/image-WFQO5bWa.js +9 -0
- package/index--O5ypTeK.mjs +70 -0
- package/index--Vg7VI9t.js +173 -0
- package/index-2iRSO1sa.mjs +9964 -0
- package/index-42Rpweo5.mjs +95 -0
- package/index-70kjE43k.mjs +90 -0
- package/index-8VyNYS01.js +273 -0
- package/index-B-dx8l0g.mjs +82 -0
- package/index-BB0nW9RB.mjs +198 -0
- package/index-BBwuv2SS.js +97 -0
- package/index-BIe-kofv.mjs +273 -0
- package/index-BQf6VHil.js +278 -0
- package/index-BWIZXhFv.mjs +630 -0
- package/index-BXkamf-I.js +337 -0
- package/index-BYTxCmKH.js +64 -0
- package/index-BYoOxo0S.js +218 -0
- package/index-Ba0tVdql.js +200 -0
- package/index-BdOAPWyt.mjs +210 -0
- package/index-BirWzf8c.mjs +71 -0
- package/index-BnCJUHtW.mjs +346 -0
- package/index-BuL2FC61.mjs +216 -0
- package/index-BxSUTfaY.js +88 -0
- package/index-C49C5Rxf.js +743 -0
- package/index-CNMDBpW7.js +346 -0
- package/index-CP0CGjqQ.mjs +263 -0
- package/index-CQaHcTZM.mjs +86 -0
- package/index-CRGXQei1.js +178 -0
- package/index-CSykUIfV.mjs +176 -0
- package/index-CWIHaLkQ.mjs +101 -0
- package/index-CZSDJd0P.mjs +1070 -0
- package/index-CZaV8JgR.mjs +49 -0
- package/index-CZjdy6QP.js +101 -0
- package/index-C_lIGGlC.js +632 -0
- package/index-CcgeRPs2.mjs +57 -0
- package/index-CeY_DRuc.js +566 -0
- package/index-ChFNkSxT.js +92 -0
- package/index-CkjZc20w.js +677 -0
- package/index-CtFcWwAd.js +72 -0
- package/index-D0mOfznC.mjs +362 -0
- package/index-DAtWLY21.js +84 -0
- package/index-DEs8H3w2.js +262 -0
- package/index-DLnxotbC.mjs +566 -0
- package/index-DN4fGDgg.mjs +743 -0
- package/index-DT_mc1hV.mjs +335 -0
- package/index-DZEwxUMS.js +59 -0
- package/index-DaRH_4bD.js +9939 -0
- package/index-Daok2ZKn.js +73 -0
- package/index-DomzHmwk.js +210 -0
- package/index-Dx7NyDyv.mjs +101 -0
- package/index-DyGir6_2.mjs +675 -0
- package/index-GglJmM2C.js +2237 -0
- package/index-H5b7UTeJ.mjs +173 -0
- package/index-NNZ1lNuc.mjs +168 -0
- package/index-RJd-gQcv.mjs +2235 -0
- package/index-dnFzVpGy.js +103 -0
- package/index-kwVLu8EV.js +168 -0
- package/index-miQwZPmn.js +51 -0
- package/index-oCj_SpOa.mjs +62 -0
- package/index-pNK-h_x9.js +1069 -0
- package/index-r6Kre1rx.js +362 -0
- package/index-xBD0nXoB.mjs +276 -0
- package/index.js +3 -3
- package/index.mjs +3 -3
- package/info-BKNAiN0k.js +8 -0
- package/info-DQE0s-A4.mjs +7 -0
- package/info-circle-C3uTocjH.js +17 -0
- package/info-circle-CIn6yeQo.mjs +16 -0
- package/lightbulb-CB-BmIop.js +8 -0
- package/lightbulb-Gv7IbnzO.mjs +7 -0
- package/mail-CFYm95wn.mjs +12 -0
- package/mail-GEwk-Fzr.js +13 -0
- package/mobile-CZ7ZBfa5.js +14 -0
- package/mobile-OIbnpFsU.mjs +13 -0
- package/more-C8N_RV55.mjs +15 -0
- package/more-CiQpPZwq.js +16 -0
- package/network-placeholder-CxEcczEx.mjs +18 -0
- package/network-placeholder-DwR8E8hP.js +19 -0
- package/nftPlaceholder-BFexVcGX.js +13 -0
- package/nftPlaceholder-MiYL110I.mjs +12 -0
- package/off-BNiMlpUU.mjs +8 -0
- package/off-iJHSK3Z7.js +9 -0
- package/onramp-Bs8HHFFY.js +1474 -0
- package/onramp-C6fuQfX7.mjs +1480 -0
- package/package.json +11 -11
- package/play-store-B4ssIYUA.js +37 -0
- package/play-store-D6nmQXhX.mjs +36 -0
- package/plus-Bh7z7Oc0.js +18 -0
- package/plus-C8ioZuCD.mjs +17 -0
- package/qr-code-CSVwaBLf.mjs +10 -0
- package/qr-code-YgtXPokK.js +11 -0
- package/react-BWxe90Ar.mjs +6342 -0
- package/react-BzZcQig5.js +6342 -0
- package/react-C_wTMVq_.js +23003 -0
- package/react-M-DnxvZl.mjs +23003 -0
- package/reactjs/components/BridgeForm/BridgeForm.js +2 -1
- package/reactjs/components/BridgeForm/BridgeForm.mjs +2 -1
- package/reactjs/components/Connect/BridgeAccountDisplay.js +3 -2
- package/reactjs/components/Connect/BridgeAccountDisplay.mjs +3 -2
- package/reactjs/components/Connect/CustomConnectButton.js +3 -2
- package/reactjs/components/Connect/CustomConnectButton.mjs +3 -2
- package/reactjs/components/Connect/SwitchChainButton.js +4 -3
- package/reactjs/components/Connect/SwitchChainButton.mjs +4 -3
- package/reactjs/components/DisplayAmount/DisplayAmount.js +1 -1
- package/reactjs/components/DisplayAmount/DisplayAmount.mjs +1 -1
- package/reactjs/components/TokenSelector/components/TokenItem.js +1 -1
- package/reactjs/components/TokenSelector/components/TokenItem.mjs +1 -1
- package/reactjs/hooks/useAccount.d.ts +4 -4
- package/reactjs/hooks/useAccount.js +3 -2
- package/reactjs/hooks/useAccount.mjs +3 -2
- package/reactjs/hooks/useGetChainId.js +1 -1
- package/reactjs/hooks/useGetChainId.mjs +1 -1
- package/reactjs/index.js +3 -3
- package/reactjs/index.mjs +3 -3
- package/reactjs/init/init.js +4 -3
- package/reactjs/init/init.mjs +4 -3
- package/reactjs/init/tests/init.spec.js +2 -2
- package/reactjs/init/tests/init.spec.mjs +2 -2
- package/reactjs/queries/useGetEvmTokensBalances.query.js +3 -2
- package/reactjs/queries/useGetEvmTokensBalances.query.mjs +3 -2
- package/reactjs/reexports.js +3 -3
- package/reactjs/reexports.mjs +3 -3
- package/reactjs/utils/getCleanStringAmount.js +1 -1
- package/reactjs/utils/getCleanStringAmount.mjs +1 -1
- package/reactjs/utils/hasEnoughFunds.js +1 -1
- package/reactjs/utils/hasEnoughFunds.mjs +1 -1
- package/reactjs/utils/isStringFloat.js +1 -1
- package/reactjs/utils/isStringFloat.mjs +1 -1
- package/reactjs/utils/roundAmount.js +1 -1
- package/reactjs/utils/roundAmount.mjs +1 -1
- package/receive-CK0hRQPr.js +212 -0
- package/receive-CQcD6bZf.mjs +212 -0
- package/recycle-horizontal--x5cMoTE.js +14 -0
- package/recycle-horizontal-QI0xtDHK.mjs +13 -0
- package/ref-CqxfRkBm.mjs +41 -0
- package/ref-FGI2cUQB.js +41 -0
- package/refresh-CFNHjhDi.js +13 -0
- package/refresh-CSOC1NUY.mjs +12 -0
- package/reown-logo-BfU5xFX5.js +17 -0
- package/reown-logo-CZAEp1jU.mjs +16 -0
- package/search-Do_rb-9-.mjs +12 -0
- package/search-V9CGMHkm.js +13 -0
- package/send-D-5G7tDL.mjs +1204 -0
- package/send-D4yYsIHV.mjs +19 -0
- package/send-DoiSHLsX.js +1202 -0
- package/send-_jfNFrys.js +20 -0
- package/socials-BL7-97fT.mjs +758 -0
- package/socials-DF0CK9cN.js +756 -0
- package/solana-BQ0Jh8lh.js +18 -0
- package/solana-YAkDp6j_.mjs +17 -0
- package/swapHorizontal-DOIo-Ccx.mjs +12 -0
- package/swapHorizontal-OHKtz4Gu.js +13 -0
- package/swapHorizontalBold-D7QmFj-c.js +13 -0
- package/swapHorizontalBold-DDroA0Af.mjs +12 -0
- package/swapHorizontalMedium-CU_v0kFz.mjs +20 -0
- package/swapHorizontalMedium-D-yMmtml.js +21 -0
- package/swapHorizontalRoundedBold-CHvbmnjw.js +13 -0
- package/swapHorizontalRoundedBold-DXMH0sgK.mjs +12 -0
- package/swapVertical-CH7fTK6w.js +13 -0
- package/swapVertical-HJZ6rFcr.mjs +12 -0
- package/swaps-CETflhdU.js +1952 -0
- package/swaps-DRUV6d3p.mjs +1954 -0
- package/telegram-CsCauOwj.mjs +20 -0
- package/telegram-DKEcF_Tq.js +21 -0
- package/three-dots-B-7hr8Nl.js +10 -0
- package/three-dots-LNZ_fjP7.mjs +9 -0
- package/transactions-BTTsGV2W.mjs +37 -0
- package/transactions-mpNNlClw.js +37 -0
- package/twitch-CCWVT2ij.js +23 -0
- package/twitch-Dg1CCQvd.mjs +22 -0
- package/twitterIcon-BjR09Cj9.mjs +10 -0
- package/twitterIcon-CeEs0iDJ.js +11 -0
- package/verify-B8WZq7kt.mjs +12 -0
- package/verify-filled-BeqC1imk.mjs +12 -0
- package/verify-filled-C-mv3ApD.js +13 -0
- package/verify-yATdPqt-.js +13 -0
- package/w3m-modal-3GziKj7h.js +1254 -0
- package/w3m-modal-81Z5PngE.mjs +1255 -0
- package/wallet-BMXEH23x.js +13 -0
- package/wallet-CNAVQCfm.mjs +12 -0
- package/wallet-placeholder-CQ-7CmVN.mjs +18 -0
- package/wallet-placeholder-CdoQy2e6.js +19 -0
- package/walletconnect-ACr-R1QZ.mjs +38 -0
- package/walletconnect-BWSkiS2F.js +39 -0
- package/warning-circle-CYnuYwpt.js +17 -0
- package/warning-circle-HV2lOiCj.mjs +16 -0
- package/x-CW5dozRj.js +17 -0
- package/x-Cgm2OFpL.mjs +16 -0
- package/x-mark-CR8SpZvu.js +8 -0
- package/x-mark-u0KJjUJ1.mjs +7 -0
- package/index-B4Eq5P3w.mjs +0 -91
- package/index-C4WV9nam.js +0 -329
- package/index-CWMcKi_X.js +0 -107
- package/index-D8E0O3qL.mjs +0 -68744
- package/index-DJ8CdHSw.mjs +0 -107
- package/index-nigVQYBu.js +0 -68665
- package/react-C43nEIqn.js +0 -3133
- package/react-DKUsVej7.js +0 -50
- package/react-Dp0H8q2z.mjs +0 -50
- package/react-wMhOUFOm.mjs +0 -3133
- package/w3m-modal-DLyg7Voy.js +0 -356
- package/w3m-modal-hC-B8qZP.mjs +0 -356
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
const bitcoin = require("./bitcoin-DAvQGpeP.js");
|
|
4
|
+
const ifDefined = require("./if-defined-CJ5EZLw2.js");
|
|
5
|
+
require("./index-CtFcWwAd.js");
|
|
6
|
+
require("./index-BBwuv2SS.js");
|
|
7
|
+
const styles$2 = bitcoin.i`
|
|
8
|
+
:host {
|
|
9
|
+
position: relative;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
button {
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
height: 48px;
|
|
17
|
+
width: 100%;
|
|
18
|
+
background-color: var(--wui-color-accent-glass-010);
|
|
19
|
+
border-radius: var(--wui-border-radius-xs);
|
|
20
|
+
border: 1px solid var(--wui-color-accent-glass-010);
|
|
21
|
+
transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
|
|
22
|
+
will-change: background-color;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
wui-tooltip {
|
|
26
|
+
padding: 7px var(--wui-spacing-s) 8px var(--wui-spacing-s);
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: -8px;
|
|
29
|
+
left: 50%;
|
|
30
|
+
transform: translate(-50%, -100%);
|
|
31
|
+
opacity: 0;
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media (hover: hover) and (pointer: fine) {
|
|
36
|
+
button:hover:enabled {
|
|
37
|
+
background-color: var(--wui-color-accent-glass-015);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
button:active:enabled {
|
|
41
|
+
background-color: var(--wui-color-accent-glass-020);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
var __decorate$2 = function(decorators, target, key, desc) {
|
|
46
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
47
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
48
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
49
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
50
|
+
};
|
|
51
|
+
let WuiIconButton = class WuiIconButton2 extends bitcoin.i$1 {
|
|
52
|
+
constructor() {
|
|
53
|
+
super(...arguments);
|
|
54
|
+
this.text = "";
|
|
55
|
+
this.icon = "card";
|
|
56
|
+
}
|
|
57
|
+
render() {
|
|
58
|
+
return bitcoin.x`<button>
|
|
59
|
+
<wui-icon color="accent-100" name=${this.icon} size="lg"></wui-icon>
|
|
60
|
+
</button>`;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
WuiIconButton.styles = [bitcoin.resetStyles, bitcoin.elementStyles, styles$2];
|
|
64
|
+
__decorate$2([
|
|
65
|
+
ifDefined.n()
|
|
66
|
+
], WuiIconButton.prototype, "text", void 0);
|
|
67
|
+
__decorate$2([
|
|
68
|
+
ifDefined.n()
|
|
69
|
+
], WuiIconButton.prototype, "icon", void 0);
|
|
70
|
+
WuiIconButton = __decorate$2([
|
|
71
|
+
ifDefined.customElement("wui-icon-button")
|
|
72
|
+
], WuiIconButton);
|
|
73
|
+
const networkSvgLg = bitcoin.b`<svg width="86" height="96" fill="none">
|
|
74
|
+
<path
|
|
75
|
+
d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z"
|
|
76
|
+
/>
|
|
77
|
+
</svg>`;
|
|
78
|
+
const networkSvgMd = bitcoin.b`<svg viewBox="0 0 48 54" fill="none">
|
|
79
|
+
<path
|
|
80
|
+
d="M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z"
|
|
81
|
+
/>
|
|
82
|
+
</svg>`;
|
|
83
|
+
const networkSvgSm = bitcoin.b`
|
|
84
|
+
<svg fill="none" viewBox="0 0 36 40">
|
|
85
|
+
<path
|
|
86
|
+
d="M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.61 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z"
|
|
87
|
+
/>
|
|
88
|
+
</svg>
|
|
89
|
+
`;
|
|
90
|
+
const styles$1 = bitcoin.i`
|
|
91
|
+
:host {
|
|
92
|
+
position: relative;
|
|
93
|
+
border-radius: inherit;
|
|
94
|
+
display: flex;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
align-items: center;
|
|
97
|
+
width: var(--local-width);
|
|
98
|
+
height: var(--local-height);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:host([data-round='true']) {
|
|
102
|
+
background: var(--wui-color-gray-glass-002);
|
|
103
|
+
border-radius: 100%;
|
|
104
|
+
outline: 1px solid var(--wui-color-gray-glass-005);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
svg {
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: 0;
|
|
110
|
+
left: 0;
|
|
111
|
+
width: 100%;
|
|
112
|
+
height: 100%;
|
|
113
|
+
z-index: 1;
|
|
114
|
+
fill: var(--wui-color-gray-glass-002);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
svg > path {
|
|
118
|
+
stroke: var(--local-stroke);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
wui-image {
|
|
122
|
+
width: 100%;
|
|
123
|
+
height: 100%;
|
|
124
|
+
-webkit-clip-path: var(--local-path);
|
|
125
|
+
clip-path: var(--local-path);
|
|
126
|
+
background: var(--wui-color-gray-glass-002);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
wui-icon {
|
|
130
|
+
transform: translateY(-5%);
|
|
131
|
+
width: var(--local-icon-size);
|
|
132
|
+
height: var(--local-icon-size);
|
|
133
|
+
}
|
|
134
|
+
`;
|
|
135
|
+
var __decorate$1 = function(decorators, target, key, desc) {
|
|
136
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
137
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
138
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
139
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
140
|
+
};
|
|
141
|
+
let WuiNetworkImage = class WuiNetworkImage2 extends bitcoin.i$1 {
|
|
142
|
+
constructor() {
|
|
143
|
+
super(...arguments);
|
|
144
|
+
this.size = "md";
|
|
145
|
+
this.name = "uknown";
|
|
146
|
+
this.networkImagesBySize = {
|
|
147
|
+
sm: networkSvgSm,
|
|
148
|
+
md: networkSvgMd,
|
|
149
|
+
lg: networkSvgLg
|
|
150
|
+
};
|
|
151
|
+
this.selected = false;
|
|
152
|
+
this.round = false;
|
|
153
|
+
}
|
|
154
|
+
render() {
|
|
155
|
+
if (this.round) {
|
|
156
|
+
this.dataset["round"] = "true";
|
|
157
|
+
this.style.cssText = `
|
|
158
|
+
--local-width: var(--wui-spacing-3xl);
|
|
159
|
+
--local-height: var(--wui-spacing-3xl);
|
|
160
|
+
--local-icon-size: var(--wui-spacing-l);
|
|
161
|
+
`;
|
|
162
|
+
} else {
|
|
163
|
+
this.style.cssText = `
|
|
164
|
+
|
|
165
|
+
--local-path: var(--wui-path-network-${this.size});
|
|
166
|
+
--local-width: var(--wui-width-network-${this.size});
|
|
167
|
+
--local-height: var(--wui-height-network-${this.size});
|
|
168
|
+
--local-icon-size: var(--wui-icon-size-network-${this.size});
|
|
169
|
+
`;
|
|
170
|
+
}
|
|
171
|
+
return bitcoin.x`${this.templateVisual()} ${this.svgTemplate()} `;
|
|
172
|
+
}
|
|
173
|
+
svgTemplate() {
|
|
174
|
+
if (this.round) {
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
return this.networkImagesBySize[this.size];
|
|
178
|
+
}
|
|
179
|
+
templateVisual() {
|
|
180
|
+
if (this.imageSrc) {
|
|
181
|
+
return bitcoin.x`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`;
|
|
182
|
+
}
|
|
183
|
+
return bitcoin.x`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`;
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
WuiNetworkImage.styles = [bitcoin.resetStyles, styles$1];
|
|
187
|
+
__decorate$1([
|
|
188
|
+
ifDefined.n()
|
|
189
|
+
], WuiNetworkImage.prototype, "size", void 0);
|
|
190
|
+
__decorate$1([
|
|
191
|
+
ifDefined.n()
|
|
192
|
+
], WuiNetworkImage.prototype, "name", void 0);
|
|
193
|
+
__decorate$1([
|
|
194
|
+
ifDefined.n({ type: Object })
|
|
195
|
+
], WuiNetworkImage.prototype, "networkImagesBySize", void 0);
|
|
196
|
+
__decorate$1([
|
|
197
|
+
ifDefined.n()
|
|
198
|
+
], WuiNetworkImage.prototype, "imageSrc", void 0);
|
|
199
|
+
__decorate$1([
|
|
200
|
+
ifDefined.n({ type: Boolean })
|
|
201
|
+
], WuiNetworkImage.prototype, "selected", void 0);
|
|
202
|
+
__decorate$1([
|
|
203
|
+
ifDefined.n({ type: Boolean })
|
|
204
|
+
], WuiNetworkImage.prototype, "round", void 0);
|
|
205
|
+
WuiNetworkImage = __decorate$1([
|
|
206
|
+
ifDefined.customElement("wui-network-image")
|
|
207
|
+
], WuiNetworkImage);
|
|
208
|
+
const styles = bitcoin.i`
|
|
209
|
+
:host {
|
|
210
|
+
position: relative;
|
|
211
|
+
background-color: var(--wui-color-gray-glass-002);
|
|
212
|
+
display: flex;
|
|
213
|
+
justify-content: center;
|
|
214
|
+
align-items: center;
|
|
215
|
+
width: var(--local-size);
|
|
216
|
+
height: var(--local-size);
|
|
217
|
+
border-radius: inherit;
|
|
218
|
+
border-radius: var(--local-border-radius);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:host > wui-flex {
|
|
222
|
+
overflow: hidden;
|
|
223
|
+
border-radius: inherit;
|
|
224
|
+
border-radius: var(--local-border-radius);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
:host::after {
|
|
228
|
+
content: '';
|
|
229
|
+
position: absolute;
|
|
230
|
+
top: 0;
|
|
231
|
+
bottom: 0;
|
|
232
|
+
left: 0;
|
|
233
|
+
right: 0;
|
|
234
|
+
border-radius: inherit;
|
|
235
|
+
border: 1px solid var(--wui-color-gray-glass-010);
|
|
236
|
+
pointer-events: none;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
:host([name='Extension'])::after {
|
|
240
|
+
border: 1px solid var(--wui-color-accent-glass-010);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
:host([data-wallet-icon='allWallets']) {
|
|
244
|
+
background-color: var(--wui-all-wallets-bg-100);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
:host([data-wallet-icon='allWallets'])::after {
|
|
248
|
+
border: 1px solid var(--wui-color-accent-glass-010);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
wui-icon[data-parent-size='inherit'] {
|
|
252
|
+
width: 75%;
|
|
253
|
+
height: 75%;
|
|
254
|
+
align-items: center;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
wui-icon[data-parent-size='sm'] {
|
|
258
|
+
width: 18px;
|
|
259
|
+
height: 18px;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
wui-icon[data-parent-size='md'] {
|
|
263
|
+
width: 24px;
|
|
264
|
+
height: 24px;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
wui-icon[data-parent-size='lg'] {
|
|
268
|
+
width: 42px;
|
|
269
|
+
height: 42px;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
wui-icon[data-parent-size='full'] {
|
|
273
|
+
width: 100%;
|
|
274
|
+
height: 100%;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
:host > wui-icon-box {
|
|
278
|
+
position: absolute;
|
|
279
|
+
overflow: hidden;
|
|
280
|
+
right: -1px;
|
|
281
|
+
bottom: -2px;
|
|
282
|
+
z-index: 1;
|
|
283
|
+
border: 2px solid var(--wui-color-bg-150, #1e1f1f);
|
|
284
|
+
padding: 1px;
|
|
285
|
+
}
|
|
286
|
+
`;
|
|
287
|
+
var __decorate = function(decorators, target, key, desc) {
|
|
288
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
289
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
290
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
291
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
292
|
+
};
|
|
293
|
+
let WuiWalletImage = class WuiWalletImage2 extends bitcoin.i$1 {
|
|
294
|
+
constructor() {
|
|
295
|
+
super(...arguments);
|
|
296
|
+
this.size = "md";
|
|
297
|
+
this.name = "";
|
|
298
|
+
this.installed = false;
|
|
299
|
+
this.badgeSize = "xs";
|
|
300
|
+
}
|
|
301
|
+
render() {
|
|
302
|
+
let borderRadius = "xxs";
|
|
303
|
+
if (this.size === "lg") {
|
|
304
|
+
borderRadius = "m";
|
|
305
|
+
} else if (this.size === "md") {
|
|
306
|
+
borderRadius = "xs";
|
|
307
|
+
} else {
|
|
308
|
+
borderRadius = "xxs";
|
|
309
|
+
}
|
|
310
|
+
this.style.cssText = `
|
|
311
|
+
--local-border-radius: var(--wui-border-radius-${borderRadius});
|
|
312
|
+
--local-size: var(--wui-wallet-image-size-${this.size});
|
|
313
|
+
`;
|
|
314
|
+
if (this.walletIcon) {
|
|
315
|
+
this.dataset["walletIcon"] = this.walletIcon;
|
|
316
|
+
}
|
|
317
|
+
return bitcoin.x`
|
|
318
|
+
<wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex>
|
|
319
|
+
`;
|
|
320
|
+
}
|
|
321
|
+
templateVisual() {
|
|
322
|
+
if (this.imageSrc) {
|
|
323
|
+
return bitcoin.x`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`;
|
|
324
|
+
} else if (this.walletIcon) {
|
|
325
|
+
return bitcoin.x`<wui-icon
|
|
326
|
+
data-parent-size="md"
|
|
327
|
+
size="md"
|
|
328
|
+
color="inherit"
|
|
329
|
+
name=${this.walletIcon}
|
|
330
|
+
></wui-icon>`;
|
|
331
|
+
}
|
|
332
|
+
return bitcoin.x`<wui-icon
|
|
333
|
+
data-parent-size=${this.size}
|
|
334
|
+
size="inherit"
|
|
335
|
+
color="inherit"
|
|
336
|
+
name="walletPlaceholder"
|
|
337
|
+
></wui-icon>`;
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
WuiWalletImage.styles = [bitcoin.elementStyles, bitcoin.resetStyles, styles];
|
|
341
|
+
__decorate([
|
|
342
|
+
ifDefined.n()
|
|
343
|
+
], WuiWalletImage.prototype, "size", void 0);
|
|
344
|
+
__decorate([
|
|
345
|
+
ifDefined.n()
|
|
346
|
+
], WuiWalletImage.prototype, "name", void 0);
|
|
347
|
+
__decorate([
|
|
348
|
+
ifDefined.n()
|
|
349
|
+
], WuiWalletImage.prototype, "imageSrc", void 0);
|
|
350
|
+
__decorate([
|
|
351
|
+
ifDefined.n()
|
|
352
|
+
], WuiWalletImage.prototype, "walletIcon", void 0);
|
|
353
|
+
__decorate([
|
|
354
|
+
ifDefined.n({ type: Boolean })
|
|
355
|
+
], WuiWalletImage.prototype, "installed", void 0);
|
|
356
|
+
__decorate([
|
|
357
|
+
ifDefined.n()
|
|
358
|
+
], WuiWalletImage.prototype, "badgeSize", void 0);
|
|
359
|
+
WuiWalletImage = __decorate([
|
|
360
|
+
ifDefined.customElement("wui-wallet-image")
|
|
361
|
+
], WuiWalletImage);
|
|
362
|
+
exports.networkSvgMd = networkSvgMd;
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { i, c as resetStyles, e as elementStyles, f as i$1, x } from "./bitcoin-dNBGbS2B.mjs";
|
|
2
|
+
import { n, c as customElement, a as e$1, o } from "./if-defined-DjC5UMfF.mjs";
|
|
3
|
+
import { e, n as n$1 } from "./ref-CqxfRkBm.mjs";
|
|
4
|
+
const styles = i`
|
|
5
|
+
:host {
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 100%;
|
|
8
|
+
display: inline-block;
|
|
9
|
+
color: var(--wui-color-fg-275);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
input {
|
|
13
|
+
width: 100%;
|
|
14
|
+
border-radius: var(--wui-border-radius-xs);
|
|
15
|
+
box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
|
|
16
|
+
background: var(--wui-color-gray-glass-002);
|
|
17
|
+
font-size: var(--wui-font-size-paragraph);
|
|
18
|
+
letter-spacing: var(--wui-letter-spacing-paragraph);
|
|
19
|
+
color: var(--wui-color-fg-100);
|
|
20
|
+
transition:
|
|
21
|
+
background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
|
|
22
|
+
border-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
|
|
23
|
+
box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md);
|
|
24
|
+
will-change: background-color, border-color, box-shadow;
|
|
25
|
+
caret-color: var(--wui-color-accent-100);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
input:disabled {
|
|
29
|
+
cursor: not-allowed;
|
|
30
|
+
border: 1px solid var(--wui-color-gray-glass-010);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
input:disabled::placeholder,
|
|
34
|
+
input:disabled + wui-icon {
|
|
35
|
+
color: var(--wui-color-fg-300);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
input::placeholder {
|
|
39
|
+
color: var(--wui-color-fg-275);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
input:focus:enabled {
|
|
43
|
+
background-color: var(--wui-color-gray-glass-005);
|
|
44
|
+
-webkit-box-shadow:
|
|
45
|
+
inset 0 0 0 1px var(--wui-color-accent-100),
|
|
46
|
+
0px 0px 0px 4px var(--wui-box-shadow-blue);
|
|
47
|
+
-moz-box-shadow:
|
|
48
|
+
inset 0 0 0 1px var(--wui-color-accent-100),
|
|
49
|
+
0px 0px 0px 4px var(--wui-box-shadow-blue);
|
|
50
|
+
box-shadow:
|
|
51
|
+
inset 0 0 0 1px var(--wui-color-accent-100),
|
|
52
|
+
0px 0px 0px 4px var(--wui-box-shadow-blue);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
input:hover:enabled {
|
|
56
|
+
background-color: var(--wui-color-gray-glass-005);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
wui-icon {
|
|
60
|
+
position: absolute;
|
|
61
|
+
top: 50%;
|
|
62
|
+
transform: translateY(-50%);
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.wui-size-sm {
|
|
67
|
+
padding: 9px var(--wui-spacing-m) 10px var(--wui-spacing-s);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
wui-icon + .wui-size-sm {
|
|
71
|
+
padding: 9px var(--wui-spacing-m) 10px 36px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
wui-icon[data-input='sm'] {
|
|
75
|
+
left: var(--wui-spacing-s);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.wui-size-md {
|
|
79
|
+
padding: 15px var(--wui-spacing-m) var(--wui-spacing-l) var(--wui-spacing-m);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
wui-icon + .wui-size-md,
|
|
83
|
+
wui-loading-spinner + .wui-size-md {
|
|
84
|
+
padding: 10.5px var(--wui-spacing-3xl) 10.5px var(--wui-spacing-3xl);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
wui-icon[data-input='md'] {
|
|
88
|
+
left: var(--wui-spacing-l);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.wui-size-lg {
|
|
92
|
+
padding: var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-l);
|
|
93
|
+
letter-spacing: var(--wui-letter-spacing-medium-title);
|
|
94
|
+
font-size: var(--wui-font-size-medium-title);
|
|
95
|
+
font-weight: var(--wui-font-weight-light);
|
|
96
|
+
line-height: 130%;
|
|
97
|
+
color: var(--wui-color-fg-100);
|
|
98
|
+
height: 64px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.wui-padding-right-xs {
|
|
102
|
+
padding-right: var(--wui-spacing-xs);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.wui-padding-right-s {
|
|
106
|
+
padding-right: var(--wui-spacing-s);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.wui-padding-right-m {
|
|
110
|
+
padding-right: var(--wui-spacing-m);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.wui-padding-right-l {
|
|
114
|
+
padding-right: var(--wui-spacing-l);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.wui-padding-right-xl {
|
|
118
|
+
padding-right: var(--wui-spacing-xl);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.wui-padding-right-2xl {
|
|
122
|
+
padding-right: var(--wui-spacing-2xl);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.wui-padding-right-3xl {
|
|
126
|
+
padding-right: var(--wui-spacing-3xl);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.wui-padding-right-4xl {
|
|
130
|
+
padding-right: var(--wui-spacing-4xl);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.wui-padding-right-5xl {
|
|
134
|
+
padding-right: var(--wui-spacing-5xl);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
wui-icon + .wui-size-lg,
|
|
138
|
+
wui-loading-spinner + .wui-size-lg {
|
|
139
|
+
padding-left: 50px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
wui-icon[data-input='lg'] {
|
|
143
|
+
left: var(--wui-spacing-l);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.wui-size-mdl {
|
|
147
|
+
padding: 17.25px var(--wui-spacing-m) 17.25px var(--wui-spacing-m);
|
|
148
|
+
}
|
|
149
|
+
wui-icon + .wui-size-mdl,
|
|
150
|
+
wui-loading-spinner + .wui-size-mdl {
|
|
151
|
+
padding: 17.25px var(--wui-spacing-3xl) 17.25px 40px;
|
|
152
|
+
}
|
|
153
|
+
wui-icon[data-input='mdl'] {
|
|
154
|
+
left: var(--wui-spacing-m);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
input:placeholder-shown ~ ::slotted(wui-input-element),
|
|
158
|
+
input:placeholder-shown ~ ::slotted(wui-icon) {
|
|
159
|
+
opacity: 0;
|
|
160
|
+
pointer-events: none;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
input::-webkit-outer-spin-button,
|
|
164
|
+
input::-webkit-inner-spin-button {
|
|
165
|
+
-webkit-appearance: none;
|
|
166
|
+
margin: 0;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
input[type='number'] {
|
|
170
|
+
-moz-appearance: textfield;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
::slotted(wui-input-element),
|
|
174
|
+
::slotted(wui-icon) {
|
|
175
|
+
position: absolute;
|
|
176
|
+
top: 50%;
|
|
177
|
+
transform: translateY(-50%);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
::slotted(wui-input-element) {
|
|
181
|
+
right: var(--wui-spacing-m);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
::slotted(wui-icon) {
|
|
185
|
+
right: 0px;
|
|
186
|
+
}
|
|
187
|
+
`;
|
|
188
|
+
var __decorate = function(decorators, target, key, desc) {
|
|
189
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
190
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
191
|
+
else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
192
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
193
|
+
};
|
|
194
|
+
let WuiInputText = class WuiInputText2 extends i$1 {
|
|
195
|
+
constructor() {
|
|
196
|
+
super(...arguments);
|
|
197
|
+
this.inputElementRef = e();
|
|
198
|
+
this.size = "md";
|
|
199
|
+
this.disabled = false;
|
|
200
|
+
this.placeholder = "";
|
|
201
|
+
this.type = "text";
|
|
202
|
+
this.value = "";
|
|
203
|
+
}
|
|
204
|
+
render() {
|
|
205
|
+
const inputClass = `wui-padding-right-${this.inputRightPadding}`;
|
|
206
|
+
const sizeClass = `wui-size-${this.size}`;
|
|
207
|
+
const classes = {
|
|
208
|
+
[sizeClass]: true,
|
|
209
|
+
[inputClass]: Boolean(this.inputRightPadding)
|
|
210
|
+
};
|
|
211
|
+
return x`${this.templateIcon()}
|
|
212
|
+
<input
|
|
213
|
+
data-testid="wui-input-text"
|
|
214
|
+
${n$1(this.inputElementRef)}
|
|
215
|
+
class=${e$1(classes)}
|
|
216
|
+
type=${this.type}
|
|
217
|
+
enterkeyhint=${o(this.enterKeyHint)}
|
|
218
|
+
?disabled=${this.disabled}
|
|
219
|
+
placeholder=${this.placeholder}
|
|
220
|
+
@input=${this.dispatchInputChangeEvent.bind(this)}
|
|
221
|
+
.value=${this.value || ""}
|
|
222
|
+
tabindex=${o(this.tabIdx)}
|
|
223
|
+
/>
|
|
224
|
+
<slot></slot>`;
|
|
225
|
+
}
|
|
226
|
+
templateIcon() {
|
|
227
|
+
if (this.icon) {
|
|
228
|
+
return x`<wui-icon
|
|
229
|
+
data-input=${this.size}
|
|
230
|
+
size=${this.size}
|
|
231
|
+
color="inherit"
|
|
232
|
+
name=${this.icon}
|
|
233
|
+
></wui-icon>`;
|
|
234
|
+
}
|
|
235
|
+
return null;
|
|
236
|
+
}
|
|
237
|
+
dispatchInputChangeEvent() {
|
|
238
|
+
var _a;
|
|
239
|
+
this.dispatchEvent(new CustomEvent("inputChange", {
|
|
240
|
+
detail: (_a = this.inputElementRef.value) == null ? void 0 : _a.value,
|
|
241
|
+
bubbles: true,
|
|
242
|
+
composed: true
|
|
243
|
+
}));
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
WuiInputText.styles = [resetStyles, elementStyles, styles];
|
|
247
|
+
__decorate([
|
|
248
|
+
n()
|
|
249
|
+
], WuiInputText.prototype, "size", void 0);
|
|
250
|
+
__decorate([
|
|
251
|
+
n()
|
|
252
|
+
], WuiInputText.prototype, "icon", void 0);
|
|
253
|
+
__decorate([
|
|
254
|
+
n({ type: Boolean })
|
|
255
|
+
], WuiInputText.prototype, "disabled", void 0);
|
|
256
|
+
__decorate([
|
|
257
|
+
n()
|
|
258
|
+
], WuiInputText.prototype, "placeholder", void 0);
|
|
259
|
+
__decorate([
|
|
260
|
+
n()
|
|
261
|
+
], WuiInputText.prototype, "type", void 0);
|
|
262
|
+
__decorate([
|
|
263
|
+
n()
|
|
264
|
+
], WuiInputText.prototype, "keyHint", void 0);
|
|
265
|
+
__decorate([
|
|
266
|
+
n()
|
|
267
|
+
], WuiInputText.prototype, "value", void 0);
|
|
268
|
+
__decorate([
|
|
269
|
+
n()
|
|
270
|
+
], WuiInputText.prototype, "inputRightPadding", void 0);
|
|
271
|
+
__decorate([
|
|
272
|
+
n()
|
|
273
|
+
], WuiInputText.prototype, "tabIdx", void 0);
|
|
274
|
+
WuiInputText = __decorate([
|
|
275
|
+
customElement("wui-input-text")
|
|
276
|
+
], WuiInputText);
|
package/index.js
CHANGED
|
@@ -81,11 +81,11 @@ const reactjs_utils_pipe = require("./reactjs/utils/pipe.js");
|
|
|
81
81
|
const reactjs_utils_removeCommas = require("./reactjs/utils/removeCommas.js");
|
|
82
82
|
const reactjs_utils_roundAmount = require("./reactjs/utils/roundAmount.js");
|
|
83
83
|
const reactjs_utils_testNumber = require("./reactjs/utils/testNumber.js");
|
|
84
|
-
const react$1 = require("./react-
|
|
84
|
+
const react$1 = require("./react-C_wTMVq_.js");
|
|
85
85
|
const wagmi = require("wagmi");
|
|
86
86
|
const reactjs_constants_chains = require("./reactjs/constants/chains.js");
|
|
87
|
-
const index = require("./index
|
|
88
|
-
const react = require("./react-
|
|
87
|
+
const index = require("./index--Vg7VI9t.js");
|
|
88
|
+
const react = require("./react-BzZcQig5.js");
|
|
89
89
|
exports.confirmRate = api_confirmRate.confirmRate;
|
|
90
90
|
exports.getChains = api_getChains.getChains;
|
|
91
91
|
exports.getRate = api_getRate.getRate;
|
package/index.mjs
CHANGED
|
@@ -78,11 +78,11 @@ import { pipe } from "./reactjs/utils/pipe.mjs";
|
|
|
78
78
|
import { removeCommas } from "./reactjs/utils/removeCommas.mjs";
|
|
79
79
|
import { roundAmount } from "./reactjs/utils/roundAmount.mjs";
|
|
80
80
|
import { testNumber } from "./reactjs/utils/testNumber.mjs";
|
|
81
|
-
import { u as u2 } from "./react-
|
|
81
|
+
import { u as u2 } from "./react-M-DnxvZl.mjs";
|
|
82
82
|
import { useWaitForTransactionReceipt } from "wagmi";
|
|
83
83
|
import { ALL_NETWORK_ID, chainIdentifier } from "./reactjs/constants/chains.mjs";
|
|
84
|
-
import { u as u3, a, e, b, c, d } from "./index-
|
|
85
|
-
import { u as u4, b as b2, a as a2 } from "./react-
|
|
84
|
+
import { u as u3, a, e, b, c, d } from "./index-H5b7UTeJ.mjs";
|
|
85
|
+
import { u as u4, b as b2, a as a2 } from "./react-BWxe90Ar.mjs";
|
|
86
86
|
export {
|
|
87
87
|
ALL_NETWORK_ID,
|
|
88
88
|
AccountAddress,
|
package/info-BKNAiN0k.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const bitcoin = require("./bitcoin-DAvQGpeP.js");
|
|
5
|
+
const infoSvg = bitcoin.b`<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6
|
+
<path d="M9.125 6.875C9.125 6.57833 9.21298 6.28832 9.3778 6.04165C9.54262 5.79497 9.77689 5.60271 10.051 5.48918C10.3251 5.37565 10.6267 5.34594 10.9176 5.40382C11.2086 5.4617 11.4759 5.60456 11.6857 5.81434C11.8954 6.02412 12.0383 6.29139 12.0962 6.58236C12.1541 6.87334 12.1244 7.17494 12.0108 7.44903C11.8973 7.72311 11.705 7.95738 11.4584 8.1222C11.2117 8.28703 10.9217 8.375 10.625 8.375C10.2272 8.375 9.84565 8.21696 9.56434 7.93566C9.28304 7.65436 9.125 7.27282 9.125 6.875ZM21.125 11C21.125 13.0025 20.5312 14.9601 19.4186 16.6251C18.3061 18.2902 16.7248 19.5879 14.8747 20.3543C13.0246 21.1206 10.9888 21.3211 9.02471 20.9305C7.06066 20.5398 5.25656 19.5755 3.84055 18.1595C2.42454 16.7435 1.46023 14.9393 1.06955 12.9753C0.678878 11.0112 0.879387 8.97543 1.64572 7.12533C2.41206 5.27523 3.70981 3.69392 5.37486 2.58137C7.0399 1.46882 8.99747 0.875 11 0.875C13.6844 0.877978 16.258 1.94567 18.1562 3.84383C20.0543 5.74199 21.122 8.3156 21.125 11ZM18.875 11C18.875 9.44247 18.4131 7.91992 17.5478 6.62488C16.6825 5.32985 15.4526 4.32049 14.0136 3.72445C12.5747 3.12841 10.9913 2.97246 9.46367 3.27632C7.93607 3.58017 6.53288 4.3302 5.43154 5.43153C4.3302 6.53287 3.58018 7.93606 3.27632 9.46366C2.97246 10.9913 3.12841 12.5747 3.72445 14.0136C4.32049 15.4526 5.32985 16.6825 6.62489 17.5478C7.91993 18.4131 9.44248 18.875 11 18.875C13.0879 18.8728 15.0896 18.0424 16.566 16.566C18.0424 15.0896 18.8728 13.0879 18.875 11ZM12.125 14.4387V11.375C12.125 10.8777 11.9275 10.4008 11.5758 10.0492C11.2242 9.69754 10.7473 9.5 10.25 9.5C9.98433 9.4996 9.72708 9.59325 9.52383 9.76435C9.32058 9.93544 9.18444 10.173 9.13952 10.4348C9.09461 10.6967 9.14381 10.966 9.27843 11.195C9.41304 11.4241 9.62438 11.5981 9.875 11.6863V14.75C9.875 15.2473 10.0725 15.7242 10.4242 16.0758C10.7758 16.4275 11.2527 16.625 11.75 16.625C12.0157 16.6254 12.2729 16.5318 12.4762 16.3607C12.6794 16.1896 12.8156 15.952 12.8605 15.6902C12.9054 15.4283 12.8562 15.159 12.7216 14.93C12.587 14.7009 12.3756 14.5269 12.125 14.4387Z" fill="currentColor"/>
|
|
7
|
+
</svg>`;
|
|
8
|
+
exports.infoSvg = infoSvg;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { b } from "./bitcoin-dNBGbS2B.mjs";
|
|
2
|
+
const infoSvg = b`<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path d="M9.125 6.875C9.125 6.57833 9.21298 6.28832 9.3778 6.04165C9.54262 5.79497 9.77689 5.60271 10.051 5.48918C10.3251 5.37565 10.6267 5.34594 10.9176 5.40382C11.2086 5.4617 11.4759 5.60456 11.6857 5.81434C11.8954 6.02412 12.0383 6.29139 12.0962 6.58236C12.1541 6.87334 12.1244 7.17494 12.0108 7.44903C11.8973 7.72311 11.705 7.95738 11.4584 8.1222C11.2117 8.28703 10.9217 8.375 10.625 8.375C10.2272 8.375 9.84565 8.21696 9.56434 7.93566C9.28304 7.65436 9.125 7.27282 9.125 6.875ZM21.125 11C21.125 13.0025 20.5312 14.9601 19.4186 16.6251C18.3061 18.2902 16.7248 19.5879 14.8747 20.3543C13.0246 21.1206 10.9888 21.3211 9.02471 20.9305C7.06066 20.5398 5.25656 19.5755 3.84055 18.1595C2.42454 16.7435 1.46023 14.9393 1.06955 12.9753C0.678878 11.0112 0.879387 8.97543 1.64572 7.12533C2.41206 5.27523 3.70981 3.69392 5.37486 2.58137C7.0399 1.46882 8.99747 0.875 11 0.875C13.6844 0.877978 16.258 1.94567 18.1562 3.84383C20.0543 5.74199 21.122 8.3156 21.125 11ZM18.875 11C18.875 9.44247 18.4131 7.91992 17.5478 6.62488C16.6825 5.32985 15.4526 4.32049 14.0136 3.72445C12.5747 3.12841 10.9913 2.97246 9.46367 3.27632C7.93607 3.58017 6.53288 4.3302 5.43154 5.43153C4.3302 6.53287 3.58018 7.93606 3.27632 9.46366C2.97246 10.9913 3.12841 12.5747 3.72445 14.0136C4.32049 15.4526 5.32985 16.6825 6.62489 17.5478C7.91993 18.4131 9.44248 18.875 11 18.875C13.0879 18.8728 15.0896 18.0424 16.566 16.566C18.0424 15.0896 18.8728 13.0879 18.875 11ZM12.125 14.4387V11.375C12.125 10.8777 11.9275 10.4008 11.5758 10.0492C11.2242 9.69754 10.7473 9.5 10.25 9.5C9.98433 9.4996 9.72708 9.59325 9.52383 9.76435C9.32058 9.93544 9.18444 10.173 9.13952 10.4348C9.09461 10.6967 9.14381 10.966 9.27843 11.195C9.41304 11.4241 9.62438 11.5981 9.875 11.6863V14.75C9.875 15.2473 10.0725 15.7242 10.4242 16.0758C10.7758 16.4275 11.2527 16.625 11.75 16.625C12.0157 16.6254 12.2729 16.5318 12.4762 16.3607C12.6794 16.1896 12.8156 15.952 12.8605 15.6902C12.9054 15.4283 12.8562 15.159 12.7216 14.93C12.587 14.7009 12.3756 14.5269 12.125 14.4387Z" fill="currentColor"/>
|
|
4
|
+
</svg>`;
|
|
5
|
+
export {
|
|
6
|
+
infoSvg
|
|
7
|
+
};
|