@ucalgary-design-system/icon 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/index.js +238 -762
  3. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @ucalgary-design-system/icon
2
2
 
3
+ ## 1.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - fe87dab: Updated externalized dependencies
8
+ - Updated dependencies [fe87dab]
9
+ - @ucalgary-design-system/core@1.0.4
10
+ - @ucalgary-design-system/tokens@1.0.4
11
+
12
+ ## 1.0.3
13
+
14
+ ### Patch Changes
15
+
16
+ - 386b04a: Added export of type as array to icon component.
17
+ - c3fdd31: Updated dependencies and modified build
18
+ - Updated dependencies [c3fdd31]
19
+ - @ucalgary-design-system/core@1.0.3
20
+
3
21
  ## 1.0.2
4
22
 
5
23
  ### Patch Changes
package/index.js CHANGED
@@ -1,781 +1,257 @@
1
- import { unsafeCSS as pt, html as ut } from "lit";
2
- import { BaseElement as st } from "@ucalgary-design-system/core";
3
- /**
4
- * @license
5
- * Copyright 2017 Google LLC
6
- * SPDX-License-Identifier: BSD-3-Clause
7
- */
8
- const rt = { ATTRIBUTE: 1, CHILD: 2 }, ot = (t) => (...e) => ({ _$litDirective$: t, values: e });
9
- let nt = class {
10
- constructor(e) {
11
- }
12
- get _$AU() {
13
- return this._$AM._$AU;
14
- }
15
- _$AT(e, i, s) {
16
- this._$Ct = e, this._$AM = i, this._$Ci = s;
17
- }
18
- _$AS(e, i) {
19
- return this.update(e, i);
20
- }
21
- update(e, i) {
22
- return this.render(...i);
23
- }
24
- };
25
- /**
26
- * @license
27
- * Copyright 2017 Google LLC
28
- * SPDX-License-Identifier: BSD-3-Clause
29
- */
30
- const x = globalThis, N = x.trustedTypes, J = N ? N.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ht = "$lit$", $ = `lit$${Math.random().toFixed(9).slice(2)}$`, lt = "?" + $, ft = `<${lt}>`, v = document, k = () => v.createComment(""), P = (t) => t === null || typeof t != "object" && typeof t != "function", B = Array.isArray, mt = (t) => B(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", I = `[
31
- \f\r]`, E = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, K = /-->/g, Z = />/g, g = RegExp(`>|${I}(?:([^\\s"'>=/]+)(${I}*=${I}*(?:[^
32
- \f\r"'\`<>=]|("|')|))|$)`, "g"), G = /'/g, Q = /"/g, at = /^(?:script|style|textarea|title)$/i, A = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), X = /* @__PURE__ */ new WeakMap(), y = v.createTreeWalker(v, 129);
33
- function ct(t, e) {
34
- if (!B(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
35
- return J !== void 0 ? J.createHTML(e) : e;
36
- }
37
- const $t = (t, e) => {
38
- const i = t.length - 1, s = [];
39
- let r, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", n = E;
40
- for (let l = 0; l < i; l++) {
41
- const h = t[l];
42
- let d, p, a = -1, u = 0;
43
- for (; u < h.length && (n.lastIndex = u, p = n.exec(h), p !== null); ) u = n.lastIndex, n === E ? p[1] === "!--" ? n = K : p[1] !== void 0 ? n = Z : p[2] !== void 0 ? (at.test(p[2]) && (r = RegExp("</" + p[2], "g")), n = g) : p[3] !== void 0 && (n = g) : n === g ? p[0] === ">" ? (n = r ?? E, a = -1) : p[1] === void 0 ? a = -2 : (a = n.lastIndex - p[2].length, d = p[1], n = p[3] === void 0 ? g : p[3] === '"' ? Q : G) : n === Q || n === G ? n = g : n === K || n === Z ? n = E : (n = g, r = void 0);
44
- const m = n === g && t[l + 1].startsWith("/>") ? " " : "";
45
- o += n === E ? h + ft : a >= 0 ? (s.push(d), h.slice(0, a) + ht + h.slice(a) + $ + m) : h + $ + (a === -2 ? l : m);
46
- }
47
- return [ct(t, o + (t[i] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
48
- };
49
- class T {
50
- constructor({ strings: e, _$litType$: i }, s) {
51
- let r;
52
- this.parts = [];
53
- let o = 0, n = 0;
54
- const l = e.length - 1, h = this.parts, [d, p] = $t(e, i);
55
- if (this.el = T.createElement(d, s), y.currentNode = this.el.content, i === 2 || i === 3) {
56
- const a = this.el.content.firstChild;
57
- a.replaceWith(...a.childNodes);
58
- }
59
- for (; (r = y.nextNode()) !== null && h.length < l; ) {
60
- if (r.nodeType === 1) {
61
- if (r.hasAttributes()) for (const a of r.getAttributeNames()) if (a.endsWith(ht)) {
62
- const u = p[n++], m = r.getAttribute(a).split($), O = /([.?@])?(.*)/.exec(u);
63
- h.push({ type: 1, index: o, name: O[2], strings: m, ctor: O[1] === "." ? gt : O[1] === "?" ? yt : O[1] === "@" ? vt : L }), r.removeAttribute(a);
64
- } else a.startsWith($) && (h.push({ type: 6, index: o }), r.removeAttribute(a));
65
- if (at.test(r.tagName)) {
66
- const a = r.textContent.split($), u = a.length - 1;
67
- if (u > 0) {
68
- r.textContent = N ? N.emptyScript : "";
69
- for (let m = 0; m < u; m++) r.append(a[m], k()), y.nextNode(), h.push({ type: 2, index: ++o });
70
- r.append(a[u], k());
71
- }
72
- }
73
- } else if (r.nodeType === 8) if (r.data === lt) h.push({ type: 2, index: o });
74
- else {
75
- let a = -1;
76
- for (; (a = r.data.indexOf($, a + 1)) !== -1; ) h.push({ type: 7, index: o }), a += $.length - 1;
77
- }
78
- o++;
79
- }
80
- }
81
- static createElement(e, i) {
82
- const s = v.createElement("template");
83
- return s.innerHTML = e, s;
84
- }
85
- }
86
- function w(t, e, i = t, s) {
87
- var n, l;
88
- if (e === A) return e;
89
- let r = s !== void 0 ? (n = i._$Co) == null ? void 0 : n[s] : i._$Cl;
90
- const o = P(e) ? void 0 : e._$litDirective$;
91
- return (r == null ? void 0 : r.constructor) !== o && ((l = r == null ? void 0 : r._$AO) == null || l.call(r, !1), o === void 0 ? r = void 0 : (r = new o(t), r._$AT(t, i, s)), s !== void 0 ? (i._$Co ?? (i._$Co = []))[s] = r : i._$Cl = r), r !== void 0 && (e = w(t, r._$AS(t, e.values), r, s)), e;
92
- }
93
- class _t {
94
- constructor(e, i) {
95
- this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = i;
96
- }
97
- get parentNode() {
98
- return this._$AM.parentNode;
99
- }
100
- get _$AU() {
101
- return this._$AM._$AU;
102
- }
103
- u(e) {
104
- const { el: { content: i }, parts: s } = this._$AD, r = ((e == null ? void 0 : e.creationScope) ?? v).importNode(i, !0);
105
- y.currentNode = r;
106
- let o = y.nextNode(), n = 0, l = 0, h = s[0];
107
- for (; h !== void 0; ) {
108
- if (n === h.index) {
109
- let d;
110
- h.type === 2 ? d = new z(o, o.nextSibling, this, e) : h.type === 1 ? d = new h.ctor(o, h.name, h.strings, this, e) : h.type === 6 && (d = new At(o, this, e)), this._$AV.push(d), h = s[++l];
111
- }
112
- n !== (h == null ? void 0 : h.index) && (o = y.nextNode(), n++);
113
- }
114
- return y.currentNode = v, r;
115
- }
116
- p(e) {
117
- let i = 0;
118
- for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(e, s, i), i += s.strings.length - 2) : s._$AI(e[i])), i++;
119
- }
120
- }
121
- class z {
122
- get _$AU() {
123
- var e;
124
- return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
125
- }
126
- constructor(e, i, s, r) {
127
- this.type = 2, this._$AH = c, this._$AN = void 0, this._$AA = e, this._$AB = i, this._$AM = s, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
128
- }
129
- get parentNode() {
130
- let e = this._$AA.parentNode;
131
- const i = this._$AM;
132
- return i !== void 0 && (e == null ? void 0 : e.nodeType) === 11 && (e = i.parentNode), e;
133
- }
134
- get startNode() {
135
- return this._$AA;
136
- }
137
- get endNode() {
138
- return this._$AB;
139
- }
140
- _$AI(e, i = this) {
141
- e = w(this, e, i), P(e) ? e === c || e == null || e === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : e !== this._$AH && e !== A && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : mt(e) ? this.k(e) : this._(e);
142
- }
143
- O(e) {
144
- return this._$AA.parentNode.insertBefore(e, this._$AB);
145
- }
146
- T(e) {
147
- this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
148
- }
149
- _(e) {
150
- this._$AH !== c && P(this._$AH) ? this._$AA.nextSibling.data = e : this.T(v.createTextNode(e)), this._$AH = e;
151
- }
152
- $(e) {
153
- var o;
154
- const { values: i, _$litType$: s } = e, r = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = T.createElement(ct(s.h, s.h[0]), this.options)), s);
155
- if (((o = this._$AH) == null ? void 0 : o._$AD) === r) this._$AH.p(i);
156
- else {
157
- const n = new _t(r, this), l = n.u(this.options);
158
- n.p(i), this.T(l), this._$AH = n;
159
- }
160
- }
161
- _$AC(e) {
162
- let i = X.get(e.strings);
163
- return i === void 0 && X.set(e.strings, i = new T(e)), i;
164
- }
165
- k(e) {
166
- B(this._$AH) || (this._$AH = [], this._$AR());
167
- const i = this._$AH;
168
- let s, r = 0;
169
- for (const o of e) r === i.length ? i.push(s = new z(this.O(k()), this.O(k()), this, this.options)) : s = i[r], s._$AI(o), r++;
170
- r < i.length && (this._$AR(s && s._$AB.nextSibling, r), i.length = r);
171
- }
172
- _$AR(e = this._$AA.nextSibling, i) {
173
- var s;
174
- for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, i); e && e !== this._$AB; ) {
175
- const r = e.nextSibling;
176
- e.remove(), e = r;
177
- }
178
- }
179
- setConnected(e) {
180
- var i;
181
- this._$AM === void 0 && (this._$Cv = e, (i = this._$AP) == null || i.call(this, e));
182
- }
183
- }
184
- class L {
185
- get tagName() {
186
- return this.element.tagName;
187
- }
188
- get _$AU() {
189
- return this._$AM._$AU;
190
- }
191
- constructor(e, i, s, r, o) {
192
- this.type = 1, this._$AH = c, this._$AN = void 0, this.element = e, this.name = i, this._$AM = r, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = c;
193
- }
194
- _$AI(e, i = this, s, r) {
195
- const o = this.strings;
196
- let n = !1;
197
- if (o === void 0) e = w(this, e, i, 0), n = !P(e) || e !== this._$AH && e !== A, n && (this._$AH = e);
198
- else {
199
- const l = e;
200
- let h, d;
201
- for (e = o[0], h = 0; h < o.length - 1; h++) d = w(this, l[s + h], i, h), d === A && (d = this._$AH[h]), n || (n = !P(d) || d !== this._$AH[h]), d === c ? e = c : e !== c && (e += (d ?? "") + o[h + 1]), this._$AH[h] = d;
202
- }
203
- n && !r && this.j(e);
204
- }
205
- j(e) {
206
- e === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
207
- }
208
- }
209
- class gt extends L {
210
- constructor() {
211
- super(...arguments), this.type = 3;
212
- }
213
- j(e) {
214
- this.element[this.name] = e === c ? void 0 : e;
215
- }
216
- }
217
- class yt extends L {
218
- constructor() {
219
- super(...arguments), this.type = 4;
220
- }
221
- j(e) {
222
- this.element.toggleAttribute(this.name, !!e && e !== c);
223
- }
224
- }
225
- class vt extends L {
226
- constructor(e, i, s, r, o) {
227
- super(e, i, s, r, o), this.type = 5;
228
- }
229
- _$AI(e, i = this) {
230
- if ((e = w(this, e, i, 0) ?? c) === A) return;
231
- const s = this._$AH, r = e === c && s !== c || e.capture !== s.capture || e.once !== s.once || e.passive !== s.passive, o = e !== c && (s === c || r);
232
- r && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
233
- }
234
- handleEvent(e) {
235
- var i;
236
- typeof this._$AH == "function" ? this._$AH.call(((i = this.options) == null ? void 0 : i.host) ?? this.element, e) : this._$AH.handleEvent(e);
237
- }
238
- }
239
- class At {
240
- constructor(e, i, s) {
241
- this.element = e, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
242
- }
243
- get _$AU() {
244
- return this._$AM._$AU;
245
- }
246
- _$AI(e) {
247
- w(this, e);
248
- }
249
- }
250
- const D = x.litHtmlPolyfillSupport;
251
- D == null || D(T, z), (x.litHtmlVersions ?? (x.litHtmlVersions = [])).push("3.2.1");
252
- /**
253
- * @license
254
- * Copyright 2017 Google LLC
255
- * SPDX-License-Identifier: BSD-3-Clause
256
- */
257
- let F = class extends nt {
258
- constructor(e) {
259
- if (super(e), this.it = c, e.type !== rt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
260
- }
261
- render(e) {
262
- if (e === c || e == null) return this._t = void 0, this.it = e;
263
- if (e === A) return e;
264
- if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
265
- if (e === this.it) return this._t;
266
- this.it = e;
267
- const i = [e];
268
- return i.raw = i, this._t = { _$litType$: this.constructor.resultType, strings: i, values: [] };
269
- }
270
- };
271
- F.directiveName = "unsafeHTML", F.resultType = 1;
272
- /**
273
- * @license
274
- * Copyright 2017 Google LLC
275
- * SPDX-License-Identifier: BSD-3-Clause
276
- */
277
- let q = class extends F {
278
- };
279
- q.directiveName = "unsafeSVG", q.resultType = 2;
280
- const bt = ot(q);
281
- /**
282
- * @license
283
- * Copyright 2017 Google LLC
284
- * SPDX-License-Identifier: BSD-3-Clause
285
- */
286
- const wt = (t) => (e, i) => {
287
- i !== void 0 ? i.addInitializer(() => {
288
- customElements.define(t, e);
289
- }) : customElements.define(t, e);
290
- };
291
- /**
292
- * @license
293
- * Copyright 2019 Google LLC
294
- * SPDX-License-Identifier: BSD-3-Clause
295
- */
296
- const H = globalThis, V = H.ShadowRoot && (H.ShadyCSS === void 0 || H.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, dt = Symbol(), Y = /* @__PURE__ */ new WeakMap();
297
- let St = class {
298
- constructor(e, i, s) {
299
- if (this._$cssResult$ = !0, s !== dt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
300
- this.cssText = e, this.t = i;
301
- }
302
- get styleSheet() {
303
- let e = this.o;
304
- const i = this.t;
305
- if (V && e === void 0) {
306
- const s = i !== void 0 && i.length === 1;
307
- s && (e = Y.get(i)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), s && Y.set(i, e));
308
- }
309
- return e;
310
- }
311
- toString() {
312
- return this.cssText;
313
- }
314
- };
315
- const Et = (t) => new St(typeof t == "string" ? t : t + "", void 0, dt), Ct = (t, e) => {
316
- if (V) t.adoptedStyleSheets = e.map((i) => i instanceof CSSStyleSheet ? i : i.styleSheet);
317
- else for (const i of e) {
318
- const s = document.createElement("style"), r = H.litNonce;
319
- r !== void 0 && s.setAttribute("nonce", r), s.textContent = i.cssText, t.appendChild(s);
320
- }
321
- }, tt = V ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
322
- let i = "";
323
- for (const s of e.cssRules) i += s.cssText;
324
- return Et(i);
325
- })(t) : t;
326
- /**
327
- * @license
328
- * Copyright 2017 Google LLC
329
- * SPDX-License-Identifier: BSD-3-Clause
330
- */
331
- const { is: xt, defineProperty: Ut, getOwnPropertyDescriptor: Pt, getOwnPropertyNames: Tt, getOwnPropertySymbols: Ot, getPrototypeOf: Mt } = Object, _ = globalThis, et = _.trustedTypes, Ht = et ? et.emptyScript : "", j = _.reactiveElementPolyfillSupport, U = (t, e) => t, R = { toAttribute(t, e) {
332
- switch (e) {
333
- case Boolean:
334
- t = t ? Ht : null;
335
- break;
336
- case Object:
337
- case Array:
338
- t = t == null ? t : JSON.stringify(t);
339
- }
340
- return t;
341
- }, fromAttribute(t, e) {
342
- let i = t;
343
- switch (e) {
344
- case Boolean:
345
- i = t !== null;
346
- break;
347
- case Number:
348
- i = t === null ? null : Number(t);
349
- break;
350
- case Object:
351
- case Array:
352
- try {
353
- i = JSON.parse(t);
354
- } catch {
355
- i = null;
356
- }
357
- }
358
- return i;
359
- } }, W = (t, e) => !xt(t, e), it = { attribute: !0, type: String, converter: R, reflect: !1, hasChanged: W };
360
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
361
- class C extends HTMLElement {
362
- static addInitializer(e) {
363
- this._$Ei(), (this.l ?? (this.l = [])).push(e);
364
- }
365
- static get observedAttributes() {
366
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
367
- }
368
- static createProperty(e, i = it) {
369
- if (i.state && (i.attribute = !1), this._$Ei(), this.elementProperties.set(e, i), !i.noAccessor) {
370
- const s = Symbol(), r = this.getPropertyDescriptor(e, s, i);
371
- r !== void 0 && Ut(this.prototype, e, r);
372
- }
373
- }
374
- static getPropertyDescriptor(e, i, s) {
375
- const { get: r, set: o } = Pt(this.prototype, e) ?? { get() {
376
- return this[i];
377
- }, set(n) {
378
- this[i] = n;
379
- } };
380
- return { get() {
381
- return r == null ? void 0 : r.call(this);
382
- }, set(n) {
383
- const l = r == null ? void 0 : r.call(this);
384
- o.call(this, n), this.requestUpdate(e, l, s);
385
- }, configurable: !0, enumerable: !0 };
386
- }
387
- static getPropertyOptions(e) {
388
- return this.elementProperties.get(e) ?? it;
389
- }
390
- static _$Ei() {
391
- if (this.hasOwnProperty(U("elementProperties"))) return;
392
- const e = Mt(this);
393
- e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
394
- }
395
- static finalize() {
396
- if (this.hasOwnProperty(U("finalized"))) return;
397
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(U("properties"))) {
398
- const i = this.properties, s = [...Tt(i), ...Ot(i)];
399
- for (const r of s) this.createProperty(r, i[r]);
400
- }
401
- const e = this[Symbol.metadata];
402
- if (e !== null) {
403
- const i = litPropertyMetadata.get(e);
404
- if (i !== void 0) for (const [s, r] of i) this.elementProperties.set(s, r);
405
- }
406
- this._$Eh = /* @__PURE__ */ new Map();
407
- for (const [i, s] of this.elementProperties) {
408
- const r = this._$Eu(i, s);
409
- r !== void 0 && this._$Eh.set(r, i);
410
- }
411
- this.elementStyles = this.finalizeStyles(this.styles);
412
- }
413
- static finalizeStyles(e) {
414
- const i = [];
415
- if (Array.isArray(e)) {
416
- const s = new Set(e.flat(1 / 0).reverse());
417
- for (const r of s) i.unshift(tt(r));
418
- } else e !== void 0 && i.push(tt(e));
419
- return i;
420
- }
421
- static _$Eu(e, i) {
422
- const s = i.attribute;
423
- return s === !1 ? void 0 : typeof s == "string" ? s : typeof e == "string" ? e.toLowerCase() : void 0;
424
- }
425
- constructor() {
426
- super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
427
- }
428
- _$Ev() {
429
- var e;
430
- this._$ES = new Promise((i) => this.enableUpdating = i), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (e = this.constructor.l) == null || e.forEach((i) => i(this));
431
- }
432
- addController(e) {
433
- var i;
434
- (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(e), this.renderRoot !== void 0 && this.isConnected && ((i = e.hostConnected) == null || i.call(e));
435
- }
436
- removeController(e) {
437
- var i;
438
- (i = this._$EO) == null || i.delete(e);
439
- }
440
- _$E_() {
441
- const e = /* @__PURE__ */ new Map(), i = this.constructor.elementProperties;
442
- for (const s of i.keys()) this.hasOwnProperty(s) && (e.set(s, this[s]), delete this[s]);
443
- e.size > 0 && (this._$Ep = e);
444
- }
445
- createRenderRoot() {
446
- const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
447
- return Ct(e, this.constructor.elementStyles), e;
448
- }
449
- connectedCallback() {
450
- var e;
451
- this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((i) => {
452
- var s;
453
- return (s = i.hostConnected) == null ? void 0 : s.call(i);
454
- });
455
- }
456
- enableUpdating(e) {
457
- }
458
- disconnectedCallback() {
459
- var e;
460
- (e = this._$EO) == null || e.forEach((i) => {
461
- var s;
462
- return (s = i.hostDisconnected) == null ? void 0 : s.call(i);
463
- });
464
- }
465
- attributeChangedCallback(e, i, s) {
466
- this._$AK(e, s);
467
- }
468
- _$EC(e, i) {
469
- var o;
470
- const s = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, s);
471
- if (r !== void 0 && s.reflect === !0) {
472
- const n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : R).toAttribute(i, s.type);
473
- this._$Em = e, n == null ? this.removeAttribute(r) : this.setAttribute(r, n), this._$Em = null;
474
- }
475
- }
476
- _$AK(e, i) {
477
- var o;
478
- const s = this.constructor, r = s._$Eh.get(e);
479
- if (r !== void 0 && this._$Em !== r) {
480
- const n = s.getPropertyOptions(r), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : R;
481
- this._$Em = r, this[r] = l.fromAttribute(i, n.type), this._$Em = null;
482
- }
483
- }
484
- requestUpdate(e, i, s) {
485
- if (e !== void 0) {
486
- if (s ?? (s = this.constructor.getPropertyOptions(e)), !(s.hasChanged ?? W)(this[e], i)) return;
487
- this.P(e, i, s);
488
- }
489
- this.isUpdatePending === !1 && (this._$ES = this._$ET());
490
- }
491
- P(e, i, s) {
492
- this._$AL.has(e) || this._$AL.set(e, i), s.reflect === !0 && this._$Em !== e && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(e);
493
- }
494
- async _$ET() {
495
- this.isUpdatePending = !0;
496
- try {
497
- await this._$ES;
498
- } catch (i) {
499
- Promise.reject(i);
500
- }
501
- const e = this.scheduleUpdate();
502
- return e != null && await e, !this.isUpdatePending;
503
- }
504
- scheduleUpdate() {
505
- return this.performUpdate();
506
- }
507
- performUpdate() {
508
- var s;
509
- if (!this.isUpdatePending) return;
510
- if (!this.hasUpdated) {
511
- if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
512
- for (const [o, n] of this._$Ep) this[o] = n;
513
- this._$Ep = void 0;
514
- }
515
- const r = this.constructor.elementProperties;
516
- if (r.size > 0) for (const [o, n] of r) n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
517
- }
518
- let e = !1;
519
- const i = this._$AL;
520
- try {
521
- e = this.shouldUpdate(i), e ? (this.willUpdate(i), (s = this._$EO) == null || s.forEach((r) => {
522
- var o;
523
- return (o = r.hostUpdate) == null ? void 0 : o.call(r);
524
- }), this.update(i)) : this._$EU();
525
- } catch (r) {
526
- throw e = !1, this._$EU(), r;
527
- }
528
- e && this._$AE(i);
529
- }
530
- willUpdate(e) {
531
- }
532
- _$AE(e) {
533
- var i;
534
- (i = this._$EO) == null || i.forEach((s) => {
535
- var r;
536
- return (r = s.hostUpdated) == null ? void 0 : r.call(s);
537
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
538
- }
539
- _$EU() {
540
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
541
- }
542
- get updateComplete() {
543
- return this.getUpdateComplete();
544
- }
545
- getUpdateComplete() {
546
- return this._$ES;
547
- }
548
- shouldUpdate(e) {
549
- return !0;
550
- }
551
- update(e) {
552
- this._$Ej && (this._$Ej = this._$Ej.forEach((i) => this._$EC(i, this[i]))), this._$EU();
553
- }
554
- updated(e) {
555
- }
556
- firstUpdated(e) {
557
- }
558
- }
559
- C.elementStyles = [], C.shadowRootOptions = { mode: "open" }, C[U("elementProperties")] = /* @__PURE__ */ new Map(), C[U("finalized")] = /* @__PURE__ */ new Map(), j == null || j({ ReactiveElement: C }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.0.4");
560
- /**
561
- * @license
562
- * Copyright 2017 Google LLC
563
- * SPDX-License-Identifier: BSD-3-Clause
564
- */
565
- const Nt = { attribute: !0, type: String, converter: R, reflect: !1, hasChanged: W }, kt = (t = Nt, e, i) => {
566
- const { kind: s, metadata: r } = i;
567
- let o = globalThis.litPropertyMetadata.get(r);
568
- if (o === void 0 && globalThis.litPropertyMetadata.set(r, o = /* @__PURE__ */ new Map()), o.set(i.name, t), s === "accessor") {
569
- const { name: n } = i;
570
- return { set(l) {
571
- const h = e.get.call(this);
572
- e.set.call(this, l), this.requestUpdate(n, h, t);
573
- }, init(l) {
574
- return l !== void 0 && this.P(n, void 0, t), l;
575
- } };
576
- }
577
- if (s === "setter") {
578
- const { name: n } = i;
579
- return function(l) {
580
- const h = this[n];
581
- e.call(this, l), this.requestUpdate(n, h, t);
582
- };
583
- }
584
- throw Error("Unsupported decorator location: " + s);
585
- };
586
- function S(t) {
587
- return (e, i) => typeof i == "object" ? kt(t, e, i) : ((s, r, o) => {
588
- const n = r.hasOwnProperty(o);
589
- return r.constructor.createProperty(o, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(r, o) : void 0;
590
- })(t, e, i);
591
- }
592
- /**
593
- * @license
594
- * Copyright 2017 Google LLC
595
- * SPDX-License-Identifier: BSD-3-Clause
596
- */
597
- function Rt(t) {
598
- return S({ ...t, state: !0, attribute: !1 });
599
- }
600
- /**
601
- * @license
602
- * Copyright 2018 Google LLC
603
- * SPDX-License-Identifier: BSD-3-Clause
604
- */
605
- const zt = ot(class extends nt {
606
- constructor(t) {
607
- var e;
608
- if (super(t), t.type !== rt.ATTRIBUTE || t.name !== "class" || ((e = t.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
609
- }
610
- render(t) {
611
- return " " + Object.keys(t).filter((e) => t[e]).join(" ") + " ";
612
- }
613
- update(t, [e]) {
614
- var s, r;
615
- if (this.st === void 0) {
616
- this.st = /* @__PURE__ */ new Set(), t.strings !== void 0 && (this.nt = new Set(t.strings.join(" ").split(/\s/).filter((o) => o !== "")));
617
- for (const o in e) e[o] && !((s = this.nt) != null && s.has(o)) && this.st.add(o);
618
- return this.render(e);
619
- }
620
- const i = t.element.classList;
621
- for (const o of this.st) o in e || (i.remove(o), this.st.delete(o));
622
- for (const o in e) {
623
- const n = !!e[o];
624
- n === this.st.has(o) || (r = this.nt) != null && r.has(o) || (n ? (i.add(o), this.st.add(o)) : (i.remove(o), this.st.delete(o)));
625
- }
626
- return A;
627
- }
628
- }), M = {
629
- arrowDown: () => import("./ArrowDown-Cl_pe6x-.js").then((t) => t.default),
630
- arrowLeft: () => import("./ArrowLeft-D_pb7-h_.js").then((t) => t.default),
631
- arrowRight: () => import("./ArrowRight-0rOUWttV.js").then((t) => t.default),
632
- arrowUp: () => import("./ArrowUp-Kh8KmpaI.js").then((t) => t.default),
633
- arrowUpDown: () => import("./ArrowUpDown-SqD4IUq6.js").then((t) => t.default),
634
- attachment: () => import("./Attachment-DMa7gLVG.js").then((t) => t.default),
635
- camera: () => import("./Camera-BisfqTvi.js").then((t) => t.default),
636
- chat: () => import("./Chat-DQxghIy_.js").then((t) => t.default),
637
- checkmark: () => import("./Checkmark-BKXPef9h.js").then((t) => t.default),
638
- checkmarkCircle: () => import("./CheckmarkCircle-ChmWwela.js").then((t) => t.default),
639
- checkmarkCircleFilled: () => import("./CheckmarkCircleFilled-Cqky64AP.js").then((t) => t.default),
640
- chevronDown: () => import("./ChevronDown-CkkPhuqR.js").then((t) => t.default),
641
- chevronDownCircle: () => import("./ChevronDownCircle-Bzjl-oG1.js").then((t) => t.default),
642
- chevronDownCircleFilled: () => import("./ChevronDownCircleFilled-BZZIQ64Y.js").then((t) => t.default),
643
- chevronLeft: () => import("./ChevronLeft-wuwMWp0P.js").then((t) => t.default),
644
- chevronLeftCircle: () => import("./ChevronLeftCircle-C5GskojN.js").then((t) => t.default),
645
- chevronLeftCircleFilled: () => import("./ChevronLeftCircleFilled-Fx_qs9nb.js").then((t) => t.default),
646
- chevronRight: () => import("./ChevronRight-PCxxo-vc.js").then((t) => t.default),
647
- chevronRightCircle: () => import("./ChevronRightCircle-Dkk7XKGY.js").then((t) => t.default),
648
- chevronRightCircleFilled: () => import("./ChevronRightCircleFilled-DNCABv_Q.js").then((t) => t.default),
649
- chevronUp: () => import("./ChevronUp-CjSX0sjw.js").then((t) => t.default),
650
- chevronUpCircle: () => import("./ChevronUpCircle-DRUN_nTK.js").then((t) => t.default),
651
- chevronUpCircleFilled: () => import("./ChevronUpCircleFilled-DehyXbZK.js").then((t) => t.default),
652
- chevronsDown: () => import("./ChevronsDown-Lh2I5g0q.js").then((t) => t.default),
653
- chevronsLeft: () => import("./ChevronsLeft-Dfl7AHgm.js").then((t) => t.default),
654
- chevronsRight: () => import("./ChevronsRight-BN_IZIoy.js").then((t) => t.default),
655
- chevronsUp: () => import("./ChevronsUp-BfPLVHMy.js").then((t) => t.default),
656
- clock: () => import("./Clock-CSuR6yaZ.js").then((t) => t.default),
657
- close: () => import("./Close-Q4saba4i.js").then((t) => t.default),
658
- closeCircle: () => import("./CloseCircle-CvQ3NuZa.js").then((t) => t.default),
659
- closeCircleFilled: () => import("./CloseCircleFilled-D2iZDSfq.js").then((t) => t.default),
660
- closeOctagon: () => import("./CloseOctagon-DMLRi0q5.js").then((t) => t.default),
661
- closeOctagonFilled: () => import("./CloseOctagonFilled-CMwoRq8j.js").then((t) => t.default),
662
- cloudArrowUp: () => import("./CloudArrowUp-C2uwNhcc.js").then((t) => t.default),
663
- code: () => import("./Code-ohqcUUQN.js").then((t) => t.default),
664
- copy: () => import("./Copy-CpvqWx-k.js").then((t) => t.default),
665
- dot: () => import("./Dot-Cumkgd-m.js").then((t) => t.default),
666
- download: () => import("./Download-BJ_DfleZ.js").then((t) => t.default),
667
- ellipsis: () => import("./Ellipsis-CpY1HejQ.js").then((t) => t.default),
668
- ellipsisVertical: () => import("./EllipsisVertical-CEEYMsqG.js").then((t) => t.default),
669
- exclamationMark: () => import("./ExclamationMark-exzrOBwL.js").then((t) => t.default),
670
- externalLink: () => import("./ExternalLink-eS9P88AV.js").then((t) => t.default),
671
- eye: () => import("./Eye-w9TfhO68.js").then((t) => t.default),
672
- eyeOff: () => import("./EyeOff-DUEm4ukn.js").then((t) => t.default),
673
- file: () => import("./File-Cybg1CXH.js").then((t) => t.default),
674
- fileInput: () => import("./FileInput-1n1FWyo-.js").then((t) => t.default),
675
- filter: () => import("./Filter-D9y9ugj2.js").then((t) => t.default),
676
- folder: () => import("./Folder-CU8qYUHQ.js").then((t) => t.default),
677
- gridView: () => import("./GridView-BPdfFYj_.js").then((t) => t.default),
678
- home: () => import("./Home-ChwjHVJb.js").then((t) => t.default),
679
- image: () => import("./Image-ChylX7xd.js").then((t) => t.default),
680
- link: () => import("./Link-BKFFnXyT.js").then((t) => t.default),
681
- listView: () => import("./ListView-U-9qAnWr.js").then((t) => t.default),
682
- lock: () => import("./Lock-Bwz5_UjA.js").then((t) => t.default),
683
- logIn: () => import("./LogIn-U5Bnfjit.js").then((t) => t.default),
684
- logOut: () => import("./LogOut-CX1os0_t.js").then((t) => t.default),
685
- mail: () => import("./Mail-B2VEFWPt.js").then((t) => t.default),
686
- map: () => import("./Map-D5XWb3YY.js").then((t) => t.default),
687
- megaphone: () => import("./Megaphone-Do5-_w2j.js").then((t) => t.default),
688
- menu: () => import("./Menu-Brh_TbFf.js").then((t) => t.default),
689
- minus: () => import("./Minus-CueXUCgb.js").then((t) => t.default),
690
- minusCircle: () => import("./MinusCircle-DUmUcGyz.js").then((t) => t.default),
691
- minusCircleFilled: () => import("./MinusCircleFilled-Cq7IrW21.js").then((t) => t.default),
692
- mobile: () => import("./Mobile-D7KMmpMV.js").then((t) => t.default),
693
- move: () => import("./Move-CX01BEbW.js").then((t) => t.default),
694
- notification: () => import("./Notification-Ds-KwATs.js").then((t) => t.default),
695
- pencil: () => import("./Pencil-ChoJx5W0.js").then((t) => t.default),
696
- play: () => import("./Play-nTzXnaQP.js").then((t) => t.default),
697
- plus: () => import("./Plus-Dh_kC216.js").then((t) => t.default),
698
- plusCircle: () => import("./PlusCircle-CdRf8LPK.js").then((t) => t.default),
699
- plusCircleFilled: () => import("./PlusCircleFilled-DfOMIUx7.js").then((t) => t.default),
700
- questionMark: () => import("./QuestionMark-DOiTgLQi.js").then((t) => t.default),
701
- questionMarkFilled: () => import("./QuestionMarkFilled-BBfYnj6K.js").then((t) => t.default),
702
- reload: () => import("./Reload-_znxvsCW.js").then((t) => t.default),
703
- search: () => import("./Search-BFX6nBPy.js").then((t) => t.default),
704
- send: () => import("./Send-kLNJhN0M.js").then((t) => t.default),
705
- settings: () => import("./Settings-Dx5Wxwg6.js").then((t) => t.default),
706
- shield: () => import("./Shield-B3tfbLxv.js").then((t) => t.default),
707
- shoppingCart: () => import("./ShoppingCart-DeZy9s4R.js").then((t) => t.default),
708
- shuffle: () => import("./Shuffle-DPJBz-Nj.js").then((t) => t.default),
709
- sparkles: () => import("./Sparkles-By12VrmM.js").then((t) => t.default),
710
- split: () => import("./Split-ByvhCugq.js").then((t) => t.default),
711
- thumbUp: () => import("./ThumbUp-BqCiXb5D.js").then((t) => t.default),
712
- trashCan: () => import("./TrashCan-B1y4NnTj.js").then((t) => t.default),
713
- upload: () => import("./Upload-DXqVc3Ix.js").then((t) => t.default),
714
- userProfile: () => import("./UserProfile-DXmBd5b6.js").then((t) => t.default),
715
- warning: () => import("./Warning-CE3ENqy1.js").then((t) => t.default),
716
- warningFilled: () => import("./WarningFilled-B3b0eySj.js").then((t) => t.default),
717
- warningOctagon: () => import("./WarningOctagon-DPF5eWBs.js").then((t) => t.default),
718
- warningOctagonFilled: () => import("./WarningOctagonFilled-km4EmkS4.js").then((t) => t.default),
719
- warningTriangle: () => import("./WarningTriangle-CKnOc38N.js").then((t) => t.default),
720
- warningTriangleFilled: () => import("./WarningTriangleFilled-CbuoHfN_.js").then((t) => t.default),
721
- zoomIn: () => import("./ZoomIn-BT-hX4R6.js").then((t) => t.default),
722
- zoomOut: () => import("./ZoomOut-B6ILbkP8.js").then((t) => t.default)
1
+ import { unsafeCSS as d, html as u } from "lit";
2
+ import { unsafeSVG as m } from "lit/directives/unsafe-svg.js";
3
+ import { property as l, state as f, customElement as g } from "lit/decorators.js";
4
+ import { classMap as w } from "lit/directives/class-map.js";
5
+ import { BaseElement as s } from "@ucalgary-design-system/core";
6
+ const L = [
7
+ "arrowDown",
8
+ "arrowLeft",
9
+ "arrowRight",
10
+ "arrowUp",
11
+ "arrowUpDown",
12
+ "attachment",
13
+ "camera",
14
+ "chat",
15
+ "checkmark",
16
+ "checkmarkCircle",
17
+ "checkmarkCircleFilled",
18
+ "chevronDown",
19
+ "chevronDownCircle",
20
+ "chevronDownCircleFilled",
21
+ "chevronLeft",
22
+ "chevronLeftCircle",
23
+ "chevronLeftCircleFilled",
24
+ "chevronRight",
25
+ "chevronRightCircle",
26
+ "chevronRightCircleFilled",
27
+ "chevronUp",
28
+ "chevronUpCircle",
29
+ "chevronUpCircleFilled",
30
+ "chevronsDown",
31
+ "chevronsLeft",
32
+ "chevronsRight",
33
+ "chevronsUp",
34
+ "clock",
35
+ "close",
36
+ "closeCircle",
37
+ "closeCircleFilled",
38
+ "closeOctagon",
39
+ "closeOctagonFilled",
40
+ "cloudArrowUp",
41
+ "code",
42
+ "copy",
43
+ "download",
44
+ "dot",
45
+ "ellipsis",
46
+ "ellipsisVertical",
47
+ "exclamationMark",
48
+ "externalLink",
49
+ "eye",
50
+ "eyeOff",
51
+ "file",
52
+ "fileInput",
53
+ "filter",
54
+ "folder",
55
+ "gridView",
56
+ "home",
57
+ "image",
58
+ "link",
59
+ "listView",
60
+ "lock",
61
+ "logIn",
62
+ "logOut",
63
+ "mail",
64
+ "map",
65
+ "megaphone",
66
+ "menu",
67
+ "minus",
68
+ "minusCircle",
69
+ "minusCircleFilled",
70
+ "mobile",
71
+ "move",
72
+ "notification",
73
+ "pencil",
74
+ "play",
75
+ "plus",
76
+ "plusCircle",
77
+ "plusCircleFilled",
78
+ "questionMark",
79
+ "questionMarkFilled",
80
+ "reload",
81
+ "search",
82
+ "send",
83
+ "settings",
84
+ "shield",
85
+ "shoppingCart",
86
+ "shuffle",
87
+ "sparkles",
88
+ "split",
89
+ "thumbUp",
90
+ "trashCan",
91
+ "upload",
92
+ "userProfile",
93
+ "warning",
94
+ "warningFilled",
95
+ "warningOctagon",
96
+ "warningOctagonFilled",
97
+ "warningTriangle",
98
+ "warningTriangleFilled",
99
+ "zoomIn",
100
+ "zoomOut"
101
+ ], a = {
102
+ arrowDown: () => import("./ArrowDown-Cl_pe6x-.js").then((e) => e.default),
103
+ arrowLeft: () => import("./ArrowLeft-D_pb7-h_.js").then((e) => e.default),
104
+ arrowRight: () => import("./ArrowRight-0rOUWttV.js").then((e) => e.default),
105
+ arrowUp: () => import("./ArrowUp-Kh8KmpaI.js").then((e) => e.default),
106
+ arrowUpDown: () => import("./ArrowUpDown-SqD4IUq6.js").then((e) => e.default),
107
+ attachment: () => import("./Attachment-DMa7gLVG.js").then((e) => e.default),
108
+ camera: () => import("./Camera-BisfqTvi.js").then((e) => e.default),
109
+ chat: () => import("./Chat-DQxghIy_.js").then((e) => e.default),
110
+ checkmark: () => import("./Checkmark-BKXPef9h.js").then((e) => e.default),
111
+ checkmarkCircle: () => import("./CheckmarkCircle-ChmWwela.js").then((e) => e.default),
112
+ checkmarkCircleFilled: () => import("./CheckmarkCircleFilled-Cqky64AP.js").then((e) => e.default),
113
+ chevronDown: () => import("./ChevronDown-CkkPhuqR.js").then((e) => e.default),
114
+ chevronDownCircle: () => import("./ChevronDownCircle-Bzjl-oG1.js").then((e) => e.default),
115
+ chevronDownCircleFilled: () => import("./ChevronDownCircleFilled-BZZIQ64Y.js").then((e) => e.default),
116
+ chevronLeft: () => import("./ChevronLeft-wuwMWp0P.js").then((e) => e.default),
117
+ chevronLeftCircle: () => import("./ChevronLeftCircle-C5GskojN.js").then((e) => e.default),
118
+ chevronLeftCircleFilled: () => import("./ChevronLeftCircleFilled-Fx_qs9nb.js").then((e) => e.default),
119
+ chevronRight: () => import("./ChevronRight-PCxxo-vc.js").then((e) => e.default),
120
+ chevronRightCircle: () => import("./ChevronRightCircle-Dkk7XKGY.js").then((e) => e.default),
121
+ chevronRightCircleFilled: () => import("./ChevronRightCircleFilled-DNCABv_Q.js").then((e) => e.default),
122
+ chevronUp: () => import("./ChevronUp-CjSX0sjw.js").then((e) => e.default),
123
+ chevronUpCircle: () => import("./ChevronUpCircle-DRUN_nTK.js").then((e) => e.default),
124
+ chevronUpCircleFilled: () => import("./ChevronUpCircleFilled-DehyXbZK.js").then((e) => e.default),
125
+ chevronsDown: () => import("./ChevronsDown-Lh2I5g0q.js").then((e) => e.default),
126
+ chevronsLeft: () => import("./ChevronsLeft-Dfl7AHgm.js").then((e) => e.default),
127
+ chevronsRight: () => import("./ChevronsRight-BN_IZIoy.js").then((e) => e.default),
128
+ chevronsUp: () => import("./ChevronsUp-BfPLVHMy.js").then((e) => e.default),
129
+ clock: () => import("./Clock-CSuR6yaZ.js").then((e) => e.default),
130
+ close: () => import("./Close-Q4saba4i.js").then((e) => e.default),
131
+ closeCircle: () => import("./CloseCircle-CvQ3NuZa.js").then((e) => e.default),
132
+ closeCircleFilled: () => import("./CloseCircleFilled-D2iZDSfq.js").then((e) => e.default),
133
+ closeOctagon: () => import("./CloseOctagon-DMLRi0q5.js").then((e) => e.default),
134
+ closeOctagonFilled: () => import("./CloseOctagonFilled-CMwoRq8j.js").then((e) => e.default),
135
+ cloudArrowUp: () => import("./CloudArrowUp-C2uwNhcc.js").then((e) => e.default),
136
+ code: () => import("./Code-ohqcUUQN.js").then((e) => e.default),
137
+ copy: () => import("./Copy-CpvqWx-k.js").then((e) => e.default),
138
+ dot: () => import("./Dot-Cumkgd-m.js").then((e) => e.default),
139
+ download: () => import("./Download-BJ_DfleZ.js").then((e) => e.default),
140
+ ellipsis: () => import("./Ellipsis-CpY1HejQ.js").then((e) => e.default),
141
+ ellipsisVertical: () => import("./EllipsisVertical-CEEYMsqG.js").then((e) => e.default),
142
+ exclamationMark: () => import("./ExclamationMark-exzrOBwL.js").then((e) => e.default),
143
+ externalLink: () => import("./ExternalLink-eS9P88AV.js").then((e) => e.default),
144
+ eye: () => import("./Eye-w9TfhO68.js").then((e) => e.default),
145
+ eyeOff: () => import("./EyeOff-DUEm4ukn.js").then((e) => e.default),
146
+ file: () => import("./File-Cybg1CXH.js").then((e) => e.default),
147
+ fileInput: () => import("./FileInput-1n1FWyo-.js").then((e) => e.default),
148
+ filter: () => import("./Filter-D9y9ugj2.js").then((e) => e.default),
149
+ folder: () => import("./Folder-CU8qYUHQ.js").then((e) => e.default),
150
+ gridView: () => import("./GridView-BPdfFYj_.js").then((e) => e.default),
151
+ home: () => import("./Home-ChwjHVJb.js").then((e) => e.default),
152
+ image: () => import("./Image-ChylX7xd.js").then((e) => e.default),
153
+ link: () => import("./Link-BKFFnXyT.js").then((e) => e.default),
154
+ listView: () => import("./ListView-U-9qAnWr.js").then((e) => e.default),
155
+ lock: () => import("./Lock-Bwz5_UjA.js").then((e) => e.default),
156
+ logIn: () => import("./LogIn-U5Bnfjit.js").then((e) => e.default),
157
+ logOut: () => import("./LogOut-CX1os0_t.js").then((e) => e.default),
158
+ mail: () => import("./Mail-B2VEFWPt.js").then((e) => e.default),
159
+ map: () => import("./Map-D5XWb3YY.js").then((e) => e.default),
160
+ megaphone: () => import("./Megaphone-Do5-_w2j.js").then((e) => e.default),
161
+ menu: () => import("./Menu-Brh_TbFf.js").then((e) => e.default),
162
+ minus: () => import("./Minus-CueXUCgb.js").then((e) => e.default),
163
+ minusCircle: () => import("./MinusCircle-DUmUcGyz.js").then((e) => e.default),
164
+ minusCircleFilled: () => import("./MinusCircleFilled-Cq7IrW21.js").then((e) => e.default),
165
+ mobile: () => import("./Mobile-D7KMmpMV.js").then((e) => e.default),
166
+ move: () => import("./Move-CX01BEbW.js").then((e) => e.default),
167
+ notification: () => import("./Notification-Ds-KwATs.js").then((e) => e.default),
168
+ pencil: () => import("./Pencil-ChoJx5W0.js").then((e) => e.default),
169
+ play: () => import("./Play-nTzXnaQP.js").then((e) => e.default),
170
+ plus: () => import("./Plus-Dh_kC216.js").then((e) => e.default),
171
+ plusCircle: () => import("./PlusCircle-CdRf8LPK.js").then((e) => e.default),
172
+ plusCircleFilled: () => import("./PlusCircleFilled-DfOMIUx7.js").then((e) => e.default),
173
+ questionMark: () => import("./QuestionMark-DOiTgLQi.js").then((e) => e.default),
174
+ questionMarkFilled: () => import("./QuestionMarkFilled-BBfYnj6K.js").then((e) => e.default),
175
+ reload: () => import("./Reload-_znxvsCW.js").then((e) => e.default),
176
+ search: () => import("./Search-BFX6nBPy.js").then((e) => e.default),
177
+ send: () => import("./Send-kLNJhN0M.js").then((e) => e.default),
178
+ settings: () => import("./Settings-Dx5Wxwg6.js").then((e) => e.default),
179
+ shield: () => import("./Shield-B3tfbLxv.js").then((e) => e.default),
180
+ shoppingCart: () => import("./ShoppingCart-DeZy9s4R.js").then((e) => e.default),
181
+ shuffle: () => import("./Shuffle-DPJBz-Nj.js").then((e) => e.default),
182
+ sparkles: () => import("./Sparkles-By12VrmM.js").then((e) => e.default),
183
+ split: () => import("./Split-ByvhCugq.js").then((e) => e.default),
184
+ thumbUp: () => import("./ThumbUp-BqCiXb5D.js").then((e) => e.default),
185
+ trashCan: () => import("./TrashCan-B1y4NnTj.js").then((e) => e.default),
186
+ upload: () => import("./Upload-DXqVc3Ix.js").then((e) => e.default),
187
+ userProfile: () => import("./UserProfile-DXmBd5b6.js").then((e) => e.default),
188
+ warning: () => import("./Warning-CE3ENqy1.js").then((e) => e.default),
189
+ warningFilled: () => import("./WarningFilled-B3b0eySj.js").then((e) => e.default),
190
+ warningOctagon: () => import("./WarningOctagon-DPF5eWBs.js").then((e) => e.default),
191
+ warningOctagonFilled: () => import("./WarningOctagonFilled-km4EmkS4.js").then((e) => e.default),
192
+ warningTriangle: () => import("./WarningTriangle-CKnOc38N.js").then((e) => e.default),
193
+ warningTriangleFilled: () => import("./WarningTriangleFilled-CbuoHfN_.js").then((e) => e.default),
194
+ zoomIn: () => import("./ZoomIn-BT-hX4R6.js").then((e) => e.default),
195
+ zoomOut: () => import("./ZoomOut-B6ILbkP8.js").then((e) => e.default)
723
196
  };
724
- async function Lt(t) {
197
+ async function v(e) {
725
198
  try {
726
- return t in M ? await M[t]() : (console.warn(`[ucds-icon] Icon "${t}" was not found. Falling back to questionMark.`), await M.questionMark());
727
- } catch (e) {
728
- return console.warn(`[ucds-icon] Failed to load "${t}". Falling back to questionMark.`, e), M.questionMark();
199
+ return e in a ? await a[e]() : (console.warn(`[ucds-icon] Icon "${e}" was not found. Falling back to questionMark.`), await a.questionMark());
200
+ } catch (t) {
201
+ return console.warn(`[ucds-icon] Failed to load "${e}". Falling back to questionMark.`, t), a.questionMark();
729
202
  }
730
203
  }
731
- const It = ":host{display:inline-flex;align-items:center;justify-content:center;height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content}.icon{display:inline-flex;width:24px;height:24px;color:currentColor}.icon svg{width:100%;height:100%;fill:currentColor}.icon--color-primary{color:var(--ucds-color-icon-primary)}.icon--color-primary-inverse{color:var(--ucds-color-icon-primary-inverse)}.icon--color-action-rest{color:var(--ucds-color-action-rest)}.icon--color-berry{color:var(--ucds-color-palette-berry-600)}.icon--color-disabled{color:var(--ucds-color-forms-input-element-disabled)}.icon--size-16{width:16px;height:16px}.icon--size-20{width:20px;height:20px}.icon--size-24{width:24px;height:24px}.icon--size-32{width:32px;height:32px}";
732
- var Dt = Object.defineProperty, jt = Object.getOwnPropertyDescriptor, b = (t, e, i, s) => {
733
- for (var r = s > 1 ? void 0 : s ? jt(e, i) : e, o = t.length - 1, n; o >= 0; o--)
734
- (n = t[o]) && (r = (s ? n(e, i, r) : n(r)) || r);
735
- return s && r && Dt(e, i, r), r;
204
+ const C = ":host{display:inline-flex;align-items:center;justify-content:center;height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content}.icon{display:inline-flex;width:24px;height:24px;color:currentColor}.icon svg{width:100%;height:100%;fill:currentColor}.icon--color-primary{color:var(--ucds-color-icon-primary)}.icon--color-primary-inverse{color:var(--ucds-color-icon-primary-inverse)}.icon--color-action-rest{color:var(--ucds-color-action-rest)}.icon--color-berry{color:var(--ucds-color-palette-berry-600)}.icon--color-disabled{color:var(--ucds-color-forms-input-element-disabled)}.icon--size-16{width:16px;height:16px}.icon--size-20{width:20px;height:20px}.icon--size-24{width:24px;height:24px}.icon--size-32{width:32px;height:32px}";
205
+ var y = Object.defineProperty, k = Object.getOwnPropertyDescriptor, r = (e, t, c, n) => {
206
+ for (var o = n > 1 ? void 0 : n ? k(t, c) : t, h = e.length - 1, p; h >= 0; h--)
207
+ (p = e[h]) && (o = (n ? p(t, c, o) : p(o)) || o);
208
+ return n && o && y(t, c, o), o;
736
209
  };
737
- let f = class extends st {
210
+ let i = class extends s {
738
211
  constructor() {
739
212
  super(...arguments), this.size = "24", this.accessible = !1, this.svg = null;
740
213
  }
741
- async willUpdate(t) {
742
- this.name === void 0 && (console.warn("[ucds-icon] No icon name was found. Falling back to questionMark."), this.name = "questionMark"), t.has("name") && this.name && (this.svg = await Lt(this.name));
214
+ async willUpdate(e) {
215
+ this.name === void 0 && (console.warn("[ucds-icon] No icon name was found. Falling back to questionMark."), this.name = "questionMark"), e.has("name") && this.name && (this.svg = await v(this.name));
743
216
  }
744
217
  render() {
745
- const t = {
218
+ const e = {
746
219
  icon: !0,
747
220
  [`icon--color-${this.color}`]: !!this.color,
748
221
  [`icon--size-${this.size}`]: !!this.size
749
222
  };
750
- let e = this.svg;
751
- return e && (this.accessible ? this.accessibleLabel ? e = e.replace(/<svg\b([^>]*)>/, `<svg$1 role="img" aria-label="${this.accessibleLabel}">`) : console.warn("[ucds-icon] Icon marked as accessible, but no accessible-label provided.") : e = e.replace(/<svg\b([^>]*)>/, '<svg$1 aria-hidden="true">')), ut`<span class=${zt(t)}>${bt(e)}</span>`;
223
+ let t = this.svg;
224
+ return t && (this.accessible ? this.accessibleLabel ? t = t.replace(/<svg\b([^>]*)>/, `<svg$1 role="img" aria-label="${this.accessibleLabel}">`) : console.warn("[ucds-icon] Icon marked as accessible, but no accessible-label provided.") : t = t.replace(/<svg\b([^>]*)>/, '<svg$1 aria-hidden="true">')), u`<span class=${w(e)}>${m(t)}</span>`;
752
225
  }
753
226
  };
754
- f.styles = [
755
- st.styles,
756
- pt(It)
227
+ i.styles = [
228
+ s.styles,
229
+ d(C)
757
230
  ];
758
- b([
759
- S({ type: String, attribute: "accessible-label" })
760
- ], f.prototype, "accessibleLabel", 2);
761
- b([
762
- S({ type: String })
763
- ], f.prototype, "color", 2);
764
- b([
765
- S({ type: String })
766
- ], f.prototype, "name", 2);
767
- b([
768
- S({ type: String })
769
- ], f.prototype, "size", 2);
770
- b([
771
- S({ type: Boolean })
772
- ], f.prototype, "accessible", 2);
773
- b([
774
- Rt()
775
- ], f.prototype, "svg", 2);
776
- f = b([
777
- wt("ucds-icon")
778
- ], f);
231
+ r([
232
+ l({ type: String, attribute: "accessible-label" })
233
+ ], i.prototype, "accessibleLabel", 2);
234
+ r([
235
+ l({ type: String })
236
+ ], i.prototype, "color", 2);
237
+ r([
238
+ l({ type: String })
239
+ ], i.prototype, "name", 2);
240
+ r([
241
+ l({ type: String })
242
+ ], i.prototype, "size", 2);
243
+ r([
244
+ l({ type: Boolean })
245
+ ], i.prototype, "accessible", 2);
246
+ r([
247
+ f()
248
+ ], i.prototype, "svg", 2);
249
+ i = r([
250
+ g("ucds-icon")
251
+ ], i);
779
252
  export {
780
- f as Icon
253
+ L as ICON_NAMES,
254
+ i as Icon,
255
+ a as iconLoaders,
256
+ v as loadIcon
781
257
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ucalgary-design-system/icon",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -10,9 +10,9 @@
10
10
  "require": "./index.js"
11
11
  }
12
12
  },
13
- "dependencies": {
14
- "@ucalgary-design-system/core": "^1.0.2",
15
- "@ucalgary-design-system/tokens": "^1.0.3",
13
+ "peerDependencies": {
14
+ "@ucalgary-design-system/core": "^1.0.4",
15
+ "@ucalgary-design-system/tokens": "^1.0.4",
16
16
  "lit": "^3.2.1"
17
17
  },
18
18
  "description": "A web component for Icon",