@brad-frost-web/eddie-recipes 0.45.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/chunks/{EdElement.DvFQCo8N.js → EdElement.Dqh0Nrbq.js} +29 -29
- package/cdn/chunks/{band.DLBg1WKh.js → band.CwHBBc-M.js} +8 -8
- package/cdn/chunks/button.DziMthz2.js +171 -0
- package/cdn/chunks/card.peqD1u-M.js +39 -0
- package/cdn/chunks/{header.C5XJOqiX.js → header.CoOwmnr7.js} +3 -3
- package/cdn/chunks/heading.BSJkdyD3.js +58 -0
- package/cdn/chunks/icon.mc7zUxp5.js +263 -0
- package/cdn/chunks/{layout-container.XT5IZm4y.js → layout-container.C8MYJcgw.js} +5 -5
- package/cdn/chunks/{lit.DcQ_wZZQ.js → lit.EWazi_Sp.js} +2 -2
- package/cdn/chunks/{single-field-form.B8L8B6mS.js → single-field-form.B3cl6la0.js} +4 -4
- package/cdn/chunks/text-passage.lJ-CSZBU.js +58 -0
- package/cdn/chunks/timeline-node.JcsS49ZB.js +90 -0
- package/cdn/eddie-recipes-autoloader.js +34 -26
- package/cdn/recipes/common/ad/ad.js +78 -0
- package/cdn/recipes/common/article-card/article-card.js +75 -0
- package/cdn/recipes/common/audio-player/audio-player.js +2 -2
- package/cdn/recipes/common/example-form/example-form.js +11 -11
- package/cdn/recipes/common/newsletter-signup/newsletter-signup.js +9 -9
- package/cdn/recipes/common/page-banner/page-banner.js +4 -4
- package/cdn/recipes/common/project-card/project-card.js +20 -20
- package/cdn/recipes/common/promo-block/promo-block.js +4 -4
- package/cdn/recipes/common/search-form/search-form.js +6 -6
- package/cdn/recipes/common/site-footer/site-footer.js +3 -3
- package/cdn/recipes/common/site-header/site-header.js +5 -5
- package/cdn/recipes/common/stat-card/stat-card.js +35 -71
- package/cdn/recipes/common/timeline-node/TimelineNodeKind.js +14 -5
- package/cdn/recipes/common/timeline-node/timeline-node.js +32 -32
- package/cdn/recipes/common/timeline-node-blog/timeline-node-blog.js +5 -5
- package/cdn/recipes/common/timeline-node-book/timeline-node-book.js +7 -7
- package/cdn/recipes/common/timeline-node-concert/timeline-node-concert.js +15 -0
- package/cdn/recipes/common/timeline-node-link/timeline-node-link.js +5 -5
- package/cdn/recipes/common/timeline-node-location/timeline-node-location.js +15 -0
- package/cdn/recipes/common/timeline-node-milestone/timeline-node-milestone.js +15 -0
- package/cdn/recipes/common/timeline-node-newsletter/timeline-node-newsletter.js +15 -0
- package/cdn/recipes/common/timeline-node-note/timeline-node-note.js +15 -0
- package/cdn/recipes/common/timeline-node-playlist/timeline-node-playlist.js +5 -5
- package/cdn/recipes/common/timeline-node-podcast/timeline-node-podcast.js +15 -0
- package/cdn/recipes/common/timeline-node-song/timeline-node-song.js +5 -5
- package/cdn/recipes/common/timeline-node-video/timeline-node-video.js +2 -2
- package/cdn/recipes/common/transport-button/transport-button.js +4 -4
- package/cdn/recipes/common/vertical-site-header/vertical-site-header.js +4 -4
- package/cdn/recipes/common/visualzzz/visualzzz.js +2 -2
- package/cdn/recipes/eddie-slides/template-card/template-card.js +11 -11
- package/cdn/recipes/eddie-slides/thumbnail/thumbnail.js +8 -8
- package/cdn/recipes/tools/theme-customizer/theme-customizer.js +4 -4
- package/cdn/recipes/we-are-here/chunky-checkbox/chunky-checkbox.js +2 -2
- package/cdn/recipes/we-are-here/wah-link-list/wah-link-list.js +2 -2
- package/cdn/recipes/we-are-here/wah-logo/wah-logo.js +3 -3
- package/cdn/recipes/we-are-here/wah-site-footer/wah-site-footer.js +3 -3
- package/cdn/recipes/we-are-here/wah-site-header/wah-site-header.js +4 -4
- package/package.json +1 -1
- package/recipes/common/ad/ad.d.ts +148 -0
- package/recipes/common/ad/ad.d.ts.map +1 -0
- package/recipes/common/ad/ad.js +79 -0
- package/recipes/common/article-card/article-card.d.ts +117 -0
- package/recipes/common/article-card/article-card.d.ts.map +1 -0
- package/recipes/common/article-card/article-card.js +76 -0
- package/recipes/common/project-card/project-card.js +7 -7
- package/recipes/common/timeline-node/TimelineNodeKind.d.ts +7 -0
- package/recipes/common/timeline-node/TimelineNodeKind.d.ts.map +1 -1
- package/recipes/common/timeline-node/TimelineNodeKind.js +10 -1
- package/recipes/common/timeline-node/timeline-node.js +16 -16
- package/recipes/common/timeline-node-blog/timeline-node-blog.js +4 -4
- package/recipes/common/timeline-node-book/timeline-node-book.js +6 -6
- package/recipes/common/timeline-node-concert/timeline-node-concert.d.ts +54 -0
- package/recipes/common/timeline-node-concert/timeline-node-concert.d.ts.map +1 -0
- package/recipes/common/timeline-node-concert/timeline-node-concert.js +15 -0
- package/recipes/common/timeline-node-link/timeline-node-link.js +4 -4
- package/recipes/common/timeline-node-location/timeline-node-location.d.ts +56 -0
- package/recipes/common/timeline-node-location/timeline-node-location.d.ts.map +1 -0
- package/recipes/common/timeline-node-location/timeline-node-location.js +15 -0
- package/recipes/common/timeline-node-milestone/timeline-node-milestone.d.ts +54 -0
- package/recipes/common/timeline-node-milestone/timeline-node-milestone.d.ts.map +1 -0
- package/recipes/common/timeline-node-milestone/timeline-node-milestone.js +15 -0
- package/recipes/common/timeline-node-newsletter/timeline-node-newsletter.d.ts +54 -0
- package/recipes/common/timeline-node-newsletter/timeline-node-newsletter.d.ts.map +1 -0
- package/recipes/common/timeline-node-newsletter/timeline-node-newsletter.js +15 -0
- package/recipes/common/timeline-node-note/timeline-node-note.d.ts +56 -0
- package/recipes/common/timeline-node-note/timeline-node-note.d.ts.map +1 -0
- package/recipes/common/timeline-node-note/timeline-node-note.js +15 -0
- package/recipes/common/timeline-node-playlist/timeline-node-playlist.js +4 -4
- package/recipes/common/timeline-node-podcast/timeline-node-podcast.d.ts +55 -0
- package/recipes/common/timeline-node-podcast/timeline-node-podcast.d.ts.map +1 -0
- package/recipes/common/timeline-node-podcast/timeline-node-podcast.js +15 -0
- package/recipes/common/timeline-node-song/timeline-node-song.js +4 -4
- package/recipes/common/timeline-node-video/timeline-node-video.js +1 -1
- package/recipes/common/transport-button/transport-button.js +1 -1
- package/recipes/we-are-here/wah-logo/wah-logo.js +1 -1
- package/cdn/chunks/button.Bg6DP3Vn.js +0 -171
- package/cdn/chunks/heading.CloRt196.js +0 -58
- package/cdn/chunks/icon.K4MiqQMs.js +0 -263
- package/cdn/chunks/text-passage.C_52LvTE.js +0 -58
- package/cdn/chunks/timeline-node.C61Qa2fb.js +0 -78
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { i as
|
|
3
|
-
var h = Object.defineProperty, c = (
|
|
4
|
-
for (var
|
|
5
|
-
(o =
|
|
6
|
-
return
|
|
1
|
+
import { c as d } from "./vendor.lY5z9hnC.js";
|
|
2
|
+
import { i as l, b as p, n as a } from "./lit.EWazi_Sp.js";
|
|
3
|
+
var h = Object.defineProperty, c = (i, e, t, s) => {
|
|
4
|
+
for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
|
|
5
|
+
(o = i[r]) && (n = o(e, t, n) || n);
|
|
6
|
+
return n && h(e, t, n), n;
|
|
7
7
|
};
|
|
8
|
-
class
|
|
8
|
+
class u extends l {
|
|
9
9
|
static get observedAttributes() {
|
|
10
10
|
const e = super.observedAttributes ?? [], t = /* @__PURE__ */ new Map();
|
|
11
|
-
for (const
|
|
12
|
-
const
|
|
13
|
-
if (typeof
|
|
14
|
-
const r =
|
|
15
|
-
r ===
|
|
11
|
+
for (const s of e) {
|
|
12
|
+
const n = this.__attributeToPropertyMap?.get(s);
|
|
13
|
+
if (typeof n != "string") continue;
|
|
14
|
+
const r = n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
15
|
+
r === s || e.includes(r) || t.set(r, s);
|
|
16
16
|
}
|
|
17
17
|
return this.__kebabAliases = t, [...e, ...t.keys()];
|
|
18
18
|
}
|
|
19
|
-
attributeChangedCallback(e, t,
|
|
20
|
-
const
|
|
21
|
-
super.attributeChangedCallback(
|
|
19
|
+
attributeChangedCallback(e, t, s) {
|
|
20
|
+
const n = this.constructor.__kebabAliases?.get(e);
|
|
21
|
+
super.attributeChangedCallback(n ?? e, t, s);
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Whether this instance is rendering in enhance (light-DOM) mode. Reads the
|
|
@@ -26,7 +26,7 @@ class l extends d {
|
|
|
26
26
|
* `createRenderRoot()` time, before property hydration is guaranteed.
|
|
27
27
|
*/
|
|
28
28
|
get isEnhanceMode() {
|
|
29
|
-
return this.hasAttribute("enhance");
|
|
29
|
+
return typeof this.hasAttribute == "function" && this.hasAttribute("enhance");
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* In enhance mode, render Lit's (unused) template into a detached fragment
|
|
@@ -37,7 +37,7 @@ class l extends d {
|
|
|
37
37
|
* is never clobbered. Classic mode keeps the default encapsulated shadow root.
|
|
38
38
|
*/
|
|
39
39
|
createRenderRoot() {
|
|
40
|
-
return this.isEnhanceMode ? document.createDocumentFragment() : super.createRenderRoot();
|
|
40
|
+
return typeof document > "u" ? super.createRenderRoot() : this.isEnhanceMode ? document.createDocumentFragment() : super.createRenderRoot();
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* After each render, enhance-mode components decorate the author's light DOM.
|
|
@@ -63,10 +63,10 @@ class l extends d {
|
|
|
63
63
|
* `ed-text-passage`, the system's first light-DOM-styled component.
|
|
64
64
|
*/
|
|
65
65
|
injectGlobalStyles(e, t) {
|
|
66
|
-
if (document.getElementById(e))
|
|
66
|
+
if (typeof document > "u" || document.getElementById(e))
|
|
67
67
|
return;
|
|
68
|
-
const
|
|
69
|
-
|
|
68
|
+
const s = document.createElement("style");
|
|
69
|
+
s.id = e, s.textContent = t, document.head.appendChild(s);
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
72
|
* Abstraction of `classnames` that automatically includes any style modifier
|
|
@@ -78,7 +78,7 @@ class l extends d {
|
|
|
78
78
|
* @param baseClassName
|
|
79
79
|
*/
|
|
80
80
|
componentClassNames(e, t = {}) {
|
|
81
|
-
return
|
|
81
|
+
return d(e, this.styleModifier, t);
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* Check if a slot is empty
|
|
@@ -100,12 +100,12 @@ class l extends d {
|
|
|
100
100
|
/**
|
|
101
101
|
* Dispatch a custom event.
|
|
102
102
|
*/
|
|
103
|
-
dispatch({ e, eventName: t, detailObj:
|
|
103
|
+
dispatch({ e, eventName: t, detailObj: s = {}, optionsObj: n = {} }) {
|
|
104
104
|
const r = {
|
|
105
105
|
bubbles: !0,
|
|
106
106
|
composed: !0,
|
|
107
|
-
...
|
|
108
|
-
detail: { ...e && { originalEvent: e }, ...
|
|
107
|
+
...n,
|
|
108
|
+
detail: { ...e && { originalEvent: e }, ...s }
|
|
109
109
|
}, o = new CustomEvent(t, r);
|
|
110
110
|
return this.dispatchEvent(o), o;
|
|
111
111
|
}
|
|
@@ -117,11 +117,11 @@ class l extends d {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
c([
|
|
120
|
-
|
|
121
|
-
],
|
|
120
|
+
a()
|
|
121
|
+
], u.prototype, "styleModifier");
|
|
122
122
|
c([
|
|
123
|
-
|
|
124
|
-
],
|
|
123
|
+
a({ type: Boolean })
|
|
124
|
+
], u.prototype, "enhance");
|
|
125
125
|
export {
|
|
126
|
-
|
|
126
|
+
u as E
|
|
127
127
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as u } from "./EdElement.
|
|
1
|
+
import { r as b, A as l, b as c, n as s } from "./lit.EWazi_Sp.js";
|
|
2
|
+
import { E as u } from "./EdElement.Dqh0Nrbq.js";
|
|
3
3
|
const m = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}.ed-c-band{background:var(--ed-theme-color-background-subtle);padding:1.5rem 0}@media all and (min-width:75rem){.ed-c-band{padding:2rem 0}}.ed-c-band--brand{background:var(--ed-theme-color-background-brand)}.ed-c-band--brand-knockout{color:var(--ed-theme-color-content-knockout);background:var(--ed-theme-color-background-brand-knockout)}.ed-c-band--has-background{position:relative;isolation:isolate;overflow:hidden}.ed-c-band__background{position:absolute;inset:0;z-index:0;pointer-events:none}.ed-c-band__background ::slotted(*){position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}.ed-c-band--has-background .ed-c-band__content{position:relative;z-index:1}.ed-c-band--scrim{color:var(--ed-theme-color-content-knockout)}.ed-c-band--scrim:after{content:"";position:absolute;inset:0;z-index:0;background:color-mix(in srgb,var(--ed-theme-color-background-knockout) var(--ed-c-band-scrim-strength, 65%),transparent);pointer-events:none}';
|
|
4
4
|
var h = Object.defineProperty, i = (t, e, o, k) => {
|
|
5
|
-
for (var n = void 0,
|
|
6
|
-
(r = t[
|
|
5
|
+
for (var n = void 0, d = t.length - 1, r; d >= 0; d--)
|
|
6
|
+
(r = t[d]) && (n = r(e, o, n) || n);
|
|
7
7
|
return n && h(e, o, n), n;
|
|
8
8
|
};
|
|
9
|
-
class
|
|
9
|
+
class a extends u {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments), this.scrim = !1;
|
|
12
12
|
}
|
|
@@ -34,8 +34,8 @@ class d extends u {
|
|
|
34
34
|
}
|
|
35
35
|
i([
|
|
36
36
|
s()
|
|
37
|
-
],
|
|
37
|
+
], a.prototype, "variant");
|
|
38
38
|
i([
|
|
39
39
|
s({ type: Boolean, reflect: !0 })
|
|
40
|
-
],
|
|
41
|
-
customElements.get("ed-band") === void 0 && customElements.define("ed-band",
|
|
40
|
+
], a.prototype, "scrim");
|
|
41
|
+
customElements.get("ed-band") === void 0 && customElements.define("ed-band", a);
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { n as o, r as h, A as a, b, o as m, e as p } from "./lit.EWazi_Sp.js";
|
|
2
|
+
import { E as g } from "./EdElement.Dqh0Nrbq.js";
|
|
3
|
+
import "./icon.mc7zUxp5.js";
|
|
4
|
+
var v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, f = (i, e, n, l) => {
|
|
5
|
+
for (var d = y(e, n), c = i.length - 1, u; c >= 0; c--)
|
|
6
|
+
(u = i[c]) && (d = u(e, n, d) || d);
|
|
7
|
+
return d && v(e, n, d), d;
|
|
8
|
+
};
|
|
9
|
+
class s extends g {
|
|
10
|
+
static {
|
|
11
|
+
this.formAssociated = !0;
|
|
12
|
+
}
|
|
13
|
+
get value() {
|
|
14
|
+
return this.internalValue;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Sets the value of the form field.
|
|
18
|
+
* 1. Stores the new value so it can be retrieved by the getter.
|
|
19
|
+
* 2. Sets the current value of the control.
|
|
20
|
+
* 3. Updates the actual field.
|
|
21
|
+
* 4. Rerenders the component.
|
|
22
|
+
*/
|
|
23
|
+
set value(e) {
|
|
24
|
+
const n = this.value;
|
|
25
|
+
this.internalValue = e, this.type !== "checkbox" && this.type !== "radio" && this.internals.setFormValue(e), this.updateField(), this.requestUpdate("value", n);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* update the actual field's value
|
|
29
|
+
*/
|
|
30
|
+
updateField() {
|
|
31
|
+
this.field && (this.value == null ? this.field.value = "" : this.field.value = this.value);
|
|
32
|
+
}
|
|
33
|
+
firstUpdated() {
|
|
34
|
+
this.type !== "checkbox" && this.type !== "radio" && (this.defaultValue = this.value || this.getAttribute("value") || null), this.updateField();
|
|
35
|
+
}
|
|
36
|
+
formResetCallback() {
|
|
37
|
+
this.value = this.defaultValue, this.updateField();
|
|
38
|
+
}
|
|
39
|
+
constructor() {
|
|
40
|
+
super(), this.internals = this.attachInternals();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
f([
|
|
44
|
+
o()
|
|
45
|
+
], s.prototype, "value");
|
|
46
|
+
const k = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-u-is-hidden{display:none!important;visibility:hidden!important}.ed-u-is-vishidden{position:absolute!important;overflow:hidden;width:1px;height:1px;padding:0;border:0;clip:rect(1px,1px,1px,1px)}@media all and (min-width:23.4375rem){.ed-u-hide-sm{display:none!important}}@media all and (min-width:48rem){.ed-u-hide-md{display:none!important}}@media all and (min-width:60rem){.ed-u-hide-lg{display:none!important}}@media all and (min-width:75rem){.ed-u-hide-xl{display:none!important}}@media all and (max-width:23.4375rem){.ed-u-show-sm{display:none!important}}@media all and (max-width:48rem){.ed-u-show-md{display:none!important}}@media all and (max-width:60rem){.ed-u-show-lg{display:none!important}}@media all and (max-width:75rem){.ed-u-show-xl{display:none!important}}.ed-c-button{font-family:var(--ed-theme-typography-button-default-font-family);font-weight:var(--ed-theme-typography-button-default-font-weight);font-size:var(--ed-theme-typography-button-default-font-size);line-height:var(--ed-theme-typography-button-default-line-height);letter-spacing:var(--ed-theme-typography-button-default-letter-spacing);text-transform:var(--ed-theme-typography-button-default-text-transform);--ed-button-padding-block: .75rem;--ed-button-padding-inline: 1.75rem;--ed-button-padding-inline-icon: .75rem;display:inline-flex;align-items:center;justify-content:center;gap:var(--ed-button-gap, .25em);padding:var(--ed-button-padding-block) var(--ed-button-padding-inline);margin:0;background:var(--ed-theme-button-color-background-default);border-width:var(--ed-theme-border-width-md);border-style:solid;border-color:var(--ed-theme-button-color-border-default);border-radius:var(--ed-theme-border-radius-md);color:var(--ed-theme-button-color-content-default);cursor:pointer;white-space:nowrap;transition:all var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-button:hover,.ed-c-button:focus{color:var(--ed-theme-button-color-content-hover);border-color:var(--ed-theme-button-color-border-hover);background:var(--ed-theme-button-color-background-hover);text-decoration:none}.ed-c-button:focus-visible{outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-default);outline-offset:var(--ed-theme-offset-focus-ring, .25rem)}.ed-c-button:active{background-color:var(--ed-theme-button-color-background-active);border-color:var(--ed-theme-button-color-border-active);color:var(--ed-theme-button-color-content-active)}a.ed-c-button{text-decoration:none}.ed-c-button:disabled{background-color:var(--ed-theme-button-color-background-disabled);border-color:var(--ed-theme-button-color-border-disabled);color:var(--ed-theme-button-color-content-disabled);cursor:not-allowed}.ed-c-button:disabled:hover,.ed-c-button:disabled:focus,.ed-c-button:disabled:active{background-color:var(--ed-theme-button-color-background-disabled);border-color:var(--ed-theme-button-color-border-disabled);color:var(--ed-theme-button-color-content-disabled)}.ed-c-button--primary{background-color:var(--ed-theme-button-primary-color-background-default);border-color:var(--ed-theme-button-primary-color-border-default);color:var(--ed-theme-button-primary-color-content-default)}.ed-c-button--primary:hover,.ed-c-button--primary:focus{background-color:var(--ed-theme-button-primary-color-background-hover);border-color:var(--ed-theme-button-primary-color-border-hover);color:var(--ed-theme-button-primary-color-content-hover)}.ed-c-button--primary:active{background-color:var(--ed-theme-button-primary-color-background-active);border-color:var(--ed-theme-button-primary-color-border-active);color:var(--ed-theme-button-primary-color-content-active)}.ed-c-button--primary:disabled{background-color:var(--ed-theme-button-primary-color-background-disabled);border-color:var(--ed-theme-button-primary-color-border-disabled);color:var(--ed-theme-button-primary-color-content-disabled)}.ed-c-button--primary:disabled:hover,.ed-c-button--primary:disabled:focus,.ed-c-button--primary:disabled:active{background-color:var(--ed-theme-button-primary-color-background-disabled);border-color:var(--ed-theme-button-primary-color-border-disabled);color:var(--ed-theme-button-primary-color-content-disabled)}.ed-c-button--danger{background-color:var(--ed-theme-button-danger-color-background-default, var(--ed-theme-color-background-utility-error));border-color:var(--ed-theme-button-danger-color-border-default, var(--ed-theme-color-border-utility-error));color:var(--ed-theme-button-danger-color-content-default, var(--ed-theme-color-content-utility-error))}.ed-c-button--danger:hover,.ed-c-button--danger:focus{background-color:var(--ed-theme-button-danger-color-background-hover, var(--ed-theme-color-background-utility-error));border-color:var(--ed-theme-button-danger-color-border-hover, var(--ed-theme-color-border-utility-error));color:var(--ed-theme-button-danger-color-content-hover, var(--ed-theme-color-content-utility-error))}.ed-c-button--danger:active{background-color:var(--ed-theme-button-danger-color-background-active, var(--ed-theme-color-background-utility-error));border-color:var(--ed-theme-button-danger-color-border-active, var(--ed-theme-color-border-utility-error));color:var(--ed-theme-button-danger-color-content-active, var(--ed-theme-color-content-utility-error))}.ed-c-button--danger:disabled{background-color:var(--ed-theme-button-danger-color-background-disabled, var(--ed-theme-button-color-background-disabled));border-color:var(--ed-theme-button-danger-color-border-disabled, var(--ed-theme-button-color-border-disabled));color:var(--ed-theme-button-danger-color-content-disabled, var(--ed-theme-button-color-content-disabled))}.ed-c-button--danger:disabled:hover,.ed-c-button--danger:disabled:focus,.ed-c-button--danger:disabled:active{background-color:var(--ed-theme-button-danger-color-background-disabled, var(--ed-theme-button-color-background-disabled));border-color:var(--ed-theme-button-danger-color-border-disabled, var(--ed-theme-button-color-border-disabled));color:var(--ed-theme-button-danger-color-content-disabled, var(--ed-theme-button-color-content-disabled))}.ed-c-button--link{font-family:var(--ed-theme-typography-body-default-font-family);font-weight:var(--ed-theme-typography-body-default-font-weight);font-size:var(--ed-theme-typography-body-default-font-size);line-height:var(--ed-theme-typography-body-default-line-height);letter-spacing:var(--ed-theme-typography-body-default-letter-spacing);text-transform:var(--ed-theme-typography-body-default-text-transform);background-color:transparent;border:none;color:var(--ed-theme-link-color-content-default);padding:0}.ed-c-button--link:hover,.ed-c-button--link:focus{background-color:transparent;border:none;color:var(--ed-theme-link-color-content-hover);text-decoration:underline}.ed-c-button--link:active{background-color:transparent;border:none;color:var(--ed-theme-link-color-content-active)}.ed-c-button--link:visited{color:var(--ed-theme-link-color-content-visited)}.ed-c-button--link:disabled{background-color:transparent;border:none;color:var(--ed-theme-color-content-disabled)}.ed-c-button--link:disabled:hover,.ed-c-button--link:disabled:focus,.ed-c-button--link:disabled:active{background-color:transparent;border:none;color:var(--ed-theme-color-content-disabled)}.ed-c-button--link.ed-c-button--sm{font-family:var(--ed-theme-typography-body-sm-font-family);font-weight:var(--ed-theme-typography-body-sm-font-weight);font-size:var(--ed-theme-typography-body-sm-font-size);line-height:var(--ed-theme-typography-body-sm-line-height);letter-spacing:var(--ed-theme-typography-body-sm-letter-spacing);text-transform:var(--ed-theme-typography-body-sm-text-transform)}.ed-c-button--link.ed-c-button--lg{font-family:var(--ed-theme-typography-body-lg-font-family);font-weight:var(--ed-theme-typography-body-lg-font-weight);font-size:var(--ed-theme-typography-body-lg-font-size);line-height:var(--ed-theme-typography-body-lg-line-height);letter-spacing:var(--ed-theme-typography-body-lg-letter-spacing);text-transform:var(--ed-theme-typography-body-lg-text-transform)}.ed-c-button--bare{padding:0;border:0;background:none;color:var(--ed-theme-color-content-default)}.ed-c-button--bare:hover,.ed-c-button--bare:focus{color:var(--ed-theme-color-content-hover);background:none}.ed-c-button--bare:disabled{color:var(--ed-theme-button-bare-color-content-disabled);background:none;cursor:not-allowed}.ed-c-button--bare:disabled:hover,.ed-c-button--bare:disabled:focus{background:none;color:var(--ed-theme-button-bare-color-content-disabled)}.ed-c-button--knockout:focus-visible{outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-knockout);outline-offset:var(--ed-theme-offset-focus-ring, .25rem)}.ed-c-button--bare.ed-c-button--knockout{color:var(--ed-theme-color-content-knockout)}.ed-c-button--bare.ed-c-button--knockout:hover,.ed-c-button--bare.ed-c-button--knockout:focus{color:var(--ed-theme-color-content-knockout)}.ed-c-button--bare.ed-c-button--knockout:active{color:var(--ed-theme-color-content-knockout)}.ed-c-button--link.ed-c-button--knockout{color:var(--ed-theme-link-color-content-knockout)}.ed-c-button--link.ed-c-button--knockout:hover,.ed-c-button--link.ed-c-button--knockout:focus{color:var(--ed-theme-link-color-content-knockout-hover)}.ed-c-button--link.ed-c-button--knockout:active{color:var(--ed-theme-link-color-content-knockout-active)}.ed-c-button--link.ed-c-button--knockout:visited{color:var(--ed-theme-link-color-content-knockout-visited)}.ed-c-button--full-width{width:100%;justify-content:center;text-align:center}.ed-c-button--loading{cursor:not-allowed}a.ed-c-button--loading{background-color:var(--ed-theme-button-color-background-disabled);border-color:var(--ed-theme-button-color-border-disabled);color:var(--ed-theme-button-color-content-disabled)}a.ed-c-button--loading:hover,a.ed-c-button--loading:focus,a.ed-c-button--loading:active{background-color:var(--ed-theme-button-color-background-disabled);border-color:var(--ed-theme-button-color-border-disabled);color:var(--ed-theme-button-color-content-disabled)}.ed-c-button__spinner{display:inline-flex;align-self:center;animation:ed-c-button-spin .7s linear infinite}@media(prefers-reduced-motion:reduce){.ed-c-button__spinner{animation:none}}@keyframes ed-c-button-spin{to{transform:rotate(360deg)}}.ed-c-button--sm{font-family:var(--ed-theme-typography-button-sm-font-family);font-weight:var(--ed-theme-typography-button-sm-font-weight);font-size:var(--ed-theme-typography-button-sm-font-size);line-height:var(--ed-theme-typography-button-sm-line-height);letter-spacing:var(--ed-theme-typography-button-sm-letter-spacing);text-transform:var(--ed-theme-typography-button-sm-text-transform);--ed-button-padding-block: .5rem;--ed-button-padding-inline: 1rem;--ed-button-padding-inline-icon: .75rem}.ed-c-button--sm.ed-c-button--bare{padding:0}.ed-c-button--lg{font-family:var(--ed-theme-typography-button-lg-font-family);font-weight:var(--ed-theme-typography-button-lg-font-weight);font-size:var(--ed-theme-typography-button-lg-font-size);line-height:var(--ed-theme-typography-button-lg-line-height);letter-spacing:var(--ed-theme-typography-button-lg-letter-spacing);text-transform:var(--ed-theme-typography-button-lg-text-transform);--ed-button-padding-block: 1rem;--ed-button-padding-inline: 2.25rem;--ed-button-padding-inline-icon: 1rem}.ed-c-button--lg.ed-c-button--bare{padding:0}ed-icon{--ed-icon-height: 1em;--ed-icon-width: 1em;transition:all var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease);transform:var(--ed-button-icon-transform, none)}.ed-c-button:not(.ed-c-button--bare):not(.ed-c-button--link):has(>ed-icon:first-child){padding-inline-start:var(--ed-button-padding-inline-icon)}.ed-c-button:not(.ed-c-button--bare):not(.ed-c-button--link):has(>ed-icon:last-child){padding-inline-end:var(--ed-button-padding-inline-icon)}.ed-c-button:not(.ed-c-button--bare):not(.ed-c-button--link):has(>.ed-c-button__text.ed-u-is-vishidden){padding-inline:var(--ed-button-padding-inline-icon)}';
|
|
47
|
+
var x = Object.defineProperty, r = (i, e, n, l) => {
|
|
48
|
+
for (var d = void 0, c = i.length - 1, u; c >= 0; c--)
|
|
49
|
+
(u = i[c]) && (d = u(e, n, d) || d);
|
|
50
|
+
return d && x(e, n, d), d;
|
|
51
|
+
};
|
|
52
|
+
class t extends s {
|
|
53
|
+
constructor() {
|
|
54
|
+
super(...arguments), this.iconPosition = void 0, this.fullWidth = !1, this.round = !1, this.isLoading = !1, this.type = "button";
|
|
55
|
+
}
|
|
56
|
+
static {
|
|
57
|
+
this.formAssociated = !0;
|
|
58
|
+
}
|
|
59
|
+
static get styles() {
|
|
60
|
+
return h(k);
|
|
61
|
+
}
|
|
62
|
+
clickHandler(e) {
|
|
63
|
+
if (this.isLoading) {
|
|
64
|
+
e.preventDefault();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
this.type === "submit" ? this.formSubmit() : this.type === "reset" && this.formReset();
|
|
68
|
+
}
|
|
69
|
+
formSubmit() {
|
|
70
|
+
const e = this.internals.form;
|
|
71
|
+
e && (typeof e.requestSubmit == "function" ? e.requestSubmit() : e.submit());
|
|
72
|
+
}
|
|
73
|
+
formReset() {
|
|
74
|
+
const e = this.internals.form;
|
|
75
|
+
e && e.reset();
|
|
76
|
+
}
|
|
77
|
+
getIconElement() {
|
|
78
|
+
return this.iconName ? b`<ed-icon styleModifier="ed-c-button__icon" aria-hidden="true" name="${this.iconName}"></ed-icon>` : a;
|
|
79
|
+
}
|
|
80
|
+
getSpinnerElement() {
|
|
81
|
+
return this.isLoading ? b`<ed-icon class="ed-c-button__spinner" aria-hidden="true" name="spinner"></ed-icon>` : a;
|
|
82
|
+
}
|
|
83
|
+
createButton(e) {
|
|
84
|
+
const n = this.getIconElement(), l = this.getSpinnerElement();
|
|
85
|
+
return b`
|
|
86
|
+
<button type="${this.type}" class="${e}" ?disabled=${this.disabled || this.isLoading}
|
|
87
|
+
aria-busy=${this.isLoading ? "true" : a} @click=${this.clickHandler}>
|
|
88
|
+
${this.isLoading ? l : this.iconPosition === "before" ? n : a}
|
|
89
|
+
<span class="${this.hideText ? "ed-u-is-vishidden ed-c-button__text" : "ed-c-button__text"}"><slot>${this.text}</slot></span>
|
|
90
|
+
${!this.isLoading && this.iconPosition === "after" ? n : a}
|
|
91
|
+
</button>
|
|
92
|
+
`;
|
|
93
|
+
}
|
|
94
|
+
createAnchorButton(e) {
|
|
95
|
+
const n = this.getIconElement(), l = this.getSpinnerElement();
|
|
96
|
+
return b`
|
|
97
|
+
<a href="${m(this.href)}" class="${e}" target=${this.target}
|
|
98
|
+
aria-busy=${this.isLoading ? "true" : a} aria-disabled=${this.isLoading ? "true" : a} @click=${this.clickHandler}>
|
|
99
|
+
${this.isLoading ? l : this.iconPosition === "before" ? n : a}
|
|
100
|
+
<span class="${this.hideText ? "ed-u-is-vishidden ed-c-button__text" : "ed-c-button__text"}"><slot>${this.text}</slot></span>
|
|
101
|
+
${!this.isLoading && this.iconPosition === "after" ? n : a}
|
|
102
|
+
</a>
|
|
103
|
+
`;
|
|
104
|
+
}
|
|
105
|
+
render() {
|
|
106
|
+
const e = this.componentClassNames("ed-c-button", {
|
|
107
|
+
"ed-c-button--primary": this.variant === "primary",
|
|
108
|
+
"ed-c-button--danger": this.variant === "danger",
|
|
109
|
+
"ed-c-button--bare": this.variant === "bare",
|
|
110
|
+
"ed-c-button--link": this.variant === "link",
|
|
111
|
+
"ed-c-button--knockout": this.knockout === !0 || this.inverted === !0,
|
|
112
|
+
"ed-c-button--loading": this.isLoading === !0,
|
|
113
|
+
"ed-c-button--full-width": this.fullWidth === !0,
|
|
114
|
+
"ed-c-button--sm": this.size === "sm",
|
|
115
|
+
"ed-c-button--lg": this.size === "lg"
|
|
116
|
+
});
|
|
117
|
+
return this.href ? this.createAnchorButton(e) : this.createButton(e);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
r([
|
|
121
|
+
o()
|
|
122
|
+
], t.prototype, "text");
|
|
123
|
+
r([
|
|
124
|
+
o()
|
|
125
|
+
], t.prototype, "variant");
|
|
126
|
+
r([
|
|
127
|
+
o({ type: Boolean })
|
|
128
|
+
], t.prototype, "disabled");
|
|
129
|
+
r([
|
|
130
|
+
o()
|
|
131
|
+
], t.prototype, "target");
|
|
132
|
+
r([
|
|
133
|
+
o({ type: Boolean })
|
|
134
|
+
], t.prototype, "knockout");
|
|
135
|
+
r([
|
|
136
|
+
o({ type: Boolean })
|
|
137
|
+
], t.prototype, "inverted");
|
|
138
|
+
r([
|
|
139
|
+
o()
|
|
140
|
+
], t.prototype, "href");
|
|
141
|
+
r([
|
|
142
|
+
o()
|
|
143
|
+
], t.prototype, "iconName");
|
|
144
|
+
r([
|
|
145
|
+
o()
|
|
146
|
+
], t.prototype, "iconPosition");
|
|
147
|
+
r([
|
|
148
|
+
o()
|
|
149
|
+
], t.prototype, "size");
|
|
150
|
+
r([
|
|
151
|
+
o({ type: Boolean })
|
|
152
|
+
], t.prototype, "hideText");
|
|
153
|
+
r([
|
|
154
|
+
o({ type: Boolean })
|
|
155
|
+
], t.prototype, "fullWidth");
|
|
156
|
+
r([
|
|
157
|
+
o({ type: Boolean })
|
|
158
|
+
], t.prototype, "round");
|
|
159
|
+
r([
|
|
160
|
+
o({ type: Boolean })
|
|
161
|
+
], t.prototype, "isLoading");
|
|
162
|
+
r([
|
|
163
|
+
o({ type: String })
|
|
164
|
+
], t.prototype, "type");
|
|
165
|
+
r([
|
|
166
|
+
p("button")
|
|
167
|
+
], t.prototype, "field");
|
|
168
|
+
customElements.get("ed-button") === void 0 && customElements.define("ed-button", t);
|
|
169
|
+
export {
|
|
170
|
+
s as E
|
|
171
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { r as l, b as t, n } from "./lit.EWazi_Sp.js";
|
|
2
|
+
import { E as h } from "./EdElement.Dqh0Nrbq.js";
|
|
3
|
+
const m = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}.ed-c-card{display:flex;flex-direction:column;height:100%;width:100%;border-width:var(--ed-theme-border-width-sm);border-style:solid;border-color:var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-md);box-shadow:var(--ed-theme-box-shadow-md);color:var(--ed-theme-color-content-on-surface);background:var(--ed-theme-color-background-surface)}.ed-c-card--bare{border:0;padding:0;color:var(--ed-theme-color-content-default);box-shadow:none}.ed-c-card--align-center{text-align:center;align-items:center;justify-content:center}::slotted(img){width:100%}.ed-c-card__header{display:block;flex:none}.ed-c-card__body{display:block;padding:1rem;flex:1 0 auto}.ed-c-card--bare .ed-c-card__body{padding:0}.ed-c-card__footer{display:block;flex:none;padding:1rem}.ed-c-card--bare .ed-c-card__footer{padding:0}';
|
|
4
|
+
var b = Object.defineProperty, i = (r, d, c, f) => {
|
|
5
|
+
for (var e = void 0, o = r.length - 1, s; o >= 0; o--)
|
|
6
|
+
(s = r[o]) && (e = s(d, c, e) || e);
|
|
7
|
+
return e && b(d, c, e), e;
|
|
8
|
+
};
|
|
9
|
+
class a extends h {
|
|
10
|
+
static get styles() {
|
|
11
|
+
return l(m);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
const d = this.componentClassNames("ed-c-card", {
|
|
15
|
+
"ed-c-card--bare": this.variant === "bare",
|
|
16
|
+
"ed-c-card--align-center": this.align === "center"
|
|
17
|
+
});
|
|
18
|
+
return t`
|
|
19
|
+
<div class="${d}">
|
|
20
|
+
${this.slotNotEmpty("header") && t`<div class="ed-c-card__header">
|
|
21
|
+
<slot name="header"></slot>
|
|
22
|
+
</div>`}
|
|
23
|
+
<div class="ed-c-card__body">
|
|
24
|
+
<slot></slot>
|
|
25
|
+
</div>
|
|
26
|
+
${this.slotNotEmpty("footer") && t`<div class="ed-c-card__footer">
|
|
27
|
+
<slot name="footer"></slot>
|
|
28
|
+
</div>`}
|
|
29
|
+
</div>
|
|
30
|
+
`;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
i([
|
|
34
|
+
n()
|
|
35
|
+
], a.prototype, "variant");
|
|
36
|
+
i([
|
|
37
|
+
n()
|
|
38
|
+
], a.prototype, "align");
|
|
39
|
+
customElements.get("ed-card") === void 0 && customElements.define("ed-card", a);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as m } from "./EdElement.
|
|
3
|
-
import "./layout-container.
|
|
1
|
+
import { a as s, r as v, b as o, n as h } from "./lit.EWazi_Sp.js";
|
|
2
|
+
import { E as m } from "./EdElement.Dqh0Nrbq.js";
|
|
3
|
+
import "./layout-container.C8MYJcgw.js";
|
|
4
4
|
const u = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}.ed-c-header{--ed-header-color-content: var(--ed-theme-color-content-knockout);--ed-header-focus-ring-color: var(--ed-theme-focus-ring-color-border-knockout);background:var(--ed-theme-color-background-knockout);color:var(--ed-header-color-content);position:relative;z-index:3}@media all and (min-width:60rem){.ed-c-header--vertical{inline-size:var(--ed-sidebar-width, 18rem);min-block-size:100vh}}.ed-c-header__top{position:relative;inset-block-start:0;width:100%;z-index:3}.ed-c-header__top-inner{width:100%}.ed-c-header__middle{width:100%;display:flex;align-items:center}@media all and (min-width:60rem){.ed-c-header--vertical .ed-c-header__middle{flex-direction:column;align-items:flex-start;gap:1rem}}.ed-c-header--bare{--ed-header-color-content: var(--ed-theme-color-content-default);--ed-header-focus-ring-color: var(--ed-theme-focus-ring-color-border-default);background:transparent;color:var(--ed-header-color-content)}.ed-c-header--brand{--ed-header-color-content: var(--ed-theme-color-content-knockout);background:var(--ed-theme-color-background-brand);color:var(--ed-header-color-content)}.ed-c-header--brand-knockout{--ed-header-color-content: var(--ed-theme-color-content-knockout);background:var(--ed-theme-color-background-brand-knockout);color:var(--ed-header-color-content)}.ed-c-header--accent-1{--ed-header-color-content: var(--ed-theme-color-content-on-accent-1);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-1);background:var(--ed-theme-color-background-accent-1);color:var(--ed-header-color-content)}.ed-c-header--accent-2{--ed-header-color-content: var(--ed-theme-color-content-on-accent-2);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-2);background:var(--ed-theme-color-background-accent-2);color:var(--ed-header-color-content)}.ed-c-header--accent-3{--ed-header-color-content: var(--ed-theme-color-content-on-accent-3);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-3);background:var(--ed-theme-color-background-accent-3);color:var(--ed-header-color-content)}.ed-c-header--accent-4{--ed-header-color-content: var(--ed-theme-color-content-on-accent-4);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-4);background:var(--ed-theme-color-background-accent-4);color:var(--ed-header-color-content)}.ed-c-header--accent-5{--ed-header-color-content: var(--ed-theme-color-content-on-accent-5);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-5);background:var(--ed-theme-color-background-accent-5);color:var(--ed-header-color-content)}.ed-c-header--accent-6{--ed-header-color-content: var(--ed-theme-color-content-on-accent-6);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-6);background:var(--ed-theme-color-background-accent-6);color:var(--ed-header-color-content)}.ed-c-header--accent-7{--ed-header-color-content: var(--ed-theme-color-content-on-accent-7);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-7);background:var(--ed-theme-color-background-accent-7);color:var(--ed-header-color-content)}.ed-c-header--accent-8{--ed-header-color-content: var(--ed-theme-color-content-on-accent-8);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-8);background:var(--ed-theme-color-background-accent-8);color:var(--ed-header-color-content)}';
|
|
5
5
|
var b = Object.defineProperty, d = (a, c, t, n) => {
|
|
6
6
|
for (var e = void 0, l = a.length - 1, i; l >= 0; l--)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { r as y, b as a, n as o } from "./lit.EWazi_Sp.js";
|
|
2
|
+
import { E as g } from "./EdElement.Dqh0Nrbq.js";
|
|
3
|
+
const m = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6,.ed-c-heading{margin:0}::slotted(a){color:inherit;text-decoration:none;border-block-end:var(--ed-theme-border-width-sm) solid transparent;transition:border-color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}::slotted(a:hover),::slotted(a:focus-visible){color:inherit;border-block-end-color:var(--ed-heading-link-color-border, var(--ed-theme-color-border-brand))}::slotted(a:focus-visible){outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-default);outline-offset:var(--ed-theme-offset-focus-ring, .25rem)}.ed-c-heading--display-xl{font-family:var(--ed-theme-typography-display-xl-mobile-font-family);font-weight:var(--ed-theme-typography-display-xl-mobile-font-weight);font-size:var(--ed-theme-typography-display-xl-mobile-font-size);line-height:var(--ed-theme-typography-display-xl-mobile-line-height);letter-spacing:var(--ed-theme-typography-display-xl-mobile-letter-spacing);text-transform:var(--ed-theme-typography-display-xl-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--display-xl{font-family:var(--ed-theme-typography-display-xl-tablet-font-family);font-weight:var(--ed-theme-typography-display-xl-tablet-font-weight);font-size:var(--ed-theme-typography-display-xl-tablet-font-size);line-height:var(--ed-theme-typography-display-xl-tablet-line-height);letter-spacing:var(--ed-theme-typography-display-xl-tablet-letter-spacing);text-transform:var(--ed-theme-typography-display-xl-tablet-text-transform)}}@media all and (min-width:75rem){.ed-c-heading--display-xl{font-family:var(--ed-theme-typography-display-xl-font-family);font-weight:var(--ed-theme-typography-display-xl-font-weight);font-size:var(--ed-theme-typography-display-xl-font-size);line-height:var(--ed-theme-typography-display-xl-line-height);letter-spacing:var(--ed-theme-typography-display-xl-letter-spacing);text-transform:var(--ed-theme-typography-display-xl-text-transform)}}.ed-c-heading--display-lg{font-family:var(--ed-theme-typography-display-lg-mobile-font-family);font-weight:var(--ed-theme-typography-display-lg-mobile-font-weight);font-size:var(--ed-theme-typography-display-lg-mobile-font-size);line-height:var(--ed-theme-typography-display-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-display-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-display-lg-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--display-lg{font-family:var(--ed-theme-typography-display-lg-font-family);font-weight:var(--ed-theme-typography-display-lg-font-weight);font-size:var(--ed-theme-typography-display-lg-font-size);line-height:var(--ed-theme-typography-display-lg-line-height);letter-spacing:var(--ed-theme-typography-display-lg-letter-spacing);text-transform:var(--ed-theme-typography-display-lg-text-transform)}}.ed-c-heading--display-default{font-family:var(--ed-theme-typography-display-default-mobile-font-family);font-weight:var(--ed-theme-typography-display-default-mobile-font-weight);font-size:var(--ed-theme-typography-display-default-mobile-font-size);line-height:var(--ed-theme-typography-display-default-mobile-line-height);letter-spacing:var(--ed-theme-typography-display-default-mobile-letter-spacing);text-transform:var(--ed-theme-typography-display-default-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--display-default{font-family:var(--ed-theme-typography-display-default-font-family);font-weight:var(--ed-theme-typography-display-default-font-weight);font-size:var(--ed-theme-typography-display-default-font-size);line-height:var(--ed-theme-typography-display-default-line-height);letter-spacing:var(--ed-theme-typography-display-default-letter-spacing);text-transform:var(--ed-theme-typography-display-default-text-transform)}}.ed-c-heading--headline-lg{font-family:var(--ed-theme-typography-headline-lg-mobile-font-family);font-weight:var(--ed-theme-typography-headline-lg-mobile-font-weight);font-size:var(--ed-theme-typography-headline-lg-mobile-font-size);line-height:var(--ed-theme-typography-headline-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-lg-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--headline-lg{font-family:var(--ed-theme-typography-headline-lg-font-family);font-weight:var(--ed-theme-typography-headline-lg-font-weight);font-size:var(--ed-theme-typography-headline-lg-font-size);line-height:var(--ed-theme-typography-headline-lg-line-height);letter-spacing:var(--ed-theme-typography-headline-lg-letter-spacing);text-transform:var(--ed-theme-typography-headline-lg-text-transform)}}.ed-c-heading--headline-default{font-family:var(--ed-theme-typography-headline-default-mobile-font-family);font-weight:var(--ed-theme-typography-headline-default-mobile-font-weight);font-size:var(--ed-theme-typography-headline-default-mobile-font-size);line-height:var(--ed-theme-typography-headline-default-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-default-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-default-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--headline-default{font-family:var(--ed-theme-typography-headline-default-font-family);font-weight:var(--ed-theme-typography-headline-default-font-weight);font-size:var(--ed-theme-typography-headline-default-font-size);line-height:var(--ed-theme-typography-headline-default-line-height);letter-spacing:var(--ed-theme-typography-headline-default-letter-spacing);text-transform:var(--ed-theme-typography-headline-default-text-transform)}}.ed-c-heading--headline-sm{font-family:var(--ed-theme-typography-headline-sm-mobile-font-family);font-weight:var(--ed-theme-typography-headline-sm-mobile-font-weight);font-size:var(--ed-theme-typography-headline-sm-mobile-font-size);line-height:var(--ed-theme-typography-headline-sm-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-sm-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-sm-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--headline-sm{font-family:var(--ed-theme-typography-headline-sm-font-family);font-weight:var(--ed-theme-typography-headline-sm-font-weight);font-size:var(--ed-theme-typography-headline-sm-font-size);line-height:var(--ed-theme-typography-headline-sm-line-height);letter-spacing:var(--ed-theme-typography-headline-sm-letter-spacing);text-transform:var(--ed-theme-typography-headline-sm-text-transform)}}.ed-c-heading--title-lg{font-family:var(--ed-theme-typography-title-lg-mobile-font-family);font-weight:var(--ed-theme-typography-title-lg-mobile-font-weight);font-size:var(--ed-theme-typography-title-lg-mobile-font-size);line-height:var(--ed-theme-typography-title-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-title-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-title-lg-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--title-lg{font-family:var(--ed-theme-typography-title-lg-font-family);font-weight:var(--ed-theme-typography-title-lg-font-weight);font-size:var(--ed-theme-typography-title-lg-font-size);line-height:var(--ed-theme-typography-title-lg-line-height);letter-spacing:var(--ed-theme-typography-title-lg-letter-spacing);text-transform:var(--ed-theme-typography-title-lg-text-transform)}}.ed-c-heading--title-default{font-family:var(--ed-theme-typography-title-default-font-family);font-weight:var(--ed-theme-typography-title-default-font-weight);font-size:var(--ed-theme-typography-title-default-font-size);line-height:var(--ed-theme-typography-title-default-line-height);letter-spacing:var(--ed-theme-typography-title-default-letter-spacing);text-transform:var(--ed-theme-typography-title-default-text-transform)}.ed-c-heading--title-sm{font-family:var(--ed-theme-typography-title-sm-font-family);font-weight:var(--ed-theme-typography-title-sm-font-weight);font-size:var(--ed-theme-typography-title-sm-font-size);line-height:var(--ed-theme-typography-title-sm-line-height);letter-spacing:var(--ed-theme-typography-title-sm-letter-spacing);text-transform:var(--ed-theme-typography-title-sm-text-transform)}.ed-c-heading--label-lg{font-family:var(--ed-theme-typography-label-lg-font-family);font-weight:var(--ed-theme-typography-label-lg-font-weight);font-size:var(--ed-theme-typography-label-lg-font-size);line-height:var(--ed-theme-typography-label-lg-line-height);letter-spacing:var(--ed-theme-typography-label-lg-letter-spacing);text-transform:var(--ed-theme-typography-label-lg-text-transform)}.ed-c-heading--label-default{font-family:var(--ed-theme-typography-label-default-font-family);font-weight:var(--ed-theme-typography-label-default-font-weight);font-size:var(--ed-theme-typography-label-default-font-size);line-height:var(--ed-theme-typography-label-default-line-height);letter-spacing:var(--ed-theme-typography-label-default-letter-spacing);text-transform:var(--ed-theme-typography-label-default-text-transform)}.ed-c-heading--label-sm{font-family:var(--ed-theme-typography-label-sm-font-family);font-weight:var(--ed-theme-typography-label-sm-font-weight);font-size:var(--ed-theme-typography-label-sm-font-size);line-height:var(--ed-theme-typography-label-sm-line-height);letter-spacing:var(--ed-theme-typography-label-sm-letter-spacing);text-transform:var(--ed-theme-typography-label-sm-text-transform)}.ed-c-heading--body-lg{font-family:var(--ed-theme-typography-body-lg-font-family);font-weight:var(--ed-theme-typography-body-lg-font-weight);font-size:var(--ed-theme-typography-body-lg-font-size);line-height:var(--ed-theme-typography-body-lg-line-height);letter-spacing:var(--ed-theme-typography-body-lg-letter-spacing);text-transform:var(--ed-theme-typography-body-lg-text-transform)}.ed-c-heading--body-default{font-family:var(--ed-theme-typography-body-default-font-family);font-weight:var(--ed-theme-typography-body-default-font-weight);font-size:var(--ed-theme-typography-body-default-font-size);line-height:var(--ed-theme-typography-body-default-line-height);letter-spacing:var(--ed-theme-typography-body-default-letter-spacing);text-transform:var(--ed-theme-typography-body-default-text-transform)}.ed-c-heading--body-sm{font-family:var(--ed-theme-typography-body-sm-font-family);font-weight:var(--ed-theme-typography-body-sm-font-weight);font-size:var(--ed-theme-typography-body-sm-font-size);line-height:var(--ed-theme-typography-body-sm-line-height);letter-spacing:var(--ed-theme-typography-body-sm-letter-spacing);text-transform:var(--ed-theme-typography-body-sm-text-transform)}.ed-c-heading--meta-default{font-family:var(--ed-theme-typography-meta-default-font-family);font-weight:var(--ed-theme-typography-meta-default-font-weight);font-size:var(--ed-theme-typography-meta-default-font-size);line-height:var(--ed-theme-typography-meta-default-line-height);letter-spacing:var(--ed-theme-typography-meta-default-letter-spacing);text-transform:var(--ed-theme-typography-meta-default-text-transform)}.ed-c-heading--meta-sm{font-family:var(--ed-theme-typography-meta-sm-font-family);font-weight:var(--ed-theme-typography-meta-sm-font-weight);font-size:var(--ed-theme-typography-meta-sm-font-size);line-height:var(--ed-theme-typography-meta-sm-line-height);letter-spacing:var(--ed-theme-typography-meta-sm-letter-spacing);text-transform:var(--ed-theme-typography-meta-sm-text-transform)}';
|
|
4
|
+
var p = Object.defineProperty, n = (i, e, r, s) => {
|
|
5
|
+
for (var t = void 0, h = i.length - 1, d; h >= 0; h--)
|
|
6
|
+
(d = i[h]) && (t = d(e, r, t) || t);
|
|
7
|
+
return t && p(e, r, t), t;
|
|
8
|
+
};
|
|
9
|
+
class l extends g {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments), this.tagName = "h2";
|
|
12
|
+
}
|
|
13
|
+
static get styles() {
|
|
14
|
+
return y(m);
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
const e = this.componentClassNames("ed-c-heading", {
|
|
18
|
+
"ed-c-heading--display-xl": this.variant === "display-xl",
|
|
19
|
+
"ed-c-heading--display-lg": this.variant === "display-lg",
|
|
20
|
+
"ed-c-heading--display-default": this.variant === "display-default",
|
|
21
|
+
"ed-c-heading--headline-lg": this.variant ? this.variant === "headline-lg" : this.tagName === "h1",
|
|
22
|
+
"ed-c-heading--headline-default": this.variant ? this.variant === "headline-default" : this.tagName === "h2",
|
|
23
|
+
"ed-c-heading--headline-sm": this.variant ? this.variant === "headline-sm" : this.tagName === "h3",
|
|
24
|
+
"ed-c-heading--title-lg": this.variant ? this.variant === "title-lg" : this.tagName === "h4",
|
|
25
|
+
"ed-c-heading--title-default": this.variant ? this.variant === "title-default" : this.tagName === "h5",
|
|
26
|
+
"ed-c-heading--title-sm": this.variant ? this.variant === "title-sm" : this.tagName === "h6",
|
|
27
|
+
"ed-c-heading--label-lg": this.variant === "label-lg",
|
|
28
|
+
"ed-c-heading--label-default": this.variant === "label-default",
|
|
29
|
+
"ed-c-heading--label-sm": this.variant === "label-sm",
|
|
30
|
+
"ed-c-heading--body-lg": this.variant === "body-lg",
|
|
31
|
+
"ed-c-heading--body-default": this.variant === "body-default",
|
|
32
|
+
"ed-c-heading--body-sm": this.variant === "body-sm",
|
|
33
|
+
"ed-c-heading--meta-default": this.variant === "meta-default",
|
|
34
|
+
"ed-c-heading--meta-sm": this.variant === "meta-sm"
|
|
35
|
+
});
|
|
36
|
+
switch (this.tagName) {
|
|
37
|
+
case "h1":
|
|
38
|
+
return a` <h1 class="${e}"><slot></slot></h1> `;
|
|
39
|
+
case "h2":
|
|
40
|
+
return a` <h2 class="${e}"><slot></slot></h2> `;
|
|
41
|
+
case "h3":
|
|
42
|
+
return a` <h3 class="${e}"><slot></slot></h3> `;
|
|
43
|
+
case "h4":
|
|
44
|
+
return a` <h4 class="${e}"><slot></slot></h4> `;
|
|
45
|
+
case "h5":
|
|
46
|
+
return a` <h5 class="${e}"><slot></slot></h5> `;
|
|
47
|
+
case "h6":
|
|
48
|
+
return a` <h6 class="${e}"><slot></slot></h6> `;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
n([
|
|
53
|
+
o()
|
|
54
|
+
], l.prototype, "variant");
|
|
55
|
+
n([
|
|
56
|
+
o()
|
|
57
|
+
], l.prototype, "tagName");
|
|
58
|
+
customElements.get("ed-heading") === void 0 && customElements.define("ed-heading", l);
|