@patimweb/crtstyleguide 1.0.15 → 1.0.17

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 +101 -85
  2. package/package.json +1 -1
package/dist/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { css as d, LitElement as h, html as l } from "lit";
2
- const v = (e) => (t, a) => {
2
+ const u = (e) => (t, a) => {
3
3
  a !== void 0 ? a.addInitializer(() => {
4
4
  customElements.define(e, t);
5
5
  }) : customElements.define(e, t);
@@ -34,7 +34,7 @@ const Ae = (e) => new Oe(typeof e == "string" ? e : e + "", void 0, ke), Se = (e
34
34
  for (const s of t.cssRules) a += s.cssText;
35
35
  return Ae(a);
36
36
  })(e) : e;
37
- const { is: Ee, defineProperty: Me, getOwnPropertyDescriptor: De, getOwnPropertyNames: Te, getOwnPropertySymbols: je, getPrototypeOf: Le } = Object, Vt = globalThis, ve = Vt.trustedTypes, Ie = ve ? ve.emptyScript : "", Be = Vt.reactiveElementPolyfillSupport, bt = (e, t) => e, jt = { toAttribute(e, t) {
37
+ const { is: Ee, defineProperty: Me, getOwnPropertyDescriptor: De, getOwnPropertyNames: Te, getOwnPropertySymbols: je, getPrototypeOf: Le } = Object, Vt = globalThis, ue = Vt.trustedTypes, Ie = ue ? ue.emptyScript : "", Be = Vt.reactiveElementPolyfillSupport, bt = (e, t) => e, jt = { toAttribute(e, t) {
38
38
  switch (t) {
39
39
  case Boolean:
40
40
  e = e ? Ie : null;
@@ -62,7 +62,7 @@ const { is: Ee, defineProperty: Me, getOwnPropertyDescriptor: De, getOwnProperty
62
62
  }
63
63
  }
64
64
  return a;
65
- } }, te = (e, t) => !Ee(e, t), ue = { attribute: !0, type: String, converter: jt, reflect: !1, useDefault: !1, hasChanged: te };
65
+ } }, te = (e, t) => !Ee(e, t), ve = { attribute: !0, type: String, converter: jt, reflect: !1, useDefault: !1, hasChanged: te };
66
66
  Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), Vt.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
67
67
  let mt = class extends HTMLElement {
68
68
  static addInitializer(t) {
@@ -71,7 +71,7 @@ let mt = class extends HTMLElement {
71
71
  static get observedAttributes() {
72
72
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
73
73
  }
74
- static createProperty(t, a = ue) {
74
+ static createProperty(t, a = ve) {
75
75
  if (a.state && (a.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((a = Object.create(a)).wrapped = !0), this.elementProperties.set(t, a), !a.noAccessor) {
76
76
  const s = /* @__PURE__ */ Symbol(), r = this.getPropertyDescriptor(t, s, a);
77
77
  r !== void 0 && Me(this.prototype, t, r);
@@ -89,7 +89,7 @@ let mt = class extends HTMLElement {
89
89
  }, configurable: !0, enumerable: !0 };
90
90
  }
91
91
  static getPropertyOptions(t) {
92
- return this.elementProperties.get(t) ?? ue;
92
+ return this.elementProperties.get(t) ?? ve;
93
93
  }
94
94
  static _$Ei() {
95
95
  if (this.hasOwnProperty(bt("elementProperties"))) return;
@@ -297,10 +297,10 @@ const Ye = (e, t) => {
297
297
  let r, i = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = ft;
298
298
  for (let c = 0; c < a; c++) {
299
299
  const p = e[c];
300
- let u, b, g = -1, E = 0;
301
- for (; E < p.length && (o.lastIndex = E, b = o.exec(p), b !== null); ) E = o.lastIndex, o === ft ? b[1] === "!--" ? o = fe : b[1] !== void 0 ? o = be : b[2] !== void 0 ? (ze.test(b[2]) && (r = RegExp("</" + b[2], "g")), o = G) : b[3] !== void 0 && (o = G) : o === G ? b[0] === ">" ? (o = r ?? ft, g = -1) : b[1] === void 0 ? g = -2 : (g = o.lastIndex - b[2].length, u = b[1], o = b[3] === void 0 ? G : b[3] === '"' ? xe : ye) : o === xe || o === ye ? o = G : o === fe || o === be ? o = ft : (o = G, r = void 0);
300
+ let v, b, g = -1, E = 0;
301
+ for (; E < p.length && (o.lastIndex = E, b = o.exec(p), b !== null); ) E = o.lastIndex, o === ft ? b[1] === "!--" ? o = fe : b[1] !== void 0 ? o = be : b[2] !== void 0 ? (ze.test(b[2]) && (r = RegExp("</" + b[2], "g")), o = G) : b[3] !== void 0 && (o = G) : o === G ? b[0] === ">" ? (o = r ?? ft, g = -1) : b[1] === void 0 ? g = -2 : (g = o.lastIndex - b[2].length, v = b[1], o = b[3] === void 0 ? G : b[3] === '"' ? xe : ye) : o === xe || o === ye ? o = G : o === fe || o === be ? o = ft : (o = G, r = void 0);
302
302
  const R = o === G && e[c + 1].startsWith("/>") ? " " : "";
303
- i += o === ft ? p + Fe : g >= 0 ? (s.push(u), p.slice(0, g) + $e + p.slice(g) + F + R) : p + F + (g === -2 ? c : R);
303
+ i += o === ft ? p + Fe : g >= 0 ? (s.push(v), p.slice(0, g) + $e + p.slice(g) + F + R) : p + F + (g === -2 ? c : R);
304
304
  }
305
305
  return [Ce(e, i + (e[a] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
306
306
  };
@@ -309,8 +309,8 @@ class xt {
309
309
  let r;
310
310
  this.parts = [];
311
311
  let i = 0, o = 0;
312
- const c = t.length - 1, p = this.parts, [u, b] = Ye(t, a);
313
- if (this.el = xt.createElement(u, s), Z.currentNode = this.el.content, a === 2 || a === 3) {
312
+ const c = t.length - 1, p = this.parts, [v, b] = Ye(t, a);
313
+ if (this.el = xt.createElement(v, s), Z.currentNode = this.el.content, a === 2 || a === 3) {
314
314
  const g = this.el.content.firstChild;
315
315
  g.replaceWith(...g.childNodes);
316
316
  }
@@ -363,8 +363,8 @@ class Ve {
363
363
  let i = Z.nextNode(), o = 0, c = 0, p = s[0];
364
364
  for (; p !== void 0; ) {
365
365
  if (o === p.index) {
366
- let u;
367
- p.type === 2 ? u = new qt(i, i.nextSibling, this, t) : p.type === 1 ? u = new p.ctor(i, p.name, p.strings, this, t) : p.type === 6 && (u = new Ke(i, this, t)), this._$AV.push(u), p = s[++c];
366
+ let v;
367
+ p.type === 2 ? v = new qt(i, i.nextSibling, this, t) : p.type === 1 ? v = new p.ctor(i, p.name, p.strings, this, t) : p.type === 6 && (v = new Ke(i, this, t)), this._$AV.push(v), p = s[++c];
368
368
  }
369
369
  o !== p?.index && (i = Z.nextNode(), o++);
370
370
  }
@@ -450,8 +450,8 @@ class Wt {
450
450
  if (i === void 0) t = pt(this, t, a, 0), o = !yt(t) || t !== this._$AH && t !== ct, o && (this._$AH = t);
451
451
  else {
452
452
  const c = t;
453
- let p, u;
454
- for (t = i[0], p = 0; p < i.length - 1; p++) u = pt(this, c[s + p], a, p), u === ct && (u = this._$AH[p]), o ||= !yt(u) || u !== this._$AH[p], u === f ? t = f : t !== f && (t += (u ?? "") + i[p + 1]), this._$AH[p] = u;
453
+ let p, v;
454
+ for (t = i[0], p = 0; p < i.length - 1; p++) v = pt(this, c[s + p], a, p), v === ct && (v = this._$AH[p]), o ||= !yt(v) || v !== this._$AH[p], v === f ? t = f : t !== f && (t += (v ?? "") + i[p + 1]), this._$AH[p] = v;
455
455
  }
456
456
  o && !r && this.j(t);
457
457
  }
@@ -555,8 +555,24 @@ const ar = {
555
555
  upload: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M21 9V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v4"/><path d="M7 14l5-5 5 5"/><path d="M12 9v12"/></svg>',
556
556
  folder: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></svg>',
557
557
  file: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6"/></svg>',
558
- trash: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><polyline points="3 6 5 6 21 6"/><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/><path d="M10 11v6M14 11v6"/></svg>',
559
- delete: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><polyline points="3 6 5 6 21 6"/><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/><path d="M10 11v6M14 11v6"/></svg>',
558
+ trash: `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg">
559
+ <!-- lid -->
560
+ <path d="M9 3h6l1 3H8l1-3z"/>
561
+ <!-- top edge -->
562
+ <polyline points="3 6 5 6 21 6"/>
563
+ <!-- body -->
564
+ <path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/>
565
+ <!-- inner lines -->
566
+ <path d="M10 11v6M14 11v6"/></svg>`,
567
+ delete: `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg">
568
+ <!-- lid -->
569
+ <path d="M9 3h6l1 3H8l1-3z"/>
570
+ <!-- top edge -->
571
+ <polyline points="3 6 5 6 21 6"/>
572
+ <!-- body -->
573
+ <path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/>
574
+ <!-- inner lines -->
575
+ <path d="M10 11v6M14 11v6"/></svg>`,
560
576
  edit: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M12 20h9"/><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"/></svg>',
561
577
  pencil: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M12 20h9"/><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"/></svg>',
562
578
  eye: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z"/><circle cx="12" cy="12" r="3"/></svg>',
@@ -610,7 +626,7 @@ se([
610
626
  n()
611
627
  ], wt.prototype, "size", 2);
612
628
  wt = se([
613
- v("crt-icon")
629
+ u("crt-icon")
614
630
  ], wt);
615
631
  var sr = Object.defineProperty, ir = Object.getOwnPropertyDescriptor, K = (e, t, a, s) => {
616
632
  for (var r = s > 1 ? void 0 : s ? ir(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -820,7 +836,7 @@ K([
820
836
  n({ attribute: "icon-right" })
821
837
  ], C.prototype, "iconRight", 2);
822
838
  C = K([
823
- v("crt-button")
839
+ u("crt-button")
824
840
  ], C);
825
841
  var or = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, Pe = (e, t, a, s) => {
826
842
  for (var r = s > 1 ? void 0 : s ? nr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -880,7 +896,7 @@ Pe([
880
896
  n()
881
897
  ], Bt.prototype, "variant", 2);
882
898
  Bt = Pe([
883
- v("crt-badge")
899
+ u("crt-badge")
884
900
  ], Bt);
885
901
  var lr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, Xt = (e, t, a, s) => {
886
902
  for (var r = s > 1 ? void 0 : s ? cr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -943,7 +959,7 @@ Xt([
943
959
  n({ type: Number })
944
960
  ], Nt.prototype, "level", 2);
945
961
  Nt = Xt([
946
- v("crt-heading")
962
+ u("crt-heading")
947
963
  ], Nt);
948
964
  let Ut = class extends h {
949
965
  constructor() {
@@ -969,7 +985,7 @@ Xt([
969
985
  n()
970
986
  ], Ut.prototype, "muted", 2);
971
987
  Ut = Xt([
972
- v("crt-text")
988
+ u("crt-text")
973
989
  ], Ut);
974
990
  var pr = Object.defineProperty, dr = Object.getOwnPropertyDescriptor, ie = (e, t, a, s) => {
975
991
  for (var r = s > 1 ? void 0 : s ? dr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -1083,16 +1099,16 @@ ie([
1083
1099
  n({ type: Array })
1084
1100
  ], kt.prototype, "tabs", 2);
1085
1101
  kt = ie([
1086
- v("crt-tabs")
1102
+ u("crt-tabs")
1087
1103
  ], kt);
1088
1104
  function hr(e) {
1089
1105
  const t = document.createElement("div");
1090
1106
  return t.innerHTML = e, t;
1091
1107
  }
1092
- var vr = Object.defineProperty, ur = Object.getOwnPropertyDescriptor, P = (e, t, a, s) => {
1093
- for (var r = s > 1 ? void 0 : s ? ur(t, a) : t, i = e.length - 1, o; i >= 0; i--)
1108
+ var ur = Object.defineProperty, vr = Object.getOwnPropertyDescriptor, P = (e, t, a, s) => {
1109
+ for (var r = s > 1 ? void 0 : s ? vr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
1094
1110
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
1095
- return s && r && vr(t, a, r), r;
1111
+ return s && r && ur(t, a, r), r;
1096
1112
  };
1097
1113
  let J = class extends h {
1098
1114
  constructor() {
@@ -1171,7 +1187,7 @@ P([
1171
1187
  n()
1172
1188
  ], J.prototype, "disabled", 2);
1173
1189
  J = P([
1174
- v("crt-input")
1190
+ u("crt-input")
1175
1191
  ], J);
1176
1192
  let tt = class extends h {
1177
1193
  constructor() {
@@ -1246,9 +1262,9 @@ P([
1246
1262
  n()
1247
1263
  ], tt.prototype, "rows", 2);
1248
1264
  tt = P([
1249
- v("crt-textarea")
1265
+ u("crt-textarea")
1250
1266
  ], tt);
1251
- var gr = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, vt = (e, t, a, s) => {
1267
+ var gr = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, ut = (e, t, a, s) => {
1252
1268
  for (var r = s > 1 ? void 0 : s ? mr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
1253
1269
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
1254
1270
  return s && r && gr(t, a, r), r;
@@ -1293,23 +1309,23 @@ H.styles = d`
1293
1309
  color: var(--crt-primary-dark);
1294
1310
  }
1295
1311
  `;
1296
- vt([
1312
+ ut([
1297
1313
  n({ type: String })
1298
1314
  ], H.prototype, "href", 2);
1299
- vt([
1315
+ ut([
1300
1316
  n({ type: String })
1301
1317
  ], H.prototype, "target", 2);
1302
- vt([
1318
+ ut([
1303
1319
  n({ type: Boolean })
1304
1320
  ], H.prototype, "iconLeft", 2);
1305
- vt([
1321
+ ut([
1306
1322
  n({ type: Boolean })
1307
1323
  ], H.prototype, "iconRight", 2);
1308
- vt([
1324
+ ut([
1309
1325
  n({ type: String })
1310
1326
  ], H.prototype, "icon", 2);
1311
- H = vt([
1312
- v("crt-link")
1327
+ H = ut([
1328
+ u("crt-link")
1313
1329
  ], H);
1314
1330
  var fr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, st = (e, t, a, s) => {
1315
1331
  for (var r = s > 1 ? void 0 : s ? br(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -1347,8 +1363,8 @@ let M = class extends h {
1347
1363
  if (r.size > this.maxSize)
1348
1364
  return console.warn(`File ${r.name} exceeds max size`), !1;
1349
1365
  if (this.accept) {
1350
- const i = this.accept.split(",").map((u) => u.trim()), o = r.type, c = "." + r.name.split(".").pop()?.toLowerCase();
1351
- if (!i.some((u) => u.startsWith(".") ? c === u.toLowerCase() : u.endsWith("/*") ? o.startsWith(u.replace("/*", "/")) : o === u))
1366
+ const i = this.accept.split(",").map((v) => v.trim()), o = r.type, c = "." + r.name.split(".").pop()?.toLowerCase();
1367
+ if (!i.some((v) => v.startsWith(".") ? c === v.toLowerCase() : v.endsWith("/*") ? o.startsWith(v.replace("/*", "/")) : o === v))
1352
1368
  return console.warn(`File ${r.name} type not accepted`), !1;
1353
1369
  }
1354
1370
  return !0;
@@ -1771,7 +1787,7 @@ st([
1771
1787
  m()
1772
1788
  ], M.prototype, "files", 2);
1773
1789
  M = st([
1774
- v("crt-file-upload")
1790
+ u("crt-file-upload")
1775
1791
  ], M);
1776
1792
  var yr = Object.defineProperty, xr = Object.getOwnPropertyDescriptor, O = (e, t, a, s) => {
1777
1793
  for (var r = s > 1 ? void 0 : s ? xr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -1869,10 +1885,10 @@ let w = class extends h {
1869
1885
  `);
1870
1886
  }
1871
1887
  for (let c = 1; c <= a; c++) {
1872
- const p = new Date(e, t, c), u = this._isToday(p), b = this._isSelected(p);
1888
+ const p = new Date(e, t, c), v = this._isToday(p), b = this._isSelected(p);
1873
1889
  i.push(l`
1874
1890
  <div
1875
- class="day ${u ? "today" : ""} ${b ? "selected" : ""}"
1891
+ class="day ${v ? "today" : ""} ${b ? "selected" : ""}"
1876
1892
  @click="${() => this._selectDate(p)}"
1877
1893
  >
1878
1894
  ${c}
@@ -2170,7 +2186,7 @@ O([
2170
2186
  m()
2171
2187
  ], w.prototype, "_selectedDate", 2);
2172
2188
  w = O([
2173
- v("crt-calendar")
2189
+ u("crt-calendar")
2174
2190
  ], w);
2175
2191
  var wr = Object.defineProperty, kr = Object.getOwnPropertyDescriptor, it = (e, t, a, s) => {
2176
2192
  for (var r = s > 1 ? void 0 : s ? kr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -2434,7 +2450,7 @@ it([
2434
2450
  m()
2435
2451
  ], D.prototype, "_isOpen", 2);
2436
2452
  D = it([
2437
- v("crt-select")
2453
+ u("crt-select")
2438
2454
  ], D);
2439
2455
  var $r = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, y = (e, t, a, s) => {
2440
2456
  for (var r = s > 1 ? void 0 : s ? _r(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -2567,7 +2583,7 @@ y([
2567
2583
  n({ type: String })
2568
2584
  ], Y.prototype, "value", 2);
2569
2585
  Y = y([
2570
- v("crt-checkbox")
2586
+ u("crt-checkbox")
2571
2587
  ], Y);
2572
2588
  let V = class extends h {
2573
2589
  constructor() {
@@ -2688,7 +2704,7 @@ y([
2688
2704
  n({ type: String })
2689
2705
  ], V.prototype, "name", 2);
2690
2706
  V = y([
2691
- v("crt-radio")
2707
+ u("crt-radio")
2692
2708
  ], V);
2693
2709
  let dt = class extends h {
2694
2710
  constructor() {
@@ -2734,7 +2750,7 @@ y([
2734
2750
  n({ type: Boolean, reflect: !0 })
2735
2751
  ], dt.prototype, "horizontal", 2);
2736
2752
  dt = y([
2737
- v("crt-radio-group")
2753
+ u("crt-radio-group")
2738
2754
  ], dt);
2739
2755
  var zr = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, A = (e, t, a, s) => {
2740
2756
  for (var r = s > 1 ? void 0 : s ? Cr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -2919,7 +2935,7 @@ A([
2919
2935
  n({ type: Boolean })
2920
2936
  ], k.prototype, "showValue", 2);
2921
2937
  k = A([
2922
- v("crt-progress")
2938
+ u("crt-progress")
2923
2939
  ], k);
2924
2940
  var Pr = Object.defineProperty, Or = Object.getOwnPropertyDescriptor, At = (e, t, a, s) => {
2925
2941
  for (var r = s > 1 ? void 0 : s ? Or(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -3075,7 +3091,7 @@ At([
3075
3091
  m()
3076
3092
  ], et.prototype, "_visible", 2);
3077
3093
  et = At([
3078
- v("crt-tooltip")
3094
+ u("crt-tooltip")
3079
3095
  ], et);
3080
3096
  var Ar = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, oe = (e, t, a, s) => {
3081
3097
  for (var r = s > 1 ? void 0 : s ? Sr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -3156,7 +3172,7 @@ oe([
3156
3172
  n({ type: String })
3157
3173
  ], $t.prototype, "separator", 2);
3158
3174
  $t = oe([
3159
- v("crt-breadcrumb")
3175
+ u("crt-breadcrumb")
3160
3176
  ], $t);
3161
3177
  var Er = Object.defineProperty, Mr = Object.getOwnPropertyDescriptor, St = (e, t, a, s) => {
3162
3178
  for (var r = s > 1 ? void 0 : s ? Mr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -3290,7 +3306,7 @@ St([
3290
3306
  n({ type: Boolean })
3291
3307
  ], rt.prototype, "showInfo", 2);
3292
3308
  rt = St([
3293
- v("crt-pagination")
3309
+ u("crt-pagination")
3294
3310
  ], rt);
3295
3311
  var Dr = Object.defineProperty, Tr = Object.getOwnPropertyDescriptor, B = (e, t, a, s) => {
3296
3312
  for (var r = s > 1 ? void 0 : s ? Tr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -3513,7 +3529,7 @@ B([
3513
3529
  n({ type: String })
3514
3530
  ], _.prototype, "unit", 2);
3515
3531
  _ = B([
3516
- v("crt-slider")
3532
+ u("crt-slider")
3517
3533
  ], _);
3518
3534
  var jr = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, ot = (e, t, a, s) => {
3519
3535
  for (var r = s > 1 ? void 0 : s ? Lr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -3692,7 +3708,7 @@ ot([
3692
3708
  n({ type: String, reflect: !0 })
3693
3709
  ], T.prototype, "size", 2);
3694
3710
  T = ot([
3695
- v("crt-toggle")
3711
+ u("crt-toggle")
3696
3712
  ], T);
3697
3713
  var Ir = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, N = (e, t, a, s) => {
3698
3714
  for (var r = s > 1 ? void 0 : s ? Br(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -3879,7 +3895,7 @@ N([
3879
3895
  n({ type: String, reflect: !0 })
3880
3896
  ], j.prototype, "status", 2);
3881
3897
  j = N([
3882
- v("crt-avatar")
3898
+ u("crt-avatar")
3883
3899
  ], j);
3884
3900
  let Rt = class extends h {
3885
3901
  constructor() {
@@ -3924,7 +3940,7 @@ N([
3924
3940
  n({ type: Number })
3925
3941
  ], Rt.prototype, "max", 2);
3926
3942
  Rt = N([
3927
- v("crt-avatar-group")
3943
+ u("crt-avatar-group")
3928
3944
  ], Rt);
3929
3945
  var Nr = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, S = (e, t, a, s) => {
3930
3946
  for (var r = s > 1 ? void 0 : s ? Ur(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -4075,7 +4091,7 @@ S([
4075
4091
  n({ type: Boolean, reflect: !0 })
4076
4092
  ], q.prototype, "effect", 2);
4077
4093
  q = S([
4078
- v("crt-skeleton")
4094
+ u("crt-skeleton")
4079
4095
  ], q);
4080
4096
  let Ft = class extends h {
4081
4097
  constructor() {
@@ -4125,7 +4141,7 @@ S([
4125
4141
  n({ type: Number })
4126
4142
  ], Ft.prototype, "lines", 2);
4127
4143
  Ft = S([
4128
- v("crt-skeleton-text")
4144
+ u("crt-skeleton-text")
4129
4145
  ], Ft);
4130
4146
  let Ht = class extends h {
4131
4147
  constructor() {
@@ -4198,7 +4214,7 @@ S([
4198
4214
  n({ type: Boolean })
4199
4215
  ], Ht.prototype, "hideImage", 2);
4200
4216
  Ht = S([
4201
- v("crt-skeleton-card")
4217
+ u("crt-skeleton-card")
4202
4218
  ], Ht);
4203
4219
  var Rr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, U = (e, t, a, s) => {
4204
4220
  for (var r = s > 1 ? void 0 : s ? Fr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -4430,7 +4446,7 @@ U([
4430
4446
  n({ type: String })
4431
4447
  ], z.prototype, "icon", 2);
4432
4448
  z = U([
4433
- v("crt-alert")
4449
+ u("crt-alert")
4434
4450
  ], z);
4435
4451
  var Hr = Object.defineProperty, Yr = Object.getOwnPropertyDescriptor, ne = (e, t, a, s) => {
4436
4452
  for (var r = s > 1 ? void 0 : s ? Yr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -4690,7 +4706,7 @@ ne([
4690
4706
  n({ type: String })
4691
4707
  ], _t.prototype, "message", 2);
4692
4708
  _t = ne([
4693
- v("crt-spinner")
4709
+ u("crt-spinner")
4694
4710
  ], _t);
4695
4711
  var Vr = Object.getOwnPropertyDescriptor, qr = (e, t, a, s) => {
4696
4712
  for (var r = s > 1 ? void 0 : s ? Vr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -4757,7 +4773,7 @@ Qt.styles = d`
4757
4773
  }
4758
4774
  `;
4759
4775
  Qt = qr([
4760
- v("crt-card")
4776
+ u("crt-card")
4761
4777
  ], Qt);
4762
4778
  var Wr = Object.defineProperty, Xr = Object.getOwnPropertyDescriptor, le = (e, t, a, s) => {
4763
4779
  for (var r = s > 1 ? void 0 : s ? Xr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -4842,7 +4858,7 @@ le([
4842
4858
  n({ type: Array })
4843
4859
  ], zt.prototype, "rows", 2);
4844
4860
  zt = le([
4845
- v("crt-table")
4861
+ u("crt-table")
4846
4862
  ], zt);
4847
4863
  var Kr = Object.defineProperty, Gr = Object.getOwnPropertyDescriptor, ce = (e, t, a, s) => {
4848
4864
  for (var r = s > 1 ? void 0 : s ? Gr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -4903,9 +4919,9 @@ ce([
4903
4919
  n({ type: String })
4904
4920
  ], Ct.prototype, "gap", 2);
4905
4921
  Ct = ce([
4906
- v("crt-grid")
4922
+ u("crt-grid")
4907
4923
  ], Ct);
4908
- var Zr = Object.defineProperty, Qr = Object.getOwnPropertyDescriptor, ut = (e, t, a, s) => {
4924
+ var Zr = Object.defineProperty, Qr = Object.getOwnPropertyDescriptor, vt = (e, t, a, s) => {
4909
4925
  for (var r = s > 1 ? void 0 : s ? Qr(t, a) : t, i = e.length - 1, o; i >= 0; i--)
4910
4926
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
4911
4927
  return s && r && Zr(t, a, r), r;
@@ -5116,23 +5132,23 @@ W.styles = d`
5116
5132
  color: var(--crt-bg-dark);
5117
5133
  }
5118
5134
  `;
5119
- ut([
5135
+ vt([
5120
5136
  n()
5121
5137
  ], W.prototype, "title", 2);
5122
- ut([
5138
+ vt([
5123
5139
  n()
5124
5140
  ], W.prototype, "description", 2);
5125
- ut([
5141
+ vt([
5126
5142
  n()
5127
5143
  ], W.prototype, "code", 2);
5128
- ut([
5144
+ vt([
5129
5145
  m()
5130
5146
  ], W.prototype, "activeTab", 2);
5131
- ut([
5147
+ vt([
5132
5148
  m()
5133
5149
  ], W.prototype, "copied", 2);
5134
- W = ut([
5135
- v("crt-code-example")
5150
+ W = vt([
5151
+ u("crt-code-example")
5136
5152
  ], W);
5137
5153
  var Jr = Object.defineProperty, ta = Object.getOwnPropertyDescriptor, Kt = (e, t, a, s) => {
5138
5154
  for (var r = s > 1 ? void 0 : s ? ta(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -5313,7 +5329,7 @@ Kt([
5313
5329
  n({ type: String })
5314
5330
  ], ht.prototype, "size", 2);
5315
5331
  ht = Kt([
5316
- v("crt-modal")
5332
+ u("crt-modal")
5317
5333
  ], ht);
5318
5334
  var ea = Object.defineProperty, ra = Object.getOwnPropertyDescriptor, nt = (e, t, a, s) => {
5319
5335
  for (var r = s > 1 ? void 0 : s ? ra(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -5571,7 +5587,7 @@ nt([
5571
5587
  m()
5572
5588
  ], L.prototype, "_toasts", 2);
5573
5589
  L = nt([
5574
- v("crt-toast")
5590
+ u("crt-toast")
5575
5591
  ], L);
5576
5592
  var aa = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, Et = (e, t, a, s) => {
5577
5593
  for (var r = s > 1 ? void 0 : s ? sa(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -5685,7 +5701,7 @@ Et([
5685
5701
  n({ type: Boolean, reflect: !0 })
5686
5702
  ], Pt.prototype, "open", 2);
5687
5703
  Pt = Et([
5688
- v("crt-accordion-item")
5704
+ u("crt-accordion-item")
5689
5705
  ], Pt);
5690
5706
  let Yt = class extends h {
5691
5707
  constructor() {
@@ -5714,7 +5730,7 @@ Et([
5714
5730
  n({ type: Boolean })
5715
5731
  ], Yt.prototype, "multiple", 2);
5716
5732
  Yt = Et([
5717
- v("crt-accordion")
5733
+ u("crt-accordion")
5718
5734
  ], Yt);
5719
5735
  var ia = Object.defineProperty, oa = Object.getOwnPropertyDescriptor, Mt = (e, t, a, s) => {
5720
5736
  for (var r = s > 1 ? void 0 : s ? oa(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -5862,7 +5878,7 @@ Mt([
5862
5878
  m()
5863
5879
  ], at.prototype, "isActive", 2);
5864
5880
  at = Mt([
5865
- v("crt-visualizer")
5881
+ u("crt-visualizer")
5866
5882
  ], at);
5867
5883
  var na = Object.defineProperty, la = Object.getOwnPropertyDescriptor, pe = (e, t, a, s) => {
5868
5884
  for (var r = s > 1 ? void 0 : s ? la(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -6115,7 +6131,7 @@ pe([
6115
6131
  n({ type: Number })
6116
6132
  ], Ot.prototype, "currentIndex", 2);
6117
6133
  Ot = pe([
6118
- v("crt-playlist")
6134
+ u("crt-playlist")
6119
6135
  ], Ot);
6120
6136
  var ca = Object.defineProperty, pa = Object.getOwnPropertyDescriptor, $ = (e, t, a, s) => {
6121
6137
  for (var r = s > 1 ? void 0 : s ? pa(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -6250,10 +6266,10 @@ let x = class extends h {
6250
6266
 
6251
6267
  <!-- Progress -->
6252
6268
  <div class="progress-section progress-clickable" @click="${this.handleProgressClick}">
6253
- <crt-progress
6254
- .value="${this.progressPercent}"
6255
- ?animated="${this.isPlaying}"
6256
- .showValue="${!1}"
6269
+ <crt-progress
6270
+ .value="${this.progressPercent}"
6271
+ variant="success"
6272
+ .showValue="${!0}"
6257
6273
  ></crt-progress>
6258
6274
  <div class="time-display">
6259
6275
  <span>${this.formatTime(this.currentTime)}</span>
@@ -6493,7 +6509,7 @@ $([
6493
6509
  ee("crt-visualizer")
6494
6510
  ], x.prototype, "visualizer", 2);
6495
6511
  x = $([
6496
- v("crt-music-player")
6512
+ u("crt-music-player")
6497
6513
  ], x);
6498
6514
  var da = Object.defineProperty, ha = Object.getOwnPropertyDescriptor, gt = (e, t, a, s) => {
6499
6515
  for (var r = s > 1 ? void 0 : s ? ha(t, a) : t, i = e.length - 1, o; i >= 0; i--)
@@ -6641,12 +6657,12 @@ gt([
6641
6657
  m()
6642
6658
  ], X.prototype, "input", 2);
6643
6659
  X = gt([
6644
- v("crt-terminal")
6660
+ u("crt-terminal")
6645
6661
  ], X);
6646
- var va = Object.defineProperty, ua = Object.getOwnPropertyDescriptor, lt = (e, t, a, s) => {
6647
- for (var r = s > 1 ? void 0 : s ? ua(t, a) : t, i = e.length - 1, o; i >= 0; i--)
6662
+ var ua = Object.defineProperty, va = Object.getOwnPropertyDescriptor, lt = (e, t, a, s) => {
6663
+ for (var r = s > 1 ? void 0 : s ? va(t, a) : t, i = e.length - 1, o; i >= 0; i--)
6648
6664
  (o = e[i]) && (r = (s ? o(t, a, r) : o(r)) || r);
6649
- return s && r && va(t, a, r), r;
6665
+ return s && r && ua(t, a, r), r;
6650
6666
  };
6651
6667
  let I = class extends h {
6652
6668
  constructor() {
@@ -6830,7 +6846,7 @@ lt([
6830
6846
  ee("crt-file-upload")
6831
6847
  ], I.prototype, "fileUpload", 2);
6832
6848
  I = lt([
6833
- v("crt-music-station")
6849
+ u("crt-music-station")
6834
6850
  ], I);
6835
6851
  export {
6836
6852
  Yt as Accordion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patimweb/crtstyleguide",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "CRT Style Guide - Retro Lit component library",
5
5
  "type": "module",
6
6
  "main": "dist/lib/index.js",