@nysds/nys-alert 1.0.0 → 1.1.0

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.
@@ -0,0 +1 @@
1
+ export {};
package/dist/nys-alert.js CHANGED
@@ -4,7 +4,7 @@ import { css as L1, LitElement as x1, html as d } from "lit";
4
4
  * ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
5
5
  * ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
6
6
  *
7
- * Alert Component v1.0.0
7
+ * Alert Component v1.1.0
8
8
  * Part of the New York State Design System
9
9
  * Repository: https://github.com/its-hcd/nysds
10
10
  * License: MIT
@@ -14,7 +14,7 @@ import { css as L1, LitElement as x1, html as d } from "lit";
14
14
  * Copyright 2019 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
- const h1 = globalThis, z1 = h1.ShadowRoot && (h1.ShadyCSS === void 0 || h1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $5 = Symbol(), q1 = /* @__PURE__ */ new WeakMap();
17
+ const h1 = globalThis, k1 = h1.ShadowRoot && (h1.ShadyCSS === void 0 || h1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $5 = Symbol(), q1 = /* @__PURE__ */ new WeakMap();
18
18
  let T5 = class {
19
19
  constructor(t, e, o) {
20
20
  if (this._$cssResult$ = !0, o !== $5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -23,7 +23,7 @@ let T5 = class {
23
23
  get styleSheet() {
24
24
  let t = this.o;
25
25
  const e = this.t;
26
- if (z1 && t === void 0) {
26
+ if (k1 && t === void 0) {
27
27
  const o = e !== void 0 && e.length === 1;
28
28
  o && (t = q1.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), o && q1.set(e, t));
29
29
  }
@@ -34,12 +34,12 @@ let T5 = class {
34
34
  }
35
35
  };
36
36
  const N5 = (s) => new T5(typeof s == "string" ? s : s + "", void 0, $5), R5 = (s, t) => {
37
- if (z1) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
37
+ if (k1) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
38
38
  else for (const e of t) {
39
39
  const o = document.createElement("style"), r = h1.litNonce;
40
40
  r !== void 0 && o.setAttribute("nonce", r), o.textContent = e.cssText, s.appendChild(o);
41
41
  }
42
- }, W1 = z1 ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
42
+ }, W1 = k1 ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
43
43
  let e = "";
44
44
  for (const o of t.cssRules) e += o.cssText;
45
45
  return N5(e);
@@ -49,10 +49,10 @@ const N5 = (s) => new T5(typeof s == "string" ? s : s + "", void 0, $5), R5 = (s
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
51
  */
52
- const { is: I5, defineProperty: j5, getOwnPropertyDescriptor: D5, getOwnPropertyNames: q5, getOwnPropertySymbols: W5, getPrototypeOf: F5 } = Object, Z = globalThis, F1 = Z.trustedTypes, J5 = F1 ? F1.emptyScript : "", A1 = Z.reactiveElementPolyfillSupport, e1 = (s, t) => s, u1 = { toAttribute(s, t) {
52
+ const { is: I5, defineProperty: j5, getOwnPropertyDescriptor: D5, getOwnPropertyNames: q5, getOwnPropertySymbols: W5, getPrototypeOf: F5 } = Object, Z = globalThis, F1 = Z.trustedTypes, Y5 = F1 ? F1.emptyScript : "", A1 = Z.reactiveElementPolyfillSupport, e1 = (s, t) => s, u1 = { toAttribute(s, t) {
53
53
  switch (t) {
54
54
  case Boolean:
55
- s = s ? J5 : null;
55
+ s = s ? Y5 : null;
56
56
  break;
57
57
  case Object:
58
58
  case Array:
@@ -77,7 +77,7 @@ const { is: I5, defineProperty: j5, getOwnPropertyDescriptor: D5, getOwnProperty
77
77
  }
78
78
  }
79
79
  return e;
80
- } }, k1 = (s, t) => !I5(s, t), J1 = { attribute: !0, type: String, converter: u1, reflect: !1, hasChanged: k1 };
80
+ } }, z1 = (s, t) => !I5(s, t), Y1 = { attribute: !0, type: String, converter: u1, reflect: !1, hasChanged: z1 };
81
81
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Z.litPropertyMetadata ?? (Z.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
82
82
  class F extends HTMLElement {
83
83
  static addInitializer(t) {
@@ -86,7 +86,7 @@ class F extends HTMLElement {
86
86
  static get observedAttributes() {
87
87
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
88
88
  }
89
- static createProperty(t, e = J1) {
89
+ static createProperty(t, e = Y1) {
90
90
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
91
91
  const o = Symbol(), r = this.getPropertyDescriptor(t, o, e);
92
92
  r !== void 0 && j5(this.prototype, t, r);
@@ -106,7 +106,7 @@ class F extends HTMLElement {
106
106
  }, configurable: !0, enumerable: !0 };
107
107
  }
108
108
  static getPropertyOptions(t) {
109
- return this.elementProperties.get(t) ?? J1;
109
+ return this.elementProperties.get(t) ?? Y1;
110
110
  }
111
111
  static _$Ei() {
112
112
  if (this.hasOwnProperty(e1("elementProperties"))) return;
@@ -204,7 +204,7 @@ class F extends HTMLElement {
204
204
  }
205
205
  requestUpdate(t, e, o) {
206
206
  if (t !== void 0) {
207
- if (o ?? (o = this.constructor.getPropertyOptions(t)), !(o.hasChanged ?? k1)(this[t], e)) return;
207
+ if (o ?? (o = this.constructor.getPropertyOptions(t)), !(o.hasChanged ?? z1)(this[t], e)) return;
208
208
  this.P(t, e, o);
209
209
  }
210
210
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
@@ -283,7 +283,7 @@ F.elementStyles = [], F.shadowRootOptions = { mode: "open" }, F[e1("elementPrope
283
283
  * Copyright 2017 Google LLC
284
284
  * SPDX-License-Identifier: BSD-3-Clause
285
285
  */
286
- const Y5 = { attribute: !0, type: String, converter: u1, reflect: !1, hasChanged: k1 }, K5 = (s = Y5, t, e) => {
286
+ const J5 = { attribute: !0, type: String, converter: u1, reflect: !1, hasChanged: z1 }, K5 = (s = J5, t, e) => {
287
287
  const { kind: o, metadata: r } = e;
288
288
  let n = globalThis.litPropertyMetadata.get(r);
289
289
  if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, s), o === "accessor") {
@@ -426,7 +426,7 @@ const G5 = L1`
426
426
  }
427
427
 
428
428
  /* For HTML elements put into the slot */
429
- ::slotted(p) {
429
+ ::slotted(*) {
430
430
  font-weight: var(--_nys-alert-font-weight-regular);
431
431
  margin: 0;
432
432
  }
@@ -524,22 +524,22 @@ const G5 = L1`
524
524
  * Copyright 2017 Google LLC
525
525
  * SPDX-License-Identifier: BSD-3-Clause
526
526
  */
527
- const o1 = globalThis, f1 = o1.trustedTypes, Y1 = f1 ? f1.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, x5 = "$lit$", M = `lit$${Math.random().toFixed(9).slice(2)}$`, M5 = "?" + M, X5 = `<${M5}>`, U = document, y1 = () => U.createComment(""), i1 = (s) => s === null || typeof s != "object" && typeof s != "function", B1 = Array.isArray, Q5 = (s) => B1(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", V1 = `[
528
- \f\r]`, J = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, K1 = /-->/g, G1 = />/g, V = RegExp(`>|${V1}(?:([^\\s"'>=/]+)(${V1}*=${V1}*(?:[^
527
+ const o1 = globalThis, f1 = o1.trustedTypes, J1 = f1 ? f1.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, x5 = "$lit$", M = `lit$${Math.random().toFixed(9).slice(2)}$`, M5 = "?" + M, X5 = `<${M5}>`, U = document, y1 = () => U.createComment(""), i1 = (s) => s === null || typeof s != "object" && typeof s != "function", B1 = Array.isArray, Q5 = (s) => B1(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", V1 = `[
528
+ \f\r]`, Y = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, K1 = /-->/g, G1 = />/g, V = RegExp(`>|${V1}(?:([^\\s"'>=/]+)(${V1}*=${V1}*(?:[^
529
529
  \f\r"'\`<>=]|("|')|))|$)`, "g"), X1 = /'/g, Q1 = /"/g, H5 = /^(?:script|style|textarea|title)$/i, C1 = Symbol.for("lit-noChange"), v = Symbol.for("lit-nothing"), t5 = /* @__PURE__ */ new WeakMap(), E = U.createTreeWalker(U, 129);
530
530
  function Z5(s, t) {
531
531
  if (!B1(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
532
- return Y1 !== void 0 ? Y1.createHTML(t) : t;
532
+ return J1 !== void 0 ? J1.createHTML(t) : t;
533
533
  }
534
534
  const t2 = (s, t) => {
535
535
  const e = s.length - 1, o = [];
536
- let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = J;
536
+ let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = Y;
537
537
  for (let l = 0; l < e; l++) {
538
538
  const C = s[l];
539
539
  let c, h, a = -1, p = 0;
540
- for (; p < C.length && (i.lastIndex = p, h = i.exec(C), h !== null); ) p = i.lastIndex, i === J ? h[1] === "!--" ? i = K1 : h[1] !== void 0 ? i = G1 : h[2] !== void 0 ? (H5.test(h[2]) && (r = RegExp("</" + h[2], "g")), i = V) : h[3] !== void 0 && (i = V) : i === V ? h[0] === ">" ? (i = r ?? J, a = -1) : h[1] === void 0 ? a = -2 : (a = i.lastIndex - h[2].length, c = h[1], i = h[3] === void 0 ? V : h[3] === '"' ? Q1 : X1) : i === Q1 || i === X1 ? i = V : i === K1 || i === G1 ? i = J : (i = V, r = void 0);
540
+ for (; p < C.length && (i.lastIndex = p, h = i.exec(C), h !== null); ) p = i.lastIndex, i === Y ? h[1] === "!--" ? i = K1 : h[1] !== void 0 ? i = G1 : h[2] !== void 0 ? (H5.test(h[2]) && (r = RegExp("</" + h[2], "g")), i = V) : h[3] !== void 0 && (i = V) : i === V ? h[0] === ">" ? (i = r ?? Y, a = -1) : h[1] === void 0 ? a = -2 : (a = i.lastIndex - h[2].length, c = h[1], i = h[3] === void 0 ? V : h[3] === '"' ? Q1 : X1) : i === Q1 || i === X1 ? i = V : i === K1 || i === G1 ? i = Y : (i = V, r = void 0);
541
541
  const f = i === V && s[l + 1].startsWith("/>") ? " " : "";
542
- n += i === J ? C + X5 : a >= 0 ? (o.push(c), C.slice(0, a) + x5 + C.slice(a) + M + f) : C + M + (a === -2 ? l : f);
542
+ n += i === Y ? C + X5 : a >= 0 ? (o.push(c), C.slice(0, a) + x5 + C.slice(a) + M + f) : C + M + (a === -2 ? l : f);
543
543
  }
544
544
  return [Z5(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), o];
545
545
  };
@@ -556,8 +556,8 @@ let U1 = class A5 {
556
556
  for (; (r = E.nextNode()) !== null && C.length < l; ) {
557
557
  if (r.nodeType === 1) {
558
558
  if (r.hasAttributes()) for (const a of r.getAttributeNames()) if (a.endsWith(x5)) {
559
- const p = h[i++], f = r.getAttribute(a).split(M), $ = /([.?@])?(.*)/.exec(p);
560
- C.push({ type: 1, index: n, name: $[2], strings: f, ctor: $[1] === "." ? o2 : $[1] === "?" ? s2 : $[1] === "@" ? r2 : M1 }), r.removeAttribute(a);
559
+ const p = h[i++], f = r.getAttribute(a).split(M), L = /([.?@])?(.*)/.exec(p);
560
+ C.push({ type: 1, index: n, name: L[2], strings: f, ctor: L[1] === "." ? o2 : L[1] === "?" ? s2 : L[1] === "@" ? r2 : M1 }), r.removeAttribute(a);
561
561
  } else a.startsWith(M) && (C.push({ type: 6, index: n }), r.removeAttribute(a));
562
562
  if (H5.test(r.tagName)) {
563
563
  const a = r.textContent.split(M), p = a.length - 1;
@@ -751,7 +751,7 @@ const E1 = (s) => s ?? v;
751
751
  * ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
752
752
  * ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
753
753
  *
754
- * Icon Component v1.0.0
754
+ * Icon Component v1.1.0
755
755
  * Part of the New York State Design System
756
756
  * Repository: https://github.com/its-hcd/nysds
757
757
  * License: MIT
@@ -826,7 +826,7 @@ const { is: a2, defineProperty: c2, getOwnPropertyDescriptor: h2, getOwnProperty
826
826
  return e;
827
827
  } }, T1 = (s, t) => !a2(s, t), n5 = { attribute: !0, type: String, converter: g1, reflect: !1, hasChanged: T1 };
828
828
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), T.litPropertyMetadata ?? (T.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
829
- let Y = class extends HTMLElement {
829
+ let J = class extends HTMLElement {
830
830
  static addInitializer(t) {
831
831
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
832
832
  }
@@ -1024,7 +1024,7 @@ let Y = class extends HTMLElement {
1024
1024
  firstUpdated(t) {
1025
1025
  }
1026
1026
  };
1027
- Y.elementStyles = [], Y.shadowRootOptions = { mode: "open" }, Y[s1("elementProperties")] = /* @__PURE__ */ new Map(), Y[s1("finalized")] = /* @__PURE__ */ new Map(), r5 == null || r5({ ReactiveElement: Y }), (T.reactiveElementVersions ?? (T.reactiveElementVersions = [])).push("2.0.4");
1027
+ J.elementStyles = [], J.shadowRootOptions = { mode: "open" }, J[s1("elementProperties")] = /* @__PURE__ */ new Map(), J[s1("finalized")] = /* @__PURE__ */ new Map(), r5 == null || r5({ ReactiveElement: J }), (T.reactiveElementVersions ?? (T.reactiveElementVersions = [])).push("2.0.4");
1028
1028
  /**
1029
1029
  * @license
1030
1030
  * Copyright 2017 Google LLC
@@ -1358,7 +1358,7 @@ var _2 = Object.defineProperty, b2 = Object.getOwnPropertyDescriptor, D = (s, t,
1358
1358
  (i = s[n]) && (r = (o ? i(t, e, r) : i(r)) || r);
1359
1359
  return o && r && _2(t, e, r), r;
1360
1360
  }, K;
1361
- const k = (K = class extends x1 {
1361
+ const z = (K = class extends x1 {
1362
1362
  constructor() {
1363
1363
  super(...arguments), this.name = "", this.label = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
1364
1364
  }
@@ -1399,23 +1399,23 @@ const k = (K = class extends x1 {
1399
1399
  ], K);
1400
1400
  D([
1401
1401
  j({ type: String })
1402
- ], k.prototype, "name", 2);
1402
+ ], z.prototype, "name", 2);
1403
1403
  D([
1404
1404
  j({ type: String })
1405
- ], k.prototype, "label", 2);
1405
+ ], z.prototype, "label", 2);
1406
1406
  D([
1407
1407
  j({ type: String })
1408
- ], k.prototype, "rotate", 2);
1408
+ ], z.prototype, "rotate", 2);
1409
1409
  D([
1410
1410
  j({ type: String })
1411
- ], k.prototype, "flip", 2);
1411
+ ], z.prototype, "flip", 2);
1412
1412
  D([
1413
1413
  j({ type: String })
1414
- ], k.prototype, "color", 2);
1414
+ ], z.prototype, "color", 2);
1415
1415
  D([
1416
1416
  j({ reflect: !0 })
1417
- ], k.prototype, "size", 1);
1418
- let m2 = k;
1417
+ ], z.prototype, "size", 1);
1418
+ let m2 = z;
1419
1419
  customElements.get("nys-icon") || customElements.define("nys-icon", m2);
1420
1420
  /*!
1421
1421
  *
@@ -1423,7 +1423,7 @@ customElements.get("nys-icon") || customElements.define("nys-icon", m2);
1423
1423
  * ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
1424
1424
  * ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
1425
1425
  *
1426
- * Button Component v1.0.0
1426
+ * Button Component v1.1.0
1427
1427
  * Part of the New York State Design System
1428
1428
  * Repository: https://github.com/its-hcd/nysds
1429
1429
  * License: MIT
@@ -1729,7 +1729,7 @@ function g(s) {
1729
1729
  return r.constructor.createProperty(n, i ? { ...o, wrapped: !0 } : o), i ? Object.getOwnPropertyDescriptor(r, n) : void 0;
1730
1730
  })(s, t, e);
1731
1731
  }
1732
- const z2 = L1`
1732
+ const k2 = L1`
1733
1733
  :host {
1734
1734
  /* Anything that can be overridden should be defined here */
1735
1735
 
@@ -2059,7 +2059,7 @@ const z2 = L1`
2059
2059
  * ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
2060
2060
  * ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
2061
2061
  *
2062
- * Icon Component v1.0.0
2062
+ * Icon Component v1.1.0
2063
2063
  * Part of the New York State Design System
2064
2064
  * Repository: https://github.com/its-hcd/nysds
2065
2065
  * License: MIT
@@ -2070,7 +2070,7 @@ const z2 = L1`
2070
2070
  * SPDX-License-Identifier: BSD-3-Clause
2071
2071
  */
2072
2072
  const v1 = globalThis, I1 = v1.ShadowRoot && (v1.ShadyCSS === void 0 || v1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, U5 = Symbol(), h5 = /* @__PURE__ */ new WeakMap();
2073
- let k2 = class {
2073
+ let z2 = class {
2074
2074
  constructor(s, t, e) {
2075
2075
  if (this._$cssResult$ = !0, e !== U5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
2076
2076
  this.cssText = s, this.t = t;
@@ -2088,7 +2088,7 @@ let k2 = class {
2088
2088
  return this.cssText;
2089
2089
  }
2090
2090
  };
2091
- const B2 = (s) => new k2(typeof s == "string" ? s : s + "", void 0, U5), O2 = (s, t) => {
2091
+ const B2 = (s) => new z2(typeof s == "string" ? s : s + "", void 0, U5), O2 = (s, t) => {
2092
2092
  if (I1) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
2093
2093
  else for (const e of t) {
2094
2094
  const o = document.createElement("style"), r = v1.litNonce;
@@ -2365,7 +2365,7 @@ function q(s) {
2365
2365
  return r.constructor.createProperty(n, i ? { ...o, wrapped: !0 } : o), i ? Object.getOwnPropertyDescriptor(r, n) : void 0;
2366
2366
  })(s, t, e);
2367
2367
  }
2368
- const J2 = {
2368
+ const Y2 = {
2369
2369
  // --------- UX Team Main Library (below) --------- //
2370
2370
  // *** CORE *** //
2371
2371
  account_circle: `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
@@ -2564,7 +2564,7 @@ const J2 = {
2564
2564
  lock_filled: `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="23" viewBox="0 0 18 23" fill="none">
2565
2565
  <path d="M3.30002 22.7751C2.43369 22.7751 1.69211 22.4667 1.07527 21.8498C0.458441 21.2328 0.150024 20.4913 0.150024 19.6251V10.2251C0.150024 9.35893 0.458441 8.61735 1.07527 8.00035C1.69211 7.38351 2.43369 7.0751 3.30002 7.0751H3.62502V5.8001C3.62502 4.28343 4.14586 2.99593 5.18752 1.9376C6.22919 0.879264 7.50002 0.350098 9.00002 0.350098C10.5 0.350098 11.7709 0.879264 12.8125 1.9376C13.8542 2.99593 14.375 4.28343 14.375 5.8001V7.0751H14.7C15.5662 7.0751 16.3078 7.38351 16.9248 8.00035C17.5416 8.61735 17.85 9.35893 17.85 10.2251V19.6251C17.85 20.4913 17.5416 21.2328 16.9248 21.8498C16.3078 22.4667 15.5662 22.7751 14.7 22.7751H3.30002ZM9.00002 16.9251C9.55002 16.9251 10.0209 16.7293 10.4125 16.3376C10.8042 15.9459 11 15.4751 11 14.9251C11 14.3751 10.8042 13.9043 10.4125 13.5126C10.0209 13.1209 9.55002 12.9251 9.00002 12.9251C8.45002 12.9251 7.97919 13.1209 7.58752 13.5126C7.19586 13.9043 7.00002 14.3751 7.00002 14.9251C7.00002 15.4751 7.19586 15.9459 7.58752 16.3376C7.97919 16.7293 8.45002 16.9251 9.00002 16.9251ZM6.77502 7.0751H11.225V5.8001C11.225 5.16126 11.0125 4.61818 10.5875 4.17085C10.1625 3.72368 9.63336 3.5001 9.00002 3.5001C8.36669 3.5001 7.83752 3.72368 7.41252 4.17085C6.98752 4.61818 6.77502 5.16126 6.77502 5.8001V7.0751Z" fill="var(--nys-icon-color, currentcolor)"/>
2566
2566
  </svg>`
2567
- }, Y2 = L1`
2567
+ }, J2 = L1`
2568
2568
  :host {
2569
2569
  display: inline-block;
2570
2570
  --_nys-icon-size: 0.7em; /* If cap isn't supported, a fallback value of 0.7em is used, as it closely approximates the height of capital letters in most fonts. */
@@ -2679,7 +2679,7 @@ const B = (Q = class extends x1 {
2679
2679
  ) ? s : "sm";
2680
2680
  }
2681
2681
  getIcon() {
2682
- const s = J2[this.name], t = !!this.label;
2682
+ const s = Y2[this.name], t = !!this.label;
2683
2683
  if (!s) return null;
2684
2684
  const e = new DOMParser().parseFromString(s, "image/svg+xml").documentElement;
2685
2685
  return e instanceof SVGElement ? (e.setAttribute("role", "img"), e.setAttribute("aria-label", t ? this.label : ""), e.setAttribute("aria-hidden", t ? "false" : "true"), e.style.rotate = `${this.rotate}deg`, e.style.color = this.color || "currentcolor", e.classList.add(`nys-icon--${this.size}`), e.classList.add("nys-icon--svg"), this.flip && e.classList.add(`nys-icon--flip-${this.flip}`), e) : null;
@@ -2688,7 +2688,7 @@ const B = (Q = class extends x1 {
2688
2688
  const s = this.getIcon();
2689
2689
  return s ? d`${s}` : null;
2690
2690
  }
2691
- }, Q.styles = Y2, Q.VALID_TYPES = [
2691
+ }, Q.styles = J2, Q.VALID_TYPES = [
2692
2692
  "2xs",
2693
2693
  "xs",
2694
2694
  "sm",
@@ -2730,9 +2730,9 @@ customElements.get("nys-icon") || customElements.define("nys-icon", X2);
2730
2730
  * Copyright 2017 Google LLC
2731
2731
  * SPDX-License-Identifier: BSD-3-Clause
2732
2732
  */
2733
- const b1 = globalThis, m1 = b1.trustedTypes, f5 = m1 ? m1.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, z5 = "$lit$", H = `lit$${Math.random().toFixed(9).slice(2)}$`, k5 = "?" + H, Q2 = `<${k5}>`, z = document, $1 = () => z.createComment(""), l1 = (s) => s === null || typeof s != "object" && typeof s != "function", D1 = Array.isArray, t7 = (s) => D1(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", P1 = `[
2733
+ const b1 = globalThis, m1 = b1.trustedTypes, f5 = m1 ? m1.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, k5 = "$lit$", H = `lit$${Math.random().toFixed(9).slice(2)}$`, z5 = "?" + H, Q2 = `<${z5}>`, k = document, $1 = () => k.createComment(""), l1 = (s) => s === null || typeof s != "object" && typeof s != "function", D1 = Array.isArray, t7 = (s) => D1(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", P1 = `[
2734
2734
  \f\r]`, t1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, y5 = /-->/g, g5 = />/g, S = RegExp(`>|${P1}(?:([^\\s"'>=/]+)(${P1}*=${P1}*(?:[^
2735
- \f\r"'\`<>=]|("|')|))|$)`, "g"), w5 = /'/g, _5 = /"/g, B5 = /^(?:script|style|textarea|title)$/i, a1 = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), b5 = /* @__PURE__ */ new WeakMap(), P = z.createTreeWalker(z, 129);
2735
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), w5 = /'/g, _5 = /"/g, B5 = /^(?:script|style|textarea|title)$/i, a1 = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), b5 = /* @__PURE__ */ new WeakMap(), P = k.createTreeWalker(k, 129);
2736
2736
  function O5(s, t) {
2737
2737
  if (!D1(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
2738
2738
  return f5 !== void 0 ? f5.createHTML(t) : t;
@@ -2745,7 +2745,7 @@ const e7 = (s, t) => {
2745
2745
  let c, h, a = -1, p = 0;
2746
2746
  for (; p < C.length && (i.lastIndex = p, h = i.exec(C), h !== null); ) p = i.lastIndex, i === t1 ? h[1] === "!--" ? i = y5 : h[1] !== void 0 ? i = g5 : h[2] !== void 0 ? (B5.test(h[2]) && (r = RegExp("</" + h[2], "g")), i = S) : h[3] !== void 0 && (i = S) : i === S ? h[0] === ">" ? (i = r ?? t1, a = -1) : h[1] === void 0 ? a = -2 : (a = i.lastIndex - h[2].length, c = h[1], i = h[3] === void 0 ? S : h[3] === '"' ? _5 : w5) : i === _5 || i === w5 ? i = S : i === y5 || i === g5 ? i = t1 : (i = S, r = void 0);
2747
2747
  const f = i === S && s[l + 1].startsWith("/>") ? " " : "";
2748
- n += i === t1 ? C + Q2 : a >= 0 ? (o.push(c), C.slice(0, a) + z5 + C.slice(a) + H + f) : C + H + (a === -2 ? l : f);
2748
+ n += i === t1 ? C + Q2 : a >= 0 ? (o.push(c), C.slice(0, a) + k5 + C.slice(a) + H + f) : C + H + (a === -2 ? l : f);
2749
2749
  }
2750
2750
  return [O5(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), o];
2751
2751
  };
@@ -2761,9 +2761,9 @@ class c1 {
2761
2761
  }
2762
2762
  for (; (r = P.nextNode()) !== null && C.length < l; ) {
2763
2763
  if (r.nodeType === 1) {
2764
- if (r.hasAttributes()) for (const a of r.getAttributeNames()) if (a.endsWith(z5)) {
2765
- const p = h[i++], f = r.getAttribute(a).split(H), $ = /([.?@])?(.*)/.exec(p);
2766
- C.push({ type: 1, index: n, name: $[2], strings: f, ctor: $[1] === "." ? s7 : $[1] === "?" ? r7 : $[1] === "@" ? n7 : Z1 }), r.removeAttribute(a);
2764
+ if (r.hasAttributes()) for (const a of r.getAttributeNames()) if (a.endsWith(k5)) {
2765
+ const p = h[i++], f = r.getAttribute(a).split(H), L = /([.?@])?(.*)/.exec(p);
2766
+ C.push({ type: 1, index: n, name: L[2], strings: f, ctor: L[1] === "." ? s7 : L[1] === "?" ? r7 : L[1] === "@" ? n7 : Z1 }), r.removeAttribute(a);
2767
2767
  } else a.startsWith(H) && (C.push({ type: 6, index: n }), r.removeAttribute(a));
2768
2768
  if (B5.test(r.tagName)) {
2769
2769
  const a = r.textContent.split(H), p = a.length - 1;
@@ -2773,7 +2773,7 @@ class c1 {
2773
2773
  r.append(a[p], $1());
2774
2774
  }
2775
2775
  }
2776
- } else if (r.nodeType === 8) if (r.data === k5) C.push({ type: 2, index: n });
2776
+ } else if (r.nodeType === 8) if (r.data === z5) C.push({ type: 2, index: n });
2777
2777
  else {
2778
2778
  let a = -1;
2779
2779
  for (; (a = r.data.indexOf(H, a + 1)) !== -1; ) C.push({ type: 7, index: n }), a += H.length - 1;
@@ -2782,7 +2782,7 @@ class c1 {
2782
2782
  }
2783
2783
  }
2784
2784
  static createElement(t, e) {
2785
- const o = z.createElement("template");
2785
+ const o = k.createElement("template");
2786
2786
  return o.innerHTML = t, o;
2787
2787
  }
2788
2788
  }
@@ -2804,7 +2804,7 @@ class o7 {
2804
2804
  return this._$AM._$AU;
2805
2805
  }
2806
2806
  u(t) {
2807
- const { el: { content: e }, parts: o } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? z).importNode(e, !0);
2807
+ const { el: { content: e }, parts: o } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? k).importNode(e, !0);
2808
2808
  P.currentNode = r;
2809
2809
  let n = P.nextNode(), i = 0, l = 0, C = o[0];
2810
2810
  for (; C !== void 0; ) {
@@ -2814,7 +2814,7 @@ class o7 {
2814
2814
  }
2815
2815
  i !== (C == null ? void 0 : C.index) && (n = P.nextNode(), i++);
2816
2816
  }
2817
- return P.currentNode = z, r;
2817
+ return P.currentNode = k, r;
2818
2818
  }
2819
2819
  p(t) {
2820
2820
  let e = 0;
@@ -2850,7 +2850,7 @@ class H1 {
2850
2850
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
2851
2851
  }
2852
2852
  _(t) {
2853
- this._$AH !== u && l1(this._$AH) ? this._$AA.nextSibling.data = t : this.T(z.createTextNode(t)), this._$AH = t;
2853
+ this._$AH !== u && l1(this._$AH) ? this._$AA.nextSibling.data = t : this.T(k.createTextNode(t)), this._$AH = t;
2854
2854
  }
2855
2855
  $(t) {
2856
2856
  var e;
@@ -2964,17 +2964,18 @@ var C7 = Object.defineProperty, l7 = Object.getOwnPropertyDescriptor, w = (s, t,
2964
2964
  return o && r && C7(t, e, r), r;
2965
2965
  };
2966
2966
  let a7 = 0;
2967
- var L;
2968
- const y = (L = class extends x1 {
2967
+ var $;
2968
+ const y = ($ = class extends x1 {
2969
+ // allows use of elementInternals' API
2969
2970
  constructor() {
2970
- super(...arguments), this.id = "", this.name = "", this._size = "md", this.fullWidth = !1, this._variant = "filled", this.inverted = !1, this.label = "", this.prefixIcon = "", this.suffixIcon = "", this.disabled = !1, this.form = "", this.value = "", this._type = "button", this.onClick = () => {
2971
- }, this.href = "";
2971
+ super(), this.id = "", this.name = "", this._size = "md", this.fullWidth = !1, this._variant = "filled", this.inverted = !1, this.label = "", this.prefixIcon = "", this.suffixIcon = "", this.disabled = !1, this.form = "", this.value = "", this._type = "button", this.onClick = () => {
2972
+ }, this.href = "", this._internals = this.attachInternals();
2972
2973
  }
2973
2974
  get size() {
2974
2975
  return this._size;
2975
2976
  }
2976
2977
  set size(s) {
2977
- this._size = L.VALID_SIZES.includes(
2978
+ this._size = $.VALID_SIZES.includes(
2978
2979
  s
2979
2980
  ) ? s : "md";
2980
2981
  }
@@ -2982,7 +2983,7 @@ const y = (L = class extends x1 {
2982
2983
  return this._variant;
2983
2984
  }
2984
2985
  set variant(s) {
2985
- this._variant = L.VALID_VARIANTS.includes(
2986
+ this._variant = $.VALID_VARIANTS.includes(
2986
2987
  s
2987
2988
  ) ? s : "filled";
2988
2989
  }
@@ -2990,11 +2991,10 @@ const y = (L = class extends x1 {
2990
2991
  return this._type;
2991
2992
  }
2992
2993
  set type(s) {
2993
- this._type = L.VALID_TYPES.includes(
2994
+ this._type = $.VALID_TYPES.includes(
2994
2995
  s
2995
2996
  ) ? s : "button";
2996
2997
  }
2997
- /**************** Lifecycle Methods ****************/
2998
2998
  connectedCallback() {
2999
2999
  super.connectedCallback(), this.id || (this.id = this._generateUniqueId());
3000
3000
  }
@@ -3002,6 +3002,20 @@ const y = (L = class extends x1 {
3002
3002
  _generateUniqueId() {
3003
3003
  return `nys-button-${Date.now()}-${a7++}`;
3004
3004
  }
3005
+ _manageFormAction(s) {
3006
+ typeof this.onClick == "function" && this.onClick(s);
3007
+ const t = this._internals.form;
3008
+ if (t)
3009
+ switch (this.type) {
3010
+ case "submit":
3011
+ t.requestSubmit();
3012
+ break;
3013
+ case "reset":
3014
+ t.reset();
3015
+ break;
3016
+ }
3017
+ }
3018
+ /******************** Event Handlers ********************/
3005
3019
  // Handle focus event
3006
3020
  _handleFocus() {
3007
3021
  this.dispatchEvent(new Event("focus"));
@@ -3011,7 +3025,15 @@ const y = (L = class extends x1 {
3011
3025
  this.dispatchEvent(new Event("blur"));
3012
3026
  }
3013
3027
  _handleClick(s) {
3014
- typeof this.onClick == "function" && this.onClick(s);
3028
+ if (this.disabled) {
3029
+ s.preventDefault();
3030
+ return;
3031
+ }
3032
+ this._manageFormAction(s);
3033
+ }
3034
+ // Handle keydown for keyboard accessibility
3035
+ _handleKeydown(s) {
3036
+ (s.code === "Space" || s.code === "Enter") && (s.preventDefault(), this.disabled || this._manageFormAction(s));
3015
3037
  }
3016
3038
  render() {
3017
3039
  return d`
@@ -3020,10 +3042,11 @@ const y = (L = class extends x1 {
3020
3042
  <a
3021
3043
  class="nys-button"
3022
3044
  id=${x(this.id)}
3023
- name=${x(this.name)}
3045
+ name=${x(this.name ? this.name : void 0)}
3024
3046
  ?disabled=${this.disabled}
3025
- form=${x(this.form)}
3026
- value=${x(this.value)}
3047
+ aria-disabled="${this.disabled ? "true" : "false"}"
3048
+ form=${x(this.form ? this.form : void 0)}
3049
+ value=${x(this.value ? this.value : void 0)}
3027
3050
  href=${this.href}
3028
3051
  target="_blank"
3029
3052
  @click=${this._handleClick}
@@ -3043,14 +3066,15 @@ const y = (L = class extends x1 {
3043
3066
  <button
3044
3067
  class="nys-button"
3045
3068
  id=${x(this.id)}
3046
- name=${x(this.name)}
3069
+ name=${x(this.name ? this.name : void 0)}
3047
3070
  ?disabled=${this.disabled}
3048
- form=${x(this.form)}
3049
- value=${x(this.value)}
3071
+ form=${x(this.form ? this.form : void 0)}
3072
+ value=${x(this.value ? this.value : void 0)}
3050
3073
  type=${this.type}
3051
3074
  @click=${this._handleClick}
3052
3075
  @focus="${this._handleFocus}"
3053
3076
  @blur="${this._handleBlur}"
3077
+ @keydown="${this._handleKeydown}"
3054
3078
  >
3055
3079
  ${this.prefixIcon && this.variant !== "text" ? d`<slot name="prefix-icon">
3056
3080
  <nys-icon size="16" name=${this.prefixIcon}></nys-icon>
@@ -3063,12 +3087,12 @@ const y = (L = class extends x1 {
3063
3087
  `}
3064
3088
  `;
3065
3089
  }
3066
- }, L.VALID_SIZES = ["sm", "md", "lg"], L.VALID_VARIANTS = [
3090
+ }, $.VALID_SIZES = ["sm", "md", "lg"], $.VALID_VARIANTS = [
3067
3091
  "filled",
3068
3092
  "outline",
3069
3093
  "ghost",
3070
3094
  "text"
3071
- ], L.VALID_TYPES = ["submit", "reset", "button"], L.styles = z2, L);
3095
+ ], $.VALID_TYPES = ["submit", "reset", "button"], $.styles = k2, $.formAssociated = !0, $);
3072
3096
  w([
3073
3097
  g({ type: String })
3074
3098
  ], y.prototype, "id", 2);
@@ -3262,10 +3286,10 @@ b([
3262
3286
  m({ type: String })
3263
3287
  ], _.prototype, "icon", 2);
3264
3288
  b([
3265
- m({ type: Boolean })
3289
+ m({ type: Boolean, reflect: !0 })
3266
3290
  ], _.prototype, "dismissible", 2);
3267
3291
  b([
3268
- m({ type: Number })
3292
+ m({ type: Number, reflect: !0 })
3269
3293
  ], _.prototype, "duration", 2);
3270
3294
  b([
3271
3295
  m({ type: String })