@directcryptopay/sdk 0.2.1 → 0.2.3
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-CPMQq6Q-.js +217 -0
- package/dist/HelpersUtil-DfMFC7Bf.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-Cti0Cyxa.js +457 -0
- package/dist/{ccip-BIGqktC1.js → ccip-CKZd2XJ7.js} +4 -4
- package/dist/data-capture-7D5CL385.js +490 -0
- package/dist/dcp-sdk.umd.js +7400 -6589
- package/dist/email-AmK0INbZ.js +344 -0
- package/dist/embedded-wallet-Pn0I_XLn.js +820 -0
- package/dist/features-x8XNprEe.js +274 -0
- package/dist/{hashTypedData-ZH9ZnWu3.js → hashTypedData-B50-z0AA.js} +6 -6
- package/dist/if-defined-CdZSZ6UL.js +10 -0
- package/dist/index-4ewUtPPp.js +7981 -0
- package/dist/{index-D6h-qfpt.js → index-51l86yqx.js} +5 -5
- package/dist/index-B6K56LF_.js +85 -0
- package/dist/index-BAmv9PxJ.js +257 -0
- package/dist/index-BEswjY9r.js +117 -0
- package/dist/index-BSKRq56S.js +355 -0
- package/dist/index-BaygXQxx.js +172 -0
- package/dist/index-BcPxaHr5.js +118 -0
- package/dist/index-Bjt7nGaJ.js +199 -0
- package/dist/{index-D5r0iSq4.js → index-BkTSyAJb.js} +1 -1
- package/dist/index-Bmnl7l2U.js +555 -0
- package/dist/index-BvPvouSq.js +56 -0
- package/dist/index-C-6iznUO.js +174 -0
- package/dist/index-C4M5s_AM.js +228 -0
- package/dist/index-CEqcN8QP.js +1175 -0
- package/dist/{index-CPTcEPbD.js → index-CM3YaYca.js} +296 -298
- package/dist/{index-f3LXSfM5.js → index-CclBLA5r.js} +56 -142
- package/dist/index-ChTxJOiF.js +46 -0
- package/dist/index-CmAv0Tzr.js +86 -0
- package/dist/index-CmvoKY4x.js +125 -0
- package/dist/{index-BdSIrl-R.js → index-D7PmdQ9B.js} +578 -570
- package/dist/{index-DobBVPe4.js → index-D7k2Pc4e.js} +481 -236
- package/dist/index-D7lmgqUR.js +153 -0
- package/dist/index-DG_-qYze.js +107 -0
- package/dist/{index-Dy4NyE6l.js → index-DHot9Fdb.js} +7 -7
- package/dist/index-DV2LrPtU.js +123 -0
- package/dist/index-DYBaJQ2W.js +65 -0
- package/dist/{index-BJ7cbG3N.js → index-D_8VUmn1.js} +36688 -40208
- package/dist/index-D_gLn3rT.js +100 -0
- package/dist/index-DqcVUSC9.js +62 -0
- package/dist/index-I7VDqINw.js +128 -0
- package/dist/index-Oz72I9VP.js +209 -0
- package/dist/index-UclsHkJ0.js +118 -0
- package/dist/index-X8zir_1j.js +110 -0
- package/dist/index-XvlWKGCu.js +1281 -0
- package/dist/index-dO97xPlt.js +171 -0
- package/dist/{index-5mp7WkhV.js → index-uBeF6OAB.js} +2 -2
- package/dist/index-zeA_RiCV.js +159 -0
- package/dist/index.js +1 -1
- package/dist/{localBatchGatewayRequest-CjGcn5nM.js → localBatchGatewayRequest-BUZHGdjw.js} +1 -1
- package/dist/onramp-CdnBuF0r.js +855 -0
- package/dist/{parseSignature-S8VEpRHC.js → parseSignature-CcyTNGr4.js} +2312 -2313
- package/dist/pay-with-exchange-CSM6WCOV.js +525 -0
- package/dist/property-Bd8U3_QP.js +618 -0
- package/dist/receive-DooMu4Dx.js +232 -0
- package/dist/ref-CpgjXAw7.js +107 -0
- package/dist/send-3T7CyYic.js +1166 -0
- package/dist/socials-Dt-iHL17.js +620 -0
- package/dist/swaps-CjA9Es42.js +1760 -0
- package/dist/{transactions-DujFkB-M.js → transactions-nRm9DVzn.js} +10 -10
- package/dist/w3m-modal-NV25AXhM.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-BVdzXHpO.js
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { cX as g, cY as w, d8 as _, cJ as p, dc as v, cZ as m, d1 as c, de as E, dd as $, cE as y, cH as b, cF as x, cG as h, cI as R } from "./index-BJ7cbG3N.js";
|
|
2
|
-
import { n as u, c as C, o as O } from "./if-defined-CNte9B3N.js";
|
|
3
|
-
function T() {
|
|
4
|
-
try {
|
|
5
|
-
return c.returnOpenHref(`${$.SECURE_SITE_SDK_ORIGIN}/loading`, "popupWindow", "width=600,height=800,scrollbars=yes");
|
|
6
|
-
} catch {
|
|
7
|
-
throw new Error("Could not open social popup");
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
async function U() {
|
|
11
|
-
p.push("ConnectingFarcaster");
|
|
12
|
-
const t = v.getAuthConnector();
|
|
13
|
-
if (t && !g.state.farcasterUrl)
|
|
14
|
-
try {
|
|
15
|
-
const { url: o } = await t.provider.getFarcasterUri();
|
|
16
|
-
g.setFarcasterUrl(o, w.state.activeChain);
|
|
17
|
-
} catch (o) {
|
|
18
|
-
p.goBack(), m.showError(o);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
async function j(t) {
|
|
22
|
-
p.push("ConnectingSocial");
|
|
23
|
-
const o = v.getAuthConnector();
|
|
24
|
-
let e = null;
|
|
25
|
-
try {
|
|
26
|
-
const i = setTimeout(() => {
|
|
27
|
-
throw new Error("Social login timed out. Please try again.");
|
|
28
|
-
}, 45e3);
|
|
29
|
-
if (o && t) {
|
|
30
|
-
if (c.isTelegram() || (e = T()), e)
|
|
31
|
-
g.setSocialWindow(e, w.state.activeChain);
|
|
32
|
-
else if (!c.isTelegram())
|
|
33
|
-
throw new Error("Could not create social popup");
|
|
34
|
-
const { uri: n } = await o.provider.getSocialRedirectUri({
|
|
35
|
-
provider: t
|
|
36
|
-
});
|
|
37
|
-
if (!n)
|
|
38
|
-
throw e == null || e.close(), new Error("Could not fetch the social redirect uri");
|
|
39
|
-
if (e && (e.location.href = n), c.isTelegram()) {
|
|
40
|
-
E.setTelegramSocialProvider(t);
|
|
41
|
-
const r = c.formatTelegramSocialLoginUrl(n);
|
|
42
|
-
c.openHref(r, "_top");
|
|
43
|
-
}
|
|
44
|
-
clearTimeout(i);
|
|
45
|
-
}
|
|
46
|
-
} catch (i) {
|
|
47
|
-
e == null || e.close(), m.showError(i == null ? void 0 : i.message);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
async function P(t) {
|
|
51
|
-
g.setSocialProvider(t, w.state.activeChain), _.sendEvent({
|
|
52
|
-
type: "track",
|
|
53
|
-
event: "SOCIAL_LOGIN_STARTED",
|
|
54
|
-
properties: { provider: t }
|
|
55
|
-
}), t === "farcaster" ? await U() : await j(t);
|
|
56
|
-
}
|
|
57
|
-
const I = y`
|
|
58
|
-
:host {
|
|
59
|
-
display: flex;
|
|
60
|
-
justify-content: center;
|
|
61
|
-
align-items: center;
|
|
62
|
-
width: 40px;
|
|
63
|
-
height: 40px;
|
|
64
|
-
border-radius: var(--wui-border-radius-3xl);
|
|
65
|
-
border: 1px solid var(--wui-color-gray-glass-005);
|
|
66
|
-
overflow: hidden;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
wui-icon {
|
|
70
|
-
width: 100%;
|
|
71
|
-
height: 100%;
|
|
72
|
-
}
|
|
73
|
-
`;
|
|
74
|
-
var S = function(t, o, e, i) {
|
|
75
|
-
var n = arguments.length, r = n < 3 ? o : i === null ? i = Object.getOwnPropertyDescriptor(o, e) : i, a;
|
|
76
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(t, o, e, i);
|
|
77
|
-
else for (var s = t.length - 1; s >= 0; s--) (a = t[s]) && (r = (n < 3 ? a(r) : n > 3 ? a(o, e, r) : a(o, e)) || r);
|
|
78
|
-
return n > 3 && r && Object.defineProperty(o, e, r), r;
|
|
79
|
-
};
|
|
80
|
-
let f = class extends x {
|
|
81
|
-
constructor() {
|
|
82
|
-
super(...arguments), this.logo = "google";
|
|
83
|
-
}
|
|
84
|
-
render() {
|
|
85
|
-
return h`<wui-icon color="inherit" size="inherit" name=${this.logo}></wui-icon> `;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
f.styles = [b, I];
|
|
89
|
-
S([
|
|
90
|
-
u()
|
|
91
|
-
], f.prototype, "logo", void 0);
|
|
92
|
-
f = S([
|
|
93
|
-
C("wui-logo")
|
|
94
|
-
], f);
|
|
95
|
-
const L = y`
|
|
96
|
-
button {
|
|
97
|
-
column-gap: var(--wui-spacing-s);
|
|
98
|
-
padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs);
|
|
99
|
-
width: 100%;
|
|
100
|
-
justify-content: flex-start;
|
|
101
|
-
background-color: var(--wui-color-gray-glass-002);
|
|
102
|
-
border-radius: var(--wui-border-radius-xs);
|
|
103
|
-
color: var(--wui-color-fg-100);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
wui-text {
|
|
107
|
-
text-transform: capitalize;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
wui-text[data-align='left'] {
|
|
111
|
-
display: flex;
|
|
112
|
-
flex: 1;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
wui-text[data-align='center'] {
|
|
116
|
-
display: flex;
|
|
117
|
-
flex: 1;
|
|
118
|
-
justify-content: center;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.invisible {
|
|
122
|
-
opacity: 0;
|
|
123
|
-
pointer-events: none;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
button:disabled {
|
|
127
|
-
background-color: var(--wui-color-gray-glass-015);
|
|
128
|
-
color: var(--wui-color-gray-glass-015);
|
|
129
|
-
}
|
|
130
|
-
`;
|
|
131
|
-
var d = function(t, o, e, i) {
|
|
132
|
-
var n = arguments.length, r = n < 3 ? o : i === null ? i = Object.getOwnPropertyDescriptor(o, e) : i, a;
|
|
133
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(t, o, e, i);
|
|
134
|
-
else for (var s = t.length - 1; s >= 0; s--) (a = t[s]) && (r = (n < 3 ? a(r) : n > 3 ? a(o, e, r) : a(o, e)) || r);
|
|
135
|
-
return n > 3 && r && Object.defineProperty(o, e, r), r;
|
|
136
|
-
};
|
|
137
|
-
let l = class extends x {
|
|
138
|
-
constructor() {
|
|
139
|
-
super(...arguments), this.logo = "google", this.name = "Continue with google", this.align = "left", this.disabled = !1;
|
|
140
|
-
}
|
|
141
|
-
render() {
|
|
142
|
-
return h`
|
|
143
|
-
<button ?disabled=${this.disabled} tabindex=${O(this.tabIdx)}>
|
|
144
|
-
<wui-logo logo=${this.logo}></wui-logo>
|
|
145
|
-
<wui-text
|
|
146
|
-
data-align=${this.align}
|
|
147
|
-
variant="paragraph-500"
|
|
148
|
-
color="inherit"
|
|
149
|
-
align=${this.align}
|
|
150
|
-
>${this.name}</wui-text
|
|
151
|
-
>
|
|
152
|
-
${this.templatePlacement()}
|
|
153
|
-
</button>
|
|
154
|
-
`;
|
|
155
|
-
}
|
|
156
|
-
templatePlacement() {
|
|
157
|
-
return this.align === "center" ? h` <wui-logo class="invisible" logo=${this.logo}></wui-logo>` : null;
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
l.styles = [b, R, L];
|
|
161
|
-
d([
|
|
162
|
-
u()
|
|
163
|
-
], l.prototype, "logo", void 0);
|
|
164
|
-
d([
|
|
165
|
-
u()
|
|
166
|
-
], l.prototype, "name", void 0);
|
|
167
|
-
d([
|
|
168
|
-
u()
|
|
169
|
-
], l.prototype, "align", void 0);
|
|
170
|
-
d([
|
|
171
|
-
u()
|
|
172
|
-
], l.prototype, "tabIdx", void 0);
|
|
173
|
-
d([
|
|
174
|
-
u({ type: Boolean })
|
|
175
|
-
], l.prototype, "disabled", void 0);
|
|
176
|
-
l = d([
|
|
177
|
-
C("wui-list-social")
|
|
178
|
-
], l);
|
|
179
|
-
export {
|
|
180
|
-
P as e
|
|
181
|
-
};
|
package/dist/index-BYND0GJ9.js
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { cT as g, cU as w, cV as m, cW as f, cE as v, cF as b, cG as x } from "./index-BJ7cbG3N.js";
|
|
2
|
-
import { r as u, c as h } from "./if-defined-CNte9B3N.js";
|
|
3
|
-
const e = w({
|
|
4
|
-
message: "",
|
|
5
|
-
open: !1,
|
|
6
|
-
triggerRect: {
|
|
7
|
-
width: 0,
|
|
8
|
-
height: 0,
|
|
9
|
-
top: 0,
|
|
10
|
-
left: 0
|
|
11
|
-
},
|
|
12
|
-
variant: "shade"
|
|
13
|
-
}), y = {
|
|
14
|
-
state: e,
|
|
15
|
-
subscribe(o) {
|
|
16
|
-
return f(e, () => o(e));
|
|
17
|
-
},
|
|
18
|
-
subscribeKey(o, t) {
|
|
19
|
-
return m(e, o, t);
|
|
20
|
-
},
|
|
21
|
-
showTooltip({ message: o, triggerRect: t, variant: i }) {
|
|
22
|
-
e.open = !0, e.message = o, e.triggerRect = t, e.variant = i;
|
|
23
|
-
},
|
|
24
|
-
hide() {
|
|
25
|
-
e.open = !1, e.message = "", e.triggerRect = {
|
|
26
|
-
width: 0,
|
|
27
|
-
height: 0,
|
|
28
|
-
top: 0,
|
|
29
|
-
left: 0
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}, s = g(y), R = v`
|
|
33
|
-
:host {
|
|
34
|
-
pointer-events: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
:host > wui-flex {
|
|
38
|
-
display: var(--w3m-tooltip-display);
|
|
39
|
-
opacity: var(--w3m-tooltip-opacity);
|
|
40
|
-
padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s);
|
|
41
|
-
border-radius: var(--wui-border-radius-xxs);
|
|
42
|
-
color: var(--wui-color-bg-100);
|
|
43
|
-
position: fixed;
|
|
44
|
-
top: var(--w3m-tooltip-top);
|
|
45
|
-
left: var(--w3m-tooltip-left);
|
|
46
|
-
transform: translate(calc(-50% + var(--w3m-tooltip-parent-width)), calc(-100% - 8px));
|
|
47
|
-
max-width: calc(var(--w3m-modal-width) - var(--wui-spacing-xl));
|
|
48
|
-
transition: opacity 0.2s var(--wui-ease-out-power-2);
|
|
49
|
-
will-change: opacity;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
:host([data-variant='shade']) > wui-flex {
|
|
53
|
-
background-color: var(--wui-color-bg-150);
|
|
54
|
-
border: 1px solid var(--wui-color-gray-glass-005);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
:host([data-variant='shade']) > wui-flex > wui-text {
|
|
58
|
-
color: var(--wui-color-fg-150);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
:host([data-variant='fill']) > wui-flex {
|
|
62
|
-
background-color: var(--wui-color-fg-100);
|
|
63
|
-
border: none;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
wui-icon {
|
|
67
|
-
position: absolute;
|
|
68
|
-
width: 12px !important;
|
|
69
|
-
height: 4px !important;
|
|
70
|
-
color: var(--wui-color-bg-150);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
wui-icon[data-placement='top'] {
|
|
74
|
-
bottom: 0px;
|
|
75
|
-
left: 50%;
|
|
76
|
-
transform: translate(-50%, 95%);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
wui-icon[data-placement='bottom'] {
|
|
80
|
-
top: 0;
|
|
81
|
-
left: 50%;
|
|
82
|
-
transform: translate(-50%, -95%) rotate(180deg);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
wui-icon[data-placement='right'] {
|
|
86
|
-
top: 50%;
|
|
87
|
-
left: 0;
|
|
88
|
-
transform: translate(-65%, -50%) rotate(90deg);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
wui-icon[data-placement='left'] {
|
|
92
|
-
top: 50%;
|
|
93
|
-
right: 0%;
|
|
94
|
-
transform: translate(65%, -50%) rotate(270deg);
|
|
95
|
-
}
|
|
96
|
-
`;
|
|
97
|
-
var n = function(o, t, i, l) {
|
|
98
|
-
var c = arguments.length, r = c < 3 ? t : l === null ? l = Object.getOwnPropertyDescriptor(t, i) : l, p;
|
|
99
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(o, t, i, l);
|
|
100
|
-
else for (var d = o.length - 1; d >= 0; d--) (p = o[d]) && (r = (c < 3 ? p(r) : c > 3 ? p(t, i, r) : p(t, i)) || r);
|
|
101
|
-
return c > 3 && r && Object.defineProperty(t, i, r), r;
|
|
102
|
-
};
|
|
103
|
-
let a = class extends b {
|
|
104
|
-
constructor() {
|
|
105
|
-
super(), this.unsubscribe = [], this.open = s.state.open, this.message = s.state.message, this.triggerRect = s.state.triggerRect, this.variant = s.state.variant, this.unsubscribe.push(s.subscribe((t) => {
|
|
106
|
-
this.open = t.open, this.message = t.message, this.triggerRect = t.triggerRect, this.variant = t.variant;
|
|
107
|
-
}));
|
|
108
|
-
}
|
|
109
|
-
disconnectedCallback() {
|
|
110
|
-
this.unsubscribe.forEach((t) => t());
|
|
111
|
-
}
|
|
112
|
-
render() {
|
|
113
|
-
this.dataset.variant = this.variant;
|
|
114
|
-
const t = this.triggerRect.top, i = this.triggerRect.left;
|
|
115
|
-
return this.style.cssText = `
|
|
116
|
-
--w3m-tooltip-top: ${t}px;
|
|
117
|
-
--w3m-tooltip-left: ${i}px;
|
|
118
|
-
--w3m-tooltip-parent-width: ${this.triggerRect.width / 2}px;
|
|
119
|
-
--w3m-tooltip-display: ${this.open ? "flex" : "none"};
|
|
120
|
-
--w3m-tooltip-opacity: ${this.open ? 1 : 0};
|
|
121
|
-
`, x`<wui-flex>
|
|
122
|
-
<wui-icon data-placement="top" color="fg-100" size="inherit" name="cursor"></wui-icon>
|
|
123
|
-
<wui-text color="inherit" variant="small-500">${this.message}</wui-text>
|
|
124
|
-
</wui-flex>`;
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
a.styles = [R];
|
|
128
|
-
n([
|
|
129
|
-
u()
|
|
130
|
-
], a.prototype, "open", void 0);
|
|
131
|
-
n([
|
|
132
|
-
u()
|
|
133
|
-
], a.prototype, "message", void 0);
|
|
134
|
-
n([
|
|
135
|
-
u()
|
|
136
|
-
], a.prototype, "triggerRect", void 0);
|
|
137
|
-
n([
|
|
138
|
-
u()
|
|
139
|
-
], a.prototype, "variant", void 0);
|
|
140
|
-
a = n([
|
|
141
|
-
h("w3m-tooltip"),
|
|
142
|
-
h("w3m-tooltip")
|
|
143
|
-
], a);
|
|
144
|
-
export {
|
|
145
|
-
s as T
|
|
146
|
-
};
|
package/dist/index-BaJ0zEbh.js
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { cE as d, cH as f, cF as p, cG as g } from "./index-BJ7cbG3N.js";
|
|
2
|
-
import { n as l, c as u } from "./if-defined-CNte9B3N.js";
|
|
3
|
-
const x = d`
|
|
4
|
-
:host {
|
|
5
|
-
display: flex;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
:host([data-size='sm']) > svg {
|
|
9
|
-
width: 12px;
|
|
10
|
-
height: 12px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
:host([data-size='md']) > svg {
|
|
14
|
-
width: 16px;
|
|
15
|
-
height: 16px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:host([data-size='lg']) > svg {
|
|
19
|
-
width: 24px;
|
|
20
|
-
height: 24px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
:host([data-size='xl']) > svg {
|
|
24
|
-
width: 32px;
|
|
25
|
-
height: 32px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
svg {
|
|
29
|
-
animation: rotate 2s linear infinite;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
circle {
|
|
33
|
-
fill: none;
|
|
34
|
-
stroke: var(--local-color);
|
|
35
|
-
stroke-width: 4px;
|
|
36
|
-
stroke-dasharray: 1, 124;
|
|
37
|
-
stroke-dashoffset: 0;
|
|
38
|
-
stroke-linecap: round;
|
|
39
|
-
animation: dash 1.5s ease-in-out infinite;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
:host([data-size='md']) > svg > circle {
|
|
43
|
-
stroke-width: 6px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:host([data-size='sm']) > svg > circle {
|
|
47
|
-
stroke-width: 8px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@keyframes rotate {
|
|
51
|
-
100% {
|
|
52
|
-
transform: rotate(360deg);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@keyframes dash {
|
|
57
|
-
0% {
|
|
58
|
-
stroke-dasharray: 1, 124;
|
|
59
|
-
stroke-dashoffset: 0;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
50% {
|
|
63
|
-
stroke-dasharray: 90, 124;
|
|
64
|
-
stroke-dashoffset: -35;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
100% {
|
|
68
|
-
stroke-dashoffset: -125;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
`;
|
|
72
|
-
var h = function(o, t, s, r) {
|
|
73
|
-
var a = arguments.length, e = a < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, s) : r, n;
|
|
74
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(o, t, s, r);
|
|
75
|
-
else for (var c = o.length - 1; c >= 0; c--) (n = o[c]) && (e = (a < 3 ? n(e) : a > 3 ? n(t, s, e) : n(t, s)) || e);
|
|
76
|
-
return a > 3 && e && Object.defineProperty(t, s, e), e;
|
|
77
|
-
};
|
|
78
|
-
let i = class extends p {
|
|
79
|
-
constructor() {
|
|
80
|
-
super(...arguments), this.color = "accent-100", this.size = "lg";
|
|
81
|
-
}
|
|
82
|
-
render() {
|
|
83
|
-
return this.style.cssText = `--local-color: ${this.color === "inherit" ? "inherit" : `var(--wui-color-${this.color})`}`, this.dataset.size = this.size, g`<svg viewBox="25 25 50 50">
|
|
84
|
-
<circle r="20" cy="50" cx="50"></circle>
|
|
85
|
-
</svg>`;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
i.styles = [f, x];
|
|
89
|
-
h([
|
|
90
|
-
l()
|
|
91
|
-
], i.prototype, "color", void 0);
|
|
92
|
-
h([
|
|
93
|
-
l()
|
|
94
|
-
], i.prototype, "size", void 0);
|
|
95
|
-
i = h([
|
|
96
|
-
u("wui-loading-spinner")
|
|
97
|
-
], i);
|
package/dist/index-Bh0MPFwP.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { cE as d, cH as m, cF as f, cG as c } from "./index-BJ7cbG3N.js";
|
|
2
|
-
import { n as u, c as v, o as w } from "./if-defined-CNte9B3N.js";
|
|
3
|
-
import "./index-DQe94z7X.js";
|
|
4
|
-
const x = d`
|
|
5
|
-
:host {
|
|
6
|
-
position: relative;
|
|
7
|
-
display: inline-block;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
wui-text {
|
|
11
|
-
margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m);
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
var a = function(o, i, r, s) {
|
|
15
|
-
var n = arguments.length, e = n < 3 ? i : s === null ? s = Object.getOwnPropertyDescriptor(i, r) : s, l;
|
|
16
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(o, i, r, s);
|
|
17
|
-
else for (var p = o.length - 1; p >= 0; p--) (l = o[p]) && (e = (n < 3 ? l(e) : n > 3 ? l(i, r, e) : l(i, r)) || e);
|
|
18
|
-
return n > 3 && e && Object.defineProperty(i, r, e), e;
|
|
19
|
-
};
|
|
20
|
-
let t = class extends f {
|
|
21
|
-
constructor() {
|
|
22
|
-
super(...arguments), this.disabled = !1;
|
|
23
|
-
}
|
|
24
|
-
render() {
|
|
25
|
-
return c`
|
|
26
|
-
<wui-input-text
|
|
27
|
-
type="email"
|
|
28
|
-
placeholder="Email"
|
|
29
|
-
icon="mail"
|
|
30
|
-
size="mdl"
|
|
31
|
-
.disabled=${this.disabled}
|
|
32
|
-
.value=${this.value}
|
|
33
|
-
data-testid="wui-email-input"
|
|
34
|
-
tabIdx=${w(this.tabIdx)}
|
|
35
|
-
></wui-input-text>
|
|
36
|
-
${this.templateError()}
|
|
37
|
-
`;
|
|
38
|
-
}
|
|
39
|
-
templateError() {
|
|
40
|
-
return this.errorMessage ? c`<wui-text variant="tiny-500" color="error-100">${this.errorMessage}</wui-text>` : null;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
t.styles = [m, x];
|
|
44
|
-
a([
|
|
45
|
-
u()
|
|
46
|
-
], t.prototype, "errorMessage", void 0);
|
|
47
|
-
a([
|
|
48
|
-
u({ type: Boolean })
|
|
49
|
-
], t.prototype, "disabled", void 0);
|
|
50
|
-
a([
|
|
51
|
-
u()
|
|
52
|
-
], t.prototype, "value", void 0);
|
|
53
|
-
a([
|
|
54
|
-
u()
|
|
55
|
-
], t.prototype, "tabIdx", void 0);
|
|
56
|
-
t = a([
|
|
57
|
-
v("wui-email-input")
|
|
58
|
-
], t);
|