@proximus/lavender-icon-common 2.0.0-alpha.1 → 2.0.0-alpha.2

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/index.es.js +7 -7
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -2,7 +2,7 @@ var u = (o) => {
2
2
  throw TypeError(o);
3
3
  };
4
4
  var p = (o, r, e) => r.has(o) || u("Cannot " + e);
5
- var s = (o, r, e) => (p(o, r, "read from private field"), e ? e.call(o) : r.get(o)), a = (o, r, e) => r.has(o) ? u("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(o) : r.set(o, e), d = (o, r, e, t) => (p(o, r, "write to private field"), t ? t.call(o, e) : r.set(o, e), e);
5
+ var s = (o, r, e) => (p(o, r, "read from private field"), e ? e.call(o) : r.get(o)), l = (o, r, e) => r.has(o) ? u("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(o) : r.set(o, e), d = (o, r, e, t) => (p(o, r, "write to private field"), t ? t.call(o, e) : r.set(o, e), e);
6
6
  import { WithExtraAttributes as m, iconSizeValuesKC as b } from "@proximus/lavender-common";
7
7
  class f extends HTMLElement {
8
8
  constructor() {
@@ -64,17 +64,17 @@ const z = [
64
64
  "from",
65
65
  "disabled"
66
66
  ];
67
- var c, n, l;
67
+ var c, n, a;
68
68
  class $ extends m {
69
69
  constructor(...e) {
70
70
  var t;
71
71
  super(...e, h);
72
- a(this, c);
73
- a(this, n);
74
- a(this, l, () => `<svg aria-hidden="true">
72
+ l(this, c);
73
+ l(this, n);
74
+ l(this, a, () => `<svg aria-hidden="true">
75
75
  <use xlink:href="#icon-${this.name}"></use>
76
76
  </svg>`);
77
- this.shadowRoot.innerHTML = s(this, l).call(this), d(this, n, (t = this.attachInternals) == null ? void 0 : t.call(this)), s(this, n) && (s(this, n).role = "img");
77
+ this.shadowRoot.innerHTML = s(this, a).call(this), this.role = "img", d(this, n, (t = this.attachInternals) == null ? void 0 : t.call(this)), s(this, n) && (s(this, n).role = "img");
78
78
  }
79
79
  static get observedAttributes() {
80
80
  return [...super.observedAttributes, ...z];
@@ -171,7 +171,7 @@ class $ extends m {
171
171
  this.setAttribute("disabled", e);
172
172
  }
173
173
  }
174
- c = new WeakMap(), n = new WeakMap(), l = new WeakMap();
174
+ c = new WeakMap(), n = new WeakMap(), a = new WeakMap();
175
175
  customElements.get("px-icon") || customElements.define("px-icon", $);
176
176
  export {
177
177
  $ as Icon,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-icon-common",
3
- "version": "2.0.0-alpha.1",
3
+ "version": "2.0.0-alpha.2",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",