@internetarchive/elements 0.1.1-webdev-8151.3 → 0.1.1-webdev-8119.2

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/index.js DELETED
@@ -1,607 +0,0 @@
1
- import { css as w, LitElement as x, html as d } from "lit";
2
- const A = (s) => (t, e) => {
3
- e !== void 0 ? e.addInitializer((() => {
4
- customElements.define(s, t);
5
- })) : customElements.define(s, t);
6
- };
7
- const f = globalThis, S = f.ShadowRoot && (f.ShadyCSS === void 0 || f.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, O = Symbol(), $ = /* @__PURE__ */ new WeakMap();
8
- let U = class {
9
- constructor(t, e, r) {
10
- if (this._$cssResult$ = !0, r !== O) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
11
- this.cssText = t, this.t = e;
12
- }
13
- get styleSheet() {
14
- let t = this.o;
15
- const e = this.t;
16
- if (S && t === void 0) {
17
- const r = e !== void 0 && e.length === 1;
18
- r && (t = $.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && $.set(e, t));
19
- }
20
- return t;
21
- }
22
- toString() {
23
- return this.cssText;
24
- }
25
- };
26
- const k = (s) => new U(typeof s == "string" ? s : s + "", void 0, O), M = (s, t) => {
27
- if (S) s.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
28
- else for (const e of t) {
29
- const r = document.createElement("style"), i = f.litNonce;
30
- i !== void 0 && r.setAttribute("nonce", i), r.textContent = e.cssText, s.appendChild(r);
31
- }
32
- }, _ = S ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
33
- let e = "";
34
- for (const r of t.cssRules) e += r.cssText;
35
- return k(e);
36
- })(s) : s;
37
- const { is: L, defineProperty: j, getOwnPropertyDescriptor: R, getOwnPropertyNames: z, getOwnPropertySymbols: D, getPrototypeOf: I } = Object, y = globalThis, E = y.trustedTypes, B = E ? E.emptyScript : "", q = y.reactiveElementPolyfillSupport, p = (s, t) => s, g = { toAttribute(s, t) {
38
- switch (t) {
39
- case Boolean:
40
- s = s ? B : null;
41
- break;
42
- case Object:
43
- case Array:
44
- s = s == null ? s : JSON.stringify(s);
45
- }
46
- return s;
47
- }, fromAttribute(s, t) {
48
- let e = s;
49
- switch (t) {
50
- case Boolean:
51
- e = s !== null;
52
- break;
53
- case Number:
54
- e = s === null ? null : Number(s);
55
- break;
56
- case Object:
57
- case Array:
58
- try {
59
- e = JSON.parse(s);
60
- } catch {
61
- e = null;
62
- }
63
- }
64
- return e;
65
- } }, b = (s, t) => !L(s, t), P = { attribute: !0, type: String, converter: g, reflect: !1, useDefault: !1, hasChanged: b };
66
- Symbol.metadata ??= Symbol("metadata"), y.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
67
- class h extends HTMLElement {
68
- static addInitializer(t) {
69
- this._$Ei(), (this.l ??= []).push(t);
70
- }
71
- static get observedAttributes() {
72
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
73
- }
74
- static createProperty(t, e = P) {
75
- if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
76
- const r = Symbol(), i = this.getPropertyDescriptor(t, r, e);
77
- i !== void 0 && j(this.prototype, t, i);
78
- }
79
- }
80
- static getPropertyDescriptor(t, e, r) {
81
- const { get: i, set: o } = R(this.prototype, t) ?? { get() {
82
- return this[e];
83
- }, set(a) {
84
- this[e] = a;
85
- } };
86
- return { get: i, set(a) {
87
- const n = i?.call(this);
88
- o?.call(this, a), this.requestUpdate(t, n, r);
89
- }, configurable: !0, enumerable: !0 };
90
- }
91
- static getPropertyOptions(t) {
92
- return this.elementProperties.get(t) ?? P;
93
- }
94
- static _$Ei() {
95
- if (this.hasOwnProperty(p("elementProperties"))) return;
96
- const t = I(this);
97
- t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
98
- }
99
- static finalize() {
100
- if (this.hasOwnProperty(p("finalized"))) return;
101
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(p("properties"))) {
102
- const e = this.properties, r = [...z(e), ...D(e)];
103
- for (const i of r) this.createProperty(i, e[i]);
104
- }
105
- const t = this[Symbol.metadata];
106
- if (t !== null) {
107
- const e = litPropertyMetadata.get(t);
108
- if (e !== void 0) for (const [r, i] of e) this.elementProperties.set(r, i);
109
- }
110
- this._$Eh = /* @__PURE__ */ new Map();
111
- for (const [e, r] of this.elementProperties) {
112
- const i = this._$Eu(e, r);
113
- i !== void 0 && this._$Eh.set(i, e);
114
- }
115
- this.elementStyles = this.finalizeStyles(this.styles);
116
- }
117
- static finalizeStyles(t) {
118
- const e = [];
119
- if (Array.isArray(t)) {
120
- const r = new Set(t.flat(1 / 0).reverse());
121
- for (const i of r) e.unshift(_(i));
122
- } else t !== void 0 && e.push(_(t));
123
- return e;
124
- }
125
- static _$Eu(t, e) {
126
- const r = e.attribute;
127
- return r === !1 ? void 0 : typeof r == "string" ? r : typeof t == "string" ? t.toLowerCase() : void 0;
128
- }
129
- constructor() {
130
- super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
131
- }
132
- _$Ev() {
133
- this._$ES = new Promise(((t) => this.enableUpdating = t)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((t) => t(this)));
134
- }
135
- addController(t) {
136
- (this._$EO ??= /* @__PURE__ */ new Set()).add(t), this.renderRoot !== void 0 && this.isConnected && t.hostConnected?.();
137
- }
138
- removeController(t) {
139
- this._$EO?.delete(t);
140
- }
141
- _$E_() {
142
- const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
143
- for (const r of e.keys()) this.hasOwnProperty(r) && (t.set(r, this[r]), delete this[r]);
144
- t.size > 0 && (this._$Ep = t);
145
- }
146
- createRenderRoot() {
147
- const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
148
- return M(t, this.constructor.elementStyles), t;
149
- }
150
- connectedCallback() {
151
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((t) => t.hostConnected?.()));
152
- }
153
- enableUpdating(t) {
154
- }
155
- disconnectedCallback() {
156
- this._$EO?.forEach(((t) => t.hostDisconnected?.()));
157
- }
158
- attributeChangedCallback(t, e, r) {
159
- this._$AK(t, r);
160
- }
161
- _$ET(t, e) {
162
- const r = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, r);
163
- if (i !== void 0 && r.reflect === !0) {
164
- const o = (r.converter?.toAttribute !== void 0 ? r.converter : g).toAttribute(e, r.type);
165
- this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
166
- }
167
- }
168
- _$AK(t, e) {
169
- const r = this.constructor, i = r._$Eh.get(t);
170
- if (i !== void 0 && this._$Em !== i) {
171
- const o = r.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : g;
172
- this._$Em = i;
173
- const n = a.fromAttribute(e, o.type);
174
- this[i] = n ?? this._$Ej?.get(i) ?? n, this._$Em = null;
175
- }
176
- }
177
- requestUpdate(t, e, r) {
178
- if (t !== void 0) {
179
- const i = this.constructor, o = this[t];
180
- if (r ??= i.getPropertyOptions(t), !((r.hasChanged ?? b)(o, e) || r.useDefault && r.reflect && o === this._$Ej?.get(t) && !this.hasAttribute(i._$Eu(t, r)))) return;
181
- this.C(t, e, r);
182
- }
183
- this.isUpdatePending === !1 && (this._$ES = this._$EP());
184
- }
185
- C(t, e, { useDefault: r, reflect: i, wrapped: o }, a) {
186
- r && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, a ?? e ?? this[t]), o !== !0 || a !== void 0) || (this._$AL.has(t) || (this.hasUpdated || r || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
187
- }
188
- async _$EP() {
189
- this.isUpdatePending = !0;
190
- try {
191
- await this._$ES;
192
- } catch (e) {
193
- Promise.reject(e);
194
- }
195
- const t = this.scheduleUpdate();
196
- return t != null && await t, !this.isUpdatePending;
197
- }
198
- scheduleUpdate() {
199
- return this.performUpdate();
200
- }
201
- performUpdate() {
202
- if (!this.isUpdatePending) return;
203
- if (!this.hasUpdated) {
204
- if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
205
- for (const [i, o] of this._$Ep) this[i] = o;
206
- this._$Ep = void 0;
207
- }
208
- const r = this.constructor.elementProperties;
209
- if (r.size > 0) for (const [i, o] of r) {
210
- const { wrapped: a } = o, n = this[i];
211
- a !== !0 || this._$AL.has(i) || n === void 0 || this.C(i, void 0, o, n);
212
- }
213
- }
214
- let t = !1;
215
- const e = this._$AL;
216
- try {
217
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), this._$EO?.forEach(((r) => r.hostUpdate?.())), this.update(e)) : this._$EM();
218
- } catch (r) {
219
- throw t = !1, this._$EM(), r;
220
- }
221
- t && this._$AE(e);
222
- }
223
- willUpdate(t) {
224
- }
225
- _$AE(t) {
226
- this._$EO?.forEach(((e) => e.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
227
- }
228
- _$EM() {
229
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
230
- }
231
- get updateComplete() {
232
- return this.getUpdateComplete();
233
- }
234
- getUpdateComplete() {
235
- return this._$ES;
236
- }
237
- shouldUpdate(t) {
238
- return !0;
239
- }
240
- update(t) {
241
- this._$Eq &&= this._$Eq.forEach(((e) => this._$ET(e, this[e]))), this._$EM();
242
- }
243
- updated(t) {
244
- }
245
- firstUpdated(t) {
246
- }
247
- }
248
- h.elementStyles = [], h.shadowRootOptions = { mode: "open" }, h[p("elementProperties")] = /* @__PURE__ */ new Map(), h[p("finalized")] = /* @__PURE__ */ new Map(), q?.({ ReactiveElement: h }), (y.reactiveElementVersions ??= []).push("2.1.1");
249
- const N = { attribute: !0, type: String, converter: g, reflect: !1, hasChanged: b }, H = (s = N, t, e) => {
250
- const { kind: r, metadata: i } = e;
251
- let o = globalThis.litPropertyMetadata.get(i);
252
- if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), r === "setter" && ((s = Object.create(s)).wrapped = !0), o.set(e.name, s), r === "accessor") {
253
- const { name: a } = e;
254
- return { set(n) {
255
- const m = t.get.call(this);
256
- t.set.call(this, n), this.requestUpdate(a, m, s);
257
- }, init(n) {
258
- return n !== void 0 && this.C(a, void 0, s, n), n;
259
- } };
260
- }
261
- if (r === "setter") {
262
- const { name: a } = e;
263
- return function(n) {
264
- const m = this[a];
265
- t.call(this, n), this.requestUpdate(a, m, s);
266
- };
267
- }
268
- throw Error("Unsupported decorator location: " + r);
269
- };
270
- function u(s) {
271
- return (t, e) => typeof e == "object" ? H(s, t, e) : ((r, i, o) => {
272
- const a = i.hasOwnProperty(o);
273
- return i.constructor.createProperty(o, r), a ? Object.getOwnPropertyDescriptor(i, o) : void 0;
274
- })(s, t, e);
275
- }
276
- const J = (s) => typeof s != "string" && "strTag" in s, K = (s, t, e) => {
277
- let r = s[0];
278
- for (let i = 1; i < s.length; i++)
279
- r += t[i - 1], r += s[i];
280
- return r;
281
- };
282
- const V = ((s) => J(s) ? K(s.strings, s.values) : s);
283
- let v = V;
284
- class W {
285
- constructor() {
286
- this.settled = !1, this.promise = new Promise((t, e) => {
287
- this._resolve = t, this._reject = e;
288
- });
289
- }
290
- resolve(t) {
291
- this.settled = !0, this._resolve(t);
292
- }
293
- reject(t) {
294
- this.settled = !0, this._reject(t);
295
- }
296
- }
297
- for (let s = 0; s < 256; s++)
298
- (s >> 4 & 15).toString(16) + (s & 15).toString(16);
299
- let Y = new W();
300
- Y.resolve();
301
- const Z = (s, t, e) => {
302
- for (const r of t) if (r[0] === s) return (0, r[1])();
303
- return e?.();
304
- }, T = w`
305
- :host {
306
- /*
307
- BASE STYLES
308
- Default fallback values for theme styles. Assumes 16px root font size.
309
- To adjust values, use theme styles below.
310
- */
311
-
312
- /* Typography */
313
- --default-font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
314
-
315
- /* Sizing */
316
- --default-icon-width: 1.25rem;
317
-
318
- /* Colors */
319
- --true-white: #fff;
320
- --off-white: #fbfbfd;
321
- --dark-gray: #2c2c2c;
322
- --light-gray: #666;
323
- --classic-red: #e51c23;
324
- --mint-green: #31a481;
325
- --navy-blue: #194880;
326
- --bright-blue: #4b64ff;
327
-
328
- /*
329
- ADJUSTABLE STYLES
330
- To be adjusted by setting i.e. --ia-theme-link-color at the :root or component level.
331
- */
332
-
333
- /* Text */
334
- --base-font-family: var(
335
- --ia-theme-base-font-family,
336
- var(--default-font-family)
337
- );
338
- --primary-text-color: var(--ia-theme-primary-text-color, var(--dark-gray));
339
- --secondary-text-color: var(
340
- --ia-theme-secondary-text-color,
341
- var(--light-gray)
342
- );
343
- --link-color: var(--ia-theme-link-color, var(--bright-blue));
344
-
345
- /* Sizing */
346
- --icon-width: var(--ia-theme-icon-width, var(--default-icon-width));
347
-
348
- /* Backgrounds and fills */
349
- --primary-background-color: var(
350
- --ia-theme-primary-background-color,
351
- var(--off-white)
352
- );
353
- --secondary-background-color: var(
354
- --ia-theme-secondary-background-color,
355
- var(--true-white)
356
- );
357
-
358
- /* State colors */
359
- --primary-cta-fill: var(--ia-theme-primary-cta-fill, var(--navy-blue));
360
- --primary-cta-text-color: var(
361
- --ia-theme-primary-cta-text-color,
362
- var(--true-white)
363
- );
364
- --color-success: var(--ia-theme-color-success, var(--mint-green));
365
- --color-danger: var(--ia-theme-color-danger, var(--classic-red));
366
- }
367
- `;
368
- var F = Object.defineProperty, G = Object.getOwnPropertyDescriptor, c = (s, t, e, r) => {
369
- for (var i = r > 1 ? void 0 : r ? G(t, e) : t, o = s.length - 1, a; o >= 0; o--)
370
- (a = s[o]) && (i = (r ? a(t, e, i) : a(i)) || i);
371
- return r && i && F(t, e, i), i;
372
- };
373
- let l = class extends x {
374
- constructor() {
375
- super(...arguments), this.loadingTitle = v("Loading..."), this.successTitle = v("Success"), this.errorTitle = v("Error"), this.loadingStyle = "ring-dots", this.mode = "loading";
376
- }
377
- render() {
378
- return d`${Z(this.mode, [
379
- ["loading", () => this.loadingIndicatorTemplate],
380
- ["success", () => this.successIndicatorTemplate],
381
- ["error", () => this.errorIndicatorTemplate]
382
- ])}`;
383
- }
384
- /** A circular loading indicator to render when processing */
385
- get loadingIndicatorTemplate() {
386
- return d`
387
- <svg
388
- class="loading-indicator"
389
- viewBox="0 0 120 120"
390
- preserveAspectRatio="none"
391
- version="1.1"
392
- xmlns="http://www.w3.org/2000/svg"
393
- xmlns:xlink="http://www.w3.org/1999/xlink"
394
- role="status"
395
- >
396
- <title>${this.loadingTitle}</title>
397
- <g stroke="none" stroke-width="1" fill-rule="evenodd">
398
- <path
399
- class="loading-ring"
400
- d="M60,10 C69.8019971,10 78.9452178,12.8205573 86.6623125,17.6943223 L76.4086287,27.9484118 C71.4880919,25.4243078 65.9103784,24 60,24 C40.117749,24 24,40.117749 24,60 C24,79.882251 40.117749,96 60,96 C79.882251,96 96,79.882251 96,60 C96,53.3014663 94.1704984,47.0302355 90.9839104,41.6587228 L101.110332,31.5326452 C106.715332,39.6116982 110,49.4222615 110,60 C110,87.6142375 87.6142375,110 60,110 C32.3857625,110 10,87.6142375 10,60 C10,32.3857625 32.3857625,10 60,10 Z"
401
- ></path>
402
- <g
403
- class="loading-dots ${this.shouldShowLoadingDots ? "" : "hidden"}"
404
- transform="translate(40.000000, 55.000000)"
405
- >
406
- <circle id="left-dot" cx="5" cy="5" r="5"></circle>
407
- <circle id="middle-dot" cx="20" cy="5" r="5"></circle>
408
- <circle id="right-dot" cx="35" cy="5" r="5"></circle>
409
- </g>
410
- </g>
411
- </svg>
412
- `;
413
- }
414
- /** A check mark to render on success */
415
- get successIndicatorTemplate() {
416
- return d`
417
- <svg
418
- class="success-indicator"
419
- viewBox="0 0 120 120"
420
- preserveAspectRatio="none"
421
- version="1.1"
422
- xmlns="http://www.w3.org/2000/svg"
423
- xmlns:xlink="http://www.w3.org/1999/xlink"
424
- role="status"
425
- >
426
- <title>${this.successTitle}</title>
427
- <g stroke="none" stroke-width="1" fill-rule="evenodd">
428
- <path
429
- class="success-icon"
430
- d="M60,10 C70.5816709,10 80.3955961,13.2871104 88.4763646,18.8959201 L78.3502633,29.0214223 C72.9767592,25.8315427 66.7022695,24 60,24 C40.117749,24 24,40.117749 24,60 C24,79.882251 40.117749,96 60,96 C79.882251,96 96,79.882251 96,60 L95.995,59.46 L108.327675,47.128668 C109.350926,50.9806166 109.925886,55.015198 109.993301,59.1731586 L110,60 C110,87.6142375 87.6142375,110 60,110 C32.3857625,110 10,87.6142375 10,60 C10,32.3857625 32.3857625,10 60,10 Z"
431
- ></path>
432
- <polygon
433
- class="success-icon"
434
- transform="translate(75.000000, 41.500000) rotate(44.000000) translate(-75.000000, -41.500000) "
435
- points="96 85 54 85 54 65 76 64.999 76 -2 96 -2"
436
- ></polygon>
437
- </g>
438
- </svg>
439
- `;
440
- }
441
- /** An "!" to render on error */
442
- get errorIndicatorTemplate() {
443
- return d`
444
- <svg
445
- class="error-indicator"
446
- viewBox="0 0 120 120"
447
- preserveAspectRatio="none"
448
- version="1.1"
449
- xmlns="http://www.w3.org/2000/svg"
450
- xmlns:xlink="http://www.w3.org/1999/xlink"
451
- role="status"
452
- >
453
- <title>${this.errorTitle}</title>
454
- <path
455
- class="error-icon"
456
- d="m56.4612493 8.80450354 41.8901185 75.94632926c1.7706782 2.8433173 2.1150372 5.2623412 1.0330766 7.2570716-1.0819604 1.9947304-3.26978 2.9920956-6.5634587 2.9920956h-85.69973905c-3.29367873 0-5.46954894-.9973652-6.52761065-2.9920956-1.0580617-1.9947304-.70175345-4.4137543 1.06892476-7.2570716l41.89011844-75.12308969c1.8184757-2.84331737 3.9693609-4.37738627 6.4526556-4.60220671s4.6341799 1.03483527 6.4526556 3.77896714zm28.5387507 75.19549646-35.037482-62-34.962518 62zm-31-34.7484359v-10.2515641h-8v10.2515641l2.089172 14.7484359h3.8184713zm-8 19.7484359v8h8v-8z"
457
- />
458
- </svg>
459
- `;
460
- }
461
- /* Whether to include the dots in the loading indicator */
462
- get shouldShowLoadingDots() {
463
- return this.loadingStyle !== "ring";
464
- }
465
- static get styles() {
466
- return [
467
- T,
468
- w`
469
- :host {
470
- --indicator-width--: var(--icon-width);
471
-
472
- /* Loading */
473
- --loading-ring-color--: var(--primary-text-color);
474
- --loading-dot-color--: var(--primary-text-color);
475
-
476
- /* Success */
477
- --success-icon-color--: var(--color-success);
478
-
479
- /* Error */
480
- --error-icon-color--: var(--color-danger);
481
-
482
- display: inline-block;
483
- width: var(--indicator-width--);
484
- }
485
-
486
- .success-icon {
487
- fill: var(--success-icon-color--);
488
- }
489
-
490
- .error-icon {
491
- fill: var(--error-icon-color--);
492
- }
493
-
494
- .loading-ring {
495
- fill: var(--loading-ring-color--);
496
- animation: rotate 1.3s infinite linear;
497
- transform-origin: 50px 50px;
498
- transform-box: fill-box;
499
- }
500
-
501
- .loading-dots {
502
- fill: var(--loading-dot-color--);
503
- transition: opacity 0.25s ease-out;
504
- }
505
-
506
- .loading-dots.hidden {
507
- display: none;
508
- }
509
-
510
- .loading-dots > * {
511
- opacity: 0;
512
- animation: dot 1.3s infinite;
513
- }
514
-
515
- .loading-dots #left-dot {
516
- animation-delay: 0.2s;
517
- }
518
-
519
- .loading-dots #middle-dot {
520
- animation-delay: 0.4s;
521
- }
522
-
523
- .loading-dots #right-dot {
524
- animation-delay: 0.6s;
525
- }
526
-
527
- @keyframes rotate {
528
- 0% {
529
- transform: rotate(-360deg);
530
- }
531
- 100% {
532
- /* This frame is supposed to be inferred, but Safari doesn't rotate it unless we're explicit */
533
- transform: rotate(0deg);
534
- }
535
- }
536
-
537
- @keyframes dot {
538
- 0% {
539
- opacity: 0;
540
- }
541
- 25% {
542
- opacity: 1;
543
- }
544
- 100% {
545
- opacity: 0;
546
- }
547
- }
548
- `
549
- ];
550
- }
551
- };
552
- c([
553
- u({ type: String })
554
- ], l.prototype, "loadingTitle", 2);
555
- c([
556
- u({ type: String })
557
- ], l.prototype, "successTitle", 2);
558
- c([
559
- u({ type: String })
560
- ], l.prototype, "errorTitle", 2);
561
- c([
562
- u({ type: String })
563
- ], l.prototype, "loadingStyle", 2);
564
- c([
565
- u({ type: String })
566
- ], l.prototype, "mode", 2);
567
- l = c([
568
- A("ia-status-indicator")
569
- ], l);
570
- var Q = Object.getOwnPropertyDescriptor, X = (s, t, e, r) => {
571
- for (var i = r > 1 ? void 0 : r ? Q(t, e) : t, o = s.length - 1, a; o >= 0; o--)
572
- (a = s[o]) && (i = a(i) || i);
573
- return i;
574
- };
575
- let C = class extends x {
576
- render() {
577
- return d`
578
- <button>
579
- <slot></slot>
580
- </button>
581
- `;
582
- }
583
- static get styles() {
584
- return [
585
- T,
586
- w`
587
- :host {
588
- --primary-background-color--: var(--primary-cta-fill);
589
- --primary-text-color--: var(--primary-cta-text-color);
590
- }
591
-
592
- button {
593
- padding: 8px 16px;
594
- background-color: var(--primary-background-color--);
595
- color: var(--primary-text-color--);
596
- }
597
- `
598
- ];
599
- }
600
- };
601
- C = X([
602
- A("ia-button")
603
- ], C);
604
- export {
605
- C as IAButton,
606
- l as IAStatusIndicator
607
- };