wox-gui 0.1.5 → 0.1.7

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.
Files changed (2) hide show
  1. package/dist/wox-gui.cdn.js +155 -155
  2. package/package.json +3 -2
@@ -1,11 +1,11 @@
1
- var mt = Object.defineProperty;
2
- var ft = (p, c, t) => c in p ? mt(p, c, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[c] = t;
3
- var s = (p, c, t) => ft(p, typeof c != "symbol" ? c + "" : c, t);
4
- const O = class O extends HTMLElement {
1
+ var yt = Object.defineProperty;
2
+ var kt = (p, c, t) => c in p ? yt(p, c, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[c] = t;
3
+ var s = (p, c, t) => kt(p, typeof c != "symbol" ? c + "" : c, t);
4
+ const T = class T extends HTMLElement {
5
5
  constructor() {
6
6
  super();
7
7
  s(this, "render", (t, e) => {
8
- this.shadowRoot.innerHTML = `<style>${O.BASE_STYLES}${t}</style>${e}`;
8
+ this.shadowRoot.innerHTML = `<style>${T.BASE_STYLES}${t}</style>${e}`;
9
9
  });
10
10
  s(this, "emit", (t, e) => {
11
11
  this.dispatchEvent(new CustomEvent(t, { detail: e, bubbles: !0, composed: !0 }));
@@ -15,12 +15,12 @@ const O = class O extends HTMLElement {
15
15
  this.attachShadow({ mode: "open" });
16
16
  }
17
17
  };
18
- s(O, "BASE_STYLES", `
18
+ s(T, "BASE_STYLES", `
19
19
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
20
20
  :host { display: inline-block; font-family: var(--wox-font, 'Inter', sans-serif); color: var(--wox-text-primary, #eee); font-size: var(--wox-font-size-base, 12px); }
21
21
  :host([hidden]) { display: none !important; }
22
22
  `);
23
- let v = O;
23
+ let w = T;
24
24
  const S = `
25
25
  /* glow: neon glow effect using --wox-fx-color */
26
26
  .glow {
@@ -49,7 +49,7 @@ const S = `
49
49
  to { opacity: 0.4; }
50
50
  }
51
51
  `;
52
- class J extends v {
52
+ class H extends w {
53
53
  constructor() {
54
54
  super(...arguments);
55
55
  s(this, "_render", () => {
@@ -70,8 +70,8 @@ class J extends v {
70
70
  this.isConnected && this._render();
71
71
  }
72
72
  }
73
- s(J, "observedAttributes", ["name", "size", "color", "glow", "pulse"]);
74
- class K extends v {
73
+ s(H, "observedAttributes", ["name", "size", "color", "glow", "pulse"]);
74
+ class G extends w {
75
75
  constructor() {
76
76
  super(...arguments);
77
77
  s(this, "_render", () => {
@@ -92,8 +92,8 @@ class K extends v {
92
92
  this.isConnected && this._render();
93
93
  }
94
94
  }
95
- s(K, "observedAttributes", ["direction", "spacing"]);
96
- class V extends v {
95
+ s(G, "observedAttributes", ["direction", "spacing"]);
96
+ class j extends w {
97
97
  constructor() {
98
98
  super(...arguments);
99
99
  s(this, "_render", () => {
@@ -115,8 +115,8 @@ class V extends v {
115
115
  this.isConnected && this._render();
116
116
  }
117
117
  }
118
- s(V, "observedAttributes", ["variant", "text", "color"]);
119
- class U extends v {
118
+ s(j, "observedAttributes", ["variant", "text", "color"]);
119
+ class Y extends w {
120
120
  constructor() {
121
121
  super(...arguments);
122
122
  s(this, "_render", () => {
@@ -201,8 +201,8 @@ class U extends v {
201
201
  this.isConnected && this._render();
202
202
  }
203
203
  }
204
- s(U, "observedAttributes", ["variant", "icon", "label", "active", "disabled", "color", "size", "dash", "glow", "pulse"]);
205
- class Q extends v {
204
+ s(Y, "observedAttributes", ["variant", "icon", "label", "active", "disabled", "color", "size", "dash", "glow", "pulse"]);
205
+ class X extends w {
206
206
  constructor() {
207
207
  super(...arguments);
208
208
  s(this, "_render", () => {
@@ -240,15 +240,15 @@ class Q extends v {
240
240
  `);
241
241
  const x = this.$("input");
242
242
  if (x.addEventListener("input", () => {
243
- const w = d ? parseFloat(x.value) : x.value;
244
- this.emit("wox-input", { value: w });
243
+ const v = d ? parseFloat(x.value) : x.value;
244
+ this.emit("wox-input", { value: v });
245
245
  }), x.addEventListener("change", () => {
246
- const w = d ? parseFloat(x.value) : x.value;
247
- this.emit("wox-change", { value: w });
248
- }), x.addEventListener("keydown", (w) => {
249
- w.key === "Enter" && x.blur();
246
+ const v = d ? parseFloat(x.value) : x.value;
247
+ this.emit("wox-change", { value: v });
248
+ }), x.addEventListener("keydown", (v) => {
249
+ v.key === "Enter" && x.blur();
250
250
  }), d && o) {
251
- const w = this.$("label");
251
+ const v = this.$("label");
252
252
  let g = 0, b = 0;
253
253
  const y = (A) => {
254
254
  const M = A.clientX - g, m = parseFloat(r) || 1;
@@ -257,7 +257,7 @@ class Q extends v {
257
257
  }, E = () => {
258
258
  document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", E), this.emit("wox-change", { value: parseFloat(x.value) });
259
259
  };
260
- w.addEventListener("mousedown", (A) => {
260
+ v.addEventListener("mousedown", (A) => {
261
261
  h || (g = A.clientX, b = parseFloat(x.value) || 0, document.addEventListener("mousemove", y), document.addEventListener("mouseup", E), A.preventDefault());
262
262
  });
263
263
  }
@@ -285,9 +285,9 @@ class Q extends v {
285
285
  e && (e.value = t);
286
286
  }
287
287
  }
288
- s(Q, "observedAttributes", ["type", "value", "unit", "label", "min", "max", "step", "placeholder", "disabled"]);
288
+ s(X, "observedAttributes", ["type", "value", "unit", "label", "min", "max", "step", "placeholder", "disabled"]);
289
289
  const k = (p) => String(p).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
290
- class Z extends v {
290
+ class q extends w {
291
291
  constructor() {
292
292
  super(...arguments);
293
293
  s(this, "_isOpen", !1);
@@ -706,8 +706,8 @@ class Z extends v {
706
706
  this._selectedOptions = [], this._filteredOptions = [...t], this._parsedOptions = null, this.setAttribute("options", JSON.stringify(t));
707
707
  }
708
708
  }
709
- s(Z, "observedAttributes", ["multiple", "searchable", "placeholder", "disabled", "value", "options"]);
710
- class tt extends v {
709
+ s(q, "observedAttributes", ["multiple", "searchable", "placeholder", "disabled", "value", "options"]);
710
+ class J extends w {
711
711
  constructor() {
712
712
  super();
713
713
  s(this, "_getConfig", () => ({ min: parseFloat(this.getAttribute("min") ?? 0), max: parseFloat(this.getAttribute("max") ?? 100), step: parseFloat(this.getAttribute("step") ?? 1), unit: this.getAttribute("unit") || "" }));
@@ -758,25 +758,25 @@ class tt extends v {
758
758
  });
759
759
  s(this, "_attachDrag", () => {
760
760
  const { min: t, max: e, step: n, unit: o } = this._getConfig(), i = this.$(".track-wrap"), a = this.$(".fill"), r = this.$(".thumb"), l = this.$(".value"), h = (x) => {
761
- const w = i.getBoundingClientRect();
762
- let g = (x - w.left) / w.width;
761
+ const v = i.getBoundingClientRect();
762
+ let g = (x - v.left) / v.width;
763
763
  g = Math.max(0, Math.min(1, g));
764
764
  let b = t + g * (e - t);
765
765
  b = Math.round(b / n) * n, b = Math.max(t, Math.min(e, b));
766
766
  const y = (b - t) / (e - t) * 100;
767
767
  return a.style.width = y + "%", r.style.left = y + "%", l && (l.textContent = o === "%" ? Math.round(100 * b) + "%" : n < 1 ? b.toFixed(2) : String(b)), b;
768
768
  }, d = (x) => {
769
- const w = h(x.clientX);
770
- this.emit("wox-input", { value: w });
769
+ const v = h(x.clientX);
770
+ this.emit("wox-input", { value: v });
771
771
  }, u = (x) => {
772
772
  this._dragging = !1, r.classList.remove("dragging"), document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", u);
773
- const w = h(x.clientX);
774
- this.setAttribute("value", w), this.emit("wox-change", { value: w });
773
+ const v = h(x.clientX);
774
+ this.setAttribute("value", v), this.emit("wox-change", { value: v });
775
775
  };
776
776
  i.addEventListener("mousedown", (x) => {
777
777
  this._dragging = !0, r.classList.add("dragging");
778
- const w = h(x.clientX);
779
- this.emit("wox-input", { value: w }), document.addEventListener("mousemove", d), document.addEventListener("mouseup", u), x.preventDefault();
778
+ const v = h(x.clientX);
779
+ this.emit("wox-input", { value: v }), document.addEventListener("mousemove", d), document.addEventListener("mouseup", u), x.preventDefault();
780
780
  });
781
781
  });
782
782
  this._dragging = !1;
@@ -788,8 +788,8 @@ class tt extends v {
788
788
  this.isConnected && (this._dragging || (t === "value" ? this._updateVisuals() : this._build()));
789
789
  }
790
790
  }
791
- s(tt, "observedAttributes", ["value", "min", "max", "step", "label", "unit", "show-value", "color", "glow", "pulse"]);
792
- class et extends v {
791
+ s(J, "observedAttributes", ["value", "min", "max", "step", "label", "unit", "show-value", "color", "glow", "pulse"]);
792
+ class K extends w {
793
793
  constructor() {
794
794
  super(...arguments);
795
795
  s(this, "_render", () => {
@@ -826,8 +826,8 @@ class et extends v {
826
826
  this.isConnected && this._render();
827
827
  }
828
828
  }
829
- s(et, "observedAttributes", ["color", "size", "selected", "glow", "pulse"]);
830
- class nt extends v {
829
+ s(K, "observedAttributes", ["color", "size", "selected", "glow", "pulse"]);
830
+ class V extends w {
831
831
  constructor() {
832
832
  super(...arguments);
833
833
  s(this, "_render", () => {
@@ -863,8 +863,8 @@ class nt extends v {
863
863
  this.isConnected && this._render();
864
864
  }
865
865
  }
866
- s(nt, "observedAttributes", ["text", "position", "delay"]);
867
- class ot extends v {
866
+ s(V, "observedAttributes", ["text", "position", "delay"]);
867
+ class U extends w {
868
868
  constructor() {
869
869
  super();
870
870
  s(this, "_initFromAttrs", () => {
@@ -1050,8 +1050,8 @@ class ot extends v {
1050
1050
  } else t !== "color" && t !== "alpha" || (this._initFromAttrs(), this.hasAttribute("open") && this._redraw());
1051
1051
  }
1052
1052
  }
1053
- s(ot, "observedAttributes", ["color", "alpha", "open"]);
1054
- const T = `
1053
+ s(U, "observedAttributes", ["color", "alpha", "open"]);
1054
+ const P = `
1055
1055
  :host { display: block; }
1056
1056
  .item {
1057
1057
  color: var(--wox-text-primary, #eee); padding: 8px 12px; display: flex; align-items: center;
@@ -1072,12 +1072,12 @@ const T = `
1072
1072
  }
1073
1073
  .material-icons { font-family: 'Material Icons'; font-weight: normal; font-style: normal; display: inline-block; line-height: 1; text-transform: none; letter-spacing: normal; word-wrap: normal; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; }
1074
1074
  `;
1075
- class it extends v {
1075
+ class Q extends w {
1076
1076
  constructor() {
1077
1077
  super(...arguments);
1078
1078
  s(this, "_render", () => {
1079
1079
  const t = this.getAttribute("type") || "item", e = this.getAttribute("label") || "", n = this.getAttribute("shortcut") || "", o = this.getAttribute("icon") || "", i = this.hasAttribute("disabled"), a = this.hasAttribute("submenu");
1080
- t !== "separator" ? t !== "header" ? (this.render(T, `
1080
+ t !== "separator" ? t !== "header" ? (this.render(P, `
1081
1081
  <div class="item ${i ? "disabled" : ""}">
1082
1082
  ${o ? `<span class="icon material-icons">${o}</span>` : ""}
1083
1083
  <span class="label">${e}</span>
@@ -1086,7 +1086,7 @@ class it extends v {
1086
1086
  </div>
1087
1087
  `), i || this.$(".item").addEventListener("click", () => {
1088
1088
  this.emit("wox-select", { label: e });
1089
- })) : this.render(T, `<div class="header">${e}</div>`) : this.render(T, '<div class="separator"></div>');
1089
+ })) : this.render(P, `<div class="header">${e}</div>`) : this.render(P, '<div class="separator"></div>');
1090
1090
  });
1091
1091
  }
1092
1092
  connectedCallback() {
@@ -1096,8 +1096,8 @@ class it extends v {
1096
1096
  this.isConnected && this._render();
1097
1097
  }
1098
1098
  }
1099
- s(it, "observedAttributes", ["label", "shortcut", "icon", "disabled", "type", "submenu"]);
1100
- class st extends v {
1099
+ s(Q, "observedAttributes", ["label", "shortcut", "icon", "disabled", "type", "submenu"]);
1100
+ class Z extends w {
1101
1101
  constructor() {
1102
1102
  super(...arguments);
1103
1103
  s(this, "_render", () => {
@@ -1165,13 +1165,13 @@ class st extends v {
1165
1165
  this._outsideClick && document.removeEventListener("mousedown", this._outsideClick);
1166
1166
  }
1167
1167
  }
1168
- s(st, "observedAttributes", ["label", "open", "trigger"]);
1169
- const _t = { rectangle: "crop_square", ellipse: "radio_button_unchecked", path: "timeline", image: "image", text: "text_fields", group: "folder", layer: "layers" };
1170
- class at extends v {
1168
+ s(Z, "observedAttributes", ["label", "open", "trigger"]);
1169
+ const $t = { rectangle: "crop_square", ellipse: "radio_button_unchecked", path: "timeline", image: "image", text: "text_fields", group: "folder", layer: "layers" };
1170
+ class tt extends w {
1171
1171
  constructor() {
1172
1172
  super(...arguments);
1173
1173
  s(this, "_render", () => {
1174
- const t = this.getAttribute("name") || "Layer", e = this.getAttribute("type") || "layer", n = this.hasAttribute("visible"), o = this.hasAttribute("locked"), i = this.hasAttribute("selected"), a = _t[e] || "layers";
1174
+ const t = this.getAttribute("name") || "Layer", e = this.getAttribute("type") || "layer", n = this.hasAttribute("visible"), o = this.hasAttribute("locked"), i = this.hasAttribute("selected"), a = $t[e] || "layers";
1175
1175
  this.render(`
1176
1176
  :host { display: block; }
1177
1177
  .layer {
@@ -1235,8 +1235,8 @@ class at extends v {
1235
1235
  this.isConnected && !this._editing && this._render();
1236
1236
  }
1237
1237
  }
1238
- s(at, "observedAttributes", ["name", "type", "visible", "locked", "selected", "depth"]);
1239
- class rt extends v {
1238
+ s(tt, "observedAttributes", ["name", "type", "visible", "locked", "selected", "depth"]);
1239
+ class et extends w {
1240
1240
  constructor() {
1241
1241
  super(...arguments);
1242
1242
  s(this, "_render", () => {
@@ -1293,8 +1293,8 @@ class rt extends v {
1293
1293
  this.isConnected && this._render();
1294
1294
  }
1295
1295
  }
1296
- s(rt, "observedAttributes", ["title", "collapsed", "icon"]);
1297
- class dt extends v {
1296
+ s(et, "observedAttributes", ["title", "collapsed", "icon"]);
1297
+ class nt extends w {
1298
1298
  connectedCallback() {
1299
1299
  this.render(`
1300
1300
  :host { display: none; flex: 1; overflow-y: auto; overflow-x: hidden; flex-direction: column; }
@@ -1302,8 +1302,8 @@ class dt extends v {
1302
1302
  `, "<slot></slot>");
1303
1303
  }
1304
1304
  }
1305
- s(dt, "observedAttributes", ["name", "label", "icon", "active"]);
1306
- class lt extends v {
1305
+ s(nt, "observedAttributes", ["name", "label", "icon", "active"]);
1306
+ class ot extends w {
1307
1307
  constructor() {
1308
1308
  super(...arguments);
1309
1309
  s(this, "_render", () => {
@@ -1385,8 +1385,8 @@ class lt extends v {
1385
1385
  this.isConnected && this._updateActive();
1386
1386
  }
1387
1387
  }
1388
- s(lt, "observedAttributes", ["active", "placement"]);
1389
- class ct extends v {
1388
+ s(ot, "observedAttributes", ["active", "placement"]);
1389
+ class it extends w {
1390
1390
  constructor() {
1391
1391
  super(...arguments);
1392
1392
  s(this, "_render", () => {
@@ -1408,8 +1408,8 @@ class ct extends v {
1408
1408
  this.isConnected && this._render();
1409
1409
  }
1410
1410
  }
1411
- s(ct, "observedAttributes", ["label"]);
1412
- class pt extends v {
1411
+ s(it, "observedAttributes", ["label"]);
1412
+ class st extends w {
1413
1413
  constructor() {
1414
1414
  super(...arguments);
1415
1415
  s(this, "_render", () => {
@@ -1433,8 +1433,8 @@ class pt extends v {
1433
1433
  this.isConnected && this._render();
1434
1434
  }
1435
1435
  }
1436
- s(pt, "observedAttributes", ["width", "position"]);
1437
- class ht extends v {
1436
+ s(st, "observedAttributes", ["width", "position"]);
1437
+ class at extends w {
1438
1438
  constructor() {
1439
1439
  super(...arguments);
1440
1440
  s(this, "_render", () => {
@@ -1479,8 +1479,8 @@ class ht extends v {
1479
1479
  this.isConnected && this._render();
1480
1480
  }
1481
1481
  }
1482
- s(ht, "observedAttributes", ["width", "position", "resizable"]);
1483
- class xt extends v {
1482
+ s(at, "observedAttributes", ["width", "position", "resizable"]);
1483
+ class rt extends w {
1484
1484
  constructor() {
1485
1485
  super(...arguments);
1486
1486
  s(this, "_render", () => {
@@ -1506,8 +1506,8 @@ class xt extends v {
1506
1506
  this.isConnected && this._render();
1507
1507
  }
1508
1508
  }
1509
- s(xt, "observedAttributes", ["height"]);
1510
- class ut extends v {
1509
+ s(rt, "observedAttributes", ["height"]);
1510
+ class dt extends w {
1511
1511
  constructor() {
1512
1512
  super(...arguments);
1513
1513
  s(this, "_render", () => {
@@ -1535,8 +1535,8 @@ class ut extends v {
1535
1535
  this.isConnected && this._render();
1536
1536
  }
1537
1537
  }
1538
- s(ut, "observedAttributes", ["height"]);
1539
- class gt extends v {
1538
+ s(dt, "observedAttributes", ["height"]);
1539
+ class lt extends w {
1540
1540
  constructor() {
1541
1541
  super(...arguments);
1542
1542
  s(this, "_render", () => {
@@ -1641,8 +1641,8 @@ class gt extends v {
1641
1641
  t ? this.setAttribute("open", "") : this.removeAttribute("open");
1642
1642
  }
1643
1643
  }
1644
- s(gt, "observedAttributes", ["open", "title", "closable", "width", "color", "glow", "pulse"]);
1645
- class yt extends v {
1644
+ s(lt, "observedAttributes", ["open", "title", "closable", "width", "color", "glow", "pulse"]);
1645
+ class vt extends w {
1646
1646
  constructor() {
1647
1647
  super(...arguments);
1648
1648
  s(this, "_columns", []);
@@ -1864,12 +1864,12 @@ class yt extends v {
1864
1864
  return this._rows;
1865
1865
  }
1866
1866
  }
1867
- const kt = 4e3, j = { TL: { top: "16px", left: "16px" }, TC: { top: "16px", left: "50%", transform: "translateX(-50%)" }, TR: { top: "16px", right: "16px" }, BL: { bottom: "16px", left: "16px" }, BC: { bottom: "16px", left: "50%", transform: "translateX(-50%)" }, BR: { bottom: "16px", right: "16px" } }, $t = { TL: "translateX(-120%)", TC: "translateY(-120%)", TR: "translateX(120%)", BL: "translateX(-120%)", BC: "translateY(120%)", BR: "translateX(120%)" }, Et = { success: { bg: "#1a2e1a", border: "#4CAF50", icon: "#66BB6A", progress: "#4CAF50", text: "#c8e6c9" }, error: { bg: "#2e1a1a", border: "#f44336", icon: "#ef5350", progress: "#f44336", text: "#ffcdd2" }, warning: { bg: "#2e2a1a", border: "#FF9800", icon: "#FFA726", progress: "#FF9800", text: "#ffe0b2" }, info: { bg: "#1a222e", border: "#2196F3", icon: "#42A5F5", progress: "#2196F3", text: "#bbdefb" } }, Ct = { success: { bg: "#e8f5e9", border: "#2e7d32", icon: "#388e3c", progress: "#2e7d32", text: "#1b5e20" }, error: { bg: "#fce4ec", border: "#c62828", icon: "#d32f2f", progress: "#c62828", text: "#b71c1c" }, warning: { bg: "#fff8e1", border: "#e65100", icon: "#ef6c00", progress: "#e65100", text: "#bf360c" }, info: { bg: "#e3f2fd", border: "#1565c0", icon: "#1976d2", progress: "#1565c0", text: "#0d47a1" } }, G = { success: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>', error: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/></svg>', warning: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>', info: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>' };
1868
- let Y = !1;
1869
- const P = /* @__PURE__ */ new Set(), N = {}, D = (p, c, t = {}) => {
1867
+ const Et = 4e3, ht = { TL: { top: "16px", left: "16px" }, TC: { top: "16px", left: "50%", transform: "translateX(-50%)" }, TR: { top: "16px", right: "16px" }, BL: { bottom: "16px", left: "16px" }, BC: { bottom: "16px", left: "50%", transform: "translateX(-50%)" }, BR: { bottom: "16px", right: "16px" } }, Ct = { TL: "translateX(-120%)", TC: "translateY(-120%)", TR: "translateX(120%)", BL: "translateX(-120%)", BC: "translateY(120%)", BR: "translateX(120%)" }, At = { success: { bg: "#1a2e1a", border: "#4CAF50", icon: "#66BB6A", progress: "#4CAF50", text: "#c8e6c9" }, error: { bg: "#2e1a1a", border: "#f44336", icon: "#ef5350", progress: "#f44336", text: "#ffcdd2" }, warning: { bg: "#2e2a1a", border: "#FF9800", icon: "#FFA726", progress: "#FF9800", text: "#ffe0b2" }, info: { bg: "#1a222e", border: "#2196F3", icon: "#42A5F5", progress: "#2196F3", text: "#bbdefb" } }, zt = { success: { bg: "#e8f5e9", border: "#2e7d32", icon: "#388e3c", progress: "#2e7d32", text: "#1b5e20" }, error: { bg: "#fce4ec", border: "#c62828", icon: "#d32f2f", progress: "#c62828", text: "#b71c1c" }, warning: { bg: "#fff8e1", border: "#e65100", icon: "#ef6c00", progress: "#e65100", text: "#bf360c" }, info: { bg: "#e3f2fd", border: "#1565c0", icon: "#1976d2", progress: "#1565c0", text: "#0d47a1" } }, xt = { success: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>', error: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/></svg>', warning: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>', info: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>' };
1868
+ let ut = !1;
1869
+ const N = /* @__PURE__ */ new Set(), F = {}, D = (p, c, t = {}) => {
1870
1870
  (() => {
1871
- if (Y) return;
1872
- Y = !0;
1871
+ if (ut) return;
1872
+ ut = !0;
1873
1873
  const m = document.createElement("style");
1874
1874
  m.textContent = `
1875
1875
  .wox-toast-container {
@@ -1928,21 +1928,21 @@ const P = /* @__PURE__ */ new Set(), N = {}, D = (p, c, t = {}) => {
1928
1928
  `, document.head.appendChild(m);
1929
1929
  })();
1930
1930
  const e = `${p}::${c}`;
1931
- if (P.has(e)) return;
1932
- P.add(e);
1933
- const { duration: n = kt, closable: o = !0, position: i = "BR" } = t, a = document.documentElement.dataset.woxTheme === "light", r = ((m) => {
1934
- const _ = document.documentElement.dataset.woxTheme === "light" ? Ct : Et;
1931
+ if (N.has(e)) return;
1932
+ N.add(e);
1933
+ const { duration: n = Et, closable: o = !0, position: i = "BR" } = t, a = document.documentElement.dataset.woxTheme === "light", r = ((m) => {
1934
+ const _ = document.documentElement.dataset.woxTheme === "light" ? zt : At;
1935
1935
  return _[m] || _.info;
1936
- })(p), l = j[i] ? i : "BR", h = ((m) => {
1937
- if (N[m]) return N[m];
1936
+ })(p), l = ht[i] ? i : "BR", h = ((m) => {
1937
+ if (F[m]) return F[m];
1938
1938
  const _ = document.createElement("div");
1939
1939
  _.className = `wox-toast-container wox-toast-container-${m}`;
1940
- const wt = j[m];
1941
- return Object.assign(_.style, wt), m.startsWith("B") && (_.style.flexDirection = "column-reverse"), document.body.appendChild(_), N[m] = _, _;
1940
+ const _t = ht[m];
1941
+ return Object.assign(_.style, _t), m.startsWith("B") && (_.style.flexDirection = "column-reverse"), document.body.appendChild(_), F[m] = _, _;
1942
1942
  })(l), d = document.createElement("div");
1943
1943
  d.className = `wox-toast wox-toast-${p}`, d.style.backgroundColor = r.bg, d.style.borderLeftColor = r.border, d.style.color = r.text;
1944
1944
  let u = `
1945
- <span class="wox-toast-icon" style="color:${r.icon}">${G[p] || G.info}</span>
1945
+ <span class="wox-toast-icon" style="color:${r.icon}">${xt[p] || xt.info}</span>
1946
1946
  <span class="wox-toast-message">${c}</span>
1947
1947
  `;
1948
1948
  if (o && (u += '<button class="wox-toast-close" aria-label="Close">&times;</button>'), d.innerHTML = u, o) {
@@ -1955,13 +1955,13 @@ const P = /* @__PURE__ */ new Set(), N = {}, D = (p, c, t = {}) => {
1955
1955
  }
1956
1956
  let x = null;
1957
1957
  n > 0 && (x = document.createElement("div"), x.className = "wox-toast-progress", x.style.backgroundColor = r.progress, x.style.width = "100%", d.appendChild(x));
1958
- const w = $t[l];
1959
- d.animate([{ transform: w, opacity: 0 }, { transform: "translateX(0) translateY(0)", opacity: 1 }], { duration: 300, easing: "cubic-bezier(.22,1,.36,1)", fill: "forwards" }), h.appendChild(d);
1958
+ const v = Ct[l];
1959
+ d.animate([{ transform: v, opacity: 0 }, { transform: "translateX(0) translateY(0)", opacity: 1 }], { duration: 300, easing: "cubic-bezier(.22,1,.36,1)", fill: "forwards" }), h.appendChild(d);
1960
1960
  let g = null, b = n, y = 0, E = null;
1961
1961
  const A = () => {
1962
1962
  n <= 0 || (y = Date.now(), x && (E = x.animate([{ width: x.style.width }, { width: "0%" }], { duration: b, easing: "linear", fill: "forwards" })), g = setTimeout(() => M(), b));
1963
1963
  }, M = () => {
1964
- P.delete(e), g && (clearTimeout(g), g = null), E && E.cancel(), d.animate([{ transform: "translateX(0) translateY(0)", opacity: 1 }, { transform: w, opacity: 0 }], { duration: 300, easing: "cubic-bezier(.22,1,.36,1)", fill: "forwards" }).onfinish = () => {
1964
+ N.delete(e), g && (clearTimeout(g), g = null), E && E.cancel(), d.animate([{ transform: "translateX(0) translateY(0)", opacity: 1 }, { transform: v, opacity: 0 }], { duration: 300, easing: "cubic-bezier(.22,1,.36,1)", fill: "forwards" }).onfinish = () => {
1965
1965
  const m = d.offsetHeight;
1966
1966
  d.style.minHeight = "0", d.style.padding = "0", d.style.margin = "0", d.style.overflow = "hidden", d.animate([{ height: `${m}px` }, { height: "0px" }], { duration: 200, easing: "ease" }).onfinish = () => d.remove();
1967
1967
  };
@@ -1979,10 +1979,10 @@ const P = /* @__PURE__ */ new Set(), N = {}, D = (p, c, t = {}) => {
1979
1979
  }
1980
1980
  A();
1981
1981
  };
1982
- class z extends v {
1982
+ class z extends w {
1983
1983
  }
1984
1984
  s(z, "success", (c, t) => D("success", c, t)), s(z, "error", (c, t) => D("error", c, t)), s(z, "warning", (c, t) => D("warning", c, t)), s(z, "info", (c, t) => D("info", c, t));
1985
- const f = class f extends v {
1985
+ const f = class f extends w {
1986
1986
  };
1987
1987
  s(f, "_el", null), s(f, "_listenersReady", !1), s(f, "show", (c, t) => {
1988
1988
  if (!c || !t) return;
@@ -2047,12 +2047,12 @@ s(f, "_el", null), s(f, "_listenersReady", !1), s(f, "show", (c, t) => {
2047
2047
  }), s(f, "_onKeyDown", (c) => {
2048
2048
  c.key === "Escape" && f.hide();
2049
2049
  });
2050
- let H = f;
2050
+ let O = f;
2051
2051
  const C = (p) => {
2052
2052
  if (!p || !p.stops || p.stops.length < 2) return "";
2053
2053
  const c = [...p.stops].sort((t, e) => t.position - e.position).map((t) => `${t.color} ${t.position}%`).join(", ");
2054
2054
  return p.type === "linear" ? `linear-gradient(${p.angle}deg, ${c})` : `radial-gradient(circle, ${c})`;
2055
- }, W = (p) => {
2055
+ }, gt = (p) => {
2056
2056
  if (!p) return null;
2057
2057
  let c = null, t = 90, e = null;
2058
2058
  const n = p.match(/^linear-gradient\(\s*(\d+)deg\s*,\s*(.+)\)$/i);
@@ -2066,7 +2066,7 @@ const C = (p) => {
2066
2066
  for (; (a = i.exec(e)) !== null; ) o.push({ color: a[1], position: parseFloat(a[2]) });
2067
2067
  return o.length < 2 ? null : { type: c, angle: t, stops: o };
2068
2068
  };
2069
- class At extends v {
2069
+ class mt extends w {
2070
2070
  constructor() {
2071
2071
  super(...arguments);
2072
2072
  s(this, "_gradient", null);
@@ -2134,15 +2134,15 @@ class At extends v {
2134
2134
  const l = r.getBoundingClientRect(), h = parseInt(o.dataset.index, 10);
2135
2135
  this._dragging = { idx: h, startY: a.clientY }, o.classList.add("dragging");
2136
2136
  const d = (x) => {
2137
- const w = (x.clientX - l.left) / l.width * 100, g = Math.max(0, Math.min(100, Math.round(10 * w) / 10));
2137
+ const v = (x.clientX - l.left) / l.width * 100, g = Math.max(0, Math.min(100, Math.round(10 * v) / 10));
2138
2138
  this._gradient.stops[h].position = g, o.style.left = g + "%", Math.abs(x.clientY - this._dragging.startY) > 40 && this._gradient.stops.length > 2 ? o.classList.add("removing") : o.classList.remove("removing"), this._updatePreview(), this._emitGradient("wox-gradient-input");
2139
2139
  }, u = (x) => {
2140
2140
  var b;
2141
2141
  document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", u), o.classList.remove("dragging");
2142
- const w = Math.abs(x.clientY - this._dragging.startY);
2143
- w > 40 && this._gradient.stops.length > 2 ? (this._gradient.stops.splice(h, 1), this._renderStops(), this._updatePreview(), this._emitGradient("wox-gradient-change")) : this._emitGradient("wox-gradient-change");
2142
+ const v = Math.abs(x.clientY - this._dragging.startY);
2143
+ v > 40 && this._gradient.stops.length > 2 ? (this._gradient.stops.splice(h, 1), this._renderStops(), this._updatePreview(), this._emitGradient("wox-gradient-change")) : this._emitGradient("wox-gradient-change");
2144
2144
  const g = Math.abs(x.clientX - (l.left + (((b = this._gradient.stops[h]) == null ? void 0 : b.position) || 0) * l.width / 100));
2145
- (w > 3 || g > 3) && (this._justDragged = !0), this._dragging = null;
2145
+ (v > 3 || g > 3) && (this._justDragged = !0), this._dragging = null;
2146
2146
  };
2147
2147
  document.addEventListener("mousemove", d), document.addEventListener("mouseup", u);
2148
2148
  }), t.appendChild(o);
@@ -2171,8 +2171,8 @@ class At extends v {
2171
2171
  return this._gradient ? JSON.parse(JSON.stringify(this._gradient)) : null;
2172
2172
  }
2173
2173
  }
2174
- const zt = [{ id: "grad_preset_sunset", name: "Sunset", type: "linear", angle: 135, stops: [{ color: "#ff512f", position: 0 }, { color: "#f09819", position: 100 }] }, { id: "grad_preset_ocean", name: "Ocean", type: "linear", angle: 135, stops: [{ color: "#2193b0", position: 0 }, { color: "#6dd5ed", position: 100 }] }, { id: "grad_preset_forest", name: "Forest", type: "linear", angle: 135, stops: [{ color: "#11998e", position: 0 }, { color: "#38ef7d", position: 100 }] }, { id: "grad_preset_purple_haze", name: "Purple Haze", type: "linear", angle: 135, stops: [{ color: "#7b4397", position: 0 }, { color: "#dc2430", position: 100 }] }, { id: "grad_preset_midnight", name: "Midnight", type: "linear", angle: 135, stops: [{ color: "#232526", position: 0 }, { color: "#414345", position: 100 }] }, { id: "grad_preset_peach", name: "Peach", type: "linear", angle: 135, stops: [{ color: "#ffecd2", position: 0 }, { color: "#fcb69f", position: 100 }] }], R = () => "grad_" + Date.now().toString(36) + "_" + Math.random().toString(36).slice(2, 7), X = (p) => !!p && (p.startsWith("linear-gradient") || p.startsWith("radial-gradient"));
2175
- class bt extends v {
2174
+ const Lt = [{ id: "grad_preset_sunset", name: "Sunset", type: "linear", angle: 135, stops: [{ color: "#ff512f", position: 0 }, { color: "#f09819", position: 100 }] }, { id: "grad_preset_ocean", name: "Ocean", type: "linear", angle: 135, stops: [{ color: "#2193b0", position: 0 }, { color: "#6dd5ed", position: 100 }] }, { id: "grad_preset_forest", name: "Forest", type: "linear", angle: 135, stops: [{ color: "#11998e", position: 0 }, { color: "#38ef7d", position: 100 }] }, { id: "grad_preset_purple_haze", name: "Purple Haze", type: "linear", angle: 135, stops: [{ color: "#7b4397", position: 0 }, { color: "#dc2430", position: 100 }] }, { id: "grad_preset_midnight", name: "Midnight", type: "linear", angle: 135, stops: [{ color: "#232526", position: 0 }, { color: "#414345", position: 100 }] }, { id: "grad_preset_peach", name: "Peach", type: "linear", angle: 135, stops: [{ color: "#ffecd2", position: 0 }, { color: "#fcb69f", position: 100 }] }], R = () => "grad_" + Date.now().toString(36) + "_" + Math.random().toString(36).slice(2, 7), bt = (p) => !!p && (p.startsWith("linear-gradient") || p.startsWith("radial-gradient"));
2175
+ class ct extends w {
2176
2176
  constructor() {
2177
2177
  super(...arguments);
2178
2178
  s(this, "_value", "#ffffff");
@@ -2185,7 +2185,7 @@ class bt extends v {
2185
2185
  s(this, "_editingName", "");
2186
2186
  s(this, "_syncFromAttributes", () => {
2187
2187
  const t = this.getAttribute("value");
2188
- t && (this._value = t, this._gradient = X(t) ? W(t) : null);
2188
+ t && (this._value = t, this._gradient = bt(t) ? gt(t) : null);
2189
2189
  const e = this.getAttribute("animation-speed");
2190
2190
  e !== null && (this._animationSpeed = parseInt(e, 10) || 0);
2191
2191
  const n = this.getAttribute("animation-type");
@@ -2197,7 +2197,7 @@ class bt extends v {
2197
2197
  if (t) return void (this._gradients = JSON.parse(t));
2198
2198
  } catch {
2199
2199
  }
2200
- this._gradients = zt.map((t) => ({ ...t, stops: t.stops.map((e) => ({ ...e })) })), this._persistGradients();
2200
+ this._gradients = Lt.map((t) => ({ ...t, stops: t.stops.map((e) => ({ ...e })) })), this._persistGradients();
2201
2201
  });
2202
2202
  s(this, "_persistGradients", () => {
2203
2203
  try {
@@ -2215,7 +2215,7 @@ class bt extends v {
2215
2215
  s(this, "_getById", (t) => this._gradients.find((e) => e.id === t));
2216
2216
  s(this, "_labelForValue", (t) => {
2217
2217
  if (!t) return "None";
2218
- if (X(t)) {
2218
+ if (bt(t)) {
2219
2219
  for (const e of this._gradients) if (C(e) === t) return e.name;
2220
2220
  return "Custom Gradient";
2221
2221
  }
@@ -2521,7 +2521,7 @@ class bt extends v {
2521
2521
  });
2522
2522
  s(this, "_openEditorDialog", (t) => {
2523
2523
  let e;
2524
- t ? e = JSON.parse(JSON.stringify(t)) : (e = W(this._value), e ? (e.id = e.id || R(), e.name = e.name || "Custom Gradient") : e = { id: R(), name: "Custom Gradient", type: "linear", angle: 90, stops: [{ color: this._value.startsWith("#") ? this._value : "#000000", position: 0 }, { color: "#ffffff", position: 100 }] }), this._editingGradient = JSON.parse(JSON.stringify(e)), this._editingName = e.name;
2524
+ t ? e = JSON.parse(JSON.stringify(t)) : (e = gt(this._value), e ? (e.id = e.id || R(), e.name = e.name || "Custom Gradient") : e = { id: R(), name: "Custom Gradient", type: "linear", angle: 90, stops: [{ color: this._value.startsWith("#") ? this._value : "#000000", position: 0 }, { color: "#ffffff", position: 100 }] }), this._editingGradient = JSON.parse(JSON.stringify(e)), this._editingName = e.name;
2525
2525
  const n = this.$(".modal-editor");
2526
2526
  n && (n.gradient = this._editingGradient);
2527
2527
  const o = this.$(".name-input");
@@ -2557,9 +2557,9 @@ class bt extends v {
2557
2557
  this.isConnected && (this._syncFromAttributes(), this._updatePreview(), this._syncControls());
2558
2558
  }
2559
2559
  }
2560
- s(bt, "observedAttributes", ["value", "animation-speed", "animation-type"]);
2561
- const Lt = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], St = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
2562
- class vt extends v {
2560
+ s(ct, "observedAttributes", ["value", "animation-speed", "animation-type"]);
2561
+ const St = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], Mt = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
2562
+ class pt extends w {
2563
2563
  constructor() {
2564
2564
  super(...arguments);
2565
2565
  s(this, "_currentDate", /* @__PURE__ */ new Date());
@@ -2573,7 +2573,7 @@ class vt extends v {
2573
2573
  this._currentDate = new Date(t, this._currentDate.getMonth(), 1), this._render();
2574
2574
  });
2575
2575
  s(this, "_goToday", () => {
2576
- const t = /* @__PURE__ */ new Date(), e = q(t);
2576
+ const t = /* @__PURE__ */ new Date(), e = wt(t);
2577
2577
  this._currentDate = new Date(t.getFullYear(), t.getMonth(), 1), this.rangeMode ? this._selectedRange = { start: e, end: null } : (this._selectedDate = e, this.emit("wox-change", { date: e })), this._render();
2578
2578
  });
2579
2579
  s(this, "_handleDayClick", (t) => {
@@ -2606,21 +2606,21 @@ class vt extends v {
2606
2606
  return e;
2607
2607
  });
2608
2608
  s(this, "_generateGrid", (t, e) => {
2609
- const n = /* @__PURE__ */ new Date(), o = q(n), i = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate();
2609
+ const n = /* @__PURE__ */ new Date(), o = wt(n), i = new Date(t, e, 1).getDay(), a = new Date(t, e + 1, 0).getDate();
2610
2610
  let r = "";
2611
2611
  const l = e === 0 ? t - 1 : t, h = e === 0 ? 11 : e - 1, d = new Date(l, h + 1, 0).getDate();
2612
2612
  for (let g = i - 1; g >= 0; g--) {
2613
2613
  const b = d - g;
2614
- r += `<div class="day-cell other-month" data-date="${F(l, h, b)}">${b}</div>`;
2614
+ r += `<div class="day-cell other-month" data-date="${B(l, h, b)}">${b}</div>`;
2615
2615
  }
2616
2616
  for (let g = 1; g <= a; g++) {
2617
- const b = F(t, e, g);
2617
+ const b = B(t, e, g);
2618
2618
  let y = "day-cell";
2619
- b === o && (y += " today"), this.rangeMode ? this._selectedRange.start && b === this._selectedRange.start ? y += " range-start" : this._selectedRange.end && b === this._selectedRange.end ? y += " range-end" : Mt(b, this._selectedRange.start, this._selectedRange.end) && (y += " in-range") : this._selectedDate && b === this._selectedDate && (y += " selected"), r += `<div class="${y}" data-date="${b}">${g}</div>`;
2619
+ b === o && (y += " today"), this.rangeMode ? this._selectedRange.start && b === this._selectedRange.start ? y += " range-start" : this._selectedRange.end && b === this._selectedRange.end ? y += " range-end" : Dt(b, this._selectedRange.start, this._selectedRange.end) && (y += " in-range") : this._selectedDate && b === this._selectedDate && (y += " selected"), r += `<div class="${y}" data-date="${b}">${g}</div>`;
2620
2620
  }
2621
- const u = 7 * Math.ceil((i + a) / 7), x = e === 11 ? t + 1 : t, w = e === 11 ? 0 : e + 1;
2621
+ const u = 7 * Math.ceil((i + a) / 7), x = e === 11 ? t + 1 : t, v = e === 11 ? 0 : e + 1;
2622
2622
  for (let g = 1; g <= u - i - a; g++)
2623
- r += `<div class="day-cell other-month" data-date="${F(x, w, g)}">${g}</div>`;
2623
+ r += `<div class="day-cell other-month" data-date="${B(x, v, g)}">${g}</div>`;
2624
2624
  return r;
2625
2625
  });
2626
2626
  s(this, "_getModeHint", () => this.rangeMode ? this._selectedRange.start ? this._selectedRange.end ? `${this._selectedRange.start} → ${this._selectedRange.end}` : "Select end date" : "Select start date" : "Select a date");
@@ -2829,13 +2829,13 @@ class vt extends v {
2829
2829
  <div class="header">
2830
2830
  <button class="nav-btn" id="prev-month">&#8249;</button>
2831
2831
  <div class="month-year">
2832
- ${Lt[e]}
2832
+ ${St[e]}
2833
2833
  <select class="year-select">${this._generateYearOptions(t)}</select>
2834
2834
  </div>
2835
2835
  <button class="nav-btn" id="next-month">&#8250;</button>
2836
2836
  </div>
2837
2837
  <div class="day-headers">
2838
- ${St.map((n) => `<div class="day-header">${n}</div>`).join("")}
2838
+ ${Mt.map((n) => `<div class="day-header">${n}</div>`).join("")}
2839
2839
  </div>
2840
2840
  <div class="calendar-grid">
2841
2841
  ${this._generateGrid(t, e)}
@@ -2916,15 +2916,15 @@ class vt extends v {
2916
2916
  this._selectedDate = null, this._selectedRange = { start: null, end: null }, this._render();
2917
2917
  }
2918
2918
  }
2919
- s(vt, "observedAttributes", ["range-mode", "value", "range-start", "range-end", "disabled"]);
2920
- const q = (p) => `${p.getFullYear()}-${String(p.getMonth() + 1).padStart(2, "0")}-${String(p.getDate()).padStart(2, "0")}`, I = (p) => {
2919
+ s(pt, "observedAttributes", ["range-mode", "value", "range-start", "range-end", "disabled"]);
2920
+ const wt = (p) => `${p.getFullYear()}-${String(p.getMonth() + 1).padStart(2, "0")}-${String(p.getDate()).padStart(2, "0")}`, I = (p) => {
2921
2921
  const [c, t, e] = p.split("-").map(Number);
2922
2922
  return new Date(c, t - 1, e);
2923
- }, F = (p, c, t) => `${p}-${String(c + 1).padStart(2, "0")}-${String(t).padStart(2, "0")}`, Mt = (p, c, t) => !(!c || !t) && p > c && p < t, B = "woxTheme", $ = class $ {
2923
+ }, B = (p, c, t) => `${p}-${String(c + 1).padStart(2, "0")}-${String(t).padStart(2, "0")}`, Dt = (p, c, t) => !(!c || !t) && p > c && p < t, W = "woxTheme", $ = class $ {
2924
2924
  };
2925
- s($, "get", () => document.documentElement.dataset[B] === "light" ? "light" : "dark"), s($, "set", (c) => {
2925
+ s($, "get", () => document.documentElement.dataset[W] === "light" ? "light" : "dark"), s($, "set", (c) => {
2926
2926
  if (c === "dark" || c === "light") {
2927
- c === "light" ? document.documentElement.dataset[B] = "light" : delete document.documentElement.dataset[B];
2927
+ c === "light" ? document.documentElement.dataset[W] = "light" : delete document.documentElement.dataset[W];
2928
2928
  try {
2929
2929
  localStorage.setItem("wox-theme", c);
2930
2930
  } catch {
@@ -2943,7 +2943,7 @@ s($, "get", () => document.documentElement.dataset[B] === "light" ? "light" : "d
2943
2943
  $.set(c ? "light" : "dark");
2944
2944
  });
2945
2945
  let L = $;
2946
- class Dt extends v {
2946
+ class ft extends w {
2947
2947
  constructor() {
2948
2948
  super(...arguments);
2949
2949
  s(this, "_onThemeChange", null);
@@ -2998,7 +2998,7 @@ class Dt extends v {
2998
2998
  t.textContent = e ? "light_mode" : "dark_mode", this.$("button").title = e ? "Switch to light mode" : "Switch to dark mode";
2999
2999
  }
3000
3000
  }
3001
- customElements.define("wox-icon", J), customElements.define("wox-separator", K), customElements.define("wox-badge", V), customElements.define("wox-button", U), customElements.define("wox-input", Q), customElements.define("wox-select", Z), customElements.define("wox-slider", tt), customElements.define("wox-color-swatch", et), customElements.define("wox-tooltip", nt), customElements.define("wox-color-picker", ot), customElements.define("wox-menu-item", it), customElements.define("wox-menu", st), customElements.define("wox-layer-item", at), customElements.define("wox-section", rt), customElements.define("wox-tab", dt), customElements.define("wox-tabs", lt), customElements.define("wox-toolbar-group", ct), customElements.define("wox-toolbar", pt), customElements.define("wox-panel", ht), customElements.define("wox-menubar", xt), customElements.define("wox-statusbar", ut), customElements.define("wox-modal", gt), customElements.define("wox-datagrid", yt), customElements.define("wox-toast", z), customElements.define("wox-context-menu", H), customElements.define("wox-gradient-editor", At), customElements.define("wox-gradient-selector", bt), customElements.define("wox-date-picker", vt), customElements.define("wox-theme-toggle", Dt);
3001
+ customElements.define("wox-icon", H), customElements.define("wox-separator", G), customElements.define("wox-badge", j), customElements.define("wox-button", Y), customElements.define("wox-input", X), customElements.define("wox-select", q), customElements.define("wox-slider", J), customElements.define("wox-color-swatch", K), customElements.define("wox-tooltip", V), customElements.define("wox-color-picker", U), customElements.define("wox-menu-item", Q), customElements.define("wox-menu", Z), customElements.define("wox-layer-item", tt), customElements.define("wox-section", et), customElements.define("wox-tab", nt), customElements.define("wox-tabs", ot), customElements.define("wox-toolbar-group", it), customElements.define("wox-toolbar", st), customElements.define("wox-panel", at), customElements.define("wox-menubar", rt), customElements.define("wox-statusbar", dt), customElements.define("wox-modal", lt), customElements.define("wox-datagrid", vt), customElements.define("wox-toast", z), customElements.define("wox-context-menu", O), customElements.define("wox-gradient-editor", mt), customElements.define("wox-gradient-selector", ct), customElements.define("wox-date-picker", pt), customElements.define("wox-theme-toggle", ft);
3002
3002
  const Rt = `/* wox-theme.css — Global CSS custom properties for the WOX component library */
3003
3003
  :root {
3004
3004
  --wox-bg-app: #121214;
@@ -3086,40 +3086,40 @@ const Rt = `/* wox-theme.css — Global CSS custom properties for the WOX compon
3086
3086
  if (document.getElementById("wox-theme")) return;
3087
3087
  const p = document.createElement("style");
3088
3088
  p.id = "wox-theme", p.textContent = Rt, document.head.appendChild(p);
3089
- })();
3089
+ })(), window.WoxIcon = H, window.WoxSeparator = G, window.WoxBadge = j, window.WoxButton = Y, window.WoxInput = X, window.WoxSelect = q, window.WoxSlider = J, window.WoxColorSwatch = K, window.WoxTooltip = V, window.WoxColorPicker = U, window.WoxMenuItem = Q, window.WoxMenu = Z, window.WoxLayerItem = tt, window.WoxSection = et, window.WoxTab = nt, window.WoxTabs = ot, window.WoxToolbarGroup = it, window.WoxToolbar = st, window.WoxPanel = at, window.WoxMenubar = rt, window.WoxStatusbar = dt, window.WoxModal = lt, window.WoxDatagrid = vt, window.WoxToast = z, window.WoxContextMenu = O, window.WoxGradientEditor = mt, window.WoxGradientSelector = ct, window.WoxDatePicker = pt, window.WoxThemeToggle = ft;
3090
3090
  export {
3091
3091
  S as FX_STYLES,
3092
- V as WoxBadge,
3093
- U as WoxButton,
3094
- ot as WoxColorPicker,
3095
- et as WoxColorSwatch,
3096
- H as WoxContextMenu,
3097
- yt as WoxDatagrid,
3098
- vt as WoxDatePicker,
3099
- v as WoxElement,
3100
- At as WoxGradientEditor,
3101
- bt as WoxGradientSelector,
3102
- J as WoxIcon,
3103
- Q as WoxInput,
3104
- at as WoxLayerItem,
3105
- st as WoxMenu,
3106
- it as WoxMenuItem,
3107
- xt as WoxMenubar,
3108
- gt as WoxModal,
3109
- ht as WoxPanel,
3110
- rt as WoxSection,
3111
- Z as WoxSelect,
3112
- K as WoxSeparator,
3113
- tt as WoxSlider,
3114
- ut as WoxStatusbar,
3115
- dt as WoxTab,
3116
- lt as WoxTabs,
3092
+ j as WoxBadge,
3093
+ Y as WoxButton,
3094
+ U as WoxColorPicker,
3095
+ K as WoxColorSwatch,
3096
+ O as WoxContextMenu,
3097
+ vt as WoxDatagrid,
3098
+ pt as WoxDatePicker,
3099
+ w as WoxElement,
3100
+ mt as WoxGradientEditor,
3101
+ ct as WoxGradientSelector,
3102
+ H as WoxIcon,
3103
+ X as WoxInput,
3104
+ tt as WoxLayerItem,
3105
+ Z as WoxMenu,
3106
+ Q as WoxMenuItem,
3107
+ rt as WoxMenubar,
3108
+ lt as WoxModal,
3109
+ at as WoxPanel,
3110
+ et as WoxSection,
3111
+ q as WoxSelect,
3112
+ G as WoxSeparator,
3113
+ J as WoxSlider,
3114
+ dt as WoxStatusbar,
3115
+ nt as WoxTab,
3116
+ ot as WoxTabs,
3117
3117
  L as WoxTheme,
3118
- Dt as WoxThemeToggle,
3118
+ ft as WoxThemeToggle,
3119
3119
  z as WoxToast,
3120
- pt as WoxToolbar,
3121
- ct as WoxToolbarGroup,
3122
- nt as WoxTooltip,
3123
- W as cssToGradient,
3120
+ st as WoxToolbar,
3121
+ it as WoxToolbarGroup,
3122
+ V as WoxTooltip,
3123
+ gt as cssToGradient,
3124
3124
  C as gradientToCSS
3125
3125
  };
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "wox-gui",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "WOX — Web Component UI library",
5
5
  "type": "module",
6
6
  "main": "./dist/wox-gui.js",
7
7
  "module": "./dist/wox-gui.js",
8
8
  "sideEffects": [
9
- "./dist/register.js"
9
+ "./dist/register.js",
10
+ "./dist/wox-gui.cdn.js"
10
11
  ],
11
12
  "exports": {
12
13
  ".": "./dist/wox-gui.js",