@nysds/nys-icon 1.10.1 → 1.11.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.
package/dist/nys-icon.js CHANGED
@@ -1,4 +1,4 @@
1
- import { css as D, LitElement as Z, html as V } from "lit";
1
+ import { css as x, LitElement as D, html as Z } from "lit";
2
2
  /*!
3
3
  * ▒█▄░▒█ ▒█░░▒█ ▒█▀▀▀█ ▒█▀▀▄ ▒█▀▀▀█
4
4
  * ▒█▒█▒█ ▒█▄▄▄█ ░▀▀▀▄▄ ▒█░▒█ ░▀▀▀▄▄
@@ -14,18 +14,18 @@ import { css as D, LitElement as Z, html as V } from "lit";
14
14
  * Copyright 2019 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
- const d = globalThis, y = d.ShadowRoot && (d.ShadyCSS === void 0 || d.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, x = Symbol(), u = /* @__PURE__ */ new WeakMap();
18
- let H = class {
17
+ const w = globalThis, v = w.ShadowRoot && (w.ShadyCSS === void 0 || w.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, M = Symbol(), _ = /* @__PURE__ */ new WeakMap();
18
+ let V = class {
19
19
  constructor(C, t, s) {
20
- if (this._$cssResult$ = !0, s !== x) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
20
+ if (this._$cssResult$ = !0, s !== M) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
21
21
  this.cssText = C, this.t = t;
22
22
  }
23
23
  get styleSheet() {
24
24
  let C = this.o;
25
25
  const t = this.t;
26
- if (y && C === void 0) {
26
+ if (v && C === void 0) {
27
27
  const s = t !== void 0 && t.length === 1;
28
- s && (C = u.get(t)), C === void 0 && ((this.o = C = new CSSStyleSheet()).replaceSync(this.cssText), s && u.set(t, C));
28
+ s && (C = _.get(t)), C === void 0 && ((this.o = C = new CSSStyleSheet()).replaceSync(this.cssText), s && _.set(t, C));
29
29
  }
30
30
  return C;
31
31
  }
@@ -33,26 +33,26 @@ let H = class {
33
33
  return this.cssText;
34
34
  }
35
35
  };
36
- const U = (i) => new H(typeof i == "string" ? i : i + "", void 0, x), S = (i, C) => {
37
- if (y) i.adoptedStyleSheets = C.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
36
+ const H = (i) => new V(typeof i == "string" ? i : i + "", void 0, M), U = (i, C) => {
37
+ if (v) i.adoptedStyleSheets = C.map(((t) => t instanceof CSSStyleSheet ? t : t.styleSheet));
38
38
  else for (const t of C) {
39
- const s = document.createElement("style"), e = d.litNonce;
39
+ const s = document.createElement("style"), e = w.litNonce;
40
40
  e !== void 0 && s.setAttribute("nonce", e), s.textContent = t.cssText, i.appendChild(s);
41
41
  }
42
- }, f = y ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((C) => {
42
+ }, u = v ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((C) => {
43
43
  let t = "";
44
44
  for (const s of C.cssRules) t += s.cssText;
45
- return U(t);
45
+ return H(t);
46
46
  })(i) : i;
47
47
  /**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
51
  */
52
- const { is: O, defineProperty: b, getOwnPropertyDescriptor: B, getOwnPropertyNames: $, getOwnPropertySymbols: E, getPrototypeOf: P } = Object, h = globalThis, L = h.trustedTypes, z = L ? L.emptyScript : "", v = h.reactiveElementPolyfillSupport, w = (i, C) => i, p = { toAttribute(i, C) {
52
+ const { is: S, defineProperty: O, getOwnPropertyDescriptor: b, getOwnPropertyNames: $, getOwnPropertySymbols: E, getPrototypeOf: B } = Object, p = globalThis, f = p.trustedTypes, P = f ? f.emptyScript : "", z = p.reactiveElementPolyfillSupport, m = (i, C) => i, d = { toAttribute(i, C) {
53
53
  switch (C) {
54
54
  case Boolean:
55
- i = i ? z : null;
55
+ i = i ? P : null;
56
56
  break;
57
57
  case Object:
58
58
  case Array:
@@ -77,45 +77,43 @@ const { is: O, defineProperty: b, getOwnPropertyDescriptor: B, getOwnPropertyNam
77
77
  }
78
78
  }
79
79
  return t;
80
- } }, _ = (i, C) => !O(i, C), M = { attribute: !0, type: String, converter: p, reflect: !1, hasChanged: _ };
81
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), h.litPropertyMetadata ?? (h.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
82
- class m extends HTMLElement {
80
+ } }, y = (i, C) => !S(i, C), L = { attribute: !0, type: String, converter: d, reflect: !1, useDefault: !1, hasChanged: y };
81
+ Symbol.metadata ??= Symbol("metadata"), p.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
82
+ class g extends HTMLElement {
83
83
  static addInitializer(C) {
84
- this._$Ei(), (this.l ?? (this.l = [])).push(C);
84
+ this._$Ei(), (this.l ??= []).push(C);
85
85
  }
86
86
  static get observedAttributes() {
87
87
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
88
88
  }
89
- static createProperty(C, t = M) {
90
- if (t.state && (t.attribute = !1), this._$Ei(), this.elementProperties.set(C, t), !t.noAccessor) {
89
+ static createProperty(C, t = L) {
90
+ if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(C) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(C, t), !t.noAccessor) {
91
91
  const s = Symbol(), e = this.getPropertyDescriptor(C, s, t);
92
- e !== void 0 && b(this.prototype, C, e);
92
+ e !== void 0 && O(this.prototype, C, e);
93
93
  }
94
94
  }
95
95
  static getPropertyDescriptor(C, t, s) {
96
- const { get: e, set: l } = B(this.prototype, C) ?? { get() {
96
+ const { get: e, set: a } = b(this.prototype, C) ?? { get() {
97
97
  return this[t];
98
- }, set(a) {
99
- this[t] = a;
98
+ }, set(l) {
99
+ this[t] = l;
100
100
  } };
101
- return { get() {
102
- return e == null ? void 0 : e.call(this);
103
- }, set(a) {
104
- const r = e == null ? void 0 : e.call(this);
105
- l.call(this, a), this.requestUpdate(C, r, s);
101
+ return { get: e, set(l) {
102
+ const r = e?.call(this);
103
+ a?.call(this, l), this.requestUpdate(C, r, s);
106
104
  }, configurable: !0, enumerable: !0 };
107
105
  }
108
106
  static getPropertyOptions(C) {
109
- return this.elementProperties.get(C) ?? M;
107
+ return this.elementProperties.get(C) ?? L;
110
108
  }
111
109
  static _$Ei() {
112
- if (this.hasOwnProperty(w("elementProperties"))) return;
113
- const C = P(this);
110
+ if (this.hasOwnProperty(m("elementProperties"))) return;
111
+ const C = B(this);
114
112
  C.finalize(), C.l !== void 0 && (this.l = [...C.l]), this.elementProperties = new Map(C.elementProperties);
115
113
  }
116
114
  static finalize() {
117
- if (this.hasOwnProperty(w("finalized"))) return;
118
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(w("properties"))) {
115
+ if (this.hasOwnProperty(m("finalized"))) return;
116
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(m("properties"))) {
119
117
  const t = this.properties, s = [...$(t), ...E(t)];
120
118
  for (const e of s) this.createProperty(e, t[e]);
121
119
  }
@@ -135,8 +133,8 @@ class m extends HTMLElement {
135
133
  const t = [];
136
134
  if (Array.isArray(C)) {
137
135
  const s = new Set(C.flat(1 / 0).reverse());
138
- for (const e of s) t.unshift(f(e));
139
- } else C !== void 0 && t.push(f(C));
136
+ for (const e of s) t.unshift(u(e));
137
+ } else C !== void 0 && t.push(u(C));
140
138
  return t;
141
139
  }
142
140
  static _$Eu(C, t) {
@@ -147,16 +145,13 @@ class m extends HTMLElement {
147
145
  super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
148
146
  }
149
147
  _$Ev() {
150
- var C;
151
- this._$ES = new Promise((t) => this.enableUpdating = t), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (C = this.constructor.l) == null || C.forEach((t) => t(this));
148
+ this._$ES = new Promise(((C) => this.enableUpdating = C)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((C) => C(this)));
152
149
  }
153
150
  addController(C) {
154
- var t;
155
- (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(C), this.renderRoot !== void 0 && this.isConnected && ((t = C.hostConnected) == null || t.call(C));
151
+ (this._$EO ??= /* @__PURE__ */ new Set()).add(C), this.renderRoot !== void 0 && this.isConnected && C.hostConnected?.();
156
152
  }
157
153
  removeController(C) {
158
- var t;
159
- (t = this._$EO) == null || t.delete(C);
154
+ this._$EO?.delete(C);
160
155
  }
161
156
  _$E_() {
162
157
  const C = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
@@ -165,54 +160,47 @@ class m extends HTMLElement {
165
160
  }
166
161
  createRenderRoot() {
167
162
  const C = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
168
- return S(C, this.constructor.elementStyles), C;
163
+ return U(C, this.constructor.elementStyles), C;
169
164
  }
170
165
  connectedCallback() {
171
- var C;
172
- this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (C = this._$EO) == null || C.forEach((t) => {
173
- var s;
174
- return (s = t.hostConnected) == null ? void 0 : s.call(t);
175
- });
166
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((C) => C.hostConnected?.()));
176
167
  }
177
168
  enableUpdating(C) {
178
169
  }
179
170
  disconnectedCallback() {
180
- var C;
181
- (C = this._$EO) == null || C.forEach((t) => {
182
- var s;
183
- return (s = t.hostDisconnected) == null ? void 0 : s.call(t);
184
- });
171
+ this._$EO?.forEach(((C) => C.hostDisconnected?.()));
185
172
  }
186
173
  attributeChangedCallback(C, t, s) {
187
174
  this._$AK(C, s);
188
175
  }
189
- _$EC(C, t) {
190
- var l;
176
+ _$ET(C, t) {
191
177
  const s = this.constructor.elementProperties.get(C), e = this.constructor._$Eu(C, s);
192
178
  if (e !== void 0 && s.reflect === !0) {
193
- const a = (((l = s.converter) == null ? void 0 : l.toAttribute) !== void 0 ? s.converter : p).toAttribute(t, s.type);
179
+ const a = (s.converter?.toAttribute !== void 0 ? s.converter : d).toAttribute(t, s.type);
194
180
  this._$Em = C, a == null ? this.removeAttribute(e) : this.setAttribute(e, a), this._$Em = null;
195
181
  }
196
182
  }
197
183
  _$AK(C, t) {
198
- var l;
199
184
  const s = this.constructor, e = s._$Eh.get(C);
200
185
  if (e !== void 0 && this._$Em !== e) {
201
- const a = s.getPropertyOptions(e), r = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((l = a.converter) == null ? void 0 : l.fromAttribute) !== void 0 ? a.converter : p;
202
- this._$Em = e, this[e] = r.fromAttribute(t, a.type), this._$Em = null;
186
+ const a = s.getPropertyOptions(e), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : a.converter?.fromAttribute !== void 0 ? a.converter : d;
187
+ this._$Em = e;
188
+ const r = l.fromAttribute(t, a.type);
189
+ this[e] = r ?? this._$Ej?.get(e) ?? r, this._$Em = null;
203
190
  }
204
191
  }
205
192
  requestUpdate(C, t, s) {
206
193
  if (C !== void 0) {
207
- if (s ?? (s = this.constructor.getPropertyOptions(C)), !(s.hasChanged ?? _)(this[C], t)) return;
208
- this.P(C, t, s);
194
+ const e = this.constructor, a = this[C];
195
+ if (s ??= e.getPropertyOptions(C), !((s.hasChanged ?? y)(a, t) || s.useDefault && s.reflect && a === this._$Ej?.get(C) && !this.hasAttribute(e._$Eu(C, s)))) return;
196
+ this.C(C, t, s);
209
197
  }
210
- this.isUpdatePending === !1 && (this._$ES = this._$ET());
198
+ this.isUpdatePending === !1 && (this._$ES = this._$EP());
211
199
  }
212
- P(C, t, s) {
213
- this._$AL.has(C) || this._$AL.set(C, t), s.reflect === !0 && this._$Em !== C && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(C);
200
+ C(C, t, { useDefault: s, reflect: e, wrapped: a }, l) {
201
+ s && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(C) && (this._$Ej.set(C, l ?? t ?? this[C]), a !== !0 || l !== void 0) || (this._$AL.has(C) || (this.hasUpdated || s || (t = void 0), this._$AL.set(C, t)), e === !0 && this._$Em !== C && (this._$Eq ??= /* @__PURE__ */ new Set()).add(C));
214
202
  }
215
- async _$ET() {
203
+ async _$EP() {
216
204
  this.isUpdatePending = !0;
217
205
  try {
218
206
  await this._$ES;
@@ -226,38 +214,33 @@ class m extends HTMLElement {
226
214
  return this.performUpdate();
227
215
  }
228
216
  performUpdate() {
229
- var s;
230
217
  if (!this.isUpdatePending) return;
231
218
  if (!this.hasUpdated) {
232
- if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
233
- for (const [l, a] of this._$Ep) this[l] = a;
219
+ if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
220
+ for (const [e, a] of this._$Ep) this[e] = a;
234
221
  this._$Ep = void 0;
235
222
  }
236
- const e = this.constructor.elementProperties;
237
- if (e.size > 0) for (const [l, a] of e) a.wrapped !== !0 || this._$AL.has(l) || this[l] === void 0 || this.P(l, this[l], a);
223
+ const s = this.constructor.elementProperties;
224
+ if (s.size > 0) for (const [e, a] of s) {
225
+ const { wrapped: l } = a, r = this[e];
226
+ l !== !0 || this._$AL.has(e) || r === void 0 || this.C(e, void 0, a, r);
227
+ }
238
228
  }
239
229
  let C = !1;
240
230
  const t = this._$AL;
241
231
  try {
242
- C = this.shouldUpdate(t), C ? (this.willUpdate(t), (s = this._$EO) == null || s.forEach((e) => {
243
- var l;
244
- return (l = e.hostUpdate) == null ? void 0 : l.call(e);
245
- }), this.update(t)) : this._$EU();
246
- } catch (e) {
247
- throw C = !1, this._$EU(), e;
232
+ C = this.shouldUpdate(t), C ? (this.willUpdate(t), this._$EO?.forEach(((s) => s.hostUpdate?.())), this.update(t)) : this._$EM();
233
+ } catch (s) {
234
+ throw C = !1, this._$EM(), s;
248
235
  }
249
236
  C && this._$AE(t);
250
237
  }
251
238
  willUpdate(C) {
252
239
  }
253
240
  _$AE(C) {
254
- var t;
255
- (t = this._$EO) == null || t.forEach((s) => {
256
- var e;
257
- return (e = s.hostUpdated) == null ? void 0 : e.call(s);
258
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(C)), this.updated(C);
241
+ this._$EO?.forEach(((t) => t.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(C)), this.updated(C);
259
242
  }
260
- _$EU() {
243
+ _$EM() {
261
244
  this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
262
245
  }
263
246
  get updateComplete() {
@@ -270,44 +253,44 @@ class m extends HTMLElement {
270
253
  return !0;
271
254
  }
272
255
  update(C) {
273
- this._$Ej && (this._$Ej = this._$Ej.forEach((t) => this._$EC(t, this[t]))), this._$EU();
256
+ this._$Eq &&= this._$Eq.forEach(((t) => this._$ET(t, this[t]))), this._$EM();
274
257
  }
275
258
  updated(C) {
276
259
  }
277
260
  firstUpdated(C) {
278
261
  }
279
262
  }
280
- m.elementStyles = [], m.shadowRootOptions = { mode: "open" }, m[w("elementProperties")] = /* @__PURE__ */ new Map(), m[w("finalized")] = /* @__PURE__ */ new Map(), v == null || v({ ReactiveElement: m }), (h.reactiveElementVersions ?? (h.reactiveElementVersions = [])).push("2.0.4");
263
+ g.elementStyles = [], g.shadowRootOptions = { mode: "open" }, g[m("elementProperties")] = /* @__PURE__ */ new Map(), g[m("finalized")] = /* @__PURE__ */ new Map(), z?.({ ReactiveElement: g }), (p.reactiveElementVersions ??= []).push("2.1.1");
281
264
  /**
282
265
  * @license
283
266
  * Copyright 2017 Google LLC
284
267
  * SPDX-License-Identifier: BSD-3-Clause
285
268
  */
286
- const A = { attribute: !0, type: String, converter: p, reflect: !1, hasChanged: _ }, R = (i = A, C, t) => {
269
+ const A = { attribute: !0, type: String, converter: d, reflect: !1, hasChanged: y }, R = (i = A, C, t) => {
287
270
  const { kind: s, metadata: e } = t;
288
- let l = globalThis.litPropertyMetadata.get(e);
289
- if (l === void 0 && globalThis.litPropertyMetadata.set(e, l = /* @__PURE__ */ new Map()), l.set(t.name, i), s === "accessor") {
290
- const { name: a } = t;
271
+ let a = globalThis.litPropertyMetadata.get(e);
272
+ if (a === void 0 && globalThis.litPropertyMetadata.set(e, a = /* @__PURE__ */ new Map()), s === "setter" && ((i = Object.create(i)).wrapped = !0), a.set(t.name, i), s === "accessor") {
273
+ const { name: l } = t;
291
274
  return { set(r) {
292
275
  const k = C.get.call(this);
293
- C.set.call(this, r), this.requestUpdate(a, k, i);
276
+ C.set.call(this, r), this.requestUpdate(l, k, i);
294
277
  }, init(r) {
295
- return r !== void 0 && this.P(a, void 0, i), r;
278
+ return r !== void 0 && this.C(l, void 0, i, r), r;
296
279
  } };
297
280
  }
298
281
  if (s === "setter") {
299
- const { name: a } = t;
282
+ const { name: l } = t;
300
283
  return function(r) {
301
- const k = this[a];
302
- C.call(this, r), this.requestUpdate(a, k, i);
284
+ const k = this[l];
285
+ C.call(this, r), this.requestUpdate(l, k, i);
303
286
  };
304
287
  }
305
288
  throw Error("Unsupported decorator location: " + s);
306
289
  };
307
- function c(i) {
308
- return (C, t) => typeof t == "object" ? R(i, C, t) : ((s, e, l) => {
309
- const a = e.hasOwnProperty(l);
310
- return e.constructor.createProperty(l, a ? { ...s, wrapped: !0 } : s), a ? Object.getOwnPropertyDescriptor(e, l) : void 0;
290
+ function n(i) {
291
+ return (C, t) => typeof t == "object" ? R(i, C, t) : ((s, e, a) => {
292
+ const l = e.hasOwnProperty(a);
293
+ return e.constructor.createProperty(a, s), l ? Object.getOwnPropertyDescriptor(e, a) : void 0;
311
294
  })(i, C, t);
312
295
  }
313
296
  const T = {
@@ -915,7 +898,7 @@ const T = {
915
898
  <path d="M6.30002 22.7751C5.43369 22.7751 4.69211 22.4667 4.07527 21.8498C3.45844 21.2328 3.15002 20.4913 3.15002 19.6251V10.2251C3.15002 9.35893 3.45844 8.61735 4.07527 8.00035C4.69211 7.38351 5.43369 7.0751 6.30002 7.0751H6.62502V5.8001C6.62502 4.28343 7.14586 2.99593 8.18752 1.9376C9.22919 0.879264 10.5 0.350098 12 0.350098C13.5 0.350098 14.7709 0.879264 15.8125 1.9376C16.8542 2.99593 17.375 4.28343 17.375 5.8001V7.0751H17.7C18.5662 7.0751 19.3078 7.38351 19.9248 8.00035C20.5416 8.61735 20.85 9.35893 20.85 10.2251V19.6251C20.85 20.4913 20.5416 21.2328 19.9248 21.8498C19.3078 22.4667 18.5662 22.7751 17.7 22.7751H6.30002ZM12 16.9251C12.55 16.9251 13.0209 16.7293 13.4125 16.3376C13.8042 15.9459 14 15.4751 14 14.9251C14 14.3751 13.8042 13.9043 13.4125 13.5126C13.0209 13.1209 12.55 12.9251 12 12.9251C11.45 12.9251 10.9792 13.1209 10.5875 13.5126C10.1959 13.9043 10 14.3751 10 14.9251C10 15.4751 10.1959 15.9459 10.5875 16.3376C10.9792 16.7293 11.45 16.9251 12 16.9251ZM9.77502 7.0751H14.225V5.8001C14.225 5.16126 14.0125 4.61818 13.5875 4.17085C13.1625 3.72368 12.6334 3.5001 12 3.5001C11.3667 3.5001 10.8375 3.72368 10.4125 4.17085C9.98752 4.61818 9.77502 5.16126 9.77502 5.8001V7.0751Z" fill="var(--nys-icon-color, currentcolor)"/>
916
899
  </g>
917
900
  </svg>`
918
- }, j = D`
901
+ }, j = x`
919
902
  :host {
920
903
  display: inline-block;
921
904
  --_nys-icon-size: var(
@@ -941,39 +924,39 @@ const T = {
941
924
  }
942
925
 
943
926
  /* Relative Sizes */
944
- .nys-icon--2xs {
927
+ .nys-icon--xs {
945
928
  width: calc(var(--_nys-icon-size) * 0.75);
946
929
  height: calc(var(--_nys-icon-size) * 0.75);
947
930
  }
948
- .nys-icon--xs {
931
+ .nys-icon--sm {
949
932
  width: calc(var(--_nys-icon-size) * 0.875);
950
933
  height: calc(var(--_nys-icon-size) * 0.875);
951
934
  }
952
- .nys-icon--sm {
935
+ .nys-icon--md {
953
936
  width: var(--_nys-icon-size);
954
937
  height: var(--_nys-icon-size);
955
938
  }
956
- .nys-icon--md {
939
+ .nys-icon--lg {
957
940
  width: calc(var(--_nys-icon-size) * 1.125);
958
941
  height: calc(var(--_nys-icon-size) * 1.125);
959
942
  }
960
- .nys-icon--lg {
943
+ .nys-icon--xl {
961
944
  width: calc(var(--_nys-icon-size) * 1.25);
962
945
  height: calc(var(--_nys-icon-size) * 1.25);
963
946
  }
964
- .nys-icon--xl {
947
+ .nys-icon--2xl {
965
948
  width: calc(var(--_nys-icon-size) * 1.5);
966
949
  height: calc(var(--_nys-icon-size) * 1.5);
967
950
  }
968
- .nys-icon--2xl {
951
+ .nys-icon--3xl {
969
952
  width: calc(var(--_nys-icon-size) * 1.875);
970
953
  height: calc(var(--_nys-icon-size) * 1.875);
971
954
  }
972
- .nys-icon--3xl {
955
+ .nys-icon--4xl {
973
956
  width: calc(var(--_nys-icon-size) * 2.25);
974
957
  height: calc(var(--_nys-icon-size) * 2.25);
975
958
  }
976
- .nys-icon--4xl {
959
+ .nys-icon--5xl {
977
960
  width: calc(var(--_nys-icon-size) * 3);
978
961
  height: calc(var(--_nys-icon-size) * 3);
979
962
  }
@@ -983,10 +966,22 @@ const T = {
983
966
  width: 0.75rem;
984
967
  height: 0.75rem;
985
968
  }
969
+ .nys-icon--14 {
970
+ width: 0.875rem;
971
+ height: 0.875rem;
972
+ }
986
973
  .nys-icon--16 {
987
974
  width: 1rem;
988
975
  height: 1rem;
989
976
  }
977
+ .nys-icon--18 {
978
+ width: 1.125rem;
979
+ height: 1.125rem;
980
+ }
981
+ .nys-icon--20 {
982
+ width: 1.25rem;
983
+ height: 1.25rem;
984
+ }
990
985
  .nys-icon--24 {
991
986
  width: 1.5rem;
992
987
  height: 1.5rem;
@@ -999,13 +994,9 @@ const T = {
999
994
  width: 2.5rem;
1000
995
  height: 2.5rem;
1001
996
  }
1002
- .nys-icon--48 {
1003
- width: 3rem;
1004
- height: 3rem;
1005
- }
1006
- .nys-icon--64 {
1007
- width: 4rem;
1008
- height: 4rem;
997
+ .nys-icon--50 {
998
+ width: 3.125rem;
999
+ height: 3.125rem;
1009
1000
  }
1010
1001
 
1011
1002
  /* Flipping Icons */
@@ -1019,22 +1010,22 @@ const T = {
1019
1010
  transform: scale(-1, -1);
1020
1011
  }
1021
1012
  `;
1022
- var I = Object.defineProperty, N = Object.getOwnPropertyDescriptor, g = (i, C, t, s) => {
1023
- for (var e = s > 1 ? void 0 : s ? N(C, t) : C, l = i.length - 1, a; l >= 0; l--)
1024
- (a = i[l]) && (e = (s ? a(C, t, e) : a(e)) || e);
1025
- return s && e && I(C, t, e), e;
1026
- }, o;
1027
- const n = (o = class extends Z {
1013
+ var q = Object.defineProperty, I = Object.getOwnPropertyDescriptor, c = (i, C, t, s) => {
1014
+ for (var e = s > 1 ? void 0 : s ? I(C, t) : C, a = i.length - 1, l; a >= 0; a--)
1015
+ (l = i[a]) && (e = (s ? l(C, t, e) : l(e)) || e);
1016
+ return s && e && q(C, t, e), e;
1017
+ }, h;
1018
+ const o = (h = class extends D {
1028
1019
  constructor() {
1029
- super(...arguments), this.name = "", this.ariaLabel = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "sm";
1020
+ super(...arguments), this.name = "", this.ariaLabel = "", this.rotate = "0", this.flip = "", this.color = "", this._size = "md";
1030
1021
  }
1031
1022
  get size() {
1032
1023
  return this._size;
1033
1024
  }
1034
1025
  set size(C) {
1035
- this._size = o.VALID_TYPES.includes(
1026
+ this._size = h.VALID_TYPES.includes(
1036
1027
  C
1037
- ) ? C : "sm";
1028
+ ) ? C : "md";
1038
1029
  }
1039
1030
  getIcon() {
1040
1031
  const C = T[this.name];
@@ -1044,10 +1035,9 @@ const n = (o = class extends Z {
1044
1035
  }
1045
1036
  render() {
1046
1037
  const C = this.getIcon();
1047
- return C ? V`${C}` : null;
1038
+ return C ? Z`${C}` : null;
1048
1039
  }
1049
- }, o.styles = j, o.VALID_TYPES = [
1050
- "2xs",
1040
+ }, h.styles = j, h.VALID_TYPES = [
1051
1041
  "xs",
1052
1042
  "sm",
1053
1043
  "md",
@@ -1056,35 +1046,38 @@ const n = (o = class extends Z {
1056
1046
  "2xl",
1057
1047
  "3xl",
1058
1048
  "4xl",
1049
+ "5xl",
1059
1050
  "12",
1051
+ "14",
1060
1052
  "16",
1053
+ "18",
1054
+ "20",
1061
1055
  "24",
1062
1056
  "32",
1063
1057
  "40",
1064
- "48",
1065
- "64"
1066
- ], o);
1067
- g([
1068
- c({ type: String, reflect: !0 })
1069
- ], n.prototype, "name", 2);
1070
- g([
1071
- c({ type: String })
1072
- ], n.prototype, "ariaLabel", 2);
1073
- g([
1074
- c({ type: String })
1075
- ], n.prototype, "rotate", 2);
1076
- g([
1077
- c({ type: String })
1078
- ], n.prototype, "flip", 2);
1079
- g([
1080
- c({ type: String })
1081
- ], n.prototype, "color", 2);
1082
- g([
1083
- c({ reflect: !0 })
1084
- ], n.prototype, "size", 1);
1085
- let q = n;
1086
- customElements.get("nys-icon") || customElements.define("nys-icon", q);
1058
+ "50"
1059
+ ], h);
1060
+ c([
1061
+ n({ type: String, reflect: !0 })
1062
+ ], o.prototype, "name", 2);
1063
+ c([
1064
+ n({ type: String })
1065
+ ], o.prototype, "ariaLabel", 2);
1066
+ c([
1067
+ n({ type: String })
1068
+ ], o.prototype, "rotate", 2);
1069
+ c([
1070
+ n({ type: String })
1071
+ ], o.prototype, "flip", 2);
1072
+ c([
1073
+ n({ type: String })
1074
+ ], o.prototype, "color", 2);
1075
+ c([
1076
+ n({ reflect: !0 })
1077
+ ], o.prototype, "size", 1);
1078
+ let N = o;
1079
+ customElements.get("nys-icon") || customElements.define("nys-icon", N);
1087
1080
  export {
1088
- q as NysIcon
1081
+ N as NysIcon
1089
1082
  };
1090
1083
  //# sourceMappingURL=nys-icon.js.map