@nysds/components 1.5.2 → 1.5.3

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
@@ -1,8 +1,8 @@
1
1
  import { css as g, LitElement as u, html as a } from "lit";
2
- import { property as r, state as O } from "lit/decorators.js";
2
+ import { property as r, state as A } from "lit/decorators.js";
3
3
  import { ifDefined as h } from "lit/directives/if-defined.js";
4
4
  /*!
5
- * New York State Design System (v1.5.0)
5
+ * New York State Design System (v1.5.3)
6
6
  * Description: A design system for New York State's digital products.
7
7
  * Repository: https://github.com/its-hcd/nysds
8
8
  * License: MIT
@@ -238,7 +238,7 @@ const q1 = g`
238
238
  text-decoration-thickness: 3px;
239
239
  }
240
240
  `;
241
- var U1 = Object.defineProperty, P1 = Object.getOwnPropertyDescriptor, D = (l, e, t, o) => {
241
+ var U1 = Object.defineProperty, P1 = Object.getOwnPropertyDescriptor, V = (l, e, t, o) => {
242
242
  for (var s = o > 1 ? void 0 : o ? P1(e, t) : e, n = l.length - 1, i; n >= 0; n--)
243
243
  (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
244
244
  return o && s && U1(e, t, s), s;
@@ -366,43 +366,43 @@ const k = (J = class extends u {
366
366
  "danger",
367
367
  "emergency"
368
368
  ], J);
369
- D([
369
+ V([
370
370
  r({ type: String })
371
371
  ], k.prototype, "id", 2);
372
- D([
372
+ V([
373
373
  r({ type: String })
374
374
  ], k.prototype, "heading", 2);
375
- D([
375
+ V([
376
376
  r({ type: String })
377
377
  ], k.prototype, "icon", 2);
378
- D([
378
+ V([
379
379
  r({ type: Boolean, reflect: !0 })
380
380
  ], k.prototype, "dismissible", 2);
381
- D([
381
+ V([
382
382
  r({ type: Number, reflect: !0 })
383
383
  ], k.prototype, "duration", 2);
384
- D([
384
+ V([
385
385
  r({ type: String })
386
386
  ], k.prototype, "text", 2);
387
- D([
387
+ V([
388
388
  r({ type: String })
389
389
  ], k.prototype, "primaryAction", 2);
390
- D([
390
+ V([
391
391
  r({ type: String })
392
392
  ], k.prototype, "secondaryAction", 2);
393
- D([
393
+ V([
394
394
  r({ type: String })
395
395
  ], k.prototype, "primaryLabel", 2);
396
- D([
396
+ V([
397
397
  r({ type: String })
398
398
  ], k.prototype, "secondaryLabel", 2);
399
- D([
400
- O()
399
+ V([
400
+ A()
401
401
  ], k.prototype, "_alertClosed", 2);
402
- D([
403
- O()
402
+ V([
403
+ A()
404
404
  ], k.prototype, "_slotHasContent", 2);
405
- D([
405
+ V([
406
406
  r({ reflect: !0 })
407
407
  ], k.prototype, "type", 1);
408
408
  let R1 = k;
@@ -588,7 +588,7 @@ Q([
588
588
  r({ reflect: !0 })
589
589
  ], R.prototype, "shape", 1);
590
590
  Q([
591
- O()
591
+ A()
592
592
  ], R.prototype, "_slotHasContent", 2);
593
593
  let G1 = R;
594
594
  customElements.get("nys-avatar") || customElements.define("nys-avatar", G1);
@@ -606,6 +606,7 @@ const Y1 = g`
606
606
  bottom: 1rem;
607
607
  right: 1rem;
608
608
  z-index: 9999;
609
+ display: none;
609
610
  }
610
611
 
611
612
  .left {
@@ -617,24 +618,25 @@ const Y1 = g`
617
618
  display: inline-flex;
618
619
  }
619
620
  `;
620
- var W1 = Object.defineProperty, m1 = (l, e, t, o) => {
621
+ var W1 = Object.defineProperty, v1 = (l, e, t, o) => {
621
622
  for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
622
623
  (i = l[n]) && (s = i(e, t, s) || s);
623
624
  return s && W1(e, t, s), s;
624
625
  };
625
626
  const k1 = class k1 extends u {
626
627
  constructor() {
627
- super(), this.position = "right", this.visible = !1, this.isMobile = !1, this._handleScroll = this._handleScroll.bind(this), this._handleResize = this._handleResize.bind(this), this.mediaQuery = window.matchMedia("(max-width: 480px)");
628
+ super(), this.position = "right", this.visible = !1, this.isMobile = !1, this.forceVisible = !1, this._handleScroll = this._handleScroll.bind(this), this._handleResize = this._handleResize.bind(this), this.mediaQuery = window.matchMedia("(max-width: 480px)");
628
629
  }
629
630
  connectedCallback() {
630
- super.connectedCallback(), window.addEventListener("scroll", this._handleScroll), this.mediaQuery.addEventListener("change", this._handleResize), this._handleResize();
631
+ super.connectedCallback(), this.forceVisible = this.hasAttribute("visible"), window.addEventListener("scroll", this._handleScroll), this.mediaQuery.addEventListener("change", this._handleResize), this._handleResize();
631
632
  }
632
633
  disconnectedCallback() {
633
634
  window.removeEventListener("scroll", this._handleScroll), this.mediaQuery.removeEventListener("change", this._handleResize), super.disconnectedCallback();
634
635
  }
635
636
  _handleScroll() {
636
- const e = window.innerHeight * 1.5;
637
- this.visible = window.scrollY > e;
637
+ if (this.forceVisible) return;
638
+ const e = window.innerHeight, t = document.documentElement.scrollHeight;
639
+ this.visible = t >= e * 4 && window.scrollY > e * 1.5;
638
640
  }
639
641
  _scrollToTop() {
640
642
  window.scrollTo({ top: 0, behavior: "smooth" });
@@ -652,7 +654,8 @@ const k1 = class k1 extends u {
652
654
  id="nys-backtotop"
653
655
  prefixIcon="chevron_up"
654
656
  variant="outline"
655
- label="Back To Top"
657
+ label="Back to top"
658
+ size="sm"
656
659
  class="${e}"
657
660
  .onClick=${this._scrollToTop}
658
661
  ?circle=${this.isMobile}
@@ -660,17 +663,20 @@ const k1 = class k1 extends u {
660
663
  }
661
664
  };
662
665
  k1.styles = Y1;
663
- let l1 = k1;
664
- m1([
666
+ let o1 = k1;
667
+ v1([
665
668
  r({ type: String })
666
- ], l1.prototype, "position");
667
- m1([
669
+ ], o1.prototype, "position");
670
+ v1([
668
671
  r({ type: Boolean, reflect: !0 })
669
- ], l1.prototype, "visible");
670
- m1([
671
- O()
672
- ], l1.prototype, "isMobile");
673
- customElements.get("nys-backtotop") || customElements.define("nys-backtotop", l1);
672
+ ], o1.prototype, "visible");
673
+ v1([
674
+ A()
675
+ ], o1.prototype, "isMobile");
676
+ v1([
677
+ A()
678
+ ], o1.prototype, "forceVisible");
679
+ customElements.get("nys-backtotop") || customElements.define("nys-backtotop", o1);
674
680
  const K1 = g`
675
681
  :host {
676
682
  /* Anything that can be overridden should be defined here */
@@ -1687,7 +1693,7 @@ var te = Object.defineProperty, se = Object.getOwnPropertyDescriptor, T = (l, e,
1687
1693
  };
1688
1694
  let oe = 0;
1689
1695
  var j;
1690
- const A = (j = class extends u {
1696
+ const B = (j = class extends u {
1691
1697
  // allows use of elementInternals' API
1692
1698
  constructor() {
1693
1699
  super(), this.id = "", this.name = "", this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.label = "", this.description = "", this.tile = !1, this._size = "md", this._internals = this.attachInternals();
@@ -1804,37 +1810,37 @@ const A = (j = class extends u {
1804
1810
  }, j.VALID_SIZES = ["sm", "md"], j.styles = H1, j.formAssociated = !0, j);
1805
1811
  T([
1806
1812
  r({ type: String })
1807
- ], A.prototype, "id", 2);
1813
+ ], B.prototype, "id", 2);
1808
1814
  T([
1809
1815
  r({ type: String, reflect: !0 })
1810
- ], A.prototype, "name", 2);
1816
+ ], B.prototype, "name", 2);
1811
1817
  T([
1812
1818
  r({ type: Boolean, reflect: !0 })
1813
- ], A.prototype, "required", 2);
1819
+ ], B.prototype, "required", 2);
1814
1820
  T([
1815
1821
  r({ type: Boolean, reflect: !0 })
1816
- ], A.prototype, "optional", 2);
1822
+ ], B.prototype, "optional", 2);
1817
1823
  T([
1818
1824
  r({ type: Boolean, reflect: !0 })
1819
- ], A.prototype, "showError", 2);
1825
+ ], B.prototype, "showError", 2);
1820
1826
  T([
1821
1827
  r({ type: String })
1822
- ], A.prototype, "errorMessage", 2);
1828
+ ], B.prototype, "errorMessage", 2);
1823
1829
  T([
1824
1830
  r({ type: String })
1825
- ], A.prototype, "label", 2);
1831
+ ], B.prototype, "label", 2);
1826
1832
  T([
1827
1833
  r({ type: String })
1828
- ], A.prototype, "description", 2);
1834
+ ], B.prototype, "description", 2);
1829
1835
  T([
1830
1836
  r({ type: Boolean, reflect: !0 })
1831
- ], A.prototype, "tile", 2);
1837
+ ], B.prototype, "tile", 2);
1832
1838
  T([
1833
1839
  r({ reflect: !0 })
1834
- ], A.prototype, "size", 1);
1835
- let re = A;
1840
+ ], B.prototype, "size", 1);
1841
+ let re = B;
1836
1842
  customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup", re);
1837
- var ne = Object.defineProperty, ie = Object.getOwnPropertyDescriptor, V = (l, e, t, o) => {
1843
+ var ne = Object.defineProperty, ie = Object.getOwnPropertyDescriptor, D = (l, e, t, o) => {
1838
1844
  for (var s = o > 1 ? void 0 : o ? ie(e, t) : e, n = l.length - 1, i; n >= 0; n--)
1839
1845
  (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
1840
1846
  return o && s && ne(e, t, s), s;
@@ -1999,43 +2005,43 @@ const L = (G = class extends u {
1999
2005
  `;
2000
2006
  }
2001
2007
  }, G.VALID_SIZES = ["sm", "md"], G.styles = H1, G.formAssociated = !0, G);
2002
- V([
2008
+ D([
2003
2009
  r({ type: Boolean, reflect: !0 })
2004
2010
  ], L.prototype, "checked", 2);
2005
- V([
2011
+ D([
2006
2012
  r({ type: Boolean, reflect: !0 })
2007
2013
  ], L.prototype, "disabled", 2);
2008
- V([
2014
+ D([
2009
2015
  r({ type: Boolean, reflect: !0 })
2010
2016
  ], L.prototype, "required", 2);
2011
- V([
2017
+ D([
2012
2018
  r({ type: String })
2013
2019
  ], L.prototype, "label", 2);
2014
- V([
2020
+ D([
2015
2021
  r({ type: String })
2016
2022
  ], L.prototype, "description", 2);
2017
- V([
2023
+ D([
2018
2024
  r({ type: String })
2019
2025
  ], L.prototype, "id", 2);
2020
- V([
2026
+ D([
2021
2027
  r({ type: String, reflect: !0 })
2022
2028
  ], L.prototype, "name", 2);
2023
- V([
2029
+ D([
2024
2030
  r({ type: String })
2025
2031
  ], L.prototype, "value", 2);
2026
- V([
2032
+ D([
2027
2033
  r({ type: Boolean, reflect: !0 })
2028
2034
  ], L.prototype, "showError", 2);
2029
- V([
2035
+ D([
2030
2036
  r({ type: String })
2031
2037
  ], L.prototype, "errorMessage", 2);
2032
- V([
2038
+ D([
2033
2039
  r({ type: Boolean })
2034
2040
  ], L.prototype, "groupExist", 2);
2035
- V([
2041
+ D([
2036
2042
  r({ type: Boolean, reflect: !0 })
2037
2043
  ], L.prototype, "tile", 2);
2038
- V([
2044
+ D([
2039
2045
  r({ reflect: !0 })
2040
2046
  ], L.prototype, "size", 1);
2041
2047
  let le = L;
@@ -2388,7 +2394,7 @@ const ye = g`
2388
2394
  }
2389
2395
  }
2390
2396
  `;
2391
- var pe = Object.defineProperty, v1 = (l, e, t, o) => {
2397
+ var pe = Object.defineProperty, b1 = (l, e, t, o) => {
2392
2398
  for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
2393
2399
  (i = l[n]) && (s = i(e, t, s) || s);
2394
2400
  return s && pe(e, t, s), s;
@@ -2467,20 +2473,20 @@ const L1 = class L1 extends u {
2467
2473
  }
2468
2474
  };
2469
2475
  L1.styles = ue;
2470
- let o1 = L1;
2471
- v1([
2476
+ let r1 = L1;
2477
+ b1([
2472
2478
  r({ type: String })
2473
- ], o1.prototype, "filename");
2474
- v1([
2479
+ ], r1.prototype, "filename");
2480
+ b1([
2475
2481
  r({ type: String })
2476
- ], o1.prototype, "status");
2477
- v1([
2482
+ ], r1.prototype, "status");
2483
+ b1([
2478
2484
  r({ type: Number })
2479
- ], o1.prototype, "progress");
2480
- v1([
2485
+ ], r1.prototype, "progress");
2486
+ b1([
2481
2487
  r({ type: String })
2482
- ], o1.prototype, "errorMessage");
2483
- customElements.define("nys-fileitem", o1);
2488
+ ], r1.prototype, "errorMessage");
2489
+ customElements.define("nys-fileitem", r1);
2484
2490
  var ge = Object.defineProperty, M = (l, e, t, o) => {
2485
2491
  for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
2486
2492
  (i = l[n]) && (s = i(e, t, s) || s);
@@ -3459,7 +3465,7 @@ var be = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, h1 = (l, e
3459
3465
  (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
3460
3466
  return o && s && be(e, t, s), s;
3461
3467
  }, t1;
3462
- const n1 = (t1 = class extends u {
3468
+ const i1 = (t1 = class extends u {
3463
3469
  constructor() {
3464
3470
  super(...arguments), this.name = "", this.ariaLabel = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
3465
3471
  }
@@ -3501,23 +3507,23 @@ const n1 = (t1 = class extends u {
3501
3507
  ], t1);
3502
3508
  h1([
3503
3509
  r({ type: String, reflect: !0 })
3504
- ], n1.prototype, "name", 2);
3510
+ ], i1.prototype, "name", 2);
3505
3511
  h1([
3506
3512
  r({ type: String })
3507
- ], n1.prototype, "ariaLabel", 2);
3513
+ ], i1.prototype, "ariaLabel", 2);
3508
3514
  h1([
3509
3515
  r({ type: String })
3510
- ], n1.prototype, "rotate", 2);
3516
+ ], i1.prototype, "rotate", 2);
3511
3517
  h1([
3512
3518
  r({ type: String })
3513
- ], n1.prototype, "flip", 2);
3519
+ ], i1.prototype, "flip", 2);
3514
3520
  h1([
3515
3521
  r({ type: String })
3516
- ], n1.prototype, "color", 2);
3522
+ ], i1.prototype, "color", 2);
3517
3523
  h1([
3518
3524
  r({ reflect: !0 })
3519
- ], n1.prototype, "size", 1);
3520
- let me = n1;
3525
+ ], i1.prototype, "size", 1);
3526
+ let me = i1;
3521
3527
  customElements.get("nys-icon") || customElements.define("nys-icon", me);
3522
3528
  const xe = g`
3523
3529
  :host {
@@ -3593,7 +3599,7 @@ const xe = g`
3593
3599
  color: var(--nys-optional-font-color);
3594
3600
  }
3595
3601
  `;
3596
- var we = Object.defineProperty, b1 = (l, e, t, o) => {
3602
+ var we = Object.defineProperty, _1 = (l, e, t, o) => {
3597
3603
  for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
3598
3604
  (i = l[n]) && (s = i(e, t, s) || s);
3599
3605
  return s && we(e, t, s), s;
@@ -3618,20 +3624,20 @@ const $1 = class $1 extends u {
3618
3624
  }
3619
3625
  };
3620
3626
  $1.styles = xe;
3621
- let r1 = $1;
3622
- b1([
3627
+ let n1 = $1;
3628
+ _1([
3623
3629
  r({ type: String })
3624
- ], r1.prototype, "id");
3625
- b1([
3630
+ ], n1.prototype, "id");
3631
+ _1([
3626
3632
  r({ type: String })
3627
- ], r1.prototype, "label");
3628
- b1([
3633
+ ], n1.prototype, "label");
3634
+ _1([
3629
3635
  r({ type: String })
3630
- ], r1.prototype, "description");
3631
- b1([
3636
+ ], n1.prototype, "description");
3637
+ _1([
3632
3638
  r({ type: String })
3633
- ], r1.prototype, "flag");
3634
- customElements.get("nys-label") || customElements.define("nys-label", r1);
3639
+ ], n1.prototype, "flag");
3640
+ customElements.get("nys-label") || customElements.define("nys-label", n1);
3635
3641
  const Z1 = g`
3636
3642
  :host {
3637
3643
  /* Global Radiobutton Styles */
@@ -3985,7 +3991,7 @@ const Z1 = g`
3985
3991
  cursor: not-allowed;
3986
3992
  }
3987
3993
  `;
3988
- var ke = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, B = (l, e, t, o) => {
3994
+ var ke = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, q = (l, e, t, o) => {
3989
3995
  for (var s = o > 1 ? void 0 : o ? Le(e, t) : e, n = l.length - 1, i; n >= 0; n--)
3990
3996
  (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
3991
3997
  return o && s && ke(e, t, s), s;
@@ -4111,49 +4117,49 @@ const E = (Y = class extends u {
4111
4117
  </div>`;
4112
4118
  }
4113
4119
  }, Y.VALID_SIZES = ["sm", "md"], Y.styles = Z1, Y.formAssociated = !0, Y);
4114
- B([
4120
+ q([
4115
4121
  r({ type: String })
4116
4122
  ], E.prototype, "id", 2);
4117
- B([
4123
+ q([
4118
4124
  r({ type: String, reflect: !0 })
4119
4125
  ], E.prototype, "name", 2);
4120
- B([
4126
+ q([
4121
4127
  r({ type: Boolean, reflect: !0 })
4122
4128
  ], E.prototype, "required", 2);
4123
- B([
4129
+ q([
4124
4130
  r({ type: Boolean, reflect: !0 })
4125
4131
  ], E.prototype, "optional", 2);
4126
- B([
4132
+ q([
4127
4133
  r({ type: Boolean, reflect: !0 })
4128
4134
  ], E.prototype, "showError", 2);
4129
- B([
4135
+ q([
4130
4136
  r({ type: String })
4131
4137
  ], E.prototype, "errorMessage", 2);
4132
- B([
4138
+ q([
4133
4139
  r({ type: String })
4134
4140
  ], E.prototype, "label", 2);
4135
- B([
4141
+ q([
4136
4142
  r({ type: String })
4137
4143
  ], E.prototype, "description", 2);
4138
- B([
4139
- O()
4144
+ q([
4145
+ A()
4140
4146
  ], E.prototype, "selectedValue", 2);
4141
- B([
4147
+ q([
4142
4148
  r({ reflect: !0 })
4143
4149
  ], E.prototype, "size", 1);
4144
- B([
4150
+ q([
4145
4151
  r({ type: Boolean, reflect: !0 })
4146
4152
  ], E.prototype, "tile", 2);
4147
4153
  let Se = E;
4148
4154
  customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", Se);
4149
- var De = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, F = (l, e, t, o) => {
4150
- for (var s = o > 1 ? void 0 : o ? Ve(e, t) : e, n = l.length - 1, i; n >= 0; n--)
4155
+ var Ve = Object.defineProperty, De = Object.getOwnPropertyDescriptor, F = (l, e, t, o) => {
4156
+ for (var s = o > 1 ? void 0 : o ? De(e, t) : e, n = l.length - 1, i; n >= 0; n--)
4151
4157
  (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
4152
- return o && s && De(e, t, s), s;
4158
+ return o && s && Ve(e, t, s), s;
4153
4159
  };
4154
4160
  let Me = 0;
4155
4161
  var y;
4156
- const q = (y = class extends u {
4162
+ const U = (y = class extends u {
4157
4163
  constructor() {
4158
4164
  super(...arguments), this.checked = !1, this.disabled = !1, this.required = !1, this.label = "", this.description = "", this.id = "", this.name = "", this.value = "", this._size = "md", this.tile = !1;
4159
4165
  }
@@ -4254,35 +4260,35 @@ const q = (y = class extends u {
4254
4260
  }, y.VALID_SIZES = ["sm", "md"], y.buttonGroup = {}, y.styles = Z1, y);
4255
4261
  F([
4256
4262
  r({ type: Boolean, reflect: !0 })
4257
- ], q.prototype, "checked", 2);
4263
+ ], U.prototype, "checked", 2);
4258
4264
  F([
4259
4265
  r({ type: Boolean, reflect: !0 })
4260
- ], q.prototype, "disabled", 2);
4266
+ ], U.prototype, "disabled", 2);
4261
4267
  F([
4262
4268
  r({ type: Boolean, reflect: !0 })
4263
- ], q.prototype, "required", 2);
4269
+ ], U.prototype, "required", 2);
4264
4270
  F([
4265
4271
  r({ type: String })
4266
- ], q.prototype, "label", 2);
4272
+ ], U.prototype, "label", 2);
4267
4273
  F([
4268
4274
  r({ type: String })
4269
- ], q.prototype, "description", 2);
4275
+ ], U.prototype, "description", 2);
4270
4276
  F([
4271
4277
  r({ type: String })
4272
- ], q.prototype, "id", 2);
4278
+ ], U.prototype, "id", 2);
4273
4279
  F([
4274
4280
  r({ type: String, reflect: !0 })
4275
- ], q.prototype, "name", 2);
4281
+ ], U.prototype, "name", 2);
4276
4282
  F([
4277
4283
  r({ type: String })
4278
- ], q.prototype, "value", 2);
4284
+ ], U.prototype, "value", 2);
4279
4285
  F([
4280
4286
  r({ reflect: !0 })
4281
- ], q.prototype, "size", 1);
4287
+ ], U.prototype, "size", 1);
4282
4288
  F([
4283
4289
  r({ type: Boolean, reflect: !0 })
4284
- ], q.prototype, "tile", 2);
4285
- let ze = q;
4290
+ ], U.prototype, "tile", 2);
4291
+ let ze = U;
4286
4292
  customElements.get("nys-radiobutton") || customElements.define("nys-radiobutton", ze);
4287
4293
  const Ee = g`
4288
4294
  :host {
@@ -4437,7 +4443,7 @@ var He = Object.defineProperty, p1 = (l, e, t, o) => {
4437
4443
  (i = l[n]) && (s = i(e, t, s) || s);
4438
4444
  return s && He(e, t, s), s;
4439
4445
  };
4440
- class i1 extends u {
4446
+ class a1 extends u {
4441
4447
  constructor() {
4442
4448
  super(...arguments), this.disabled = !1, this.selected = !1, this.value = "", this.label = "", this.hidden = !1;
4443
4449
  }
@@ -4466,20 +4472,20 @@ class i1 extends u {
4466
4472
  }
4467
4473
  p1([
4468
4474
  r({ type: Boolean, reflect: !0 })
4469
- ], i1.prototype, "disabled");
4475
+ ], a1.prototype, "disabled");
4470
4476
  p1([
4471
4477
  r({ type: Boolean, reflect: !0 })
4472
- ], i1.prototype, "selected");
4478
+ ], a1.prototype, "selected");
4473
4479
  p1([
4474
4480
  r({ type: String })
4475
- ], i1.prototype, "value");
4481
+ ], a1.prototype, "value");
4476
4482
  p1([
4477
4483
  r({ type: String })
4478
- ], i1.prototype, "label");
4484
+ ], a1.prototype, "label");
4479
4485
  p1([
4480
4486
  r({ type: Boolean, reflect: !0 })
4481
- ], i1.prototype, "hidden");
4482
- customElements.define("nys-option", i1);
4487
+ ], a1.prototype, "hidden");
4488
+ customElements.define("nys-option", a1);
4483
4489
  var Ze = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, H = (l, e, t, o) => {
4484
4490
  for (var s = o > 1 ? void 0 : o ? Ie(e, t) : e, n = l.length - 1, i; n >= 0; n--)
4485
4491
  (i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
@@ -4522,7 +4528,7 @@ const z = (W = class extends u {
4522
4528
  if (!e || !t) return;
4523
4529
  t.querySelectorAll("option:not([hidden])").forEach((i) => i.remove()), e.assignedElements({ flatten: !0 }).forEach((i) => {
4524
4530
  var c;
4525
- if (i instanceof i1) {
4531
+ if (i instanceof a1) {
4526
4532
  const d = document.createElement("option");
4527
4533
  d.value = i.value, d.textContent = i.label || ((c = i.textContent) == null ? void 0 : c.trim()) || "", d.disabled = i.disabled, d.selected = i.selected, t.appendChild(d);
4528
4534
  }
@@ -5297,8 +5303,7 @@ const Ne = g`
5297
5303
 
5298
5304
  .nys-textinput__buttoncontainer {
5299
5305
  width: var(--_nys-textinput-width);
5300
- min-width: var(--_nys-textinput-width);
5301
- max-width: var(--_nys-textinput-width);
5306
+ max-width: 100%;
5302
5307
  display: flex;
5303
5308
  }
5304
5309
 
@@ -5653,7 +5658,7 @@ C([
5653
5658
  r({ type: String })
5654
5659
  ], p.prototype, "errorMessage", 2);
5655
5660
  C([
5656
- O()
5661
+ A()
5657
5662
  ], p.prototype, "showPassword", 2);
5658
5663
  let We = p;
5659
5664
  customElements.get("nys-textinput") || customElements.define("nys-textinput", We);
@@ -5941,7 +5946,7 @@ var Xe = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, N = (l, e,
5941
5946
  };
5942
5947
  let Je = 0;
5943
5948
  var K;
5944
- const U = (K = class extends u {
5949
+ const P = (K = class extends u {
5945
5950
  // allows use of elementInternals' API
5946
5951
  constructor() {
5947
5952
  super(), this.id = "", this.name = "", this.value = "", this.checked = !1, this.disabled = !1, this.noIcon = !1, this.label = "", this.description = "", this._size = "md", this.form = "", this._internals = this.attachInternals();
@@ -6030,35 +6035,35 @@ const U = (K = class extends u {
6030
6035
  }, K.VALID_SIZES = ["sm", "md"], K.styles = Ke, K.formAssociated = !0, K);
6031
6036
  N([
6032
6037
  r({ type: String })
6033
- ], U.prototype, "id", 2);
6038
+ ], P.prototype, "id", 2);
6034
6039
  N([
6035
6040
  r({ type: String, reflect: !0 })
6036
- ], U.prototype, "name", 2);
6041
+ ], P.prototype, "name", 2);
6037
6042
  N([
6038
6043
  r({ type: String })
6039
- ], U.prototype, "value", 2);
6044
+ ], P.prototype, "value", 2);
6040
6045
  N([
6041
6046
  r({ type: Boolean, reflect: !0 })
6042
- ], U.prototype, "checked", 2);
6047
+ ], P.prototype, "checked", 2);
6043
6048
  N([
6044
6049
  r({ type: Boolean, reflect: !0 })
6045
- ], U.prototype, "disabled", 2);
6050
+ ], P.prototype, "disabled", 2);
6046
6051
  N([
6047
6052
  r({ type: Boolean })
6048
- ], U.prototype, "noIcon", 2);
6053
+ ], P.prototype, "noIcon", 2);
6049
6054
  N([
6050
6055
  r({ type: String })
6051
- ], U.prototype, "label", 2);
6056
+ ], P.prototype, "label", 2);
6052
6057
  N([
6053
6058
  r({ type: String })
6054
- ], U.prototype, "description", 2);
6059
+ ], P.prototype, "description", 2);
6055
6060
  N([
6056
6061
  r({ reflect: !0 })
6057
- ], U.prototype, "size", 1);
6062
+ ], P.prototype, "size", 1);
6058
6063
  N([
6059
6064
  r({ type: String })
6060
- ], U.prototype, "form", 2);
6061
- let et = U;
6065
+ ], P.prototype, "form", 2);
6066
+ let et = P;
6062
6067
  customElements.get("nys-toggle") || customElements.define("nys-toggle", et);
6063
6068
  const tt = g`
6064
6069
  :host {
@@ -6223,7 +6228,7 @@ var st = Object.defineProperty, ot = Object.getOwnPropertyDescriptor, y1 = (l, e
6223
6228
  return o && s && st(e, t, s), s;
6224
6229
  };
6225
6230
  let rt = 0;
6226
- const D1 = class D1 extends u {
6231
+ const V1 = class V1 extends u {
6227
6232
  /**************** Lifecycle Methods ****************/
6228
6233
  constructor() {
6229
6234
  super(), this.id = "", this.text = "", this.inverted = !1, this.focusable = !1, this._active = !1, this._userHasSetPosition = !1, this._originalUserPosition = null, this._internallyUpdatingPosition = !1, this._position = null, this._handleTooltipEnter = () => {
@@ -6423,8 +6428,8 @@ const D1 = class D1 extends u {
6423
6428
  `;
6424
6429
  }
6425
6430
  };
6426
- D1.styles = tt;
6427
- let X = D1;
6431
+ V1.styles = tt;
6432
+ let X = V1;
6428
6433
  y1([
6429
6434
  r({ type: String })
6430
6435
  ], X.prototype, "id", 2);
@@ -6438,7 +6443,7 @@ y1([
6438
6443
  r({ type: Boolean, reflect: !0 })
6439
6444
  ], X.prototype, "focusable", 2);
6440
6445
  y1([
6441
- O()
6446
+ A()
6442
6447
  ], X.prototype, "_active", 2);
6443
6448
  y1([
6444
6449
  r({ type: String, reflect: !0 })
@@ -6491,7 +6496,6 @@ const nt = g`
6491
6496
 
6492
6497
  .nys-unavheader__mainwrapper {
6493
6498
  background-color: var(--_nys-unavheader-bg-color);
6494
- padding: var(--nys-space-100, 8px) var(--_nys-unavheader-gutter);
6495
6499
  display: flex;
6496
6500
  justify-content: center;
6497
6501
  }
@@ -6529,6 +6533,7 @@ const nt = g`
6529
6533
 
6530
6534
  .nys-unavheader__maincontent {
6531
6535
  display: flex;
6536
+ flex-wrap: wrap;
6532
6537
  flex: 1;
6533
6538
  justify-content: space-between;
6534
6539
  align-items: center;
@@ -6562,6 +6567,22 @@ const nt = g`
6562
6567
  display: flex;
6563
6568
  align-items: center;
6564
6569
  gap: var(--nys-space-300, 24px);
6570
+ padding-top: var(--nys-space-100, 8px);
6571
+ padding-bottom: var(--nys-space-100, 8px);
6572
+ }
6573
+
6574
+ .nys-unavheader__left {
6575
+ order: 2;
6576
+ padding-left: var(--_nys-unavheader-gutter);
6577
+ }
6578
+ .nys-unavheader__right {
6579
+ order: 3;
6580
+ padding-right: var(--_nys-unavheader-gutter);
6581
+ }
6582
+
6583
+ .nys-unavheader__trustbarwrapper {
6584
+ order: 1;
6585
+ width: 100%;
6565
6586
  }
6566
6587
 
6567
6588
  #nys-unavheader__translate,
@@ -6744,7 +6765,7 @@ const nt = g`
6744
6765
  display: contents;
6745
6766
  }
6746
6767
  .nys-unavheader__trustbarwrapper {
6747
- order: 999;
6768
+ order: 4;
6748
6769
  }
6749
6770
  .nys-unavheader__toptrustbar {
6750
6771
  display: none;
@@ -6766,7 +6787,7 @@ const nt = g`
6766
6787
  display: contents;
6767
6788
  }
6768
6789
  .nys-unavheader__trustbarwrapper {
6769
- order: 999;
6790
+ order: 4;
6770
6791
  }
6771
6792
  .nys-unavheader__toptrustbar {
6772
6793
  display: none;
@@ -6785,7 +6806,7 @@ const nt = g`
6785
6806
  display: contents;
6786
6807
  }
6787
6808
  .nys-unavheader__trustbarwrapper {
6788
- order: 999;
6809
+ order: 4;
6789
6810
  }
6790
6811
  .nys-unavheader__toptrustbar {
6791
6812
  display: none;
@@ -6808,12 +6829,12 @@ const nt = g`
6808
6829
  <path d="M67.6348 51.8019C67.6348 51.8019 67.6173 51.782 67.6173 51.7303C67.6173 51.6787 67.6348 51.6588 67.6348 51.6588H68.5564C68.5564 51.6588 68.5749 51.6806 68.5749 51.7303C68.5749 51.78 68.5564 51.8019 68.5564 51.8019H68.1932V52.9205C68.1932 52.9205 68.1659 52.9404 68.0976 52.9404C68.0292 52.9404 67.998 52.9205 67.998 52.9205V51.8019H67.6348Z" fill="#154973"/>
6809
6830
  <path d="M69.4282 52.8659C69.4135 52.8748 69.3891 52.8858 69.3471 52.8858C69.3178 52.8858 69.2837 52.8798 69.27 52.8659L68.9889 52.1476C68.9723 52.1088 68.9459 52.0323 68.944 52.0214C68.944 52.0264 68.9371 52.1277 68.9332 52.1565L68.8815 52.9205C68.8815 52.9205 68.8561 52.9404 68.7858 52.9404C68.7155 52.9404 68.6862 52.9205 68.6862 52.9205L68.7839 51.6787C68.7839 51.6787 68.8112 51.6588 68.8776 51.6588C68.9518 51.6588 68.9781 51.6787 68.9781 51.6787L69.3042 52.5162L69.3471 52.6533C69.3481 52.6473 69.3774 52.5559 69.392 52.5162L69.7181 51.6787C69.7181 51.6787 69.7464 51.6588 69.8206 51.6588C69.886 51.6588 69.9124 51.6787 69.9124 51.6787L70.01 52.9205C70.01 52.9205 69.9807 52.9404 69.9104 52.9404C69.8401 52.9404 69.8167 52.9205 69.8167 52.9205L69.763 52.1546L69.7523 52.0194C69.7523 52.0194 69.722 52.1148 69.7093 52.1456L69.4282 52.8659Z" fill="#154973"/>
6810
6831
  </svg>`;
6811
- var at = Object.defineProperty, a1 = (l, e, t, o) => {
6832
+ var at = Object.defineProperty, l1 = (l, e, t, o) => {
6812
6833
  for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
6813
6834
  (i = l[n]) && (s = i(e, t, s) || s);
6814
6835
  return s && at(e, t, s), s;
6815
6836
  };
6816
- const V1 = class V1 extends u {
6837
+ const D1 = class D1 extends u {
6817
6838
  constructor() {
6818
6839
  super(...arguments), this.trustbarVisible = !1, this.searchDropdownVisible = !1, this.languageVisible = !1, this.isSearchFocused = !1, this.hideTranslate = !1, this.hideSearch = !1, this.languages = [
6819
6840
  ["English", ""],
@@ -6876,68 +6897,6 @@ const V1 = class V1 extends u {
6876
6897
  render() {
6877
6898
  return a`
6878
6899
  <header class="nys-unavheader">
6879
- <div class="nys-unavheader__trustbarwrapper">
6880
- <div
6881
- class="nys-unavheader__toptrustbar"
6882
- @click="${this._toggleTrustbar}"
6883
- @keydown="${(e) => {
6884
- (e.code === "Enter" || e.code === "Space" || e.key === "Enter" || e.key === " ") && this._toggleTrustbar();
6885
- }}"
6886
- >
6887
- <div class="nys-unavheader__officialmessage">
6888
- <label id="nys-unavheader__official"
6889
- >An official website of New York State</label
6890
- >
6891
- <nys-button
6892
- id="nys-unavheader__know"
6893
- label="Here's how you know"
6894
- ariaLabel=${this.trustbarVisible ? "Here's how you know expanded" : "Here's how you know collapsed"}
6895
- variant="ghost"
6896
- size="sm"
6897
- suffixIcon="slotted"
6898
- >
6899
- <nys-icon
6900
- slot="suffix-icon"
6901
- size="12"
6902
- name=${this.trustbarVisible ? "chevron_up" : "chevron_down"}
6903
- ></nys-icon>
6904
- </nys-button>
6905
- </div>
6906
- </div>
6907
- <div
6908
- class="nys-unavheader__trustbar ${this.trustbarVisible ? "show" : "hide"}"
6909
- >
6910
- <div class="nys-unavheader__trustcontent">
6911
- <div class="nys-unavheader__trustcontentmessage">
6912
- <nys-icon size="3xl" name="account_balance_filled"></nys-icon>
6913
- <label><b>Official websites use ny.gov</b></label>
6914
- <label
6915
- >A <b>ny.gov</b> website belongs to an official New York State
6916
- government organization.</label
6917
- >
6918
- </div>
6919
- <div class="nys-unavheader__trustcontentmessage">
6920
- <nys-icon size="3xl" name="lock_filled"></nys-icon>
6921
- <label><b>Secure ny.gov websites use HTTPS</b></label>
6922
- <label
6923
- >A <b>lock icon</b> or <b>https://</b> means you've safely
6924
- connected to the ny.gov website. Share sensitive information
6925
- only on official, secure websites.</label
6926
- >
6927
- </div>
6928
- </div>
6929
- <nys-button
6930
- id="nys-unavheader__closetrustbar"
6931
- class="nys-unavheader__iconbutton"
6932
- variant="ghost"
6933
- circle
6934
- icon="close"
6935
- size="sm"
6936
- ariaLabel="Close this notice"
6937
- .onClick="${() => this._toggleTrustbar()}"
6938
- ></nys-button>
6939
- </div>
6940
- </div>
6941
6900
  <div class="nys-unavheader__mainwrapper" id="nys-universal-navigation">
6942
6901
  <div class="nys-unavheader__maincontent">
6943
6902
  <div class="nys-unavheader__left">
@@ -6973,6 +6932,71 @@ const V1 = class V1 extends u {
6973
6932
  </div>
6974
6933
  </div>
6975
6934
  </div>
6935
+ <div class="nys-unavheader__trustbarwrapper">
6936
+ <div
6937
+ class="nys-unavheader__toptrustbar"
6938
+ @click="${this._toggleTrustbar}"
6939
+ @keydown="${(e) => {
6940
+ (e.code === "Enter" || e.code === "Space" || e.key === "Enter" || e.key === " ") && this._toggleTrustbar();
6941
+ }}"
6942
+ >
6943
+ <div class="nys-unavheader__officialmessage">
6944
+ <label id="nys-unavheader__official"
6945
+ >An official website of New York State</label
6946
+ >
6947
+ <nys-button
6948
+ id="nys-unavheader__know"
6949
+ label="Here's how you know"
6950
+ ariaLabel=${this.trustbarVisible ? "Here's how you know expanded" : "Here's how you know collapsed"}
6951
+ variant="ghost"
6952
+ size="sm"
6953
+ suffixIcon="slotted"
6954
+ >
6955
+ <nys-icon
6956
+ slot="suffix-icon"
6957
+ size="12"
6958
+ name=${this.trustbarVisible ? "chevron_up" : "chevron_down"}
6959
+ ></nys-icon>
6960
+ </nys-button>
6961
+ </div>
6962
+ </div>
6963
+ <div
6964
+ class="nys-unavheader__trustbar ${this.trustbarVisible ? "show" : "hide"}"
6965
+ >
6966
+ <div class="nys-unavheader__trustcontent">
6967
+ <div class="nys-unavheader__trustcontentmessage">
6968
+ <nys-icon
6969
+ size="3xl"
6970
+ name="account_balance_filled"
6971
+ ></nys-icon>
6972
+ <label><b>Official websites use ny.gov</b></label>
6973
+ <label
6974
+ >A <b>ny.gov</b> website belongs to an official New York
6975
+ State government organization.</label
6976
+ >
6977
+ </div>
6978
+ <div class="nys-unavheader__trustcontentmessage">
6979
+ <nys-icon size="3xl" name="lock_filled"></nys-icon>
6980
+ <label><b>Secure ny.gov websites use HTTPS</b></label>
6981
+ <label
6982
+ >A <b>lock icon</b> or <b>https://</b> means you've safely
6983
+ connected to the ny.gov website. Share sensitive
6984
+ information only on official, secure websites.</label
6985
+ >
6986
+ </div>
6987
+ </div>
6988
+ <nys-button
6989
+ id="nys-unavheader__closetrustbar"
6990
+ class="nys-unavheader__iconbutton"
6991
+ variant="ghost"
6992
+ circle
6993
+ icon="close"
6994
+ size="sm"
6995
+ ariaLabel="Close this notice"
6996
+ .onClick="${() => this._toggleTrustbar()}"
6997
+ ></nys-button>
6998
+ </div>
6999
+ </div>
6976
7000
  <div class="nys-unavheader__right">
6977
7001
  ${this.hideTranslate ? null : a`<div class="nys-unavheader__translatewrapper">
6978
7002
  <div
@@ -6998,6 +7022,7 @@ const V1 = class V1 extends u {
6998
7022
  <nys-button
6999
7023
  variant="ghost"
7000
7024
  label="Translate"
7025
+ size="sm"
7001
7026
  prefixIcon="language_filled"
7002
7027
  suffixIcon=${this.languageVisible ? "chevron_up" : "chevron_down"}
7003
7028
  ariaLabel=${this.languageVisible ? "Translate expanded" : "Translate collapsed"}
@@ -7090,30 +7115,30 @@ const V1 = class V1 extends u {
7090
7115
  `;
7091
7116
  }
7092
7117
  };
7093
- V1.styles = nt;
7094
- let P = V1;
7095
- a1([
7118
+ D1.styles = nt;
7119
+ let O = D1;
7120
+ l1([
7096
7121
  r({ type: Boolean })
7097
- ], P.prototype, "trustbarVisible");
7098
- a1([
7122
+ ], O.prototype, "trustbarVisible");
7123
+ l1([
7099
7124
  r({ type: Boolean })
7100
- ], P.prototype, "searchDropdownVisible");
7101
- a1([
7125
+ ], O.prototype, "searchDropdownVisible");
7126
+ l1([
7102
7127
  r({ type: Boolean })
7103
- ], P.prototype, "languageVisible");
7104
- a1([
7128
+ ], O.prototype, "languageVisible");
7129
+ l1([
7105
7130
  r({ type: Boolean })
7106
- ], P.prototype, "isSearchFocused");
7107
- a1([
7131
+ ], O.prototype, "isSearchFocused");
7132
+ l1([
7108
7133
  r({ type: Boolean })
7109
- ], P.prototype, "hideTranslate");
7110
- a1([
7134
+ ], O.prototype, "hideTranslate");
7135
+ l1([
7111
7136
  r({ type: Boolean })
7112
- ], P.prototype, "hideSearch");
7113
- a1([
7137
+ ], O.prototype, "hideSearch");
7138
+ l1([
7114
7139
  r({ type: String, reflect: !0 })
7115
- ], P.prototype, "languages");
7116
- customElements.get("nys-unavheader") || customElements.define("nys-unavheader", P);
7140
+ ], O.prototype, "languages");
7141
+ customElements.get("nys-unavheader") || customElements.define("nys-unavheader", O);
7117
7142
  const lt = g`
7118
7143
  :host {
7119
7144
  /* Global Header Styles */
@@ -7511,10 +7536,10 @@ g1([
7511
7536
  r({ type: String })
7512
7537
  ], s1.prototype, "homepageLink");
7513
7538
  g1([
7514
- O()
7539
+ A()
7515
7540
  ], s1.prototype, "slotHasContent");
7516
7541
  g1([
7517
- O()
7542
+ A()
7518
7543
  ], s1.prototype, "isMobileMenuOpen");
7519
7544
  customElements.get("nys-globalheader") || customElements.define("nys-globalheader", s1);
7520
7545
  const dt = g`
@@ -7738,7 +7763,7 @@ w1([
7738
7763
  r({ type: String })
7739
7764
  ], d1.prototype, "homepageLink");
7740
7765
  w1([
7741
- O()
7766
+ A()
7742
7767
  ], d1.prototype, "slotHasContent");
7743
7768
  customElements.get("nys-globalfooter") || customElements.define("nys-globalfooter", d1);
7744
7769
  const yt = g`
@@ -7951,12 +7976,12 @@ const yt = g`
7951
7976
  }
7952
7977
  };
7953
7978
  E1.styles = yt;
7954
- let _1 = E1;
7955
- customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter", _1);
7979
+ let m1 = E1;
7980
+ customElements.get("nys-unavfooter") || customElements.define("nys-unavfooter", m1);
7956
7981
  export {
7957
7982
  R1 as NysAlert,
7958
7983
  G1 as NysAvatar,
7959
- l1 as NysBacktotop,
7984
+ o1 as NysBacktotop,
7960
7985
  ee as NysButton,
7961
7986
  le as NysCheckbox,
7962
7987
  re as NysCheckboxgroup,
@@ -7965,8 +7990,8 @@ export {
7965
7990
  d1 as NysGlobalFooter,
7966
7991
  s1 as NysGlobalHeader,
7967
7992
  me as NysIcon,
7968
- r1 as NysLabel,
7969
- i1 as NysOption,
7993
+ n1 as NysLabel,
7994
+ a1 as NysOption,
7970
7995
  ze as NysRadiobutton,
7971
7996
  Se as NysRadiogroup,
7972
7997
  Be as NysSelect,
@@ -7975,7 +8000,7 @@ export {
7975
8000
  We as NysTextinput,
7976
8001
  et as NysToggle,
7977
8002
  X as NysTooltip,
7978
- _1 as NysUnavFooter,
7979
- P as NysUnavHeader
8003
+ m1 as NysUnavFooter,
8004
+ O as NysUnavHeader
7980
8005
  };
7981
8006
  //# sourceMappingURL=nysds.es.js.map