nve-designsystem 0.4.14 → 0.4.16

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 (54) hide show
  1. package/chunks/{chunk.4KSSK4CB.js → chunk.2IP2T4OH.js} +1 -1
  2. package/chunks/chunk.3RPBFEDE.js +1 -1
  3. package/chunks/{chunk.QNHJ67FH.js → chunk.3SGXMLGV.js} +1 -1
  4. package/chunks/{chunk.QCFOL4VF.js → chunk.5YPURQKE.js} +7 -7
  5. package/chunks/{chunk.KZZ2V5MZ.js → chunk.5ZRUVMLP.js} +2 -2
  6. package/chunks/{chunk.MXB57G5B.js → chunk.7B2AJG4K.js} +2 -2
  7. package/chunks/{chunk.W7J4NRF6.js → chunk.7ZRV3LMN.js} +2 -2
  8. package/chunks/chunk.AJ3ENQ5C.js +1 -1
  9. package/chunks/{chunk.AGN5FBOG.js → chunk.AR3BL5H3.js} +1 -1
  10. package/chunks/{chunk.T6N3KRRV.js → chunk.BV4DJ45A.js} +2 -2
  11. package/chunks/{chunk.K4DMSZDN.js → chunk.CKEABH2A.js} +3 -2
  12. package/chunks/{chunk.EVP45OG4.js → chunk.EMG3ZSPT.js} +1 -1
  13. package/chunks/{chunk.QFMNHP3G.js → chunk.FDPXBVDV.js} +1 -1
  14. package/chunks/{chunk.QCWFNQJD.js → chunk.GKEBKPRZ.js} +2 -2
  15. package/chunks/chunk.GMYPQTFK.js +1 -1
  16. package/chunks/{chunk.IEJHVVJE.js → chunk.K6GIYILV.js} +1 -1
  17. package/chunks/{chunk.BOEMEVVW.js → chunk.KJWYNLDZ.js} +6 -6
  18. package/chunks/{chunk.G6R7BW5E.js → chunk.MMEGYRNV.js} +2 -2
  19. package/chunks/{chunk.TDC6BQKN.js → chunk.MN4ICWTQ.js} +1 -1
  20. package/chunks/{chunk.WZ73G6VS.js → chunk.OEGOQNYI.js} +1 -1
  21. package/chunks/{chunk.6CPFZNL4.js → chunk.OV3FWA7A.js} +6 -6
  22. package/chunks/{chunk.EKO3L6KO.js → chunk.PCIMCNOI.js} +8 -8
  23. package/chunks/{chunk.RNJRBJGZ.js → chunk.RJUO2BMU.js} +3379 -3369
  24. package/chunks/{chunk.AYM4DUFB.js → chunk.SDBB5L2R.js} +5 -5
  25. package/chunks/{chunk.BDFXHH5V.js → chunk.V5BHNRQG.js} +30 -31
  26. package/chunks/{chunk.G5CFUSXF.js → chunk.WKBPPP3T.js} +5 -5
  27. package/chunks/{chunk.2V366PRZ.js → chunk.YB3JVLEN.js} +1 -1
  28. package/components/nve-accordion-item/nve-accordion-item.component.js +24 -24
  29. package/components/nve-alert/nve-alert.component.js +4 -4
  30. package/components/nve-button/nve-button.component.js +4 -4
  31. package/components/nve-checkbox/nve-checkbox.component.js +3 -3
  32. package/components/nve-dialog/nve-dialog.component.js +4 -4
  33. package/components/nve-divider/nve-divider.component.js +2 -2
  34. package/components/nve-dropdown/nve-dropdown.component.js +4 -3
  35. package/components/nve-icon/nve-icon.component.js +105 -103
  36. package/components/nve-input/nve-input.component.js +3 -3
  37. package/components/nve-menu/nve-menu.component.js +2 -2
  38. package/components/nve-menu-item/nve-menu-item.component.js +5 -5
  39. package/components/nve-option/nve-option.component.js +3 -3
  40. package/components/nve-popup/nve-popup.component.js +3 -3
  41. package/components/nve-radio/nve-radio.component.js +3 -3
  42. package/components/nve-radio-button/nve-radio-button.component.d.ts +7 -1
  43. package/components/nve-radio-button/nve-radio-button.component.js +14 -13
  44. package/components/nve-radio-button/nve-radio-button.styles.d.ts +2 -0
  45. package/components/nve-radio-button/nve-radio-button.styles.js +47 -0
  46. package/components/nve-radio-group/nve-radio-group.component.js +2 -2
  47. package/components/nve-relative-time/nve-relative-time.component.js +24 -24
  48. package/components/nve-select/nve-select.component.js +5 -5
  49. package/components/nve-select/nve-select.styles.js +1 -0
  50. package/components/nve-skeleton/nve-skeleton.component.js +2 -2
  51. package/components/nve-spinner/nve-spinner.component.js +3 -3
  52. package/components/nve-tooltip/nve-tooltip.component.js +3 -3
  53. package/custom-elements.json +4 -4
  54. package/package.json +5 -5
@@ -1,5 +1,5 @@
1
1
  import { i as a, x as u } from "./lit-element.js";
2
- import { c, b as d, S as m } from "./chunk.EVP45OG4.js";
2
+ import { c, b as d, S as m } from "./chunk.EMG3ZSPT.js";
3
3
  import { e as h } from "./query.js";
4
4
  var f = a`
5
5
  :host {
@@ -1,4 +1,4 @@
1
- import { _ as c, a as m } from "./chunk.EVP45OG4.js";
1
+ import { _ as c, a as m } from "./chunk.EMG3ZSPT.js";
2
2
  var a = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakSet(), l = /* @__PURE__ */ new WeakMap(), y = class {
3
3
  constructor(e, i) {
4
4
  this.handleFormData = (t) => {
@@ -2,7 +2,7 @@ import { b as l } from "./chunk.MAQXLKQ7.js";
2
2
  import { i as a } from "./lit-element.js";
3
3
  import { H as r } from "./chunk.NYIIDP5N.js";
4
4
  import { w as u } from "./chunk.GMYPQTFK.js";
5
- import { c as n, b as e, S as h } from "./chunk.EVP45OG4.js";
5
+ import { c as n, b as e, S as h } from "./chunk.EMG3ZSPT.js";
6
6
  import { e as d } from "./class-map.js";
7
7
  import { u as p } from "./static.js";
8
8
  import { o as b } from "./if-defined.js";
@@ -1,11 +1,11 @@
1
- import { w as f, u as g, g as p } from "./chunk.ZL53POKZ.js";
2
- import { i as y, x as w } from "./lit-element.js";
1
+ import { i as f, x as g } from "./lit-element.js";
2
+ import { w as y, u as w, g as p } from "./chunk.ZL53POKZ.js";
3
3
  import { w as b } from "./chunk.GMYPQTFK.js";
4
- import { c as S, b as o, S as C } from "./chunk.EVP45OG4.js";
4
+ import { c as S, b as o, S as C } from "./chunk.EMG3ZSPT.js";
5
5
  import { e as L } from "./directive-helpers.js";
6
6
  import { n as h } from "./property.js";
7
7
  import { r as R } from "./state.js";
8
- var I = y`
8
+ var I = f`
9
9
  :host {
10
10
  display: inline-block;
11
11
  width: 1em;
@@ -27,7 +27,7 @@ var I = y`
27
27
  var n;
28
28
  let t;
29
29
  if (r != null && r.spriteSheet)
30
- return this.svg = w`<svg part="svg">
30
+ return this.svg = g`<svg part="svg">
31
31
  <use part="use" href="${e}"></use>
32
32
  </svg>`, this.svg;
33
33
  try {
@@ -48,13 +48,13 @@ var I = y`
48
48
  }
49
49
  }
50
50
  connectedCallback() {
51
- super.connectedCallback(), f(this);
51
+ super.connectedCallback(), y(this);
52
52
  }
53
53
  firstUpdated() {
54
54
  this.initialRender = !0, this.setIcon();
55
55
  }
56
56
  disconnectedCallback() {
57
- super.disconnectedCallback(), g(this);
57
+ super.disconnectedCallback(), w(this);
58
58
  }
59
59
  getIconSource() {
60
60
  const e = p(this.library);
@@ -1,9 +1,9 @@
1
1
  import { i as y, x as f } from "./lit-element.js";
2
- import { S as g } from "./chunk.AGN5FBOG.js";
2
+ import { S as g } from "./chunk.AR3BL5H3.js";
3
3
  import { s as m, p as l, a as h, g as d, b as c, w as u } from "./chunk.AJ3ENQ5C.js";
4
4
  import { L as v } from "./chunk.6CTB5ZDJ.js";
5
5
  import { w as p } from "./chunk.GMYPQTFK.js";
6
- import { c as w, b as o, S as b } from "./chunk.EVP45OG4.js";
6
+ import { c as w, b as o, S as b } from "./chunk.EMG3ZSPT.js";
7
7
  import { e as k } from "./class-map.js";
8
8
  import { n as i } from "./property.js";
9
9
  import { e as n } from "./query.js";
@@ -1,8 +1,8 @@
1
1
  import { i as r, x as c } from "./lit-element.js";
2
2
  import { L as p } from "./chunk.6CTB5ZDJ.js";
3
- import { S as d } from "./chunk.QCFOL4VF.js";
3
+ import { S as d } from "./chunk.5YPURQKE.js";
4
4
  import { w as i } from "./chunk.GMYPQTFK.js";
5
- import { c as h, b as t, S as u } from "./chunk.EVP45OG4.js";
5
+ import { c as h, b as t, S as u } from "./chunk.EMG3ZSPT.js";
6
6
  import { e as f } from "./class-map.js";
7
7
  import { n } from "./property.js";
8
8
  import { r as a } from "./state.js";
@@ -1,7 +1,7 @@
1
1
  import { i as a, x as t } from "./lit-element.js";
2
- import { S as l } from "./chunk.QCFOL4VF.js";
2
+ import { S as l } from "./chunk.5YPURQKE.js";
3
3
  import { w as r } from "./chunk.GMYPQTFK.js";
4
- import { c as d, b as i, S as n } from "./chunk.EVP45OG4.js";
4
+ import { c as d, b as i, S as n } from "./chunk.EMG3ZSPT.js";
5
5
  import { e as c } from "./class-map.js";
6
6
  import { n as o } from "./property.js";
7
7
  import { r as s } from "./state.js";
@@ -1,4 +1,4 @@
1
- import { _ as s, a } from "./chunk.EVP45OG4.js";
1
+ import { _ as s, a } from "./chunk.EMG3ZSPT.js";
2
2
  var u = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new WeakMap();
3
3
  function c(t) {
4
4
  return t ?? { keyframes: [], options: { duration: 0 } };
@@ -1,6 +1,6 @@
1
1
  import { i as Vt, x as Rt } from "./lit-element.js";
2
2
  import { L as jt } from "./chunk.6CTB5ZDJ.js";
3
- import { c as Yt, b as x, S as It, _ as Xt, a as qt } from "./chunk.EVP45OG4.js";
3
+ import { c as Yt, b as x, S as It, _ as Xt, a as qt } from "./chunk.EMG3ZSPT.js";
4
4
  import { e as Et } from "./class-map.js";
5
5
  import { n as A } from "./property.js";
6
6
  import { e as Tt } from "./query.js";
@@ -1,10 +1,10 @@
1
1
  import { i as g, x as p } from "./lit-element.js";
2
2
  import { f as _ } from "./chunk.SI4ACBFK.js";
3
- import { c as b, b as l, S as v } from "./chunk.EVP45OG4.js";
3
+ import { F as C, c as x, a as R, v as V } from "./chunk.3RPBFEDE.js";
4
+ import { c as b, b as l, S as v } from "./chunk.EMG3ZSPT.js";
4
5
  import { n } from "./property.js";
5
6
  import { r as f } from "./state.js";
6
7
  import { e as m } from "./query.js";
7
- import { F as C, c as x, a as R, v as V } from "./chunk.3RPBFEDE.js";
8
8
  import { H as w } from "./chunk.NYIIDP5N.js";
9
9
  import { w as y } from "./chunk.GMYPQTFK.js";
10
10
  import { e as A } from "./class-map.js";
@@ -1,10 +1,10 @@
1
1
  import { i as g, x as f } from "./lit-element.js";
2
2
  import { g as w } from "./chunk.LXDTFLWU.js";
3
- import { S as y } from "./chunk.AGN5FBOG.js";
3
+ import { S as y } from "./chunk.AR3BL5H3.js";
4
4
  import { s as m, w as d, a as h, g as c, b as u } from "./chunk.AJ3ENQ5C.js";
5
5
  import { L as v } from "./chunk.6CTB5ZDJ.js";
6
6
  import { w as b } from "./chunk.GMYPQTFK.js";
7
- import { c as k, b as i, S as E } from "./chunk.EVP45OG4.js";
7
+ import { c as k, b as i, S as E } from "./chunk.EMG3ZSPT.js";
8
8
  import { e as _ } from "./class-map.js";
9
9
  import { o as D } from "./if-defined.js";
10
10
  import { n } from "./property.js";
@@ -139,6 +139,7 @@ var C = g`
139
139
  let o;
140
140
  if (t) {
141
141
  switch (t.tagName.toLowerCase()) {
142
+ // Shoelace buttons have to update the internal button so it's announced correctly by screen readers
142
143
  case "sl-button":
143
144
  case "sl-icon-button":
144
145
  o = t.button;
@@ -92,7 +92,7 @@ var _ = Object.defineProperty, O = Object.defineProperties, g = Object.getOwnPro
92
92
  }
93
93
  };
94
94
  o = /* @__PURE__ */ new WeakMap();
95
- l.version = "2.19.0";
95
+ l.version = "2.19.1";
96
96
  l.dependencies = {};
97
97
  u([
98
98
  v()
@@ -1,6 +1,6 @@
1
1
  import { i as t } from "./lit-element.js";
2
2
  import { w as a } from "./chunk.GMYPQTFK.js";
3
- import { c as i, b as r, S as o } from "./chunk.EVP45OG4.js";
3
+ import { c as i, b as r, S as o } from "./chunk.EMG3ZSPT.js";
4
4
  import { n as l } from "./property.js";
5
5
  var s = t`
6
6
  :host {
@@ -3,9 +3,9 @@ import { d as h } from "./chunk.GI7VDIWX.js";
3
3
  import { f as d } from "./chunk.SI4ACBFK.js";
4
4
  import { F as u } from "./chunk.3RPBFEDE.js";
5
5
  import { H as p } from "./chunk.NYIIDP5N.js";
6
- import { S as m } from "./chunk.QCFOL4VF.js";
6
+ import { S as m } from "./chunk.5YPURQKE.js";
7
7
  import { w as a } from "./chunk.GMYPQTFK.js";
8
- import { c as b, b as t, S as k } from "./chunk.EVP45OG4.js";
8
+ import { c as b, b as t, S as k } from "./chunk.EMG3ZSPT.js";
9
9
  import { e as c } from "./class-map.js";
10
10
  import { o as f } from "./if-defined.js";
11
11
  import { l as s } from "./live.js";
@@ -1,4 +1,4 @@
1
- import { a as u } from "./chunk.EVP45OG4.js";
1
+ import { a as u } from "./chunk.EMG3ZSPT.js";
2
2
  function w(t, c) {
3
3
  const l = u({
4
4
  waitUntilFirstUpdate: !1
@@ -1,4 +1,4 @@
1
- import { S as e } from "./chunk.2V366PRZ.js";
1
+ import { S as e } from "./chunk.YB3JVLEN.js";
2
2
  var r = e;
3
3
  e.define("sl-spinner");
4
4
  export {
@@ -1,11 +1,11 @@
1
- import { S as u } from "./chunk.2V366PRZ.js";
1
+ import { S as u } from "./chunk.YB3JVLEN.js";
2
2
  import { F as h, v as p } from "./chunk.3RPBFEDE.js";
3
3
  import { b as d } from "./chunk.MAQXLKQ7.js";
4
- import { L as f } from "./chunk.6CTB5ZDJ.js";
5
- import { H as c } from "./chunk.NYIIDP5N.js";
6
- import { S as m } from "./chunk.QCFOL4VF.js";
4
+ import { H as f } from "./chunk.NYIIDP5N.js";
5
+ import { L as c } from "./chunk.6CTB5ZDJ.js";
6
+ import { S as m } from "./chunk.5YPURQKE.js";
7
7
  import { w as b } from "./chunk.GMYPQTFK.js";
8
- import { c as y, b as e, S as v } from "./chunk.EVP45OG4.js";
8
+ import { c as y, b as e, S as v } from "./chunk.EMG3ZSPT.js";
9
9
  import { e as C } from "./class-map.js";
10
10
  import { i as a, u as s } from "./static.js";
11
11
  import { o as r } from "./if-defined.js";
@@ -16,7 +16,7 @@ var t = class extends v {
16
16
  constructor() {
17
17
  super(...arguments), this.formControlController = new h(this, {
18
18
  assumeInteractionOn: ["click"]
19
- }), this.hasSlotController = new c(this, "[default]", "prefix", "suffix"), this.localize = new f(this), this.hasFocus = !1, this.invalid = !1, this.title = "", this.variant = "default", this.size = "medium", this.caret = !1, this.disabled = !1, this.loading = !1, this.outline = !1, this.pill = !1, this.circle = !1, this.type = "button", this.name = "", this.value = "", this.href = "", this.rel = "noreferrer noopener";
19
+ }), this.hasSlotController = new f(this, "[default]", "prefix", "suffix"), this.localize = new c(this), this.hasFocus = !1, this.invalid = !1, this.title = "", this.variant = "default", this.size = "medium", this.caret = !1, this.disabled = !1, this.loading = !1, this.outline = !1, this.pill = !1, this.circle = !1, this.type = "button", this.name = "", this.value = "", this.href = "", this.rel = "noreferrer noopener";
20
20
  }
21
21
  /** Gets the validity state object */
22
22
  get validity() {
@@ -1,6 +1,6 @@
1
1
  import { i as a } from "./lit-element.js";
2
- import { S as l } from "./chunk.QCFOL4VF.js";
3
- import { c, b as e, S as u } from "./chunk.EVP45OG4.js";
2
+ import { S as l } from "./chunk.5YPURQKE.js";
3
+ import { c, b as e, S as u } from "./chunk.EMG3ZSPT.js";
4
4
  import { e as d } from "./class-map.js";
5
5
  import { i as n, u as b } from "./static.js";
6
6
  import { o as i } from "./if-defined.js";
@@ -1,5 +1,5 @@
1
1
  import { i as o, x as r } from "./lit-element.js";
2
- import { c as s, b as t, S as a } from "./chunk.EVP45OG4.js";
2
+ import { c as s, b as t, S as a } from "./chunk.EMG3ZSPT.js";
3
3
  import { e as n } from "./class-map.js";
4
4
  import { n as i } from "./property.js";
5
5
  var l = o`
@@ -1,4 +1,4 @@
1
- import { S as p } from "./chunk.AGN5FBOG.js";
1
+ import { S as p } from "./chunk.AR3BL5H3.js";
2
2
  var a = p;
3
3
  p.define("sl-popup");
4
4
  export {
@@ -1,10 +1,10 @@
1
- import { S as w } from "./chunk.G6R7BW5E.js";
1
+ import { S as w } from "./chunk.MMEGYRNV.js";
2
2
  import { s as u, a as s, g as l, b as d, w as c } from "./chunk.AJ3ENQ5C.js";
3
- import { L as g } from "./chunk.6CTB5ZDJ.js";
4
- import { H as f } from "./chunk.NYIIDP5N.js";
5
- import { w as p } from "./chunk.GMYPQTFK.js";
3
+ import { H as g } from "./chunk.NYIIDP5N.js";
4
+ import { L as f } from "./chunk.6CTB5ZDJ.js";
6
5
  import { i as _, x as n } from "./lit-element.js";
7
- import { c as b, b as a, S as y } from "./chunk.EVP45OG4.js";
6
+ import { w as p } from "./chunk.GMYPQTFK.js";
7
+ import { c as b, b as a, S as y } from "./chunk.EMG3ZSPT.js";
8
8
  import { e as h } from "./class-map.js";
9
9
  import { n as i } from "./property.js";
10
10
  import { r as T } from "./state.js";
@@ -150,7 +150,7 @@ var C = _`
150
150
  }
151
151
  `, r = Object.assign(document.createElement("div"), { className: "sl-toast-stack" }), e = class extends y {
152
152
  constructor() {
153
- super(...arguments), this.hasSlotController = new f(this, "icon", "suffix"), this.localize = new g(this), this.open = !1, this.closable = !1, this.variant = "primary", this.duration = 1 / 0, this.remainingTime = this.duration;
153
+ super(...arguments), this.hasSlotController = new g(this, "icon", "suffix"), this.localize = new f(this), this.open = !1, this.closable = !1, this.variant = "primary", this.duration = 1 / 0, this.remainingTime = this.duration;
154
154
  }
155
155
  firstUpdated() {
156
156
  this.base.hidden = !this.open;
@@ -1,13 +1,13 @@
1
1
  import { i as S, E as g, x as c } from "./lit-element.js";
2
2
  import { f as _ } from "./directive-helpers.js";
3
3
  import { i as C, t as k, a as $, e as w } from "./class-map.js";
4
- import { S as A } from "./chunk.AGN5FBOG.js";
5
- import { S as L } from "./chunk.2V366PRZ.js";
6
- import { L as E } from "./chunk.6CTB5ZDJ.js";
7
- import { H as M, g as T } from "./chunk.NYIIDP5N.js";
8
- import { S as P } from "./chunk.QCFOL4VF.js";
4
+ import { S as A } from "./chunk.AR3BL5H3.js";
5
+ import { S as L } from "./chunk.YB3JVLEN.js";
6
+ import { H as E, g as M } from "./chunk.NYIIDP5N.js";
7
+ import { L as T } from "./chunk.6CTB5ZDJ.js";
8
+ import { S as P } from "./chunk.5YPURQKE.js";
9
9
  import { w as b } from "./chunk.GMYPQTFK.js";
10
- import { c as R, b as l, S as z } from "./chunk.EVP45OG4.js";
10
+ import { c as R, b as l, S as z } from "./chunk.EMG3ZSPT.js";
11
11
  import { n as d } from "./property.js";
12
12
  import { e as y } from "./query.js";
13
13
  var D = S`
@@ -376,7 +376,7 @@ var q = class {
376
376
  }
377
377
  }, o = class extends z {
378
378
  constructor() {
379
- super(...arguments), this.localize = new E(this), this.type = "normal", this.checked = !1, this.value = "", this.loading = !1, this.disabled = !1, this.hasSlotController = new M(this, "submenu"), this.submenuController = new q(this, this.hasSlotController), this.handleHostClick = (t) => {
379
+ super(...arguments), this.localize = new T(this), this.type = "normal", this.checked = !1, this.value = "", this.loading = !1, this.disabled = !1, this.hasSlotController = new E(this, "submenu"), this.submenuController = new q(this, this.hasSlotController), this.handleHostClick = (t) => {
380
380
  this.disabled && (t.preventDefault(), t.stopImmediatePropagation());
381
381
  }, this.handleMouseOver = (t) => {
382
382
  this.focus(), t.stopPropagation();
@@ -411,7 +411,7 @@ var q = class {
411
411
  }
412
412
  /** Returns a text label based on the contents of the menu item's default slot. */
413
413
  getTextLabel() {
414
- return T(this.defaultSlot);
414
+ return M(this.defaultSlot);
415
415
  }
416
416
  isSubmenu() {
417
417
  return this.hasSlotController.test("submenu");