@skip-go/widget 3.16.0-alpha.7 → 3.16.0-alpha.9
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/build/index.js +1 -1
- package/package.json +2 -2
- package/build/add-v29x0mm6.js +0 -19
- package/build/all-wallets-lOcX19oL.js +0 -10
- package/build/app-store-DfTXOcc8.js +0 -21
- package/build/apple-D4Sx8EcN.js +0 -22
- package/build/arrow-bottom-CMU_oG4r.js +0 -12
- package/build/arrow-bottom-circle-FVHYGJ-p.js +0 -15
- package/build/arrow-left-Cx2KHijj.js +0 -12
- package/build/arrow-right-BBtl2-Wz.js +0 -12
- package/build/arrow-top-BRv9mudH.js +0 -12
- package/build/bank-DfvVO7Sa.js +0 -18
- package/build/basic-BUjQjoOi.js +0 -6930
- package/build/browser-CXcWW0-S.js +0 -18
- package/build/card-Cbugq2Bj.js +0 -18
- package/build/checkmark-Cie7dpdw.js +0 -15
- package/build/checkmark-bold-CWMZYsqt.js +0 -12
- package/build/chevron-bottom-DqEwUnAo.js +0 -12
- package/build/chevron-left-Bm0Y4uGN.js +0 -12
- package/build/chevron-right-PY4c4a9D.js +0 -12
- package/build/chevron-top-DB1mV6nS.js +0 -12
- package/build/chrome-store-BSW8qQcD.js +0 -65
- package/build/clock-DYEG-zl5.js +0 -12
- package/build/close-BCMzIQSm.js +0 -12
- package/build/coinPlaceholder-95TFTD-I.js +0 -12
- package/build/compass-Dn8ZK1RD.js +0 -12
- package/build/copy-7PL_qkV9.js +0 -19
- package/build/core-DVubNYDg.js +0 -13138
- package/build/cursor-BRaErkFy.js +0 -7
- package/build/cursor-transparent-g_ZI-590.js +0 -16
- package/build/desktop-DtejMbI_.js +0 -13
- package/build/disconnect-BiH65qJA.js +0 -12
- package/build/discord-D933vvzH.js +0 -21
- package/build/etherscan-CNmB6zbt.js +0 -10
- package/build/exclamation-triangle-BmuXYKN0.js +0 -8
- package/build/extension-BN3jdy4H.js +0 -12
- package/build/external-link-B4IYl-Fl.js +0 -12
- package/build/facebook-chmlY8bG.js +0 -30
- package/build/farcaster-BAId7wW0.js +0 -16
- package/build/filters-B-M6pC7-.js +0 -12
- package/build/github-FfxHGpib.js +0 -22
- package/build/google-xfFkZrVF.js +0 -22
- package/build/help-circle-BvcHjEYH.js +0 -16
- package/build/id-D2YPzJpf.js +0 -16
- package/build/image-xa2V-puy.js +0 -8
- package/build/index-DbPcg6xn.js +0 -56840
- package/build/index-PP1644DG.js +0 -1132
- package/build/index.es-CXzHtmxO.js +0 -6945
- package/build/info-CB8IBHPb.js +0 -7
- package/build/info-circle-Dn-FvgRW.js +0 -16
- package/build/lightbulb-RE1b5OK-.js +0 -7
- package/build/mail-xKxqMyy9.js +0 -12
- package/build/mobile-B55mGzBo.js +0 -13
- package/build/more-2qu1lg_G.js +0 -15
- package/build/network-placeholder-C91E1pBy.js +0 -18
- package/build/nftPlaceholder-CYuDI_qu.js +0 -12
- package/build/off-BzzF5QfT.js +0 -12
- package/build/play-store-Dma20qVE.js +0 -36
- package/build/plus-BJOzU07U.js +0 -17
- package/build/qr-code-B5Vd3V8z.js +0 -10
- package/build/recycle-horizontal-Deh94rHP.js +0 -13
- package/build/refresh-DJNbLKWy.js +0 -12
- package/build/reown-logo-CbQPcjDu.js +0 -16
- package/build/search-CVPt-aXc.js +0 -12
- package/build/send-1pi_q7Do.js +0 -19
- package/build/swapHorizontal-CtL8Xa4t.js +0 -12
- package/build/swapHorizontalBold-D3SqQfLr.js +0 -12
- package/build/swapHorizontalMedium-C0yfDfbd.js +0 -20
- package/build/swapHorizontalRoundedBold-2SrArNX8.js +0 -12
- package/build/swapVertical-CC6OMmoT.js +0 -12
- package/build/telegram-mmcTiZU1.js +0 -20
- package/build/three-dots-BiTlwO_9.js +0 -9
- package/build/twitch-CKFdl8xj.js +0 -22
- package/build/twitterIcon-B4cWx5nh.js +0 -10
- package/build/verify-C4_T-zdG.js +0 -12
- package/build/verify-filled-BE2nsNyw.js +0 -12
- package/build/w3m-modal-BlFypHeK.js +0 -1721
- package/build/wallet-CQyN3rh7.js +0 -12
- package/build/wallet-placeholder-DI4TgOAP.js +0 -18
- package/build/walletconnect-C4vzeVMO.js +0 -38
- package/build/warning-circle-CEIcL_RS.js +0 -16
- package/build/x-DSPgxtCi.js +0 -16
package/build/index-PP1644DG.js
DELETED
|
@@ -1,1132 +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-DVubNYDg.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
|
-
/**
|
|
138
|
-
* @license
|
|
139
|
-
* Copyright 2017 Google LLC
|
|
140
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
141
|
-
*/
|
|
142
|
-
const o$2 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f$2 }, r$2 = (t2 = o$2, e2, r2) => {
|
|
143
|
-
const { kind: n2, metadata: i3 } = r2;
|
|
144
|
-
let s2 = globalThis.litPropertyMetadata.get(i3);
|
|
145
|
-
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) {
|
|
146
|
-
const { name: o2 } = r2;
|
|
147
|
-
return { set(r3) {
|
|
148
|
-
const n3 = e2.get.call(this);
|
|
149
|
-
e2.set.call(this, r3), this.requestUpdate(o2, n3, t2);
|
|
150
|
-
}, init(e3) {
|
|
151
|
-
return void 0 !== e3 && this.C(o2, void 0, t2, e3), e3;
|
|
152
|
-
} };
|
|
153
|
-
}
|
|
154
|
-
if ("setter" === n2) {
|
|
155
|
-
const { name: o2 } = r2;
|
|
156
|
-
return function(r3) {
|
|
157
|
-
const n3 = this[o2];
|
|
158
|
-
e2.call(this, r3), this.requestUpdate(o2, n3, t2);
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
throw Error("Unsupported decorator location: " + n2);
|
|
162
|
-
};
|
|
163
|
-
function n$2(t2) {
|
|
164
|
-
return (e2, o2) => "object" == typeof o2 ? r$2(t2, e2, o2) : ((t3, e3, o3) => {
|
|
165
|
-
const r2 = e3.hasOwnProperty(o3);
|
|
166
|
-
return e3.constructor.createProperty(o3, t3), r2 ? Object.getOwnPropertyDescriptor(e3, o3) : void 0;
|
|
167
|
-
})(t2, e2, o2);
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* @license
|
|
171
|
-
* Copyright 2017 Google LLC
|
|
172
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
173
|
-
*/
|
|
174
|
-
function r$1(r2) {
|
|
175
|
-
return n$2({ ...r2, state: true, attribute: false });
|
|
176
|
-
}
|
|
177
|
-
const styles$6 = i$3`
|
|
178
|
-
:host {
|
|
179
|
-
display: flex;
|
|
180
|
-
width: inherit;
|
|
181
|
-
height: inherit;
|
|
182
|
-
}
|
|
183
|
-
`;
|
|
184
|
-
var __decorate$6 = function(decorators, target, key, desc) {
|
|
185
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
186
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
187
|
-
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;
|
|
188
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
189
|
-
};
|
|
190
|
-
let WuiFlex = class WuiFlex2 extends i$4 {
|
|
191
|
-
render() {
|
|
192
|
-
this.style.cssText = `
|
|
193
|
-
flex-direction: ${this.flexDirection};
|
|
194
|
-
flex-wrap: ${this.flexWrap};
|
|
195
|
-
flex-basis: ${this.flexBasis};
|
|
196
|
-
flex-grow: ${this.flexGrow};
|
|
197
|
-
flex-shrink: ${this.flexShrink};
|
|
198
|
-
align-items: ${this.alignItems};
|
|
199
|
-
justify-content: ${this.justifyContent};
|
|
200
|
-
column-gap: ${this.columnGap && `var(--wui-spacing-${this.columnGap})`};
|
|
201
|
-
row-gap: ${this.rowGap && `var(--wui-spacing-${this.rowGap})`};
|
|
202
|
-
gap: ${this.gap && `var(--wui-spacing-${this.gap})`};
|
|
203
|
-
padding-top: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 0)};
|
|
204
|
-
padding-right: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 1)};
|
|
205
|
-
padding-bottom: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 2)};
|
|
206
|
-
padding-left: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 3)};
|
|
207
|
-
margin-top: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 0)};
|
|
208
|
-
margin-right: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 1)};
|
|
209
|
-
margin-bottom: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 2)};
|
|
210
|
-
margin-left: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 3)};
|
|
211
|
-
`;
|
|
212
|
-
return x`<slot></slot>`;
|
|
213
|
-
}
|
|
214
|
-
};
|
|
215
|
-
WuiFlex.styles = [resetStyles, styles$6];
|
|
216
|
-
__decorate$6([
|
|
217
|
-
n$2()
|
|
218
|
-
], WuiFlex.prototype, "flexDirection", void 0);
|
|
219
|
-
__decorate$6([
|
|
220
|
-
n$2()
|
|
221
|
-
], WuiFlex.prototype, "flexWrap", void 0);
|
|
222
|
-
__decorate$6([
|
|
223
|
-
n$2()
|
|
224
|
-
], WuiFlex.prototype, "flexBasis", void 0);
|
|
225
|
-
__decorate$6([
|
|
226
|
-
n$2()
|
|
227
|
-
], WuiFlex.prototype, "flexGrow", void 0);
|
|
228
|
-
__decorate$6([
|
|
229
|
-
n$2()
|
|
230
|
-
], WuiFlex.prototype, "flexShrink", void 0);
|
|
231
|
-
__decorate$6([
|
|
232
|
-
n$2()
|
|
233
|
-
], WuiFlex.prototype, "alignItems", void 0);
|
|
234
|
-
__decorate$6([
|
|
235
|
-
n$2()
|
|
236
|
-
], WuiFlex.prototype, "justifyContent", void 0);
|
|
237
|
-
__decorate$6([
|
|
238
|
-
n$2()
|
|
239
|
-
], WuiFlex.prototype, "columnGap", void 0);
|
|
240
|
-
__decorate$6([
|
|
241
|
-
n$2()
|
|
242
|
-
], WuiFlex.prototype, "rowGap", void 0);
|
|
243
|
-
__decorate$6([
|
|
244
|
-
n$2()
|
|
245
|
-
], WuiFlex.prototype, "gap", void 0);
|
|
246
|
-
__decorate$6([
|
|
247
|
-
n$2()
|
|
248
|
-
], WuiFlex.prototype, "padding", void 0);
|
|
249
|
-
__decorate$6([
|
|
250
|
-
n$2()
|
|
251
|
-
], WuiFlex.prototype, "margin", void 0);
|
|
252
|
-
WuiFlex = __decorate$6([
|
|
253
|
-
customElement("wui-flex")
|
|
254
|
-
], WuiFlex);
|
|
255
|
-
/**
|
|
256
|
-
* @license
|
|
257
|
-
* Copyright 2018 Google LLC
|
|
258
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
259
|
-
*/
|
|
260
|
-
const o$1 = (o2) => o2 ?? E;
|
|
261
|
-
/**
|
|
262
|
-
* @license
|
|
263
|
-
* Copyright 2020 Google LLC
|
|
264
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
265
|
-
*/
|
|
266
|
-
const i$2 = (o2) => null === o2 || "object" != typeof o2 && "function" != typeof o2, f$1 = (o2) => void 0 === o2.strings;
|
|
267
|
-
/**
|
|
268
|
-
* @license
|
|
269
|
-
* Copyright 2017 Google LLC
|
|
270
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
271
|
-
*/
|
|
272
|
-
const t = { ATTRIBUTE: 1, CHILD: 2 }, e$1 = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 });
|
|
273
|
-
let i$1 = class i {
|
|
274
|
-
constructor(t2) {
|
|
275
|
-
}
|
|
276
|
-
get _$AU() {
|
|
277
|
-
return this._$AM._$AU;
|
|
278
|
-
}
|
|
279
|
-
_$AT(t2, e2, i3) {
|
|
280
|
-
this._$Ct = t2, this._$AM = e2, this._$Ci = i3;
|
|
281
|
-
}
|
|
282
|
-
_$AS(t2, e2) {
|
|
283
|
-
return this.update(t2, e2);
|
|
284
|
-
}
|
|
285
|
-
update(t2, e2) {
|
|
286
|
-
return this.render(...e2);
|
|
287
|
-
}
|
|
288
|
-
};
|
|
289
|
-
/**
|
|
290
|
-
* @license
|
|
291
|
-
* Copyright 2017 Google LLC
|
|
292
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
293
|
-
*/
|
|
294
|
-
const s$1 = (i3, t2) => {
|
|
295
|
-
var _a;
|
|
296
|
-
const e2 = i3._$AN;
|
|
297
|
-
if (void 0 === e2) return false;
|
|
298
|
-
for (const i4 of e2) (_a = i4._$AO) == null ? void 0 : _a.call(i4, t2, false), s$1(i4, t2);
|
|
299
|
-
return true;
|
|
300
|
-
}, o = (i3) => {
|
|
301
|
-
let t2, e2;
|
|
302
|
-
do {
|
|
303
|
-
if (void 0 === (t2 = i3._$AM)) break;
|
|
304
|
-
e2 = t2._$AN, e2.delete(i3), i3 = t2;
|
|
305
|
-
} while (0 === (e2 == null ? void 0 : e2.size));
|
|
306
|
-
}, r = (i3) => {
|
|
307
|
-
for (let t2; t2 = i3._$AM; i3 = t2) {
|
|
308
|
-
let e2 = t2._$AN;
|
|
309
|
-
if (void 0 === e2) t2._$AN = e2 = /* @__PURE__ */ new Set();
|
|
310
|
-
else if (e2.has(i3)) break;
|
|
311
|
-
e2.add(i3), c$1(t2);
|
|
312
|
-
}
|
|
313
|
-
};
|
|
314
|
-
function h$1(i3) {
|
|
315
|
-
void 0 !== this._$AN ? (o(this), this._$AM = i3, r(this)) : this._$AM = i3;
|
|
316
|
-
}
|
|
317
|
-
function n$1(i3, t2 = false, e2 = 0) {
|
|
318
|
-
const r2 = this._$AH, h2 = this._$AN;
|
|
319
|
-
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]);
|
|
320
|
-
else null != r2 && (s$1(r2, false), o(r2));
|
|
321
|
-
else s$1(this, i3);
|
|
322
|
-
}
|
|
323
|
-
const c$1 = (i3) => {
|
|
324
|
-
i3.type == t.CHILD && (i3._$AP ?? (i3._$AP = n$1), i3._$AQ ?? (i3._$AQ = h$1));
|
|
325
|
-
};
|
|
326
|
-
class f extends i$1 {
|
|
327
|
-
constructor() {
|
|
328
|
-
super(...arguments), this._$AN = void 0;
|
|
329
|
-
}
|
|
330
|
-
_$AT(i3, t2, e2) {
|
|
331
|
-
super._$AT(i3, t2, e2), r(this), this.isConnected = i3._$AU;
|
|
332
|
-
}
|
|
333
|
-
_$AO(i3, t2 = true) {
|
|
334
|
-
var _a, _b;
|
|
335
|
-
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));
|
|
336
|
-
}
|
|
337
|
-
setValue(t2) {
|
|
338
|
-
if (f$1(this._$Ct)) this._$Ct._$AI(t2, this);
|
|
339
|
-
else {
|
|
340
|
-
const i3 = [...this._$Ct._$AH];
|
|
341
|
-
i3[this._$Ci] = t2, this._$Ct._$AI(i3, this, 0);
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
disconnected() {
|
|
345
|
-
}
|
|
346
|
-
reconnected() {
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
/**
|
|
350
|
-
* @license
|
|
351
|
-
* Copyright 2021 Google LLC
|
|
352
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
353
|
-
*/
|
|
354
|
-
class s {
|
|
355
|
-
constructor(t2) {
|
|
356
|
-
this.G = t2;
|
|
357
|
-
}
|
|
358
|
-
disconnect() {
|
|
359
|
-
this.G = void 0;
|
|
360
|
-
}
|
|
361
|
-
reconnect(t2) {
|
|
362
|
-
this.G = t2;
|
|
363
|
-
}
|
|
364
|
-
deref() {
|
|
365
|
-
return this.G;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
class i2 {
|
|
369
|
-
constructor() {
|
|
370
|
-
this.Y = void 0, this.Z = void 0;
|
|
371
|
-
}
|
|
372
|
-
get() {
|
|
373
|
-
return this.Y;
|
|
374
|
-
}
|
|
375
|
-
pause() {
|
|
376
|
-
this.Y ?? (this.Y = new Promise((t2) => this.Z = t2));
|
|
377
|
-
}
|
|
378
|
-
resume() {
|
|
379
|
-
var _a;
|
|
380
|
-
(_a = this.Z) == null ? void 0 : _a.call(this), this.Y = this.Z = void 0;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* @license
|
|
385
|
-
* Copyright 2017 Google LLC
|
|
386
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
387
|
-
*/
|
|
388
|
-
const n = (t2) => !i$2(t2) && "function" == typeof t2.then, h = 1073741823;
|
|
389
|
-
class c extends f {
|
|
390
|
-
constructor() {
|
|
391
|
-
super(...arguments), this._$Cwt = h, this._$Cbt = [], this._$CK = new s(this), this._$CX = new i2();
|
|
392
|
-
}
|
|
393
|
-
render(...s2) {
|
|
394
|
-
return s2.find((t2) => !n(t2)) ?? T;
|
|
395
|
-
}
|
|
396
|
-
update(s2, i3) {
|
|
397
|
-
const e2 = this._$Cbt;
|
|
398
|
-
let r2 = e2.length;
|
|
399
|
-
this._$Cbt = i3;
|
|
400
|
-
const o2 = this._$CK, c2 = this._$CX;
|
|
401
|
-
this.isConnected || this.disconnected();
|
|
402
|
-
for (let t2 = 0; t2 < i3.length && !(t2 > this._$Cwt); t2++) {
|
|
403
|
-
const s3 = i3[t2];
|
|
404
|
-
if (!n(s3)) return this._$Cwt = t2, s3;
|
|
405
|
-
t2 < r2 && s3 === e2[t2] || (this._$Cwt = h, r2 = 0, Promise.resolve(s3).then(async (t3) => {
|
|
406
|
-
for (; c2.get(); ) await c2.get();
|
|
407
|
-
const i4 = o2.deref();
|
|
408
|
-
if (void 0 !== i4) {
|
|
409
|
-
const e3 = i4._$Cbt.indexOf(s3);
|
|
410
|
-
e3 > -1 && e3 < i4._$Cwt && (i4._$Cwt = e3, i4.setValue(t3));
|
|
411
|
-
}
|
|
412
|
-
}));
|
|
413
|
-
}
|
|
414
|
-
return T;
|
|
415
|
-
}
|
|
416
|
-
disconnected() {
|
|
417
|
-
this._$CK.disconnect(), this._$CX.pause();
|
|
418
|
-
}
|
|
419
|
-
reconnected() {
|
|
420
|
-
this._$CK.reconnect(this), this._$CX.resume();
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
const m = e$1(c);
|
|
424
|
-
class CacheUtil {
|
|
425
|
-
constructor() {
|
|
426
|
-
this.cache = /* @__PURE__ */ new Map();
|
|
427
|
-
}
|
|
428
|
-
set(key, value) {
|
|
429
|
-
this.cache.set(key, value);
|
|
430
|
-
}
|
|
431
|
-
get(key) {
|
|
432
|
-
return this.cache.get(key);
|
|
433
|
-
}
|
|
434
|
-
has(key) {
|
|
435
|
-
return this.cache.has(key);
|
|
436
|
-
}
|
|
437
|
-
delete(key) {
|
|
438
|
-
this.cache.delete(key);
|
|
439
|
-
}
|
|
440
|
-
clear() {
|
|
441
|
-
this.cache.clear();
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
const globalSvgCache = new CacheUtil();
|
|
445
|
-
const styles$5 = i$3`
|
|
446
|
-
:host {
|
|
447
|
-
display: flex;
|
|
448
|
-
aspect-ratio: var(--local-aspect-ratio);
|
|
449
|
-
color: var(--local-color);
|
|
450
|
-
width: var(--local-width);
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
svg {
|
|
454
|
-
width: inherit;
|
|
455
|
-
height: inherit;
|
|
456
|
-
object-fit: contain;
|
|
457
|
-
object-position: center;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
.fallback {
|
|
461
|
-
width: var(--local-width);
|
|
462
|
-
height: var(--local-height);
|
|
463
|
-
}
|
|
464
|
-
`;
|
|
465
|
-
var __decorate$5 = function(decorators, target, key, desc) {
|
|
466
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
467
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
468
|
-
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;
|
|
469
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
470
|
-
};
|
|
471
|
-
const ICONS = {
|
|
472
|
-
add: async () => (await import("./add-v29x0mm6.js")).addSvg,
|
|
473
|
-
allWallets: async () => (await import("./all-wallets-lOcX19oL.js")).allWalletsSvg,
|
|
474
|
-
arrowBottomCircle: async () => (await import("./arrow-bottom-circle-FVHYGJ-p.js")).arrowBottomCircleSvg,
|
|
475
|
-
appStore: async () => (await import("./app-store-DfTXOcc8.js")).appStoreSvg,
|
|
476
|
-
apple: async () => (await import("./apple-D4Sx8EcN.js")).appleSvg,
|
|
477
|
-
arrowBottom: async () => (await import("./arrow-bottom-CMU_oG4r.js")).arrowBottomSvg,
|
|
478
|
-
arrowLeft: async () => (await import("./arrow-left-Cx2KHijj.js")).arrowLeftSvg,
|
|
479
|
-
arrowRight: async () => (await import("./arrow-right-BBtl2-Wz.js")).arrowRightSvg,
|
|
480
|
-
arrowTop: async () => (await import("./arrow-top-BRv9mudH.js")).arrowTopSvg,
|
|
481
|
-
bank: async () => (await import("./bank-DfvVO7Sa.js")).bankSvg,
|
|
482
|
-
browser: async () => (await import("./browser-CXcWW0-S.js")).browserSvg,
|
|
483
|
-
card: async () => (await import("./card-Cbugq2Bj.js")).cardSvg,
|
|
484
|
-
checkmark: async () => (await import("./checkmark-Cie7dpdw.js")).checkmarkSvg,
|
|
485
|
-
checkmarkBold: async () => (await import("./checkmark-bold-CWMZYsqt.js")).checkmarkBoldSvg,
|
|
486
|
-
chevronBottom: async () => (await import("./chevron-bottom-DqEwUnAo.js")).chevronBottomSvg,
|
|
487
|
-
chevronLeft: async () => (await import("./chevron-left-Bm0Y4uGN.js")).chevronLeftSvg,
|
|
488
|
-
chevronRight: async () => (await import("./chevron-right-PY4c4a9D.js")).chevronRightSvg,
|
|
489
|
-
chevronTop: async () => (await import("./chevron-top-DB1mV6nS.js")).chevronTopSvg,
|
|
490
|
-
chromeStore: async () => (await import("./chrome-store-BSW8qQcD.js")).chromeStoreSvg,
|
|
491
|
-
clock: async () => (await import("./clock-DYEG-zl5.js")).clockSvg,
|
|
492
|
-
close: async () => (await import("./close-BCMzIQSm.js")).closeSvg,
|
|
493
|
-
compass: async () => (await import("./compass-Dn8ZK1RD.js")).compassSvg,
|
|
494
|
-
coinPlaceholder: async () => (await import("./coinPlaceholder-95TFTD-I.js")).coinPlaceholderSvg,
|
|
495
|
-
copy: async () => (await import("./copy-7PL_qkV9.js")).copySvg,
|
|
496
|
-
cursor: async () => (await import("./cursor-BRaErkFy.js")).cursorSvg,
|
|
497
|
-
cursorTransparent: async () => (await import("./cursor-transparent-g_ZI-590.js")).cursorTransparentSvg,
|
|
498
|
-
desktop: async () => (await import("./desktop-DtejMbI_.js")).desktopSvg,
|
|
499
|
-
disconnect: async () => (await import("./disconnect-BiH65qJA.js")).disconnectSvg,
|
|
500
|
-
discord: async () => (await import("./discord-D933vvzH.js")).discordSvg,
|
|
501
|
-
etherscan: async () => (await import("./etherscan-CNmB6zbt.js")).etherscanSvg,
|
|
502
|
-
extension: async () => (await import("./extension-BN3jdy4H.js")).extensionSvg,
|
|
503
|
-
externalLink: async () => (await import("./external-link-B4IYl-Fl.js")).externalLinkSvg,
|
|
504
|
-
facebook: async () => (await import("./facebook-chmlY8bG.js")).facebookSvg,
|
|
505
|
-
farcaster: async () => (await import("./farcaster-BAId7wW0.js")).farcasterSvg,
|
|
506
|
-
filters: async () => (await import("./filters-B-M6pC7-.js")).filtersSvg,
|
|
507
|
-
github: async () => (await import("./github-FfxHGpib.js")).githubSvg,
|
|
508
|
-
google: async () => (await import("./google-xfFkZrVF.js")).googleSvg,
|
|
509
|
-
helpCircle: async () => (await import("./help-circle-BvcHjEYH.js")).helpCircleSvg,
|
|
510
|
-
image: async () => (await import("./image-xa2V-puy.js")).imageSvg,
|
|
511
|
-
id: async () => (await import("./id-D2YPzJpf.js")).idSvg,
|
|
512
|
-
infoCircle: async () => (await import("./info-circle-Dn-FvgRW.js")).infoCircleSvg,
|
|
513
|
-
lightbulb: async () => (await import("./lightbulb-RE1b5OK-.js")).lightbulbSvg,
|
|
514
|
-
mail: async () => (await import("./mail-xKxqMyy9.js")).mailSvg,
|
|
515
|
-
mobile: async () => (await import("./mobile-B55mGzBo.js")).mobileSvg,
|
|
516
|
-
more: async () => (await import("./more-2qu1lg_G.js")).moreSvg,
|
|
517
|
-
networkPlaceholder: async () => (await import("./network-placeholder-C91E1pBy.js")).networkPlaceholderSvg,
|
|
518
|
-
nftPlaceholder: async () => (await import("./nftPlaceholder-CYuDI_qu.js")).nftPlaceholderSvg,
|
|
519
|
-
off: async () => (await import("./off-BzzF5QfT.js")).offSvg,
|
|
520
|
-
playStore: async () => (await import("./play-store-Dma20qVE.js")).playStoreSvg,
|
|
521
|
-
plus: async () => (await import("./plus-BJOzU07U.js")).plusSvg,
|
|
522
|
-
qrCode: async () => (await import("./qr-code-B5Vd3V8z.js")).qrCodeIcon,
|
|
523
|
-
recycleHorizontal: async () => (await import("./recycle-horizontal-Deh94rHP.js")).recycleHorizontalSvg,
|
|
524
|
-
refresh: async () => (await import("./refresh-DJNbLKWy.js")).refreshSvg,
|
|
525
|
-
search: async () => (await import("./search-CVPt-aXc.js")).searchSvg,
|
|
526
|
-
send: async () => (await import("./send-1pi_q7Do.js")).sendSvg,
|
|
527
|
-
swapHorizontal: async () => (await import("./swapHorizontal-CtL8Xa4t.js")).swapHorizontalSvg,
|
|
528
|
-
swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-C0yfDfbd.js")).swapHorizontalMediumSvg,
|
|
529
|
-
swapHorizontalBold: async () => (await import("./swapHorizontalBold-D3SqQfLr.js")).swapHorizontalBoldSvg,
|
|
530
|
-
swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-2SrArNX8.js")).swapHorizontalRoundedBoldSvg,
|
|
531
|
-
swapVertical: async () => (await import("./swapVertical-CC6OMmoT.js")).swapVerticalSvg,
|
|
532
|
-
telegram: async () => (await import("./telegram-mmcTiZU1.js")).telegramSvg,
|
|
533
|
-
threeDots: async () => (await import("./three-dots-BiTlwO_9.js")).threeDotsSvg,
|
|
534
|
-
twitch: async () => (await import("./twitch-CKFdl8xj.js")).twitchSvg,
|
|
535
|
-
twitter: async () => (await import("./x-DSPgxtCi.js")).xSvg,
|
|
536
|
-
twitterIcon: async () => (await import("./twitterIcon-B4cWx5nh.js")).twitterIconSvg,
|
|
537
|
-
verify: async () => (await import("./verify-C4_T-zdG.js")).verifySvg,
|
|
538
|
-
verifyFilled: async () => (await import("./verify-filled-BE2nsNyw.js")).verifyFilledSvg,
|
|
539
|
-
wallet: async () => (await import("./wallet-CQyN3rh7.js")).walletSvg,
|
|
540
|
-
walletConnect: async () => (await import("./walletconnect-C4vzeVMO.js")).walletConnectSvg,
|
|
541
|
-
walletConnectLightBrown: async () => (await import("./walletconnect-C4vzeVMO.js")).walletConnectLightBrownSvg,
|
|
542
|
-
walletConnectBrown: async () => (await import("./walletconnect-C4vzeVMO.js")).walletConnectBrownSvg,
|
|
543
|
-
walletPlaceholder: async () => (await import("./wallet-placeholder-DI4TgOAP.js")).walletPlaceholderSvg,
|
|
544
|
-
warningCircle: async () => (await import("./warning-circle-CEIcL_RS.js")).warningCircleSvg,
|
|
545
|
-
x: async () => (await import("./x-DSPgxtCi.js")).xSvg,
|
|
546
|
-
info: async () => (await import("./info-CB8IBHPb.js")).infoSvg,
|
|
547
|
-
exclamationTriangle: async () => (await import("./exclamation-triangle-BmuXYKN0.js")).exclamationTriangleSvg,
|
|
548
|
-
reown: async () => (await import("./reown-logo-CbQPcjDu.js")).reownSvg
|
|
549
|
-
};
|
|
550
|
-
async function getSvg(name) {
|
|
551
|
-
if (globalSvgCache.has(name)) {
|
|
552
|
-
return globalSvgCache.get(name);
|
|
553
|
-
}
|
|
554
|
-
const importFn = ICONS[name] ?? ICONS.copy;
|
|
555
|
-
const svgPromise = importFn();
|
|
556
|
-
globalSvgCache.set(name, svgPromise);
|
|
557
|
-
return svgPromise;
|
|
558
|
-
}
|
|
559
|
-
let WuiIcon = class WuiIcon2 extends i$4 {
|
|
560
|
-
constructor() {
|
|
561
|
-
super(...arguments);
|
|
562
|
-
this.size = "md";
|
|
563
|
-
this.name = "copy";
|
|
564
|
-
this.color = "fg-300";
|
|
565
|
-
this.aspectRatio = "1 / 1";
|
|
566
|
-
}
|
|
567
|
-
render() {
|
|
568
|
-
this.style.cssText = `
|
|
569
|
-
--local-color: ${`var(--wui-color-${this.color});`}
|
|
570
|
-
--local-width: ${`var(--wui-icon-size-${this.size});`}
|
|
571
|
-
--local-aspect-ratio: ${this.aspectRatio}
|
|
572
|
-
`;
|
|
573
|
-
return x`${m(getSvg(this.name), x`<div class="fallback"></div>`)}`;
|
|
574
|
-
}
|
|
575
|
-
};
|
|
576
|
-
WuiIcon.styles = [resetStyles, colorStyles, styles$5];
|
|
577
|
-
__decorate$5([
|
|
578
|
-
n$2()
|
|
579
|
-
], WuiIcon.prototype, "size", void 0);
|
|
580
|
-
__decorate$5([
|
|
581
|
-
n$2()
|
|
582
|
-
], WuiIcon.prototype, "name", void 0);
|
|
583
|
-
__decorate$5([
|
|
584
|
-
n$2()
|
|
585
|
-
], WuiIcon.prototype, "color", void 0);
|
|
586
|
-
__decorate$5([
|
|
587
|
-
n$2()
|
|
588
|
-
], WuiIcon.prototype, "aspectRatio", void 0);
|
|
589
|
-
WuiIcon = __decorate$5([
|
|
590
|
-
customElement("wui-icon")
|
|
591
|
-
], WuiIcon);
|
|
592
|
-
/**
|
|
593
|
-
* @license
|
|
594
|
-
* Copyright 2018 Google LLC
|
|
595
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
596
|
-
*/
|
|
597
|
-
const e = e$1(class extends i$1 {
|
|
598
|
-
constructor(t$1) {
|
|
599
|
-
var _a;
|
|
600
|
-
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.");
|
|
601
|
-
}
|
|
602
|
-
render(t2) {
|
|
603
|
-
return " " + Object.keys(t2).filter((s2) => t2[s2]).join(" ") + " ";
|
|
604
|
-
}
|
|
605
|
-
update(s2, [i3]) {
|
|
606
|
-
var _a, _b;
|
|
607
|
-
if (void 0 === this.st) {
|
|
608
|
-
this.st = /* @__PURE__ */ new Set(), void 0 !== s2.strings && (this.nt = new Set(s2.strings.join(" ").split(/\s/).filter((t2) => "" !== t2)));
|
|
609
|
-
for (const t2 in i3) i3[t2] && !((_a = this.nt) == null ? void 0 : _a.has(t2)) && this.st.add(t2);
|
|
610
|
-
return this.render(i3);
|
|
611
|
-
}
|
|
612
|
-
const r2 = s2.element.classList;
|
|
613
|
-
for (const t2 of this.st) t2 in i3 || (r2.remove(t2), this.st.delete(t2));
|
|
614
|
-
for (const t2 in i3) {
|
|
615
|
-
const s3 = !!i3[t2];
|
|
616
|
-
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)));
|
|
617
|
-
}
|
|
618
|
-
return T;
|
|
619
|
-
}
|
|
620
|
-
});
|
|
621
|
-
const styles$4 = i$3`
|
|
622
|
-
:host {
|
|
623
|
-
display: inline-flex !important;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
slot {
|
|
627
|
-
width: 100%;
|
|
628
|
-
display: inline-block;
|
|
629
|
-
font-style: normal;
|
|
630
|
-
font-family: var(--wui-font-family);
|
|
631
|
-
font-feature-settings:
|
|
632
|
-
'tnum' on,
|
|
633
|
-
'lnum' on,
|
|
634
|
-
'case' on;
|
|
635
|
-
line-height: 130%;
|
|
636
|
-
font-weight: var(--wui-font-weight-regular);
|
|
637
|
-
overflow: inherit;
|
|
638
|
-
text-overflow: inherit;
|
|
639
|
-
text-align: var(--local-align);
|
|
640
|
-
color: var(--local-color);
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
.wui-line-clamp-1 {
|
|
644
|
-
overflow: hidden;
|
|
645
|
-
display: -webkit-box;
|
|
646
|
-
-webkit-box-orient: vertical;
|
|
647
|
-
-webkit-line-clamp: 1;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
.wui-line-clamp-2 {
|
|
651
|
-
overflow: hidden;
|
|
652
|
-
display: -webkit-box;
|
|
653
|
-
-webkit-box-orient: vertical;
|
|
654
|
-
-webkit-line-clamp: 2;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
.wui-font-medium-400 {
|
|
658
|
-
font-size: var(--wui-font-size-medium);
|
|
659
|
-
font-weight: var(--wui-font-weight-light);
|
|
660
|
-
letter-spacing: var(--wui-letter-spacing-medium);
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
.wui-font-medium-600 {
|
|
664
|
-
font-size: var(--wui-font-size-medium);
|
|
665
|
-
letter-spacing: var(--wui-letter-spacing-medium);
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
.wui-font-title-600 {
|
|
669
|
-
font-size: var(--wui-font-size-title);
|
|
670
|
-
letter-spacing: var(--wui-letter-spacing-title);
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
.wui-font-title-6-600 {
|
|
674
|
-
font-size: var(--wui-font-size-title-6);
|
|
675
|
-
letter-spacing: var(--wui-letter-spacing-title-6);
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
.wui-font-mini-700 {
|
|
679
|
-
font-size: var(--wui-font-size-mini);
|
|
680
|
-
letter-spacing: var(--wui-letter-spacing-mini);
|
|
681
|
-
text-transform: uppercase;
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
.wui-font-large-500,
|
|
685
|
-
.wui-font-large-600,
|
|
686
|
-
.wui-font-large-700 {
|
|
687
|
-
font-size: var(--wui-font-size-large);
|
|
688
|
-
letter-spacing: var(--wui-letter-spacing-large);
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
.wui-font-2xl-500,
|
|
692
|
-
.wui-font-2xl-600,
|
|
693
|
-
.wui-font-2xl-700 {
|
|
694
|
-
font-size: var(--wui-font-size-2xl);
|
|
695
|
-
letter-spacing: var(--wui-letter-spacing-2xl);
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
.wui-font-paragraph-400,
|
|
699
|
-
.wui-font-paragraph-500,
|
|
700
|
-
.wui-font-paragraph-600,
|
|
701
|
-
.wui-font-paragraph-700 {
|
|
702
|
-
font-size: var(--wui-font-size-paragraph);
|
|
703
|
-
letter-spacing: var(--wui-letter-spacing-paragraph);
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
.wui-font-small-400,
|
|
707
|
-
.wui-font-small-500,
|
|
708
|
-
.wui-font-small-600 {
|
|
709
|
-
font-size: var(--wui-font-size-small);
|
|
710
|
-
letter-spacing: var(--wui-letter-spacing-small);
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
.wui-font-tiny-400,
|
|
714
|
-
.wui-font-tiny-500,
|
|
715
|
-
.wui-font-tiny-600 {
|
|
716
|
-
font-size: var(--wui-font-size-tiny);
|
|
717
|
-
letter-spacing: var(--wui-letter-spacing-tiny);
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
.wui-font-micro-700,
|
|
721
|
-
.wui-font-micro-600 {
|
|
722
|
-
font-size: var(--wui-font-size-micro);
|
|
723
|
-
letter-spacing: var(--wui-letter-spacing-micro);
|
|
724
|
-
text-transform: uppercase;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
.wui-font-tiny-400,
|
|
728
|
-
.wui-font-small-400,
|
|
729
|
-
.wui-font-medium-400,
|
|
730
|
-
.wui-font-paragraph-400 {
|
|
731
|
-
font-weight: var(--wui-font-weight-light);
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
.wui-font-large-700,
|
|
735
|
-
.wui-font-paragraph-700,
|
|
736
|
-
.wui-font-micro-700,
|
|
737
|
-
.wui-font-mini-700 {
|
|
738
|
-
font-weight: var(--wui-font-weight-bold);
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
.wui-font-medium-600,
|
|
742
|
-
.wui-font-medium-title-600,
|
|
743
|
-
.wui-font-title-6-600,
|
|
744
|
-
.wui-font-large-600,
|
|
745
|
-
.wui-font-paragraph-600,
|
|
746
|
-
.wui-font-small-600,
|
|
747
|
-
.wui-font-tiny-600,
|
|
748
|
-
.wui-font-micro-600 {
|
|
749
|
-
font-weight: var(--wui-font-weight-medium);
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
:host([disabled]) {
|
|
753
|
-
opacity: 0.4;
|
|
754
|
-
}
|
|
755
|
-
`;
|
|
756
|
-
var __decorate$4 = function(decorators, target, key, desc) {
|
|
757
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
758
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
759
|
-
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;
|
|
760
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
761
|
-
};
|
|
762
|
-
let WuiText = class WuiText2 extends i$4 {
|
|
763
|
-
constructor() {
|
|
764
|
-
super(...arguments);
|
|
765
|
-
this.variant = "paragraph-500";
|
|
766
|
-
this.color = "fg-300";
|
|
767
|
-
this.align = "left";
|
|
768
|
-
this.lineClamp = void 0;
|
|
769
|
-
}
|
|
770
|
-
render() {
|
|
771
|
-
const classes = {
|
|
772
|
-
[`wui-font-${this.variant}`]: true,
|
|
773
|
-
[`wui-color-${this.color}`]: true,
|
|
774
|
-
[`wui-line-clamp-${this.lineClamp}`]: this.lineClamp ? true : false
|
|
775
|
-
};
|
|
776
|
-
this.style.cssText = `
|
|
777
|
-
--local-align: ${this.align};
|
|
778
|
-
--local-color: var(--wui-color-${this.color});
|
|
779
|
-
`;
|
|
780
|
-
return x`<slot class=${e(classes)}></slot>`;
|
|
781
|
-
}
|
|
782
|
-
};
|
|
783
|
-
WuiText.styles = [resetStyles, styles$4];
|
|
784
|
-
__decorate$4([
|
|
785
|
-
n$2()
|
|
786
|
-
], WuiText.prototype, "variant", void 0);
|
|
787
|
-
__decorate$4([
|
|
788
|
-
n$2()
|
|
789
|
-
], WuiText.prototype, "color", void 0);
|
|
790
|
-
__decorate$4([
|
|
791
|
-
n$2()
|
|
792
|
-
], WuiText.prototype, "align", void 0);
|
|
793
|
-
__decorate$4([
|
|
794
|
-
n$2()
|
|
795
|
-
], WuiText.prototype, "lineClamp", void 0);
|
|
796
|
-
WuiText = __decorate$4([
|
|
797
|
-
customElement("wui-text")
|
|
798
|
-
], WuiText);
|
|
799
|
-
const styles$3 = i$3`
|
|
800
|
-
:host {
|
|
801
|
-
display: inline-flex;
|
|
802
|
-
justify-content: center;
|
|
803
|
-
align-items: center;
|
|
804
|
-
position: relative;
|
|
805
|
-
overflow: hidden;
|
|
806
|
-
background-color: var(--wui-color-gray-glass-020);
|
|
807
|
-
border-radius: var(--local-border-radius);
|
|
808
|
-
border: var(--local-border);
|
|
809
|
-
box-sizing: content-box;
|
|
810
|
-
width: var(--local-size);
|
|
811
|
-
height: var(--local-size);
|
|
812
|
-
min-height: var(--local-size);
|
|
813
|
-
min-width: var(--local-size);
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
@supports (background: color-mix(in srgb, white 50%, black)) {
|
|
817
|
-
:host {
|
|
818
|
-
background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent);
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
`;
|
|
822
|
-
var __decorate$3 = function(decorators, target, key, desc) {
|
|
823
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
824
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
825
|
-
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;
|
|
826
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
827
|
-
};
|
|
828
|
-
let WuiIconBox = class WuiIconBox2 extends i$4 {
|
|
829
|
-
constructor() {
|
|
830
|
-
super(...arguments);
|
|
831
|
-
this.size = "md";
|
|
832
|
-
this.backgroundColor = "accent-100";
|
|
833
|
-
this.iconColor = "accent-100";
|
|
834
|
-
this.background = "transparent";
|
|
835
|
-
this.border = false;
|
|
836
|
-
this.borderColor = "wui-color-bg-125";
|
|
837
|
-
this.icon = "copy";
|
|
838
|
-
}
|
|
839
|
-
render() {
|
|
840
|
-
const iconSize = this.iconSize || this.size;
|
|
841
|
-
const isLg = this.size === "lg";
|
|
842
|
-
const isXl = this.size === "xl";
|
|
843
|
-
const bgMix = isLg ? "12%" : "16%";
|
|
844
|
-
const borderRadius = isLg ? "xxs" : isXl ? "s" : "3xl";
|
|
845
|
-
const isGray = this.background === "gray";
|
|
846
|
-
const isOpaque = this.background === "opaque";
|
|
847
|
-
const isColorChange = this.backgroundColor === "accent-100" && isOpaque || this.backgroundColor === "success-100" && isOpaque || this.backgroundColor === "error-100" && isOpaque || this.backgroundColor === "inverse-100" && isOpaque;
|
|
848
|
-
let bgValueVariable = `var(--wui-color-${this.backgroundColor})`;
|
|
849
|
-
if (isColorChange) {
|
|
850
|
-
bgValueVariable = `var(--wui-icon-box-bg-${this.backgroundColor})`;
|
|
851
|
-
} else if (isGray) {
|
|
852
|
-
bgValueVariable = `var(--wui-color-gray-${this.backgroundColor})`;
|
|
853
|
-
}
|
|
854
|
-
this.style.cssText = `
|
|
855
|
-
--local-bg-value: ${bgValueVariable};
|
|
856
|
-
--local-bg-mix: ${isColorChange || isGray ? `100%` : bgMix};
|
|
857
|
-
--local-border-radius: var(--wui-border-radius-${borderRadius});
|
|
858
|
-
--local-size: var(--wui-icon-box-size-${this.size});
|
|
859
|
-
--local-border: ${this.borderColor === "wui-color-bg-125" ? `2px` : `1px`} solid ${this.border ? `var(--${this.borderColor})` : `transparent`}
|
|
860
|
-
`;
|
|
861
|
-
return x` <wui-icon color=${this.iconColor} size=${iconSize} name=${this.icon}></wui-icon> `;
|
|
862
|
-
}
|
|
863
|
-
};
|
|
864
|
-
WuiIconBox.styles = [resetStyles, elementStyles, styles$3];
|
|
865
|
-
__decorate$3([
|
|
866
|
-
n$2()
|
|
867
|
-
], WuiIconBox.prototype, "size", void 0);
|
|
868
|
-
__decorate$3([
|
|
869
|
-
n$2()
|
|
870
|
-
], WuiIconBox.prototype, "backgroundColor", void 0);
|
|
871
|
-
__decorate$3([
|
|
872
|
-
n$2()
|
|
873
|
-
], WuiIconBox.prototype, "iconColor", void 0);
|
|
874
|
-
__decorate$3([
|
|
875
|
-
n$2()
|
|
876
|
-
], WuiIconBox.prototype, "iconSize", void 0);
|
|
877
|
-
__decorate$3([
|
|
878
|
-
n$2()
|
|
879
|
-
], WuiIconBox.prototype, "background", void 0);
|
|
880
|
-
__decorate$3([
|
|
881
|
-
n$2({ type: Boolean })
|
|
882
|
-
], WuiIconBox.prototype, "border", void 0);
|
|
883
|
-
__decorate$3([
|
|
884
|
-
n$2()
|
|
885
|
-
], WuiIconBox.prototype, "borderColor", void 0);
|
|
886
|
-
__decorate$3([
|
|
887
|
-
n$2()
|
|
888
|
-
], WuiIconBox.prototype, "icon", void 0);
|
|
889
|
-
WuiIconBox = __decorate$3([
|
|
890
|
-
customElement("wui-icon-box")
|
|
891
|
-
], WuiIconBox);
|
|
892
|
-
const styles$2 = i$3`
|
|
893
|
-
:host {
|
|
894
|
-
display: block;
|
|
895
|
-
width: var(--local-width);
|
|
896
|
-
height: var(--local-height);
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
img {
|
|
900
|
-
display: block;
|
|
901
|
-
width: 100%;
|
|
902
|
-
height: 100%;
|
|
903
|
-
object-fit: cover;
|
|
904
|
-
object-position: center center;
|
|
905
|
-
border-radius: inherit;
|
|
906
|
-
}
|
|
907
|
-
`;
|
|
908
|
-
var __decorate$2 = function(decorators, target, key, desc) {
|
|
909
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
910
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
911
|
-
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;
|
|
912
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
913
|
-
};
|
|
914
|
-
let WuiImage = class WuiImage2 extends i$4 {
|
|
915
|
-
constructor() {
|
|
916
|
-
super(...arguments);
|
|
917
|
-
this.src = "./path/to/image.jpg";
|
|
918
|
-
this.alt = "Image";
|
|
919
|
-
this.size = void 0;
|
|
920
|
-
}
|
|
921
|
-
render() {
|
|
922
|
-
this.style.cssText = `
|
|
923
|
-
--local-width: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
|
|
924
|
-
--local-height: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
|
|
925
|
-
`;
|
|
926
|
-
return x`<img src=${this.src} alt=${this.alt} @error=${this.handleImageError} />`;
|
|
927
|
-
}
|
|
928
|
-
handleImageError() {
|
|
929
|
-
this.dispatchEvent(new CustomEvent("onLoadError", { bubbles: true, composed: true }));
|
|
930
|
-
}
|
|
931
|
-
};
|
|
932
|
-
WuiImage.styles = [resetStyles, colorStyles, styles$2];
|
|
933
|
-
__decorate$2([
|
|
934
|
-
n$2()
|
|
935
|
-
], WuiImage.prototype, "src", void 0);
|
|
936
|
-
__decorate$2([
|
|
937
|
-
n$2()
|
|
938
|
-
], WuiImage.prototype, "alt", void 0);
|
|
939
|
-
__decorate$2([
|
|
940
|
-
n$2()
|
|
941
|
-
], WuiImage.prototype, "size", void 0);
|
|
942
|
-
WuiImage = __decorate$2([
|
|
943
|
-
customElement("wui-image")
|
|
944
|
-
], WuiImage);
|
|
945
|
-
const styles$1 = i$3`
|
|
946
|
-
:host {
|
|
947
|
-
display: flex;
|
|
948
|
-
justify-content: center;
|
|
949
|
-
align-items: center;
|
|
950
|
-
height: var(--wui-spacing-m);
|
|
951
|
-
padding: 0 var(--wui-spacing-3xs) !important;
|
|
952
|
-
border-radius: var(--wui-border-radius-5xs);
|
|
953
|
-
transition:
|
|
954
|
-
border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
|
|
955
|
-
background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);
|
|
956
|
-
will-change: border-radius, background-color;
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
:host > wui-text {
|
|
960
|
-
transform: translateY(5%);
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
:host([data-variant='main']) {
|
|
964
|
-
background-color: var(--wui-color-accent-glass-015);
|
|
965
|
-
color: var(--wui-color-accent-100);
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
:host([data-variant='shade']) {
|
|
969
|
-
background-color: var(--wui-color-gray-glass-010);
|
|
970
|
-
color: var(--wui-color-fg-200);
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
:host([data-variant='success']) {
|
|
974
|
-
background-color: var(--wui-icon-box-bg-success-100);
|
|
975
|
-
color: var(--wui-color-success-100);
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
:host([data-variant='error']) {
|
|
979
|
-
background-color: var(--wui-icon-box-bg-error-100);
|
|
980
|
-
color: var(--wui-color-error-100);
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
:host([data-size='lg']) {
|
|
984
|
-
padding: 11px 5px !important;
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
:host([data-size='lg']) > wui-text {
|
|
988
|
-
transform: translateY(2%);
|
|
989
|
-
}
|
|
990
|
-
`;
|
|
991
|
-
var __decorate$1 = function(decorators, target, key, desc) {
|
|
992
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
993
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
994
|
-
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;
|
|
995
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
996
|
-
};
|
|
997
|
-
let WuiTag = class WuiTag2 extends i$4 {
|
|
998
|
-
constructor() {
|
|
999
|
-
super(...arguments);
|
|
1000
|
-
this.variant = "main";
|
|
1001
|
-
this.size = "lg";
|
|
1002
|
-
}
|
|
1003
|
-
render() {
|
|
1004
|
-
this.dataset["variant"] = this.variant;
|
|
1005
|
-
this.dataset["size"] = this.size;
|
|
1006
|
-
const textVariant = this.size === "md" ? "mini-700" : "micro-700";
|
|
1007
|
-
return x`
|
|
1008
|
-
<wui-text data-variant=${this.variant} variant=${textVariant} color="inherit">
|
|
1009
|
-
<slot></slot>
|
|
1010
|
-
</wui-text>
|
|
1011
|
-
`;
|
|
1012
|
-
}
|
|
1013
|
-
};
|
|
1014
|
-
WuiTag.styles = [resetStyles, styles$1];
|
|
1015
|
-
__decorate$1([
|
|
1016
|
-
n$2()
|
|
1017
|
-
], WuiTag.prototype, "variant", void 0);
|
|
1018
|
-
__decorate$1([
|
|
1019
|
-
n$2()
|
|
1020
|
-
], WuiTag.prototype, "size", void 0);
|
|
1021
|
-
WuiTag = __decorate$1([
|
|
1022
|
-
customElement("wui-tag")
|
|
1023
|
-
], WuiTag);
|
|
1024
|
-
const styles = i$3`
|
|
1025
|
-
:host {
|
|
1026
|
-
display: flex;
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
:host([data-size='sm']) > svg {
|
|
1030
|
-
width: 12px;
|
|
1031
|
-
height: 12px;
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
:host([data-size='md']) > svg {
|
|
1035
|
-
width: 16px;
|
|
1036
|
-
height: 16px;
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
:host([data-size='lg']) > svg {
|
|
1040
|
-
width: 24px;
|
|
1041
|
-
height: 24px;
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
:host([data-size='xl']) > svg {
|
|
1045
|
-
width: 32px;
|
|
1046
|
-
height: 32px;
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
svg {
|
|
1050
|
-
animation: rotate 2s linear infinite;
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
circle {
|
|
1054
|
-
fill: none;
|
|
1055
|
-
stroke: var(--local-color);
|
|
1056
|
-
stroke-width: 4px;
|
|
1057
|
-
stroke-dasharray: 1, 124;
|
|
1058
|
-
stroke-dashoffset: 0;
|
|
1059
|
-
stroke-linecap: round;
|
|
1060
|
-
animation: dash 1.5s ease-in-out infinite;
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
:host([data-size='md']) > svg > circle {
|
|
1064
|
-
stroke-width: 6px;
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
:host([data-size='sm']) > svg > circle {
|
|
1068
|
-
stroke-width: 8px;
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
@keyframes rotate {
|
|
1072
|
-
100% {
|
|
1073
|
-
transform: rotate(360deg);
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
@keyframes dash {
|
|
1078
|
-
0% {
|
|
1079
|
-
stroke-dasharray: 1, 124;
|
|
1080
|
-
stroke-dashoffset: 0;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
50% {
|
|
1084
|
-
stroke-dasharray: 90, 124;
|
|
1085
|
-
stroke-dashoffset: -35;
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
100% {
|
|
1089
|
-
stroke-dashoffset: -125;
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
`;
|
|
1093
|
-
var __decorate = function(decorators, target, key, desc) {
|
|
1094
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1095
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
|
|
1096
|
-
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;
|
|
1097
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
1098
|
-
};
|
|
1099
|
-
let WuiLoadingSpinner = class WuiLoadingSpinner2 extends i$4 {
|
|
1100
|
-
constructor() {
|
|
1101
|
-
super(...arguments);
|
|
1102
|
-
this.color = "accent-100";
|
|
1103
|
-
this.size = "lg";
|
|
1104
|
-
}
|
|
1105
|
-
render() {
|
|
1106
|
-
this.style.cssText = `--local-color: ${this.color === "inherit" ? "inherit" : `var(--wui-color-${this.color})`}`;
|
|
1107
|
-
this.dataset["size"] = this.size;
|
|
1108
|
-
return x`<svg viewBox="25 25 50 50">
|
|
1109
|
-
<circle r="20" cy="50" cx="50"></circle>
|
|
1110
|
-
</svg>`;
|
|
1111
|
-
}
|
|
1112
|
-
};
|
|
1113
|
-
WuiLoadingSpinner.styles = [resetStyles, styles];
|
|
1114
|
-
__decorate([
|
|
1115
|
-
n$2()
|
|
1116
|
-
], WuiLoadingSpinner.prototype, "color", void 0);
|
|
1117
|
-
__decorate([
|
|
1118
|
-
n$2()
|
|
1119
|
-
], WuiLoadingSpinner.prototype, "size", void 0);
|
|
1120
|
-
WuiLoadingSpinner = __decorate([
|
|
1121
|
-
customElement("wui-loading-spinner")
|
|
1122
|
-
], WuiLoadingSpinner);
|
|
1123
|
-
export {
|
|
1124
|
-
UiHelperUtil as U,
|
|
1125
|
-
e as a,
|
|
1126
|
-
customElement as c,
|
|
1127
|
-
e$1 as e,
|
|
1128
|
-
f,
|
|
1129
|
-
n$2 as n,
|
|
1130
|
-
o$1 as o,
|
|
1131
|
-
r$1 as r
|
|
1132
|
-
};
|