@nysds/components 1.5.0 → 1.5.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.
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);
@@ -2256,6 +2256,7 @@ const ye = g`
2256
2256
  --_nys-fileitem-items-radius: var(--nys-radius-md, 4px);
2257
2257
  --_nys-fileitem-items-padding: var(--nys-space-100, 8px)
2258
2258
  var(--nys-space-200, 16px);
2259
+ --_nys-fileitem-items-background: var(--nys-color-ink-reverse, #fff);
2259
2260
  --_nys-fileitem-items-border: var(--nys-border-width-sm, 1px) solid
2260
2261
  var(--nys-color-neutral-100, #d0d0ce);
2261
2262
  --_nys-fileitem-error-color: var(--nys-color-danger, #b52c2c);
@@ -2287,6 +2288,7 @@ const ye = g`
2287
2288
  position: relative;
2288
2289
  border-radius: var(--_nys-fileitem-items-radius);
2289
2290
  border: var(--_nys-fileitem-items-border);
2291
+ background: var(--_nys-fileitem-items-background);
2290
2292
  }
2291
2293
 
2292
2294
  .file-item.error {
@@ -6281,8 +6283,12 @@ const D1 = class D1 extends u {
6281
6283
  return e == null ? void 0 : e.assignedElements({ flatten: !0 })[0];
6282
6284
  }
6283
6285
  firstUpdated() {
6284
- const e = this._firstAssignedEl;
6285
- e && this._applyFocusBehavior(e);
6286
+ var t;
6287
+ const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector("slot");
6288
+ e && e.addEventListener("slotchange", () => {
6289
+ const o = this._firstAssignedEl;
6290
+ o && this._applyFocusBehavior(o);
6291
+ });
6286
6292
  }
6287
6293
  updated(e) {
6288
6294
  super.updated(e);