@blockend/widget 1.0.31 → 1.0.33
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/AllRoutes-B04uZfaa.js +2209 -0
- package/dist/Box-BWDJCGbI.js +55 -0
- package/dist/EstGas-QSPrdq3Y.js +12863 -0
- package/dist/Grow-37t11tle.js +1656 -0
- package/dist/InputComp-bKVjlcbT.js +106 -0
- package/dist/LoadRoute-C3vokLk0.js +126 -0
- package/dist/QuotesProgress-DlgLQ2zo.js +28 -0
- package/dist/SwapAsset-tD6wSJDD.js +64 -0
- package/dist/Tooltip-BqYgFn1F.js +572 -0
- package/dist/TxnButton-DefErcCE.js +207 -0
- package/dist/WidgetForm.module-QHJ0-m5f.js +9 -0
- package/dist/{add-B8AfyNIx.js → add-D32G_xKI.js} +3 -3
- package/dist/{all-wallets-BaLLU39i.js → all-wallets-LjjqiTnJ.js} +3 -3
- package/dist/{app-store-DNpoABj1.js → app-store-S7C23kTz.js} +3 -3
- package/dist/{apple-DzzHtaL4.js → apple-DMd4RArz.js} +3 -3
- package/dist/{arrow-bottom-D2c13c51.js → arrow-bottom-C0cVMl2n.js} +3 -3
- package/dist/{arrow-bottom-circle-ls9OCLx1.js → arrow-bottom-circle-veMvHYVR.js} +3 -3
- package/dist/{arrow-left-BI3rQkNI.js → arrow-left-B6VdOxSY.js} +3 -3
- package/dist/{arrow-right-rnMzhVod.js → arrow-right-CyrokJyU.js} +3 -3
- package/dist/{arrow-top-CfA6PVMz.js → arrow-top-S8qh5z92.js} +3 -3
- package/dist/{bank-CmpAmHgg.js → bank-B9ySjxm-.js} +3 -3
- package/dist/basic-BXha5sM_.js +5783 -0
- package/dist/{browser-mEcjgS1H.js → browser-CWmyZDF1.js} +3 -3
- package/dist/{card-DkgIWcMc.js → card-TzoSVbiE.js} +3 -3
- package/dist/ccip-B97isPV8.js +228 -0
- package/dist/{checkmark-B_A013n2.js → checkmark-Be4tNZY8.js} +3 -3
- package/dist/{checkmark-bold-DestuG2T.js → checkmark-bold-sAoooMoy.js} +3 -3
- package/dist/{chevron-bottom-Di3S86dj.js → chevron-bottom-Cdd52Yir.js} +3 -3
- package/dist/{chevron-left-A9Wj-3tj.js → chevron-left-Dp8rM2qD.js} +3 -3
- package/dist/{chevron-right-UFxJogOZ.js → chevron-right-kH3Pgt8h.js} +3 -3
- package/dist/{chevron-top-BbZs3eaC.js → chevron-top-lx-9iWm1.js} +3 -3
- package/dist/{chrome-store-B4F6hJmy.js → chrome-store-BGxPgdkC.js} +3 -3
- package/dist/{clock-BbAQ09uV.js → clock-B3r9UiFY.js} +3 -3
- package/dist/clockIcon-C2W5xvyt.js +76 -0
- package/dist/{close-CY3oZP_D.js → close-Cc6SJ0A9.js} +3 -3
- package/dist/{coinPlaceholder-DpfsobZT.js → coinPlaceholder-DqH2n2v1.js} +3 -3
- package/dist/{compass-CHS7RZFk.js → compass-CiKYczAi.js} +3 -3
- package/dist/{copy-CEd4nGhs.js → copy-DR0dlbF5.js} +3 -3
- package/dist/core-D9oRINim.js +14967 -0
- package/dist/{cursor-transparent-Tm6k6Ws4.js → cursor-transparent-BABlb938.js} +3 -3
- package/dist/cursor-vv-pXAzC.js +7 -0
- package/dist/{desktop-CrSyXZkL.js → desktop-aFWdAU4O.js} +3 -3
- package/dist/{disconnect-BooT10E1.js → disconnect-Cz0MwjuJ.js} +3 -3
- package/dist/{discord-B982Qaml.js → discord-BkNiORDh.js} +3 -3
- package/dist/down-BAe_uoMx.js +606 -0
- package/dist/{etherscan-CFL0IcNl.js → etherscan-4wT3rhj5.js} +3 -3
- package/dist/ethertousd-CC_ezooz.js +6 -0
- package/dist/{exclamation-triangle-BBeGXYgt.js → exclamation-triangle-CSv7sjYs.js} +3 -3
- package/dist/{extension-C5WqJw73.js → extension-B4acJb16.js} +3 -3
- package/dist/{external-link-CcSxVDcd.js → external-link-zFdRyGh8.js} +3 -3
- package/dist/{facebook-DF0v9ED8.js → facebook-D2h4REjy.js} +3 -3
- package/dist/{farcaster-Boq7M4VK.js → farcaster-acRwWMSn.js} +3 -3
- package/dist/{filters-DfeymbPx.js → filters-DE1yHCJy.js} +3 -3
- package/dist/getChainIds-B4BLdhKd.js +1888 -0
- package/dist/getCosmosAddress-BfMdDDaH.js +9565 -0
- package/dist/{github-DQ8FV4bD.js → github-BrCBPjDS.js} +3 -3
- package/dist/{google-Dm8FDDZR.js → google-DYC6Um96.js} +3 -3
- package/dist/hamburger-sg42nvNd.js +3915 -0
- package/dist/{help-circle-CbgiAebR.js → help-circle-CKvIeM4J.js} +3 -3
- package/dist/{id-CzqxUksI.js → id-FXzF1V3L.js} +3 -3
- package/dist/{image-CsCGTIN-.js → image-rOZMtN9o.js} +3 -3
- package/dist/index-B0E-rGOh.js +159 -0
- package/dist/index-B5gV3APh.js +992 -0
- package/dist/index-CDq3vNnP.js +22 -0
- package/dist/index-CIjTGwYH.js +9 -0
- package/dist/index-Cmj3dp3U.js +473 -0
- package/dist/index-DEovHqJS.js +3010 -0
- package/dist/index-DOcwHfd3.js +13583 -0
- package/dist/index-DSlXIHtr.js +28701 -0
- package/dist/index-DTish3yr.js +1014 -0
- package/dist/index-PIAjHNgG.js +18613 -0
- package/dist/index-SiMIoFT9.js +331 -0
- package/dist/index-Y94UWILI.js +1460 -0
- package/dist/index-baetUfmH.js +252 -0
- package/dist/index.es-D6RvS0tB.js +366 -0
- package/dist/index.es-TLoHC_Sf.js +11678 -0
- package/dist/index.es.js +4 -4
- package/dist/{info-circle-Bt350Yzj.js → info-circle-BYfEprqC.js} +3 -3
- package/dist/{info-fKCfLW0k.js → info-dh7qmm_R.js} +3 -3
- package/dist/{lightbulb-BL9YBxiA.js → lightbulb-3S8w5B31.js} +3 -3
- package/dist/{mail-_g6CHQeQ.js → mail-DgcPoOPs.js} +3 -3
- package/dist/{mobile-B-EQ4IcH.js → mobile-C8egRR0V.js} +3 -3
- package/dist/{more-C3rpOdUy.js → more-CU_oPwwY.js} +3 -3
- package/dist/{network-placeholder-D9Ak7Xj_.js → network-placeholder-CqjaxlS7.js} +3 -3
- package/dist/{nftPlaceholder-CIIm2V_o.js → nftPlaceholder-D6mZlZmz.js} +3 -3
- package/dist/{off-DZjgI0eE.js → off-DHeUICx6.js} +3 -3
- package/dist/{play-store-DvRnagoF.js → play-store-DyGxjYv5.js} +3 -3
- package/dist/{plus-C2jN2huZ.js → plus-k4hEdLAH.js} +3 -3
- package/dist/{qr-code-B64HnZgi.js → qr-code-CkavLc0Z.js} +3 -3
- package/dist/{recycle-horizontal-CovcJGa_.js → recycle-horizontal-YzkyX2fY.js} +3 -3
- package/dist/{refresh-J1Vw6QMA.js → refresh-E1vpdqCO.js} +3 -3
- package/dist/{reown-logo-BsXoZ3KT.js → reown-logo-BZbc_-R6.js} +3 -3
- package/dist/{search-BC86wYXR.js → search-B9vQkIsQ.js} +3 -3
- package/dist/{send-BPA1bK5G.js → send-C9ROxhya.js} +3 -3
- package/dist/shareicon-CLveBf8l.js +262 -0
- package/dist/{sortDown-cDA6MpOw.js → sortDown-CjBaDQTU.js} +13 -13
- package/dist/{swapHorizontal-47_8ePle.js → swapHorizontal-BhLDDuiL.js} +3 -3
- package/dist/{swapHorizontalBold-CJ7TzeQP.js → swapHorizontalBold-B1IxJLem.js} +3 -3
- package/dist/{swapHorizontalMedium-CTACgUR9.js → swapHorizontalMedium--fvn_6KH.js} +3 -3
- package/dist/{swapHorizontalRoundedBold-Ht3_LABp.js → swapHorizontalRoundedBold-fZowAp5m.js} +3 -3
- package/dist/{swapVertical-DlS0V6DD.js → swapVertical-CDwndQ4s.js} +3 -3
- package/dist/{telegram-UZ00kvIE.js → telegram-BLbguJ3E.js} +3 -3
- package/dist/{three-dots-D9zVXr1j.js → three-dots-DyIG0Aiq.js} +3 -3
- package/dist/truncate-D9t92mVX.js +7 -0
- package/dist/{twitch-CP6rpz4m.js → twitch-054mPrps.js} +3 -3
- package/dist/{twitterIcon-Cm3I3FRU.js → twitterIcon-DrlgKmas.js} +3 -3
- package/dist/unsupportedProp-Dr6Tadlk.js +10 -0
- package/dist/useRegisterError-C52MuupC.js +9857 -0
- package/dist/validError-CDlJpg_f.js +6 -0
- package/dist/{verify-filled-CfgydKPa.js → verify-filled-Dw1_4VEj.js} +3 -3
- package/dist/{verify-DuUE85WT.js → verify-uz7q7EMX.js} +3 -3
- package/dist/w3m-modal-CJM8um8G.js +1471 -0
- package/dist/{wallet-BC2LSDlF.js → wallet-a9cCMI05.js} +3 -3
- package/dist/{wallet-placeholder-DugEJ7xM.js → wallet-placeholder-Cqiz2_rA.js} +3 -3
- package/dist/{walletconnect-wayCaYfk.js → walletconnect-96twp7MP.js} +7 -9
- package/dist/{warning-circle-Cy9YuvwU.js → warning-circle-C4mV6fIZ.js} +3 -3
- package/dist/{x-jggPFiy-.js → x-vRe7FHUS.js} +3 -3
- package/package.json +7 -19
- package/dist/AllRoutes-Bdi5ZW8W.js +0 -2604
- package/dist/Box-e4gA-y_H.js +0 -60
- package/dist/EstGas-C5ihS0Mw.js +0 -17108
- package/dist/Grow-B4K-I-E-.js +0 -2212
- package/dist/InputComp-C_UUZxNU.js +0 -114
- package/dist/LoadRoute-CnDhVKdh.js +0 -142
- package/dist/QuotesProgress-DxgPgPJE.js +0 -29
- package/dist/SwapAsset-CmmuxeQF.js +0 -65
- package/dist/Tooltip-D8YjOOKU.js +0 -718
- package/dist/TxnButton-CF-TLZrD.js +0 -302
- package/dist/WidgetForm.module-DhUUlwZP.js +0 -13
- package/dist/basic-Cx2xxgd9.js +0 -7109
- package/dist/ccip-BKpquA5i.js +0 -250
- package/dist/clockIcon-jSNFFrLy.js +0 -76
- package/dist/core-C-gr9X18.js +0 -17217
- package/dist/cursor-BTtIlTHP.js +0 -7
- package/dist/down-DDk8OoJG.js +0 -809
- package/dist/ethertousd-BOknTgU4.js +0 -7
- package/dist/getChainIds-6iugk2h0.js +0 -2431
- package/dist/getCosmosAddress-BgD5iV6f.js +0 -13998
- package/dist/hamburger-BYe_G11E.js +0 -4562
- package/dist/index-BAmjBHYR.js +0 -1087
- package/dist/index-BxHeZ9IF.js +0 -543
- package/dist/index-C7cb2O7r.js +0 -16078
- package/dist/index-CF9p4S_X.js +0 -11
- package/dist/index-C_vo1L7p.js +0 -24384
- package/dist/index-Ch7w83dW.js +0 -4217
- package/dist/index-Crhenmgw.js +0 -188
- package/dist/index-Cz5Dosd2.js +0 -412
- package/dist/index-D5OnT-__.js +0 -35858
- package/dist/index-DArR1lwi.js +0 -1759
- package/dist/index-hEJSpZe-.js +0 -308
- package/dist/index-m2O0cbD8.js +0 -1883
- package/dist/index-sLx4Edw4.js +0 -22
- package/dist/index.es-DIbGJsfa.js +0 -475
- package/dist/index.es-t6sHlseh.js +0 -12916
- package/dist/secp256k1-BkBK0mD5.js +0 -1681
- package/dist/shareicon-C88Wx-AM.js +0 -314
- package/dist/truncate-DSxFWEga.js +0 -7
- package/dist/unsupportedProp-DkeDzLfM.js +0 -14
- package/dist/useRegisterError-W_UfecIN.js +0 -19288
- package/dist/validError-rariWQ7G.js +0 -14
- package/dist/w3m-modal-Bl-DPlah.js +0 -1721
package/dist/index-BAmjBHYR.js
DELETED
@@ -1,1087 +0,0 @@
|
|
1
|
-
import { B as f$2, D as u, i as i$3, r as resetStyles, a as i$4, x, n as E, F as T, o as colorStyles, e as elementStyles } from "./core-C-gr9X18.js";
|
2
|
-
const UiHelperUtil = {
|
3
|
-
getSpacingStyles(spacing, index) {
|
4
|
-
if (Array.isArray(spacing)) {
|
5
|
-
return spacing[index] ? `var(--wui-spacing-${spacing[index]})` : void 0;
|
6
|
-
} else if (typeof spacing === "string") {
|
7
|
-
return `var(--wui-spacing-${spacing})`;
|
8
|
-
}
|
9
|
-
return void 0;
|
10
|
-
},
|
11
|
-
getFormattedDate(date) {
|
12
|
-
return new Intl.DateTimeFormat("en-US", { month: "short", day: "numeric" }).format(date);
|
13
|
-
},
|
14
|
-
getHostName(url) {
|
15
|
-
try {
|
16
|
-
const newUrl = new URL(url);
|
17
|
-
return newUrl.hostname;
|
18
|
-
} catch (error) {
|
19
|
-
return "";
|
20
|
-
}
|
21
|
-
},
|
22
|
-
getTruncateString({ string, charsStart, charsEnd, truncate }) {
|
23
|
-
if (string.length <= charsStart + charsEnd) {
|
24
|
-
return string;
|
25
|
-
}
|
26
|
-
if (truncate === "end") {
|
27
|
-
return `${string.substring(0, charsStart)}...`;
|
28
|
-
} else if (truncate === "start") {
|
29
|
-
return `...${string.substring(string.length - charsEnd)}`;
|
30
|
-
}
|
31
|
-
return `${string.substring(0, Math.floor(charsStart))}...${string.substring(string.length - Math.floor(charsEnd))}`;
|
32
|
-
},
|
33
|
-
generateAvatarColors(address) {
|
34
|
-
const hash = address.toLowerCase().replace(/^0x/iu, "").replace(/[^a-f0-9]/gu, "");
|
35
|
-
const baseColor = hash.substring(0, 6).padEnd(6, "0");
|
36
|
-
const rgbColor = this.hexToRgb(baseColor);
|
37
|
-
const masterBorderRadius = getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master");
|
38
|
-
const radius = Number(masterBorderRadius == null ? void 0 : masterBorderRadius.replace("px", ""));
|
39
|
-
const edge = 100 - 3 * radius;
|
40
|
-
const gradientCircle = `${edge}% ${edge}% at 65% 40%`;
|
41
|
-
const colors = [];
|
42
|
-
for (let i3 = 0; i3 < 5; i3 += 1) {
|
43
|
-
const tintedColor = this.tintColor(rgbColor, 0.15 * i3);
|
44
|
-
colors.push(`rgb(${tintedColor[0]}, ${tintedColor[1]}, ${tintedColor[2]})`);
|
45
|
-
}
|
46
|
-
return `
|
47
|
-
--local-color-1: ${colors[0]};
|
48
|
-
--local-color-2: ${colors[1]};
|
49
|
-
--local-color-3: ${colors[2]};
|
50
|
-
--local-color-4: ${colors[3]};
|
51
|
-
--local-color-5: ${colors[4]};
|
52
|
-
--local-radial-circle: ${gradientCircle}
|
53
|
-
`;
|
54
|
-
},
|
55
|
-
hexToRgb(hex) {
|
56
|
-
const bigint = parseInt(hex, 16);
|
57
|
-
const r2 = bigint >> 16 & 255;
|
58
|
-
const g = bigint >> 8 & 255;
|
59
|
-
const b = bigint & 255;
|
60
|
-
return [r2, g, b];
|
61
|
-
},
|
62
|
-
tintColor(rgb, tint) {
|
63
|
-
const [r2, g, b] = rgb;
|
64
|
-
const tintedR = Math.round(r2 + (255 - r2) * tint);
|
65
|
-
const tintedG = Math.round(g + (255 - g) * tint);
|
66
|
-
const tintedB = Math.round(b + (255 - b) * tint);
|
67
|
-
return [tintedR, tintedG, tintedB];
|
68
|
-
},
|
69
|
-
isNumber(character) {
|
70
|
-
const regex = {
|
71
|
-
number: /^[0-9]+$/u
|
72
|
-
};
|
73
|
-
return regex.number.test(character);
|
74
|
-
},
|
75
|
-
getColorTheme(theme) {
|
76
|
-
var _a;
|
77
|
-
if (theme) {
|
78
|
-
return theme;
|
79
|
-
} else if (typeof window !== "undefined" && window.matchMedia) {
|
80
|
-
if ((_a = window.matchMedia("(prefers-color-scheme: dark)")) == null ? void 0 : _a.matches) {
|
81
|
-
return "dark";
|
82
|
-
}
|
83
|
-
return "light";
|
84
|
-
}
|
85
|
-
return "dark";
|
86
|
-
},
|
87
|
-
splitBalance(input) {
|
88
|
-
const parts = input.split(".");
|
89
|
-
if (parts.length === 2) {
|
90
|
-
return [parts[0], parts[1]];
|
91
|
-
}
|
92
|
-
return ["0", "00"];
|
93
|
-
},
|
94
|
-
roundNumber(number, threshold, fixed) {
|
95
|
-
const roundedNumber = number.toString().length >= threshold ? Number(number).toFixed(fixed) : number;
|
96
|
-
return roundedNumber;
|
97
|
-
},
|
98
|
-
formatNumberToLocalString(value, decimals = 2) {
|
99
|
-
if (value === void 0) {
|
100
|
-
return "0.00";
|
101
|
-
}
|
102
|
-
if (typeof value === "number") {
|
103
|
-
return value.toLocaleString("en-US", {
|
104
|
-
maximumFractionDigits: decimals,
|
105
|
-
minimumFractionDigits: decimals
|
106
|
-
});
|
107
|
-
}
|
108
|
-
return parseFloat(value).toLocaleString("en-US", {
|
109
|
-
maximumFractionDigits: decimals,
|
110
|
-
minimumFractionDigits: decimals
|
111
|
-
});
|
112
|
-
}
|
113
|
-
};
|
114
|
-
function standardCustomElement(tagName, descriptor) {
|
115
|
-
const { kind, elements } = descriptor;
|
116
|
-
return {
|
117
|
-
kind,
|
118
|
-
elements,
|
119
|
-
finisher(clazz) {
|
120
|
-
if (!customElements.get(tagName)) {
|
121
|
-
customElements.define(tagName, clazz);
|
122
|
-
}
|
123
|
-
}
|
124
|
-
};
|
125
|
-
}
|
126
|
-
function legacyCustomElement(tagName, clazz) {
|
127
|
-
if (!customElements.get(tagName)) {
|
128
|
-
customElements.define(tagName, clazz);
|
129
|
-
}
|
130
|
-
return clazz;
|
131
|
-
}
|
132
|
-
function customElement(tagName) {
|
133
|
-
return function create(classOrDescriptor) {
|
134
|
-
return typeof classOrDescriptor === "function" ? legacyCustomElement(tagName, classOrDescriptor) : standardCustomElement(tagName, classOrDescriptor);
|
135
|
-
};
|
136
|
-
}
|
137
|
-
const o$2 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f$2 }, r$2 = (t2 = o$2, e2, r2) => {
|
138
|
-
const { kind: n2, metadata: i3 } = r2;
|
139
|
-
let s2 = globalThis.litPropertyMetadata.get(i3);
|
140
|
-
if (void 0 === s2 && globalThis.litPropertyMetadata.set(i3, s2 = /* @__PURE__ */ new Map()), "setter" === n2 && ((t2 = Object.create(t2)).wrapped = true), s2.set(r2.name, t2), "accessor" === n2) {
|
141
|
-
const { name: o2 } = r2;
|
142
|
-
return { set(r3) {
|
143
|
-
const n3 = e2.get.call(this);
|
144
|
-
e2.set.call(this, r3), this.requestUpdate(o2, n3, t2);
|
145
|
-
}, init(e3) {
|
146
|
-
return void 0 !== e3 && this.C(o2, void 0, t2, e3), e3;
|
147
|
-
} };
|
148
|
-
}
|
149
|
-
if ("setter" === n2) {
|
150
|
-
const { name: o2 } = r2;
|
151
|
-
return function(r3) {
|
152
|
-
const n3 = this[o2];
|
153
|
-
e2.call(this, r3), this.requestUpdate(o2, n3, t2);
|
154
|
-
};
|
155
|
-
}
|
156
|
-
throw Error("Unsupported decorator location: " + n2);
|
157
|
-
};
|
158
|
-
function n$2(t2) {
|
159
|
-
return (e2, o2) => "object" == typeof o2 ? r$2(t2, e2, o2) : ((t3, e3, o3) => {
|
160
|
-
const r2 = e3.hasOwnProperty(o3);
|
161
|
-
return e3.constructor.createProperty(o3, t3), r2 ? Object.getOwnPropertyDescriptor(e3, o3) : void 0;
|
162
|
-
})(t2, e2, o2);
|
163
|
-
}
|
164
|
-
function r$1(r2) {
|
165
|
-
return n$2({ ...r2, state: true, attribute: false });
|
166
|
-
}
|
167
|
-
const styles$6 = i$3`
|
168
|
-
:host {
|
169
|
-
display: flex;
|
170
|
-
width: inherit;
|
171
|
-
height: inherit;
|
172
|
-
}
|
173
|
-
`;
|
174
|
-
var __decorate$6 = function(decorators, target, key, desc) {
|
175
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc, d;
|
176
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
177
|
-
else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d = decorators[i3]) r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
|
178
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
179
|
-
};
|
180
|
-
let WuiFlex = class WuiFlex2 extends i$4 {
|
181
|
-
render() {
|
182
|
-
this.style.cssText = `
|
183
|
-
flex-direction: ${this.flexDirection};
|
184
|
-
flex-wrap: ${this.flexWrap};
|
185
|
-
flex-basis: ${this.flexBasis};
|
186
|
-
flex-grow: ${this.flexGrow};
|
187
|
-
flex-shrink: ${this.flexShrink};
|
188
|
-
align-items: ${this.alignItems};
|
189
|
-
justify-content: ${this.justifyContent};
|
190
|
-
column-gap: ${this.columnGap && `var(--wui-spacing-${this.columnGap})`};
|
191
|
-
row-gap: ${this.rowGap && `var(--wui-spacing-${this.rowGap})`};
|
192
|
-
gap: ${this.gap && `var(--wui-spacing-${this.gap})`};
|
193
|
-
padding-top: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 0)};
|
194
|
-
padding-right: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 1)};
|
195
|
-
padding-bottom: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 2)};
|
196
|
-
padding-left: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 3)};
|
197
|
-
margin-top: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 0)};
|
198
|
-
margin-right: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 1)};
|
199
|
-
margin-bottom: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 2)};
|
200
|
-
margin-left: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 3)};
|
201
|
-
`;
|
202
|
-
return x`<slot></slot>`;
|
203
|
-
}
|
204
|
-
};
|
205
|
-
WuiFlex.styles = [resetStyles, styles$6];
|
206
|
-
__decorate$6([
|
207
|
-
n$2()
|
208
|
-
], WuiFlex.prototype, "flexDirection", void 0);
|
209
|
-
__decorate$6([
|
210
|
-
n$2()
|
211
|
-
], WuiFlex.prototype, "flexWrap", void 0);
|
212
|
-
__decorate$6([
|
213
|
-
n$2()
|
214
|
-
], WuiFlex.prototype, "flexBasis", void 0);
|
215
|
-
__decorate$6([
|
216
|
-
n$2()
|
217
|
-
], WuiFlex.prototype, "flexGrow", void 0);
|
218
|
-
__decorate$6([
|
219
|
-
n$2()
|
220
|
-
], WuiFlex.prototype, "flexShrink", void 0);
|
221
|
-
__decorate$6([
|
222
|
-
n$2()
|
223
|
-
], WuiFlex.prototype, "alignItems", void 0);
|
224
|
-
__decorate$6([
|
225
|
-
n$2()
|
226
|
-
], WuiFlex.prototype, "justifyContent", void 0);
|
227
|
-
__decorate$6([
|
228
|
-
n$2()
|
229
|
-
], WuiFlex.prototype, "columnGap", void 0);
|
230
|
-
__decorate$6([
|
231
|
-
n$2()
|
232
|
-
], WuiFlex.prototype, "rowGap", void 0);
|
233
|
-
__decorate$6([
|
234
|
-
n$2()
|
235
|
-
], WuiFlex.prototype, "gap", void 0);
|
236
|
-
__decorate$6([
|
237
|
-
n$2()
|
238
|
-
], WuiFlex.prototype, "padding", void 0);
|
239
|
-
__decorate$6([
|
240
|
-
n$2()
|
241
|
-
], WuiFlex.prototype, "margin", void 0);
|
242
|
-
WuiFlex = __decorate$6([
|
243
|
-
customElement("wui-flex")
|
244
|
-
], WuiFlex);
|
245
|
-
const o$1 = (o2) => o2 ?? E;
|
246
|
-
const i$2 = (o2) => null === o2 || "object" != typeof o2 && "function" != typeof o2, f$1 = (o2) => void 0 === o2.strings;
|
247
|
-
const t = { ATTRIBUTE: 1, CHILD: 2 }, e$1 = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 });
|
248
|
-
let i$1 = class i {
|
249
|
-
constructor(t2) {
|
250
|
-
}
|
251
|
-
get _$AU() {
|
252
|
-
return this._$AM._$AU;
|
253
|
-
}
|
254
|
-
_$AT(t2, e2, i3) {
|
255
|
-
this._$Ct = t2, this._$AM = e2, this._$Ci = i3;
|
256
|
-
}
|
257
|
-
_$AS(t2, e2) {
|
258
|
-
return this.update(t2, e2);
|
259
|
-
}
|
260
|
-
update(t2, e2) {
|
261
|
-
return this.render(...e2);
|
262
|
-
}
|
263
|
-
};
|
264
|
-
const s$1 = (i3, t2) => {
|
265
|
-
var _a;
|
266
|
-
const e2 = i3._$AN;
|
267
|
-
if (void 0 === e2) return false;
|
268
|
-
for (const i4 of e2) (_a = i4._$AO) == null ? void 0 : _a.call(i4, t2, false), s$1(i4, t2);
|
269
|
-
return true;
|
270
|
-
}, o = (i3) => {
|
271
|
-
let t2, e2;
|
272
|
-
do {
|
273
|
-
if (void 0 === (t2 = i3._$AM)) break;
|
274
|
-
e2 = t2._$AN, e2.delete(i3), i3 = t2;
|
275
|
-
} while (0 === (e2 == null ? void 0 : e2.size));
|
276
|
-
}, r = (i3) => {
|
277
|
-
for (let t2; t2 = i3._$AM; i3 = t2) {
|
278
|
-
let e2 = t2._$AN;
|
279
|
-
if (void 0 === e2) t2._$AN = e2 = /* @__PURE__ */ new Set();
|
280
|
-
else if (e2.has(i3)) break;
|
281
|
-
e2.add(i3), c$1(t2);
|
282
|
-
}
|
283
|
-
};
|
284
|
-
function h$1(i3) {
|
285
|
-
void 0 !== this._$AN ? (o(this), this._$AM = i3, r(this)) : this._$AM = i3;
|
286
|
-
}
|
287
|
-
function n$1(i3, t2 = false, e2 = 0) {
|
288
|
-
const r2 = this._$AH, h2 = this._$AN;
|
289
|
-
if (void 0 !== h2 && 0 !== h2.size) if (t2) if (Array.isArray(r2)) for (let i4 = e2; i4 < r2.length; i4++) s$1(r2[i4], false), o(r2[i4]);
|
290
|
-
else null != r2 && (s$1(r2, false), o(r2));
|
291
|
-
else s$1(this, i3);
|
292
|
-
}
|
293
|
-
const c$1 = (i3) => {
|
294
|
-
i3.type == t.CHILD && (i3._$AP ?? (i3._$AP = n$1), i3._$AQ ?? (i3._$AQ = h$1));
|
295
|
-
};
|
296
|
-
class f extends i$1 {
|
297
|
-
constructor() {
|
298
|
-
super(...arguments), this._$AN = void 0;
|
299
|
-
}
|
300
|
-
_$AT(i3, t2, e2) {
|
301
|
-
super._$AT(i3, t2, e2), r(this), this.isConnected = i3._$AU;
|
302
|
-
}
|
303
|
-
_$AO(i3, t2 = true) {
|
304
|
-
var _a, _b;
|
305
|
-
i3 !== this.isConnected && (this.isConnected = i3, i3 ? (_a = this.reconnected) == null ? void 0 : _a.call(this) : (_b = this.disconnected) == null ? void 0 : _b.call(this)), t2 && (s$1(this, i3), o(this));
|
306
|
-
}
|
307
|
-
setValue(t2) {
|
308
|
-
if (f$1(this._$Ct)) this._$Ct._$AI(t2, this);
|
309
|
-
else {
|
310
|
-
const i3 = [...this._$Ct._$AH];
|
311
|
-
i3[this._$Ci] = t2, this._$Ct._$AI(i3, this, 0);
|
312
|
-
}
|
313
|
-
}
|
314
|
-
disconnected() {
|
315
|
-
}
|
316
|
-
reconnected() {
|
317
|
-
}
|
318
|
-
}
|
319
|
-
class s {
|
320
|
-
constructor(t2) {
|
321
|
-
this.G = t2;
|
322
|
-
}
|
323
|
-
disconnect() {
|
324
|
-
this.G = void 0;
|
325
|
-
}
|
326
|
-
reconnect(t2) {
|
327
|
-
this.G = t2;
|
328
|
-
}
|
329
|
-
deref() {
|
330
|
-
return this.G;
|
331
|
-
}
|
332
|
-
}
|
333
|
-
class i2 {
|
334
|
-
constructor() {
|
335
|
-
this.Y = void 0, this.Z = void 0;
|
336
|
-
}
|
337
|
-
get() {
|
338
|
-
return this.Y;
|
339
|
-
}
|
340
|
-
pause() {
|
341
|
-
this.Y ?? (this.Y = new Promise((t2) => this.Z = t2));
|
342
|
-
}
|
343
|
-
resume() {
|
344
|
-
var _a;
|
345
|
-
(_a = this.Z) == null ? void 0 : _a.call(this), this.Y = this.Z = void 0;
|
346
|
-
}
|
347
|
-
}
|
348
|
-
const n = (t2) => !i$2(t2) && "function" == typeof t2.then, h = 1073741823;
|
349
|
-
class c extends f {
|
350
|
-
constructor() {
|
351
|
-
super(...arguments), this._$Cwt = h, this._$Cbt = [], this._$CK = new s(this), this._$CX = new i2();
|
352
|
-
}
|
353
|
-
render(...s2) {
|
354
|
-
return s2.find((t2) => !n(t2)) ?? T;
|
355
|
-
}
|
356
|
-
update(s2, i3) {
|
357
|
-
const e2 = this._$Cbt;
|
358
|
-
let r2 = e2.length;
|
359
|
-
this._$Cbt = i3;
|
360
|
-
const o2 = this._$CK, c2 = this._$CX;
|
361
|
-
this.isConnected || this.disconnected();
|
362
|
-
for (let t2 = 0; t2 < i3.length && !(t2 > this._$Cwt); t2++) {
|
363
|
-
const s3 = i3[t2];
|
364
|
-
if (!n(s3)) return this._$Cwt = t2, s3;
|
365
|
-
t2 < r2 && s3 === e2[t2] || (this._$Cwt = h, r2 = 0, Promise.resolve(s3).then(async (t3) => {
|
366
|
-
for (; c2.get(); ) await c2.get();
|
367
|
-
const i4 = o2.deref();
|
368
|
-
if (void 0 !== i4) {
|
369
|
-
const e3 = i4._$Cbt.indexOf(s3);
|
370
|
-
e3 > -1 && e3 < i4._$Cwt && (i4._$Cwt = e3, i4.setValue(t3));
|
371
|
-
}
|
372
|
-
}));
|
373
|
-
}
|
374
|
-
return T;
|
375
|
-
}
|
376
|
-
disconnected() {
|
377
|
-
this._$CK.disconnect(), this._$CX.pause();
|
378
|
-
}
|
379
|
-
reconnected() {
|
380
|
-
this._$CK.reconnect(this), this._$CX.resume();
|
381
|
-
}
|
382
|
-
}
|
383
|
-
const m = e$1(c);
|
384
|
-
class CacheUtil {
|
385
|
-
constructor() {
|
386
|
-
this.cache = /* @__PURE__ */ new Map();
|
387
|
-
}
|
388
|
-
set(key, value) {
|
389
|
-
this.cache.set(key, value);
|
390
|
-
}
|
391
|
-
get(key) {
|
392
|
-
return this.cache.get(key);
|
393
|
-
}
|
394
|
-
has(key) {
|
395
|
-
return this.cache.has(key);
|
396
|
-
}
|
397
|
-
delete(key) {
|
398
|
-
this.cache.delete(key);
|
399
|
-
}
|
400
|
-
clear() {
|
401
|
-
this.cache.clear();
|
402
|
-
}
|
403
|
-
}
|
404
|
-
const globalSvgCache = new CacheUtil();
|
405
|
-
const styles$5 = i$3`
|
406
|
-
:host {
|
407
|
-
display: flex;
|
408
|
-
aspect-ratio: var(--local-aspect-ratio);
|
409
|
-
color: var(--local-color);
|
410
|
-
width: var(--local-width);
|
411
|
-
}
|
412
|
-
|
413
|
-
svg {
|
414
|
-
width: inherit;
|
415
|
-
height: inherit;
|
416
|
-
object-fit: contain;
|
417
|
-
object-position: center;
|
418
|
-
}
|
419
|
-
|
420
|
-
.fallback {
|
421
|
-
width: var(--local-width);
|
422
|
-
height: var(--local-height);
|
423
|
-
}
|
424
|
-
`;
|
425
|
-
var __decorate$5 = function(decorators, target, key, desc) {
|
426
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc, d;
|
427
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
428
|
-
else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d = decorators[i3]) r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
|
429
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
430
|
-
};
|
431
|
-
const ICONS = {
|
432
|
-
add: async () => (await import("./add-B8AfyNIx.js")).addSvg,
|
433
|
-
allWallets: async () => (await import("./all-wallets-BaLLU39i.js")).allWalletsSvg,
|
434
|
-
arrowBottomCircle: async () => (await import("./arrow-bottom-circle-ls9OCLx1.js")).arrowBottomCircleSvg,
|
435
|
-
appStore: async () => (await import("./app-store-DNpoABj1.js")).appStoreSvg,
|
436
|
-
apple: async () => (await import("./apple-DzzHtaL4.js")).appleSvg,
|
437
|
-
arrowBottom: async () => (await import("./arrow-bottom-D2c13c51.js")).arrowBottomSvg,
|
438
|
-
arrowLeft: async () => (await import("./arrow-left-BI3rQkNI.js")).arrowLeftSvg,
|
439
|
-
arrowRight: async () => (await import("./arrow-right-rnMzhVod.js")).arrowRightSvg,
|
440
|
-
arrowTop: async () => (await import("./arrow-top-CfA6PVMz.js")).arrowTopSvg,
|
441
|
-
bank: async () => (await import("./bank-CmpAmHgg.js")).bankSvg,
|
442
|
-
browser: async () => (await import("./browser-mEcjgS1H.js")).browserSvg,
|
443
|
-
card: async () => (await import("./card-DkgIWcMc.js")).cardSvg,
|
444
|
-
checkmark: async () => (await import("./checkmark-B_A013n2.js")).checkmarkSvg,
|
445
|
-
checkmarkBold: async () => (await import("./checkmark-bold-DestuG2T.js")).checkmarkBoldSvg,
|
446
|
-
chevronBottom: async () => (await import("./chevron-bottom-Di3S86dj.js")).chevronBottomSvg,
|
447
|
-
chevronLeft: async () => (await import("./chevron-left-A9Wj-3tj.js")).chevronLeftSvg,
|
448
|
-
chevronRight: async () => (await import("./chevron-right-UFxJogOZ.js")).chevronRightSvg,
|
449
|
-
chevronTop: async () => (await import("./chevron-top-BbZs3eaC.js")).chevronTopSvg,
|
450
|
-
chromeStore: async () => (await import("./chrome-store-B4F6hJmy.js")).chromeStoreSvg,
|
451
|
-
clock: async () => (await import("./clock-BbAQ09uV.js")).clockSvg,
|
452
|
-
close: async () => (await import("./close-CY3oZP_D.js")).closeSvg,
|
453
|
-
compass: async () => (await import("./compass-CHS7RZFk.js")).compassSvg,
|
454
|
-
coinPlaceholder: async () => (await import("./coinPlaceholder-DpfsobZT.js")).coinPlaceholderSvg,
|
455
|
-
copy: async () => (await import("./copy-CEd4nGhs.js")).copySvg,
|
456
|
-
cursor: async () => (await import("./cursor-BTtIlTHP.js")).cursorSvg,
|
457
|
-
cursorTransparent: async () => (await import("./cursor-transparent-Tm6k6Ws4.js")).cursorTransparentSvg,
|
458
|
-
desktop: async () => (await import("./desktop-CrSyXZkL.js")).desktopSvg,
|
459
|
-
disconnect: async () => (await import("./disconnect-BooT10E1.js")).disconnectSvg,
|
460
|
-
discord: async () => (await import("./discord-B982Qaml.js")).discordSvg,
|
461
|
-
etherscan: async () => (await import("./etherscan-CFL0IcNl.js")).etherscanSvg,
|
462
|
-
extension: async () => (await import("./extension-C5WqJw73.js")).extensionSvg,
|
463
|
-
externalLink: async () => (await import("./external-link-CcSxVDcd.js")).externalLinkSvg,
|
464
|
-
facebook: async () => (await import("./facebook-DF0v9ED8.js")).facebookSvg,
|
465
|
-
farcaster: async () => (await import("./farcaster-Boq7M4VK.js")).farcasterSvg,
|
466
|
-
filters: async () => (await import("./filters-DfeymbPx.js")).filtersSvg,
|
467
|
-
github: async () => (await import("./github-DQ8FV4bD.js")).githubSvg,
|
468
|
-
google: async () => (await import("./google-Dm8FDDZR.js")).googleSvg,
|
469
|
-
helpCircle: async () => (await import("./help-circle-CbgiAebR.js")).helpCircleSvg,
|
470
|
-
image: async () => (await import("./image-CsCGTIN-.js")).imageSvg,
|
471
|
-
id: async () => (await import("./id-CzqxUksI.js")).idSvg,
|
472
|
-
infoCircle: async () => (await import("./info-circle-Bt350Yzj.js")).infoCircleSvg,
|
473
|
-
lightbulb: async () => (await import("./lightbulb-BL9YBxiA.js")).lightbulbSvg,
|
474
|
-
mail: async () => (await import("./mail-_g6CHQeQ.js")).mailSvg,
|
475
|
-
mobile: async () => (await import("./mobile-B-EQ4IcH.js")).mobileSvg,
|
476
|
-
more: async () => (await import("./more-C3rpOdUy.js")).moreSvg,
|
477
|
-
networkPlaceholder: async () => (await import("./network-placeholder-D9Ak7Xj_.js")).networkPlaceholderSvg,
|
478
|
-
nftPlaceholder: async () => (await import("./nftPlaceholder-CIIm2V_o.js")).nftPlaceholderSvg,
|
479
|
-
off: async () => (await import("./off-DZjgI0eE.js")).offSvg,
|
480
|
-
playStore: async () => (await import("./play-store-DvRnagoF.js")).playStoreSvg,
|
481
|
-
plus: async () => (await import("./plus-C2jN2huZ.js")).plusSvg,
|
482
|
-
qrCode: async () => (await import("./qr-code-B64HnZgi.js")).qrCodeIcon,
|
483
|
-
recycleHorizontal: async () => (await import("./recycle-horizontal-CovcJGa_.js")).recycleHorizontalSvg,
|
484
|
-
refresh: async () => (await import("./refresh-J1Vw6QMA.js")).refreshSvg,
|
485
|
-
search: async () => (await import("./search-BC86wYXR.js")).searchSvg,
|
486
|
-
send: async () => (await import("./send-BPA1bK5G.js")).sendSvg,
|
487
|
-
swapHorizontal: async () => (await import("./swapHorizontal-47_8ePle.js")).swapHorizontalSvg,
|
488
|
-
swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-CTACgUR9.js")).swapHorizontalMediumSvg,
|
489
|
-
swapHorizontalBold: async () => (await import("./swapHorizontalBold-CJ7TzeQP.js")).swapHorizontalBoldSvg,
|
490
|
-
swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-Ht3_LABp.js")).swapHorizontalRoundedBoldSvg,
|
491
|
-
swapVertical: async () => (await import("./swapVertical-DlS0V6DD.js")).swapVerticalSvg,
|
492
|
-
telegram: async () => (await import("./telegram-UZ00kvIE.js")).telegramSvg,
|
493
|
-
threeDots: async () => (await import("./three-dots-D9zVXr1j.js")).threeDotsSvg,
|
494
|
-
twitch: async () => (await import("./twitch-CP6rpz4m.js")).twitchSvg,
|
495
|
-
twitter: async () => (await import("./x-jggPFiy-.js")).xSvg,
|
496
|
-
twitterIcon: async () => (await import("./twitterIcon-Cm3I3FRU.js")).twitterIconSvg,
|
497
|
-
verify: async () => (await import("./verify-DuUE85WT.js")).verifySvg,
|
498
|
-
verifyFilled: async () => (await import("./verify-filled-CfgydKPa.js")).verifyFilledSvg,
|
499
|
-
wallet: async () => (await import("./wallet-BC2LSDlF.js")).walletSvg,
|
500
|
-
walletConnect: async () => (await import("./walletconnect-wayCaYfk.js")).walletConnectSvg,
|
501
|
-
walletConnectLightBrown: async () => (await import("./walletconnect-wayCaYfk.js")).walletConnectLightBrownSvg,
|
502
|
-
walletConnectBrown: async () => (await import("./walletconnect-wayCaYfk.js")).walletConnectBrownSvg,
|
503
|
-
walletPlaceholder: async () => (await import("./wallet-placeholder-DugEJ7xM.js")).walletPlaceholderSvg,
|
504
|
-
warningCircle: async () => (await import("./warning-circle-Cy9YuvwU.js")).warningCircleSvg,
|
505
|
-
x: async () => (await import("./x-jggPFiy-.js")).xSvg,
|
506
|
-
info: async () => (await import("./info-fKCfLW0k.js")).infoSvg,
|
507
|
-
exclamationTriangle: async () => (await import("./exclamation-triangle-BBeGXYgt.js")).exclamationTriangleSvg,
|
508
|
-
reown: async () => (await import("./reown-logo-BsXoZ3KT.js")).reownSvg
|
509
|
-
};
|
510
|
-
async function getSvg(name) {
|
511
|
-
if (globalSvgCache.has(name)) {
|
512
|
-
return globalSvgCache.get(name);
|
513
|
-
}
|
514
|
-
const importFn = ICONS[name] ?? ICONS.copy;
|
515
|
-
const svgPromise = importFn();
|
516
|
-
globalSvgCache.set(name, svgPromise);
|
517
|
-
return svgPromise;
|
518
|
-
}
|
519
|
-
let WuiIcon = class WuiIcon2 extends i$4 {
|
520
|
-
constructor() {
|
521
|
-
super(...arguments);
|
522
|
-
this.size = "md";
|
523
|
-
this.name = "copy";
|
524
|
-
this.color = "fg-300";
|
525
|
-
this.aspectRatio = "1 / 1";
|
526
|
-
}
|
527
|
-
render() {
|
528
|
-
this.style.cssText = `
|
529
|
-
--local-color: ${`var(--wui-color-${this.color});`}
|
530
|
-
--local-width: ${`var(--wui-icon-size-${this.size});`}
|
531
|
-
--local-aspect-ratio: ${this.aspectRatio}
|
532
|
-
`;
|
533
|
-
return x`${m(getSvg(this.name), x`<div class="fallback"></div>`)}`;
|
534
|
-
}
|
535
|
-
};
|
536
|
-
WuiIcon.styles = [resetStyles, colorStyles, styles$5];
|
537
|
-
__decorate$5([
|
538
|
-
n$2()
|
539
|
-
], WuiIcon.prototype, "size", void 0);
|
540
|
-
__decorate$5([
|
541
|
-
n$2()
|
542
|
-
], WuiIcon.prototype, "name", void 0);
|
543
|
-
__decorate$5([
|
544
|
-
n$2()
|
545
|
-
], WuiIcon.prototype, "color", void 0);
|
546
|
-
__decorate$5([
|
547
|
-
n$2()
|
548
|
-
], WuiIcon.prototype, "aspectRatio", void 0);
|
549
|
-
WuiIcon = __decorate$5([
|
550
|
-
customElement("wui-icon")
|
551
|
-
], WuiIcon);
|
552
|
-
const e = e$1(class extends i$1 {
|
553
|
-
constructor(t$1) {
|
554
|
-
var _a;
|
555
|
-
if (super(t$1), t$1.type !== t.ATTRIBUTE || "class" !== t$1.name || ((_a = t$1.strings) == null ? void 0 : _a.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
556
|
-
}
|
557
|
-
render(t2) {
|
558
|
-
return " " + Object.keys(t2).filter((s2) => t2[s2]).join(" ") + " ";
|
559
|
-
}
|
560
|
-
update(s2, [i3]) {
|
561
|
-
var _a, _b;
|
562
|
-
if (void 0 === this.st) {
|
563
|
-
this.st = /* @__PURE__ */ new Set(), void 0 !== s2.strings && (this.nt = new Set(s2.strings.join(" ").split(/\s/).filter((t2) => "" !== t2)));
|
564
|
-
for (const t2 in i3) i3[t2] && !((_a = this.nt) == null ? void 0 : _a.has(t2)) && this.st.add(t2);
|
565
|
-
return this.render(i3);
|
566
|
-
}
|
567
|
-
const r2 = s2.element.classList;
|
568
|
-
for (const t2 of this.st) t2 in i3 || (r2.remove(t2), this.st.delete(t2));
|
569
|
-
for (const t2 in i3) {
|
570
|
-
const s3 = !!i3[t2];
|
571
|
-
s3 === this.st.has(t2) || ((_b = this.nt) == null ? void 0 : _b.has(t2)) || (s3 ? (r2.add(t2), this.st.add(t2)) : (r2.remove(t2), this.st.delete(t2)));
|
572
|
-
}
|
573
|
-
return T;
|
574
|
-
}
|
575
|
-
});
|
576
|
-
const styles$4 = i$3`
|
577
|
-
:host {
|
578
|
-
display: inline-flex !important;
|
579
|
-
}
|
580
|
-
|
581
|
-
slot {
|
582
|
-
width: 100%;
|
583
|
-
display: inline-block;
|
584
|
-
font-style: normal;
|
585
|
-
font-family: var(--wui-font-family);
|
586
|
-
font-feature-settings:
|
587
|
-
'tnum' on,
|
588
|
-
'lnum' on,
|
589
|
-
'case' on;
|
590
|
-
line-height: 130%;
|
591
|
-
font-weight: var(--wui-font-weight-regular);
|
592
|
-
overflow: inherit;
|
593
|
-
text-overflow: inherit;
|
594
|
-
text-align: var(--local-align);
|
595
|
-
color: var(--local-color);
|
596
|
-
}
|
597
|
-
|
598
|
-
.wui-line-clamp-1 {
|
599
|
-
overflow: hidden;
|
600
|
-
display: -webkit-box;
|
601
|
-
-webkit-box-orient: vertical;
|
602
|
-
-webkit-line-clamp: 1;
|
603
|
-
}
|
604
|
-
|
605
|
-
.wui-line-clamp-2 {
|
606
|
-
overflow: hidden;
|
607
|
-
display: -webkit-box;
|
608
|
-
-webkit-box-orient: vertical;
|
609
|
-
-webkit-line-clamp: 2;
|
610
|
-
}
|
611
|
-
|
612
|
-
.wui-font-medium-400 {
|
613
|
-
font-size: var(--wui-font-size-medium);
|
614
|
-
font-weight: var(--wui-font-weight-light);
|
615
|
-
letter-spacing: var(--wui-letter-spacing-medium);
|
616
|
-
}
|
617
|
-
|
618
|
-
.wui-font-medium-600 {
|
619
|
-
font-size: var(--wui-font-size-medium);
|
620
|
-
letter-spacing: var(--wui-letter-spacing-medium);
|
621
|
-
}
|
622
|
-
|
623
|
-
.wui-font-title-600 {
|
624
|
-
font-size: var(--wui-font-size-title);
|
625
|
-
letter-spacing: var(--wui-letter-spacing-title);
|
626
|
-
}
|
627
|
-
|
628
|
-
.wui-font-title-6-600 {
|
629
|
-
font-size: var(--wui-font-size-title-6);
|
630
|
-
letter-spacing: var(--wui-letter-spacing-title-6);
|
631
|
-
}
|
632
|
-
|
633
|
-
.wui-font-mini-700 {
|
634
|
-
font-size: var(--wui-font-size-mini);
|
635
|
-
letter-spacing: var(--wui-letter-spacing-mini);
|
636
|
-
text-transform: uppercase;
|
637
|
-
}
|
638
|
-
|
639
|
-
.wui-font-large-500,
|
640
|
-
.wui-font-large-600,
|
641
|
-
.wui-font-large-700 {
|
642
|
-
font-size: var(--wui-font-size-large);
|
643
|
-
letter-spacing: var(--wui-letter-spacing-large);
|
644
|
-
}
|
645
|
-
|
646
|
-
.wui-font-2xl-500,
|
647
|
-
.wui-font-2xl-600,
|
648
|
-
.wui-font-2xl-700 {
|
649
|
-
font-size: var(--wui-font-size-2xl);
|
650
|
-
letter-spacing: var(--wui-letter-spacing-2xl);
|
651
|
-
}
|
652
|
-
|
653
|
-
.wui-font-paragraph-400,
|
654
|
-
.wui-font-paragraph-500,
|
655
|
-
.wui-font-paragraph-600,
|
656
|
-
.wui-font-paragraph-700 {
|
657
|
-
font-size: var(--wui-font-size-paragraph);
|
658
|
-
letter-spacing: var(--wui-letter-spacing-paragraph);
|
659
|
-
}
|
660
|
-
|
661
|
-
.wui-font-small-400,
|
662
|
-
.wui-font-small-500,
|
663
|
-
.wui-font-small-600 {
|
664
|
-
font-size: var(--wui-font-size-small);
|
665
|
-
letter-spacing: var(--wui-letter-spacing-small);
|
666
|
-
}
|
667
|
-
|
668
|
-
.wui-font-tiny-400,
|
669
|
-
.wui-font-tiny-500,
|
670
|
-
.wui-font-tiny-600 {
|
671
|
-
font-size: var(--wui-font-size-tiny);
|
672
|
-
letter-spacing: var(--wui-letter-spacing-tiny);
|
673
|
-
}
|
674
|
-
|
675
|
-
.wui-font-micro-700,
|
676
|
-
.wui-font-micro-600 {
|
677
|
-
font-size: var(--wui-font-size-micro);
|
678
|
-
letter-spacing: var(--wui-letter-spacing-micro);
|
679
|
-
text-transform: uppercase;
|
680
|
-
}
|
681
|
-
|
682
|
-
.wui-font-tiny-400,
|
683
|
-
.wui-font-small-400,
|
684
|
-
.wui-font-medium-400,
|
685
|
-
.wui-font-paragraph-400 {
|
686
|
-
font-weight: var(--wui-font-weight-light);
|
687
|
-
}
|
688
|
-
|
689
|
-
.wui-font-large-700,
|
690
|
-
.wui-font-paragraph-700,
|
691
|
-
.wui-font-micro-700,
|
692
|
-
.wui-font-mini-700 {
|
693
|
-
font-weight: var(--wui-font-weight-bold);
|
694
|
-
}
|
695
|
-
|
696
|
-
.wui-font-medium-600,
|
697
|
-
.wui-font-medium-title-600,
|
698
|
-
.wui-font-title-6-600,
|
699
|
-
.wui-font-large-600,
|
700
|
-
.wui-font-paragraph-600,
|
701
|
-
.wui-font-small-600,
|
702
|
-
.wui-font-tiny-600,
|
703
|
-
.wui-font-micro-600 {
|
704
|
-
font-weight: var(--wui-font-weight-medium);
|
705
|
-
}
|
706
|
-
|
707
|
-
:host([disabled]) {
|
708
|
-
opacity: 0.4;
|
709
|
-
}
|
710
|
-
`;
|
711
|
-
var __decorate$4 = function(decorators, target, key, desc) {
|
712
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc, d;
|
713
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
714
|
-
else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d = decorators[i3]) r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
|
715
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
716
|
-
};
|
717
|
-
let WuiText = class WuiText2 extends i$4 {
|
718
|
-
constructor() {
|
719
|
-
super(...arguments);
|
720
|
-
this.variant = "paragraph-500";
|
721
|
-
this.color = "fg-300";
|
722
|
-
this.align = "left";
|
723
|
-
this.lineClamp = void 0;
|
724
|
-
}
|
725
|
-
render() {
|
726
|
-
const classes = {
|
727
|
-
[`wui-font-${this.variant}`]: true,
|
728
|
-
[`wui-color-${this.color}`]: true,
|
729
|
-
[`wui-line-clamp-${this.lineClamp}`]: this.lineClamp ? true : false
|
730
|
-
};
|
731
|
-
this.style.cssText = `
|
732
|
-
--local-align: ${this.align};
|
733
|
-
--local-color: var(--wui-color-${this.color});
|
734
|
-
`;
|
735
|
-
return x`<slot class=${e(classes)}></slot>`;
|
736
|
-
}
|
737
|
-
};
|
738
|
-
WuiText.styles = [resetStyles, styles$4];
|
739
|
-
__decorate$4([
|
740
|
-
n$2()
|
741
|
-
], WuiText.prototype, "variant", void 0);
|
742
|
-
__decorate$4([
|
743
|
-
n$2()
|
744
|
-
], WuiText.prototype, "color", void 0);
|
745
|
-
__decorate$4([
|
746
|
-
n$2()
|
747
|
-
], WuiText.prototype, "align", void 0);
|
748
|
-
__decorate$4([
|
749
|
-
n$2()
|
750
|
-
], WuiText.prototype, "lineClamp", void 0);
|
751
|
-
WuiText = __decorate$4([
|
752
|
-
customElement("wui-text")
|
753
|
-
], WuiText);
|
754
|
-
const styles$3 = i$3`
|
755
|
-
:host {
|
756
|
-
display: inline-flex;
|
757
|
-
justify-content: center;
|
758
|
-
align-items: center;
|
759
|
-
position: relative;
|
760
|
-
overflow: hidden;
|
761
|
-
background-color: var(--wui-color-gray-glass-020);
|
762
|
-
border-radius: var(--local-border-radius);
|
763
|
-
border: var(--local-border);
|
764
|
-
box-sizing: content-box;
|
765
|
-
width: var(--local-size);
|
766
|
-
height: var(--local-size);
|
767
|
-
min-height: var(--local-size);
|
768
|
-
min-width: var(--local-size);
|
769
|
-
}
|
770
|
-
|
771
|
-
@supports (background: color-mix(in srgb, white 50%, black)) {
|
772
|
-
:host {
|
773
|
-
background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent);
|
774
|
-
}
|
775
|
-
}
|
776
|
-
`;
|
777
|
-
var __decorate$3 = function(decorators, target, key, desc) {
|
778
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc, d;
|
779
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
780
|
-
else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d = decorators[i3]) r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
|
781
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
782
|
-
};
|
783
|
-
let WuiIconBox = class WuiIconBox2 extends i$4 {
|
784
|
-
constructor() {
|
785
|
-
super(...arguments);
|
786
|
-
this.size = "md";
|
787
|
-
this.backgroundColor = "accent-100";
|
788
|
-
this.iconColor = "accent-100";
|
789
|
-
this.background = "transparent";
|
790
|
-
this.border = false;
|
791
|
-
this.borderColor = "wui-color-bg-125";
|
792
|
-
this.icon = "copy";
|
793
|
-
}
|
794
|
-
render() {
|
795
|
-
const iconSize = this.iconSize || this.size;
|
796
|
-
const isLg = this.size === "lg";
|
797
|
-
const isXl = this.size === "xl";
|
798
|
-
const bgMix = isLg ? "12%" : "16%";
|
799
|
-
const borderRadius = isLg ? "xxs" : isXl ? "s" : "3xl";
|
800
|
-
const isGray = this.background === "gray";
|
801
|
-
const isOpaque = this.background === "opaque";
|
802
|
-
const isColorChange = this.backgroundColor === "accent-100" && isOpaque || this.backgroundColor === "success-100" && isOpaque || this.backgroundColor === "error-100" && isOpaque || this.backgroundColor === "inverse-100" && isOpaque;
|
803
|
-
let bgValueVariable = `var(--wui-color-${this.backgroundColor})`;
|
804
|
-
if (isColorChange) {
|
805
|
-
bgValueVariable = `var(--wui-icon-box-bg-${this.backgroundColor})`;
|
806
|
-
} else if (isGray) {
|
807
|
-
bgValueVariable = `var(--wui-color-gray-${this.backgroundColor})`;
|
808
|
-
}
|
809
|
-
this.style.cssText = `
|
810
|
-
--local-bg-value: ${bgValueVariable};
|
811
|
-
--local-bg-mix: ${isColorChange || isGray ? `100%` : bgMix};
|
812
|
-
--local-border-radius: var(--wui-border-radius-${borderRadius});
|
813
|
-
--local-size: var(--wui-icon-box-size-${this.size});
|
814
|
-
--local-border: ${this.borderColor === "wui-color-bg-125" ? `2px` : `1px`} solid ${this.border ? `var(--${this.borderColor})` : `transparent`}
|
815
|
-
`;
|
816
|
-
return x` <wui-icon color=${this.iconColor} size=${iconSize} name=${this.icon}></wui-icon> `;
|
817
|
-
}
|
818
|
-
};
|
819
|
-
WuiIconBox.styles = [resetStyles, elementStyles, styles$3];
|
820
|
-
__decorate$3([
|
821
|
-
n$2()
|
822
|
-
], WuiIconBox.prototype, "size", void 0);
|
823
|
-
__decorate$3([
|
824
|
-
n$2()
|
825
|
-
], WuiIconBox.prototype, "backgroundColor", void 0);
|
826
|
-
__decorate$3([
|
827
|
-
n$2()
|
828
|
-
], WuiIconBox.prototype, "iconColor", void 0);
|
829
|
-
__decorate$3([
|
830
|
-
n$2()
|
831
|
-
], WuiIconBox.prototype, "iconSize", void 0);
|
832
|
-
__decorate$3([
|
833
|
-
n$2()
|
834
|
-
], WuiIconBox.prototype, "background", void 0);
|
835
|
-
__decorate$3([
|
836
|
-
n$2({ type: Boolean })
|
837
|
-
], WuiIconBox.prototype, "border", void 0);
|
838
|
-
__decorate$3([
|
839
|
-
n$2()
|
840
|
-
], WuiIconBox.prototype, "borderColor", void 0);
|
841
|
-
__decorate$3([
|
842
|
-
n$2()
|
843
|
-
], WuiIconBox.prototype, "icon", void 0);
|
844
|
-
WuiIconBox = __decorate$3([
|
845
|
-
customElement("wui-icon-box")
|
846
|
-
], WuiIconBox);
|
847
|
-
const styles$2 = i$3`
|
848
|
-
:host {
|
849
|
-
display: block;
|
850
|
-
width: var(--local-width);
|
851
|
-
height: var(--local-height);
|
852
|
-
}
|
853
|
-
|
854
|
-
img {
|
855
|
-
display: block;
|
856
|
-
width: 100%;
|
857
|
-
height: 100%;
|
858
|
-
object-fit: cover;
|
859
|
-
object-position: center center;
|
860
|
-
border-radius: inherit;
|
861
|
-
}
|
862
|
-
`;
|
863
|
-
var __decorate$2 = function(decorators, target, key, desc) {
|
864
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc, d;
|
865
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
866
|
-
else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d = decorators[i3]) r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
|
867
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
868
|
-
};
|
869
|
-
let WuiImage = class WuiImage2 extends i$4 {
|
870
|
-
constructor() {
|
871
|
-
super(...arguments);
|
872
|
-
this.src = "./path/to/image.jpg";
|
873
|
-
this.alt = "Image";
|
874
|
-
this.size = void 0;
|
875
|
-
}
|
876
|
-
render() {
|
877
|
-
this.style.cssText = `
|
878
|
-
--local-width: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
|
879
|
-
--local-height: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
|
880
|
-
`;
|
881
|
-
return x`<img src=${this.src} alt=${this.alt} @error=${this.handleImageError} />`;
|
882
|
-
}
|
883
|
-
handleImageError() {
|
884
|
-
this.dispatchEvent(new CustomEvent("onLoadError", { bubbles: true, composed: true }));
|
885
|
-
}
|
886
|
-
};
|
887
|
-
WuiImage.styles = [resetStyles, colorStyles, styles$2];
|
888
|
-
__decorate$2([
|
889
|
-
n$2()
|
890
|
-
], WuiImage.prototype, "src", void 0);
|
891
|
-
__decorate$2([
|
892
|
-
n$2()
|
893
|
-
], WuiImage.prototype, "alt", void 0);
|
894
|
-
__decorate$2([
|
895
|
-
n$2()
|
896
|
-
], WuiImage.prototype, "size", void 0);
|
897
|
-
WuiImage = __decorate$2([
|
898
|
-
customElement("wui-image")
|
899
|
-
], WuiImage);
|
900
|
-
const styles$1 = i$3`
|
901
|
-
:host {
|
902
|
-
display: flex;
|
903
|
-
justify-content: center;
|
904
|
-
align-items: center;
|
905
|
-
height: var(--wui-spacing-m);
|
906
|
-
padding: 0 var(--wui-spacing-3xs) !important;
|
907
|
-
border-radius: var(--wui-border-radius-5xs);
|
908
|
-
transition:
|
909
|
-
border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
|
910
|
-
background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);
|
911
|
-
will-change: border-radius, background-color;
|
912
|
-
}
|
913
|
-
|
914
|
-
:host > wui-text {
|
915
|
-
transform: translateY(5%);
|
916
|
-
}
|
917
|
-
|
918
|
-
:host([data-variant='main']) {
|
919
|
-
background-color: var(--wui-color-accent-glass-015);
|
920
|
-
color: var(--wui-color-accent-100);
|
921
|
-
}
|
922
|
-
|
923
|
-
:host([data-variant='shade']) {
|
924
|
-
background-color: var(--wui-color-gray-glass-010);
|
925
|
-
color: var(--wui-color-fg-200);
|
926
|
-
}
|
927
|
-
|
928
|
-
:host([data-variant='success']) {
|
929
|
-
background-color: var(--wui-icon-box-bg-success-100);
|
930
|
-
color: var(--wui-color-success-100);
|
931
|
-
}
|
932
|
-
|
933
|
-
:host([data-variant='error']) {
|
934
|
-
background-color: var(--wui-icon-box-bg-error-100);
|
935
|
-
color: var(--wui-color-error-100);
|
936
|
-
}
|
937
|
-
|
938
|
-
:host([data-size='lg']) {
|
939
|
-
padding: 11px 5px !important;
|
940
|
-
}
|
941
|
-
|
942
|
-
:host([data-size='lg']) > wui-text {
|
943
|
-
transform: translateY(2%);
|
944
|
-
}
|
945
|
-
`;
|
946
|
-
var __decorate$1 = function(decorators, target, key, desc) {
|
947
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc, d;
|
948
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
949
|
-
else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d = decorators[i3]) r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
|
950
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
951
|
-
};
|
952
|
-
let WuiTag = class WuiTag2 extends i$4 {
|
953
|
-
constructor() {
|
954
|
-
super(...arguments);
|
955
|
-
this.variant = "main";
|
956
|
-
this.size = "lg";
|
957
|
-
}
|
958
|
-
render() {
|
959
|
-
this.dataset["variant"] = this.variant;
|
960
|
-
this.dataset["size"] = this.size;
|
961
|
-
const textVariant = this.size === "md" ? "mini-700" : "micro-700";
|
962
|
-
return x`
|
963
|
-
<wui-text data-variant=${this.variant} variant=${textVariant} color="inherit">
|
964
|
-
<slot></slot>
|
965
|
-
</wui-text>
|
966
|
-
`;
|
967
|
-
}
|
968
|
-
};
|
969
|
-
WuiTag.styles = [resetStyles, styles$1];
|
970
|
-
__decorate$1([
|
971
|
-
n$2()
|
972
|
-
], WuiTag.prototype, "variant", void 0);
|
973
|
-
__decorate$1([
|
974
|
-
n$2()
|
975
|
-
], WuiTag.prototype, "size", void 0);
|
976
|
-
WuiTag = __decorate$1([
|
977
|
-
customElement("wui-tag")
|
978
|
-
], WuiTag);
|
979
|
-
const styles = i$3`
|
980
|
-
:host {
|
981
|
-
display: flex;
|
982
|
-
}
|
983
|
-
|
984
|
-
:host([data-size='sm']) > svg {
|
985
|
-
width: 12px;
|
986
|
-
height: 12px;
|
987
|
-
}
|
988
|
-
|
989
|
-
:host([data-size='md']) > svg {
|
990
|
-
width: 16px;
|
991
|
-
height: 16px;
|
992
|
-
}
|
993
|
-
|
994
|
-
:host([data-size='lg']) > svg {
|
995
|
-
width: 24px;
|
996
|
-
height: 24px;
|
997
|
-
}
|
998
|
-
|
999
|
-
:host([data-size='xl']) > svg {
|
1000
|
-
width: 32px;
|
1001
|
-
height: 32px;
|
1002
|
-
}
|
1003
|
-
|
1004
|
-
svg {
|
1005
|
-
animation: rotate 2s linear infinite;
|
1006
|
-
}
|
1007
|
-
|
1008
|
-
circle {
|
1009
|
-
fill: none;
|
1010
|
-
stroke: var(--local-color);
|
1011
|
-
stroke-width: 4px;
|
1012
|
-
stroke-dasharray: 1, 124;
|
1013
|
-
stroke-dashoffset: 0;
|
1014
|
-
stroke-linecap: round;
|
1015
|
-
animation: dash 1.5s ease-in-out infinite;
|
1016
|
-
}
|
1017
|
-
|
1018
|
-
:host([data-size='md']) > svg > circle {
|
1019
|
-
stroke-width: 6px;
|
1020
|
-
}
|
1021
|
-
|
1022
|
-
:host([data-size='sm']) > svg > circle {
|
1023
|
-
stroke-width: 8px;
|
1024
|
-
}
|
1025
|
-
|
1026
|
-
@keyframes rotate {
|
1027
|
-
100% {
|
1028
|
-
transform: rotate(360deg);
|
1029
|
-
}
|
1030
|
-
}
|
1031
|
-
|
1032
|
-
@keyframes dash {
|
1033
|
-
0% {
|
1034
|
-
stroke-dasharray: 1, 124;
|
1035
|
-
stroke-dashoffset: 0;
|
1036
|
-
}
|
1037
|
-
|
1038
|
-
50% {
|
1039
|
-
stroke-dasharray: 90, 124;
|
1040
|
-
stroke-dashoffset: -35;
|
1041
|
-
}
|
1042
|
-
|
1043
|
-
100% {
|
1044
|
-
stroke-dashoffset: -125;
|
1045
|
-
}
|
1046
|
-
}
|
1047
|
-
`;
|
1048
|
-
var __decorate = function(decorators, target, key, desc) {
|
1049
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc, d;
|
1050
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
1051
|
-
else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d = decorators[i3]) r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
|
1052
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
1053
|
-
};
|
1054
|
-
let WuiLoadingSpinner = class WuiLoadingSpinner2 extends i$4 {
|
1055
|
-
constructor() {
|
1056
|
-
super(...arguments);
|
1057
|
-
this.color = "accent-100";
|
1058
|
-
this.size = "lg";
|
1059
|
-
}
|
1060
|
-
render() {
|
1061
|
-
this.style.cssText = `--local-color: ${this.color === "inherit" ? "inherit" : `var(--wui-color-${this.color})`}`;
|
1062
|
-
this.dataset["size"] = this.size;
|
1063
|
-
return x`<svg viewBox="25 25 50 50">
|
1064
|
-
<circle r="20" cy="50" cx="50"></circle>
|
1065
|
-
</svg>`;
|
1066
|
-
}
|
1067
|
-
};
|
1068
|
-
WuiLoadingSpinner.styles = [resetStyles, styles];
|
1069
|
-
__decorate([
|
1070
|
-
n$2()
|
1071
|
-
], WuiLoadingSpinner.prototype, "color", void 0);
|
1072
|
-
__decorate([
|
1073
|
-
n$2()
|
1074
|
-
], WuiLoadingSpinner.prototype, "size", void 0);
|
1075
|
-
WuiLoadingSpinner = __decorate([
|
1076
|
-
customElement("wui-loading-spinner")
|
1077
|
-
], WuiLoadingSpinner);
|
1078
|
-
export {
|
1079
|
-
UiHelperUtil as U,
|
1080
|
-
e as a,
|
1081
|
-
customElement as c,
|
1082
|
-
e$1 as e,
|
1083
|
-
f,
|
1084
|
-
n$2 as n,
|
1085
|
-
o$1 as o,
|
1086
|
-
r$1 as r
|
1087
|
-
};
|