wox-gui 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wox-gui.cdn.js +19 -3
- package/dist/wox-gui.js +19 -3
- package/package.json +1 -1
package/dist/wox-gui.cdn.js
CHANGED
|
@@ -149,7 +149,7 @@ const Nt = `
|
|
|
149
149
|
:host { display: inline-block; }
|
|
150
150
|
button {
|
|
151
151
|
display: flex; align-items: center; justify-content: center; gap: 6px;
|
|
152
|
-
background: transparent; border: 1px solid
|
|
152
|
+
background: transparent; border: 1px solid var(--wox-border); color: var(--wox-text-secondary, #999);
|
|
153
153
|
cursor: pointer; font-family: var(--wox-font, sans-serif); font-size: var(--wox-font-size-base, 12px);
|
|
154
154
|
transition: all var(--wox-transition-fast, 0.12s); border-radius: var(--wox-radius-sm, 3px);
|
|
155
155
|
padding: 0; margin: 0; line-height: 1; user-select: none;
|
|
@@ -216,7 +216,12 @@ class lt extends v {
|
|
|
216
216
|
super(...arguments);
|
|
217
217
|
/** @private */
|
|
218
218
|
n(this, "_render", () => {
|
|
219
|
-
const t = this.getAttribute("variant") || "icon", e = this.getAttribute("icon") || "", o = this.getAttribute("label") || "", i = this.hasAttribute("active"), s = this.hasAttribute("disabled"), r = this.getAttribute("dash") || "solid", a = this.getAttribute("color") || "", d = this.hasAttribute("glow"), c = this.hasAttribute("pulse"), u = [
|
|
219
|
+
const t = this.getAttribute("variant") || "icon", e = this.getAttribute("icon") || "", o = this.getAttribute("label") || "", i = this.hasAttribute("active"), s = this.hasAttribute("disabled"), r = this.getAttribute("dash") || "solid", a = this.getAttribute("color") || "", d = this.hasAttribute("glow"), c = this.hasAttribute("pulse"), u = [
|
|
220
|
+
`v-${t}`,
|
|
221
|
+
i ? "active" : "",
|
|
222
|
+
d ? "glow" : "",
|
|
223
|
+
c ? "pulse" : ""
|
|
224
|
+
].filter(Boolean).join(" ");
|
|
220
225
|
let h = "";
|
|
221
226
|
t === "icon" ? h = e ? `<span class="material-icons">${e}</span>` : "<slot></slot>" : t === "text" ? h = (e ? `<span class="material-icons" style="font-size:14px">${e}</span>` : "") + (o || "<slot></slot>") : t === "tile" ? h = (e ? `<span class="material-icons">${e}</span>` : '<slot name="icon"></slot>') + `<span>${o}</span>` : t === "dash" && (h = `<div class="dash-line${r === "solid" ? "" : ` ${r}`}"></div>`);
|
|
222
227
|
const x = a ? ` data-color style="--wox-fx-color:${a}"` : "";
|
|
@@ -235,7 +240,18 @@ class lt extends v {
|
|
|
235
240
|
this.isConnected && this._render();
|
|
236
241
|
}
|
|
237
242
|
}
|
|
238
|
-
n(lt, "observedAttributes", [
|
|
243
|
+
n(lt, "observedAttributes", [
|
|
244
|
+
"variant",
|
|
245
|
+
"icon",
|
|
246
|
+
"label",
|
|
247
|
+
"active",
|
|
248
|
+
"disabled",
|
|
249
|
+
"color",
|
|
250
|
+
"size",
|
|
251
|
+
"dash",
|
|
252
|
+
"glow",
|
|
253
|
+
"pulse"
|
|
254
|
+
]);
|
|
239
255
|
const Pt = `
|
|
240
256
|
:host { display: inline-block; }
|
|
241
257
|
.wrapper { display: flex; flex-direction: column; gap: 3px; }
|
package/dist/wox-gui.js
CHANGED
|
@@ -149,7 +149,7 @@ const bt = `
|
|
|
149
149
|
:host { display: inline-block; }
|
|
150
150
|
button {
|
|
151
151
|
display: flex; align-items: center; justify-content: center; gap: 6px;
|
|
152
|
-
background: transparent; border: 1px solid
|
|
152
|
+
background: transparent; border: 1px solid var(--wox-border); color: var(--wox-text-secondary, #999);
|
|
153
153
|
cursor: pointer; font-family: var(--wox-font, sans-serif); font-size: var(--wox-font-size-base, 12px);
|
|
154
154
|
transition: all var(--wox-transition-fast, 0.12s); border-radius: var(--wox-radius-sm, 3px);
|
|
155
155
|
padding: 0; margin: 0; line-height: 1; user-select: none;
|
|
@@ -216,7 +216,12 @@ class ft extends v {
|
|
|
216
216
|
super(...arguments);
|
|
217
217
|
/** @private */
|
|
218
218
|
n(this, "_render", () => {
|
|
219
|
-
const t = this.getAttribute("variant") || "icon", e = this.getAttribute("icon") || "", o = this.getAttribute("label") || "", i = this.hasAttribute("active"), s = this.hasAttribute("disabled"), r = this.getAttribute("dash") || "solid", a = this.getAttribute("color") || "", l = this.hasAttribute("glow"), c = this.hasAttribute("pulse"), x = [
|
|
219
|
+
const t = this.getAttribute("variant") || "icon", e = this.getAttribute("icon") || "", o = this.getAttribute("label") || "", i = this.hasAttribute("active"), s = this.hasAttribute("disabled"), r = this.getAttribute("dash") || "solid", a = this.getAttribute("color") || "", l = this.hasAttribute("glow"), c = this.hasAttribute("pulse"), x = [
|
|
220
|
+
`v-${t}`,
|
|
221
|
+
i ? "active" : "",
|
|
222
|
+
l ? "glow" : "",
|
|
223
|
+
c ? "pulse" : ""
|
|
224
|
+
].filter(Boolean).join(" ");
|
|
220
225
|
let h = "";
|
|
221
226
|
t === "icon" ? h = e ? `<span class="material-icons">${e}</span>` : "<slot></slot>" : t === "text" ? h = (e ? `<span class="material-icons" style="font-size:14px">${e}</span>` : "") + (o || "<slot></slot>") : t === "tile" ? h = (e ? `<span class="material-icons">${e}</span>` : '<slot name="icon"></slot>') + `<span>${o}</span>` : t === "dash" && (h = `<div class="dash-line${r === "solid" ? "" : ` ${r}`}"></div>`);
|
|
222
227
|
const u = a ? ` data-color style="--wox-fx-color:${a}"` : "";
|
|
@@ -235,7 +240,18 @@ class ft extends v {
|
|
|
235
240
|
this.isConnected && this._render();
|
|
236
241
|
}
|
|
237
242
|
}
|
|
238
|
-
n(ft, "observedAttributes", [
|
|
243
|
+
n(ft, "observedAttributes", [
|
|
244
|
+
"variant",
|
|
245
|
+
"icon",
|
|
246
|
+
"label",
|
|
247
|
+
"active",
|
|
248
|
+
"disabled",
|
|
249
|
+
"color",
|
|
250
|
+
"size",
|
|
251
|
+
"dash",
|
|
252
|
+
"glow",
|
|
253
|
+
"pulse"
|
|
254
|
+
]);
|
|
239
255
|
const vt = `
|
|
240
256
|
:host { display: inline-block; }
|
|
241
257
|
.wrapper { display: flex; flex-direction: column; gap: 3px; }
|