@brad-frost-web/eddie-recipes 0.41.1 → 0.43.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.
Files changed (79) hide show
  1. package/cdn/chunks/EdElement.DvFQCo8N.js +127 -0
  2. package/cdn/chunks/band.Qhxo8NRI.js +28 -0
  3. package/cdn/chunks/button.Bhh2StTZ.js +171 -0
  4. package/cdn/chunks/header.C5XJOqiX.js +51 -0
  5. package/cdn/chunks/heading.CloRt196.js +58 -0
  6. package/cdn/chunks/icon.eRTjsL3S.js +213 -0
  7. package/cdn/chunks/index.browser.D527xXcp.js +4 -0
  8. package/cdn/chunks/layout-container.XT5IZm4y.js +28 -0
  9. package/cdn/chunks/lit.DcQ_wZZQ.js +588 -0
  10. package/cdn/chunks/single-field-form.bgZu9PcD.js +170 -0
  11. package/cdn/chunks/text-passage.C_52LvTE.js +58 -0
  12. package/cdn/chunks/vendor.lY5z9hnC.js +42 -0
  13. package/cdn/eddie-recipes-autoloader.js +72 -0
  14. package/cdn/recipes/common/audio-player/audio-player.js +342 -0
  15. package/cdn/recipes/common/example-form/example-form.js +1360 -0
  16. package/cdn/recipes/common/newsletter-signup/newsletter-signup.js +72 -0
  17. package/cdn/recipes/common/page-banner/page-banner.js +91 -0
  18. package/cdn/recipes/common/project-card/project-card.js +59 -0
  19. package/cdn/recipes/common/promo-block/promo-block.js +32 -0
  20. package/cdn/recipes/common/search-form/search-form.js +79 -0
  21. package/cdn/recipes/common/site-footer/site-footer.js +57 -0
  22. package/cdn/recipes/common/site-header/site-header.js +75 -0
  23. package/cdn/recipes/common/stat-card/stat-card.js +103 -0
  24. package/cdn/recipes/common/transport-button/transport-button.js +73 -0
  25. package/cdn/recipes/common/vertical-site-header/vertical-site-header.js +55 -0
  26. package/cdn/recipes/eddie-slides/template-card/template-card.js +56 -0
  27. package/cdn/recipes/eddie-slides/thumbnail/thumbnail.js +95 -0
  28. package/cdn/recipes/tools/theme-customizer/google-fonts-catalog.js +185 -0
  29. package/cdn/recipes/tools/theme-customizer/theme-customizer.js +1389 -0
  30. package/cdn/recipes/we-are-here/chunky-checkbox/chunky-checkbox.js +63 -0
  31. package/cdn/recipes/we-are-here/wah-link-list/wah-link-list.js +57 -0
  32. package/cdn/recipes/we-are-here/wah-logo/wah-logo.js +45 -0
  33. package/cdn/recipes/we-are-here/wah-site-footer/wah-site-footer.js +55 -0
  34. package/cdn/recipes/we-are-here/wah-site-header/wah-site-header.js +105 -0
  35. package/package.json +2 -2
  36. package/recipes/common/audio-player/audio-player.d.ts +2 -0
  37. package/recipes/common/audio-player/audio-player.d.ts.map +1 -1
  38. package/recipes/common/example-form/example-form.d.ts +2 -0
  39. package/recipes/common/example-form/example-form.d.ts.map +1 -1
  40. package/recipes/common/newsletter-signup/newsletter-signup.d.ts +2 -0
  41. package/recipes/common/newsletter-signup/newsletter-signup.d.ts.map +1 -1
  42. package/recipes/common/page-banner/page-banner.d.ts +2 -0
  43. package/recipes/common/page-banner/page-banner.d.ts.map +1 -1
  44. package/recipes/common/project-card/project-card.d.ts +2 -0
  45. package/recipes/common/project-card/project-card.d.ts.map +1 -1
  46. package/recipes/common/promo-block/promo-block.d.ts +24 -11
  47. package/recipes/common/promo-block/promo-block.d.ts.map +1 -1
  48. package/recipes/common/promo-block/promo-block.js +14 -12
  49. package/recipes/common/search-form/search-form.d.ts +2 -0
  50. package/recipes/common/search-form/search-form.d.ts.map +1 -1
  51. package/recipes/common/site-footer/site-footer.d.ts +2 -0
  52. package/recipes/common/site-footer/site-footer.d.ts.map +1 -1
  53. package/recipes/common/site-header/site-header.d.ts +28 -15
  54. package/recipes/common/site-header/site-header.d.ts.map +1 -1
  55. package/recipes/common/site-header/site-header.js +27 -30
  56. package/recipes/common/stat-card/stat-card.d.ts +2 -0
  57. package/recipes/common/stat-card/stat-card.d.ts.map +1 -1
  58. package/recipes/common/transport-button/transport-button.d.ts +2 -0
  59. package/recipes/common/transport-button/transport-button.d.ts.map +1 -1
  60. package/recipes/common/vertical-site-header/vertical-site-header.d.ts +20 -9
  61. package/recipes/common/vertical-site-header/vertical-site-header.d.ts.map +1 -1
  62. package/recipes/common/vertical-site-header/vertical-site-header.js +25 -31
  63. package/recipes/eddie-slides/template-card/template-card.d.ts +2 -0
  64. package/recipes/eddie-slides/template-card/template-card.d.ts.map +1 -1
  65. package/recipes/eddie-slides/thumbnail/thumbnail.d.ts +2 -0
  66. package/recipes/eddie-slides/thumbnail/thumbnail.d.ts.map +1 -1
  67. package/recipes/tools/theme-customizer/theme-customizer.d.ts +2 -0
  68. package/recipes/tools/theme-customizer/theme-customizer.d.ts.map +1 -1
  69. package/recipes/tools/theme-customizer/theme-customizer.js +4 -4
  70. package/recipes/we-are-here/chunky-checkbox/chunky-checkbox.d.ts +2 -0
  71. package/recipes/we-are-here/chunky-checkbox/chunky-checkbox.d.ts.map +1 -1
  72. package/recipes/we-are-here/wah-link-list/wah-link-list.d.ts +2 -0
  73. package/recipes/we-are-here/wah-link-list/wah-link-list.d.ts.map +1 -1
  74. package/recipes/we-are-here/wah-logo/wah-logo.d.ts +2 -0
  75. package/recipes/we-are-here/wah-logo/wah-logo.d.ts.map +1 -1
  76. package/recipes/we-are-here/wah-site-footer/wah-site-footer.d.ts +2 -0
  77. package/recipes/we-are-here/wah-site-footer/wah-site-footer.d.ts.map +1 -1
  78. package/recipes/we-are-here/wah-site-header/wah-site-header.d.ts +2 -0
  79. package/recipes/we-are-here/wah-site-header/wah-site-header.d.ts.map +1 -1
@@ -0,0 +1,127 @@
1
+ import { c as u } from "./vendor.lY5z9hnC.js";
2
+ import { i as d, b as p, n as i } from "./lit.DcQ_wZZQ.js";
3
+ var h = Object.defineProperty, c = (a, e, t, n) => {
4
+ for (var s = void 0, r = a.length - 1, o; r >= 0; r--)
5
+ (o = a[r]) && (s = o(e, t, s) || s);
6
+ return s && h(e, t, s), s;
7
+ };
8
+ class l extends d {
9
+ static get observedAttributes() {
10
+ const e = super.observedAttributes ?? [], t = /* @__PURE__ */ new Map();
11
+ for (const n of e) {
12
+ const s = this.__attributeToPropertyMap?.get(n);
13
+ if (typeof s != "string") continue;
14
+ const r = s.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
15
+ r === n || e.includes(r) || t.set(r, n);
16
+ }
17
+ return this.__kebabAliases = t, [...e, ...t.keys()];
18
+ }
19
+ attributeChangedCallback(e, t, n) {
20
+ const s = this.constructor.__kebabAliases?.get(e);
21
+ super.attributeChangedCallback(s ?? e, t, n);
22
+ }
23
+ /**
24
+ * Whether this instance is rendering in enhance (light-DOM) mode. Reads the
25
+ * attribute directly rather than the reactive property so it is reliable at
26
+ * `createRenderRoot()` time, before property hydration is guaranteed.
27
+ */
28
+ get isEnhanceMode() {
29
+ return this.hasAttribute("enhance");
30
+ }
31
+ /**
32
+ * In enhance mode, render Lit's (unused) template into a detached fragment
33
+ * rather than a shadow root. This keeps Lit's update lifecycle fully intact —
34
+ * so `updated()` fires and the cycle is marked complete — while leaving the
35
+ * element's own light-DOM children untouched (we decorate them in `updated()`
36
+ * instead). The element therefore has no shadow root, and the author's markup
37
+ * is never clobbered. Classic mode keeps the default encapsulated shadow root.
38
+ */
39
+ createRenderRoot() {
40
+ return this.isEnhanceMode ? document.createDocumentFragment() : super.createRenderRoot();
41
+ }
42
+ /**
43
+ * After each render, enhance-mode components decorate the author's light DOM.
44
+ * `enhanceLightDom()` is written to be idempotent so reactive property
45
+ * changes keep the author's modifier classes in sync. Classic mode is
46
+ * unaffected (the hook defaults to a no-op).
47
+ */
48
+ updated(e) {
49
+ super.updated(e), this.isEnhanceMode && this.enhanceLightDom();
50
+ }
51
+ /**
52
+ * Hook for enhance-mode components: decorate the author's existing light-DOM
53
+ * children in place (apply `.ed-c-*` classes, wire behaviour to author
54
+ * nodes). Must be idempotent — it runs after every update. Subclasses
55
+ * override; the default is a no-op so classic-only components are unaffected.
56
+ */
57
+ enhanceLightDom() {
58
+ }
59
+ /**
60
+ * Inject a component's global stylesheet into the document head exactly once,
61
+ * keyed by `id`. This is the runtime bridge for enhance mode until a global
62
+ * CSS build target ships (#813, Tier 0); the pattern is lifted from
63
+ * `ed-text-passage`, the system's first light-DOM-styled component.
64
+ */
65
+ injectGlobalStyles(e, t) {
66
+ if (document.getElementById(e))
67
+ return;
68
+ const n = document.createElement("style");
69
+ n.id = e, n.textContent = t, document.head.appendChild(n);
70
+ }
71
+ /**
72
+ * Abstraction of `classnames` that automatically includes any style modifier
73
+ * as well as any set variants.
74
+ *
75
+ * It is expected that `variant` would be overridden in a subclass with more
76
+ * specific types, `@property() variant?: 'foo' | 'bar'`
77
+ *
78
+ * @param baseClassName
79
+ */
80
+ componentClassNames(e, t = {}) {
81
+ return u(e, this.styleModifier, t);
82
+ }
83
+ /**
84
+ * Check if a slot is empty
85
+ *
86
+ * @param slotName
87
+ */
88
+ slotEmpty(e) {
89
+ return !this.querySelector(`[slot="${e}"]`);
90
+ }
91
+ /**
92
+ * Check if a slot is not empty
93
+ *
94
+ * @param slotName
95
+ */
96
+ slotNotEmpty(e) {
97
+ if (!this.slotEmpty(e))
98
+ return !this.slotEmpty(e);
99
+ }
100
+ /**
101
+ * Dispatch a custom event.
102
+ */
103
+ dispatch({ e, eventName: t, detailObj: n = {}, optionsObj: s = {} }) {
104
+ const r = {
105
+ bubbles: !0,
106
+ composed: !0,
107
+ ...s,
108
+ detail: { ...e && { originalEvent: e }, ...n }
109
+ }, o = new CustomEvent(t, r);
110
+ return this.dispatchEvent(o), o;
111
+ }
112
+ /**
113
+ * Example render, should not be used
114
+ */
115
+ render() {
116
+ return p`<slot></slot>`;
117
+ }
118
+ }
119
+ c([
120
+ i()
121
+ ], l.prototype, "styleModifier");
122
+ c([
123
+ i({ type: Boolean })
124
+ ], l.prototype, "enhance");
125
+ export {
126
+ l as E
127
+ };
@@ -0,0 +1,28 @@
1
+ import { a as s, b as c, n as b } from "./lit.DcQ_wZZQ.js";
2
+ import { E as i } from "./EdElement.DvFQCo8N.js";
3
+ const l = ":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)}";
4
+ var m = Object.defineProperty, u = (d, n, o, h) => {
5
+ for (var e = void 0, a = d.length - 1, r; a >= 0; a--)
6
+ (r = d[a]) && (e = r(n, o, e) || e);
7
+ return e && m(n, o, e), e;
8
+ };
9
+ class t extends i {
10
+ static get styles() {
11
+ return s(l);
12
+ }
13
+ render() {
14
+ const n = this.componentClassNames("ed-c-band", {
15
+ "ed-c-band--brand": this.variant === "brand",
16
+ "ed-c-band--brand-knockout": this.variant === "brand-knockout"
17
+ });
18
+ return c`
19
+ <div class="${n}">
20
+ <slot></slot>
21
+ </div>
22
+ `;
23
+ }
24
+ }
25
+ u([
26
+ b()
27
+ ], t.prototype, "variant");
28
+ customElements.get("ed-band") === void 0 && customElements.define("ed-band", t);
@@ -0,0 +1,171 @@
1
+ import { n as o, a as h, A as a, b as s, o as m, e as p } from "./lit.DcQ_wZZQ.js";
2
+ import { E as g } from "./EdElement.DvFQCo8N.js";
3
+ import "./icon.eRTjsL3S.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 b 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
+ ], b.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);display:inline-flex;align-items:center;padding:.75rem 1.75rem;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);padding:.5rem 1rem}.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-c-button--lg.ed-c-button--bare{padding:0}ed-icon{--ed-icon-height: .75rem ;--ed-icon-width: .75rem ;transition:all var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease);transform:var(--ed-button-icon-transform, none)}.ed-c-button--sm ed-icon{--ed-icon-height: .5rem ;--ed-icon-width: .5rem }.ed-c-button--lg ed-icon{--ed-icon-height: .875rem ;--ed-icon-width: .875rem }ed-icon+.ed-c-button__text{margin-inline-start:.5rem}.ed-c-button--sm ed-icon+.ed-c-button__text{margin-inline-start:.25rem}.ed-c-button__text:not(.ed-u-is-vishidden)+ed-icon{margin-inline-start:.5rem}.ed-c-button--sm .ed-c-button__text:not(.ed-u-is-vishidden)+ed-icon{margin-inline-start:.25rem}';
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 b {
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 ? s`<ed-icon styleModifier="ed-c-button__icon" aria-hidden="true" name="${this.iconName}"></ed-icon>` : a;
79
+ }
80
+ getSpinnerElement() {
81
+ return this.isLoading ? s`<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 s`
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 s`
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
+ b as E
171
+ };
@@ -0,0 +1,51 @@
1
+ import { r as s, a as v, b as o, n as h } from "./lit.DcQ_wZZQ.js";
2
+ import { E as m } from "./EdElement.DvFQCo8N.js";
3
+ import "./layout-container.XT5IZm4y.js";
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
+ var b = Object.defineProperty, d = (a, c, t, n) => {
6
+ for (var e = void 0, l = a.length - 1, i; l >= 0; l--)
7
+ (i = a[l]) && (e = i(c, t, e) || e);
8
+ return e && b(c, t, e), e;
9
+ };
10
+ class r extends m {
11
+ static get styles() {
12
+ return v(u);
13
+ }
14
+ render() {
15
+ const c = this.variant ? `ed-c-header--${this.variant}` : "", t = this.componentClassNames("ed-c-header", {
16
+ "ed-is-active": this.isActive === !0,
17
+ "ed-c-header--vertical": this.orientation === "vertical",
18
+ [c]: !!this.variant
19
+ }), n = o`
20
+ ${this.slotNotEmpty("top") && o`<div class="ed-c-header__top">
21
+ <slot name="top"></slot>
22
+ </div>`}
23
+ <div class="ed-c-header__middle">
24
+ <slot></slot>
25
+ </div>
26
+ ${this.slotNotEmpty("bottom") && o`<div class="ed-c-header__bottom">
27
+ <slot name="bottom"></slot>
28
+ </div>`}
29
+ `;
30
+ return o`
31
+ <header role="banner" class="${t}">
32
+ ${this.fullWidth ? n : o`<ed-layout-container class="ed-c-header__layout-container">
33
+ ${n}
34
+ </ed-layout-container>`}
35
+ </header>
36
+ `;
37
+ }
38
+ }
39
+ d([
40
+ s()
41
+ ], r.prototype, "isActive");
42
+ d([
43
+ h()
44
+ ], r.prototype, "variant");
45
+ d([
46
+ h({ type: Boolean })
47
+ ], r.prototype, "fullWidth");
48
+ d([
49
+ h()
50
+ ], r.prototype, "orientation");
51
+ customElements.get("ed-header") === void 0 && customElements.define("ed-header", r);
@@ -0,0 +1,58 @@
1
+ import { a as y, b as a, n } from "./lit.DcQ_wZZQ.js";
2
+ import { E as g } from "./EdElement.DvFQCo8N.js";
3
+ const p = '@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}.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 m = Object.defineProperty, o = (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 && m(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(p);
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
+ o([
53
+ n()
54
+ ], l.prototype, "variant");
55
+ o([
56
+ n()
57
+ ], l.prototype, "tagName");
58
+ customElements.get("ed-heading") === void 0 && customElements.define("ed-heading", l);