@nysds/components 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/nysds.es.js CHANGED
@@ -484,7 +484,7 @@ let j1 = 0;
484
484
  var e1;
485
485
  const R = (e1 = class extends u {
486
486
  constructor() {
487
- super(...arguments), this.id = "", this.label = "", this.image = "", this.initials = "", this.icon = "", this.color = "#555", this.lazy = !1, this._shape = "circle", this._slotHasContent = !0;
487
+ super(...arguments), this.id = "", this.ariaLabel = "", this.image = "", this.initials = "", this.icon = "", this.color = "#555", this.lazy = !1, this._shape = "circle", this._slotHasContent = !0;
488
488
  }
489
489
  get shape() {
490
490
  return this._shape;
@@ -530,14 +530,14 @@ const R = (e1 = class extends u {
530
530
  style="background-color: ${((e = this.color) == null ? void 0 : e.length) > 0 ? this.color : "#555"};"
531
531
  role=${h(this.image ? void 0 : "img")}
532
532
  aria-label=${h(
533
- this.image ? void 0 : this.label ? this.label : "avatar"
533
+ this.image ? void 0 : this.ariaLabel ? this.ariaLabel : "avatar"
534
534
  )}
535
535
  >
536
536
  ${((t = this.image) == null ? void 0 : t.length) > 0 ? a`<img
537
537
  part="nys-avatar__image"
538
538
  class="nys-avatar__image"
539
539
  src=${this.image}
540
- alt=${this.label || "avatar"}
540
+ alt=${this.ariaLabel || "avatar"}
541
541
  loading=${this.lazy ? "lazy" : "eager"}
542
542
  />` : ((o = this.initials) == null ? void 0 : o.length) > 0 ? a`<span
543
543
  part="nys-avatar__initials"
@@ -568,7 +568,7 @@ Q([
568
568
  ], R.prototype, "id", 2);
569
569
  Q([
570
570
  r({ type: String })
571
- ], R.prototype, "label", 2);
571
+ ], R.prototype, "ariaLabel", 2);
572
572
  Q([
573
573
  r({ type: String })
574
574
  ], R.prototype, "image", 2);