@patimweb/crtstyleguide 1.0.6 → 1.0.8

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/lib/index.js +222 -249
  2. package/package.json +1 -1
package/dist/lib/index.js CHANGED
@@ -4,10 +4,10 @@ const d = (r) => (t, a) => {
4
4
  customElements.define(r, t);
5
5
  }) : customElements.define(r, t);
6
6
  };
7
- const ft = globalThis, Dt = ft.ShadowRoot && (ft.ShadyCSS === void 0 || ft.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Xt = /* @__PURE__ */ Symbol(), Rt = /* @__PURE__ */ new WeakMap();
7
+ const bt = globalThis, Dt = bt.ShadowRoot && (bt.ShadyCSS === void 0 || bt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Vt = /* @__PURE__ */ Symbol(), Rt = /* @__PURE__ */ new WeakMap();
8
8
  let Wt = class {
9
9
  constructor(t, a, s) {
10
- if (this._$cssResult$ = !0, s !== Xt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
+ if (this._$cssResult$ = !0, s !== Vt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
11
11
  this.cssText = t, this.t = a;
12
12
  }
13
13
  get styleSheet() {
@@ -23,10 +23,10 @@ let Wt = class {
23
23
  return this.cssText;
24
24
  }
25
25
  };
26
- const Ht = (r) => new Wt(typeof r == "string" ? r : r + "", void 0, Xt), Kt = (r, t) => {
26
+ const Ht = (r) => new Wt(typeof r == "string" ? r : r + "", void 0, Vt), Kt = (r, t) => {
27
27
  if (Dt) r.adoptedStyleSheets = t.map((a) => a instanceof CSSStyleSheet ? a : a.styleSheet);
28
28
  else for (const a of t) {
29
- const s = document.createElement("style"), e = ft.litNonce;
29
+ const s = document.createElement("style"), e = bt.litNonce;
30
30
  e !== void 0 && s.setAttribute("nonce", e), s.textContent = a.cssText, r.appendChild(s);
31
31
  }
32
32
  }, Ft = Dt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
@@ -34,7 +34,7 @@ const Ht = (r) => new Wt(typeof r == "string" ? r : r + "", void 0, Xt), Kt = (r
34
34
  for (const s of t.cssRules) a += s.cssText;
35
35
  return Ht(a);
36
36
  })(r) : r;
37
- const { is: Gt, defineProperty: Jt, getOwnPropertyDescriptor: Zt, getOwnPropertyNames: Qt, getOwnPropertySymbols: tr, getPrototypeOf: rr } = Object, Ot = globalThis, Bt = Ot.trustedTypes, er = Bt ? Bt.emptyScript : "", ar = Ot.reactiveElementPolyfillSupport, at = (r, t) => r, bt = { toAttribute(r, t) {
37
+ const { is: Gt, defineProperty: Jt, getOwnPropertyDescriptor: Zt, getOwnPropertyNames: Qt, getOwnPropertySymbols: tr, getPrototypeOf: rr } = Object, Ot = globalThis, Bt = Ot.trustedTypes, er = Bt ? Bt.emptyScript : "", ar = Ot.reactiveElementPolyfillSupport, at = (r, t) => r, ft = { toAttribute(r, t) {
38
38
  switch (t) {
39
39
  case Boolean:
40
40
  r = r ? er : null;
@@ -62,7 +62,7 @@ const { is: Gt, defineProperty: Jt, getOwnPropertyDescriptor: Zt, getOwnProperty
62
62
  }
63
63
  }
64
64
  return a;
65
- } }, Et = (r, t) => !Gt(r, t), Yt = { attribute: !0, type: String, converter: bt, reflect: !1, useDefault: !1, hasChanged: Et };
65
+ } }, Et = (r, t) => !Gt(r, t), Yt = { attribute: !0, type: String, converter: ft, reflect: !1, useDefault: !1, hasChanged: Et };
66
66
  Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), Ot.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
67
67
  class et extends HTMLElement {
68
68
  static addInitializer(t) {
@@ -161,14 +161,14 @@ class et extends HTMLElement {
161
161
  _$ET(t, a) {
162
162
  const s = this.constructor.elementProperties.get(t), e = this.constructor._$Eu(t, s);
163
163
  if (e !== void 0 && s.reflect === !0) {
164
- const i = (s.converter?.toAttribute !== void 0 ? s.converter : bt).toAttribute(a, s.type);
164
+ const i = (s.converter?.toAttribute !== void 0 ? s.converter : ft).toAttribute(a, s.type);
165
165
  this._$Em = t, i == null ? this.removeAttribute(e) : this.setAttribute(e, i), this._$Em = null;
166
166
  }
167
167
  }
168
168
  _$AK(t, a) {
169
169
  const s = this.constructor, e = s._$Eh.get(t);
170
170
  if (e !== void 0 && this._$Em !== e) {
171
- const i = s.getPropertyOptions(e), o = typeof i.converter == "function" ? { fromAttribute: i.converter } : i.converter?.fromAttribute !== void 0 ? i.converter : bt;
171
+ const i = s.getPropertyOptions(e), o = typeof i.converter == "function" ? { fromAttribute: i.converter } : i.converter?.fromAttribute !== void 0 ? i.converter : ft;
172
172
  this._$Em = e;
173
173
  const h = o.fromAttribute(a, i.type);
174
174
  this[e] = h ?? this._$Ej?.get(e) ?? h, this._$Em = null;
@@ -246,7 +246,7 @@ class et extends HTMLElement {
246
246
  }
247
247
  }
248
248
  et.elementStyles = [], et.shadowRootOptions = { mode: "open" }, et[at("elementProperties")] = /* @__PURE__ */ new Map(), et[at("finalized")] = /* @__PURE__ */ new Map(), ar?.({ ReactiveElement: et }), (Ot.reactiveElementVersions ??= []).push("2.1.2");
249
- const sr = { attribute: !0, type: String, converter: bt, reflect: !1, hasChanged: Et }, ir = (r = sr, t, a) => {
249
+ const sr = { attribute: !0, type: String, converter: ft, reflect: !1, hasChanged: Et }, ir = (r = sr, t, a) => {
250
250
  const { kind: s, metadata: e } = a;
251
251
  let i = globalThis.litPropertyMetadata.get(e);
252
252
  if (i === void 0 && globalThis.litPropertyMetadata.set(e, i = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), i.set(a.name, r), s === "accessor") {
@@ -273,7 +273,7 @@ function n(r) {
273
273
  return e.constructor.createProperty(i, s), o ? Object.getOwnPropertyDescriptor(e, i) : void 0;
274
274
  })(r, t, a);
275
275
  }
276
- function g(r) {
276
+ function v(r) {
277
277
  return n({ ...r, state: !0, attribute: !1 });
278
278
  }
279
279
  const or = (r, t, a) => (a.configurable = !0, a.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(r, t, a), a);
@@ -569,7 +569,7 @@ F([
569
569
  w = F([
570
570
  d("crt-button")
571
571
  ], w);
572
- var dr = Object.defineProperty, hr = Object.getOwnPropertyDescriptor, Vt = (r, t, a, s) => {
572
+ var dr = Object.defineProperty, hr = Object.getOwnPropertyDescriptor, Xt = (r, t, a, s) => {
573
573
  for (var e = s > 1 ? void 0 : s ? hr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
574
574
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
575
575
  return s && e && dr(t, a, e), e;
@@ -623,16 +623,16 @@ yt.styles = l`
623
623
  --badge-border: 1px solid var(--crt-info);
624
624
  }
625
625
  `;
626
- Vt([
626
+ Xt([
627
627
  n()
628
628
  ], yt.prototype, "variant", 2);
629
- yt = Vt([
629
+ yt = Xt([
630
630
  d("crt-badge")
631
631
  ], yt);
632
- var gr = Object.defineProperty, vr = Object.getOwnPropertyDescriptor, Pt = (r, t, a, s) => {
633
- for (var e = s > 1 ? void 0 : s ? vr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
632
+ var vr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, Pt = (r, t, a, s) => {
633
+ for (var e = s > 1 ? void 0 : s ? gr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
634
634
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
635
- return s && e && gr(t, a, e), e;
635
+ return s && e && vr(t, a, e), e;
636
636
  };
637
637
  let xt = class extends p {
638
638
  constructor() {
@@ -748,7 +748,7 @@ let it = class extends p {
748
748
  ${this.tabs.map(
749
749
  (r, t) => c`
750
750
  <div class="tab-pane ${t === this.activeTab ? "active" : ""}">
751
- ${r.label.toLowerCase() === "code" ? c`<pre><code>${r.content}</code></pre>` : c`<div>${fr(r.content)}</div>`}
751
+ ${r.label.toLowerCase() === "code" ? c`<pre><code>${r.content}</code></pre>` : c`<div>${br(r.content)}</div>`}
752
752
  </div>
753
753
  `
754
754
  )}
@@ -824,7 +824,7 @@ it.styles = l`
824
824
  }
825
825
  `;
826
826
  At([
827
- g()
827
+ v()
828
828
  ], it.prototype, "activeTab", 2);
829
829
  At([
830
830
  n({ type: Array })
@@ -832,16 +832,16 @@ At([
832
832
  it = At([
833
833
  d("crt-tabs")
834
834
  ], it);
835
- function fr(r) {
835
+ function br(r) {
836
836
  const t = document.createElement("div");
837
837
  return t.innerHTML = r, t;
838
838
  }
839
- var br = Object.defineProperty, yr = Object.getOwnPropertyDescriptor, $ = (r, t, a, s) => {
839
+ var fr = Object.defineProperty, yr = Object.getOwnPropertyDescriptor, k = (r, t, a, s) => {
840
840
  for (var e = s > 1 ? void 0 : s ? yr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
841
841
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
842
- return s && e && br(t, a, e), e;
842
+ return s && e && fr(t, a, e), e;
843
843
  };
844
- let Y = class extends p {
844
+ let B = class extends p {
845
845
  constructor() {
846
846
  super(...arguments), this.type = "text", this.placeholder = "", this.value = "", this.disabled = !1;
847
847
  }
@@ -859,7 +859,7 @@ let Y = class extends p {
859
859
  `;
860
860
  }
861
861
  };
862
- Y.styles = l`
862
+ B.styles = l`
863
863
  :host {
864
864
  display: block;
865
865
  }
@@ -905,22 +905,22 @@ Y.styles = l`
905
905
  padding-right: var(--crt-spacing-lg);
906
906
  }
907
907
  `;
908
- $([
908
+ k([
909
909
  n()
910
- ], Y.prototype, "type", 2);
911
- $([
910
+ ], B.prototype, "type", 2);
911
+ k([
912
912
  n()
913
- ], Y.prototype, "placeholder", 2);
914
- $([
913
+ ], B.prototype, "placeholder", 2);
914
+ k([
915
915
  n()
916
- ], Y.prototype, "value", 2);
917
- $([
916
+ ], B.prototype, "value", 2);
917
+ k([
918
918
  n()
919
- ], Y.prototype, "disabled", 2);
920
- Y = $([
919
+ ], B.prototype, "disabled", 2);
920
+ B = k([
921
921
  d("crt-input")
922
- ], Y);
923
- let X = class extends p {
922
+ ], B);
923
+ let Y = class extends p {
924
924
  constructor() {
925
925
  super(...arguments), this.placeholder = "", this.value = "", this.disabled = !1, this.rows = 4;
926
926
  }
@@ -939,7 +939,7 @@ ${this.value}</textarea
939
939
  `;
940
940
  }
941
941
  };
942
- X.styles = l`
942
+ Y.styles = l`
943
943
  :host {
944
944
  display: block;
945
945
  }
@@ -981,21 +981,21 @@ X.styles = l`
981
981
  border-style: dashed;
982
982
  }
983
983
  `;
984
- $([
984
+ k([
985
985
  n()
986
- ], X.prototype, "placeholder", 2);
987
- $([
986
+ ], Y.prototype, "placeholder", 2);
987
+ k([
988
988
  n()
989
- ], X.prototype, "value", 2);
990
- $([
989
+ ], Y.prototype, "value", 2);
990
+ k([
991
991
  n()
992
- ], X.prototype, "disabled", 2);
993
- $([
992
+ ], Y.prototype, "disabled", 2);
993
+ k([
994
994
  n()
995
- ], X.prototype, "rows", 2);
996
- X = $([
995
+ ], Y.prototype, "rows", 2);
996
+ Y = k([
997
997
  d("crt-textarea")
998
- ], X);
998
+ ], Y);
999
999
  var xr = Object.defineProperty, wr = Object.getOwnPropertyDescriptor, tt = (r, t, a, s) => {
1000
1000
  for (var e = s > 1 ? void 0 : s ? wr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
1001
1001
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
@@ -1059,25 +1059,14 @@ tt([
1059
1059
  I = tt([
1060
1060
  d("crt-link")
1061
1061
  ], I);
1062
- var kr = Object.defineProperty, $r = Object.getOwnPropertyDescriptor, B = (r, t, a, s) => {
1062
+ var kr = Object.defineProperty, $r = Object.getOwnPropertyDescriptor, H = (r, t, a, s) => {
1063
1063
  for (var e = s > 1 ? void 0 : s ? $r(t, a) : t, i = r.length - 1, o; i >= 0; i--)
1064
1064
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
1065
1065
  return s && e && kr(t, a, e), e;
1066
1066
  };
1067
- let k = class extends p {
1067
+ let P = class extends p {
1068
1068
  constructor() {
1069
- super(...arguments), this.accept = "", this.multiple = !0, this.name = "", this.maxSize = 10485760, this.maxFiles = 10, this.files = [], this.isDragging = !1, this._preventDefaults = (r) => {
1070
- r.preventDefault(), r.stopPropagation();
1071
- }, this._handleDragEnter = () => {
1072
- this.isDragging = !0;
1073
- }, this._handleDragLeave = (r) => {
1074
- const t = r.currentTarget.getBoundingClientRect();
1075
- (r.clientX < t.left || r.clientX >= t.right || r.clientY < t.top || r.clientY >= t.bottom) && (this.isDragging = !1);
1076
- }, this._handleDrop = (r) => {
1077
- this.isDragging = !1;
1078
- const t = r.dataTransfer?.files;
1079
- t && this._addFiles(Array.from(t));
1080
- }, this._handleFileSelect = (r) => {
1069
+ super(...arguments), this.accept = "", this.multiple = !0, this.name = "", this.maxSize = 10485760, this.maxFiles = 10, this.files = [], this._handleFileSelect = (r) => {
1081
1070
  const t = r.target;
1082
1071
  t.files && (this._addFiles(Array.from(t.files)), t.value = "");
1083
1072
  }, this._handleUploadClick = () => {
@@ -1093,14 +1082,10 @@ let k = class extends p {
1093
1082
  };
1094
1083
  }
1095
1084
  connectedCallback() {
1096
- super.connectedCallback(), ["dragenter", "dragover", "dragleave", "drop"].forEach((r) => {
1097
- window.addEventListener(r, this._preventDefaults, !1);
1098
- });
1085
+ super.connectedCallback();
1099
1086
  }
1100
1087
  disconnectedCallback() {
1101
- super.disconnectedCallback(), ["dragenter", "dragover", "dragleave", "drop"].forEach((r) => {
1102
- window.removeEventListener(r, this._preventDefaults, !1);
1103
- });
1088
+ super.disconnectedCallback();
1104
1089
  }
1105
1090
  _generateId() {
1106
1091
  return Math.random().toString(36).substring(2, 9);
@@ -1110,8 +1095,8 @@ let k = class extends p {
1110
1095
  if (e.size > this.maxSize)
1111
1096
  return console.warn(`File ${e.name} exceeds max size`), !1;
1112
1097
  if (this.accept) {
1113
- const i = this.accept.split(",").map((P) => P.trim()), o = e.type, h = "." + e.name.split(".").pop()?.toLowerCase();
1114
- if (!i.some((P) => P.startsWith(".") ? h === P.toLowerCase() : P.endsWith("/*") ? o.startsWith(P.replace("/*", "/")) : o === P))
1098
+ const i = this.accept.split(",").map((O) => O.trim()), o = e.type, h = "." + e.name.split(".").pop()?.toLowerCase();
1099
+ if (!i.some((O) => O.startsWith(".") ? h === O.toLowerCase() : O.endsWith("/*") ? o.startsWith(O.replace("/*", "/")) : o === O))
1115
1100
  return console.warn(`File ${e.name} type not accepted`), !1;
1116
1101
  }
1117
1102
  return !0;
@@ -1154,15 +1139,8 @@ let k = class extends p {
1154
1139
  </span>
1155
1140
  </div>
1156
1141
 
1157
- <!-- Drop Zone -->
1158
- <div
1159
- class="drop-zone ${this.isDragging ? "dragging" : ""}"
1160
- @click="${this._handleUploadClick}"
1161
- @dragenter="${this._handleDragEnter}"
1162
- @dragover="${this._handleDragEnter}"
1163
- @dragleave="${this._handleDragLeave}"
1164
- @drop="${this._handleDrop}"
1165
- >
1142
+ <!-- File input (click only) -->
1143
+ <div>
1166
1144
  <input
1167
1145
  class="upload-input"
1168
1146
  type="file"
@@ -1171,13 +1149,6 @@ let k = class extends p {
1171
1149
  name="${this.name}"
1172
1150
  @change="${this._handleFileSelect}"
1173
1151
  />
1174
- <span class="drop-zone-icon">${this.isDragging ? "[+]" : "[^]"}</span>
1175
- <span class="drop-zone-text">
1176
- ${this.isDragging ? "DROP FILES HERE" : "DRAG & DROP FILES OR CLICK TO BROWSE"}
1177
- </span>
1178
- <span class="drop-zone-hint">
1179
- MAX ${this._formatFileSize(this.maxSize)} PER FILE | ${this.accept || "ALL FILES"}
1180
- </span>
1181
1152
  </div>
1182
1153
 
1183
1154
  <!-- File List -->
@@ -1234,7 +1205,7 @@ let k = class extends p {
1234
1205
  `;
1235
1206
  }
1236
1207
  };
1237
- k.styles = l`
1208
+ P.styles = l`
1238
1209
  :host {
1239
1210
  display: block;
1240
1211
  font-family: var(--crt-font-family);
@@ -1508,31 +1479,28 @@ k.styles = l`
1508
1479
  transition: width 0.3s ease;
1509
1480
  }
1510
1481
  `;
1511
- B([
1482
+ H([
1512
1483
  n({ type: String })
1513
- ], k.prototype, "accept", 2);
1514
- B([
1484
+ ], P.prototype, "accept", 2);
1485
+ H([
1515
1486
  n({ type: Boolean })
1516
- ], k.prototype, "multiple", 2);
1517
- B([
1487
+ ], P.prototype, "multiple", 2);
1488
+ H([
1518
1489
  n({ type: String })
1519
- ], k.prototype, "name", 2);
1520
- B([
1490
+ ], P.prototype, "name", 2);
1491
+ H([
1521
1492
  n({ type: Number })
1522
- ], k.prototype, "maxSize", 2);
1523
- B([
1493
+ ], P.prototype, "maxSize", 2);
1494
+ H([
1524
1495
  n({ type: Number })
1525
- ], k.prototype, "maxFiles", 2);
1526
- B([
1527
- g()
1528
- ], k.prototype, "files", 2);
1529
- B([
1530
- g()
1531
- ], k.prototype, "isDragging", 2);
1532
- k = B([
1496
+ ], P.prototype, "maxFiles", 2);
1497
+ H([
1498
+ v()
1499
+ ], P.prototype, "files", 2);
1500
+ P = H([
1533
1501
  d("crt-file-upload")
1534
- ], k);
1535
- var _r = Object.defineProperty, zr = Object.getOwnPropertyDescriptor, _ = (r, t, a, s) => {
1502
+ ], P);
1503
+ var _r = Object.defineProperty, zr = Object.getOwnPropertyDescriptor, $ = (r, t, a, s) => {
1536
1504
  for (var e = s > 1 ? void 0 : s ? zr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
1537
1505
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
1538
1506
  return s && e && _r(t, a, e), e;
@@ -1628,10 +1596,10 @@ let m = class extends p {
1628
1596
  `);
1629
1597
  }
1630
1598
  for (let h = 1; h <= a; h++) {
1631
- const u = new Date(r, t, h), P = this._isToday(u), qt = this._isSelected(u);
1599
+ const u = new Date(r, t, h), O = this._isToday(u), qt = this._isSelected(u);
1632
1600
  i.push(c`
1633
1601
  <div
1634
- class="day ${P ? "today" : ""} ${qt ? "selected" : ""}"
1602
+ class="day ${O ? "today" : ""} ${qt ? "selected" : ""}"
1635
1603
  @click="${() => this._selectDate(u)}"
1636
1604
  >
1637
1605
  ${h}
@@ -1901,34 +1869,34 @@ m.styles = l`
1901
1869
  color: var(--crt-bg-dark);
1902
1870
  }
1903
1871
  `;
1904
- _([
1872
+ $([
1905
1873
  n({ type: String })
1906
1874
  ], m.prototype, "value", 2);
1907
- _([
1875
+ $([
1908
1876
  n({ type: String })
1909
1877
  ], m.prototype, "placeholder", 2);
1910
- _([
1878
+ $([
1911
1879
  n({ type: String })
1912
1880
  ], m.prototype, "format", 2);
1913
- _([
1881
+ $([
1914
1882
  n({ type: String })
1915
1883
  ], m.prototype, "min", 2);
1916
- _([
1884
+ $([
1917
1885
  n({ type: String })
1918
1886
  ], m.prototype, "max", 2);
1919
- _([
1887
+ $([
1920
1888
  n({ type: Boolean })
1921
1889
  ], m.prototype, "disabled", 2);
1922
- _([
1923
- g()
1890
+ $([
1891
+ v()
1924
1892
  ], m.prototype, "_isOpen", 2);
1925
- _([
1926
- g()
1893
+ $([
1894
+ v()
1927
1895
  ], m.prototype, "_viewDate", 2);
1928
- _([
1929
- g()
1896
+ $([
1897
+ v()
1930
1898
  ], m.prototype, "_selectedDate", 2);
1931
- m = _([
1899
+ m = $([
1932
1900
  d("crt-calendar")
1933
1901
  ], m);
1934
1902
  var Or = Object.defineProperty, Pr = Object.getOwnPropertyDescriptor, K = (r, t, a, s) => {
@@ -2190,12 +2158,12 @@ K([
2190
2158
  n({ type: Array })
2191
2159
  ], C.prototype, "options", 2);
2192
2160
  K([
2193
- g()
2161
+ v()
2194
2162
  ], C.prototype, "_isOpen", 2);
2195
2163
  C = K([
2196
2164
  d("crt-select")
2197
2165
  ], C);
2198
- var Cr = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, v = (r, t, a, s) => {
2166
+ var Cr = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, g = (r, t, a, s) => {
2199
2167
  for (var e = s > 1 ? void 0 : s ? Sr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
2200
2168
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
2201
2169
  return s && e && Cr(t, a, e), e;
@@ -2310,22 +2278,22 @@ L.styles = l`
2310
2278
  transform: scale(1);
2311
2279
  }
2312
2280
  `;
2313
- v([
2281
+ g([
2314
2282
  n({ type: Boolean, reflect: !0 })
2315
2283
  ], L.prototype, "checked", 2);
2316
- v([
2284
+ g([
2317
2285
  n({ type: Boolean, reflect: !0 })
2318
2286
  ], L.prototype, "disabled", 2);
2319
- v([
2287
+ g([
2320
2288
  n({ type: Boolean })
2321
2289
  ], L.prototype, "indeterminate", 2);
2322
- v([
2290
+ g([
2323
2291
  n({ type: String })
2324
2292
  ], L.prototype, "label", 2);
2325
- v([
2293
+ g([
2326
2294
  n({ type: String })
2327
2295
  ], L.prototype, "value", 2);
2328
- L = v([
2296
+ L = g([
2329
2297
  d("crt-checkbox")
2330
2298
  ], L);
2331
2299
  let U = class extends p {
@@ -2431,22 +2399,22 @@ U.styles = l`
2431
2399
  user-select: none;
2432
2400
  }
2433
2401
  `;
2434
- v([
2402
+ g([
2435
2403
  n({ type: Boolean, reflect: !0 })
2436
2404
  ], U.prototype, "checked", 2);
2437
- v([
2405
+ g([
2438
2406
  n({ type: Boolean, reflect: !0 })
2439
2407
  ], U.prototype, "disabled", 2);
2440
- v([
2408
+ g([
2441
2409
  n({ type: String })
2442
2410
  ], U.prototype, "label", 2);
2443
- v([
2411
+ g([
2444
2412
  n({ type: String })
2445
2413
  ], U.prototype, "value", 2);
2446
- v([
2414
+ g([
2447
2415
  n({ type: String })
2448
2416
  ], U.prototype, "name", 2);
2449
- U = v([
2417
+ U = g([
2450
2418
  d("crt-radio")
2451
2419
  ], U);
2452
2420
  let Z = class extends p {
@@ -2483,24 +2451,24 @@ Z.styles = l`
2483
2451
  gap: var(--crt-spacing-lg);
2484
2452
  }
2485
2453
  `;
2486
- v([
2454
+ g([
2487
2455
  n({ type: String })
2488
2456
  ], Z.prototype, "name", 2);
2489
- v([
2457
+ g([
2490
2458
  n({ type: String })
2491
2459
  ], Z.prototype, "value", 2);
2492
- v([
2460
+ g([
2493
2461
  n({ type: Boolean, reflect: !0 })
2494
2462
  ], Z.prototype, "horizontal", 2);
2495
- Z = v([
2463
+ Z = g([
2496
2464
  d("crt-radio-group")
2497
2465
  ], Z);
2498
- var Dr = Object.defineProperty, Er = Object.getOwnPropertyDescriptor, z = (r, t, a, s) => {
2466
+ var Dr = Object.defineProperty, Er = Object.getOwnPropertyDescriptor, _ = (r, t, a, s) => {
2499
2467
  for (var e = s > 1 ? void 0 : s ? Er(t, a) : t, i = r.length - 1, o; i >= 0; i--)
2500
2468
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
2501
2469
  return s && e && Dr(t, a, e), e;
2502
2470
  };
2503
- let f = class extends p {
2471
+ let b = class extends p {
2504
2472
  constructor() {
2505
2473
  super(...arguments), this.value = 0, this.max = 100, this.label = "", this.animated = !1, this.indeterminate = !1, this.segmented = !1, this.size = "medium", this.variant = "default", this.showValue = !0;
2506
2474
  }
@@ -2526,7 +2494,7 @@ let f = class extends p {
2526
2494
  `;
2527
2495
  }
2528
2496
  };
2529
- f.styles = l`
2497
+ b.styles = l`
2530
2498
  :host {
2531
2499
  display: block;
2532
2500
  font-family: var(--crt-font-family);
@@ -2650,36 +2618,36 @@ f.styles = l`
2650
2618
  );
2651
2619
  }
2652
2620
  `;
2653
- z([
2621
+ _([
2654
2622
  n({ type: Number })
2655
- ], f.prototype, "value", 2);
2656
- z([
2623
+ ], b.prototype, "value", 2);
2624
+ _([
2657
2625
  n({ type: Number })
2658
- ], f.prototype, "max", 2);
2659
- z([
2626
+ ], b.prototype, "max", 2);
2627
+ _([
2660
2628
  n({ type: String })
2661
- ], f.prototype, "label", 2);
2662
- z([
2629
+ ], b.prototype, "label", 2);
2630
+ _([
2663
2631
  n({ type: Boolean, reflect: !0 })
2664
- ], f.prototype, "animated", 2);
2665
- z([
2632
+ ], b.prototype, "animated", 2);
2633
+ _([
2666
2634
  n({ type: Boolean, reflect: !0 })
2667
- ], f.prototype, "indeterminate", 2);
2668
- z([
2635
+ ], b.prototype, "indeterminate", 2);
2636
+ _([
2669
2637
  n({ type: Boolean, reflect: !0 })
2670
- ], f.prototype, "segmented", 2);
2671
- z([
2638
+ ], b.prototype, "segmented", 2);
2639
+ _([
2672
2640
  n({ type: String, reflect: !0 })
2673
- ], f.prototype, "size", 2);
2674
- z([
2641
+ ], b.prototype, "size", 2);
2642
+ _([
2675
2643
  n({ type: String, reflect: !0 })
2676
- ], f.prototype, "variant", 2);
2677
- z([
2644
+ ], b.prototype, "variant", 2);
2645
+ _([
2678
2646
  n({ type: Boolean })
2679
- ], f.prototype, "showValue", 2);
2680
- f = z([
2647
+ ], b.prototype, "showValue", 2);
2648
+ b = _([
2681
2649
  d("crt-progress")
2682
- ], f);
2650
+ ], b);
2683
2651
  var Tr = Object.defineProperty, jr = Object.getOwnPropertyDescriptor, ht = (r, t, a, s) => {
2684
2652
  for (var e = s > 1 ? void 0 : s ? jr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
2685
2653
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
@@ -2831,7 +2799,7 @@ ht([
2831
2799
  n({ type: Number })
2832
2800
  ], V.prototype, "delay", 2);
2833
2801
  ht([
2834
- g()
2802
+ v()
2835
2803
  ], V.prototype, "_visible", 2);
2836
2804
  V = ht([
2837
2805
  d("crt-tooltip")
@@ -2917,12 +2885,12 @@ Mt([
2917
2885
  ot = Mt([
2918
2886
  d("crt-breadcrumb")
2919
2887
  ], ot);
2920
- var Ir = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, gt = (r, t, a, s) => {
2888
+ var Ir = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, vt = (r, t, a, s) => {
2921
2889
  for (var e = s > 1 ? void 0 : s ? Lr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
2922
2890
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
2923
2891
  return s && e && Ir(t, a, e), e;
2924
2892
  };
2925
- let q = class extends p {
2893
+ let X = class extends p {
2926
2894
  constructor() {
2927
2895
  super(...arguments), this.current = 1, this.total = 1, this.siblings = 1, this.showInfo = !0;
2928
2896
  }
@@ -2981,7 +2949,7 @@ let q = class extends p {
2981
2949
  `;
2982
2950
  }
2983
2951
  };
2984
- q.styles = l`
2952
+ X.styles = l`
2985
2953
  :host {
2986
2954
  display: block;
2987
2955
  font-family: var(--crt-font-family);
@@ -3036,27 +3004,27 @@ q.styles = l`
3036
3004
  margin-left: var(--crt-spacing-md);
3037
3005
  }
3038
3006
  `;
3039
- gt([
3007
+ vt([
3040
3008
  n({ type: Number })
3041
- ], q.prototype, "current", 2);
3042
- gt([
3009
+ ], X.prototype, "current", 2);
3010
+ vt([
3043
3011
  n({ type: Number })
3044
- ], q.prototype, "total", 2);
3045
- gt([
3012
+ ], X.prototype, "total", 2);
3013
+ vt([
3046
3014
  n({ type: Number })
3047
- ], q.prototype, "siblings", 2);
3048
- gt([
3015
+ ], X.prototype, "siblings", 2);
3016
+ vt([
3049
3017
  n({ type: Boolean })
3050
- ], q.prototype, "showInfo", 2);
3051
- q = gt([
3018
+ ], X.prototype, "showInfo", 2);
3019
+ X = vt([
3052
3020
  d("crt-pagination")
3053
- ], q);
3021
+ ], X);
3054
3022
  var Ur = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, T = (r, t, a, s) => {
3055
3023
  for (var e = s > 1 ? void 0 : s ? Nr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
3056
3024
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
3057
3025
  return s && e && Ur(t, a, e), e;
3058
3026
  };
3059
- let b = class extends p {
3027
+ let f = class extends p {
3060
3028
  constructor() {
3061
3029
  super(...arguments), this.value = 50, this.min = 0, this.max = 100, this.step = 1, this.label = "", this.disabled = !1, this.showMarks = !1, this.unit = "";
3062
3030
  }
@@ -3109,7 +3077,7 @@ let b = class extends p {
3109
3077
  `;
3110
3078
  }
3111
3079
  };
3112
- b.styles = l`
3080
+ f.styles = l`
3113
3081
  :host {
3114
3082
  display: block;
3115
3083
  font-family: var(--crt-font-family);
@@ -3237,31 +3205,31 @@ b.styles = l`
3237
3205
  `;
3238
3206
  T([
3239
3207
  n({ type: Number })
3240
- ], b.prototype, "value", 2);
3208
+ ], f.prototype, "value", 2);
3241
3209
  T([
3242
3210
  n({ type: Number })
3243
- ], b.prototype, "min", 2);
3211
+ ], f.prototype, "min", 2);
3244
3212
  T([
3245
3213
  n({ type: Number })
3246
- ], b.prototype, "max", 2);
3214
+ ], f.prototype, "max", 2);
3247
3215
  T([
3248
3216
  n({ type: Number })
3249
- ], b.prototype, "step", 2);
3217
+ ], f.prototype, "step", 2);
3250
3218
  T([
3251
3219
  n({ type: String })
3252
- ], b.prototype, "label", 2);
3220
+ ], f.prototype, "label", 2);
3253
3221
  T([
3254
3222
  n({ type: Boolean, reflect: !0 })
3255
- ], b.prototype, "disabled", 2);
3223
+ ], f.prototype, "disabled", 2);
3256
3224
  T([
3257
3225
  n({ type: Boolean })
3258
- ], b.prototype, "showMarks", 2);
3226
+ ], f.prototype, "showMarks", 2);
3259
3227
  T([
3260
3228
  n({ type: String })
3261
- ], b.prototype, "unit", 2);
3262
- b = T([
3229
+ ], f.prototype, "unit", 2);
3230
+ f = T([
3263
3231
  d("crt-slider")
3264
- ], b);
3232
+ ], f);
3265
3233
  var Rr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, G = (r, t, a, s) => {
3266
3234
  for (var e = s > 1 ? void 0 : s ? Fr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
3267
3235
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
@@ -3673,10 +3641,10 @@ j([
3673
3641
  kt = j([
3674
3642
  d("crt-avatar-group")
3675
3643
  ], kt);
3676
- var Xr = Object.defineProperty, Vr = Object.getOwnPropertyDescriptor, O = (r, t, a, s) => {
3677
- for (var e = s > 1 ? void 0 : s ? Vr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
3644
+ var Vr = Object.defineProperty, Xr = Object.getOwnPropertyDescriptor, z = (r, t, a, s) => {
3645
+ for (var e = s > 1 ? void 0 : s ? Xr(t, a) : t, i = r.length - 1, o; i >= 0; i--)
3678
3646
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
3679
- return s && e && Xr(t, a, e), e;
3647
+ return s && e && Vr(t, a, e), e;
3680
3648
  };
3681
3649
  let N = class extends p {
3682
3650
  constructor() {
@@ -3806,22 +3774,22 @@ N.styles = l`
3806
3774
  pointer-events: none;
3807
3775
  }
3808
3776
  `;
3809
- O([
3777
+ z([
3810
3778
  n({ type: String, reflect: !0 })
3811
3779
  ], N.prototype, "variant", 2);
3812
- O([
3780
+ z([
3813
3781
  n({ type: String, reflect: !0 })
3814
3782
  ], N.prototype, "animation", 2);
3815
- O([
3783
+ z([
3816
3784
  n({ type: String })
3817
3785
  ], N.prototype, "width", 2);
3818
- O([
3786
+ z([
3819
3787
  n({ type: String })
3820
3788
  ], N.prototype, "height", 2);
3821
- O([
3789
+ z([
3822
3790
  n({ type: Boolean, reflect: !0 })
3823
3791
  ], N.prototype, "effect", 2);
3824
- N = O([
3792
+ N = z([
3825
3793
  d("crt-skeleton")
3826
3794
  ], N);
3827
3795
  let $t = class extends p {
@@ -3868,10 +3836,10 @@ $t.styles = l`
3868
3836
  }
3869
3837
  }
3870
3838
  `;
3871
- O([
3839
+ z([
3872
3840
  n({ type: Number })
3873
3841
  ], $t.prototype, "lines", 2);
3874
- $t = O([
3842
+ $t = z([
3875
3843
  d("crt-skeleton-text")
3876
3844
  ], $t);
3877
3845
  let _t = class extends p {
@@ -3941,10 +3909,10 @@ _t.styles = l`
3941
3909
  }
3942
3910
  }
3943
3911
  `;
3944
- O([
3912
+ z([
3945
3913
  n({ type: Boolean })
3946
3914
  ], _t.prototype, "hideImage", 2);
3947
- _t = O([
3915
+ _t = z([
3948
3916
  d("crt-skeleton-card")
3949
3917
  ], _t);
3950
3918
  var qr = Object.defineProperty, Wr = Object.getOwnPropertyDescriptor, A = (r, t, a, s) => {
@@ -4847,10 +4815,10 @@ rt([
4847
4815
  n()
4848
4816
  ], R.prototype, "code", 2);
4849
4817
  rt([
4850
- g()
4818
+ v()
4851
4819
  ], R.prototype, "activeTab", 2);
4852
4820
  rt([
4853
- g()
4821
+ v()
4854
4822
  ], R.prototype, "copied", 2);
4855
4823
  R = rt([
4856
4824
  d("crt-code-example")
@@ -5289,12 +5257,12 @@ J([
5289
5257
  n({ type: Number })
5290
5258
  ], E.prototype, "duration", 2);
5291
5259
  J([
5292
- g()
5260
+ v()
5293
5261
  ], E.prototype, "_toasts", 2);
5294
5262
  E = J([
5295
5263
  d("crt-toast")
5296
5264
  ], E);
5297
- var ce = Object.defineProperty, le = Object.getOwnPropertyDescriptor, vt = (r, t, a, s) => {
5265
+ var ce = Object.defineProperty, le = Object.getOwnPropertyDescriptor, gt = (r, t, a, s) => {
5298
5266
  for (var e = s > 1 ? void 0 : s ? le(t, a) : t, i = r.length - 1, o; i >= 0; i--)
5299
5267
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
5300
5268
  return s && e && ce(t, a, e), e;
@@ -5399,13 +5367,13 @@ pt.styles = l`
5399
5367
  color: var(--crt-text-secondary);
5400
5368
  }
5401
5369
  `;
5402
- vt([
5370
+ gt([
5403
5371
  n({ type: String })
5404
5372
  ], pt.prototype, "header", 2);
5405
- vt([
5373
+ gt([
5406
5374
  n({ type: Boolean, reflect: !0 })
5407
5375
  ], pt.prototype, "open", 2);
5408
- pt = vt([
5376
+ pt = gt([
5409
5377
  d("crt-accordion-item")
5410
5378
  ], pt);
5411
5379
  let zt = class extends p {
@@ -5431,10 +5399,10 @@ zt.styles = l`
5431
5399
  display: block;
5432
5400
  }
5433
5401
  `;
5434
- vt([
5402
+ gt([
5435
5403
  n({ type: Boolean })
5436
5404
  ], zt.prototype, "multiple", 2);
5437
- zt = vt([
5405
+ zt = gt([
5438
5406
  d("crt-accordion")
5439
5407
  ], zt);
5440
5408
  var pe = Object.defineProperty, de = Object.getOwnPropertyDescriptor, ut = (r, t, a, s) => {
@@ -5442,7 +5410,7 @@ var pe = Object.defineProperty, de = Object.getOwnPropertyDescriptor, ut = (r, t
5442
5410
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
5443
5411
  return s && e && pe(t, a, e), e;
5444
5412
  };
5445
- let W = class extends p {
5413
+ let q = class extends p {
5446
5414
  constructor() {
5447
5415
  super(...arguments), this.bars = 20, this.mode = 1, this.barHeights = [], this.isActive = !1, this.visualize = () => {
5448
5416
  if (!this.isActive || !this.analyser || !this.dataArray) return;
@@ -5495,7 +5463,7 @@ let W = class extends p {
5495
5463
  `;
5496
5464
  }
5497
5465
  };
5498
- W.styles = l`
5466
+ q.styles = l`
5499
5467
  :host {
5500
5468
  display: block;
5501
5469
  }
@@ -5563,21 +5531,21 @@ W.styles = l`
5563
5531
  `;
5564
5532
  ut([
5565
5533
  n({ type: Number })
5566
- ], W.prototype, "bars", 2);
5534
+ ], q.prototype, "bars", 2);
5567
5535
  ut([
5568
5536
  n({ type: Number })
5569
- ], W.prototype, "mode", 2);
5537
+ ], q.prototype, "mode", 2);
5570
5538
  ut([
5571
- g()
5572
- ], W.prototype, "barHeights", 2);
5539
+ v()
5540
+ ], q.prototype, "barHeights", 2);
5573
5541
  ut([
5574
- g()
5575
- ], W.prototype, "isActive", 2);
5576
- W = ut([
5542
+ v()
5543
+ ], q.prototype, "isActive", 2);
5544
+ q = ut([
5577
5545
  d("crt-visualizer")
5578
- ], W);
5579
- var he = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, Nt = (r, t, a, s) => {
5580
- for (var e = s > 1 ? void 0 : s ? ge(t, a) : t, i = r.length - 1, o; i >= 0; i--)
5546
+ ], q);
5547
+ var he = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, Nt = (r, t, a, s) => {
5548
+ for (var e = s > 1 ? void 0 : s ? ve(t, a) : t, i = r.length - 1, o; i >= 0; i--)
5581
5549
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
5582
5550
  return s && e && he(t, a, e), e;
5583
5551
  };
@@ -5800,10 +5768,10 @@ Nt([
5800
5768
  dt = Nt([
5801
5769
  d("crt-playlist")
5802
5770
  ], dt);
5803
- var ve = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, M = (r, t, a, s) => {
5771
+ var ge = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, M = (r, t, a, s) => {
5804
5772
  for (var e = s > 1 ? void 0 : s ? ue(t, a) : t, i = r.length - 1, o; i >= 0; i--)
5805
5773
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
5806
- return s && e && ve(t, a, e), e;
5774
+ return s && e && ge(t, a, e), e;
5807
5775
  };
5808
5776
  let x = class extends p {
5809
5777
  constructor() {
@@ -5839,13 +5807,18 @@ let x = class extends p {
5839
5807
  }
5840
5808
  loadTrack(r) {
5841
5809
  if (r < 0 || r >= this.tracks.length) return;
5842
- const t = this.isPlaying;
5843
- this.isPlaying && (this.audio?.pause(), this.visualizer?.stop()), this.currentIndex = r, this.currentTime = 0, this.audio && (this.audio.src = this.tracks[r].url, this.audio.load()), t && this.audio?.addEventListener("canplay", () => this.play(), { once: !0 }), this.dispatchEvent(new CustomEvent("track-change", {
5810
+ const t = this.tracks[r];
5811
+ if (!t?.url) {
5812
+ this.currentIndex = r;
5813
+ return;
5814
+ }
5815
+ const a = this.isPlaying;
5816
+ this.isPlaying && (this.audio?.pause(), this.visualizer?.stop()), this.currentIndex = r, this.currentTime = 0, this.audio && (this.audio.src = t.url, this.audio.load()), a && this.audio?.addEventListener("canplay", () => this.play(), { once: !0 }), this.dispatchEvent(new CustomEvent("track-change", {
5844
5817
  detail: { index: r, track: this.tracks[r] }
5845
5818
  }));
5846
5819
  }
5847
5820
  play() {
5848
- !this.audio?.src || this.tracks.length === 0 || (this.visualizer?.connectAudio(this.audio), this.audio.play(), this.isPlaying = !0, this.visualizer?.start());
5821
+ !this.tracks[this.currentIndex]?.url || this.tracks.length === 0 || this.audio?.src && (this.visualizer?.connectAudio(this.audio), this.audio.play(), this.isPlaying = !0, this.visualizer?.start());
5849
5822
  }
5850
5823
  pause() {
5851
5824
  this.audio?.pause(), this.isPlaying = !1, this.visualizer?.stop();
@@ -6076,16 +6049,16 @@ M([
6076
6049
  n({ type: Number })
6077
6050
  ], x.prototype, "currentIndex", 2);
6078
6051
  M([
6079
- g()
6052
+ v()
6080
6053
  ], x.prototype, "isPlaying", 2);
6081
6054
  M([
6082
- g()
6055
+ v()
6083
6056
  ], x.prototype, "currentTime", 2);
6084
6057
  M([
6085
- g()
6058
+ v()
6086
6059
  ], x.prototype, "duration", 2);
6087
6060
  M([
6088
- g()
6061
+ v()
6089
6062
  ], x.prototype, "volume", 2);
6090
6063
  M([
6091
6064
  Tt("audio")
@@ -6096,12 +6069,12 @@ M([
6096
6069
  x = M([
6097
6070
  d("crt-music-player")
6098
6071
  ], x);
6099
- var me = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, mt = (r, t, a, s) => {
6100
- for (var e = s > 1 ? void 0 : s ? fe(t, a) : t, i = r.length - 1, o; i >= 0; i--)
6072
+ var me = Object.defineProperty, be = Object.getOwnPropertyDescriptor, mt = (r, t, a, s) => {
6073
+ for (var e = s > 1 ? void 0 : s ? be(t, a) : t, i = r.length - 1, o; i >= 0; i--)
6101
6074
  (o = r[i]) && (e = (s ? o(t, a, e) : o(e)) || e);
6102
6075
  return s && e && me(t, a, e), e;
6103
6076
  };
6104
- let H = class extends p {
6077
+ let W = class extends p {
6105
6078
  constructor() {
6106
6079
  super(...arguments), this.tracks = [], this.currentIndex = 0, this.showUploadModal = !1, this.handleFilesChanged = (r) => {
6107
6080
  const a = r.detail.files.filter((s) => s.type.startsWith("audio/") || s.name.endsWith(".mp3") || s.name.endsWith(".wav") || s.name.endsWith(".ogg") || s.name.endsWith(".flac")).map((s) => {
@@ -6189,7 +6162,7 @@ let H = class extends p {
6189
6162
  `;
6190
6163
  }
6191
6164
  };
6192
- H.styles = l`
6165
+ W.styles = l`
6193
6166
  :host {
6194
6167
  display: block;
6195
6168
  font-family: var(--crt-font-family);
@@ -6263,20 +6236,20 @@ H.styles = l`
6263
6236
  }
6264
6237
  `;
6265
6238
  mt([
6266
- g()
6267
- ], H.prototype, "tracks", 2);
6239
+ v()
6240
+ ], W.prototype, "tracks", 2);
6268
6241
  mt([
6269
- g()
6270
- ], H.prototype, "currentIndex", 2);
6242
+ v()
6243
+ ], W.prototype, "currentIndex", 2);
6271
6244
  mt([
6272
- g()
6273
- ], H.prototype, "showUploadModal", 2);
6245
+ v()
6246
+ ], W.prototype, "showUploadModal", 2);
6274
6247
  mt([
6275
6248
  Tt("crt-file-upload")
6276
- ], H.prototype, "fileUpload", 2);
6277
- H = mt([
6249
+ ], W.prototype, "fileUpload", 2);
6250
+ W = mt([
6278
6251
  d("crt-music-station")
6279
- ], H);
6252
+ ], W);
6280
6253
  export {
6281
6254
  zt as Accordion,
6282
6255
  pt as AccordionItem,
@@ -6290,32 +6263,32 @@ export {
6290
6263
  St as Card,
6291
6264
  L as Checkbox,
6292
6265
  R as CodeExample,
6293
- k as FileUpload,
6266
+ P as FileUpload,
6294
6267
  lt as Grid,
6295
6268
  xt as Heading,
6296
6269
  st as Icon,
6297
- Y as Input,
6270
+ B as Input,
6298
6271
  I as Link,
6299
6272
  Q as Modal,
6300
6273
  x as MusicPlayer,
6301
- H as MusicStation,
6302
- q as Pagination,
6274
+ W as MusicStation,
6275
+ X as Pagination,
6303
6276
  dt as Playlist,
6304
- f as Progress,
6277
+ b as Progress,
6305
6278
  U as Radio,
6306
6279
  Z as RadioGroup,
6307
6280
  C as Select,
6308
6281
  N as Skeleton,
6309
6282
  _t as SkeletonCard,
6310
6283
  $t as SkeletonText,
6311
- b as Slider,
6284
+ f as Slider,
6312
6285
  nt as Spinner,
6313
6286
  ct as Table,
6314
6287
  it as Tabs,
6315
6288
  wt as Text,
6316
- X as Textarea,
6289
+ Y as Textarea,
6317
6290
  E as Toast,
6318
6291
  S as Toggle,
6319
6292
  V as Tooltip,
6320
- W as Visualizer
6293
+ q as Visualizer
6321
6294
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patimweb/crtstyleguide",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "CRT Style Guide - Retro Lit component library",
5
5
  "type": "module",
6
6
  "main": "dist/lib/index.js",