@nysds/nys-radiobutton 1.1.0 → 1.1.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.
@@ -1,10 +1,10 @@
1
- import { css as a1, LitElement as F, html as w } from "lit";
1
+ import { css as a1, LitElement as F, html as _ } from "lit";
2
2
  /*!
3
3
  * ▒█▄░▒█ ▒█░░▒█ ▒█▀▀▀█ ▒█▀▀▄ ▒█▀▀▀█
4
4
  * ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
5
5
  * ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
6
6
  *
7
- * Radiobutton Component v1.1.0
7
+ * Radiobutton Component v1.1.1
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 a1, LitElement as F, html as w } from "lit";
14
14
  * Copyright 2019 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
- const Y = globalThis, g1 = Y.ShadowRoot && (Y.ShadyCSS === void 0 || Y.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Q1 = Symbol(), x1 = /* @__PURE__ */ new WeakMap();
17
+ const Y = globalThis, f1 = Y.ShadowRoot && (Y.ShadyCSS === void 0 || Y.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Q1 = Symbol(), x1 = /* @__PURE__ */ new WeakMap();
18
18
  let d5 = class {
19
19
  constructor(t, e, s) {
20
20
  if (this._$cssResult$ = !0, s !== Q1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -23,7 +23,7 @@ let d5 = class {
23
23
  get styleSheet() {
24
24
  let t = this.o;
25
25
  const e = this.t;
26
- if (g1 && t === void 0) {
26
+ if (f1 && t === void 0) {
27
27
  const s = e !== void 0 && e.length === 1;
28
28
  s && (t = x1.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && x1.set(e, t));
29
29
  }
@@ -33,23 +33,23 @@ let d5 = class {
33
33
  return this.cssText;
34
34
  }
35
35
  };
36
- const p5 = (o) => new d5(typeof o == "string" ? o : o + "", void 0, Q1), u5 = (o, t) => {
37
- if (g1) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
36
+ const u5 = (o) => new d5(typeof o == "string" ? o : o + "", void 0, Q1), p5 = (o, t) => {
37
+ if (f1) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
38
38
  else for (const e of t) {
39
39
  const s = document.createElement("style"), i = Y.litNonce;
40
40
  i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, o.appendChild(s);
41
41
  }
42
- }, A1 = g1 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
42
+ }, A1 = f1 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
43
43
  let e = "";
44
44
  for (const s of t.cssRules) e += s.cssText;
45
- return p5(e);
45
+ return u5(e);
46
46
  })(o) : o;
47
47
  /**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
51
  */
52
- const { is: v5, defineProperty: y5, getOwnPropertyDescriptor: g5, getOwnPropertyNames: f5, getOwnPropertySymbols: w5, getPrototypeOf: _5 } = Object, E = globalThis, P1 = E.trustedTypes, m5 = P1 ? P1.emptyScript : "", d1 = E.reactiveElementPolyfillSupport, q = (o, t) => o, e1 = { toAttribute(o, t) {
52
+ const { is: v5, defineProperty: y5, getOwnPropertyDescriptor: f5, getOwnPropertyNames: g5, getOwnPropertySymbols: w5, getPrototypeOf: _5 } = Object, E = globalThis, P1 = E.trustedTypes, m5 = P1 ? P1.emptyScript : "", d1 = E.reactiveElementPolyfillSupport, q = (o, t) => o, e1 = { toAttribute(o, t) {
53
53
  switch (t) {
54
54
  case Boolean:
55
55
  o = o ? m5 : null;
@@ -77,9 +77,9 @@ const { is: v5, defineProperty: y5, getOwnPropertyDescriptor: g5, getOwnProperty
77
77
  }
78
78
  }
79
79
  return e;
80
- } }, f1 = (o, t) => !v5(o, t), H1 = { attribute: !0, type: String, converter: e1, reflect: !1, hasChanged: f1 };
80
+ } }, g1 = (o, t) => !v5(o, t), H1 = { attribute: !0, type: String, converter: e1, reflect: !1, hasChanged: g1 };
81
81
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), E.litPropertyMetadata ?? (E.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
82
- let z = class extends HTMLElement {
82
+ let k = class extends HTMLElement {
83
83
  static addInitializer(t) {
84
84
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
85
85
  }
@@ -93,7 +93,7 @@ let z = class extends HTMLElement {
93
93
  }
94
94
  }
95
95
  static getPropertyDescriptor(t, e, s) {
96
- const { get: i, set: r } = g5(this.prototype, t) ?? { get() {
96
+ const { get: i, set: r } = f5(this.prototype, t) ?? { get() {
97
97
  return this[e];
98
98
  }, set(n) {
99
99
  this[e] = n;
@@ -116,7 +116,7 @@ let z = class extends HTMLElement {
116
116
  static finalize() {
117
117
  if (this.hasOwnProperty(q("finalized"))) return;
118
118
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(q("properties"))) {
119
- const e = this.properties, s = [...f5(e), ...w5(e)];
119
+ const e = this.properties, s = [...g5(e), ...w5(e)];
120
120
  for (const i of s) this.createProperty(i, e[i]);
121
121
  }
122
122
  const t = this[Symbol.metadata];
@@ -165,7 +165,7 @@ let z = class extends HTMLElement {
165
165
  }
166
166
  createRenderRoot() {
167
167
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
168
- return u5(t, this.constructor.elementStyles), t;
168
+ return p5(t, this.constructor.elementStyles), t;
169
169
  }
170
170
  connectedCallback() {
171
171
  var t;
@@ -204,7 +204,7 @@ let z = class extends HTMLElement {
204
204
  }
205
205
  requestUpdate(t, e, s) {
206
206
  if (t !== void 0) {
207
- if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? f1)(this[t], e)) return;
207
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? g1)(this[t], e)) return;
208
208
  this.P(t, e, s);
209
209
  }
210
210
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
@@ -277,13 +277,13 @@ let z = class extends HTMLElement {
277
277
  firstUpdated(t) {
278
278
  }
279
279
  };
280
- z.elementStyles = [], z.shadowRootOptions = { mode: "open" }, z[q("elementProperties")] = /* @__PURE__ */ new Map(), z[q("finalized")] = /* @__PURE__ */ new Map(), d1 == null || d1({ ReactiveElement: z }), (E.reactiveElementVersions ?? (E.reactiveElementVersions = [])).push("2.0.4");
280
+ k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[q("elementProperties")] = /* @__PURE__ */ new Map(), k[q("finalized")] = /* @__PURE__ */ new Map(), d1 == null || d1({ ReactiveElement: k }), (E.reactiveElementVersions ?? (E.reactiveElementVersions = [])).push("2.0.4");
281
281
  /**
282
282
  * @license
283
283
  * Copyright 2017 Google LLC
284
284
  * SPDX-License-Identifier: BSD-3-Clause
285
285
  */
286
- const b5 = { attribute: !0, type: String, converter: e1, reflect: !1, hasChanged: f1 }, $5 = (o = b5, t, e) => {
286
+ const b5 = { attribute: !0, type: String, converter: e1, reflect: !1, hasChanged: g1 }, $5 = (o = b5, t, e) => {
287
287
  const { kind: s, metadata: i } = e;
288
288
  let r = globalThis.litPropertyMetadata.get(i);
289
289
  if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(e.name, o), s === "accessor") {
@@ -304,7 +304,7 @@ const b5 = { attribute: !0, type: String, converter: e1, reflect: !1, hasChanged
304
304
  }
305
305
  throw Error("Unsupported decorator location: " + s);
306
306
  };
307
- function p(o) {
307
+ function d(o) {
308
308
  return (t, e) => typeof e == "object" ? $5(o, t, e) : ((s, i, r) => {
309
309
  const n = i.hasOwnProperty(r);
310
310
  return i.constructor.createProperty(r, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(i, r) : void 0;
@@ -316,29 +316,29 @@ function p(o) {
316
316
  * SPDX-License-Identifier: BSD-3-Clause
317
317
  */
318
318
  function E5(o) {
319
- return p({ ...o, state: !0, attribute: !1 });
319
+ return d({ ...o, state: !0, attribute: !1 });
320
320
  }
321
321
  /**
322
322
  * @license
323
323
  * Copyright 2017 Google LLC
324
324
  * SPDX-License-Identifier: BSD-3-Clause
325
325
  */
326
- const N = globalThis, s1 = N.trustedTypes, Z1 = s1 ? s1.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, t5 = "$lit$", $ = `lit$${Math.random().toFixed(9).slice(2)}$`, e5 = "?" + $, S5 = `<${e5}>`, M = document, i1 = () => M.createComment(""), G = (o) => o === null || typeof o != "object" && typeof o != "function", w1 = Array.isArray, L5 = (o) => w1(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", p1 = `[
327
- \f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, V1 = /-->/g, U1 = />/g, S = RegExp(`>|${p1}(?:([^\\s"'>=/]+)(${p1}*=${p1}*(?:[^
328
- \f\r"'\`<>=]|("|')|))|$)`, "g"), z1 = /'/g, O1 = /"/g, s5 = /^(?:script|style|textarea|title)$/i, W = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), k1 = /* @__PURE__ */ new WeakMap(), L = M.createTreeWalker(M, 129);
326
+ const N = globalThis, s1 = N.trustedTypes, Z1 = s1 ? s1.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, t5 = "$lit$", $ = `lit$${Math.random().toFixed(9).slice(2)}$`, e5 = "?" + $, S5 = `<${e5}>`, M = document, i1 = () => M.createComment(""), G = (o) => o === null || typeof o != "object" && typeof o != "function", w1 = Array.isArray, L5 = (o) => w1(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", u1 = `[
327
+ \f\r]`, z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, V1 = /-->/g, U1 = />/g, S = RegExp(`>|${u1}(?:([^\\s"'>=/]+)(${u1}*=${u1}*(?:[^
328
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), k1 = /'/g, z1 = /"/g, s5 = /^(?:script|style|textarea|title)$/i, W = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), O1 = /* @__PURE__ */ new WeakMap(), L = M.createTreeWalker(M, 129);
329
329
  function i5(o, t) {
330
330
  if (!w1(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
331
331
  return Z1 !== void 0 ? Z1.createHTML(t) : t;
332
332
  }
333
333
  const M5 = (o, t) => {
334
334
  const e = o.length - 1, s = [];
335
- let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = O;
335
+ let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = z;
336
336
  for (let a = 0; a < e; a++) {
337
337
  const l = o[a];
338
- let d, u, h = -1, g = 0;
339
- for (; g < l.length && (n.lastIndex = g, u = n.exec(l), u !== null); ) g = n.lastIndex, n === O ? u[1] === "!--" ? n = V1 : u[1] !== void 0 ? n = U1 : u[2] !== void 0 ? (s5.test(u[2]) && (i = RegExp("</" + u[2], "g")), n = S) : u[3] !== void 0 && (n = S) : n === S ? u[0] === ">" ? (n = i ?? O, h = -1) : u[1] === void 0 ? h = -2 : (h = n.lastIndex - u[2].length, d = u[1], n = u[3] === void 0 ? S : u[3] === '"' ? O1 : z1) : n === O1 || n === z1 ? n = S : n === V1 || n === U1 ? n = O : (n = S, i = void 0);
338
+ let u, p, h = -1, g = 0;
339
+ for (; g < l.length && (n.lastIndex = g, p = n.exec(l), p !== null); ) g = n.lastIndex, n === z ? p[1] === "!--" ? n = V1 : p[1] !== void 0 ? n = U1 : p[2] !== void 0 ? (s5.test(p[2]) && (i = RegExp("</" + p[2], "g")), n = S) : p[3] !== void 0 && (n = S) : n === S ? p[0] === ">" ? (n = i ?? z, h = -1) : p[1] === void 0 ? h = -2 : (h = n.lastIndex - p[2].length, u = p[1], n = p[3] === void 0 ? S : p[3] === '"' ? z1 : k1) : n === z1 || n === k1 ? n = S : n === V1 || n === U1 ? n = z : (n = S, i = void 0);
340
340
  const b = n === S && o[a + 1].startsWith("/>") ? " " : "";
341
- r += n === O ? l + S5 : h >= 0 ? (s.push(d), l.slice(0, h) + t5 + l.slice(h) + $ + b) : l + $ + (h === -2 ? a : b);
341
+ r += n === z ? l + S5 : h >= 0 ? (s.push(u), l.slice(0, h) + t5 + l.slice(h) + $ + b) : l + $ + (h === -2 ? a : b);
342
342
  }
343
343
  return [i5(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
344
344
  };
@@ -347,15 +347,15 @@ let v1 = class o5 {
347
347
  let i;
348
348
  this.parts = [];
349
349
  let r = 0, n = 0;
350
- const a = t.length - 1, l = this.parts, [d, u] = M5(t, e);
351
- if (this.el = o5.createElement(d, s), L.currentNode = this.el.content, e === 2 || e === 3) {
350
+ const a = t.length - 1, l = this.parts, [u, p] = M5(t, e);
351
+ if (this.el = o5.createElement(u, s), L.currentNode = this.el.content, e === 2 || e === 3) {
352
352
  const h = this.el.content.firstChild;
353
353
  h.replaceWith(...h.childNodes);
354
354
  }
355
355
  for (; (i = L.nextNode()) !== null && l.length < a; ) {
356
356
  if (i.nodeType === 1) {
357
357
  if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith(t5)) {
358
- const g = u[n++], b = i.getAttribute(h).split($), J = /([.?@])?(.*)/.exec(g);
358
+ const g = p[n++], b = i.getAttribute(h).split($), J = /([.?@])?(.*)/.exec(g);
359
359
  l.push({ type: 1, index: r, name: J[2], strings: b, ctor: J[1] === "." ? A5 : J[1] === "?" ? P5 : J[1] === "@" ? H5 : l1 }), i.removeAttribute(h);
360
360
  } else h.startsWith($) && (l.push({ type: 6, index: r }), i.removeAttribute(h));
361
361
  if (s5.test(i.tagName)) {
@@ -402,8 +402,8 @@ let x5 = class {
402
402
  let r = L.nextNode(), n = 0, a = 0, l = s[0];
403
403
  for (; l !== void 0; ) {
404
404
  if (n === l.index) {
405
- let d;
406
- l.type === 2 ? d = new r5(r, r.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (d = new Z5(r, this, t)), this._$AV.push(d), l = s[++a];
405
+ let u;
406
+ l.type === 2 ? u = new r5(r, r.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (u = new Z5(r, this, t)), this._$AV.push(u), l = s[++a];
407
407
  }
408
408
  n !== (l == null ? void 0 : l.index) && (r = L.nextNode(), n++);
409
409
  }
@@ -454,8 +454,8 @@ let x5 = class {
454
454
  }
455
455
  }
456
456
  _$AC(t) {
457
- let e = k1.get(t.strings);
458
- return e === void 0 && k1.set(t.strings, e = new v1(t)), e;
457
+ let e = O1.get(t.strings);
458
+ return e === void 0 && O1.set(t.strings, e = new v1(t)), e;
459
459
  }
460
460
  k(t) {
461
461
  w1(this._$AH) || (this._$AH = [], this._$AR());
@@ -491,8 +491,8 @@ let x5 = class {
491
491
  if (r === void 0) t = A(this, t, e, 0), n = !G(t) || t !== this._$AH && t !== W, n && (this._$AH = t);
492
492
  else {
493
493
  const a = t;
494
- let l, d;
495
- for (t = r[0], l = 0; l < r.length - 1; l++) d = A(this, a[s + l], e, l), d === W && (d = this._$AH[l]), n || (n = !G(d) || d !== this._$AH[l]), d === c ? t = c : t !== c && (t += (d ?? "") + r[l + 1]), this._$AH[l] = d;
494
+ let l, u;
495
+ for (t = r[0], l = 0; l < r.length - 1; l++) u = A(this, a[s + l], e, l), u === W && (u = this._$AH[l]), n || (n = !G(u) || u !== this._$AH[l]), u === c ? t = c : t !== c && (t += (u ?? "") + r[l + 1]), this._$AH[l] = u;
496
496
  }
497
497
  n && !i && this.j(t);
498
498
  }
@@ -537,8 +537,8 @@ let x5 = class {
537
537
  A(this, t);
538
538
  }
539
539
  };
540
- const u1 = N.litHtmlPolyfillSupport;
541
- u1 == null || u1(v1, r5), (N.litHtmlVersions ?? (N.litHtmlVersions = [])).push("3.2.1");
540
+ const p1 = N.litHtmlPolyfillSupport;
541
+ p1 == null || p1(v1, r5), (N.litHtmlVersions ?? (N.litHtmlVersions = [])).push("3.2.1");
542
542
  /**
543
543
  * @license
544
544
  * Copyright 2018 Google LLC
@@ -584,6 +584,10 @@ const V5 = (o) => o ?? c, a5 = a1`
584
584
  --nys-color-ink,
585
585
  var(--nys-color-neutral-900, #1b1b1b)
586
586
  );
587
+ --_nys-radiobutton-color-text: var(
588
+ --nys-color-text,
589
+ var(--nys-color-neutral-900, #1b1b1b)
590
+ );
587
591
 
588
592
  /* Default (Empty) */
589
593
  --_nys-radiobutton-color-bg: var(--nys-color-ink-reverse, #ffffff);
@@ -617,8 +621,8 @@ const V5 = (o) => o ?? c, a5 = a1`
617
621
  /* Disabled */
618
622
  --_nys-radiobutton-disabled-color-bg: var(--nys-color-ink-reverse, #f0f0f0);
619
623
  --_nys-radiobutton-disabled-color-text: var(
620
- --nys-color-neutral-500,
621
- #797c7f
624
+ --nys-color-text-disabled,
625
+ var(--nys-color-neutral-200, #bec0c1)
622
626
  );
623
627
  --_nys-radiobutton-disabled-color-border: var(
624
628
  --nys-color-neutral-100,
@@ -653,7 +657,7 @@ const V5 = (o) => o ?? c, a5 = a1`
653
657
  .nys-radiogroup {
654
658
  display: flex;
655
659
  flex-direction: column;
656
- gap: var(--nys-spacing-50, 4px);
660
+ gap: var(--nys-space-200, 16px);
657
661
  font-family: var(--_nys-radiobutton-font-family);
658
662
  font-size: var(--_nys-radiobutton-font-size);
659
663
  line-height: var(--_nys-radiobutton-line-height);
@@ -745,13 +749,14 @@ const V5 = (o) => o ?? c, a5 = a1`
745
749
  /* Label styling */
746
750
  .nys-radiobutton__label {
747
751
  font-weight: var(--_nys-radiobutton-font-weight-400);
748
- color: var(--_nys-radiobutton-color);
752
+ color: var(--_nys-radiobutton-color-text);
749
753
  }
750
754
 
751
755
  /* Description styling */
752
756
  .nys-radiobutton__description {
753
757
  font-weight: var(--_nys-radiobutton-font-weight-400);
754
758
  font-style: italic;
759
+ text-align: left;
755
760
  }
756
761
 
757
762
  /* gap between radio and it's label */
@@ -772,7 +777,7 @@ const V5 = (o) => o ?? c, a5 = a1`
772
777
  }
773
778
  `;
774
779
  /*!
775
- * Label v1.1.0
780
+ * Label v1.1.1
776
781
  * Part of the New York State Design System
777
782
  * A design system for New York State's digital products.
778
783
  * Repository: https://github.com/its-hcd/nysds
@@ -802,7 +807,7 @@ let U5 = class {
802
807
  return this.cssText;
803
808
  }
804
809
  };
805
- const z5 = (o) => new U5(typeof o == "string" ? o : o + "", void 0, l5), O5 = (o, t) => {
810
+ const k5 = (o) => new U5(typeof o == "string" ? o : o + "", void 0, l5), z5 = (o, t) => {
806
811
  if (_1) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
807
812
  else for (const e of t) {
808
813
  const s = document.createElement("style"), i = X.litNonce;
@@ -811,14 +816,14 @@ const z5 = (o) => new U5(typeof o == "string" ? o : o + "", void 0, l5), O5 = (o
811
816
  }, B1 = _1 ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
812
817
  let e = "";
813
818
  for (const s of t.cssRules) e += s.cssText;
814
- return z5(e);
819
+ return k5(e);
815
820
  })(o) : o;
816
821
  /**
817
822
  * @license
818
823
  * Copyright 2017 Google LLC
819
824
  * SPDX-License-Identifier: BSD-3-Clause
820
825
  */
821
- const { is: k5, defineProperty: R5, getOwnPropertyDescriptor: B5, getOwnPropertyNames: T5, getOwnPropertySymbols: q5, getPrototypeOf: N5 } = Object, P = globalThis, T1 = P.trustedTypes, D5 = T1 ? T1.emptyScript : "", q1 = P.reactiveElementPolyfillSupport, D = (o, t) => o, o1 = { toAttribute(o, t) {
826
+ const { is: O5, defineProperty: R5, getOwnPropertyDescriptor: B5, getOwnPropertyNames: T5, getOwnPropertySymbols: q5, getPrototypeOf: N5 } = Object, P = globalThis, T1 = P.trustedTypes, D5 = T1 ? T1.emptyScript : "", q1 = P.reactiveElementPolyfillSupport, D = (o, t) => o, o1 = { toAttribute(o, t) {
822
827
  switch (t) {
823
828
  case Boolean:
824
829
  o = o ? D5 : null;
@@ -846,9 +851,9 @@ const { is: k5, defineProperty: R5, getOwnPropertyDescriptor: B5, getOwnProperty
846
851
  }
847
852
  }
848
853
  return e;
849
- } }, m1 = (o, t) => !k5(o, t), N1 = { attribute: !0, type: String, converter: o1, reflect: !1, hasChanged: m1 };
854
+ } }, m1 = (o, t) => !O5(o, t), N1 = { attribute: !0, type: String, converter: o1, reflect: !1, hasChanged: m1 };
850
855
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), P.litPropertyMetadata ?? (P.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
851
- let k = class extends HTMLElement {
856
+ let O = class extends HTMLElement {
852
857
  static addInitializer(t) {
853
858
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
854
859
  }
@@ -934,7 +939,7 @@ let k = class extends HTMLElement {
934
939
  }
935
940
  createRenderRoot() {
936
941
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
937
- return O5(t, this.constructor.elementStyles), t;
942
+ return z5(t, this.constructor.elementStyles), t;
938
943
  }
939
944
  connectedCallback() {
940
945
  var t;
@@ -1046,7 +1051,7 @@ let k = class extends HTMLElement {
1046
1051
  firstUpdated(t) {
1047
1052
  }
1048
1053
  };
1049
- k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[D("elementProperties")] = /* @__PURE__ */ new Map(), k[D("finalized")] = /* @__PURE__ */ new Map(), q1 == null || q1({ ReactiveElement: k }), (P.reactiveElementVersions ?? (P.reactiveElementVersions = [])).push("2.0.4");
1054
+ O.elementStyles = [], O.shadowRootOptions = { mode: "open" }, O[D("elementProperties")] = /* @__PURE__ */ new Map(), O[D("finalized")] = /* @__PURE__ */ new Map(), q1 == null || q1({ ReactiveElement: O }), (P.reactiveElementVersions ?? (P.reactiveElementVersions = [])).push("2.0.4");
1050
1055
  /**
1051
1056
  * @license
1052
1057
  * Copyright 2017 Google LLC
@@ -1097,19 +1102,19 @@ const G5 = a1`
1097
1102
  --_nys-label-font-size: var(--nys-font-size-ui-md, 16px);
1098
1103
  --_nys-label-line-height: var(--nys-font-lineheight-ui-md, 24px);
1099
1104
  --_nys-label-letter-spacing: var(--nys-font-letterspacing-ui-md, 0.044px);
1100
- --_nys-label-font-color: var(--nys-color-ink, #1b1b1b);
1105
+ --_nys-label-font-color: var(--nys-color-text, #1b1b1b);
1101
1106
 
1102
1107
  /* Description */
1103
1108
  --nys-description-font-weight: var(--nys-font-weight-regular, 400);
1104
1109
  --nys-description-font-style: italic;
1105
- --nys-description-font-color: var(--nys-neutral-900, #1b1b1b);
1110
+ --nys-description-font-color: var(--nys-color-text, #1b1b1b);
1106
1111
 
1107
1112
  /* Required Flag */
1108
1113
  --nys-required-font-color: var(--nys-color-danger, #b52c2c);
1109
1114
 
1110
1115
  /* Optional Flag */
1111
1116
  --nys-optional-font-weight: var(--nys-font-weight-regular, 400);
1112
- --nys-optional-font-color: var(--nys-color-neutral-700, #4a4d4f);
1117
+ --nys-optional-font-color: var(--nys-color-text-weak, #4a4d4f);
1113
1118
 
1114
1119
  /* Spacing */
1115
1120
  --_nys-label-flag-gap: var(--nys-space-2px, 2px);
@@ -1161,12 +1166,12 @@ const C5 = class extends F {
1161
1166
  super(...arguments), this.id = "", this.label = "", this.description = "", this.flag = "";
1162
1167
  }
1163
1168
  render() {
1164
- return w`
1169
+ return _`
1165
1170
  <div class="nys-label">
1166
1171
  <label for=${this.id} class="nys-label__label"
1167
1172
  >${this.label}
1168
- ${this.flag === "required" ? w`<label class="nys-label__required">*</label>` : ""}
1169
- ${this.flag === "optional" ? w`<label class="nys-label__optional">(Optional)</label>` : ""}</label
1173
+ ${this.flag === "required" ? _`<label class="nys-label__required">*</label>` : ""}
1174
+ ${this.flag === "optional" ? _`<label class="nys-label__optional">(Optional)</label>` : ""}</label
1170
1175
  >
1171
1176
  <label for=${this.id} class="nys-label__description">
1172
1177
  <slot name="description">${this.description}</slot>
@@ -1191,7 +1196,7 @@ h1([
1191
1196
  ], K.prototype, "flag");
1192
1197
  customElements.get("nys-label") || customElements.define("nys-label", K);
1193
1198
  /*!
1194
- * Error Message v1.1.0
1199
+ * Error Message v1.1.1
1195
1200
  * Part of the New York State Design System
1196
1201
  * A design system for New York State's digital products.
1197
1202
  * Repository: https://github.com/its-hcd/nysds
@@ -1553,7 +1558,7 @@ const n2 = a1`
1553
1558
  * ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
1554
1559
  * ▒█░░▀█ ░░▒█░░ ▒█▄▄▄█ ▒█▄▄▀ ▒█▄▄▄█
1555
1560
  *
1556
- * Icon Component v1.1.0
1561
+ * Icon Component v1.1.1
1557
1562
  * Part of the New York State Design System
1558
1563
  * Repository: https://github.com/its-hcd/nysds
1559
1564
  * License: MIT
@@ -1598,7 +1603,7 @@ const l2 = (o) => new a2(typeof o == "string" ? o : o + "", void 0, c5), C2 = (o
1598
1603
  * Copyright 2017 Google LLC
1599
1604
  * SPDX-License-Identifier: BSD-3-Clause
1600
1605
  */
1601
- const { is: h2, defineProperty: c2, getOwnPropertyDescriptor: d2, getOwnPropertyNames: p2, getOwnPropertySymbols: u2, getPrototypeOf: v2 } = Object, Z = globalThis, J1 = Z.trustedTypes, y2 = J1 ? J1.emptyScript : "", Y1 = Z.reactiveElementPolyfillSupport, I = (o, t) => o, n1 = { toAttribute(o, t) {
1606
+ const { is: h2, defineProperty: c2, getOwnPropertyDescriptor: d2, getOwnPropertyNames: u2, getOwnPropertySymbols: p2, getPrototypeOf: v2 } = Object, Z = globalThis, J1 = Z.trustedTypes, y2 = J1 ? J1.emptyScript : "", Y1 = Z.reactiveElementPolyfillSupport, I = (o, t) => o, n1 = { toAttribute(o, t) {
1602
1607
  switch (t) {
1603
1608
  case Boolean:
1604
1609
  o = o ? y2 : null;
@@ -1665,7 +1670,7 @@ class B extends HTMLElement {
1665
1670
  static finalize() {
1666
1671
  if (this.hasOwnProperty(I("finalized"))) return;
1667
1672
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(I("properties"))) {
1668
- const e = this.properties, s = [...p2(e), ...u2(e)];
1673
+ const e = this.properties, s = [...u2(e), ...p2(e)];
1669
1674
  for (const i of s) this.createProperty(i, e[i]);
1670
1675
  }
1671
1676
  const t = this[Symbol.metadata];
@@ -1832,7 +1837,7 @@ B.elementStyles = [], B.shadowRootOptions = { mode: "open" }, B[I("elementProper
1832
1837
  * Copyright 2017 Google LLC
1833
1838
  * SPDX-License-Identifier: BSD-3-Clause
1834
1839
  */
1835
- const g2 = { attribute: !0, type: String, converter: n1, reflect: !1, hasChanged: L1 }, f2 = (o = g2, t, e) => {
1840
+ const f2 = { attribute: !0, type: String, converter: n1, reflect: !1, hasChanged: L1 }, g2 = (o = f2, t, e) => {
1836
1841
  const { kind: s, metadata: i } = e;
1837
1842
  let r = globalThis.litPropertyMetadata.get(i);
1838
1843
  if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(e.name, o), s === "accessor") {
@@ -1854,7 +1859,7 @@ const g2 = { attribute: !0, type: String, converter: n1, reflect: !1, hasChanged
1854
1859
  throw Error("Unsupported decorator location: " + s);
1855
1860
  };
1856
1861
  function V(o) {
1857
- return (t, e) => typeof e == "object" ? f2(o, t, e) : ((s, i, r) => {
1862
+ return (t, e) => typeof e == "object" ? g2(o, t, e) : ((s, i, r) => {
1858
1863
  const n = i.hasOwnProperty(r);
1859
1864
  return i.constructor.createProperty(r, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(i, r) : void 0;
1860
1865
  })(o, t, e);
@@ -2180,7 +2185,7 @@ const x = (T = class extends F {
2180
2185
  }
2181
2186
  render() {
2182
2187
  const o = this.getIcon();
2183
- return o ? w`${o}` : null;
2188
+ return o ? _`${o}` : null;
2184
2189
  }
2185
2190
  }, T.styles = _2, T.VALID_TYPES = [
2186
2191
  "2xs",
@@ -2200,7 +2205,7 @@ const x = (T = class extends F {
2200
2205
  "64"
2201
2206
  ], T);
2202
2207
  U([
2203
- V({ type: String })
2208
+ V({ type: String, reflect: !0 })
2204
2209
  ], x.prototype, "name", 2);
2205
2210
  U([
2206
2211
  V({ type: String })
@@ -2230,7 +2235,7 @@ const y1 = class extends F {
2230
2235
  super(), this.showError = !1, this.errorMessage = "", this.showDivider = !1, this._internals = this.attachInternals();
2231
2236
  }
2232
2237
  render() {
2233
- return w`${this.showError ? w`<div class="nys-errormessage" ?showDivider=${this.showDivider}>
2238
+ return _`${this.showError ? _`<div class="nys-errormessage" ?showDivider=${this.showDivider}>
2234
2239
  <nys-icon name="error" size="xl"></nys-icon>
2235
2240
  ${this._internals.validationMessage || this.errorMessage}
2236
2241
  </div>` : ""}`;
@@ -2248,23 +2253,23 @@ M1([
2248
2253
  E1({ type: Boolean, reflect: !0 })
2249
2254
  ], c1.prototype, "showDivider");
2250
2255
  customElements.get("nys-errormessage") || customElements.define("nys-errormessage", c1);
2251
- var S2 = Object.defineProperty, L2 = Object.getOwnPropertyDescriptor, _ = (o, t, e, s) => {
2256
+ var S2 = Object.defineProperty, L2 = Object.getOwnPropertyDescriptor, y = (o, t, e, s) => {
2252
2257
  for (var i = s > 1 ? void 0 : s ? L2(t, e) : t, r = o.length - 1, n; r >= 0; r--)
2253
2258
  (n = o[r]) && (i = (s ? n(t, e, i) : n(i)) || i);
2254
2259
  return s && i && S2(t, e, i), i;
2255
2260
  };
2256
2261
  let M2 = 0;
2257
- var f;
2258
- const v = (f = class extends F {
2262
+ var w;
2263
+ const v = (w = class extends F {
2259
2264
  // allows use of elementInternals' API
2260
2265
  constructor() {
2261
- super(), this.id = "", this.name = "", this.required = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.selectedValue = null, this._size = "md", this._internals = this.attachInternals();
2266
+ super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.selectedValue = null, this._size = "md", this._internals = this.attachInternals();
2262
2267
  }
2263
2268
  get size() {
2264
2269
  return this._size;
2265
2270
  }
2266
2271
  set size(t) {
2267
- this._size = f.VALID_SIZES.includes(
2272
+ this._size = w.VALID_SIZES.includes(
2268
2273
  t
2269
2274
  ) ? t : "md";
2270
2275
  }
@@ -2276,10 +2281,10 @@ const v = (f = class extends F {
2276
2281
  super.disconnectedCallback(), this.removeEventListener("change", this._handleRadioButtonChange), this.removeEventListener("invalid", this._handleInvalid);
2277
2282
  }
2278
2283
  firstUpdated() {
2279
- this._initializeCheckedState(), this._setValue(), this.setRadioButtonRequire();
2284
+ this._initializeCheckedRadioValue(), this._setValue(), this.setRadioButtonRequire();
2280
2285
  }
2281
2286
  updated(t) {
2282
- (t.has("required") || t.has("selectedValue")) && this._manageRequire(), t.has("size") && this.updateRadioButtonsSize();
2287
+ (t.has("required") || t.has("selectedValue")) && this._manageRequire(), t.has("size") && this._updateRadioButtonsSize();
2283
2288
  }
2284
2289
  // This callback is automatically called when the parent form is reset.
2285
2290
  formResetCallback() {
@@ -2291,7 +2296,7 @@ const v = (f = class extends F {
2291
2296
  _setValue() {
2292
2297
  this._internals.setFormValue(this.selectedValue);
2293
2298
  }
2294
- // Updates the "require" attribute of a radiobutton underneath a radiogroup to ensure requirement for all radiobutton under the same name/group
2299
+ // Updates the "require" attribute of the first radiobutton underneath a radiogroup to ensure requirement for all radiobutton under the same name/group
2295
2300
  setRadioButtonRequire() {
2296
2301
  this.querySelectorAll("nys-radiobutton").forEach((e, s) => {
2297
2302
  this.required && s === 0 && e.setAttribute("required", "required");
@@ -2299,32 +2304,47 @@ const v = (f = class extends F {
2299
2304
  }
2300
2305
  async _manageRequire() {
2301
2306
  const t = this.errorMessage || "Please select an option.", e = this.querySelector("nys-radiobutton"), s = e ? await e.getInputElement() : null;
2302
- this.required && !this.selectedValue ? (this._internals.setValidity(
2307
+ this.required && !this.selectedValue ? this._internals.setValidity(
2303
2308
  { valueMissing: !0 },
2304
2309
  t,
2305
- s || this
2306
- ), this.showError = !0) : (this._internals.setValidity({}), this.showError = !1);
2310
+ s
2311
+ ) : (this.showError = !1, this._internals.setValidity({}, "", s));
2307
2312
  }
2308
- _initializeCheckedState() {
2313
+ // Need to account for if radiogroup already have a radiobutton checked at initialization
2314
+ _initializeCheckedRadioValue() {
2309
2315
  const t = this.querySelector("nys-radiobutton[checked]");
2310
2316
  t && (this.selectedValue = t.getAttribute("value"), this._internals.setFormValue(this.selectedValue));
2311
2317
  }
2318
+ /********************** Functions **********************/
2312
2319
  // Updates the size of each radiobutton underneath a radiogroup to ensure size standardization
2313
- updateRadioButtonsSize() {
2320
+ _updateRadioButtonsSize() {
2314
2321
  this.querySelectorAll("nys-radiobutton").forEach((e) => {
2315
2322
  e.setAttribute("size", this.size);
2316
2323
  });
2317
2324
  }
2318
- // Keeps radiogroup informed of the name and value of its current selected radiobutton
2325
+ // Keeps radiogroup informed of the name and value of its current selected radiobutton at each change
2319
2326
  _handleRadioButtonChange(t) {
2320
- const e = t, { value: s } = e.detail;
2321
- this.selectedValue = s, this._internals.setFormValue(this.selectedValue);
2322
- }
2323
- _handleInvalid() {
2324
- this._internals.validity.valueMissing && (this.showError = !0, this._manageRequire());
2327
+ const e = t, { name: s, value: i } = e.detail;
2328
+ this.name = s, this.selectedValue = i, this._internals.setFormValue(this.selectedValue);
2329
+ }
2330
+ async _handleInvalid(t) {
2331
+ if (t.preventDefault(), this._internals.validity.valueMissing) {
2332
+ this.showError = !0, this._manageRequire();
2333
+ const e = this.querySelector("nys-radiobutton"), s = e ? await e.getInputElement() : null;
2334
+ if (s) {
2335
+ const i = this._internals.form;
2336
+ i ? Array.from(i.elements).find((a) => {
2337
+ if (a.tagName.toLowerCase() === "nys-radiogroup") {
2338
+ if (!a.querySelector("nys-radiobutton").checkValidity())
2339
+ return a;
2340
+ } else
2341
+ return typeof a.checkValidity == "function" && !a.checkValidity();
2342
+ }) === this && s.focus() : s.focus();
2343
+ }
2344
+ }
2325
2345
  }
2326
2346
  render() {
2327
- return w` <div
2347
+ return _` <div
2328
2348
  role="radiogroup"
2329
2349
  class="nys-radiogroup"
2330
2350
  aria-required="${this.required ? "true" : "false"}"
@@ -2333,7 +2353,7 @@ const v = (f = class extends F {
2333
2353
  <nys-label
2334
2354
  label=${this.label}
2335
2355
  description=${this.description}
2336
- flag=${this.required ? "required" : ""}
2356
+ flag=${this.required ? "required" : this.optional ? "optional" : ""}
2337
2357
  >
2338
2358
  <slot name="description" slot="description">${this.description}</slot>
2339
2359
  </nys-label>
@@ -2347,33 +2367,36 @@ const v = (f = class extends F {
2347
2367
  ></nys-errormessage>
2348
2368
  </div>`;
2349
2369
  }
2350
- }, f.VALID_SIZES = ["sm", "md"], f.styles = a5, f.formAssociated = !0, f);
2351
- _([
2352
- p({ type: String })
2370
+ }, w.VALID_SIZES = ["sm", "md"], w.styles = a5, w.formAssociated = !0, w);
2371
+ y([
2372
+ d({ type: String })
2353
2373
  ], v.prototype, "id", 2);
2354
- _([
2355
- p({ type: String })
2374
+ y([
2375
+ d({ type: String, reflect: !0 })
2356
2376
  ], v.prototype, "name", 2);
2357
- _([
2358
- p({ type: Boolean, reflect: !0 })
2377
+ y([
2378
+ d({ type: Boolean, reflect: !0 })
2359
2379
  ], v.prototype, "required", 2);
2360
- _([
2361
- p({ type: Boolean, reflect: !0 })
2380
+ y([
2381
+ d({ type: Boolean, reflect: !0 })
2382
+ ], v.prototype, "optional", 2);
2383
+ y([
2384
+ d({ type: Boolean, reflect: !0 })
2362
2385
  ], v.prototype, "showError", 2);
2363
- _([
2364
- p({ type: String })
2386
+ y([
2387
+ d({ type: String })
2365
2388
  ], v.prototype, "errorMessage", 2);
2366
- _([
2367
- p({ type: String })
2389
+ y([
2390
+ d({ type: String })
2368
2391
  ], v.prototype, "label", 2);
2369
- _([
2370
- p({ type: String })
2392
+ y([
2393
+ d({ type: String })
2371
2394
  ], v.prototype, "description", 2);
2372
- _([
2395
+ y([
2373
2396
  E5()
2374
2397
  ], v.prototype, "selectedValue", 2);
2375
- _([
2376
- p({ reflect: !0 })
2398
+ y([
2399
+ d({ reflect: !0 })
2377
2400
  ], v.prototype, "size", 1);
2378
2401
  let x2 = v;
2379
2402
  customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", x2);
@@ -2384,7 +2407,7 @@ var A2 = Object.defineProperty, P2 = Object.getOwnPropertyDescriptor, m = (o, t,
2384
2407
  };
2385
2408
  let H2 = 0;
2386
2409
  var C;
2387
- const y = (C = class extends F {
2410
+ const f = (C = class extends F {
2388
2411
  constructor() {
2389
2412
  super(...arguments), this.checked = !1, this.disabled = !1, this.required = !1, this.label = "", this.description = "", this.id = "", this.name = "", this.value = "", this._size = "md";
2390
2413
  }
@@ -2412,6 +2435,15 @@ const y = (C = class extends F {
2412
2435
  updated(t) {
2413
2436
  t.has("checked") && this.checked && C.buttonGroup[this.name] !== this && (C.buttonGroup[this.name] && (C.buttonGroup[this.name].checked = !1, C.buttonGroup[this.name].requestUpdate()), C.buttonGroup[this.name] = this);
2414
2437
  }
2438
+ /******************** Function ********************/
2439
+ // This helper function is called to perform the element's native validation.
2440
+ checkValidity() {
2441
+ var e;
2442
+ if (this.required && !this.checked)
2443
+ return !1;
2444
+ const t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("input");
2445
+ return t ? t.checkValidity() : !0;
2446
+ }
2415
2447
  /******************** Event Handlers ********************/
2416
2448
  // Handle radiobutton change event & unselection of other options in group
2417
2449
  _handleChange() {
@@ -2446,7 +2478,7 @@ const y = (C = class extends F {
2446
2478
  )));
2447
2479
  }
2448
2480
  render() {
2449
- return w`
2481
+ return _`
2450
2482
  <label class="nys-radiobutton">
2451
2483
  <input
2452
2484
  id="${this.id}"
@@ -2465,13 +2497,12 @@ const y = (C = class extends F {
2465
2497
  @blur="${this._handleBlur}"
2466
2498
  @keydown="${this._handleKeydown}"
2467
2499
  />
2468
- ${this.label && w` <div class="nys-radiobutton__text">
2500
+ ${this.label && _` <div class="nys-radiobutton__text">
2469
2501
  <label for=${this.id} class="nys-radiobutton__label"
2470
2502
  >${this.label}</label
2471
2503
  >
2472
2504
  <label for=${this.id} class="nys-radiobutton__description">
2473
- ${this.description}
2474
- <slot></slot>
2505
+ <slot name="description">${this.description}</slot>
2475
2506
  </label>
2476
2507
  </div>`}
2477
2508
  </label>
@@ -2479,35 +2510,36 @@ const y = (C = class extends F {
2479
2510
  }
2480
2511
  }, C.VALID_SIZES = ["sm", "md"], C.buttonGroup = {}, C.styles = a5, C);
2481
2512
  m([
2482
- p({ type: Boolean, reflect: !0 })
2483
- ], y.prototype, "checked", 2);
2513
+ d({ type: Boolean, reflect: !0 })
2514
+ ], f.prototype, "checked", 2);
2484
2515
  m([
2485
- p({ type: Boolean, reflect: !0 })
2486
- ], y.prototype, "disabled", 2);
2516
+ d({ type: Boolean, reflect: !0 })
2517
+ ], f.prototype, "disabled", 2);
2487
2518
  m([
2488
- p({ type: Boolean, reflect: !0 })
2489
- ], y.prototype, "required", 2);
2519
+ d({ type: Boolean, reflect: !0 })
2520
+ ], f.prototype, "required", 2);
2490
2521
  m([
2491
- p({ type: String })
2492
- ], y.prototype, "label", 2);
2522
+ d({ type: String })
2523
+ ], f.prototype, "label", 2);
2493
2524
  m([
2494
- p({ type: String })
2495
- ], y.prototype, "description", 2);
2525
+ d({ type: String })
2526
+ ], f.prototype, "description", 2);
2496
2527
  m([
2497
- p({ type: String })
2498
- ], y.prototype, "id", 2);
2528
+ d({ type: String })
2529
+ ], f.prototype, "id", 2);
2499
2530
  m([
2500
- p({ type: String })
2501
- ], y.prototype, "name", 2);
2531
+ d({ type: String, reflect: !0 })
2532
+ ], f.prototype, "name", 2);
2502
2533
  m([
2503
- p({ type: String })
2504
- ], y.prototype, "value", 2);
2534
+ d({ type: String })
2535
+ ], f.prototype, "value", 2);
2505
2536
  m([
2506
- p({ reflect: !0 })
2507
- ], y.prototype, "size", 1);
2508
- let Z2 = y;
2537
+ d({ reflect: !0 })
2538
+ ], f.prototype, "size", 1);
2539
+ let Z2 = f;
2509
2540
  customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", Z2);
2510
2541
  export {
2511
- Z2 as NysRadiobutton
2542
+ Z2 as NysRadiobutton,
2543
+ x2 as NysRadiogroup
2512
2544
  };
2513
2545
  //# sourceMappingURL=nys-radiobutton.js.map