@brad-frost-web/eddie-recipes 0.41.0 → 0.42.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.CJUMCqMO.js +76 -0
  2. package/cdn/chunks/band.PKk3RRBa.js +28 -0
  3. package/cdn/chunks/button.CBsV_GUm.js +177 -0
  4. package/cdn/chunks/header.BClLu7Iu.js +51 -0
  5. package/cdn/chunks/heading.UqYyagUk.js +58 -0
  6. package/cdn/chunks/icon.x3MbeV1L.js +213 -0
  7. package/cdn/chunks/index.browser.D527xXcp.js +4 -0
  8. package/cdn/chunks/layout-container.quQfsADS.js +28 -0
  9. package/cdn/chunks/lit.DcQ_wZZQ.js +588 -0
  10. package/cdn/chunks/single-field-form.C-oE3bWh.js +170 -0
  11. package/cdn/chunks/text-passage.Cs5mLxYT.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,76 @@
1
+ import { c as a } from "./vendor.lY5z9hnC.js";
2
+ import { i as l, b as c, n as p } from "./lit.DcQ_wZZQ.js";
3
+ var u = Object.defineProperty, b = (i, t, s, o) => {
4
+ for (var e = void 0, r = i.length - 1, n; r >= 0; r--)
5
+ (n = i[r]) && (e = n(t, s, e) || e);
6
+ return e && u(t, s, e), e;
7
+ };
8
+ class d extends l {
9
+ static get observedAttributes() {
10
+ const t = super.observedAttributes ?? [], s = /* @__PURE__ */ new Map();
11
+ for (const o of t) {
12
+ const e = this.__attributeToPropertyMap?.get(o);
13
+ if (typeof e != "string") continue;
14
+ const r = e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
15
+ r === o || t.includes(r) || s.set(r, o);
16
+ }
17
+ return this.__kebabAliases = s, [...t, ...s.keys()];
18
+ }
19
+ attributeChangedCallback(t, s, o) {
20
+ const e = this.constructor.__kebabAliases?.get(t);
21
+ super.attributeChangedCallback(e ?? t, s, o);
22
+ }
23
+ /**
24
+ * Abstraction of `classnames` that automatically includes any style modifier
25
+ * as well as any set variants.
26
+ *
27
+ * It is expected that `variant` would be overridden in a subclass with more
28
+ * specific types, `@property() variant?: 'foo' | 'bar'`
29
+ *
30
+ * @param baseClassName
31
+ */
32
+ componentClassNames(t, s = {}) {
33
+ return a(t, this.styleModifier, s);
34
+ }
35
+ /**
36
+ * Check if a slot is empty
37
+ *
38
+ * @param slotName
39
+ */
40
+ slotEmpty(t) {
41
+ return !this.querySelector(`[slot="${t}"]`);
42
+ }
43
+ /**
44
+ * Check if a slot is not empty
45
+ *
46
+ * @param slotName
47
+ */
48
+ slotNotEmpty(t) {
49
+ if (!this.slotEmpty(t))
50
+ return !this.slotEmpty(t);
51
+ }
52
+ /**
53
+ * Dispatch a custom event.
54
+ */
55
+ dispatch({ e: t, eventName: s, detailObj: o = {}, optionsObj: e = {} }) {
56
+ const r = {
57
+ bubbles: !0,
58
+ composed: !0,
59
+ ...e,
60
+ detail: { ...t && { originalEvent: t }, ...o }
61
+ }, n = new CustomEvent(s, r);
62
+ return this.dispatchEvent(n), n;
63
+ }
64
+ /**
65
+ * Example render, should not be used
66
+ */
67
+ render() {
68
+ return c`<slot></slot>`;
69
+ }
70
+ }
71
+ b([
72
+ p()
73
+ ], d.prototype, "styleModifier");
74
+ export {
75
+ d as E
76
+ };
@@ -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.CJUMCqMO.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,177 @@
1
+ import { n as r, a as h, A as a, b as s, o as m, e as p } from "./lit.DcQ_wZZQ.js";
2
+ import { E as v } from "./EdElement.CJUMCqMO.js";
3
+ import "./icon.x3MbeV1L.js";
4
+ var g = Object.defineProperty, y = Object.getOwnPropertyDescriptor, f = (i, e, o, l) => {
5
+ for (var d = y(e, o), c = i.length - 1, u; c >= 0; c--)
6
+ (u = i[c]) && (d = u(e, o, d) || d);
7
+ return d && g(e, o, d), d;
8
+ };
9
+ class b extends v {
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 o = this.value;
25
+ this.internalValue = e, this.type !== "checkbox" && this.type !== "radio" && this.internals.setFormValue(e), this.updateField(), this.requestUpdate("value", o);
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
+ r()
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{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, n = (i, e, o, l) => {
48
+ for (var d = void 0, c = i.length - 1, u; c >= 0; c--)
49
+ (u = i[c]) && (d = u(e, o, d) || d);
50
+ return d && x(e, o, 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
+ if (e) {
72
+ const o = new Event("submit", {
73
+ bubbles: !0,
74
+ cancelable: !0
75
+ });
76
+ e.dispatchEvent(o), e.submit();
77
+ }
78
+ }
79
+ formReset() {
80
+ const e = this.internals.form;
81
+ e && e.reset();
82
+ }
83
+ getIconElement() {
84
+ return this.iconName ? s`<ed-icon styleModifier="ed-c-button__icon" aria-hidden="true" name="${this.iconName}"></ed-icon>` : a;
85
+ }
86
+ getSpinnerElement() {
87
+ return this.isLoading ? s`<ed-icon class="ed-c-button__spinner" aria-hidden="true" name="spinner"></ed-icon>` : a;
88
+ }
89
+ createButton(e) {
90
+ const o = this.getIconElement(), l = this.getSpinnerElement();
91
+ return s`
92
+ <button type="${this.type}" class="${e}" ?disabled=${this.disabled || this.isLoading}
93
+ aria-busy=${this.isLoading ? "true" : a} @click=${this.clickHandler}>
94
+ ${this.isLoading ? l : this.iconPosition === "before" ? o : a}
95
+ <span class="${this.hideText ? "ed-u-is-vishidden ed-c-button__text" : "ed-c-button__text"}"><slot>${this.text}</slot></span>
96
+ ${!this.isLoading && this.iconPosition === "after" ? o : a}
97
+ </button>
98
+ `;
99
+ }
100
+ createAnchorButton(e) {
101
+ const o = this.getIconElement(), l = this.getSpinnerElement();
102
+ return s`
103
+ <a href="${m(this.href)}" class="${e}" target=${this.target}
104
+ aria-busy=${this.isLoading ? "true" : a} aria-disabled=${this.isLoading ? "true" : a} @click=${this.clickHandler}>
105
+ ${this.isLoading ? l : this.iconPosition === "before" ? o : a}
106
+ <span class="${this.hideText ? "ed-u-is-vishidden ed-c-button__text" : "ed-c-button__text"}"><slot>${this.text}</slot></span>
107
+ ${!this.isLoading && this.iconPosition === "after" ? o : a}
108
+ </a>
109
+ `;
110
+ }
111
+ render() {
112
+ const e = this.componentClassNames("ed-c-button", {
113
+ "ed-c-button--primary": this.variant === "primary",
114
+ "ed-c-button--danger": this.variant === "danger",
115
+ "ed-c-button--bare": this.variant === "bare",
116
+ "ed-c-button--link": this.variant === "link",
117
+ "ed-c-button--knockout": this.knockout === !0 || this.inverted === !0,
118
+ "ed-c-button--loading": this.isLoading === !0,
119
+ "ed-c-button--full-width": this.fullWidth === !0,
120
+ "ed-c-button--sm": this.size === "sm",
121
+ "ed-c-button--lg": this.size === "lg"
122
+ });
123
+ return this.href ? this.createAnchorButton(e) : this.createButton(e);
124
+ }
125
+ }
126
+ n([
127
+ r()
128
+ ], t.prototype, "text");
129
+ n([
130
+ r()
131
+ ], t.prototype, "variant");
132
+ n([
133
+ r({ type: Boolean })
134
+ ], t.prototype, "disabled");
135
+ n([
136
+ r()
137
+ ], t.prototype, "target");
138
+ n([
139
+ r({ type: Boolean })
140
+ ], t.prototype, "knockout");
141
+ n([
142
+ r({ type: Boolean })
143
+ ], t.prototype, "inverted");
144
+ n([
145
+ r()
146
+ ], t.prototype, "href");
147
+ n([
148
+ r()
149
+ ], t.prototype, "iconName");
150
+ n([
151
+ r()
152
+ ], t.prototype, "iconPosition");
153
+ n([
154
+ r()
155
+ ], t.prototype, "size");
156
+ n([
157
+ r({ type: Boolean })
158
+ ], t.prototype, "hideText");
159
+ n([
160
+ r({ type: Boolean })
161
+ ], t.prototype, "fullWidth");
162
+ n([
163
+ r({ type: Boolean })
164
+ ], t.prototype, "round");
165
+ n([
166
+ r({ type: Boolean })
167
+ ], t.prototype, "isLoading");
168
+ n([
169
+ r({ type: String })
170
+ ], t.prototype, "type");
171
+ n([
172
+ p("button")
173
+ ], t.prototype, "field");
174
+ customElements.get("ed-button") === void 0 && customElements.define("ed-button", t);
175
+ export {
176
+ b as E
177
+ };
@@ -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.CJUMCqMO.js";
3
+ import "./layout-container.quQfsADS.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.CJUMCqMO.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);