@directcryptopay/sdk 0.2.2 → 0.2.4
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/ExchangeController-CbO41bcH.js +217 -0
- package/dist/HelpersUtil-DHm6EVSE.js +120 -0
- package/dist/NavigationUtil-kj9LEOOd.js +8 -0
- package/dist/PhArrowCircleDown-lsK25DCk.js +73 -0
- package/dist/PhArrowClockwise-NeKHZ1co.js +73 -0
- package/dist/PhArrowDown-C9AkNvLs.js +73 -0
- package/dist/PhArrowLeft-RNfIQP1X.js +73 -0
- package/dist/PhArrowRight-DM1tna0G.js +73 -0
- package/dist/PhArrowSquareOut-S5XYbAZj.js +73 -0
- package/dist/PhArrowUp-DmktzOWy.js +73 -0
- package/dist/PhArrowUpRight-BkNeW_5i.js +73 -0
- package/dist/PhArrowsClockwise-CQ4pG76b.js +73 -0
- package/dist/PhArrowsDownUp-H6gxaNM6.js +73 -0
- package/dist/PhArrowsLeftRight-DZSsfMR6.js +73 -0
- package/dist/PhBank-4_9QzqIB.js +73 -0
- package/dist/PhBrowser-B-JSznId.js +73 -0
- package/dist/PhCaretDown-vV5oHMNi.js +73 -0
- package/dist/PhCaretLeft-BLo6Y_f4.js +73 -0
- package/dist/PhCaretRight-CqQN4TT3.js +73 -0
- package/dist/PhCaretUp-Df7UCAHy.js +73 -0
- package/dist/PhCheck-gtpfK4ed.js +73 -0
- package/dist/PhCircleHalf-Uq7dwDYw.js +73 -0
- package/dist/PhClock-SDCW-NmF.js +73 -0
- package/dist/PhCompass-B7hgtdx-.js +73 -0
- package/dist/PhCopy-BcnhyXCy.js +73 -0
- package/dist/PhCreditCard-BJjByVgu.js +73 -0
- package/dist/PhCurrencyDollar-B7ZXqXBy.js +73 -0
- package/dist/PhDesktop-B3VKPuJx.js +73 -0
- package/dist/PhDeviceMobile-Bnd0TYEH.js +73 -0
- package/dist/PhDotsThree-yyMWyZ-R.js +73 -0
- package/dist/PhEnvelope-67uzHbI9.js +73 -0
- package/dist/PhFunnelSimple-B-DCsloI.js +73 -0
- package/dist/PhGlobe-TMm_6qGk.js +73 -0
- package/dist/PhIdentificationCard-CePPD2xc.js +73 -0
- package/dist/PhImage-gY96WtHR.js +73 -0
- package/dist/PhInfo-DRQM_ZDP.js +73 -0
- package/dist/PhLightbulb-B0TxPfZ1.js +73 -0
- package/dist/PhMagnifyingGlass-B8si5_6W.js +73 -0
- package/dist/PhPaperPlaneRight-DVu5PLYd.js +73 -0
- package/dist/PhPlus-BfTsQnUz.js +73 -0
- package/dist/PhPower-CxYUGOWn.js +73 -0
- package/dist/PhPuzzlePiece-CQ4wh0gV.js +73 -0
- package/dist/PhQrCode-BuJ97NYJ.js +73 -0
- package/dist/PhQuestion-kJoP8Mja.js +73 -0
- package/dist/PhQuestionMark-C46ZkFpu.js +73 -0
- package/dist/PhSealCheck-Eh8jVqSN.js +73 -0
- package/dist/PhSignOut-jk97OSVt.js +73 -0
- package/dist/PhSpinner-CiYOhwMg.js +73 -0
- package/dist/PhTrash-pxerMqzd.js +73 -0
- package/dist/PhUser-BMg0VV4A.js +73 -0
- package/dist/PhVault-DYQvx5A-.js +73 -0
- package/dist/PhWarning-NLC5Mj87.js +73 -0
- package/dist/PhWarningCircle-Ch2jU9fA.js +73 -0
- package/dist/PhX-Bx4wpwm3.js +73 -0
- package/dist/SwapController-Ch0FFTEt.js +457 -0
- package/dist/{ccip-BIGqktC1.js → ccip-BrGhNXIM.js} +4 -4
- package/dist/data-capture-CpafmuCb.js +490 -0
- package/dist/dcp-sdk.umd.js +7400 -6589
- package/dist/email-Dcg4jlai.js +344 -0
- package/dist/embedded-wallet-DeoRdAPw.js +820 -0
- package/dist/features-B9Nde43h.js +274 -0
- package/dist/{hashTypedData-ZH9ZnWu3.js → hashTypedData-a7b8tdkO.js} +6 -6
- package/dist/if-defined-k21LutCn.js +10 -0
- package/dist/index-9vLw53Xl.js +228 -0
- package/dist/index-B5wUyynz.js +107 -0
- package/dist/index-B8LkUrww.js +86 -0
- package/dist/{index-CPTcEPbD.js → index-BA0VwKg0.js} +296 -298
- package/dist/index-BB9JJ24N.js +125 -0
- package/dist/index-BCkEvPQ6.js +172 -0
- package/dist/index-BDeO_csr.js +171 -0
- package/dist/index-Bb7babLF.js +1281 -0
- package/dist/index-BjOhprVS.js +199 -0
- package/dist/{index-Dy4NyE6l.js → index-BjyMgZsf.js} +7 -7
- package/dist/index-BkThIDLX.js +159 -0
- package/dist/index-BmFs6nb7.js +209 -0
- package/dist/{index-5mp7WkhV.js → index-C4qc4PdD.js} +2 -2
- package/dist/{index-BdSIrl-R.js → index-CAPvUh14.js} +578 -570
- package/dist/index-CBMU3PTE.js +65 -0
- package/dist/index-CGwPkJLF.js +355 -0
- package/dist/index-CNGEqX3D.js +153 -0
- package/dist/index-CRlCq6IB.js +7981 -0
- package/dist/index-Cg_o-i9X.js +118 -0
- package/dist/index-D1BvhCbI.js +62 -0
- package/dist/index-DFi8TiHc.js +128 -0
- package/dist/index-DLwuveL9.js +555 -0
- package/dist/index-DMn7ktUQ.js +56 -0
- package/dist/index-DOXwtuwa.js +117 -0
- package/dist/index-DPPOW_Tp.js +118 -0
- package/dist/{index-f3LXSfM5.js → index-DQpzHpW-.js} +56 -142
- package/dist/{index-D6h-qfpt.js → index-DXHg5C-W.js} +5 -5
- package/dist/index-DcYjZV4H.js +110 -0
- package/dist/{index-BJ7cbG3N.js → index-DeL88Lwc.js} +36769 -40177
- package/dist/index-DrWVlf8b.js +46 -0
- package/dist/index-Dsfuc4rB.js +123 -0
- package/dist/index-DuTny38n.js +1175 -0
- package/dist/{index-D5r0iSq4.js → index-Nfjb6bV0.js} +1 -1
- package/dist/index-WwwdQSN2.js +85 -0
- package/dist/index-Yha9Afch.js +174 -0
- package/dist/index-cbQHN7GC.js +100 -0
- package/dist/{index-DobBVPe4.js → index-hyG3cYsv.js} +481 -236
- package/dist/index-qLxmmPaL.js +257 -0
- package/dist/index.js +1 -1
- package/dist/{localBatchGatewayRequest-CjGcn5nM.js → localBatchGatewayRequest-vfcvRH0G.js} +1 -1
- package/dist/onramp-BSiyOX4L.js +855 -0
- package/dist/{parseSignature-S8VEpRHC.js → parseSignature-CdCMAPZN.js} +2312 -2313
- package/dist/pay-with-exchange-CduNoMEz.js +525 -0
- package/dist/property-Bd8U3_QP.js +618 -0
- package/dist/receive-CrmptJlq.js +232 -0
- package/dist/ref-SOwYtCZb.js +107 -0
- package/dist/send-oMcHMEr6.js +1166 -0
- package/dist/socials-C0A4-FbY.js +620 -0
- package/dist/swaps-CbJJ9Ciu.js +1760 -0
- package/dist/{transactions-DujFkB-M.js → transactions-BDfCoBS5.js} +10 -10
- package/dist/w3m-modal-BjsTkny7.js +1706 -0
- package/package.json +3 -3
- package/dist/ConstantsUtil-B-_-u8aQ.js +0 -6
- package/dist/add-sji6scSD.js +0 -19
- package/dist/all-wallets-B4H-890E.js +0 -10
- package/dist/app-store-Z433s97G.js +0 -21
- package/dist/apple-b8Lxj7nb.js +0 -22
- package/dist/arrow-bottom-M9oWWo_9.js +0 -12
- package/dist/arrow-bottom-circle-N9c4CXY1.js +0 -15
- package/dist/arrow-left-Dw8AKfwf.js +0 -12
- package/dist/arrow-right-DwLQZSC_.js +0 -12
- package/dist/arrow-top-zhUjkBe1.js +0 -12
- package/dist/bank-CbQdnILK.js +0 -18
- package/dist/browser-xAqNwt7z.js +0 -18
- package/dist/card-Dr1QBmWp.js +0 -18
- package/dist/checkmark-BhT1dTgG.js +0 -15
- package/dist/checkmark-bold-CPB29wqQ.js +0 -12
- package/dist/chevron-bottom-BhNyx2II.js +0 -12
- package/dist/chevron-left-CGuEjQlY.js +0 -12
- package/dist/chevron-right-CvIRRsqZ.js +0 -12
- package/dist/chevron-top-RSzCqjBd.js +0 -12
- package/dist/chrome-store-Cs8dAgs0.js +0 -65
- package/dist/clock-fhZO5otC.js +0 -12
- package/dist/close-BPuztrdR.js +0 -12
- package/dist/coinPlaceholder-C8X2i7Kh.js +0 -12
- package/dist/compass-WMc5huk0.js +0 -12
- package/dist/copy-DVAeT17y.js +0 -19
- package/dist/cursor-BJ4YLXfy.js +0 -7
- package/dist/cursor-transparent-DN2fLQN4.js +0 -16
- package/dist/desktop-6avxisBw.js +0 -13
- package/dist/disconnect-AReVI8Gk.js +0 -12
- package/dist/discord-CxrI30BZ.js +0 -21
- package/dist/email-B8dIIaay.js +0 -696
- package/dist/embedded-wallet-C_5hF7rM.js +0 -468
- package/dist/etherscan-BnAy8cIF.js +0 -10
- package/dist/exclamation-triangle-Bu7nHwx9.js +0 -8
- package/dist/extension-F0LIhvcf.js +0 -12
- package/dist/external-link-CP6phyaM.js +0 -12
- package/dist/facebook-BtQ-Io2y.js +0 -30
- package/dist/farcaster-BmaN1ugd.js +0 -16
- package/dist/filters-DpEwoOmy.js +0 -12
- package/dist/github-q7qO9V-b.js +0 -22
- package/dist/google-DH_ZE8bW.js +0 -22
- package/dist/help-circle-BAQVmKas.js +0 -16
- package/dist/id-Cj68Zwgo.js +0 -16
- package/dist/if-defined-CNte9B3N.js +0 -744
- package/dist/image-BKJDw6N-.js +0 -8
- package/dist/index-7toZMdtG.js +0 -573
- package/dist/index-B1uKzdvN.js +0 -170
- package/dist/index-BHFZVF-b.js +0 -257
- package/dist/index-BKwa5JSA.js +0 -559
- package/dist/index-BP4B9VUt.js +0 -54
- package/dist/index-BVdzXHpO.js +0 -181
- package/dist/index-BYND0GJ9.js +0 -146
- package/dist/index-BaJ0zEbh.js +0 -97
- package/dist/index-Bh0MPFwP.js +0 -58
- package/dist/index-Bsh7_qTp.js +0 -511
- package/dist/index-BwnXTNNg.js +0 -199
- package/dist/index-C0kPDbg_.js +0 -77
- package/dist/index-CKikVKe2.js +0 -75
- package/dist/index-ChVh0Hkp.js +0 -243
- package/dist/index-Cle_NnnS.js +0 -305
- package/dist/index-CmWdvIFT.js +0 -51
- package/dist/index-D2AMA8Bu.js +0 -65
- package/dist/index-DAUM8CO4.js +0 -65
- package/dist/index-DGjZW6uR.js +0 -78
- package/dist/index-DQe94z7X.js +0 -265
- package/dist/index-DTo6w99t.js +0 -7864
- package/dist/index-DYdXjap2.js +0 -320
- package/dist/index-DceCxNV5.js +0 -181
- package/dist/index-Uw9cSw0q.js +0 -294
- package/dist/index-qiuyrukh.js +0 -45
- package/dist/index-zddvaohA.js +0 -78
- package/dist/info-RfPsmroW.js +0 -7
- package/dist/info-circle-DFKHB_ZN.js +0 -16
- package/dist/lightbulb-B-Bykj9X.js +0 -7
- package/dist/mail-mBAgGuw5.js +0 -12
- package/dist/mobile-Dhh3ndkf.js +0 -13
- package/dist/more-D1h7UTvg.js +0 -15
- package/dist/network-placeholder-Dqynvc-t.js +0 -18
- package/dist/nftPlaceholder-Df7MW4MM.js +0 -12
- package/dist/off-BmG3cHTX.js +0 -12
- package/dist/onramp-C401Aenb.js +0 -1279
- package/dist/play-store-4q1fzL_P.js +0 -36
- package/dist/plus-603Gs3yG.js +0 -17
- package/dist/qr-code-Dgwhf6M1.js +0 -10
- package/dist/receive-CYXbbEUR.js +0 -186
- package/dist/recycle-horizontal-Bu8zZ563.js +0 -13
- package/dist/ref-DpmKRWBK.js +0 -41
- package/dist/refresh-BMZFu0mu.js +0 -12
- package/dist/reown-logo-BXph7ThY.js +0 -16
- package/dist/search-Cm_V42Y_.js +0 -12
- package/dist/secp256k1-C0iX1TUr.js +0 -1510
- package/dist/secp256k1-DOQBqE4Z.js +0 -1302
- package/dist/send-BSMYxDuP.js +0 -19
- package/dist/send-C8EeIzRB.js +0 -1038
- package/dist/socials-DQrHQajs.js +0 -574
- package/dist/swapHorizontal-98rnJewS.js +0 -12
- package/dist/swapHorizontalBold-C299FjEt.js +0 -12
- package/dist/swapHorizontalMedium-Cqm6i4WJ.js +0 -20
- package/dist/swapHorizontalRoundedBold-De7hFfqZ.js +0 -12
- package/dist/swapVertical-DSL75l8L.js +0 -12
- package/dist/swaps-BuTNp65Y.js +0 -1637
- package/dist/telegram-cJP7hgUb.js +0 -20
- package/dist/three-dots-DHnEh28O.js +0 -9
- package/dist/twitch-CR2iGcBo.js +0 -22
- package/dist/twitterIcon-E5TAQjOn.js +0 -10
- package/dist/verify-DEukUJp0.js +0 -12
- package/dist/verify-filled-BXsx1i_p.js +0 -12
- package/dist/w3m-modal-Bm7BqVng.js +0 -1037
- package/dist/wallet-CzyyvdrT.js +0 -12
- package/dist/wallet-placeholder-BrcmyGEe.js +0 -18
- package/dist/walletconnect-BSYogWiE.js +0 -36
- package/dist/warning-circle-Cgp2BW3m.js +0 -16
- package/dist/x-BJinLpTw.js +0 -16
package/dist/index-DYdXjap2.js
DELETED
|
@@ -1,320 +0,0 @@
|
|
|
1
|
-
import { cE as g, cH as v, cI as y, cF as f, cG as d, cD as m } from "./index-BJ7cbG3N.js";
|
|
2
|
-
import { n, c as b } from "./if-defined-CNte9B3N.js";
|
|
3
|
-
import "./index-CmWdvIFT.js";
|
|
4
|
-
import "./index-CKikVKe2.js";
|
|
5
|
-
const z = g`
|
|
6
|
-
:host {
|
|
7
|
-
position: relative;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
button {
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
align-items: center;
|
|
14
|
-
height: 48px;
|
|
15
|
-
width: 100%;
|
|
16
|
-
background-color: var(--wui-color-accent-glass-010);
|
|
17
|
-
border-radius: var(--wui-border-radius-xs);
|
|
18
|
-
border: 1px solid var(--wui-color-accent-glass-010);
|
|
19
|
-
transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
|
|
20
|
-
will-change: background-color;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
wui-tooltip {
|
|
24
|
-
padding: 7px var(--wui-spacing-s) 8px var(--wui-spacing-s);
|
|
25
|
-
position: absolute;
|
|
26
|
-
top: -8px;
|
|
27
|
-
left: 50%;
|
|
28
|
-
transform: translate(-50%, -100%);
|
|
29
|
-
opacity: 0;
|
|
30
|
-
display: none;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@media (hover: hover) and (pointer: fine) {
|
|
34
|
-
button:hover:enabled {
|
|
35
|
-
background-color: var(--wui-color-accent-glass-015);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
button:active:enabled {
|
|
39
|
-
background-color: var(--wui-color-accent-glass-020);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
43
|
-
var x = function(o, t, i, r) {
|
|
44
|
-
var a = arguments.length, e = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, i) : r, s;
|
|
45
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(o, t, i, r);
|
|
46
|
-
else for (var l = o.length - 1; l >= 0; l--) (s = o[l]) && (e = (a < 3 ? s(e) : a > 3 ? s(t, i, e) : s(t, i)) || e);
|
|
47
|
-
return a > 3 && e && Object.defineProperty(t, i, e), e;
|
|
48
|
-
};
|
|
49
|
-
let w = class extends f {
|
|
50
|
-
constructor() {
|
|
51
|
-
super(...arguments), this.text = "", this.icon = "card";
|
|
52
|
-
}
|
|
53
|
-
render() {
|
|
54
|
-
return d`<button>
|
|
55
|
-
<wui-icon color="accent-100" name=${this.icon} size="lg"></wui-icon>
|
|
56
|
-
</button>`;
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
w.styles = [v, y, z];
|
|
60
|
-
x([
|
|
61
|
-
n()
|
|
62
|
-
], w.prototype, "text", void 0);
|
|
63
|
-
x([
|
|
64
|
-
n()
|
|
65
|
-
], w.prototype, "icon", void 0);
|
|
66
|
-
w = x([
|
|
67
|
-
b("wui-icon-button")
|
|
68
|
-
], w);
|
|
69
|
-
const $ = m`<svg width="86" height="96" fill="none">
|
|
70
|
-
<path
|
|
71
|
-
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"
|
|
72
|
-
/>
|
|
73
|
-
</svg>`, I = m`<svg viewBox="0 0 48 54" fill="none">
|
|
74
|
-
<path
|
|
75
|
-
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"
|
|
76
|
-
/>
|
|
77
|
-
</svg>`, S = m`
|
|
78
|
-
<svg fill="none" viewBox="0 0 36 40">
|
|
79
|
-
<path
|
|
80
|
-
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"
|
|
81
|
-
/>
|
|
82
|
-
</svg>
|
|
83
|
-
`, k = g`
|
|
84
|
-
:host {
|
|
85
|
-
position: relative;
|
|
86
|
-
border-radius: inherit;
|
|
87
|
-
display: flex;
|
|
88
|
-
justify-content: center;
|
|
89
|
-
align-items: center;
|
|
90
|
-
width: var(--local-width);
|
|
91
|
-
height: var(--local-height);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
:host([data-round='true']) {
|
|
95
|
-
background: var(--wui-color-gray-glass-002);
|
|
96
|
-
border-radius: 100%;
|
|
97
|
-
outline: 1px solid var(--wui-color-gray-glass-005);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
svg {
|
|
101
|
-
position: absolute;
|
|
102
|
-
top: 0;
|
|
103
|
-
left: 0;
|
|
104
|
-
width: 100%;
|
|
105
|
-
height: 100%;
|
|
106
|
-
z-index: 1;
|
|
107
|
-
fill: var(--wui-color-gray-glass-002);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
svg > path {
|
|
111
|
-
stroke: var(--local-stroke);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
wui-image {
|
|
115
|
-
width: 100%;
|
|
116
|
-
height: 100%;
|
|
117
|
-
-webkit-clip-path: var(--local-path);
|
|
118
|
-
clip-path: var(--local-path);
|
|
119
|
-
background: var(--wui-color-gray-glass-002);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
wui-icon {
|
|
123
|
-
transform: translateY(-5%);
|
|
124
|
-
width: var(--local-icon-size);
|
|
125
|
-
height: var(--local-icon-size);
|
|
126
|
-
}
|
|
127
|
-
`;
|
|
128
|
-
var h = function(o, t, i, r) {
|
|
129
|
-
var a = arguments.length, e = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, i) : r, s;
|
|
130
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(o, t, i, r);
|
|
131
|
-
else for (var l = o.length - 1; l >= 0; l--) (s = o[l]) && (e = (a < 3 ? s(e) : a > 3 ? s(t, i, e) : s(t, i)) || e);
|
|
132
|
-
return a > 3 && e && Object.defineProperty(t, i, e), e;
|
|
133
|
-
};
|
|
134
|
-
let c = class extends f {
|
|
135
|
-
constructor() {
|
|
136
|
-
super(...arguments), this.size = "md", this.name = "uknown", this.networkImagesBySize = {
|
|
137
|
-
sm: S,
|
|
138
|
-
md: I,
|
|
139
|
-
lg: $
|
|
140
|
-
}, this.selected = !1, this.round = !1;
|
|
141
|
-
}
|
|
142
|
-
render() {
|
|
143
|
-
return this.round ? (this.dataset.round = "true", this.style.cssText = `
|
|
144
|
-
--local-width: var(--wui-spacing-3xl);
|
|
145
|
-
--local-height: var(--wui-spacing-3xl);
|
|
146
|
-
--local-icon-size: var(--wui-spacing-l);
|
|
147
|
-
`) : this.style.cssText = `
|
|
148
|
-
|
|
149
|
-
--local-path: var(--wui-path-network-${this.size});
|
|
150
|
-
--local-width: var(--wui-width-network-${this.size});
|
|
151
|
-
--local-height: var(--wui-height-network-${this.size});
|
|
152
|
-
--local-icon-size: var(--wui-icon-size-network-${this.size});
|
|
153
|
-
`, d`${this.templateVisual()} ${this.svgTemplate()} `;
|
|
154
|
-
}
|
|
155
|
-
svgTemplate() {
|
|
156
|
-
return this.round ? null : this.networkImagesBySize[this.size];
|
|
157
|
-
}
|
|
158
|
-
templateVisual() {
|
|
159
|
-
return this.imageSrc ? d`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>` : d`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`;
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
c.styles = [v, k];
|
|
163
|
-
h([
|
|
164
|
-
n()
|
|
165
|
-
], c.prototype, "size", void 0);
|
|
166
|
-
h([
|
|
167
|
-
n()
|
|
168
|
-
], c.prototype, "name", void 0);
|
|
169
|
-
h([
|
|
170
|
-
n({ type: Object })
|
|
171
|
-
], c.prototype, "networkImagesBySize", void 0);
|
|
172
|
-
h([
|
|
173
|
-
n()
|
|
174
|
-
], c.prototype, "imageSrc", void 0);
|
|
175
|
-
h([
|
|
176
|
-
n({ type: Boolean })
|
|
177
|
-
], c.prototype, "selected", void 0);
|
|
178
|
-
h([
|
|
179
|
-
n({ type: Boolean })
|
|
180
|
-
], c.prototype, "round", void 0);
|
|
181
|
-
c = h([
|
|
182
|
-
b("wui-network-image")
|
|
183
|
-
], c);
|
|
184
|
-
const j = g`
|
|
185
|
-
:host {
|
|
186
|
-
position: relative;
|
|
187
|
-
background-color: var(--wui-color-gray-glass-002);
|
|
188
|
-
display: flex;
|
|
189
|
-
justify-content: center;
|
|
190
|
-
align-items: center;
|
|
191
|
-
width: var(--local-size);
|
|
192
|
-
height: var(--local-size);
|
|
193
|
-
border-radius: inherit;
|
|
194
|
-
border-radius: var(--local-border-radius);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
:host > wui-flex {
|
|
198
|
-
overflow: hidden;
|
|
199
|
-
border-radius: inherit;
|
|
200
|
-
border-radius: var(--local-border-radius);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
:host::after {
|
|
204
|
-
content: '';
|
|
205
|
-
position: absolute;
|
|
206
|
-
top: 0;
|
|
207
|
-
bottom: 0;
|
|
208
|
-
left: 0;
|
|
209
|
-
right: 0;
|
|
210
|
-
border-radius: inherit;
|
|
211
|
-
border: 1px solid var(--wui-color-gray-glass-010);
|
|
212
|
-
pointer-events: none;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
:host([name='Extension'])::after {
|
|
216
|
-
border: 1px solid var(--wui-color-accent-glass-010);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
:host([data-wallet-icon='allWallets']) {
|
|
220
|
-
background-color: var(--wui-all-wallets-bg-100);
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
:host([data-wallet-icon='allWallets'])::after {
|
|
224
|
-
border: 1px solid var(--wui-color-accent-glass-010);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
wui-icon[data-parent-size='inherit'] {
|
|
228
|
-
width: 75%;
|
|
229
|
-
height: 75%;
|
|
230
|
-
align-items: center;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
wui-icon[data-parent-size='sm'] {
|
|
234
|
-
width: 18px;
|
|
235
|
-
height: 18px;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
wui-icon[data-parent-size='md'] {
|
|
239
|
-
width: 24px;
|
|
240
|
-
height: 24px;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
wui-icon[data-parent-size='lg'] {
|
|
244
|
-
width: 42px;
|
|
245
|
-
height: 42px;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
wui-icon[data-parent-size='full'] {
|
|
249
|
-
width: 100%;
|
|
250
|
-
height: 100%;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
:host > wui-icon-box {
|
|
254
|
-
position: absolute;
|
|
255
|
-
overflow: hidden;
|
|
256
|
-
right: -1px;
|
|
257
|
-
bottom: -2px;
|
|
258
|
-
z-index: 1;
|
|
259
|
-
border: 2px solid var(--wui-color-bg-150, #1e1f1f);
|
|
260
|
-
padding: 1px;
|
|
261
|
-
}
|
|
262
|
-
`;
|
|
263
|
-
var p = function(o, t, i, r) {
|
|
264
|
-
var a = arguments.length, e = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, i) : r, s;
|
|
265
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(o, t, i, r);
|
|
266
|
-
else for (var l = o.length - 1; l >= 0; l--) (s = o[l]) && (e = (a < 3 ? s(e) : a > 3 ? s(t, i, e) : s(t, i)) || e);
|
|
267
|
-
return a > 3 && e && Object.defineProperty(t, i, e), e;
|
|
268
|
-
};
|
|
269
|
-
let u = class extends f {
|
|
270
|
-
constructor() {
|
|
271
|
-
super(...arguments), this.size = "md", this.name = "", this.installed = !1, this.badgeSize = "xs";
|
|
272
|
-
}
|
|
273
|
-
render() {
|
|
274
|
-
let t = "xxs";
|
|
275
|
-
return this.size === "lg" ? t = "m" : this.size === "md" ? t = "xs" : t = "xxs", this.style.cssText = `
|
|
276
|
-
--local-border-radius: var(--wui-border-radius-${t});
|
|
277
|
-
--local-size: var(--wui-wallet-image-size-${this.size});
|
|
278
|
-
`, this.walletIcon && (this.dataset.walletIcon = this.walletIcon), d`
|
|
279
|
-
<wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex>
|
|
280
|
-
`;
|
|
281
|
-
}
|
|
282
|
-
templateVisual() {
|
|
283
|
-
return this.imageSrc ? d`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>` : this.walletIcon ? d`<wui-icon
|
|
284
|
-
data-parent-size="md"
|
|
285
|
-
size="md"
|
|
286
|
-
color="inherit"
|
|
287
|
-
name=${this.walletIcon}
|
|
288
|
-
></wui-icon>` : d`<wui-icon
|
|
289
|
-
data-parent-size=${this.size}
|
|
290
|
-
size="inherit"
|
|
291
|
-
color="inherit"
|
|
292
|
-
name="walletPlaceholder"
|
|
293
|
-
></wui-icon>`;
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
|
-
u.styles = [y, v, j];
|
|
297
|
-
p([
|
|
298
|
-
n()
|
|
299
|
-
], u.prototype, "size", void 0);
|
|
300
|
-
p([
|
|
301
|
-
n()
|
|
302
|
-
], u.prototype, "name", void 0);
|
|
303
|
-
p([
|
|
304
|
-
n()
|
|
305
|
-
], u.prototype, "imageSrc", void 0);
|
|
306
|
-
p([
|
|
307
|
-
n()
|
|
308
|
-
], u.prototype, "walletIcon", void 0);
|
|
309
|
-
p([
|
|
310
|
-
n({ type: Boolean })
|
|
311
|
-
], u.prototype, "installed", void 0);
|
|
312
|
-
p([
|
|
313
|
-
n()
|
|
314
|
-
], u.prototype, "badgeSize", void 0);
|
|
315
|
-
u = p([
|
|
316
|
-
b("wui-wallet-image")
|
|
317
|
-
], u);
|
|
318
|
-
export {
|
|
319
|
-
I as n
|
|
320
|
-
};
|
package/dist/index-DceCxNV5.js
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { cE as h, cH as b, cI as w, cF as g, cG as r } from "./index-BJ7cbG3N.js";
|
|
2
|
-
import { n as o, c as v, o as p } from "./if-defined-CNte9B3N.js";
|
|
3
|
-
import "./index-CmWdvIFT.js";
|
|
4
|
-
import "./index-BaJ0zEbh.js";
|
|
5
|
-
import "./index-CKikVKe2.js";
|
|
6
|
-
const x = h`
|
|
7
|
-
button {
|
|
8
|
-
column-gap: var(--wui-spacing-s);
|
|
9
|
-
padding: 11px 18px 11px var(--wui-spacing-s);
|
|
10
|
-
width: 100%;
|
|
11
|
-
background-color: var(--wui-color-gray-glass-002);
|
|
12
|
-
border-radius: var(--wui-border-radius-xs);
|
|
13
|
-
color: var(--wui-color-fg-250);
|
|
14
|
-
transition:
|
|
15
|
-
color var(--wui-ease-out-power-1) var(--wui-duration-md),
|
|
16
|
-
background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
|
|
17
|
-
will-change: color, background-color;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
button[data-iconvariant='square'],
|
|
21
|
-
button[data-iconvariant='square-blue'] {
|
|
22
|
-
padding: 6px 18px 6px 9px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
button > wui-flex {
|
|
26
|
-
flex: 1;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
button > wui-image {
|
|
30
|
-
width: 32px;
|
|
31
|
-
height: 32px;
|
|
32
|
-
box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
|
|
33
|
-
border-radius: var(--wui-border-radius-3xl);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
button > wui-icon {
|
|
37
|
-
width: 36px;
|
|
38
|
-
height: 36px;
|
|
39
|
-
transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
|
|
40
|
-
will-change: opacity;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
button > wui-icon-box[data-variant='blue'] {
|
|
44
|
-
box-shadow: 0 0 0 2px var(--wui-color-accent-glass-005);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
button > wui-icon-box[data-variant='overlay'] {
|
|
48
|
-
box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
button > wui-icon-box[data-variant='square-blue'] {
|
|
52
|
-
border-radius: var(--wui-border-radius-3xs);
|
|
53
|
-
position: relative;
|
|
54
|
-
border: none;
|
|
55
|
-
width: 36px;
|
|
56
|
-
height: 36px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
button > wui-icon-box[data-variant='square-blue']::after {
|
|
60
|
-
content: '';
|
|
61
|
-
position: absolute;
|
|
62
|
-
top: 0;
|
|
63
|
-
bottom: 0;
|
|
64
|
-
left: 0;
|
|
65
|
-
right: 0;
|
|
66
|
-
border-radius: inherit;
|
|
67
|
-
border: 1px solid var(--wui-color-accent-glass-010);
|
|
68
|
-
pointer-events: none;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
button > wui-icon:last-child {
|
|
72
|
-
width: 14px;
|
|
73
|
-
height: 14px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
button:disabled {
|
|
77
|
-
color: var(--wui-color-gray-glass-020);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
button[data-loading='true'] > wui-icon {
|
|
81
|
-
opacity: 0;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
wui-loading-spinner {
|
|
85
|
-
position: absolute;
|
|
86
|
-
right: 18px;
|
|
87
|
-
top: 50%;
|
|
88
|
-
transform: translateY(-50%);
|
|
89
|
-
}
|
|
90
|
-
`;
|
|
91
|
-
var t = function(u, a, e, s) {
|
|
92
|
-
var l = arguments.length, n = l < 3 ? a : s === null ? s = Object.getOwnPropertyDescriptor(a, e) : s, c;
|
|
93
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") n = Reflect.decorate(u, a, e, s);
|
|
94
|
-
else for (var d = u.length - 1; d >= 0; d--) (c = u[d]) && (n = (l < 3 ? c(n) : l > 3 ? c(a, e, n) : c(a, e)) || n);
|
|
95
|
-
return l > 3 && n && Object.defineProperty(a, e, n), n;
|
|
96
|
-
};
|
|
97
|
-
let i = class extends g {
|
|
98
|
-
constructor() {
|
|
99
|
-
super(...arguments), this.tabIdx = void 0, this.variant = "icon", this.disabled = !1, this.imageSrc = void 0, this.alt = void 0, this.chevron = !1, this.loading = !1;
|
|
100
|
-
}
|
|
101
|
-
render() {
|
|
102
|
-
return r`
|
|
103
|
-
<button
|
|
104
|
-
?disabled=${this.loading ? !0 : !!this.disabled}
|
|
105
|
-
data-loading=${this.loading}
|
|
106
|
-
data-iconvariant=${p(this.iconVariant)}
|
|
107
|
-
tabindex=${p(this.tabIdx)}
|
|
108
|
-
>
|
|
109
|
-
${this.loadingTemplate()} ${this.visualTemplate()}
|
|
110
|
-
<wui-flex gap="3xs">
|
|
111
|
-
<slot></slot>
|
|
112
|
-
</wui-flex>
|
|
113
|
-
${this.chevronTemplate()}
|
|
114
|
-
</button>
|
|
115
|
-
`;
|
|
116
|
-
}
|
|
117
|
-
visualTemplate() {
|
|
118
|
-
if (this.variant === "image" && this.imageSrc)
|
|
119
|
-
return r`<wui-image src=${this.imageSrc} alt=${this.alt ?? "list item"}></wui-image>`;
|
|
120
|
-
if (this.iconVariant === "square" && this.icon && this.variant === "icon")
|
|
121
|
-
return r`<wui-icon name=${this.icon}></wui-icon>`;
|
|
122
|
-
if (this.variant === "icon" && this.icon && this.iconVariant) {
|
|
123
|
-
const a = ["blue", "square-blue"].includes(this.iconVariant) ? "accent-100" : "fg-200", e = this.iconVariant === "square-blue" ? "mdl" : "md", s = this.iconSize ? this.iconSize : e;
|
|
124
|
-
return r`
|
|
125
|
-
<wui-icon-box
|
|
126
|
-
data-variant=${this.iconVariant}
|
|
127
|
-
icon=${this.icon}
|
|
128
|
-
iconSize=${s}
|
|
129
|
-
background="transparent"
|
|
130
|
-
iconColor=${a}
|
|
131
|
-
backgroundColor=${a}
|
|
132
|
-
size=${e}
|
|
133
|
-
></wui-icon-box>
|
|
134
|
-
`;
|
|
135
|
-
}
|
|
136
|
-
return null;
|
|
137
|
-
}
|
|
138
|
-
loadingTemplate() {
|
|
139
|
-
return this.loading ? r`<wui-loading-spinner
|
|
140
|
-
data-testid="wui-list-item-loading-spinner"
|
|
141
|
-
color="fg-300"
|
|
142
|
-
></wui-loading-spinner>` : r``;
|
|
143
|
-
}
|
|
144
|
-
chevronTemplate() {
|
|
145
|
-
return this.chevron ? r`<wui-icon size="inherit" color="fg-200" name="chevronRight"></wui-icon>` : null;
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
i.styles = [b, w, x];
|
|
149
|
-
t([
|
|
150
|
-
o()
|
|
151
|
-
], i.prototype, "icon", void 0);
|
|
152
|
-
t([
|
|
153
|
-
o()
|
|
154
|
-
], i.prototype, "iconSize", void 0);
|
|
155
|
-
t([
|
|
156
|
-
o()
|
|
157
|
-
], i.prototype, "tabIdx", void 0);
|
|
158
|
-
t([
|
|
159
|
-
o()
|
|
160
|
-
], i.prototype, "variant", void 0);
|
|
161
|
-
t([
|
|
162
|
-
o()
|
|
163
|
-
], i.prototype, "iconVariant", void 0);
|
|
164
|
-
t([
|
|
165
|
-
o({ type: Boolean })
|
|
166
|
-
], i.prototype, "disabled", void 0);
|
|
167
|
-
t([
|
|
168
|
-
o()
|
|
169
|
-
], i.prototype, "imageSrc", void 0);
|
|
170
|
-
t([
|
|
171
|
-
o()
|
|
172
|
-
], i.prototype, "alt", void 0);
|
|
173
|
-
t([
|
|
174
|
-
o({ type: Boolean })
|
|
175
|
-
], i.prototype, "chevron", void 0);
|
|
176
|
-
t([
|
|
177
|
-
o({ type: Boolean })
|
|
178
|
-
], i.prototype, "loading", void 0);
|
|
179
|
-
i = t([
|
|
180
|
-
v("wui-list-item")
|
|
181
|
-
], i);
|