@upcoming/multichain-widget 0.1.0
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/README.md +57 -0
- package/dist/Arc-VDBY7LNS-DBrTWC6L.mjs +4 -0
- package/dist/Brave-BRAKJXDS-CfOthErl.mjs +4 -0
- package/dist/Browser-76IHF3Y2-D5mI5yDv.mjs +4 -0
- package/dist/Button.d.ts +11 -0
- package/dist/Chrome-65Q5P54Y-DrF9hxVd.mjs +4 -0
- package/dist/Edge-XSPUTORV-BPc8HSNM.mjs +4 -0
- package/dist/Firefox-AAHGJQIP--XXnd95e.mjs +4 -0
- package/dist/LabelSpacing.d.ts +8 -0
- package/dist/Linux-OO4TNCLJ-DjZl5oHj.mjs +4 -0
- package/dist/Macos-MW4AE7LN-DDrYwsGC.mjs +4 -0
- package/dist/MultichainErrorWrapper.d.ts +5 -0
- package/dist/MultichainHooks.d.ts +7 -0
- package/dist/MultichainStep.d.ts +4 -0
- package/dist/MultichainTheme.d.ts +23 -0
- package/dist/NumberInput.d.ts +13 -0
- package/dist/Opera-KQZLSACL-DhwRnyeO.mjs +4 -0
- package/dist/ProgressStatus.d.ts +9 -0
- package/dist/ProgressTracker.d.ts +8 -0
- package/dist/Router.d.ts +10 -0
- package/dist/Safari-ZPL37GXR-BJMyZNGk.mjs +4 -0
- package/dist/Select.d.ts +13 -0
- package/dist/SwapData.d.ts +8 -0
- package/dist/Tab1.d.ts +11 -0
- package/dist/Tab2.d.ts +13 -0
- package/dist/TextInput.d.ts +10 -0
- package/dist/Typography.d.ts +9 -0
- package/dist/Vertical.d.ts +7 -0
- package/dist/Windows-PPTHQER6-8DxONxME.mjs +4 -0
- package/dist/add-BaaFGpjE.mjs +19 -0
- package/dist/all-wallets-C4glPyDd.mjs +10 -0
- package/dist/apechain-SX5YFU6N-B6iVN2eI.mjs +4 -0
- package/dist/app-store-D83eAZij.mjs +21 -0
- package/dist/apple-D-am83__.mjs +22 -0
- package/dist/ar_AR-CTNWGWSS-B2yhhasT.mjs +1430 -0
- package/dist/arbitrum-WURIBY6W-C9umEuPP.mjs +4 -0
- package/dist/arrow-bottom-Br5TDvbL.mjs +12 -0
- package/dist/arrow-bottom-circle-DR_QyRKh.mjs +15 -0
- package/dist/arrow-left-DVYN58EU.mjs +12 -0
- package/dist/arrow-right-CyzEFMvr.mjs +12 -0
- package/dist/arrow-top-jqA3K6Zg.mjs +12 -0
- package/dist/assets-Q6ZU7ZJ5-DrI2eCWt.mjs +4 -0
- package/dist/avalanche-KOMJD3XY-BzTQlT3D.mjs +4 -0
- package/dist/bank-ByHNwpc3.mjs +18 -0
- package/dist/base-OAXLRA4F-zGysVgz6.mjs +4 -0
- package/dist/basic-CSosNPWM.mjs +5734 -0
- package/dist/berachain-NJECWIVC-CRQ0XjnA.mjs +4 -0
- package/dist/blast-V555OVXZ-DfAGOAm0.mjs +4 -0
- package/dist/browser-3VflZ6uC.mjs +308 -0
- package/dist/browser-ySWxlHoa.mjs +18 -0
- package/dist/bsc-N647EYR2-BZ1b_4BN.mjs +4 -0
- package/dist/card-CRN66uYO.mjs +18 -0
- package/dist/ccip-De2aDqcs.mjs +147 -0
- package/dist/celo-GEP4TUHG-DjaxM9On.mjs +4 -0
- package/dist/checkmark-B326mymW.mjs +15 -0
- package/dist/checkmark-bold-CZsJD2Gr.mjs +12 -0
- package/dist/chevron-bottom-DkZc5wTP.mjs +12 -0
- package/dist/chevron-left-o4mMwB-E.mjs +12 -0
- package/dist/chevron-right-DkxYecAn.mjs +12 -0
- package/dist/chevron-top-CmqtU-3t.mjs +12 -0
- package/dist/chrome-store-BiNhwxXr.mjs +65 -0
- package/dist/clock-Ca5tol9L.mjs +12 -0
- package/dist/close-DiXtNp7Z.mjs +12 -0
- package/dist/coinPlaceholder-3mnOUj7X.mjs +12 -0
- package/dist/coinbaseWallet-OKXU3TRC-5iCQMeiP.mjs +4 -0
- package/dist/compass-BeTMfz74.mjs +12 -0
- package/dist/connect-UA7M4XW6-of1DMMin.mjs +4 -0
- package/dist/copy-Dsf3uZQO.mjs +19 -0
- package/dist/core-C9zZKsa4.mjs +15268 -0
- package/dist/create-FASO7PVG-BFLB5t7x.mjs +4 -0
- package/dist/cronos-HJPAQTAE-CWSImNSf.mjs +4 -0
- package/dist/cursor-BdwdNQbq.mjs +7 -0
- package/dist/cursor-transparent-BQbUy-MI.mjs +16 -0
- package/dist/de_DE-P43L3PR7-CtO9uiNS.mjs +1430 -0
- package/dist/degen-FQQ4XGHB-DXAeLlGy.mjs +4 -0
- package/dist/desktop-CZMhBJFb.mjs +13 -0
- package/dist/disconnect-DLhBZUoq.mjs +12 -0
- package/dist/discord-CdM4DmVY.mjs +21 -0
- package/dist/en_US-RFN65H63-DaOvy-Ie.mjs +4 -0
- package/dist/es_419-JBX5FS3Q-hWy9nCEf.mjs +1430 -0
- package/dist/ethereum-RGGVA4PY-DxPcn0KS.mjs +4 -0
- package/dist/etherscan-DRQI7jsG.mjs +10 -0
- package/dist/events-BCEOhv4q.mjs +215 -0
- package/dist/exclamation-triangle-C5nhoqtz.mjs +8 -0
- package/dist/extension-aejRiJF7.mjs +12 -0
- package/dist/external-link-oWHbY6ff.mjs +12 -0
- package/dist/facebook-FUrhPDsl.mjs +30 -0
- package/dist/farcaster-fPZEqZwK.mjs +16 -0
- package/dist/filters-B1xTGafV.mjs +12 -0
- package/dist/flow-5FQJFCTK-CVfZv3to.mjs +4 -0
- package/dist/fr_FR-CM2EDAQC-B_30pesA.mjs +1430 -0
- package/dist/github-Dp4K2Czx.mjs +22 -0
- package/dist/gnosis-37ZC4RBL-xYLDpnHh.mjs +4 -0
- package/dist/google-ub7aEPpV.mjs +22 -0
- package/dist/gravity-J5YQHTYH-B97TrN9J.mjs +4 -0
- package/dist/hardhat-TX56IT5N-2KZA3GeI.mjs +4 -0
- package/dist/help-circle-BY3olasE.mjs +16 -0
- package/dist/hi_IN-GYVCUYRD-BaP4Kv7X.mjs +1430 -0
- package/dist/hooks.module-CsKUm6iL.mjs +487 -0
- package/dist/hyperevm-VKPAA4SA-C95vekJe.mjs +4 -0
- package/dist/id-CcbGN1gV.mjs +16 -0
- package/dist/id_ID-7ZWSMOOE-Dmml3uJR.mjs +1430 -0
- package/dist/image-D4ynYkwO.mjs +8 -0
- package/dist/index-5rNVG-X1.mjs +13987 -0
- package/dist/index-Bm8yUuPZ.mjs +1031 -0
- package/dist/index-CD3t4hnN.mjs +788 -0
- package/dist/index-CDBq6imb.mjs +9170 -0
- package/dist/index-CYj_i5FF.mjs +48 -0
- package/dist/index-Cm6VblFi.mjs +386 -0
- package/dist/index-CzXxUYUh.mjs +116342 -0
- package/dist/index-DhCSttFR.mjs +572 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.es-mDlOQVHq.mjs +11936 -0
- package/dist/info-DeimbgLd.mjs +7 -0
- package/dist/info-circle-CwTrbHls.mjs +16 -0
- package/dist/ink-FZMYZWHG-DlcClk5L.mjs +4 -0
- package/dist/ja_JP-CGMP6VLZ-k1qEQOBd.mjs +1430 -0
- package/dist/kaia-65D2U3PU-DJdIsERb.mjs +4 -0
- package/dist/ko_KR-YCZDTF7X-N5e302Ee.mjs +1430 -0
- package/dist/lightbulb-1S-xUrVG.mjs +7 -0
- package/dist/linea-QRMVQ5DY-CrycDmSa.mjs +4 -0
- package/dist/login-UP3DZBGS-BT9d537y.mjs +4 -0
- package/dist/mail-Bx6EPzBz.mjs +12 -0
- package/dist/manta-SI27YFEJ-CFctqJ5B.mjs +4 -0
- package/dist/mantle-CKIUT334-DZTIMdrF.mjs +4 -0
- package/dist/metaMaskWallet-SITXT2FV-CaDFha8m.mjs +4 -0
- package/dist/metamask-sdk-nVei8ADt.mjs +14679 -0
- package/dist/mobile-B8-sJxpC.mjs +13 -0
- package/dist/more-B6z1a_a4.mjs +15 -0
- package/dist/ms_MY-5LHAYMS7-DXUqJsVQ.mjs +1430 -0
- package/dist/multichain-widget.css +1 -0
- package/dist/multichain-widget.es.js +4 -0
- package/dist/multichain-widget.umd.js +53310 -0
- package/dist/network-placeholder-Q6vZ0clE.mjs +18 -0
- package/dist/nftPlaceholder-DaWpsRwT.mjs +12 -0
- package/dist/off-CoEljpqo.mjs +12 -0
- package/dist/optimism-HAF2GUT7-CDkFpVXG.mjs +4 -0
- package/dist/play-store-CwE3M0eU.mjs +36 -0
- package/dist/plus-1bFJ_g6P.mjs +17 -0
- package/dist/polygon-WW6ZI7PM-DMiAjxYW.mjs +4 -0
- package/dist/pt_BR-3JTS4PSK-BcqTSqXX.mjs +1430 -0
- package/dist/qr-code-tlhzSQ7q.mjs +10 -0
- package/dist/rainbowWallet-O26YNBMX-CB4dd0t7.mjs +4 -0
- package/dist/recycle-horizontal-DVabIaNj.mjs +13 -0
- package/dist/refresh-BEzHm0St.mjs +12 -0
- package/dist/refresh-S4T5V5GX-CoT4SMY4.mjs +4 -0
- package/dist/reown-logo-ZGeC-Zjq.mjs +16 -0
- package/dist/ronin-EMCPYXZT-CMqZm7Bj.mjs +4 -0
- package/dist/ru_RU-6J6XERHI-NHs582yY.mjs +1430 -0
- package/dist/safeWallet-5MNKTR5Z-ByPwRyZO.mjs +4 -0
- package/dist/sanko-RHQYXGM5-BdRCo3KT.mjs +4 -0
- package/dist/scan-4UYSQ56Q-Bt1XXdi3.mjs +4 -0
- package/dist/scroll-5OBGQVOV-C_cEm-kG.mjs +4 -0
- package/dist/search-BQm4fL3J.mjs +12 -0
- package/dist/secp256k1-CzCNdoTs.mjs +1509 -0
- package/dist/secp256k1-sIPbOTrM.mjs +1509 -0
- package/dist/send-B3VoVme5.mjs +19 -0
- package/dist/sign-A7IJEUT5-BQQmgNRT.mjs +4 -0
- package/dist/superposition-HG6MMR2Y-DHda4Hsd.mjs +4 -0
- package/dist/swapHorizontal-CX4jGdb-.mjs +12 -0
- package/dist/swapHorizontalBold-BOgCYVbo.mjs +12 -0
- package/dist/swapHorizontalMedium-DB47Xtfo.mjs +20 -0
- package/dist/swapHorizontalRoundedBold-DlQi9SKq.mjs +12 -0
- package/dist/swapVertical-0hWEwQ-0.mjs +12 -0
- package/dist/telegram-Cv_JwtKa.mjs +20 -0
- package/dist/th_TH-STXOD4CR-BIfWqO2o.mjs +1430 -0
- package/dist/three-dots-BB9sWThR.mjs +9 -0
- package/dist/tr_TR-P7QAUUZU-eG8PiHRZ.mjs +1430 -0
- package/dist/twitch-rc6Nwqz3.mjs +22 -0
- package/dist/twitterIcon-C0_NYbu8.mjs +10 -0
- package/dist/uk_UA-JTTBGJGQ-Dr7NKTT4.mjs +1430 -0
- package/dist/unichain-C5BWO2ZY-CgjeJfD4.mjs +4 -0
- package/dist/verify-DOiQmnqA.mjs +12 -0
- package/dist/verify-filled-BBBQPsk8.mjs +12 -0
- package/dist/vi_VN-5XUUAVWW-DDODReq8.mjs +1430 -0
- package/dist/w3m-modal-CJ9n0c2W.mjs +1457 -0
- package/dist/wallet-ERpC7VYY.mjs +12 -0
- package/dist/wallet-placeholder-ClAlPjuC.mjs +18 -0
- package/dist/walletConnectWallet-YHWKVTDY-DU_S15em.mjs +4 -0
- package/dist/walletconnect-np7_TJtf.mjs +36 -0
- package/dist/warning-circle-D-7HoIeW.mjs +16 -0
- package/dist/x-BS4s0iBO.mjs +16 -0
- package/dist/xdc-KJ3TDBYO-Ie58M8Vn.mjs +4 -0
- package/dist/zetachain-TLDS5IPW-CCJ72zNa.mjs +4 -0
- package/dist/zh_CN-RGMLPFEP-CTX3PM0F.mjs +1430 -0
- package/dist/zh_HK-YM3T6EI5-DZjb_17i.mjs +1430 -0
- package/dist/zh_TW-HAEH6VE5-BOq1c4Vl.mjs +1430 -0
- package/dist/zksync-DH7HK5U4-08fCIujK.mjs +4 -0
- package/dist/zora-FYL5H3IO-BoL7oY8W.mjs +4 -0
- package/package.json +45 -0
|
@@ -0,0 +1,1031 @@
|
|
|
1
|
+
import { J as N, K as V, k as b, l as $, m as S, x as m, L as q, N as B, o as W, n as Y } from "./core-C9zZKsa4.mjs";
|
|
2
|
+
const w = {
|
|
3
|
+
getSpacingStyles(e, t) {
|
|
4
|
+
if (Array.isArray(e))
|
|
5
|
+
return e[t] ? `var(--wui-spacing-${e[t]})` : void 0;
|
|
6
|
+
if (typeof e == "string")
|
|
7
|
+
return `var(--wui-spacing-${e})`;
|
|
8
|
+
},
|
|
9
|
+
getFormattedDate(e) {
|
|
10
|
+
return new Intl.DateTimeFormat("en-US", { month: "short", day: "numeric" }).format(e);
|
|
11
|
+
},
|
|
12
|
+
getHostName(e) {
|
|
13
|
+
try {
|
|
14
|
+
return new URL(e).hostname;
|
|
15
|
+
} catch {
|
|
16
|
+
return "";
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
getTruncateString({ string: e, charsStart: t, charsEnd: i, truncate: o }) {
|
|
20
|
+
return e.length <= t + i ? e : o === "end" ? `${e.substring(0, t)}...` : o === "start" ? `...${e.substring(e.length - i)}` : `${e.substring(0, Math.floor(t))}...${e.substring(e.length - Math.floor(i))}`;
|
|
21
|
+
},
|
|
22
|
+
generateAvatarColors(e) {
|
|
23
|
+
const i = e.toLowerCase().replace(/^0x/iu, "").replace(/[^a-f0-9]/gu, "").substring(0, 6).padEnd(6, "0"), o = this.hexToRgb(i), a = getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"), n = 100 - 3 * Number(a?.replace("px", "")), s = `${n}% ${n}% at 65% 40%`, l = [];
|
|
24
|
+
for (let d = 0; d < 5; d += 1) {
|
|
25
|
+
const g = this.tintColor(o, 0.15 * d);
|
|
26
|
+
l.push(`rgb(${g[0]}, ${g[1]}, ${g[2]})`);
|
|
27
|
+
}
|
|
28
|
+
return `
|
|
29
|
+
--local-color-1: ${l[0]};
|
|
30
|
+
--local-color-2: ${l[1]};
|
|
31
|
+
--local-color-3: ${l[2]};
|
|
32
|
+
--local-color-4: ${l[3]};
|
|
33
|
+
--local-color-5: ${l[4]};
|
|
34
|
+
--local-radial-circle: ${s}
|
|
35
|
+
`;
|
|
36
|
+
},
|
|
37
|
+
hexToRgb(e) {
|
|
38
|
+
const t = parseInt(e, 16), i = t >> 16 & 255, o = t >> 8 & 255, a = t & 255;
|
|
39
|
+
return [i, o, a];
|
|
40
|
+
},
|
|
41
|
+
tintColor(e, t) {
|
|
42
|
+
const [i, o, a] = e, r = Math.round(i + (255 - i) * t), n = Math.round(o + (255 - o) * t), s = Math.round(a + (255 - a) * t);
|
|
43
|
+
return [r, n, s];
|
|
44
|
+
},
|
|
45
|
+
isNumber(e) {
|
|
46
|
+
return {
|
|
47
|
+
number: /^[0-9]+$/u
|
|
48
|
+
}.number.test(e);
|
|
49
|
+
},
|
|
50
|
+
getColorTheme(e) {
|
|
51
|
+
return e || (typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-color-scheme: dark)")?.matches ? "dark" : "light" : "dark");
|
|
52
|
+
},
|
|
53
|
+
splitBalance(e) {
|
|
54
|
+
const t = e.split(".");
|
|
55
|
+
return t.length === 2 ? [t[0], t[1]] : ["0", "00"];
|
|
56
|
+
},
|
|
57
|
+
roundNumber(e, t, i) {
|
|
58
|
+
return e.toString().length >= t ? Number(e).toFixed(i) : e;
|
|
59
|
+
},
|
|
60
|
+
formatNumberToLocalString(e, t = 2) {
|
|
61
|
+
return e === void 0 ? "0.00" : typeof e == "number" ? e.toLocaleString("en-US", {
|
|
62
|
+
maximumFractionDigits: t,
|
|
63
|
+
minimumFractionDigits: t
|
|
64
|
+
}) : parseFloat(e).toLocaleString("en-US", {
|
|
65
|
+
maximumFractionDigits: t,
|
|
66
|
+
minimumFractionDigits: t
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
function K(e, t) {
|
|
71
|
+
const { kind: i, elements: o } = t;
|
|
72
|
+
return {
|
|
73
|
+
kind: i,
|
|
74
|
+
elements: o,
|
|
75
|
+
finisher(a) {
|
|
76
|
+
customElements.get(e) || customElements.define(e, a);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function X(e, t) {
|
|
81
|
+
return customElements.get(e) || customElements.define(e, t), t;
|
|
82
|
+
}
|
|
83
|
+
function x(e) {
|
|
84
|
+
return function(i) {
|
|
85
|
+
return typeof i == "function" ? X(e, i) : K(e, i);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @license
|
|
90
|
+
* Copyright 2017 Google LLC
|
|
91
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
92
|
+
*/
|
|
93
|
+
const Z = { attribute: !0, type: String, converter: V, reflect: !1, hasChanged: N }, J = (e = Z, t, i) => {
|
|
94
|
+
const { kind: o, metadata: a } = i;
|
|
95
|
+
let r = globalThis.litPropertyMetadata.get(a);
|
|
96
|
+
if (r === void 0 && globalThis.litPropertyMetadata.set(a, r = /* @__PURE__ */ new Map()), o === "setter" && ((e = Object.create(e)).wrapped = !0), r.set(i.name, e), o === "accessor") {
|
|
97
|
+
const { name: n } = i;
|
|
98
|
+
return { set(s) {
|
|
99
|
+
const l = t.get.call(this);
|
|
100
|
+
t.set.call(this, s), this.requestUpdate(n, l, e);
|
|
101
|
+
}, init(s) {
|
|
102
|
+
return s !== void 0 && this.C(n, void 0, e, s), s;
|
|
103
|
+
} };
|
|
104
|
+
}
|
|
105
|
+
if (o === "setter") {
|
|
106
|
+
const { name: n } = i;
|
|
107
|
+
return function(s) {
|
|
108
|
+
const l = this[n];
|
|
109
|
+
t.call(this, s), this.requestUpdate(n, l, e);
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
throw Error("Unsupported decorator location: " + o);
|
|
113
|
+
};
|
|
114
|
+
function c(e) {
|
|
115
|
+
return (t, i) => typeof i == "object" ? J(e, t, i) : ((o, a, r) => {
|
|
116
|
+
const n = a.hasOwnProperty(r);
|
|
117
|
+
return a.constructor.createProperty(r, o), n ? Object.getOwnPropertyDescriptor(a, r) : void 0;
|
|
118
|
+
})(e, t, i);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* @license
|
|
122
|
+
* Copyright 2017 Google LLC
|
|
123
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
124
|
+
*/
|
|
125
|
+
function bt(e) {
|
|
126
|
+
return c({ ...e, state: !0, attribute: !1 });
|
|
127
|
+
}
|
|
128
|
+
const Q = b`
|
|
129
|
+
:host {
|
|
130
|
+
display: flex;
|
|
131
|
+
width: inherit;
|
|
132
|
+
height: inherit;
|
|
133
|
+
}
|
|
134
|
+
`;
|
|
135
|
+
var h = function(e, t, i, o) {
|
|
136
|
+
var a = arguments.length, r = a < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, i) : o, n;
|
|
137
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(e, t, i, o);
|
|
138
|
+
else for (var s = e.length - 1; s >= 0; s--) (n = e[s]) && (r = (a < 3 ? n(r) : a > 3 ? n(t, i, r) : n(t, i)) || r);
|
|
139
|
+
return a > 3 && r && Object.defineProperty(t, i, r), r;
|
|
140
|
+
};
|
|
141
|
+
let u = class extends S {
|
|
142
|
+
render() {
|
|
143
|
+
return this.style.cssText = `
|
|
144
|
+
flex-direction: ${this.flexDirection};
|
|
145
|
+
flex-wrap: ${this.flexWrap};
|
|
146
|
+
flex-basis: ${this.flexBasis};
|
|
147
|
+
flex-grow: ${this.flexGrow};
|
|
148
|
+
flex-shrink: ${this.flexShrink};
|
|
149
|
+
align-items: ${this.alignItems};
|
|
150
|
+
justify-content: ${this.justifyContent};
|
|
151
|
+
column-gap: ${this.columnGap && `var(--wui-spacing-${this.columnGap})`};
|
|
152
|
+
row-gap: ${this.rowGap && `var(--wui-spacing-${this.rowGap})`};
|
|
153
|
+
gap: ${this.gap && `var(--wui-spacing-${this.gap})`};
|
|
154
|
+
padding-top: ${this.padding && w.getSpacingStyles(this.padding, 0)};
|
|
155
|
+
padding-right: ${this.padding && w.getSpacingStyles(this.padding, 1)};
|
|
156
|
+
padding-bottom: ${this.padding && w.getSpacingStyles(this.padding, 2)};
|
|
157
|
+
padding-left: ${this.padding && w.getSpacingStyles(this.padding, 3)};
|
|
158
|
+
margin-top: ${this.margin && w.getSpacingStyles(this.margin, 0)};
|
|
159
|
+
margin-right: ${this.margin && w.getSpacingStyles(this.margin, 1)};
|
|
160
|
+
margin-bottom: ${this.margin && w.getSpacingStyles(this.margin, 2)};
|
|
161
|
+
margin-left: ${this.margin && w.getSpacingStyles(this.margin, 3)};
|
|
162
|
+
`, m`<slot></slot>`;
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
u.styles = [$, Q];
|
|
166
|
+
h([
|
|
167
|
+
c()
|
|
168
|
+
], u.prototype, "flexDirection", void 0);
|
|
169
|
+
h([
|
|
170
|
+
c()
|
|
171
|
+
], u.prototype, "flexWrap", void 0);
|
|
172
|
+
h([
|
|
173
|
+
c()
|
|
174
|
+
], u.prototype, "flexBasis", void 0);
|
|
175
|
+
h([
|
|
176
|
+
c()
|
|
177
|
+
], u.prototype, "flexGrow", void 0);
|
|
178
|
+
h([
|
|
179
|
+
c()
|
|
180
|
+
], u.prototype, "flexShrink", void 0);
|
|
181
|
+
h([
|
|
182
|
+
c()
|
|
183
|
+
], u.prototype, "alignItems", void 0);
|
|
184
|
+
h([
|
|
185
|
+
c()
|
|
186
|
+
], u.prototype, "justifyContent", void 0);
|
|
187
|
+
h([
|
|
188
|
+
c()
|
|
189
|
+
], u.prototype, "columnGap", void 0);
|
|
190
|
+
h([
|
|
191
|
+
c()
|
|
192
|
+
], u.prototype, "rowGap", void 0);
|
|
193
|
+
h([
|
|
194
|
+
c()
|
|
195
|
+
], u.prototype, "gap", void 0);
|
|
196
|
+
h([
|
|
197
|
+
c()
|
|
198
|
+
], u.prototype, "padding", void 0);
|
|
199
|
+
h([
|
|
200
|
+
c()
|
|
201
|
+
], u.prototype, "margin", void 0);
|
|
202
|
+
u = h([
|
|
203
|
+
x("wui-flex")
|
|
204
|
+
], u);
|
|
205
|
+
/**
|
|
206
|
+
* @license
|
|
207
|
+
* Copyright 2018 Google LLC
|
|
208
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
209
|
+
*/
|
|
210
|
+
const St = (e) => e ?? q;
|
|
211
|
+
/**
|
|
212
|
+
* @license
|
|
213
|
+
* Copyright 2020 Google LLC
|
|
214
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
215
|
+
*/
|
|
216
|
+
const tt = (e) => e === null || typeof e != "object" && typeof e != "function", et = (e) => e.strings === void 0;
|
|
217
|
+
/**
|
|
218
|
+
* @license
|
|
219
|
+
* Copyright 2017 Google LLC
|
|
220
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
221
|
+
*/
|
|
222
|
+
const E = { ATTRIBUTE: 1, CHILD: 2 }, H = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
|
223
|
+
let F = class {
|
|
224
|
+
constructor(t) {
|
|
225
|
+
}
|
|
226
|
+
get _$AU() {
|
|
227
|
+
return this._$AM._$AU;
|
|
228
|
+
}
|
|
229
|
+
_$AT(t, i, o) {
|
|
230
|
+
this._$Ct = t, this._$AM = i, this._$Ci = o;
|
|
231
|
+
}
|
|
232
|
+
_$AS(t, i) {
|
|
233
|
+
return this.update(t, i);
|
|
234
|
+
}
|
|
235
|
+
update(t, i) {
|
|
236
|
+
return this.render(...i);
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
/**
|
|
240
|
+
* @license
|
|
241
|
+
* Copyright 2017 Google LLC
|
|
242
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
243
|
+
*/
|
|
244
|
+
const _ = (e, t) => {
|
|
245
|
+
const i = e._$AN;
|
|
246
|
+
if (i === void 0) return !1;
|
|
247
|
+
for (const o of i) o._$AO?.(t, !1), _(o, t);
|
|
248
|
+
return !0;
|
|
249
|
+
}, T = (e) => {
|
|
250
|
+
let t, i;
|
|
251
|
+
do {
|
|
252
|
+
if ((t = e._$AM) === void 0) break;
|
|
253
|
+
i = t._$AN, i.delete(e), e = t;
|
|
254
|
+
} while (i?.size === 0);
|
|
255
|
+
}, G = (e) => {
|
|
256
|
+
for (let t; t = e._$AM; e = t) {
|
|
257
|
+
let i = t._$AN;
|
|
258
|
+
if (i === void 0) t._$AN = i = /* @__PURE__ */ new Set();
|
|
259
|
+
else if (i.has(e)) break;
|
|
260
|
+
i.add(e), rt(t);
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
function it(e) {
|
|
264
|
+
this._$AN !== void 0 ? (T(this), this._$AM = e, G(this)) : this._$AM = e;
|
|
265
|
+
}
|
|
266
|
+
function ot(e, t = !1, i = 0) {
|
|
267
|
+
const o = this._$AH, a = this._$AN;
|
|
268
|
+
if (a !== void 0 && a.size !== 0) if (t) if (Array.isArray(o)) for (let r = i; r < o.length; r++) _(o[r], !1), T(o[r]);
|
|
269
|
+
else o != null && (_(o, !1), T(o));
|
|
270
|
+
else _(this, e);
|
|
271
|
+
}
|
|
272
|
+
const rt = (e) => {
|
|
273
|
+
e.type == E.CHILD && (e._$AP ??= ot, e._$AQ ??= it);
|
|
274
|
+
};
|
|
275
|
+
class at extends F {
|
|
276
|
+
constructor() {
|
|
277
|
+
super(...arguments), this._$AN = void 0;
|
|
278
|
+
}
|
|
279
|
+
_$AT(t, i, o) {
|
|
280
|
+
super._$AT(t, i, o), G(this), this.isConnected = t._$AU;
|
|
281
|
+
}
|
|
282
|
+
_$AO(t, i = !0) {
|
|
283
|
+
t !== this.isConnected && (this.isConnected = t, t ? this.reconnected?.() : this.disconnected?.()), i && (_(this, t), T(this));
|
|
284
|
+
}
|
|
285
|
+
setValue(t) {
|
|
286
|
+
if (et(this._$Ct)) this._$Ct._$AI(t, this);
|
|
287
|
+
else {
|
|
288
|
+
const i = [...this._$Ct._$AH];
|
|
289
|
+
i[this._$Ci] = t, this._$Ct._$AI(i, this, 0);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
disconnected() {
|
|
293
|
+
}
|
|
294
|
+
reconnected() {
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* @license
|
|
299
|
+
* Copyright 2021 Google LLC
|
|
300
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
301
|
+
*/
|
|
302
|
+
class nt {
|
|
303
|
+
constructor(t) {
|
|
304
|
+
this.G = t;
|
|
305
|
+
}
|
|
306
|
+
disconnect() {
|
|
307
|
+
this.G = void 0;
|
|
308
|
+
}
|
|
309
|
+
reconnect(t) {
|
|
310
|
+
this.G = t;
|
|
311
|
+
}
|
|
312
|
+
deref() {
|
|
313
|
+
return this.G;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
class st {
|
|
317
|
+
constructor() {
|
|
318
|
+
this.Y = void 0, this.Z = void 0;
|
|
319
|
+
}
|
|
320
|
+
get() {
|
|
321
|
+
return this.Y;
|
|
322
|
+
}
|
|
323
|
+
pause() {
|
|
324
|
+
this.Y ??= new Promise(((t) => this.Z = t));
|
|
325
|
+
}
|
|
326
|
+
resume() {
|
|
327
|
+
this.Z?.(), this.Y = this.Z = void 0;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* @license
|
|
332
|
+
* Copyright 2017 Google LLC
|
|
333
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
334
|
+
*/
|
|
335
|
+
const M = (e) => !tt(e) && typeof e.then == "function", D = 1073741823;
|
|
336
|
+
class ct extends at {
|
|
337
|
+
constructor() {
|
|
338
|
+
super(...arguments), this._$Cwt = D, this._$Cbt = [], this._$CK = new nt(this), this._$CX = new st();
|
|
339
|
+
}
|
|
340
|
+
render(...t) {
|
|
341
|
+
return t.find(((i) => !M(i))) ?? B;
|
|
342
|
+
}
|
|
343
|
+
update(t, i) {
|
|
344
|
+
const o = this._$Cbt;
|
|
345
|
+
let a = o.length;
|
|
346
|
+
this._$Cbt = i;
|
|
347
|
+
const r = this._$CK, n = this._$CX;
|
|
348
|
+
this.isConnected || this.disconnected();
|
|
349
|
+
for (let s = 0; s < i.length && !(s > this._$Cwt); s++) {
|
|
350
|
+
const l = i[s];
|
|
351
|
+
if (!M(l)) return this._$Cwt = s, l;
|
|
352
|
+
s < a && l === o[s] || (this._$Cwt = D, a = 0, Promise.resolve(l).then((async (d) => {
|
|
353
|
+
for (; n.get(); ) await n.get();
|
|
354
|
+
const g = r.deref();
|
|
355
|
+
if (g !== void 0) {
|
|
356
|
+
const P = g._$Cbt.indexOf(l);
|
|
357
|
+
P > -1 && P < g._$Cwt && (g._$Cwt = P, g.setValue(d));
|
|
358
|
+
}
|
|
359
|
+
})));
|
|
360
|
+
}
|
|
361
|
+
return B;
|
|
362
|
+
}
|
|
363
|
+
disconnected() {
|
|
364
|
+
this._$CK.disconnect(), this._$CX.pause();
|
|
365
|
+
}
|
|
366
|
+
reconnected() {
|
|
367
|
+
this._$CK.reconnect(this), this._$CX.resume();
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
const lt = H(ct);
|
|
371
|
+
class ut {
|
|
372
|
+
constructor() {
|
|
373
|
+
this.cache = /* @__PURE__ */ new Map();
|
|
374
|
+
}
|
|
375
|
+
set(t, i) {
|
|
376
|
+
this.cache.set(t, i);
|
|
377
|
+
}
|
|
378
|
+
get(t) {
|
|
379
|
+
return this.cache.get(t);
|
|
380
|
+
}
|
|
381
|
+
has(t) {
|
|
382
|
+
return this.cache.has(t);
|
|
383
|
+
}
|
|
384
|
+
delete(t) {
|
|
385
|
+
this.cache.delete(t);
|
|
386
|
+
}
|
|
387
|
+
clear() {
|
|
388
|
+
this.cache.clear();
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
const O = new ut(), ht = b`
|
|
392
|
+
:host {
|
|
393
|
+
display: flex;
|
|
394
|
+
aspect-ratio: var(--local-aspect-ratio);
|
|
395
|
+
color: var(--local-color);
|
|
396
|
+
width: var(--local-width);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
svg {
|
|
400
|
+
width: inherit;
|
|
401
|
+
height: inherit;
|
|
402
|
+
object-fit: contain;
|
|
403
|
+
object-position: center;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.fallback {
|
|
407
|
+
width: var(--local-width);
|
|
408
|
+
height: var(--local-height);
|
|
409
|
+
}
|
|
410
|
+
`;
|
|
411
|
+
var j = function(e, t, i, o) {
|
|
412
|
+
var a = arguments.length, r = a < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, i) : o, n;
|
|
413
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(e, t, i, o);
|
|
414
|
+
else for (var s = e.length - 1; s >= 0; s--) (n = e[s]) && (r = (a < 3 ? n(r) : a > 3 ? n(t, i, r) : n(t, i)) || r);
|
|
415
|
+
return a > 3 && r && Object.defineProperty(t, i, r), r;
|
|
416
|
+
};
|
|
417
|
+
const U = {
|
|
418
|
+
add: async () => (await import("./add-BaaFGpjE.mjs")).addSvg,
|
|
419
|
+
allWallets: async () => (await import("./all-wallets-C4glPyDd.mjs")).allWalletsSvg,
|
|
420
|
+
arrowBottomCircle: async () => (await import("./arrow-bottom-circle-DR_QyRKh.mjs")).arrowBottomCircleSvg,
|
|
421
|
+
appStore: async () => (await import("./app-store-D83eAZij.mjs")).appStoreSvg,
|
|
422
|
+
apple: async () => (await import("./apple-D-am83__.mjs")).appleSvg,
|
|
423
|
+
arrowBottom: async () => (await import("./arrow-bottom-Br5TDvbL.mjs")).arrowBottomSvg,
|
|
424
|
+
arrowLeft: async () => (await import("./arrow-left-DVYN58EU.mjs")).arrowLeftSvg,
|
|
425
|
+
arrowRight: async () => (await import("./arrow-right-CyzEFMvr.mjs")).arrowRightSvg,
|
|
426
|
+
arrowTop: async () => (await import("./arrow-top-jqA3K6Zg.mjs")).arrowTopSvg,
|
|
427
|
+
bank: async () => (await import("./bank-ByHNwpc3.mjs")).bankSvg,
|
|
428
|
+
browser: async () => (await import("./browser-ySWxlHoa.mjs")).browserSvg,
|
|
429
|
+
card: async () => (await import("./card-CRN66uYO.mjs")).cardSvg,
|
|
430
|
+
checkmark: async () => (await import("./checkmark-B326mymW.mjs")).checkmarkSvg,
|
|
431
|
+
checkmarkBold: async () => (await import("./checkmark-bold-CZsJD2Gr.mjs")).checkmarkBoldSvg,
|
|
432
|
+
chevronBottom: async () => (await import("./chevron-bottom-DkZc5wTP.mjs")).chevronBottomSvg,
|
|
433
|
+
chevronLeft: async () => (await import("./chevron-left-o4mMwB-E.mjs")).chevronLeftSvg,
|
|
434
|
+
chevronRight: async () => (await import("./chevron-right-DkxYecAn.mjs")).chevronRightSvg,
|
|
435
|
+
chevronTop: async () => (await import("./chevron-top-CmqtU-3t.mjs")).chevronTopSvg,
|
|
436
|
+
chromeStore: async () => (await import("./chrome-store-BiNhwxXr.mjs")).chromeStoreSvg,
|
|
437
|
+
clock: async () => (await import("./clock-Ca5tol9L.mjs")).clockSvg,
|
|
438
|
+
close: async () => (await import("./close-DiXtNp7Z.mjs")).closeSvg,
|
|
439
|
+
compass: async () => (await import("./compass-BeTMfz74.mjs")).compassSvg,
|
|
440
|
+
coinPlaceholder: async () => (await import("./coinPlaceholder-3mnOUj7X.mjs")).coinPlaceholderSvg,
|
|
441
|
+
copy: async () => (await import("./copy-Dsf3uZQO.mjs")).copySvg,
|
|
442
|
+
cursor: async () => (await import("./cursor-BdwdNQbq.mjs")).cursorSvg,
|
|
443
|
+
cursorTransparent: async () => (await import("./cursor-transparent-BQbUy-MI.mjs")).cursorTransparentSvg,
|
|
444
|
+
desktop: async () => (await import("./desktop-CZMhBJFb.mjs")).desktopSvg,
|
|
445
|
+
disconnect: async () => (await import("./disconnect-DLhBZUoq.mjs")).disconnectSvg,
|
|
446
|
+
discord: async () => (await import("./discord-CdM4DmVY.mjs")).discordSvg,
|
|
447
|
+
etherscan: async () => (await import("./etherscan-DRQI7jsG.mjs")).etherscanSvg,
|
|
448
|
+
extension: async () => (await import("./extension-aejRiJF7.mjs")).extensionSvg,
|
|
449
|
+
externalLink: async () => (await import("./external-link-oWHbY6ff.mjs")).externalLinkSvg,
|
|
450
|
+
facebook: async () => (await import("./facebook-FUrhPDsl.mjs")).facebookSvg,
|
|
451
|
+
farcaster: async () => (await import("./farcaster-fPZEqZwK.mjs")).farcasterSvg,
|
|
452
|
+
filters: async () => (await import("./filters-B1xTGafV.mjs")).filtersSvg,
|
|
453
|
+
github: async () => (await import("./github-Dp4K2Czx.mjs")).githubSvg,
|
|
454
|
+
google: async () => (await import("./google-ub7aEPpV.mjs")).googleSvg,
|
|
455
|
+
helpCircle: async () => (await import("./help-circle-BY3olasE.mjs")).helpCircleSvg,
|
|
456
|
+
image: async () => (await import("./image-D4ynYkwO.mjs")).imageSvg,
|
|
457
|
+
id: async () => (await import("./id-CcbGN1gV.mjs")).idSvg,
|
|
458
|
+
infoCircle: async () => (await import("./info-circle-CwTrbHls.mjs")).infoCircleSvg,
|
|
459
|
+
lightbulb: async () => (await import("./lightbulb-1S-xUrVG.mjs")).lightbulbSvg,
|
|
460
|
+
mail: async () => (await import("./mail-Bx6EPzBz.mjs")).mailSvg,
|
|
461
|
+
mobile: async () => (await import("./mobile-B8-sJxpC.mjs")).mobileSvg,
|
|
462
|
+
more: async () => (await import("./more-B6z1a_a4.mjs")).moreSvg,
|
|
463
|
+
networkPlaceholder: async () => (await import("./network-placeholder-Q6vZ0clE.mjs")).networkPlaceholderSvg,
|
|
464
|
+
nftPlaceholder: async () => (await import("./nftPlaceholder-DaWpsRwT.mjs")).nftPlaceholderSvg,
|
|
465
|
+
off: async () => (await import("./off-CoEljpqo.mjs")).offSvg,
|
|
466
|
+
playStore: async () => (await import("./play-store-CwE3M0eU.mjs")).playStoreSvg,
|
|
467
|
+
plus: async () => (await import("./plus-1bFJ_g6P.mjs")).plusSvg,
|
|
468
|
+
qrCode: async () => (await import("./qr-code-tlhzSQ7q.mjs")).qrCodeIcon,
|
|
469
|
+
recycleHorizontal: async () => (await import("./recycle-horizontal-DVabIaNj.mjs")).recycleHorizontalSvg,
|
|
470
|
+
refresh: async () => (await import("./refresh-BEzHm0St.mjs")).refreshSvg,
|
|
471
|
+
search: async () => (await import("./search-BQm4fL3J.mjs")).searchSvg,
|
|
472
|
+
send: async () => (await import("./send-B3VoVme5.mjs")).sendSvg,
|
|
473
|
+
swapHorizontal: async () => (await import("./swapHorizontal-CX4jGdb-.mjs")).swapHorizontalSvg,
|
|
474
|
+
swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-DB47Xtfo.mjs")).swapHorizontalMediumSvg,
|
|
475
|
+
swapHorizontalBold: async () => (await import("./swapHorizontalBold-BOgCYVbo.mjs")).swapHorizontalBoldSvg,
|
|
476
|
+
swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-DlQi9SKq.mjs")).swapHorizontalRoundedBoldSvg,
|
|
477
|
+
swapVertical: async () => (await import("./swapVertical-0hWEwQ-0.mjs")).swapVerticalSvg,
|
|
478
|
+
telegram: async () => (await import("./telegram-Cv_JwtKa.mjs")).telegramSvg,
|
|
479
|
+
threeDots: async () => (await import("./three-dots-BB9sWThR.mjs")).threeDotsSvg,
|
|
480
|
+
twitch: async () => (await import("./twitch-rc6Nwqz3.mjs")).twitchSvg,
|
|
481
|
+
twitter: async () => (await import("./x-BS4s0iBO.mjs")).xSvg,
|
|
482
|
+
twitterIcon: async () => (await import("./twitterIcon-C0_NYbu8.mjs")).twitterIconSvg,
|
|
483
|
+
verify: async () => (await import("./verify-DOiQmnqA.mjs")).verifySvg,
|
|
484
|
+
verifyFilled: async () => (await import("./verify-filled-BBBQPsk8.mjs")).verifyFilledSvg,
|
|
485
|
+
wallet: async () => (await import("./wallet-ERpC7VYY.mjs")).walletSvg,
|
|
486
|
+
walletConnect: async () => (await import("./walletconnect-np7_TJtf.mjs")).walletConnectSvg,
|
|
487
|
+
walletConnectLightBrown: async () => (await import("./walletconnect-np7_TJtf.mjs")).walletConnectLightBrownSvg,
|
|
488
|
+
walletConnectBrown: async () => (await import("./walletconnect-np7_TJtf.mjs")).walletConnectBrownSvg,
|
|
489
|
+
walletPlaceholder: async () => (await import("./wallet-placeholder-ClAlPjuC.mjs")).walletPlaceholderSvg,
|
|
490
|
+
warningCircle: async () => (await import("./warning-circle-D-7HoIeW.mjs")).warningCircleSvg,
|
|
491
|
+
x: async () => (await import("./x-BS4s0iBO.mjs")).xSvg,
|
|
492
|
+
info: async () => (await import("./info-DeimbgLd.mjs")).infoSvg,
|
|
493
|
+
exclamationTriangle: async () => (await import("./exclamation-triangle-C5nhoqtz.mjs")).exclamationTriangleSvg,
|
|
494
|
+
reown: async () => (await import("./reown-logo-ZGeC-Zjq.mjs")).reownSvg
|
|
495
|
+
};
|
|
496
|
+
async function pt(e) {
|
|
497
|
+
if (O.has(e))
|
|
498
|
+
return O.get(e);
|
|
499
|
+
const i = (U[e] ?? U.copy)();
|
|
500
|
+
return O.set(e, i), i;
|
|
501
|
+
}
|
|
502
|
+
let v = class extends S {
|
|
503
|
+
constructor() {
|
|
504
|
+
super(...arguments), this.size = "md", this.name = "copy", this.color = "fg-300", this.aspectRatio = "1 / 1";
|
|
505
|
+
}
|
|
506
|
+
render() {
|
|
507
|
+
return this.style.cssText = `
|
|
508
|
+
--local-color: ${`var(--wui-color-${this.color});`}
|
|
509
|
+
--local-width: ${`var(--wui-icon-size-${this.size});`}
|
|
510
|
+
--local-aspect-ratio: ${this.aspectRatio}
|
|
511
|
+
`, m`${lt(pt(this.name), m`<div class="fallback"></div>`)}`;
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
v.styles = [$, W, ht];
|
|
515
|
+
j([
|
|
516
|
+
c()
|
|
517
|
+
], v.prototype, "size", void 0);
|
|
518
|
+
j([
|
|
519
|
+
c()
|
|
520
|
+
], v.prototype, "name", void 0);
|
|
521
|
+
j([
|
|
522
|
+
c()
|
|
523
|
+
], v.prototype, "color", void 0);
|
|
524
|
+
j([
|
|
525
|
+
c()
|
|
526
|
+
], v.prototype, "aspectRatio", void 0);
|
|
527
|
+
v = j([
|
|
528
|
+
x("wui-icon")
|
|
529
|
+
], v);
|
|
530
|
+
/**
|
|
531
|
+
* @license
|
|
532
|
+
* Copyright 2018 Google LLC
|
|
533
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
534
|
+
*/
|
|
535
|
+
const dt = H(class extends F {
|
|
536
|
+
constructor(e) {
|
|
537
|
+
if (super(e), e.type !== E.ATTRIBUTE || e.name !== "class" || e.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
538
|
+
}
|
|
539
|
+
render(e) {
|
|
540
|
+
return " " + Object.keys(e).filter(((t) => e[t])).join(" ") + " ";
|
|
541
|
+
}
|
|
542
|
+
update(e, [t]) {
|
|
543
|
+
if (this.st === void 0) {
|
|
544
|
+
this.st = /* @__PURE__ */ new Set(), e.strings !== void 0 && (this.nt = new Set(e.strings.join(" ").split(/\s/).filter(((o) => o !== ""))));
|
|
545
|
+
for (const o in t) t[o] && !this.nt?.has(o) && this.st.add(o);
|
|
546
|
+
return this.render(t);
|
|
547
|
+
}
|
|
548
|
+
const i = e.element.classList;
|
|
549
|
+
for (const o of this.st) o in t || (i.remove(o), this.st.delete(o));
|
|
550
|
+
for (const o in t) {
|
|
551
|
+
const a = !!t[o];
|
|
552
|
+
a === this.st.has(o) || this.nt?.has(o) || (a ? (i.add(o), this.st.add(o)) : (i.remove(o), this.st.delete(o)));
|
|
553
|
+
}
|
|
554
|
+
return B;
|
|
555
|
+
}
|
|
556
|
+
}), gt = b`
|
|
557
|
+
:host {
|
|
558
|
+
display: inline-flex !important;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
slot {
|
|
562
|
+
width: 100%;
|
|
563
|
+
display: inline-block;
|
|
564
|
+
font-style: normal;
|
|
565
|
+
font-family: var(--wui-font-family);
|
|
566
|
+
font-feature-settings:
|
|
567
|
+
'tnum' on,
|
|
568
|
+
'lnum' on,
|
|
569
|
+
'case' on;
|
|
570
|
+
line-height: 130%;
|
|
571
|
+
font-weight: var(--wui-font-weight-regular);
|
|
572
|
+
overflow: inherit;
|
|
573
|
+
text-overflow: inherit;
|
|
574
|
+
text-align: var(--local-align);
|
|
575
|
+
color: var(--local-color);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.wui-line-clamp-1 {
|
|
579
|
+
overflow: hidden;
|
|
580
|
+
display: -webkit-box;
|
|
581
|
+
-webkit-box-orient: vertical;
|
|
582
|
+
-webkit-line-clamp: 1;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.wui-line-clamp-2 {
|
|
586
|
+
overflow: hidden;
|
|
587
|
+
display: -webkit-box;
|
|
588
|
+
-webkit-box-orient: vertical;
|
|
589
|
+
-webkit-line-clamp: 2;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.wui-font-medium-400 {
|
|
593
|
+
font-size: var(--wui-font-size-medium);
|
|
594
|
+
font-weight: var(--wui-font-weight-light);
|
|
595
|
+
letter-spacing: var(--wui-letter-spacing-medium);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.wui-font-medium-600 {
|
|
599
|
+
font-size: var(--wui-font-size-medium);
|
|
600
|
+
letter-spacing: var(--wui-letter-spacing-medium);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
.wui-font-title-600 {
|
|
604
|
+
font-size: var(--wui-font-size-title);
|
|
605
|
+
letter-spacing: var(--wui-letter-spacing-title);
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.wui-font-title-6-600 {
|
|
609
|
+
font-size: var(--wui-font-size-title-6);
|
|
610
|
+
letter-spacing: var(--wui-letter-spacing-title-6);
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.wui-font-mini-700 {
|
|
614
|
+
font-size: var(--wui-font-size-mini);
|
|
615
|
+
letter-spacing: var(--wui-letter-spacing-mini);
|
|
616
|
+
text-transform: uppercase;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.wui-font-large-500,
|
|
620
|
+
.wui-font-large-600,
|
|
621
|
+
.wui-font-large-700 {
|
|
622
|
+
font-size: var(--wui-font-size-large);
|
|
623
|
+
letter-spacing: var(--wui-letter-spacing-large);
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.wui-font-2xl-500,
|
|
627
|
+
.wui-font-2xl-600,
|
|
628
|
+
.wui-font-2xl-700 {
|
|
629
|
+
font-size: var(--wui-font-size-2xl);
|
|
630
|
+
letter-spacing: var(--wui-letter-spacing-2xl);
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.wui-font-paragraph-400,
|
|
634
|
+
.wui-font-paragraph-500,
|
|
635
|
+
.wui-font-paragraph-600,
|
|
636
|
+
.wui-font-paragraph-700 {
|
|
637
|
+
font-size: var(--wui-font-size-paragraph);
|
|
638
|
+
letter-spacing: var(--wui-letter-spacing-paragraph);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.wui-font-small-400,
|
|
642
|
+
.wui-font-small-500,
|
|
643
|
+
.wui-font-small-600 {
|
|
644
|
+
font-size: var(--wui-font-size-small);
|
|
645
|
+
letter-spacing: var(--wui-letter-spacing-small);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.wui-font-tiny-400,
|
|
649
|
+
.wui-font-tiny-500,
|
|
650
|
+
.wui-font-tiny-600 {
|
|
651
|
+
font-size: var(--wui-font-size-tiny);
|
|
652
|
+
letter-spacing: var(--wui-letter-spacing-tiny);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.wui-font-micro-700,
|
|
656
|
+
.wui-font-micro-600 {
|
|
657
|
+
font-size: var(--wui-font-size-micro);
|
|
658
|
+
letter-spacing: var(--wui-letter-spacing-micro);
|
|
659
|
+
text-transform: uppercase;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.wui-font-tiny-400,
|
|
663
|
+
.wui-font-small-400,
|
|
664
|
+
.wui-font-medium-400,
|
|
665
|
+
.wui-font-paragraph-400 {
|
|
666
|
+
font-weight: var(--wui-font-weight-light);
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.wui-font-large-700,
|
|
670
|
+
.wui-font-paragraph-700,
|
|
671
|
+
.wui-font-micro-700,
|
|
672
|
+
.wui-font-mini-700 {
|
|
673
|
+
font-weight: var(--wui-font-weight-bold);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.wui-font-medium-600,
|
|
677
|
+
.wui-font-medium-title-600,
|
|
678
|
+
.wui-font-title-6-600,
|
|
679
|
+
.wui-font-large-600,
|
|
680
|
+
.wui-font-paragraph-600,
|
|
681
|
+
.wui-font-small-600,
|
|
682
|
+
.wui-font-tiny-600,
|
|
683
|
+
.wui-font-micro-600 {
|
|
684
|
+
font-weight: var(--wui-font-weight-medium);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
:host([disabled]) {
|
|
688
|
+
opacity: 0.4;
|
|
689
|
+
}
|
|
690
|
+
`;
|
|
691
|
+
var R = function(e, t, i, o) {
|
|
692
|
+
var a = arguments.length, r = a < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, i) : o, n;
|
|
693
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(e, t, i, o);
|
|
694
|
+
else for (var s = e.length - 1; s >= 0; s--) (n = e[s]) && (r = (a < 3 ? n(r) : a > 3 ? n(t, i, r) : n(t, i)) || r);
|
|
695
|
+
return a > 3 && r && Object.defineProperty(t, i, r), r;
|
|
696
|
+
};
|
|
697
|
+
let y = class extends S {
|
|
698
|
+
constructor() {
|
|
699
|
+
super(...arguments), this.variant = "paragraph-500", this.color = "fg-300", this.align = "left", this.lineClamp = void 0;
|
|
700
|
+
}
|
|
701
|
+
render() {
|
|
702
|
+
const t = {
|
|
703
|
+
[`wui-font-${this.variant}`]: !0,
|
|
704
|
+
[`wui-color-${this.color}`]: !0,
|
|
705
|
+
[`wui-line-clamp-${this.lineClamp}`]: !!this.lineClamp
|
|
706
|
+
};
|
|
707
|
+
return this.style.cssText = `
|
|
708
|
+
--local-align: ${this.align};
|
|
709
|
+
--local-color: var(--wui-color-${this.color});
|
|
710
|
+
`, m`<slot class=${dt(t)}></slot>`;
|
|
711
|
+
}
|
|
712
|
+
};
|
|
713
|
+
y.styles = [$, gt];
|
|
714
|
+
R([
|
|
715
|
+
c()
|
|
716
|
+
], y.prototype, "variant", void 0);
|
|
717
|
+
R([
|
|
718
|
+
c()
|
|
719
|
+
], y.prototype, "color", void 0);
|
|
720
|
+
R([
|
|
721
|
+
c()
|
|
722
|
+
], y.prototype, "align", void 0);
|
|
723
|
+
R([
|
|
724
|
+
c()
|
|
725
|
+
], y.prototype, "lineClamp", void 0);
|
|
726
|
+
y = R([
|
|
727
|
+
x("wui-text")
|
|
728
|
+
], y);
|
|
729
|
+
const ft = b`
|
|
730
|
+
:host {
|
|
731
|
+
display: inline-flex;
|
|
732
|
+
justify-content: center;
|
|
733
|
+
align-items: center;
|
|
734
|
+
position: relative;
|
|
735
|
+
overflow: hidden;
|
|
736
|
+
background-color: var(--wui-color-gray-glass-020);
|
|
737
|
+
border-radius: var(--local-border-radius);
|
|
738
|
+
border: var(--local-border);
|
|
739
|
+
box-sizing: content-box;
|
|
740
|
+
width: var(--local-size);
|
|
741
|
+
height: var(--local-size);
|
|
742
|
+
min-height: var(--local-size);
|
|
743
|
+
min-width: var(--local-size);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
@supports (background: color-mix(in srgb, white 50%, black)) {
|
|
747
|
+
:host {
|
|
748
|
+
background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent);
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
`;
|
|
752
|
+
var f = function(e, t, i, o) {
|
|
753
|
+
var a = arguments.length, r = a < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, i) : o, n;
|
|
754
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(e, t, i, o);
|
|
755
|
+
else for (var s = e.length - 1; s >= 0; s--) (n = e[s]) && (r = (a < 3 ? n(r) : a > 3 ? n(t, i, r) : n(t, i)) || r);
|
|
756
|
+
return a > 3 && r && Object.defineProperty(t, i, r), r;
|
|
757
|
+
};
|
|
758
|
+
let p = class extends S {
|
|
759
|
+
constructor() {
|
|
760
|
+
super(...arguments), this.size = "md", this.backgroundColor = "accent-100", this.iconColor = "accent-100", this.background = "transparent", this.border = !1, this.borderColor = "wui-color-bg-125", this.icon = "copy";
|
|
761
|
+
}
|
|
762
|
+
render() {
|
|
763
|
+
const t = this.iconSize || this.size, i = this.size === "lg", o = this.size === "xl", a = i ? "12%" : "16%", r = i ? "xxs" : o ? "s" : "3xl", n = this.background === "gray", s = this.background === "opaque", l = this.backgroundColor === "accent-100" && s || this.backgroundColor === "success-100" && s || this.backgroundColor === "error-100" && s || this.backgroundColor === "inverse-100" && s;
|
|
764
|
+
let d = `var(--wui-color-${this.backgroundColor})`;
|
|
765
|
+
return l ? d = `var(--wui-icon-box-bg-${this.backgroundColor})` : n && (d = `var(--wui-color-gray-${this.backgroundColor})`), this.style.cssText = `
|
|
766
|
+
--local-bg-value: ${d};
|
|
767
|
+
--local-bg-mix: ${l || n ? "100%" : a};
|
|
768
|
+
--local-border-radius: var(--wui-border-radius-${r});
|
|
769
|
+
--local-size: var(--wui-icon-box-size-${this.size});
|
|
770
|
+
--local-border: ${this.borderColor === "wui-color-bg-125" ? "2px" : "1px"} solid ${this.border ? `var(--${this.borderColor})` : "transparent"}
|
|
771
|
+
`, m` <wui-icon color=${this.iconColor} size=${t} name=${this.icon}></wui-icon> `;
|
|
772
|
+
}
|
|
773
|
+
};
|
|
774
|
+
p.styles = [$, Y, ft];
|
|
775
|
+
f([
|
|
776
|
+
c()
|
|
777
|
+
], p.prototype, "size", void 0);
|
|
778
|
+
f([
|
|
779
|
+
c()
|
|
780
|
+
], p.prototype, "backgroundColor", void 0);
|
|
781
|
+
f([
|
|
782
|
+
c()
|
|
783
|
+
], p.prototype, "iconColor", void 0);
|
|
784
|
+
f([
|
|
785
|
+
c()
|
|
786
|
+
], p.prototype, "iconSize", void 0);
|
|
787
|
+
f([
|
|
788
|
+
c()
|
|
789
|
+
], p.prototype, "background", void 0);
|
|
790
|
+
f([
|
|
791
|
+
c({ type: Boolean })
|
|
792
|
+
], p.prototype, "border", void 0);
|
|
793
|
+
f([
|
|
794
|
+
c()
|
|
795
|
+
], p.prototype, "borderColor", void 0);
|
|
796
|
+
f([
|
|
797
|
+
c()
|
|
798
|
+
], p.prototype, "icon", void 0);
|
|
799
|
+
p = f([
|
|
800
|
+
x("wui-icon-box")
|
|
801
|
+
], p);
|
|
802
|
+
const wt = b`
|
|
803
|
+
:host {
|
|
804
|
+
display: block;
|
|
805
|
+
width: var(--local-width);
|
|
806
|
+
height: var(--local-height);
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
img {
|
|
810
|
+
display: block;
|
|
811
|
+
width: 100%;
|
|
812
|
+
height: 100%;
|
|
813
|
+
object-fit: cover;
|
|
814
|
+
object-position: center center;
|
|
815
|
+
border-radius: inherit;
|
|
816
|
+
}
|
|
817
|
+
`;
|
|
818
|
+
var A = function(e, t, i, o) {
|
|
819
|
+
var a = arguments.length, r = a < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, i) : o, n;
|
|
820
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(e, t, i, o);
|
|
821
|
+
else for (var s = e.length - 1; s >= 0; s--) (n = e[s]) && (r = (a < 3 ? n(r) : a > 3 ? n(t, i, r) : n(t, i)) || r);
|
|
822
|
+
return a > 3 && r && Object.defineProperty(t, i, r), r;
|
|
823
|
+
};
|
|
824
|
+
let C = class extends S {
|
|
825
|
+
constructor() {
|
|
826
|
+
super(...arguments), this.src = "./path/to/image.jpg", this.alt = "Image", this.size = void 0;
|
|
827
|
+
}
|
|
828
|
+
render() {
|
|
829
|
+
return this.style.cssText = `
|
|
830
|
+
--local-width: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
|
|
831
|
+
--local-height: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
|
|
832
|
+
`, m`<img src=${this.src} alt=${this.alt} @error=${this.handleImageError} />`;
|
|
833
|
+
}
|
|
834
|
+
handleImageError() {
|
|
835
|
+
this.dispatchEvent(new CustomEvent("onLoadError", { bubbles: !0, composed: !0 }));
|
|
836
|
+
}
|
|
837
|
+
};
|
|
838
|
+
C.styles = [$, W, wt];
|
|
839
|
+
A([
|
|
840
|
+
c()
|
|
841
|
+
], C.prototype, "src", void 0);
|
|
842
|
+
A([
|
|
843
|
+
c()
|
|
844
|
+
], C.prototype, "alt", void 0);
|
|
845
|
+
A([
|
|
846
|
+
c()
|
|
847
|
+
], C.prototype, "size", void 0);
|
|
848
|
+
C = A([
|
|
849
|
+
x("wui-image")
|
|
850
|
+
], C);
|
|
851
|
+
const mt = b`
|
|
852
|
+
:host {
|
|
853
|
+
display: flex;
|
|
854
|
+
justify-content: center;
|
|
855
|
+
align-items: center;
|
|
856
|
+
height: var(--wui-spacing-m);
|
|
857
|
+
padding: 0 var(--wui-spacing-3xs) !important;
|
|
858
|
+
border-radius: var(--wui-border-radius-5xs);
|
|
859
|
+
transition:
|
|
860
|
+
border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
|
|
861
|
+
background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);
|
|
862
|
+
will-change: border-radius, background-color;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
:host > wui-text {
|
|
866
|
+
transform: translateY(5%);
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
:host([data-variant='main']) {
|
|
870
|
+
background-color: var(--wui-color-accent-glass-015);
|
|
871
|
+
color: var(--wui-color-accent-100);
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
:host([data-variant='shade']) {
|
|
875
|
+
background-color: var(--wui-color-gray-glass-010);
|
|
876
|
+
color: var(--wui-color-fg-200);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
:host([data-variant='success']) {
|
|
880
|
+
background-color: var(--wui-icon-box-bg-success-100);
|
|
881
|
+
color: var(--wui-color-success-100);
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
:host([data-variant='error']) {
|
|
885
|
+
background-color: var(--wui-icon-box-bg-error-100);
|
|
886
|
+
color: var(--wui-color-error-100);
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
:host([data-size='lg']) {
|
|
890
|
+
padding: 11px 5px !important;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
:host([data-size='lg']) > wui-text {
|
|
894
|
+
transform: translateY(2%);
|
|
895
|
+
}
|
|
896
|
+
`;
|
|
897
|
+
var I = function(e, t, i, o) {
|
|
898
|
+
var a = arguments.length, r = a < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, i) : o, n;
|
|
899
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(e, t, i, o);
|
|
900
|
+
else for (var s = e.length - 1; s >= 0; s--) (n = e[s]) && (r = (a < 3 ? n(r) : a > 3 ? n(t, i, r) : n(t, i)) || r);
|
|
901
|
+
return a > 3 && r && Object.defineProperty(t, i, r), r;
|
|
902
|
+
};
|
|
903
|
+
let z = class extends S {
|
|
904
|
+
constructor() {
|
|
905
|
+
super(...arguments), this.variant = "main", this.size = "lg";
|
|
906
|
+
}
|
|
907
|
+
render() {
|
|
908
|
+
this.dataset.variant = this.variant, this.dataset.size = this.size;
|
|
909
|
+
const t = this.size === "md" ? "mini-700" : "micro-700";
|
|
910
|
+
return m`
|
|
911
|
+
<wui-text data-variant=${this.variant} variant=${t} color="inherit">
|
|
912
|
+
<slot></slot>
|
|
913
|
+
</wui-text>
|
|
914
|
+
`;
|
|
915
|
+
}
|
|
916
|
+
};
|
|
917
|
+
z.styles = [$, mt];
|
|
918
|
+
I([
|
|
919
|
+
c()
|
|
920
|
+
], z.prototype, "variant", void 0);
|
|
921
|
+
I([
|
|
922
|
+
c()
|
|
923
|
+
], z.prototype, "size", void 0);
|
|
924
|
+
z = I([
|
|
925
|
+
x("wui-tag")
|
|
926
|
+
], z);
|
|
927
|
+
const vt = b`
|
|
928
|
+
:host {
|
|
929
|
+
display: flex;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
:host([data-size='sm']) > svg {
|
|
933
|
+
width: 12px;
|
|
934
|
+
height: 12px;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
:host([data-size='md']) > svg {
|
|
938
|
+
width: 16px;
|
|
939
|
+
height: 16px;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
:host([data-size='lg']) > svg {
|
|
943
|
+
width: 24px;
|
|
944
|
+
height: 24px;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
:host([data-size='xl']) > svg {
|
|
948
|
+
width: 32px;
|
|
949
|
+
height: 32px;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
svg {
|
|
953
|
+
animation: rotate 2s linear infinite;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
circle {
|
|
957
|
+
fill: none;
|
|
958
|
+
stroke: var(--local-color);
|
|
959
|
+
stroke-width: 4px;
|
|
960
|
+
stroke-dasharray: 1, 124;
|
|
961
|
+
stroke-dashoffset: 0;
|
|
962
|
+
stroke-linecap: round;
|
|
963
|
+
animation: dash 1.5s ease-in-out infinite;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
:host([data-size='md']) > svg > circle {
|
|
967
|
+
stroke-width: 6px;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
:host([data-size='sm']) > svg > circle {
|
|
971
|
+
stroke-width: 8px;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
@keyframes rotate {
|
|
975
|
+
100% {
|
|
976
|
+
transform: rotate(360deg);
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
@keyframes dash {
|
|
981
|
+
0% {
|
|
982
|
+
stroke-dasharray: 1, 124;
|
|
983
|
+
stroke-dashoffset: 0;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
50% {
|
|
987
|
+
stroke-dasharray: 90, 124;
|
|
988
|
+
stroke-dashoffset: -35;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
100% {
|
|
992
|
+
stroke-dashoffset: -125;
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
`;
|
|
996
|
+
var L = function(e, t, i, o) {
|
|
997
|
+
var a = arguments.length, r = a < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, i) : o, n;
|
|
998
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(e, t, i, o);
|
|
999
|
+
else for (var s = e.length - 1; s >= 0; s--) (n = e[s]) && (r = (a < 3 ? n(r) : a > 3 ? n(t, i, r) : n(t, i)) || r);
|
|
1000
|
+
return a > 3 && r && Object.defineProperty(t, i, r), r;
|
|
1001
|
+
};
|
|
1002
|
+
let k = class extends S {
|
|
1003
|
+
constructor() {
|
|
1004
|
+
super(...arguments), this.color = "accent-100", this.size = "lg";
|
|
1005
|
+
}
|
|
1006
|
+
render() {
|
|
1007
|
+
return this.style.cssText = `--local-color: ${this.color === "inherit" ? "inherit" : `var(--wui-color-${this.color})`}`, this.dataset.size = this.size, m`<svg viewBox="25 25 50 50">
|
|
1008
|
+
<circle r="20" cy="50" cx="50"></circle>
|
|
1009
|
+
</svg>`;
|
|
1010
|
+
}
|
|
1011
|
+
};
|
|
1012
|
+
k.styles = [$, vt];
|
|
1013
|
+
L([
|
|
1014
|
+
c()
|
|
1015
|
+
], k.prototype, "color", void 0);
|
|
1016
|
+
L([
|
|
1017
|
+
c()
|
|
1018
|
+
], k.prototype, "size", void 0);
|
|
1019
|
+
k = L([
|
|
1020
|
+
x("wui-loading-spinner")
|
|
1021
|
+
], k);
|
|
1022
|
+
export {
|
|
1023
|
+
w as U,
|
|
1024
|
+
dt as a,
|
|
1025
|
+
x as c,
|
|
1026
|
+
H as e,
|
|
1027
|
+
at as f,
|
|
1028
|
+
c as n,
|
|
1029
|
+
St as o,
|
|
1030
|
+
bt as r
|
|
1031
|
+
};
|