@folkehelseinstituttet/designsystem 0.1.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.
@@ -0,0 +1,1259 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const M = globalThis, V = M.ShadowRoot && (M.ShadyCSS === void 0 || M.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, W = Symbol(), J = /* @__PURE__ */ new WeakMap();
7
+ let ar = class {
8
+ constructor(r, e, o) {
9
+ if (this._$cssResult$ = !0, o !== W) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
+ this.cssText = r, this.t = e;
11
+ }
12
+ get styleSheet() {
13
+ let r = this.o;
14
+ const e = this.t;
15
+ if (V && r === void 0) {
16
+ const o = e !== void 0 && e.length === 1;
17
+ o && (r = J.get(e)), r === void 0 && ((this.o = r = new CSSStyleSheet()).replaceSync(this.cssText), o && J.set(e, r));
18
+ }
19
+ return r;
20
+ }
21
+ toString() {
22
+ return this.cssText;
23
+ }
24
+ };
25
+ const sr = (a) => new ar(typeof a == "string" ? a : a + "", void 0, W), dr = (a, ...r) => {
26
+ const e = a.length === 1 ? a[0] : r.reduce((o, t, c) => o + ((l) => {
27
+ if (l._$cssResult$ === !0) return l.cssText;
28
+ if (typeof l == "number") return l;
29
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + l + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
+ })(t) + a[c + 1], a[0]);
31
+ return new ar(e, a, W);
32
+ }, ur = (a, r) => {
33
+ if (V) a.adoptedStyleSheets = r.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
+ else for (const e of r) {
35
+ const o = document.createElement("style"), t = M.litNonce;
36
+ t !== void 0 && o.setAttribute("nonce", t), o.textContent = e.cssText, a.appendChild(o);
37
+ }
38
+ }, K = V ? (a) => a : (a) => a instanceof CSSStyleSheet ? ((r) => {
39
+ let e = "";
40
+ for (const o of r.cssRules) e += o.cssText;
41
+ return sr(e);
42
+ })(a) : a;
43
+ /**
44
+ * @license
45
+ * Copyright 2017 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ */
48
+ const { is: hr, defineProperty: vr, getOwnPropertyDescriptor: br, getOwnPropertyNames: gr, getOwnPropertySymbols: fr, getPrototypeOf: pr } = Object, f = globalThis, Z = f.trustedTypes, yr = Z ? Z.emptyScript : "", L = f.reactiveElementPolyfillSupport, S = (a, r) => a, N = { toAttribute(a, r) {
49
+ switch (r) {
50
+ case Boolean:
51
+ a = a ? yr : null;
52
+ break;
53
+ case Object:
54
+ case Array:
55
+ a = a == null ? a : JSON.stringify(a);
56
+ }
57
+ return a;
58
+ }, fromAttribute(a, r) {
59
+ let e = a;
60
+ switch (r) {
61
+ case Boolean:
62
+ e = a !== null;
63
+ break;
64
+ case Number:
65
+ e = a === null ? null : Number(a);
66
+ break;
67
+ case Object:
68
+ case Array:
69
+ try {
70
+ e = JSON.parse(a);
71
+ } catch {
72
+ e = null;
73
+ }
74
+ }
75
+ return e;
76
+ } }, q = (a, r) => !hr(a, r), G = { attribute: !0, type: String, converter: N, reflect: !1, hasChanged: q };
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), f.litPropertyMetadata ?? (f.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
+ class _ extends HTMLElement {
79
+ static addInitializer(r) {
80
+ this._$Ei(), (this.l ?? (this.l = [])).push(r);
81
+ }
82
+ static get observedAttributes() {
83
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
+ }
85
+ static createProperty(r, e = G) {
86
+ if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(r, e), !e.noAccessor) {
87
+ const o = Symbol(), t = this.getPropertyDescriptor(r, o, e);
88
+ t !== void 0 && vr(this.prototype, r, t);
89
+ }
90
+ }
91
+ static getPropertyDescriptor(r, e, o) {
92
+ const { get: t, set: c } = br(this.prototype, r) ?? { get() {
93
+ return this[e];
94
+ }, set(l) {
95
+ this[e] = l;
96
+ } };
97
+ return { get() {
98
+ return t == null ? void 0 : t.call(this);
99
+ }, set(l) {
100
+ const i = t == null ? void 0 : t.call(this);
101
+ c.call(this, l), this.requestUpdate(r, i, o);
102
+ }, configurable: !0, enumerable: !0 };
103
+ }
104
+ static getPropertyOptions(r) {
105
+ return this.elementProperties.get(r) ?? G;
106
+ }
107
+ static _$Ei() {
108
+ if (this.hasOwnProperty(S("elementProperties"))) return;
109
+ const r = pr(this);
110
+ r.finalize(), r.l !== void 0 && (this.l = [...r.l]), this.elementProperties = new Map(r.elementProperties);
111
+ }
112
+ static finalize() {
113
+ if (this.hasOwnProperty(S("finalized"))) return;
114
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(S("properties"))) {
115
+ const e = this.properties, o = [...gr(e), ...fr(e)];
116
+ for (const t of o) this.createProperty(t, e[t]);
117
+ }
118
+ const r = this[Symbol.metadata];
119
+ if (r !== null) {
120
+ const e = litPropertyMetadata.get(r);
121
+ if (e !== void 0) for (const [o, t] of e) this.elementProperties.set(o, t);
122
+ }
123
+ this._$Eh = /* @__PURE__ */ new Map();
124
+ for (const [e, o] of this.elementProperties) {
125
+ const t = this._$Eu(e, o);
126
+ t !== void 0 && this._$Eh.set(t, e);
127
+ }
128
+ this.elementStyles = this.finalizeStyles(this.styles);
129
+ }
130
+ static finalizeStyles(r) {
131
+ const e = [];
132
+ if (Array.isArray(r)) {
133
+ const o = new Set(r.flat(1 / 0).reverse());
134
+ for (const t of o) e.unshift(K(t));
135
+ } else r !== void 0 && e.push(K(r));
136
+ return e;
137
+ }
138
+ static _$Eu(r, e) {
139
+ const o = e.attribute;
140
+ return o === !1 ? void 0 : typeof o == "string" ? o : typeof r == "string" ? r.toLowerCase() : void 0;
141
+ }
142
+ constructor() {
143
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
144
+ }
145
+ _$Ev() {
146
+ var r;
147
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (r = this.constructor.l) == null || r.forEach((e) => e(this));
148
+ }
149
+ addController(r) {
150
+ var e;
151
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(r), this.renderRoot !== void 0 && this.isConnected && ((e = r.hostConnected) == null || e.call(r));
152
+ }
153
+ removeController(r) {
154
+ var e;
155
+ (e = this._$EO) == null || e.delete(r);
156
+ }
157
+ _$E_() {
158
+ const r = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
159
+ for (const o of e.keys()) this.hasOwnProperty(o) && (r.set(o, this[o]), delete this[o]);
160
+ r.size > 0 && (this._$Ep = r);
161
+ }
162
+ createRenderRoot() {
163
+ const r = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
164
+ return ur(r, this.constructor.elementStyles), r;
165
+ }
166
+ connectedCallback() {
167
+ var r;
168
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (r = this._$EO) == null || r.forEach((e) => {
169
+ var o;
170
+ return (o = e.hostConnected) == null ? void 0 : o.call(e);
171
+ });
172
+ }
173
+ enableUpdating(r) {
174
+ }
175
+ disconnectedCallback() {
176
+ var r;
177
+ (r = this._$EO) == null || r.forEach((e) => {
178
+ var o;
179
+ return (o = e.hostDisconnected) == null ? void 0 : o.call(e);
180
+ });
181
+ }
182
+ attributeChangedCallback(r, e, o) {
183
+ this._$AK(r, o);
184
+ }
185
+ _$EC(r, e) {
186
+ var c;
187
+ const o = this.constructor.elementProperties.get(r), t = this.constructor._$Eu(r, o);
188
+ if (t !== void 0 && o.reflect === !0) {
189
+ const l = (((c = o.converter) == null ? void 0 : c.toAttribute) !== void 0 ? o.converter : N).toAttribute(e, o.type);
190
+ this._$Em = r, l == null ? this.removeAttribute(t) : this.setAttribute(t, l), this._$Em = null;
191
+ }
192
+ }
193
+ _$AK(r, e) {
194
+ var c;
195
+ const o = this.constructor, t = o._$Eh.get(r);
196
+ if (t !== void 0 && this._$Em !== t) {
197
+ const l = o.getPropertyOptions(t), i = typeof l.converter == "function" ? { fromAttribute: l.converter } : ((c = l.converter) == null ? void 0 : c.fromAttribute) !== void 0 ? l.converter : N;
198
+ this._$Em = t, this[t] = i.fromAttribute(e, l.type), this._$Em = null;
199
+ }
200
+ }
201
+ requestUpdate(r, e, o) {
202
+ if (r !== void 0) {
203
+ if (o ?? (o = this.constructor.getPropertyOptions(r)), !(o.hasChanged ?? q)(this[r], e)) return;
204
+ this.P(r, e, o);
205
+ }
206
+ this.isUpdatePending === !1 && (this._$ES = this._$ET());
207
+ }
208
+ P(r, e, o) {
209
+ this._$AL.has(r) || this._$AL.set(r, e), o.reflect === !0 && this._$Em !== r && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(r);
210
+ }
211
+ async _$ET() {
212
+ this.isUpdatePending = !0;
213
+ try {
214
+ await this._$ES;
215
+ } catch (e) {
216
+ Promise.reject(e);
217
+ }
218
+ const r = this.scheduleUpdate();
219
+ return r != null && await r, !this.isUpdatePending;
220
+ }
221
+ scheduleUpdate() {
222
+ return this.performUpdate();
223
+ }
224
+ performUpdate() {
225
+ var o;
226
+ if (!this.isUpdatePending) return;
227
+ if (!this.hasUpdated) {
228
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
229
+ for (const [c, l] of this._$Ep) this[c] = l;
230
+ this._$Ep = void 0;
231
+ }
232
+ const t = this.constructor.elementProperties;
233
+ if (t.size > 0) for (const [c, l] of t) l.wrapped !== !0 || this._$AL.has(c) || this[c] === void 0 || this.P(c, this[c], l);
234
+ }
235
+ let r = !1;
236
+ const e = this._$AL;
237
+ try {
238
+ r = this.shouldUpdate(e), r ? (this.willUpdate(e), (o = this._$EO) == null || o.forEach((t) => {
239
+ var c;
240
+ return (c = t.hostUpdate) == null ? void 0 : c.call(t);
241
+ }), this.update(e)) : this._$EU();
242
+ } catch (t) {
243
+ throw r = !1, this._$EU(), t;
244
+ }
245
+ r && this._$AE(e);
246
+ }
247
+ willUpdate(r) {
248
+ }
249
+ _$AE(r) {
250
+ var e;
251
+ (e = this._$EO) == null || e.forEach((o) => {
252
+ var t;
253
+ return (t = o.hostUpdated) == null ? void 0 : t.call(o);
254
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(r)), this.updated(r);
255
+ }
256
+ _$EU() {
257
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
258
+ }
259
+ get updateComplete() {
260
+ return this.getUpdateComplete();
261
+ }
262
+ getUpdateComplete() {
263
+ return this._$ES;
264
+ }
265
+ shouldUpdate(r) {
266
+ return !0;
267
+ }
268
+ update(r) {
269
+ this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
270
+ }
271
+ updated(r) {
272
+ }
273
+ firstUpdated(r) {
274
+ }
275
+ }
276
+ _.elementStyles = [], _.shadowRootOptions = { mode: "open" }, _[S("elementProperties")] = /* @__PURE__ */ new Map(), _[S("finalized")] = /* @__PURE__ */ new Map(), L == null || L({ ReactiveElement: _ }), (f.reactiveElementVersions ?? (f.reactiveElementVersions = [])).push("2.0.4");
277
+ /**
278
+ * @license
279
+ * Copyright 2017 Google LLC
280
+ * SPDX-License-Identifier: BSD-3-Clause
281
+ */
282
+ const w = globalThis, R = w.trustedTypes, Q = R ? R.createPolicy("lit-html", { createHTML: (a) => a }) : void 0, lr = "$lit$", g = `lit$${Math.random().toFixed(9).slice(2)}$`, cr = "?" + g, mr = `<${cr}>`, $ = document, P = () => $.createComment(""), U = (a) => a === null || typeof a != "object" && typeof a != "function", F = Array.isArray, $r = (a) => F(a) || typeof (a == null ? void 0 : a[Symbol.iterator]) == "function", D = `[
283
+ \f\r]`, E = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, X = /-->/g, Y = />/g, y = RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^
284
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), rr = /'/g, er = /"/g, nr = /^(?:script|style|textarea|title)$/i, _r = (a) => (r, ...e) => ({ _$litType$: a, strings: r, values: e }), kr = _r(1), k = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), or = /* @__PURE__ */ new WeakMap(), m = $.createTreeWalker($, 129);
285
+ function ir(a, r) {
286
+ if (!F(a) || !a.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
+ return Q !== void 0 ? Q.createHTML(r) : r;
288
+ }
289
+ const xr = (a, r) => {
290
+ const e = a.length - 1, o = [];
291
+ let t, c = r === 2 ? "<svg>" : r === 3 ? "<math>" : "", l = E;
292
+ for (let i = 0; i < e; i++) {
293
+ const n = a[i];
294
+ let d, h, s = -1, v = 0;
295
+ for (; v < n.length && (l.lastIndex = v, h = l.exec(n), h !== null); ) v = l.lastIndex, l === E ? h[1] === "!--" ? l = X : h[1] !== void 0 ? l = Y : h[2] !== void 0 ? (nr.test(h[2]) && (t = RegExp("</" + h[2], "g")), l = y) : h[3] !== void 0 && (l = y) : l === y ? h[0] === ">" ? (l = t ?? E, s = -1) : h[1] === void 0 ? s = -2 : (s = l.lastIndex - h[2].length, d = h[1], l = h[3] === void 0 ? y : h[3] === '"' ? er : rr) : l === er || l === rr ? l = y : l === X || l === Y ? l = E : (l = y, t = void 0);
296
+ const b = l === y && a[i + 1].startsWith("/>") ? " " : "";
297
+ c += l === E ? n + mr : s >= 0 ? (o.push(d), n.slice(0, s) + lr + n.slice(s) + g + b) : n + g + (s === -2 ? i : b);
298
+ }
299
+ return [ir(a, c + (a[e] || "<?>") + (r === 2 ? "</svg>" : r === 3 ? "</math>" : "")), o];
300
+ };
301
+ class O {
302
+ constructor({ strings: r, _$litType$: e }, o) {
303
+ let t;
304
+ this.parts = [];
305
+ let c = 0, l = 0;
306
+ const i = r.length - 1, n = this.parts, [d, h] = xr(r, e);
307
+ if (this.el = O.createElement(d, o), m.currentNode = this.el.content, e === 2 || e === 3) {
308
+ const s = this.el.content.firstChild;
309
+ s.replaceWith(...s.childNodes);
310
+ }
311
+ for (; (t = m.nextNode()) !== null && n.length < i; ) {
312
+ if (t.nodeType === 1) {
313
+ if (t.hasAttributes()) for (const s of t.getAttributeNames()) if (s.endsWith(lr)) {
314
+ const v = h[l++], b = t.getAttribute(s).split(g), z = /([.?@])?(.*)/.exec(v);
315
+ n.push({ type: 1, index: c, name: z[2], strings: b, ctor: z[1] === "." ? Er : z[1] === "?" ? Sr : z[1] === "@" ? wr : B }), t.removeAttribute(s);
316
+ } else s.startsWith(g) && (n.push({ type: 6, index: c }), t.removeAttribute(s));
317
+ if (nr.test(t.tagName)) {
318
+ const s = t.textContent.split(g), v = s.length - 1;
319
+ if (v > 0) {
320
+ t.textContent = R ? R.emptyScript : "";
321
+ for (let b = 0; b < v; b++) t.append(s[b], P()), m.nextNode(), n.push({ type: 2, index: ++c });
322
+ t.append(s[v], P());
323
+ }
324
+ }
325
+ } else if (t.nodeType === 8) if (t.data === cr) n.push({ type: 2, index: c });
326
+ else {
327
+ let s = -1;
328
+ for (; (s = t.data.indexOf(g, s + 1)) !== -1; ) n.push({ type: 7, index: c }), s += g.length - 1;
329
+ }
330
+ c++;
331
+ }
332
+ }
333
+ static createElement(r, e) {
334
+ const o = $.createElement("template");
335
+ return o.innerHTML = r, o;
336
+ }
337
+ }
338
+ function x(a, r, e = a, o) {
339
+ var l, i;
340
+ if (r === k) return r;
341
+ let t = o !== void 0 ? (l = e._$Co) == null ? void 0 : l[o] : e._$Cl;
342
+ const c = U(r) ? void 0 : r._$litDirective$;
343
+ return (t == null ? void 0 : t.constructor) !== c && ((i = t == null ? void 0 : t._$AO) == null || i.call(t, !1), c === void 0 ? t = void 0 : (t = new c(a), t._$AT(a, e, o)), o !== void 0 ? (e._$Co ?? (e._$Co = []))[o] = t : e._$Cl = t), t !== void 0 && (r = x(a, t._$AS(a, r.values), t, o)), r;
344
+ }
345
+ class Ar {
346
+ constructor(r, e) {
347
+ this._$AV = [], this._$AN = void 0, this._$AD = r, this._$AM = e;
348
+ }
349
+ get parentNode() {
350
+ return this._$AM.parentNode;
351
+ }
352
+ get _$AU() {
353
+ return this._$AM._$AU;
354
+ }
355
+ u(r) {
356
+ const { el: { content: e }, parts: o } = this._$AD, t = ((r == null ? void 0 : r.creationScope) ?? $).importNode(e, !0);
357
+ m.currentNode = t;
358
+ let c = m.nextNode(), l = 0, i = 0, n = o[0];
359
+ for (; n !== void 0; ) {
360
+ if (l === n.index) {
361
+ let d;
362
+ n.type === 2 ? d = new T(c, c.nextSibling, this, r) : n.type === 1 ? d = new n.ctor(c, n.name, n.strings, this, r) : n.type === 6 && (d = new Cr(c, this, r)), this._$AV.push(d), n = o[++i];
363
+ }
364
+ l !== (n == null ? void 0 : n.index) && (c = m.nextNode(), l++);
365
+ }
366
+ return m.currentNode = $, t;
367
+ }
368
+ p(r) {
369
+ let e = 0;
370
+ for (const o of this._$AV) o !== void 0 && (o.strings !== void 0 ? (o._$AI(r, o, e), e += o.strings.length - 2) : o._$AI(r[e])), e++;
371
+ }
372
+ }
373
+ class T {
374
+ get _$AU() {
375
+ var r;
376
+ return ((r = this._$AM) == null ? void 0 : r._$AU) ?? this._$Cv;
377
+ }
378
+ constructor(r, e, o, t) {
379
+ this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = r, this._$AB = e, this._$AM = o, this.options = t, this._$Cv = (t == null ? void 0 : t.isConnected) ?? !0;
380
+ }
381
+ get parentNode() {
382
+ let r = this._$AA.parentNode;
383
+ const e = this._$AM;
384
+ return e !== void 0 && (r == null ? void 0 : r.nodeType) === 11 && (r = e.parentNode), r;
385
+ }
386
+ get startNode() {
387
+ return this._$AA;
388
+ }
389
+ get endNode() {
390
+ return this._$AB;
391
+ }
392
+ _$AI(r, e = this) {
393
+ r = x(this, r, e), U(r) ? r === u || r == null || r === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : r !== this._$AH && r !== k && this._(r) : r._$litType$ !== void 0 ? this.$(r) : r.nodeType !== void 0 ? this.T(r) : $r(r) ? this.k(r) : this._(r);
394
+ }
395
+ O(r) {
396
+ return this._$AA.parentNode.insertBefore(r, this._$AB);
397
+ }
398
+ T(r) {
399
+ this._$AH !== r && (this._$AR(), this._$AH = this.O(r));
400
+ }
401
+ _(r) {
402
+ this._$AH !== u && U(this._$AH) ? this._$AA.nextSibling.data = r : this.T($.createTextNode(r)), this._$AH = r;
403
+ }
404
+ $(r) {
405
+ var c;
406
+ const { values: e, _$litType$: o } = r, t = typeof o == "number" ? this._$AC(r) : (o.el === void 0 && (o.el = O.createElement(ir(o.h, o.h[0]), this.options)), o);
407
+ if (((c = this._$AH) == null ? void 0 : c._$AD) === t) this._$AH.p(e);
408
+ else {
409
+ const l = new Ar(t, this), i = l.u(this.options);
410
+ l.p(e), this.T(i), this._$AH = l;
411
+ }
412
+ }
413
+ _$AC(r) {
414
+ let e = or.get(r.strings);
415
+ return e === void 0 && or.set(r.strings, e = new O(r)), e;
416
+ }
417
+ k(r) {
418
+ F(this._$AH) || (this._$AH = [], this._$AR());
419
+ const e = this._$AH;
420
+ let o, t = 0;
421
+ for (const c of r) t === e.length ? e.push(o = new T(this.O(P()), this.O(P()), this, this.options)) : o = e[t], o._$AI(c), t++;
422
+ t < e.length && (this._$AR(o && o._$AB.nextSibling, t), e.length = t);
423
+ }
424
+ _$AR(r = this._$AA.nextSibling, e) {
425
+ var o;
426
+ for ((o = this._$AP) == null ? void 0 : o.call(this, !1, !0, e); r && r !== this._$AB; ) {
427
+ const t = r.nextSibling;
428
+ r.remove(), r = t;
429
+ }
430
+ }
431
+ setConnected(r) {
432
+ var e;
433
+ this._$AM === void 0 && (this._$Cv = r, (e = this._$AP) == null || e.call(this, r));
434
+ }
435
+ }
436
+ class B {
437
+ get tagName() {
438
+ return this.element.tagName;
439
+ }
440
+ get _$AU() {
441
+ return this._$AM._$AU;
442
+ }
443
+ constructor(r, e, o, t, c) {
444
+ this.type = 1, this._$AH = u, this._$AN = void 0, this.element = r, this.name = e, this._$AM = t, this.options = c, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = u;
445
+ }
446
+ _$AI(r, e = this, o, t) {
447
+ const c = this.strings;
448
+ let l = !1;
449
+ if (c === void 0) r = x(this, r, e, 0), l = !U(r) || r !== this._$AH && r !== k, l && (this._$AH = r);
450
+ else {
451
+ const i = r;
452
+ let n, d;
453
+ for (r = c[0], n = 0; n < c.length - 1; n++) d = x(this, i[o + n], e, n), d === k && (d = this._$AH[n]), l || (l = !U(d) || d !== this._$AH[n]), d === u ? r = u : r !== u && (r += (d ?? "") + c[n + 1]), this._$AH[n] = d;
454
+ }
455
+ l && !t && this.j(r);
456
+ }
457
+ j(r) {
458
+ r === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, r ?? "");
459
+ }
460
+ }
461
+ class Er extends B {
462
+ constructor() {
463
+ super(...arguments), this.type = 3;
464
+ }
465
+ j(r) {
466
+ this.element[this.name] = r === u ? void 0 : r;
467
+ }
468
+ }
469
+ class Sr extends B {
470
+ constructor() {
471
+ super(...arguments), this.type = 4;
472
+ }
473
+ j(r) {
474
+ this.element.toggleAttribute(this.name, !!r && r !== u);
475
+ }
476
+ }
477
+ class wr extends B {
478
+ constructor(r, e, o, t, c) {
479
+ super(r, e, o, t, c), this.type = 5;
480
+ }
481
+ _$AI(r, e = this) {
482
+ if ((r = x(this, r, e, 0) ?? u) === k) return;
483
+ const o = this._$AH, t = r === u && o !== u || r.capture !== o.capture || r.once !== o.once || r.passive !== o.passive, c = r !== u && (o === u || t);
484
+ t && this.element.removeEventListener(this.name, this, o), c && this.element.addEventListener(this.name, this, r), this._$AH = r;
485
+ }
486
+ handleEvent(r) {
487
+ var e;
488
+ typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, r) : this._$AH.handleEvent(r);
489
+ }
490
+ }
491
+ class Cr {
492
+ constructor(r, e, o) {
493
+ this.element = r, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = o;
494
+ }
495
+ get _$AU() {
496
+ return this._$AM._$AU;
497
+ }
498
+ _$AI(r) {
499
+ x(this, r);
500
+ }
501
+ }
502
+ const j = w.litHtmlPolyfillSupport;
503
+ j == null || j(O, T), (w.litHtmlVersions ?? (w.litHtmlVersions = [])).push("3.2.1");
504
+ const Pr = (a, r, e) => {
505
+ const o = (e == null ? void 0 : e.renderBefore) ?? r;
506
+ let t = o._$litPart$;
507
+ if (t === void 0) {
508
+ const c = (e == null ? void 0 : e.renderBefore) ?? null;
509
+ o._$litPart$ = t = new T(r.insertBefore(P(), c), c, void 0, e ?? {});
510
+ }
511
+ return t._$AI(a), t;
512
+ };
513
+ /**
514
+ * @license
515
+ * Copyright 2017 Google LLC
516
+ * SPDX-License-Identifier: BSD-3-Clause
517
+ */
518
+ let C = class extends _ {
519
+ constructor() {
520
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
521
+ }
522
+ createRenderRoot() {
523
+ var e;
524
+ const r = super.createRenderRoot();
525
+ return (e = this.renderOptions).renderBefore ?? (e.renderBefore = r.firstChild), r;
526
+ }
527
+ update(r) {
528
+ const e = this.render();
529
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(r), this._$Do = Pr(e, this.renderRoot, this.renderOptions);
530
+ }
531
+ connectedCallback() {
532
+ var r;
533
+ super.connectedCallback(), (r = this._$Do) == null || r.setConnected(!0);
534
+ }
535
+ disconnectedCallback() {
536
+ var r;
537
+ super.disconnectedCallback(), (r = this._$Do) == null || r.setConnected(!1);
538
+ }
539
+ render() {
540
+ return k;
541
+ }
542
+ };
543
+ var tr;
544
+ C._$litElement$ = !0, C.finalized = !0, (tr = globalThis.litElementHydrateSupport) == null || tr.call(globalThis, { LitElement: C });
545
+ const I = globalThis.litElementPolyfillSupport;
546
+ I == null || I({ LitElement: C });
547
+ (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
548
+ /**
549
+ * @license
550
+ * Copyright 2017 Google LLC
551
+ * SPDX-License-Identifier: BSD-3-Clause
552
+ */
553
+ const Ur = (a) => (r, e) => {
554
+ e !== void 0 ? e.addInitializer(() => {
555
+ customElements.define(a, r);
556
+ }) : customElements.define(a, r);
557
+ };
558
+ /**
559
+ * @license
560
+ * Copyright 2017 Google LLC
561
+ * SPDX-License-Identifier: BSD-3-Clause
562
+ */
563
+ const Or = { attribute: !0, type: String, converter: N, reflect: !1, hasChanged: q }, Tr = (a = Or, r, e) => {
564
+ const { kind: o, metadata: t } = e;
565
+ let c = globalThis.litPropertyMetadata.get(t);
566
+ if (c === void 0 && globalThis.litPropertyMetadata.set(t, c = /* @__PURE__ */ new Map()), c.set(e.name, a), o === "accessor") {
567
+ const { name: l } = e;
568
+ return { set(i) {
569
+ const n = r.get.call(this);
570
+ r.set.call(this, i), this.requestUpdate(l, n, a);
571
+ }, init(i) {
572
+ return i !== void 0 && this.P(l, void 0, a), i;
573
+ } };
574
+ }
575
+ if (o === "setter") {
576
+ const { name: l } = e;
577
+ return function(i) {
578
+ const n = this[l];
579
+ r.call(this, i), this.requestUpdate(l, n, a);
580
+ };
581
+ }
582
+ throw Error("Unsupported decorator location: " + o);
583
+ };
584
+ function H(a) {
585
+ return (r, e) => typeof e == "object" ? Tr(a, r, e) : ((o, t, c) => {
586
+ const l = t.hasOwnProperty(c);
587
+ return t.constructor.createProperty(c, l ? { ...o, wrapped: !0 } : o), l ? Object.getOwnPropertyDescriptor(t, c) : void 0;
588
+ })(a, r, e);
589
+ }
590
+ var Hr = Object.defineProperty, zr = Object.getOwnPropertyDescriptor, A = (a, r, e, o) => {
591
+ for (var t = o > 1 ? void 0 : o ? zr(r, e) : r, c = a.length - 1, l; c >= 0; c--)
592
+ (l = a[c]) && (t = (o ? l(r, e, t) : l(t)) || t);
593
+ return o && t && Hr(r, e, t), t;
594
+ };
595
+ const Mr = "fhi-button";
596
+ let p = class extends C {
597
+ constructor() {
598
+ super(), this.color = "accent", this.variant = "strong", this.size = "medium", this.disabled = !1, this.type = "submit", this._stopClickLeak = this._stopClickLeak.bind(this);
599
+ }
600
+ connectedCallback() {
601
+ super.connectedCallback && super.connectedCallback(), this._form = this.closest("form");
602
+ }
603
+ firstUpdated() {
604
+ this._formButton = document.createElement("button"), this._formButton.addEventListener("click", this._stopClickLeak), this.addEventListener("click", this._handleClick);
605
+ }
606
+ _handleClick(a) {
607
+ var r, e;
608
+ (this.type === "submit" || this.type === "reset") && this._form && !a.defaultPrevented && (this._formButton.type = this.type, (r = this._form) == null || r.appendChild(this._formButton), this._formButton.click(), (e = this._form) == null || e.removeChild(this._formButton));
609
+ }
610
+ _stopClickLeak(a) {
611
+ a.target === this._formButton && a.stopImmediatePropagation();
612
+ }
613
+ render() {
614
+ return kr`<button ?disabled=${this.disabled} type=${this.type}>
615
+ <slot></slot>
616
+ </button>`;
617
+ }
618
+ };
619
+ p.styles = dr`
620
+ :host {
621
+ --dimension-border-radius: var(--fhi-border-radius-full);
622
+ --dimension-border-width: var(--fhi-dimension-border-width);
623
+ --typography-font-family: var(--fhi-font-family-roboto-flex);
624
+ --motion-transition: var(--fhi-motion-duration-quick)
625
+ var(--fhi-motion-ease-default);
626
+
627
+ --opacity-disabled: var(--fhi-opacity-disabled);
628
+
629
+ --typography-label-large-font-size: var(
630
+ --fhi-typography-label-large-font-size
631
+ );
632
+ --typography-label-medium-font-size: var(
633
+ --fhi-typography-label-medium-font-size
634
+ );
635
+ --typography-label-small-font-size: var(
636
+ --fhi-typography-label-medium-font-size
637
+ );
638
+ --typography-label-large-font-weight: var(
639
+ --fhi-typography-label-large-font-weight
640
+ );
641
+ --typography-label-medium-font-weight: var(
642
+ --fhi-typography-label-medium-font-weight
643
+ );
644
+ --typography-label-small-font-weight: var(
645
+ --fhi-typography-label-medium-font-weight
646
+ );
647
+ --typography-label-large-letter-spacing: var(
648
+ --fhi-typography-label-large-letter-spacing
649
+ );
650
+ --typography-label-medium-letter-spacing: var(
651
+ --fhi-typography-label-medium-letter-spacing
652
+ );
653
+ --typography-label-small-letter-spacing: var(
654
+ --fhi-typography-label-medium-letter-spacing
655
+ );
656
+ --typography-label-large-line-height: var(
657
+ --fhi-typography-label-large-line-height
658
+ );
659
+ --typography-label-small-line-height: var(
660
+ --fhi-typography-label-medium-line-height
661
+ );
662
+ --typography-label-medium-line-height: var(
663
+ --fhi-typography-label-medium-line-height
664
+ );
665
+
666
+ --dimension-padding-small: calc(
667
+ var(--fhi-spacing-050) - var(--fhi-dimension-border-width)
668
+ )
669
+ calc(
670
+ var(--fhi-spacing-150) +
671
+ var(--fhi-spacing-050) - var(--fhi-dimension-border-width)
672
+ );
673
+ --dimension-padding-medium: calc(
674
+ var(--fhi-spacing-100) - var(--fhi-dimension-border-width)
675
+ )
676
+ calc(
677
+ var(--fhi-spacing-200) +
678
+ var(--fhi-spacing-050) - var(--fhi-dimension-border-width)
679
+ );
680
+ --dimension-padding-large: calc(
681
+ var(--fhi-spacing-200) - var(--fhi-dimension-border-width)
682
+ )
683
+ calc(
684
+ var(--fhi-spacing-300) +
685
+ var(--fhi-spacing-050) - var(--fhi-dimension-border-width)
686
+ );
687
+ --color-accent-strong-background: var(--fhi-color-accent-base-default);
688
+ --color-accent-strong-border: var(--fhi-color-accent-base-default);
689
+ --color-accent-strong: var(--fhi-color-accent-text-inverted);
690
+ --color-accent-strong-background-hover: var(
691
+ --fhi-color-accent-base-hover
692
+ );
693
+ --color-accent-strong-border-hover: var(--fhi-color-accent-base-hover);
694
+ --color-accent-strong-hover: var(--fhi-color-accent-text-inverted);
695
+ --color-accent-strong-background-active: var(
696
+ --fhi-color-accent-base-active
697
+ );
698
+ --color-accent-strong-border-active: var(--fhi-color-accent-base-hover);
699
+ --color-accent-strong-active: var(--fhi-color-accent-text-inverted);
700
+ --color-accent-strong-background-disabled: var(
701
+ --fhi-color-accent-base-default
702
+ );
703
+ --color-accent-strong-border-disabled: var(
704
+ --fhi-color-accent-base-default
705
+ );
706
+ --color-accent-strong-disabled: var(--fhi-color-accent-text-inverted);
707
+
708
+ --color-accent-subtle-background: var(--fhi-color-accent-surface-default);
709
+ --color-accent-subtle-border: var(--fhi-color-accent-surface-default);
710
+ --color-accent-subtle: var(--fhi-color-accent-text-subtle);
711
+ --color-accent-subtle-background-hover: var(
712
+ --fhi-color-accent-surface-hover
713
+ );
714
+ --color-accent-subtle-border-hover: var(--fhi-color-accent-surface-hover);
715
+ --color-accent-subtle-hover: var(--fhi-color-accent-text-default);
716
+ --color-accent-subtle-background-active: var(
717
+ --fhi-color-accent-surface-active
718
+ );
719
+ --color-accent-subtle-border-active: var(
720
+ --fhi-color-accent-surface-active
721
+ );
722
+ --color-accent-subtle-active: var(--fhi-color-accent-text-default);
723
+ --color-accent-subtle-background-disabled: var(
724
+ --fhi-color-accent-surface-default
725
+ );
726
+ --color-accent-subtle-border-disabled: var(
727
+ --fhi-color-accent-surface-default
728
+ );
729
+ --color-accent-subtle-disabled: var(--fhi-color-accent-text-subtle);
730
+
731
+ --color-accent-outlined-background: transparent;
732
+ --color-accent-outlined-border: var(--fhi-color-accent-border-subtle);
733
+ --color-accent-outlined: var(--fhi-color-accent-text-subtle);
734
+ --color-accent-outlined-background-hover: var(
735
+ --fhi-color-accent-surface-default
736
+ );
737
+ --color-accent-outlined-border-hover: var(
738
+ --fhi-color-accent-surface-default
739
+ );
740
+ --color-accent-outlined-hover: var(--fhi-color-accent-text-default);
741
+ --color-accent-outlined-background-active: var(
742
+ --fhi-color-accent-surface-hover
743
+ );
744
+ --color-accent-outlined-border-active: var(
745
+ --fhi-color-accent-surface-hover
746
+ );
747
+ --color-accent-outlined-active: var(--fhi-color-accent-text-default);
748
+ --color-accent-outlined-background-disabled: transparent;
749
+ --color-accent-outlined-border-disabled: var(
750
+ --fhi-color-accent-border-subtle
751
+ );
752
+ --color-accent-outlined-disabled: var(--fhi-color-accent-text-subtle);
753
+
754
+ --color-accent-text-background: transparent;
755
+ --color-accent-text-border: transparent;
756
+ --color-accent-text: var(--fhi-color-accent-text-subtle);
757
+ --color-accent-text-background-hover: var(
758
+ --fhi-color-accent-surface-default
759
+ );
760
+ --color-accent-text-border-hover: var(--fhi-color-accent-surface-default);
761
+ --color-accent-text-hover: var(--fhi-color-accent-text-default);
762
+ --color-accent-text-background-active: var(
763
+ --fhi-color-accent-surface-hover
764
+ );
765
+ --color-accent-text-border-active: var(--fhi-color-accent-surface-hover);
766
+ --color-accent-text-active: var(--fhi-color-accent-text-default);
767
+ --color-accent-text-background-disabled: transparent;
768
+ --color-accent-text-border-disabled: transparent;
769
+ --color-accent-text-disabled: var(--fhi-color-accent-text-default);
770
+
771
+ --color-neutral-strong-background: var(--fhi-color-neutral-base-default);
772
+ --color-neutral-strong-border: var(--fhi-color-neutral-base-default);
773
+ --color-neutral-strong: var(--fhi-color-neutral-text-inverted);
774
+ --color-neutral-strong-background-hover: var(
775
+ --fhi-color-neutral-base-hover
776
+ );
777
+ --color-neutral-strong-border-hover: var(--fhi-color-neutral-base-hover);
778
+ --color-neutral-strong-hover: var(--fhi-color-neutral-text-inverted);
779
+ --color-neutral-strong-background-active: var(
780
+ --fhi-color-neutral-base-active
781
+ );
782
+ --color-neutral-strong-border-active: var(--fhi-color-neutral-base-hover);
783
+ --color-neutral-strong-active: var(--fhi-color-neutral-text-inverted);
784
+ --color-neutral-strong-background-disabled: var(
785
+ --fhi-color-neutral-base-default
786
+ );
787
+ --color-neutral-strong-border-disabled: var(
788
+ --fhi-color-neutral-base-default
789
+ );
790
+ --color-neutral-strong-disabled: var(--fhi-color-neutral-text-inverted);
791
+
792
+ --color-neutral-subtle-background: var(
793
+ --fhi-color-neutral-surface-default
794
+ );
795
+ --color-neutral-subtle-border: var(--fhi-color-neutral-surface-default);
796
+ --color-neutral-subtle: var(--fhi-color-neutral-text-subtle);
797
+ --color-neutral-subtle-background-hover: var(
798
+ --fhi-color-neutral-surface-hover
799
+ );
800
+ --color-neutral-subtle-border-hover: var(
801
+ --fhi-color-neutral-surface-hover
802
+ );
803
+ --color-neutral-subtle-hover: var(--fhi-color-neutral-text-default);
804
+ --color-neutral-subtle-background-active: var(
805
+ --fhi-color-neutral-surface-active
806
+ );
807
+ --color-neutral-subtle-border-active: var(
808
+ --fhi-color-neutral-surface-active
809
+ );
810
+ --color-neutral-subtle-active: var(--fhi-color-neutral-text-default);
811
+ --color-neutral-subtle-background-disabled: var(
812
+ --fhi-color-neutral-surface-default
813
+ );
814
+ --color-neutral-subtle-border-disabled: var(
815
+ --fhi-color-neutral-surface-default
816
+ );
817
+ --color-neutral-subtle-disabled: var(--fhi-color-neutral-text-default);
818
+
819
+ --color-neutral-outlined-background: transparent;
820
+ --color-neutral-outlined-border: var(--fhi-color-neutral-border-subtle);
821
+ --color-neutral-outlined: var(--fhi-color-neutral-text-subtle);
822
+ --color-neutral-outlined-background-hover: var(
823
+ --fhi-color-neutral-surface-default
824
+ );
825
+ --color-neutral-outlined-border-hover: var(
826
+ --fhi-color-neutral-surface-default
827
+ );
828
+ --color-neutral-outlined-hover: var(--fhi-color-neutral-text-default);
829
+ --color-neutral-outlined-background-active: var(
830
+ --fhi-color-neutral-surface-hover
831
+ );
832
+ --color-neutral-outlined-border-active: var(
833
+ --fhi-color-neutral-surface-hover
834
+ );
835
+ --color-neutral-outlined-active: var(--fhi-color-neutral-text-default);
836
+ --color-neutral-outlined-background-disabled: transparent;
837
+ --color-neutral-outlined-border-disabled: var(
838
+ --fhi-color-neutral-border-subtle
839
+ );
840
+ --color-neutral-outlined-disabled: var(--fhi-color-neutral-text-subtle);
841
+
842
+ --color-neutral-text-background: transparent;
843
+ --color-neutral-text-border: transparent;
844
+ --color-neutral-text: var(--fhi-color-neutral-text-subtle);
845
+ --color-neutral-text-background-hover: var(
846
+ --fhi-color-neutral-surface-default
847
+ );
848
+ --color-neutral-text-border-hover: var(
849
+ --fhi-color-neutral-surface-default
850
+ );
851
+ --color-neutral-text-hover: var(--fhi-color-neutral-text-default);
852
+ --color-neutral-text-background-active: var(
853
+ --fhi-color-neutral-surface-hover
854
+ );
855
+ --color-neutral-text-border-active: var(
856
+ --fhi-color-neutral-surface-hover
857
+ );
858
+ --color-neutral-text-active: var(--fhi-color-neutral-text-default);
859
+ --color-neutral-text-background-disabled: transparent;
860
+ --color-neutral-text-border-disabled: transparent;
861
+ --color-neutral-text-disabled: var(--fhi-color-neutral-text-subtle);
862
+
863
+ --color-danger-strong-background: var(--fhi-color-danger-base-default);
864
+ --color-danger-strong-border: var(--fhi-color-danger-base-default);
865
+ --color-danger-strong: var(--fhi-color-danger-text-inverted);
866
+ --color-danger-strong-background-hover: var(
867
+ --fhi-color-danger-base-hover
868
+ );
869
+ --color-danger-strong-border-hover: var(--fhi-color-danger-base-hover);
870
+ --color-danger-strong-hover: var(--fhi-color-danger-text-inverted);
871
+ --color-danger-strong-background-active: var(
872
+ --fhi-color-danger-base-active
873
+ );
874
+ --color-danger-strong-border-active: var(--fhi-color-danger-base-hover);
875
+ --color-danger-strong-active: var(--fhi-color-danger-text-inverted);
876
+ --color-danger-strong-background-disabled: var(
877
+ --fhi-color-danger-base-default
878
+ );
879
+ --color-danger-strong-border-disabled: var(
880
+ --fhi-color-danger-base-default
881
+ );
882
+ --color-danger-strong-disabled: var(--fhi-color-danger-text-inverted);
883
+
884
+ --color-danger-subtle-background: var(--fhi-color-danger-surface-default);
885
+ --color-danger-subtle-border: var(--fhi-color-danger-surface-default);
886
+ --color-danger-subtle: var(--fhi-color-danger-text-subtle);
887
+ --color-danger-subtle-background-hover: var(
888
+ --fhi-color-danger-surface-hover
889
+ );
890
+ --color-danger-subtle-border-hover: var(--fhi-color-danger-surface-hover);
891
+ --color-danger-subtle-hover: var(--fhi-color-danger-text-default);
892
+ --color-danger-subtle-background-active: var(
893
+ --fhi-color-danger-surface-active
894
+ );
895
+ --color-danger-subtle-border-active: var(
896
+ --fhi-color-danger-surface-active
897
+ );
898
+ --color-danger-subtle-active: var(--fhi-color-danger-text-default);
899
+ --color-danger-subtle-background-disabled: var(
900
+ --fhi-color-danger-surface-default
901
+ );
902
+ --color-danger-subtle-border-disabled: var(
903
+ --fhi-color-danger-surface-default
904
+ );
905
+ --color-danger-subtle-disabled: var(--fhi-color-danger-text-subtle);
906
+
907
+ --color-danger-outlined-background: transparent;
908
+ --color-danger-outlined-border: var(--fhi-color-danger-border-subtle);
909
+ --color-danger-outlined: var(--fhi-color-danger-text-subtle);
910
+ --color-danger-outlined-background-hover: var(
911
+ --fhi-color-danger-surface-default
912
+ );
913
+ --color-danger-outlined-border-hover: var(
914
+ --fhi-color-danger-surface-default
915
+ );
916
+ --color-danger-outlined-hover: var(--fhi-color-danger-text-default);
917
+ --color-danger-outlined-background-active: var(
918
+ --fhi-color-danger-surface-hover
919
+ );
920
+ --color-danger-outlined-border-active: var(
921
+ --fhi-color-danger-surface-hover
922
+ );
923
+ --color-danger-outlined-active: var(--fhi-color-danger-text-default);
924
+ --color-danger-outlined-background-disabled: transparent;
925
+ --color-danger-outlined-border-disabled: var(
926
+ --fhi-color-danger-border-subtle
927
+ );
928
+ --color-danger-outlined-disabled: var(--fhi-color-danger-text-subtle);
929
+
930
+ --color-danger-text-background: transparent;
931
+ --color-danger-text-border: transparent;
932
+ --color-danger-text: var(--fhi-color-danger-text-subtle);
933
+ --color-danger-text-background-hover: var(
934
+ --fhi-color-danger-surface-default
935
+ );
936
+ --color-danger-text-border-hover: var(--fhi-color-danger-surface-default);
937
+ --color-danger-text-hover: var(--fhi-color-danger-text-default);
938
+ --color-danger-text-background-active: var(
939
+ --fhi-color-danger-surface-hover
940
+ );
941
+ --color-danger-text-border-active: var(--fhi-color-danger-surface-hover);
942
+ --color-danger-text-active: var(--fhi-color-danger-text-default);
943
+ --color-danger-text-background-disabled: transparent;
944
+ --color-danger-text-border-disabled: transparent;
945
+ --color-danger-text-disabled: var(--fhi-color-danger-text-subtle);
946
+
947
+ button {
948
+ border-radius: var(--dimension-border-radius);
949
+ border: solid var(--dimension-border-width);
950
+ font-family: var(--typography-font-family);
951
+ transition: var(--motion-transition);
952
+
953
+ cursor: pointer;
954
+ &:disabled {
955
+ opacity: var(--opacity-disabled);
956
+ cursor: not-allowed;
957
+ }
958
+ }
959
+ }
960
+
961
+ :host([size='large']) button {
962
+ font-size: var(--typography-label-large-font-size);
963
+ font-weight: var(--typography-label-large-font-weight);
964
+ line-height: var(--typography-label-large-line-height);
965
+ letter-spacing: var(--typography-label-large-letter-spacing);
966
+ padding: var(--dimension-padding-large);
967
+ }
968
+
969
+ :host([size='medium']) button {
970
+ font-size: var(--typography-label-medium-font-size);
971
+ font-weight: var(--typography-label-medium-font-weight);
972
+ line-height: var(--typography-label-medium-line-height);
973
+ letter-spacing: var(--typography-label-medium-letter-spacing);
974
+ padding: var(--dimension-padding-medium);
975
+ }
976
+
977
+ :host([size='small']) button {
978
+ font-size: var(--typography-label-small-font-size);
979
+ font-weight: var(--typography-label-small-font-weight);
980
+ line-height: var(--typography-label-small-line-height);
981
+ letter-spacing: var(--typography-label-small-letter-spacing);
982
+ padding: var(--dimension-padding-small);
983
+ }
984
+
985
+ :host([color='accent'][variant='strong']) button {
986
+ background-color: var(--color-accent-strong-background);
987
+ border-color: var(--color-accent-strong-border);
988
+ color: var(--color-accent-strong);
989
+ &:hover {
990
+ background-color: var(--color-accent-strong-background-hover);
991
+ border-color: var(--color-accent-strong-border-hover);
992
+ color: var(--color-accent-strong-hover);
993
+ }
994
+ &:active {
995
+ background-color: var(--color-accent-strong-background-active);
996
+ border-color: var(--color-accent-strong-border-active);
997
+ color: var(--color-accent-strong-active);
998
+ }
999
+ &:disabled {
1000
+ background-color: var(--color-accent-strong-background-disabled);
1001
+ border-color: var(--color-accent-strong-border-disabled);
1002
+ color: var(--color-accent-strong-disabled);
1003
+ }
1004
+ }
1005
+
1006
+ :host([color='accent'][variant='subtle']) button {
1007
+ background-color: var(--color-accent-subtle-background);
1008
+ border-color: var(--color-accent-subtle-border);
1009
+ color: var(--color-accent-subtle);
1010
+ &:hover {
1011
+ background-color: var(--color-accent-subtle-background-hover);
1012
+ border-color: var(--color-accent-subtle-border-hover);
1013
+ color: var(--color-accent-subtle-hover);
1014
+ }
1015
+ &:active {
1016
+ background-color: var(--color-accent-subtle-background-active);
1017
+ border-color: var(--color-accent-subtle-border-active);
1018
+ color: var(--color-accent-subtle-active);
1019
+ }
1020
+ &:disabled {
1021
+ background-color: var(--color-accent-subtle-background-disabled);
1022
+ border-color: var(--color-accent-subtle-border-disabled);
1023
+ color: var(--color-accent-subtle-disabled);
1024
+ }
1025
+ }
1026
+
1027
+ :host([color='accent'][variant='outlined']) button {
1028
+ background-color: var(--color-accent-outlined-background);
1029
+ border-color: var(--color-accent-outlined-border);
1030
+ color: var(--color-accent-outlined);
1031
+ &:hover {
1032
+ background-color: var(--color-accent-outlined-background-hover);
1033
+ border-color: var(--color-accent-outlined-border-hover);
1034
+ color: var(--color-accent-outlined-hover);
1035
+ }
1036
+ &:active {
1037
+ background-color: var(--color-accent-outlined-background-active);
1038
+ border-color: var(--color-accent-outlined-border-active);
1039
+ color: var(--color-accent-outlined-active);
1040
+ }
1041
+ &:disabled {
1042
+ background-color: var(--color-accent-outlined-background-disabled);
1043
+ border-color: var(--color-accent-outlined-border-disabled);
1044
+ color: var(--color-accent-outlined-disabled);
1045
+ }
1046
+ }
1047
+
1048
+ :host([color='accent'][variant='text']) button {
1049
+ background-color: var(--color-accent-text-background);
1050
+ border-color: var(--color-accent-text-border);
1051
+ color: var(--color-accent-text);
1052
+ &:hover {
1053
+ background-color: var(--color-accent-text-background-hover);
1054
+ border-color: var(--color-accent-text-border-hover);
1055
+ color: var(--color-accent-text-hover);
1056
+ }
1057
+ &:active {
1058
+ background-color: var(--color-accent-text-background-active);
1059
+ border-color: var(--color-accent-text-border-active);
1060
+ color: var(--color-accent-text-active);
1061
+ }
1062
+ &:disabled {
1063
+ background-color: var(--color-accent-text-background-disabled);
1064
+ border-color: var(--color-accent-text-border-disabled);
1065
+ color: var(--color-accent-text-disabled);
1066
+ }
1067
+ }
1068
+
1069
+ :host([color='neutral'][variant='strong']) button {
1070
+ background-color: var(--color-neutral-strong-background);
1071
+ border-color: var(--color-neutral-strong-border);
1072
+ color: var(--color-neutral-strong);
1073
+ &:hover {
1074
+ background-color: var(--color-neutral-strong-background-hover);
1075
+ border-color: var(--color-neutral-strong-border-hover);
1076
+ color: var(--color-neutral-strong-hover);
1077
+ }
1078
+ &:active {
1079
+ background-color: var(--color-neutral-strong-background-active);
1080
+ border-color: var(--color-neutral-strong-border-active);
1081
+ color: var(--color-neutral-strong-active);
1082
+ }
1083
+ &:disabled {
1084
+ background-color: var(--color-neutral-strong-background-disabled);
1085
+ border-color: var(--color-neutral-strong-border-disabled);
1086
+ color: var(--color-neutral-strong-disabled);
1087
+ }
1088
+ }
1089
+
1090
+ :host([color='neutral'][variant='subtle']) button {
1091
+ background-color: var(--color-neutral-subtle-background);
1092
+ border-color: var(--color-neutral-subtle-border);
1093
+ color: var(--color-neutral-subtle);
1094
+ &:hover {
1095
+ background-color: var(--color-neutral-subtle-background-hover);
1096
+ border-color: var(--color-neutral-subtle-border-hover);
1097
+ color: var(--color-neutral-subtle-hover);
1098
+ }
1099
+ &:active {
1100
+ background-color: var(--color-neutral-subtle-background-active);
1101
+ border-color: var(--color-neutral-subtle-border-active);
1102
+ color: var(--color-neutral-subtle-active);
1103
+ }
1104
+ &:disabled {
1105
+ background-color: var(--color-neutral-subtle-background-disabled);
1106
+ border-color: var(--color-neutral-subtle-border-disabled);
1107
+ color: var(--color-neutral-subtle-disabled);
1108
+ }
1109
+ }
1110
+
1111
+ :host([color='neutral'][variant='outlined']) button {
1112
+ background-color: var(--color-neutral-outlined-background);
1113
+ border-color: var(--color-neutral-outlined-border);
1114
+ color: var(--color-neutral-outlined);
1115
+ &:hover {
1116
+ background-color: var(--color-neutral-outlined-background-hover);
1117
+ border-color: var(--color-neutral-outlined-border-hover);
1118
+ color: var(--color-neutral-outlined-hover);
1119
+ }
1120
+ &:active {
1121
+ background-color: var(--color-neutral-outlined-background-active);
1122
+ border-color: var(--color-neutral-outlined-border-active);
1123
+ color: var(--color-neutral-outlined-active);
1124
+ }
1125
+ &:disabled {
1126
+ background-color: var(--color-neutral-outlined-background-disabled);
1127
+ border-color: var(--color-neutral-outlined-border-disabled);
1128
+ color: var(--color-neutral-outlined-disabled);
1129
+ }
1130
+ }
1131
+
1132
+ :host([color='neutral'][variant='text']) button {
1133
+ background-color: var(--color-neutral-text-background);
1134
+ border-color: var(--color-neutral-text-border);
1135
+ color: var(--color-neutral-text);
1136
+ &:hover {
1137
+ background-color: var(--color-neutral-text-background-hover);
1138
+ border-color: var(--color-neutral-text-border-hover);
1139
+ color: var(--color-neutral-text-hover);
1140
+ }
1141
+ &:active {
1142
+ background-color: var(--color-neutral-text-background-active);
1143
+ border-color: var(--color-neutral-text-border-active);
1144
+ color: var(--color-neutral-text-active);
1145
+ }
1146
+ &:disabled {
1147
+ background-color: var(--color-neutral-text-background-disabled);
1148
+ border-color: var(--color-neutral-text-border-disabled);
1149
+ color: var(--color-neutral-text-disabled);
1150
+ }
1151
+ }
1152
+
1153
+ :host([color='danger'][variant='strong']) button {
1154
+ background-color: var(--color-danger-strong-background);
1155
+ border-color: var(--color-danger-strong-border);
1156
+ color: var(--color-danger-strong);
1157
+ &:hover {
1158
+ background-color: var(--color-danger-strong-background-hover);
1159
+ border-color: var(--color-danger-strong-border-hover);
1160
+ color: var(--color-danger-strong-hover);
1161
+ }
1162
+ &:active {
1163
+ background-color: var(--color-danger-strong-background-active);
1164
+ border-color: var(--color-danger-strong-border-active);
1165
+ color: var(--color-danger-strong-active);
1166
+ }
1167
+ &:disabled {
1168
+ background-color: var(--color-danger-strong-background-disabled);
1169
+ border-color: var(--color-danger-strong-border-disabled);
1170
+ color: var(--color-danger-strong-disabled);
1171
+ }
1172
+ }
1173
+
1174
+ :host([color='danger'][variant='subtle']) button {
1175
+ background-color: var(--color-danger-subtle-background);
1176
+ border-color: var(--color-danger-subtle-border);
1177
+ color: var(--color-danger-subtle);
1178
+ &:hover {
1179
+ background-color: var(--color-danger-subtle-background-hover);
1180
+ border-color: var(--color-danger-subtle-border-hover);
1181
+ color: var(--color-danger-subtle-hover);
1182
+ }
1183
+ &:active {
1184
+ background-color: var(--color-danger-subtle-background-active);
1185
+ border-color: var(--color-danger-subtle-border-active);
1186
+ color: var(--color-danger-subtle-active);
1187
+ }
1188
+ &:disabled {
1189
+ background-color: var(--color-danger-subtle-background-disabled);
1190
+ border-color: var(--color-danger-subtle-border-disabled);
1191
+ color: var(--color-danger-subtle-disabled);
1192
+ }
1193
+ }
1194
+
1195
+ :host([color='danger'][variant='outlined']) button {
1196
+ background-color: var(--color-danger-outlined-background);
1197
+ border-color: var(--color-danger-outlined-border);
1198
+ color: var(--color-danger-outlined);
1199
+ &:hover {
1200
+ background-color: var(--color-danger-outlined-background-hover);
1201
+ border-color: var(--color-danger-outlined-border-hover);
1202
+ color: var(--color-danger-outlined-hover);
1203
+ }
1204
+ &:active {
1205
+ background-color: var(--color-danger-outlined-background-active);
1206
+ border-color: var(--color-danger-outlined-border-active);
1207
+ color: var(--color-danger-outlined-active);
1208
+ }
1209
+ &:disabled {
1210
+ background-color: var(--color-danger-outlined-background-disabled);
1211
+ border-color: var(--color-danger-outlined-border-disabled);
1212
+ color: var(--color-danger-outlined-disabled);
1213
+ }
1214
+ }
1215
+
1216
+ :host([color='danger'][variant='text']) button {
1217
+ background-color: var(--color-danger-text-background);
1218
+ border-color: var(--color-danger-text-border);
1219
+ color: var(--color-danger-text);
1220
+ &:hover {
1221
+ background-color: var(--color-danger-text-background-hover);
1222
+ border-color: var(--color-danger-text-border-hover);
1223
+ color: var(--color-danger-text-hover);
1224
+ }
1225
+ &:active {
1226
+ background-color: var(--color-danger-text-background-active);
1227
+ border-color: var(--color-danger-text-border-active);
1228
+ color: var(--color-danger-text-active);
1229
+ }
1230
+ &:disabled {
1231
+ background-color: var(--color-danger-text-background-disabled);
1232
+ border-color: var(--color-danger-text-border-disabled);
1233
+ color: var(--color-danger-text-disabled);
1234
+ }
1235
+ }
1236
+ `;
1237
+ A([
1238
+ H({ type: String, reflect: !0 })
1239
+ ], p.prototype, "color", 2);
1240
+ A([
1241
+ H({ type: String, reflect: !0 })
1242
+ ], p.prototype, "variant", 2);
1243
+ A([
1244
+ H({ type: String, reflect: !0 })
1245
+ ], p.prototype, "size", 2);
1246
+ A([
1247
+ H({ type: Boolean, reflect: !0 })
1248
+ ], p.prototype, "disabled", 2);
1249
+ A([
1250
+ H({ type: String })
1251
+ ], p.prototype, "type", 2);
1252
+ p = A([
1253
+ Ur(Mr)
1254
+ ], p);
1255
+ export {
1256
+ p as FhiButton,
1257
+ Mr as FhiButtonSelector
1258
+ };
1259
+ //# sourceMappingURL=fhi-designsystem.js.map