@brad-frost-web/eddie-recipes 0.48.0 → 0.50.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 (29) hide show
  1. package/cdn/chunks/{button.COKzxeaS.js → button.UtF8xc8z.js} +27 -2
  2. package/cdn/chunks/heading.DxaawzBz.js +103 -0
  3. package/cdn/chunks/{single-field-form.BbGoPDle.js → single-field-form.BX6ynWNg.js} +1 -1
  4. package/cdn/chunks/{text-passage.DW6q78mi.js → text-passage.BEu9bNtm.js} +7 -1
  5. package/cdn/eddie-recipes-autoloader.js +7 -6
  6. package/cdn/recipes/common/article-card/article-card.js +1 -1
  7. package/cdn/recipes/common/example-form/example-form.js +2 -2
  8. package/cdn/recipes/common/newsletter-signup/newsletter-signup.js +1 -1
  9. package/cdn/recipes/common/page-banner/page-banner.js +46 -40
  10. package/cdn/recipes/common/project-card/project-card.js +2 -2
  11. package/cdn/recipes/common/search-form/search-form.js +1 -1
  12. package/cdn/recipes/common/site-header/site-header.js +1 -1
  13. package/cdn/recipes/common/speaking-card/speaking-card.js +1 -1
  14. package/cdn/recipes/common/stat-card/stat-card.js +2 -2
  15. package/cdn/recipes/common/timeline-node/TimelineNodeKind.js +1 -1
  16. package/cdn/recipes/common/timeline-node/timeline-node.js +1 -1
  17. package/cdn/recipes/common/transport-button/transport-button.js +1 -1
  18. package/cdn/recipes/common/vertical-site-header/vertical-site-header.js +28 -24
  19. package/cdn/recipes/common/video-embed/video-embed.js +48 -0
  20. package/cdn/recipes/tools/theme-customizer/theme-customizer.js +1 -1
  21. package/cdn/recipes/we-are-here/wah-site-header/wah-site-header.js +1 -1
  22. package/package.json +1 -1
  23. package/recipes/common/vertical-site-header/vertical-site-header.d.ts +31 -8
  24. package/recipes/common/vertical-site-header/vertical-site-header.d.ts.map +1 -1
  25. package/recipes/common/vertical-site-header/vertical-site-header.js +26 -21
  26. package/recipes/common/video-embed/video-embed.d.ts +112 -0
  27. package/recipes/common/video-embed/video-embed.d.ts.map +1 -0
  28. package/recipes/common/video-embed/video-embed.js +50 -0
  29. package/cdn/chunks/heading.Ca_LYMne.js +0 -64
@@ -17,6 +17,18 @@ class t extends s {
17
17
  static get styles() {
18
18
  return h(g);
19
19
  }
20
+ /**
21
+ * Normalize one host `aria-*` value for the inner control.
22
+ *
23
+ * Two shapes have to be handled beyond a plain pass-through. Lit commits `undefined` as an
24
+ * empty string, so a consumer binding an optional value (`aria-pressed=${spec.ariaPressed}`)
25
+ * hands us `""` — an invalid ARIA value that axe flags, and worse than no attribute at all.
26
+ * And a boolean bound from state (`aria-expanded=${this.isOpen}`) has to reach the DOM as the
27
+ * strings `"true"`/`"false"`. Anything else (`mixed`, `menu`, `dialog`) passes through.
28
+ */
29
+ ariaState(e) {
30
+ return e == null || e === "" ? n : e === !0 ? "true" : e === !1 ? "false" : String(e);
31
+ }
20
32
  clickHandler(e) {
21
33
  if (this.isLoading) {
22
34
  e.preventDefault();
@@ -42,7 +54,9 @@ class t extends s {
42
54
  const d = this.getIconElement(), i = this.getSpinnerElement();
43
55
  return c`
44
56
  <button type="${this.type}" class="${e}" ?disabled=${this.disabled || this.isLoading}
45
- aria-busy=${this.isLoading ? "true" : n} @click=${this.clickHandler}>
57
+ aria-busy=${this.isLoading ? "true" : n} aria-expanded=${this.ariaState(this.expanded)}
58
+ aria-pressed=${this.ariaState(this.pressed)} aria-haspopup=${this.ariaState(this.hasPopup)}
59
+ @click=${this.clickHandler}>
46
60
  ${this.isLoading ? i : this.iconPosition === "before" ? d : n}
47
61
  <span class="${this.hideText ? "ed-u-is-vishidden ed-c-button__text" : "ed-c-button__text"}"><slot>${this.text}</slot></span>
48
62
  ${!this.isLoading && this.iconPosition === "after" ? d : n}
@@ -53,7 +67,9 @@ class t extends s {
53
67
  const d = this.getIconElement(), i = this.getSpinnerElement();
54
68
  return c`
55
69
  <a href="${m(this.href)}" class="${e}" target=${this.target}
56
- aria-busy=${this.isLoading ? "true" : n} aria-disabled=${this.isLoading ? "true" : n} @click=${this.clickHandler}>
70
+ aria-busy=${this.isLoading ? "true" : n} aria-disabled=${this.isLoading ? "true" : n}
71
+ aria-expanded=${this.ariaState(this.expanded)} aria-pressed=${this.ariaState(this.pressed)}
72
+ aria-haspopup=${this.ariaState(this.hasPopup)} @click=${this.clickHandler}>
57
73
  ${this.isLoading ? i : this.iconPosition === "before" ? d : n}
58
74
  <span class="${this.hideText ? "ed-u-is-vishidden ed-c-button__text" : "ed-c-button__text"}"><slot>${this.text}</slot></span>
59
75
  ${!this.isLoading && this.iconPosition === "after" ? d : n}
@@ -120,6 +136,15 @@ o([
120
136
  o([
121
137
  r({ type: String })
122
138
  ], t.prototype, "type");
139
+ o([
140
+ r({ attribute: "aria-expanded" })
141
+ ], t.prototype, "expanded");
142
+ o([
143
+ r({ attribute: "aria-pressed" })
144
+ ], t.prototype, "pressed");
145
+ o([
146
+ r({ attribute: "aria-haspopup" })
147
+ ], t.prototype, "hasPopup");
123
148
  o([
124
149
  p("button")
125
150
  ], t.prototype, "field");
@@ -0,0 +1,103 @@
1
+ import { r as y, b as a, n } from "./lit.EWazi_Sp.js";
2
+ import { E as p } from "./EdElement.Dqh0Nrbq.js";
3
+ const m = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-heading{text-wrap:var(--ed-heading-text-wrap, balance);margin:0}.ed-c-heading--wrap-balance{--ed-heading-text-wrap: balance}.ed-c-heading--wrap-pretty{--ed-heading-text-wrap: pretty}.ed-c-heading--wrap-normal{--ed-heading-text-wrap: normal}::slotted(a){color:inherit;text-decoration:none;border-block-end:var(--ed-theme-border-width-sm) solid transparent;transition:border-color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}::slotted(a:hover),::slotted(a:focus-visible){color:inherit;border-block-end-color:var(--ed-heading-link-color-border, var(--ed-theme-color-border-brand))}::slotted(a:focus-visible){outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-default);outline-offset:var(--ed-theme-offset-focus-ring, .25rem)}.ed-c-heading--display-xl{font-family:var(--ed-theme-typography-display-xl-mobile-font-family);font-weight:var(--ed-theme-typography-display-xl-mobile-font-weight);font-size:var(--ed-theme-typography-display-xl-mobile-font-size);line-height:var(--ed-theme-typography-display-xl-mobile-line-height);letter-spacing:var(--ed-theme-typography-display-xl-mobile-letter-spacing);text-transform:var(--ed-theme-typography-display-xl-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--display-xl{font-family:var(--ed-theme-typography-display-xl-tablet-font-family);font-weight:var(--ed-theme-typography-display-xl-tablet-font-weight);font-size:var(--ed-theme-typography-display-xl-tablet-font-size);line-height:var(--ed-theme-typography-display-xl-tablet-line-height);letter-spacing:var(--ed-theme-typography-display-xl-tablet-letter-spacing);text-transform:var(--ed-theme-typography-display-xl-tablet-text-transform)}}@media all and (min-width:75rem){.ed-c-heading--display-xl{font-family:var(--ed-theme-typography-display-xl-font-family);font-weight:var(--ed-theme-typography-display-xl-font-weight);font-size:var(--ed-theme-typography-display-xl-font-size);line-height:var(--ed-theme-typography-display-xl-line-height);letter-spacing:var(--ed-theme-typography-display-xl-letter-spacing);text-transform:var(--ed-theme-typography-display-xl-text-transform)}}.ed-c-heading--display-lg{font-family:var(--ed-theme-typography-display-lg-mobile-font-family);font-weight:var(--ed-theme-typography-display-lg-mobile-font-weight);font-size:var(--ed-theme-typography-display-lg-mobile-font-size);line-height:var(--ed-theme-typography-display-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-display-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-display-lg-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--display-lg{font-family:var(--ed-theme-typography-display-lg-font-family);font-weight:var(--ed-theme-typography-display-lg-font-weight);font-size:var(--ed-theme-typography-display-lg-font-size);line-height:var(--ed-theme-typography-display-lg-line-height);letter-spacing:var(--ed-theme-typography-display-lg-letter-spacing);text-transform:var(--ed-theme-typography-display-lg-text-transform)}}.ed-c-heading--display-default{font-family:var(--ed-theme-typography-display-default-mobile-font-family);font-weight:var(--ed-theme-typography-display-default-mobile-font-weight);font-size:var(--ed-theme-typography-display-default-mobile-font-size);line-height:var(--ed-theme-typography-display-default-mobile-line-height);letter-spacing:var(--ed-theme-typography-display-default-mobile-letter-spacing);text-transform:var(--ed-theme-typography-display-default-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--display-default{font-family:var(--ed-theme-typography-display-default-font-family);font-weight:var(--ed-theme-typography-display-default-font-weight);font-size:var(--ed-theme-typography-display-default-font-size);line-height:var(--ed-theme-typography-display-default-line-height);letter-spacing:var(--ed-theme-typography-display-default-letter-spacing);text-transform:var(--ed-theme-typography-display-default-text-transform)}}.ed-c-heading--headline-lg{font-family:var(--ed-theme-typography-headline-lg-mobile-font-family);font-weight:var(--ed-theme-typography-headline-lg-mobile-font-weight);font-size:var(--ed-theme-typography-headline-lg-mobile-font-size);line-height:var(--ed-theme-typography-headline-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-lg-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--headline-lg{font-family:var(--ed-theme-typography-headline-lg-font-family);font-weight:var(--ed-theme-typography-headline-lg-font-weight);font-size:var(--ed-theme-typography-headline-lg-font-size);line-height:var(--ed-theme-typography-headline-lg-line-height);letter-spacing:var(--ed-theme-typography-headline-lg-letter-spacing);text-transform:var(--ed-theme-typography-headline-lg-text-transform)}}.ed-c-heading--headline-default{font-family:var(--ed-theme-typography-headline-default-mobile-font-family);font-weight:var(--ed-theme-typography-headline-default-mobile-font-weight);font-size:var(--ed-theme-typography-headline-default-mobile-font-size);line-height:var(--ed-theme-typography-headline-default-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-default-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-default-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--headline-default{font-family:var(--ed-theme-typography-headline-default-font-family);font-weight:var(--ed-theme-typography-headline-default-font-weight);font-size:var(--ed-theme-typography-headline-default-font-size);line-height:var(--ed-theme-typography-headline-default-line-height);letter-spacing:var(--ed-theme-typography-headline-default-letter-spacing);text-transform:var(--ed-theme-typography-headline-default-text-transform)}}.ed-c-heading--headline-sm{font-family:var(--ed-theme-typography-headline-sm-mobile-font-family);font-weight:var(--ed-theme-typography-headline-sm-mobile-font-weight);font-size:var(--ed-theme-typography-headline-sm-mobile-font-size);line-height:var(--ed-theme-typography-headline-sm-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-sm-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-sm-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--headline-sm{font-family:var(--ed-theme-typography-headline-sm-font-family);font-weight:var(--ed-theme-typography-headline-sm-font-weight);font-size:var(--ed-theme-typography-headline-sm-font-size);line-height:var(--ed-theme-typography-headline-sm-line-height);letter-spacing:var(--ed-theme-typography-headline-sm-letter-spacing);text-transform:var(--ed-theme-typography-headline-sm-text-transform)}}.ed-c-heading--title-lg{font-family:var(--ed-theme-typography-title-lg-mobile-font-family);font-weight:var(--ed-theme-typography-title-lg-mobile-font-weight);font-size:var(--ed-theme-typography-title-lg-mobile-font-size);line-height:var(--ed-theme-typography-title-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-title-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-title-lg-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--title-lg{font-family:var(--ed-theme-typography-title-lg-font-family);font-weight:var(--ed-theme-typography-title-lg-font-weight);font-size:var(--ed-theme-typography-title-lg-font-size);line-height:var(--ed-theme-typography-title-lg-line-height);letter-spacing:var(--ed-theme-typography-title-lg-letter-spacing);text-transform:var(--ed-theme-typography-title-lg-text-transform)}}.ed-c-heading--title-default{font-family:var(--ed-theme-typography-title-default-font-family);font-weight:var(--ed-theme-typography-title-default-font-weight);font-size:var(--ed-theme-typography-title-default-font-size);line-height:var(--ed-theme-typography-title-default-line-height);letter-spacing:var(--ed-theme-typography-title-default-letter-spacing);text-transform:var(--ed-theme-typography-title-default-text-transform)}.ed-c-heading--title-sm{font-family:var(--ed-theme-typography-title-sm-font-family);font-weight:var(--ed-theme-typography-title-sm-font-weight);font-size:var(--ed-theme-typography-title-sm-font-size);line-height:var(--ed-theme-typography-title-sm-line-height);letter-spacing:var(--ed-theme-typography-title-sm-letter-spacing);text-transform:var(--ed-theme-typography-title-sm-text-transform)}.ed-c-heading--label-lg{font-family:var(--ed-theme-typography-label-lg-font-family);font-weight:var(--ed-theme-typography-label-lg-font-weight);font-size:var(--ed-theme-typography-label-lg-font-size);line-height:var(--ed-theme-typography-label-lg-line-height);letter-spacing:var(--ed-theme-typography-label-lg-letter-spacing);text-transform:var(--ed-theme-typography-label-lg-text-transform)}.ed-c-heading--label-default{font-family:var(--ed-theme-typography-label-default-font-family);font-weight:var(--ed-theme-typography-label-default-font-weight);font-size:var(--ed-theme-typography-label-default-font-size);line-height:var(--ed-theme-typography-label-default-line-height);letter-spacing:var(--ed-theme-typography-label-default-letter-spacing);text-transform:var(--ed-theme-typography-label-default-text-transform)}.ed-c-heading--label-sm{font-family:var(--ed-theme-typography-label-sm-font-family);font-weight:var(--ed-theme-typography-label-sm-font-weight);font-size:var(--ed-theme-typography-label-sm-font-size);line-height:var(--ed-theme-typography-label-sm-line-height);letter-spacing:var(--ed-theme-typography-label-sm-letter-spacing);text-transform:var(--ed-theme-typography-label-sm-text-transform)}.ed-c-heading--body-lg{font-family:var(--ed-theme-typography-body-lg-font-family);font-weight:var(--ed-theme-typography-body-lg-font-weight);font-size:var(--ed-theme-typography-body-lg-font-size);line-height:var(--ed-theme-typography-body-lg-line-height);letter-spacing:var(--ed-theme-typography-body-lg-letter-spacing);text-transform:var(--ed-theme-typography-body-lg-text-transform)}.ed-c-heading--body-default{font-family:var(--ed-theme-typography-body-default-font-family);font-weight:var(--ed-theme-typography-body-default-font-weight);font-size:var(--ed-theme-typography-body-default-font-size);line-height:var(--ed-theme-typography-body-default-line-height);letter-spacing:var(--ed-theme-typography-body-default-letter-spacing);text-transform:var(--ed-theme-typography-body-default-text-transform)}.ed-c-heading--body-sm{font-family:var(--ed-theme-typography-body-sm-font-family);font-weight:var(--ed-theme-typography-body-sm-font-weight);font-size:var(--ed-theme-typography-body-sm-font-size);line-height:var(--ed-theme-typography-body-sm-line-height);letter-spacing:var(--ed-theme-typography-body-sm-letter-spacing);text-transform:var(--ed-theme-typography-body-sm-text-transform)}.ed-c-heading--meta-default{font-family:var(--ed-theme-typography-meta-default-font-family);font-weight:var(--ed-theme-typography-meta-default-font-weight);font-size:var(--ed-theme-typography-meta-default-font-size);line-height:var(--ed-theme-typography-meta-default-line-height);letter-spacing:var(--ed-theme-typography-meta-default-letter-spacing);text-transform:var(--ed-theme-typography-meta-default-text-transform)}.ed-c-heading--meta-sm{font-family:var(--ed-theme-typography-meta-sm-font-family);font-weight:var(--ed-theme-typography-meta-sm-font-weight);font-size:var(--ed-theme-typography-meta-sm-font-size);line-height:var(--ed-theme-typography-meta-sm-line-height);letter-spacing:var(--ed-theme-typography-meta-sm-letter-spacing);text-transform:var(--ed-theme-typography-meta-sm-text-transform)}', f = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}ed-heading[enhance]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading{text-wrap:var(--ed-heading-text-wrap, balance);margin:0}ed-heading[enhance]:not([variant])>h1{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-heading[enhance]:not([variant])>h1{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-heading[enhance]:not([variant])>h2{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-heading[enhance]:not([variant])>h2{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-heading[enhance]:not([variant])>h3{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-heading[enhance]:not([variant])>h3{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-heading[enhance]:not([variant])>h4{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-heading[enhance]:not([variant])>h4{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-heading[enhance]:not([variant])>h5{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-heading[enhance]:not([variant])>h6{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-heading[enhance][wrap=balance]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--wrap-balance{--ed-heading-text-wrap: balance}ed-heading[enhance][wrap=pretty]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--wrap-pretty{--ed-heading-text-wrap: pretty}ed-heading[enhance][wrap=normal]>:is(h1,h2,h3,h4,h5,h6),.ed-c-heading--wrap-normal{--ed-heading-text-wrap: normal}ed-heading[enhance]>:is(h1,h2,h3,h4,h5,h6) a,.ed-c-heading a{color:inherit;text-decoration:none;border-block-end:var(--ed-theme-border-width-sm) solid transparent;transition:border-color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}ed-heading[enhance]>:is(h1,h2,h3,h4,h5,h6) a:hover,ed-heading[enhance]>:is(h1,h2,h3,h4,h5,h6) a:focus-visible,.ed-c-heading a:hover,.ed-c-heading a:focus-visible{color:inherit;border-block-end-color:var(--ed-heading-link-color-border, var(--ed-theme-color-border-brand))}ed-heading[enhance]>:is(h1,h2,h3,h4,h5,h6) a:focus-visible,.ed-c-heading a:focus-visible{outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-default);outline-offset:var(--ed-theme-offset-focus-ring, .25rem)}ed-heading[enhance][variant=display-xl]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=display-xl]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=display-xl]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=display-lg]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=display-lg]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=display-default]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=display-default]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=headline-lg]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=headline-lg]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=headline-default]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=headline-default]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=headline-sm]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=headline-sm]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=title-lg]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=title-lg]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=title-default]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=title-sm]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=label-lg]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=label-default]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=label-sm]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=body-lg]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=body-default]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=body-sm]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=meta-default]>:is(h1,h2,h3,h4,h5,h6),.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-heading[enhance][variant=meta-sm]>:is(h1,h2,h3,h4,h5,h6),.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 s = Object.defineProperty, d = (l, e, h, o) => {
5
+ for (var t = void 0, r = l.length - 1, g; r >= 0; r--)
6
+ (g = l[r]) && (t = g(e, h, t) || t);
7
+ return t && s(e, h, t), t;
8
+ };
9
+ class i extends p {
10
+ constructor() {
11
+ super(...arguments), this.tagName = "h2";
12
+ }
13
+ static get styles() {
14
+ return y(m);
15
+ }
16
+ /**
17
+ * The modifier-class map for a heading at semantic level `level`.
18
+ *
19
+ * Shared by both authoring modes so they cannot drift: `render()` passes the
20
+ * `tagName` property, and `enhanceLightDom()` passes the author's real tag —
21
+ * which is the whole reason the level is a parameter rather than read from
22
+ * `this`. An explicit `variant` always wins; the `level` only decides the
23
+ * default when `variant` is unset.
24
+ */
25
+ headingModifiers(e) {
26
+ return {
27
+ "ed-c-heading--display-xl": this.variant === "display-xl",
28
+ "ed-c-heading--display-lg": this.variant === "display-lg",
29
+ "ed-c-heading--display-default": this.variant === "display-default",
30
+ "ed-c-heading--headline-lg": this.variant ? this.variant === "headline-lg" : e === "h1",
31
+ "ed-c-heading--headline-default": this.variant ? this.variant === "headline-default" : e === "h2",
32
+ "ed-c-heading--headline-sm": this.variant ? this.variant === "headline-sm" : e === "h3",
33
+ "ed-c-heading--title-lg": this.variant ? this.variant === "title-lg" : e === "h4",
34
+ "ed-c-heading--title-default": this.variant ? this.variant === "title-default" : e === "h5",
35
+ "ed-c-heading--title-sm": this.variant ? this.variant === "title-sm" : e === "h6",
36
+ "ed-c-heading--label-lg": this.variant === "label-lg",
37
+ "ed-c-heading--label-default": this.variant === "label-default",
38
+ "ed-c-heading--label-sm": this.variant === "label-sm",
39
+ "ed-c-heading--body-lg": this.variant === "body-lg",
40
+ "ed-c-heading--body-default": this.variant === "body-default",
41
+ "ed-c-heading--body-sm": this.variant === "body-sm",
42
+ "ed-c-heading--meta-default": this.variant === "meta-default",
43
+ "ed-c-heading--meta-sm": this.variant === "meta-sm",
44
+ "ed-c-heading--wrap-balance": this.wrap === "balance",
45
+ "ed-c-heading--wrap-pretty": this.wrap === "pretty",
46
+ "ed-c-heading--wrap-normal": this.wrap === "normal"
47
+ };
48
+ }
49
+ /**
50
+ * Enhance mode (#1484): style the author's real heading in place instead of
51
+ * rendering one into a shadow root.
52
+ *
53
+ * Authored form:
54
+ * ```html
55
+ * <ed-heading enhance variant="display-lg">
56
+ * <h1 class="p-name">How I build design systems</h1>
57
+ * </ed-heading>
58
+ * ```
59
+ *
60
+ * The point is that the `<h1>` is in the document before this component (or
61
+ * any JS) runs: it is in the accessibility tree and the heading outline with
62
+ * scripting off, and microformat and SEO parsers can read it — none of which
63
+ * is true of a heading rendered into a shadow root.
64
+ *
65
+ * `tagName` is inert here. The author's own element decides the semantic
66
+ * level, which is the entire point of the mode; this method reads that level
67
+ * to pick the default typography preset when `variant` is unset.
68
+ */
69
+ enhanceLightDom() {
70
+ this.injectGlobalStyles("ed-heading-styles", f);
71
+ const e = this.querySelector(":scope > h1, :scope > h2, :scope > h3, :scope > h4, :scope > h5, :scope > h6");
72
+ e && (e.classList.add("ed-c-heading"), this.styleModifier && e.classList.add(this.styleModifier), Object.entries(this.headingModifiers(e.localName)).forEach(([h, o]) => {
73
+ e.classList.toggle(h, o);
74
+ }));
75
+ }
76
+ render() {
77
+ const e = this.componentClassNames("ed-c-heading", this.headingModifiers(this.tagName));
78
+ switch (this.tagName) {
79
+ case "h1":
80
+ return a` <h1 class="${e}"><slot></slot></h1> `;
81
+ case "h2":
82
+ return a` <h2 class="${e}"><slot></slot></h2> `;
83
+ case "h3":
84
+ return a` <h3 class="${e}"><slot></slot></h3> `;
85
+ case "h4":
86
+ return a` <h4 class="${e}"><slot></slot></h4> `;
87
+ case "h5":
88
+ return a` <h5 class="${e}"><slot></slot></h5> `;
89
+ case "h6":
90
+ return a` <h6 class="${e}"><slot></slot></h6> `;
91
+ }
92
+ }
93
+ }
94
+ d([
95
+ n()
96
+ ], i.prototype, "variant");
97
+ d([
98
+ n()
99
+ ], i.prototype, "tagName");
100
+ d([
101
+ n()
102
+ ], i.prototype, "wrap");
103
+ customElements.get("ed-heading") === void 0 && customElements.define("ed-heading", i);
@@ -1,7 +1,7 @@
1
1
  import { r as h, A as f, o as d, b as c, n as t, e as m } from "./lit.EWazi_Sp.js";
2
2
  import { n as u } from "./index.browser.D527xXcp.js";
3
3
  import { E as p } from "./EdElement.Dqh0Nrbq.js";
4
- import "./button.COKzxeaS.js";
4
+ import "./button.UtF8xc8z.js";
5
5
  const b = '@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-single-field-form{width:100%}@media all and (min-width:48rem){.ed-c-single-field-form__body{display:flex}}.ed-c-single-field-form__body-inner{position:relative;flex:1}.ed-c-single-field-form__clear-button{--ed-theme-color-content-default: var(--ed-theme-form-color-content-default);--ed-theme-color-content-hover: var(--ed-theme-form-color-content-hover, var(--ed-theme-form-color-content-default));display:inline-flex;position:absolute;inset-block-start:50%;inset-inline-end:1rem;transform:translateY(-50%)}.ed-c-single-field-form__label{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);display:block;margin-block-end:.5rem}.ed-c-single-field-form__input{-webkit-appearance:none;width:100%;border-width:var(--ed-theme-border-width-sm);border-style:solid;border-color:var(--ed-theme-form-color-border-default);border-radius:var(--ed-theme-border-radius-sm);outline:none;padding:.8125rem .5rem;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);color:var(--ed-theme-form-color-content-default);background-color:var(--ed-theme-form-color-background-default);transition:border-color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease),background-color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease),box-shadow var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-single-field-form__input:hover{border-color:var(--ed-theme-color-border-brand);background-color:var(--ed-theme-form-color-background-hover)}.ed-c-single-field-form__input:focus:not(:disabled){border-color:var(--ed-theme-form-color-border-focus)}.ed-c-single-field-form__input:not(:placeholder-shown):focus:not(:disabled){border-color:var(--ed-theme-form-color-border-focus);background-color:var(--ed-theme-form-color-background-hover)}.ed-is-error .ed-c-single-field-form__input:not(:placeholder-shown):focus:not(:disabled){background-color:var(--ed-theme-color-background-utility-error)}.ed-is-success .ed-c-single-field-form__input:not(:placeholder-shown):focus:not(:disabled){background-color:var(--ed-theme-color-background-utility-success)}.ed-c-single-field-form__input:active:not(:disabled){border-color:var(--ed-theme-form-color-border)}.ed-c-single-field-form__input:disabled{background-color:var(--ed-theme-color-background-subtle);border-color:var(--ed-theme-color-border-disabled);color:var(--ed-theme-color-content-disabled);cursor:not-allowed}.ed-c-single-field-form__input:disabled~.ed-c-text-field__label,.ed-c-single-field-form__input:disabled:hover~.ed-c-text-field__label,.ed-c-single-field-form__input:disabled::placeholder{color:var(--ed-theme-color-content-disabled)}.ed-c-single-field-form__input: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-single-field-form__input::placeholder{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);color:var(--ed-theme-form-color-content-subtle);transition:color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-is-error .ed-c-single-field-form__input::placeholder{color:var(--ed-theme-color-content-utility-error)}.ed-is-error .ed-c-single-field-form__input:hover::placeholder{color:var(--ed-theme-color-content-utility-error-hover)}.ed-is-error .ed-c-single-field-form__input{color:var(--ed-theme-color-content-default);border-color:var(--ed-theme-color-border-utility-error);background-color:var(--ed-theme-color-background-utility-error)}.ed-is-error .ed-c-single-field-form__input:hover,.ed-is-error .ed-c-single-field-form__input:focus{background-color:var(--ed-theme-color-background-utility-error)}.ed-is-error .ed-c-single-field-form__input:not(:focus){color:var(--ed-theme-color-content-default)}.ed-is-success .ed-c-single-field-form__input{color:var(--ed-theme-color-content-default);border-color:var(--ed-theme-color-border-utility-success);background-color:var(--ed-theme-color-background-utility-success)}.ed-is-success .ed-c-single-field-form__input:hover,.ed-is-success .ed-c-single-field-form__input:focus{background-color:var(--ed-theme-color-background-utility-success)}.ed-c-single-field-form__input{display:block;width:100%}.ed-c-single-field-form--has-clear .ed-c-single-field-form__input{padding-inline-end:6rem}.ed-c-single-field-form__button{display:block;margin-block-start:1rem}@media all and (min-width:48rem){.ed-c-single-field-form__button{margin-block-start:0;margin-inline-start:1rem}}.ed-c-single-field-form--knockout .ed-c-single-field-form__label{color:var(--ed-theme-color-content-knockout)}.ed-c-single-field-form--knockout .ed-c-single-field-form__input{border-color:var(--ed-theme-color-border-subtle)}.ed-c-single-field-form--knockout .ed-c-single-field-form__input:focus:not(:disabled){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)}';
6
6
  var g = Object.defineProperty, o = (l, r, n, y) => {
7
7
  for (var i = void 0, a = l.length - 1, s; a >= 0; a--)
@@ -14,7 +14,13 @@ class i extends g {
14
14
  return d(m);
15
15
  }
16
16
  /**
17
- * Add the light dom styles when this component is connected to a page
17
+ * Add the light dom styles when this component is connected to a page.
18
+ *
19
+ * This runs client-side only, so a page with JS off — or one painted before
20
+ * hydration — shows unstyled prose. Consumers that care about first paint
21
+ * should also link or inline the static artifact the package ships at
22
+ * `components/text-passage/text-passage-light-dom.css` (#1468). The id guard
23
+ * below makes loading both harmless: same rules, injected at most once.
18
24
  */
19
25
  connectedCallback() {
20
26
  if (super.connectedCallback(), !document.head.querySelector("#ed-text-passage-styles")) {
@@ -36,6 +36,7 @@ const s = {
36
36
  "ed-r-timeline-node-video": "./recipes/common/timeline-node-video/timeline-node-video.js",
37
37
  "ed-r-transport-button": "./recipes/common/transport-button/transport-button.js",
38
38
  "ed-r-vertical-site-header": "./recipes/common/vertical-site-header/vertical-site-header.js",
39
+ "ed-r-video-embed": "./recipes/common/video-embed/video-embed.js",
39
40
  "ed-r-visualzzz": "./recipes/common/visualzzz/visualzzz.js",
40
41
  "ed-r-wah-link-list": "./recipes/we-are-here/wah-link-list/wah-link-list.js",
41
42
  "ed-r-wah-logo": "./recipes/we-are-here/wah-logo/wah-logo.js",
@@ -56,12 +57,12 @@ function l() {
56
57
  function a(e) {
57
58
  i = e.endsWith("/") ? e : e + "/";
58
59
  }
59
- const c = /* @__PURE__ */ new Set();
60
+ const d = /* @__PURE__ */ new Set();
60
61
  async function m(e) {
61
- if (c.has(e) || customElements.get(e)) return;
62
+ if (d.has(e) || customElements.get(e)) return;
62
63
  const n = s[e];
63
64
  if (n) {
64
- c.add(e);
65
+ d.add(e);
65
66
  try {
66
67
  await import(l() + n);
67
68
  } catch (o) {
@@ -76,7 +77,7 @@ function r(e = document.body) {
76
77
  s[t] && m(t);
77
78
  }
78
79
  }
79
- const d = new MutationObserver((e) => {
80
+ const c = new MutationObserver((e) => {
80
81
  for (const n of e)
81
82
  for (const o of n.addedNodes)
82
83
  if (o instanceof HTMLElement) {
@@ -85,8 +86,8 @@ const d = new MutationObserver((e) => {
85
86
  }
86
87
  });
87
88
  document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", () => {
88
- r(), d.observe(document.body, { subtree: !0, childList: !0 });
89
- }) : (r(), d.observe(document.body, { subtree: !0, childList: !0 }));
89
+ r(), c.observe(document.body, { subtree: !0, childList: !0 });
90
+ }) : (r(), c.observe(document.body, { subtree: !0, childList: !0 }));
90
91
  const p = "__EDDIE_RECIPES_VERSION__";
91
92
  export {
92
93
  p as EDDIE_RECIPES_VERSION,
@@ -1,6 +1,6 @@
1
1
  import { E as c } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
2
  import "../../../chunks/card.peqD1u-M.js";
3
- import "../../../chunks/heading.Ca_LYMne.js";
3
+ import "../../../chunks/heading.DxaawzBz.js";
4
4
  import { r as p, A as h, b as i, n as o } from "../../../chunks/lit.EWazi_Sp.js";
5
5
  const f = '@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-r-article-card__timestamp{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);margin:0;margin-block-end:.25rem;color:var(--ed-theme-color-content-subtle)}.ed-r-article-card__title{display:block}.ed-r-article-card__title:not(:last-child){margin-block-end:.5rem}.ed-r-article-card__title ::slotted(*){display:block;margin-block:0}.ed-r-article-card__excerpt{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);display:block}.ed-r-article-card__excerpt ::slotted(*){margin-block-start:0}.ed-r-article-card__excerpt ::slotted(:last-child){margin-block-end:0}';
6
6
  var y = Object.defineProperty, l = (m, r, e, s) => {
@@ -1,11 +1,11 @@
1
1
  import { E as O } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
2
  import { r as D, b as s, n as e, o as l, e as F, a as j, A as I } from "../../../chunks/lit.EWazi_Sp.js";
3
- import "../../../chunks/button.COKzxeaS.js";
3
+ import "../../../chunks/button.UtF8xc8z.js";
4
4
  import { E as N } from "../../../chunks/EdFormElement.DxDbDIOi.js";
5
5
  import { n as $ } from "../../../chunks/index.browser.D527xXcp.js";
6
6
  import "../../../chunks/icon.mc7zUxp5.js";
7
7
  import "../../../chunks/select-field.DLVUo7yk.js";
8
- import "../../../chunks/heading.Ca_LYMne.js";
8
+ import "../../../chunks/heading.DxaawzBz.js";
9
9
  const A = '@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-c-button-group{display:flex;align-items:center}.ed-c-button-group ::slotted(ed-button){margin-inline-end:1rem}.ed-c-button-group ::slotted(ed-button:last-child){margin-inline-end:0}.ed-c-button-group--stacked{flex-direction:column;align-items:initial}.ed-c-button-group--stacked ::slotted(ed-button){margin-block-end:.5rem}.ed-c-button-group--stacked ::slotted(ed-button:last-child){margin-block-end:0}.ed-c-button-group--responsive ::slotted(ed-button){margin-block-end:.5rem;margin-inline-end:0}@media all and (min-width:48rem){.ed-c-button-group--responsive ::slotted(ed-button){margin-inline-end:1rem;margin-block-end:0}}@media all and (max-width:48rem){.ed-c-button-group--responsive{flex-direction:column;align-items:initial}}';
10
10
  var M = Object.defineProperty, U = (a, t, i, n) => {
11
11
  for (var o = void 0, d = a.length - 1, r; d >= 0; d--)
@@ -1,5 +1,5 @@
1
1
  import { E as d } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
- import "../../../chunks/single-field-form.BbGoPDle.js";
2
+ import "../../../chunks/single-field-form.BX6ynWNg.js";
3
3
  import { r as h, o as n, b as m, n as t } from "../../../chunks/lit.EWazi_Sp.js";
4
4
  const u = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-r-newsletter-signup{display:block}';
5
5
  var c = Object.defineProperty, o = (i, r, a, b) => {
@@ -1,29 +1,32 @@
1
1
  import { E as p } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
2
  import "../../../chunks/band.B0ez0GMJ.js";
3
3
  import "../../../chunks/layout-container.C8MYJcgw.js";
4
- import { r as g, b as i, n as s, A as d } from "../../../chunks/lit.EWazi_Sp.js";
5
- const y = '@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-c-page-header{margin-block-end:2rem}.ed-c-page-header__title{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-page-header__title{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-page-header__title{text-wrap:var(--ed-heading-text-wrap, balance);display:block;margin:0}.ed-c-page-header__title-after{display:inline-block;position:relative;inset-block-end:.625rem;margin-inline-start:1rem}.ed-c-page-header__description{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)}';
6
- var c = Object.defineProperty, v = (a, t, n, f) => {
7
- for (var e = void 0, r = a.length - 1, o; r >= 0; r--)
8
- (o = a[r]) && (e = o(t, n, e) || e);
9
- return e && c(t, n, e), e;
4
+ import { r as m, b as r, A as d, n as l } from "../../../chunks/lit.EWazi_Sp.js";
5
+ const y = '@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-c-page-header{margin-block-end:2rem}.ed-c-page-header--center{text-align:center}.ed-c-page-header--center .ed-c-page-header__title--slotted{justify-content:center}.ed-c-page-header--right{text-align:right}.ed-c-page-header--right .ed-c-page-header__title--slotted{justify-content:flex-end}.ed-c-page-header__title{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-page-header__title{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-page-header__title{text-wrap:var(--ed-heading-text-wrap, balance);display:block;margin:0}.ed-c-page-header__title--slotted{display:flex;align-items:baseline;flex-wrap:wrap;gap:1rem}::slotted(:is(h1,h2,h3,h4,h5,h6)){margin:0}.ed-c-page-header__title-after{display:inline-block;position:relative;inset-block-end:.625rem;margin-inline-start:1rem}.ed-c-page-header__description{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)}';
6
+ var v = Object.defineProperty, c = (i, t, a, f) => {
7
+ for (var e = void 0, n = i.length - 1, o; n >= 0; n--)
8
+ (o = i[n]) && (e = o(t, a, e) || e);
9
+ return e && v(t, a, e), e;
10
10
  };
11
- class m extends p {
11
+ class s extends p {
12
12
  constructor() {
13
13
  super(...arguments), this.heading = "Page header title";
14
14
  }
15
15
  static get styles() {
16
- return g(y);
16
+ return m(y);
17
17
  }
18
18
  render() {
19
- const t = this.componentClassNames("ed-c-page-header", {});
20
- return i`
19
+ const t = this.componentClassNames("ed-c-page-header", {
20
+ "ed-c-page-header--center": this.align === "center",
21
+ "ed-c-page-header--right": this.align === "right"
22
+ }), a = this.slotNotEmpty("titleAfter") ? r`<div class="ed-c-page-header__title-after">
23
+ <slot name="titleAfter"></slot>
24
+ </div>` : d;
25
+ return r`
21
26
  <div class="${t}">
22
- <h1 class="ed-c-page-header__title">
23
- ${this.heading}${this.slotNotEmpty("titleAfter") && i`<div class="ed-c-page-header__title-after">
24
- <slot name="titleAfter"></slot>
25
- </div>`}
26
- </h1>
27
+ ${this.slotNotEmpty("heading") ? r`<div class="ed-c-page-header__title ed-c-page-header__title--slotted">
28
+ <slot name="heading"></slot>${a}
29
+ </div>` : r`<h1 class="ed-c-page-header__title">${this.heading}${a}</h1>`}
27
30
  <div class="ed-c-page-header__description">
28
31
  <slot></slot>
29
32
  </div>
@@ -31,29 +34,32 @@ class m extends p {
31
34
  `;
32
35
  }
33
36
  }
34
- v([
35
- s({ type: String })
36
- ], m.prototype, "heading");
37
- customElements.get("ed-page-header") === void 0 && customElements.define("ed-page-header", m);
37
+ c([
38
+ l({ type: String })
39
+ ], s.prototype, "heading");
40
+ c([
41
+ l()
42
+ ], s.prototype, "align");
43
+ customElements.get("ed-page-header") === void 0 && customElements.define("ed-page-header", s);
38
44
  const b = '@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-r-page-banner__header{margin-block-end:.5rem}';
39
- var _ = Object.defineProperty, h = (a, t, n, f) => {
40
- for (var e = void 0, r = a.length - 1, o; r >= 0; r--)
41
- (o = a[r]) && (e = o(t, n, e) || e);
42
- return e && _(t, n, e), e;
45
+ var _ = Object.defineProperty, g = (i, t, a, f) => {
46
+ for (var e = void 0, n = i.length - 1, o; n >= 0; n--)
47
+ (o = i[n]) && (e = o(t, a, e) || e);
48
+ return e && _(t, a, e), e;
43
49
  };
44
- class l extends p {
50
+ class h extends p {
45
51
  constructor() {
46
52
  super(...arguments), this.heading = "";
47
53
  }
48
54
  static get styles() {
49
- return g(b);
55
+ return m(b);
50
56
  }
51
57
  render() {
52
58
  const t = this.componentClassNames("ed-r-page-banner", {});
53
- return i`
59
+ return r`
54
60
  <ed-band class="${t}" variant="${this.variant ?? d}">
55
61
  <ed-layout-container variant="${this.containerVariant ?? d}">
56
- ${this.slotNotEmpty("header") ? i`<div class="ed-r-page-banner__header">
62
+ ${this.slotNotEmpty("header") ? r`<div class="ed-r-page-banner__header">
57
63
  <slot name="header"></slot>
58
64
  </div>` : d}
59
65
  <ed-page-header heading="${this.heading}">
@@ -66,9 +72,9 @@ class l extends p {
66
72
  * query even when nothing is assigned to it, leaving a stray
67
73
  * indent after every heading.
68
74
  */
69
- this.slotNotEmpty("titleAfter") ? i`<slot name="titleAfter" slot="titleAfter"></slot>` : d}
75
+ this.slotNotEmpty("titleAfter") ? r`<slot name="titleAfter" slot="titleAfter"></slot>` : d}
70
76
  </ed-page-header>
71
- ${this.slotNotEmpty("footer") ? i`<div class="ed-r-page-banner__footer">
77
+ ${this.slotNotEmpty("footer") ? r`<div class="ed-r-page-banner__footer">
72
78
  <slot name="footer"></slot>
73
79
  </div>` : d}
74
80
  </ed-layout-container>
@@ -76,16 +82,16 @@ class l extends p {
76
82
  `;
77
83
  }
78
84
  }
79
- h([
80
- s()
81
- ], l.prototype, "heading");
82
- h([
83
- s({ reflect: !0 })
84
- ], l.prototype, "variant");
85
- h([
86
- s()
87
- ], l.prototype, "containerVariant");
88
- customElements.get("ed-r-page-banner") === void 0 && customElements.define("ed-r-page-banner", l);
85
+ g([
86
+ l()
87
+ ], h.prototype, "heading");
88
+ g([
89
+ l({ reflect: !0 })
90
+ ], h.prototype, "variant");
91
+ g([
92
+ l()
93
+ ], h.prototype, "containerVariant");
94
+ customElements.get("ed-r-page-banner") === void 0 && customElements.define("ed-r-page-banner", h);
89
95
  export {
90
- l as EdRPageBanner
96
+ h as EdRPageBanner
91
97
  };
@@ -1,6 +1,6 @@
1
1
  import { E as h } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
- import "../../../chunks/heading.Ca_LYMne.js";
3
- import "../../../chunks/text-passage.DW6q78mi.js";
2
+ import "../../../chunks/heading.DxaawzBz.js";
3
+ import "../../../chunks/text-passage.BEu9bNtm.js";
4
4
  import { r as p, A as c, b as d, n as t } from "../../../chunks/lit.EWazi_Sp.js";
5
5
  const m = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-r-project-card{display:flex;flex-direction:column;height:100%;border-width:var(--ed-theme-border-width-sm);border-style:solid;border-color:var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-md);box-shadow:var(--ed-theme-box-shadow-md);background:var(--ed-theme-color-background-default);overflow:hidden}.ed-r-project-card__media{flex:none}.ed-r-project-card__img{display:block;width:100%;height:auto;object-fit:cover}.ed-r-project-card__body{display:flex;flex-direction:column;flex:1 0 auto;padding:1.5rem;gap:.5rem}.ed-r-project-card__title{display:block}.ed-r-project-card__link{color:inherit;text-decoration:none;border-block-end:var(--ed-theme-border-width-sm) solid transparent;transition:border-color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-r-project-card__link:hover,.ed-r-project-card__link:focus-visible{color:inherit;border-block-end-color:var(--ed-heading-link-color-border, var(--ed-theme-color-border-brand))}.ed-r-project-card__link: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-r-project-card__description{display:block}';
6
6
  var b = Object.defineProperty, o = (a, i, l, f) => {
@@ -1,5 +1,5 @@
1
1
  import { E as d } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
- import "../../../chunks/single-field-form.BbGoPDle.js";
2
+ import "../../../chunks/single-field-form.BX6ynWNg.js";
3
3
  import { r as c, o as i, b as p, n as t } from "../../../chunks/lit.EWazi_Sp.js";
4
4
  const u = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-r-search-form{display:block}';
5
5
  var m = Object.defineProperty, o = (l, s, n, f) => {
@@ -1,5 +1,5 @@
1
1
  import { E as o } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
- import "../../../chunks/button.COKzxeaS.js";
2
+ import "../../../chunks/button.UtF8xc8z.js";
3
3
  import "../../../chunks/header.CoOwmnr7.js";
4
4
  import "../../../chunks/layout-container.C8MYJcgw.js";
5
5
  import { r, b as a, a as m } from "../../../chunks/lit.EWazi_Sp.js";
@@ -1,6 +1,6 @@
1
1
  import { E as c } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
2
  import "../../../chunks/card.peqD1u-M.js";
3
- import "../../../chunks/heading.Ca_LYMne.js";
3
+ import "../../../chunks/heading.DxaawzBz.js";
4
4
  import { r as g, b as a, A as n, n as o } from "../../../chunks/lit.EWazi_Sp.js";
5
5
  const y = '@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-r-speaking-card__meta{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);display:flex;flex-wrap:wrap;gap:.125rem;margin:0;margin-block-end:.25rem;color:var(--ed-theme-color-content-subtle)}.ed-r-speaking-card__separator{color:var(--ed-theme-color-content-subtle)}.ed-r-speaking-card__title{display:block}.ed-r-speaking-card__title:not(:last-child){margin-block-end:.25rem}.ed-r-speaking-card__title ::slotted(*){display:block;margin-block:0}.ed-r-speaking-card__note{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);display:block}.ed-r-speaking-card__note:not(:last-child){margin-block-end:.25rem}.ed-r-speaking-card__note ::slotted(*){margin-block-start:0;margin-block-end:.25rem}.ed-r-speaking-card__note ::slotted(:last-child){margin-block-end:0}.ed-r-speaking-card__materials{display:block}';
6
6
  var f = Object.defineProperty, l = (m, e, t, i) => {
@@ -1,7 +1,7 @@
1
1
  import { E as h } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
2
  import "../../../chunks/card.peqD1u-M.js";
3
- import "../../../chunks/heading.Ca_LYMne.js";
4
- import "../../../chunks/text-passage.DW6q78mi.js";
3
+ import "../../../chunks/heading.DxaawzBz.js";
4
+ import "../../../chunks/text-passage.BEu9bNtm.js";
5
5
  import { r as m, A as c, b as o, n as s } from "../../../chunks/lit.EWazi_Sp.js";
6
6
  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}.ed-r-stat-card__label{display:block;margin-block-end:.25rem}.ed-r-stat-card__value{display:block;margin:0;font-variant-numeric:tabular-nums}.ed-r-stat-card__value:not(:last-child){margin-block-end:.25rem}.ed-r-stat-card__meta{display:block}.ed-r-stat-card--positive .ed-r-stat-card__value{color:var(--ed-theme-color-content-utility-success)}.ed-r-stat-card--warning .ed-r-stat-card__value{color:var(--ed-theme-color-content-utility-warning)}.ed-r-stat-card--danger .ed-r-stat-card__value{color:var(--ed-theme-color-content-utility-error)}';
7
7
  var g = Object.defineProperty, d = (l, e, r, v) => {
@@ -1,6 +1,6 @@
1
1
  import { E as d } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
2
  import "../../../chunks/timeline-node.CmEn0wf_.js";
3
- import "../../../chunks/heading.Ca_LYMne.js";
3
+ import "../../../chunks/heading.DxaawzBz.js";
4
4
  import { A as o, b as m, n as i } from "../../../chunks/lit.EWazi_Sp.js";
5
5
  var p = Object.defineProperty, r = (l, e, a, h) => {
6
6
  for (var t = void 0, n = l.length - 1, c; n >= 0; n--)
@@ -1,6 +1,6 @@
1
1
  import { E as c } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
2
  import "../../../chunks/timeline-node.CmEn0wf_.js";
3
- import "../../../chunks/heading.Ca_LYMne.js";
3
+ import "../../../chunks/heading.DxaawzBz.js";
4
4
  import { r as p, b as r, A as d, n as i } from "../../../chunks/lit.EWazi_Sp.js";
5
5
  const f = '@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-r-timeline-node__body{display:flex;flex-direction:column;gap:.25rem;text-align:inherit}.ed-r-timeline-node__eyebrow{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);color:var(--ed-theme-color-content-subtle);text-transform:uppercase;letter-spacing:.04em}.ed-r-timeline-node__date{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);color:var(--ed-theme-color-content-subtle)}.ed-r-timeline-node__heading{display:block;color:var(--ed-c-timeline-node-heading-color, inherit)}.ed-r-timeline-node__link{color:inherit;text-decoration:none;border-block-end:var(--ed-theme-border-width-sm) solid transparent;transition:border-color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-r-timeline-node__link:hover,.ed-r-timeline-node__link:focus-visible{color:inherit;border-block-end-color:var(--ed-heading-link-color-border, var(--ed-theme-color-border-brand))}.ed-r-timeline-node__link: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)}';
6
6
  var g = Object.defineProperty, o = (l, a, n, h) => {
@@ -1,6 +1,6 @@
1
1
  import { E as u } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
2
  import { r as b, b as c, n as o } from "../../../chunks/lit.EWazi_Sp.js";
3
- import "../../../chunks/button.COKzxeaS.js";
3
+ import "../../../chunks/button.UtF8xc8z.js";
4
4
  const m = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:inline-block}.ed-r-transport-button{position:relative;display:inline-block}.ed-r-transport-button--sm .ed-r-transport-button__button{--ed-c-button-size-override: 2.5rem}.ed-r-transport-button--md .ed-r-transport-button__button{--ed-c-button-size-override: 3.5rem}.ed-r-transport-button--lg .ed-r-transport-button__button{--ed-c-button-size-override: 5rem}.ed-r-transport-button--xl .ed-r-transport-button__button{--ed-c-button-size-override: 9rem}.ed-r-transport-button__button{width:var(--ed-c-button-size-override, auto);height:var(--ed-c-button-size-override, auto)}.ed-r-transport-button--pulsing:before{content:"";position:absolute;inset:0;border-radius:var(--ed-theme-border-radius-round);pointer-events:none;box-shadow:0 0 0 0 var(--ed-theme-color-content-danger);animation:ed-r-transport-button-pulse 1.4s ease-out infinite}@keyframes ed-r-transport-button-pulse{0%{box-shadow:0 0 color-mix(in srgb,var(--ed-theme-color-content-danger) 60%,transparent)}70%{box-shadow:0 0 0 1.25rem color-mix(in srgb,var(--ed-theme-color-content-danger) 0%,transparent)}to{box-shadow:0 0 color-mix(in srgb,var(--ed-theme-color-content-danger) 0%,transparent)}}@media(prefers-reduced-motion:reduce){.ed-r-transport-button--pulsing:before{animation:none}}.ed-r-transport-button.ed-is-disabled{opacity:.5;pointer-events:none}';
5
5
  var h = Object.defineProperty, n = (a, t, s, d) => {
6
6
  for (var e = void 0, i = a.length - 1, l; i >= 0; i--)
@@ -1,16 +1,16 @@
1
- import { E as n } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
- import "../../../chunks/button.COKzxeaS.js";
1
+ import { E as c } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
+ import "../../../chunks/button.UtF8xc8z.js";
3
3
  import "../../../chunks/header.CoOwmnr7.js";
4
- import { a as l, r as c, b as s } from "../../../chunks/lit.EWazi_Sp.js";
5
- const h = '@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}@media all and (min-width:60rem){.ed-r-vertical-site-header__logo{margin-block:1rem}}.ed-r-vertical-site-header__menu-button{margin-inline-start:auto}@media all and (min-width:60rem){.ed-r-vertical-site-header__menu-button{display:none}}.ed-r-vertical-site-header__nav{position:absolute;inset-inline-start:0;inset-block-start:100%;z-index:3;display:none;width:100%;height:100vh;padding:1rem;overflow:auto;background:var(--ed-theme-color-background-knockout)}.ed-r-vertical-site-header.ed-is-active .ed-r-vertical-site-header__nav{display:block}@media all and (min-width:60rem){.ed-r-vertical-site-header__nav{position:static;display:block;width:auto;height:auto;padding:0;overflow:visible;background:none}}';
6
- var v = Object.defineProperty, m = (a, i, t, u) => {
7
- for (var e = void 0, r = a.length - 1, o; r >= 0; r--)
8
- (o = a[r]) && (e = o(i, t, e) || e);
9
- return e && v(i, t, e), e;
4
+ import { a as h, r as v, o as m, b as a, n as u } from "../../../chunks/lit.EWazi_Sp.js";
5
+ const b = '@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}@media all and (min-width:60rem){.ed-r-vertical-site-header__logo{margin-block:1rem}}.ed-r-vertical-site-header__menu-button{margin-inline-start:auto}@media all and (min-width:60rem){.ed-r-vertical-site-header__menu-button{display:none}}.ed-r-vertical-site-header__nav{position:absolute;inset-inline-start:0;inset-block-start:100%;z-index:3;display:none;width:100%;height:100vh;padding:1rem;overflow:auto;background:var(--ed-theme-color-background-knockout)}.ed-r-vertical-site-header.ed-is-active .ed-r-vertical-site-header__nav{display:block}@media all and (min-width:60rem){.ed-r-vertical-site-header__nav{position:static;display:block;width:auto;height:auto;padding:0;overflow:visible;background:none}}.ed-r-vertical-site-header--bare .ed-r-vertical-site-header__nav{background:var(--ed-theme-color-background-default)}@media all and (min-width:60rem){.ed-r-vertical-site-header--bare .ed-r-vertical-site-header__nav{background:none}}';
6
+ var p = Object.defineProperty, l = (r, t, i, s) => {
7
+ for (var e = void 0, d = r.length - 1, n; d >= 0; d--)
8
+ (n = r[d]) && (e = n(t, i, e) || e);
9
+ return e && p(t, i, e), e;
10
10
  };
11
- class d extends n {
11
+ class o extends c {
12
12
  static get styles() {
13
- return c(h);
13
+ return v(b);
14
14
  }
15
15
  constructor() {
16
16
  super(), this.clickHandler = this.clickHandler.bind(this);
@@ -19,26 +19,27 @@ class d extends n {
19
19
  this.isActive = !this.isActive, this.isActive === !0 ? this.parentNode?.getRootNode()?.host?.classList.add("ed-body-is-disabled") : this.parentNode?.getRootNode()?.host?.classList.remove("ed-body-is-disabled");
20
20
  }
21
21
  render() {
22
- const i = this.componentClassNames("ed-r-vertical-site-header", {
23
- "ed-is-active": this.isActive === !0
24
- }), t = this.slotNotEmpty("nav");
25
- return s`
26
- <ed-header class="${i}" orientation="vertical">
27
- ${this.slotNotEmpty("logo") && s`<div class="ed-r-vertical-site-header__logo">
22
+ const t = this.variant === "bare", i = this.componentClassNames("ed-r-vertical-site-header", {
23
+ "ed-is-active": this.isActive === !0,
24
+ "ed-r-vertical-site-header--bare": t
25
+ }), s = this.slotNotEmpty("nav");
26
+ return a`
27
+ <ed-header class="${i}" orientation="vertical" variant=${m(this.variant)}>
28
+ ${this.slotNotEmpty("logo") && a`<div class="ed-r-vertical-site-header__logo">
28
29
  <slot name="logo"></slot>
29
30
  </div>`}
30
- ${t && s`<ed-button
31
+ ${s && a`<ed-button
31
32
  class="ed-r-vertical-site-header__menu-button"
32
33
  size="lg"
33
34
  aria-expanded=${this.isActive === !0}
34
35
  @click=${this.clickHandler}
35
36
  variant="bare"
36
- ?knockout=${!0}
37
+ ?knockout=${!t}
37
38
  text="Menu"
38
39
  iconPosition="before"
39
40
  iconName="menu"
40
41
  ></ed-button>`}
41
- ${t && s`<div class="ed-r-vertical-site-header__nav">
42
+ ${s && a`<div class="ed-r-vertical-site-header__nav">
42
43
  <slot name="nav"></slot>
43
44
  </div>`}
44
45
  <slot></slot>
@@ -46,10 +47,13 @@ class d extends n {
46
47
  `;
47
48
  }
48
49
  }
49
- m([
50
- l()
51
- ], d.prototype, "isActive");
52
- customElements.get("ed-r-vertical-site-header") === void 0 && customElements.define("ed-r-vertical-site-header", d);
50
+ l([
51
+ u()
52
+ ], o.prototype, "variant");
53
+ l([
54
+ h()
55
+ ], o.prototype, "isActive");
56
+ customElements.get("ed-r-vertical-site-header") === void 0 && customElements.define("ed-r-vertical-site-header", o);
53
57
  export {
54
- d as EdRVerticalSiteHeader
58
+ o as EdRVerticalSiteHeader
55
59
  };
@@ -0,0 +1,48 @@
1
+ import { E as m } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
+ import { r as n, A as p, o as b, b as c, n as s } from "../../../chunks/lit.EWazi_Sp.js";
3
+ const v = '@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;margin-block-end:2rem}.ed-r-video-embed{position:relative;overflow:hidden;aspect-ratio:16/9;background:var(--ed-theme-color-background-subtle)}.ed-r-video-embed__frame{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}.ed-r-video-embed ::slotted(iframe){position:absolute;inset:0;display:block;width:100%!important;height:100%!important;border:0}.ed-r-video-embed--ratio-16-9{aspect-ratio:16/9}.ed-r-video-embed--ratio-21-9{aspect-ratio:21/9}.ed-r-video-embed--ratio-4-3{aspect-ratio:4/3}.ed-r-video-embed--ratio-3-2{aspect-ratio:3/2}.ed-r-video-embed--ratio-1-1{aspect-ratio:1/1}.ed-r-video-embed--ratio-4-5{aspect-ratio:4/5}.ed-r-video-embed--ratio-9-16{aspect-ratio:9/16}';
4
+ var h = Object.defineProperty, a = (i, t, o, f) => {
5
+ for (var e = void 0, d = i.length - 1, l; d >= 0; d--)
6
+ (l = i[d]) && (e = l(t, o, e) || e);
7
+ return e && h(t, o, e), e;
8
+ };
9
+ const u = ["16:9", "21:9", "4:3", "3:2", "1:1", "4:5", "9:16"];
10
+ class r extends m {
11
+ constructor() {
12
+ super(...arguments), this.videoTitle = "", this.ratio = "16:9";
13
+ }
14
+ static get styles() {
15
+ return n(v);
16
+ }
17
+ render() {
18
+ const t = this.componentClassNames("ed-r-video-embed", {
19
+ [`ed-r-video-embed--ratio-${this.ratio.replace(":", "-")}`]: u.includes(this.ratio)
20
+ }), o = this.querySelector(":scope > *:not([slot])") !== null;
21
+ return c`
22
+ <div class="${t}" part="frame">
23
+ ${o || !this.src ? p : c`<iframe
24
+ class="ed-r-video-embed__frame"
25
+ src="${this.src}"
26
+ title="${b(this.videoTitle || void 0)}"
27
+ loading="lazy"
28
+ allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
29
+ allowfullscreen
30
+ ></iframe>`}
31
+ <slot></slot>
32
+ </div>
33
+ `;
34
+ }
35
+ }
36
+ a([
37
+ s()
38
+ ], r.prototype, "src");
39
+ a([
40
+ s()
41
+ ], r.prototype, "videoTitle");
42
+ a([
43
+ s({ reflect: !0 })
44
+ ], r.prototype, "ratio");
45
+ customElements.get("ed-r-video-embed") === void 0 && customElements.define("ed-r-video-embed", r);
46
+ export {
47
+ r as EdRVideoEmbed
48
+ };
@@ -1,5 +1,5 @@
1
1
  import { E as B } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
- import "../../../chunks/button.COKzxeaS.js";
2
+ import "../../../chunks/button.UtF8xc8z.js";
3
3
  import "../../../chunks/icon.mc7zUxp5.js";
4
4
  import { a as p, r as D, b as f, n as R } from "../../../chunks/lit.EWazi_Sp.js";
5
5
  import { STATIC_CATALOG as N, CATALOG_API_URL as G } from "./google-fonts-catalog.js";
@@ -1,5 +1,5 @@
1
1
  import { E as h } from "../../../chunks/EdElement.Dqh0Nrbq.js";
2
- import "../../../chunks/button.COKzxeaS.js";
2
+ import "../../../chunks/button.UtF8xc8z.js";
3
3
  import "../../../chunks/layout-container.C8MYJcgw.js";
4
4
  import "../wah-logo/wah-logo.js";
5
5
  import { a as m, r as c, b as s, n as d } from "../../../chunks/lit.EWazi_Sp.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brad-frost-web/eddie-recipes",
3
- "version": "0.48.0",
3
+ "version": "0.50.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -13,28 +13,35 @@ import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdEle
13
13
  * logo stacked above the navigation, always visible.
14
14
  *
15
15
  * Slot an `ed-primary-nav orientation="vertical" size="sm"` into the nav slot so
16
- * the rail reads as a stacked list at the lighter typography. Nothing is
17
- * hardcoded, so the recipe is reusable without forking. The Storybook story
18
- * demonstrates the canonical composition; copy its shape rather than reading the
19
- * render source.
16
+ * the rail reads as a stacked list at the lighter typography — in `enhance` mode,
17
+ * so the list semantics stay in one tree (#1404). Nothing is hardcoded, so the
18
+ * recipe is reusable without forking. The Storybook story demonstrates the
19
+ * canonical composition; copy its shape rather than reading the render source.
20
+ *
21
+ * The rail's color treatment is separate from its responsive behavior: leave
22
+ * `variant` unset for the default knockout rail, or set `variant="bare"` for a
23
+ * transparent one (#1415).
20
24
  *
21
25
  * @recipe composition
22
26
  *
23
27
  * @use As the left-rail global header in a two-column / sidebar app layout (e.g. a dashboard)
24
28
  * @use When the primary navigation has enough items that a horizontal header row would crowd
25
29
  * @use Providing persistent stacked navigation on wide screens that collapses to a menu toggle on small screens
30
+ * @use When you want the collapse-to-flyout responsive behavior but not the dark rail — set `variant="bare"` and slot non-knockout content (#1415)
26
31
  *
27
32
  * @dontuse As a full-width top header on wide screens — use `ed-r-site-header` for the horizontal pattern
28
33
  * @dontuse Duplicated on a single page — there should be only one site header per page
29
34
  * @dontuse With generic placeholder nav labels ("Nav Item", "Link") — navigation links must have descriptive, unique labels
30
35
  *
31
- * @slot logo - The site brand mark. Slot an `ed-logo` (the rail is a dark/knockout surface, so render it `knockout`).
32
- * @slot nav - The primary navigation. Slot an `ed-primary-nav orientation="vertical" size="sm"` of `ed-primary-nav-item`s. The recipe wraps it in the flyout/rail region and shows/hides it via the mobile menu toggle. Mark the current page's item with `isHighlighted`.
36
+ * @slot logo - The site brand mark. Slot an `ed-logo`. By default the rail is a dark/knockout surface, so render it `knockout`; with `variant="bare"` the rail is transparent, so render it *without* `knockout` so it meets contrast against the page background.
37
+ * @slot nav - The primary navigation. Slot an `ed-primary-nav orientation="vertical" size="sm"`; the recipe wraps it in the flyout/rail region and shows/hides it via the mobile menu toggle. **Prefer `enhance` mode** — author the real `<nav> > <ul> > <li> > <a>` chain inside it and mark the current page with `aria-current="page"`. Classic mode (`ed-primary-nav-item` children) splits the `<ul>` and `<li>` across shadow roots and fails axe `list`/`listitem` on every consuming page (#1404); reach for it only when you need megamenu panels, which enhance mode does not provide.
33
38
  * @slot - (default) Escape hatch for additional rail content (utility links, actions) below the nav.
34
39
  *
35
40
  * @a11y The menu toggle's `aria-expanded` reflects the flyout's open/closed state — keep it in sync if you modify the toggle logic
36
- * @a11y Mark the current page's nav item with `isHighlighted` so users get a clear "you are here" signal
41
+ * @a11y Mark the current page's nav item so users get a clear "you are here" signal — `aria-current="page"` on the anchor in enhance mode (it drives the highlight styling too, so the visual and programmatic states cannot drift), or `isHighlighted` in classic mode
42
+ * @a11y Slot the nav in `enhance` mode. Classic mode splits `<ul>` and `<li>` across shadow roots, so the flattened tree has a list with no list items — axe `list`/`listitem`, WCAG 1.3.1, once per page and once per item (#1404). Note `render-check` exempts those rules (it cannot see across shadow boundaries), so a passing render-check does not clear this
37
43
  * @a11y In the sidebar layout the header appears before `<main>` in the DOM — pair with a skip link so keyboard users can bypass the nav
44
+ * @a11y `variant` changes what the slotted content is contrast-checked *against*. On the default (or any filled) rail, slot `knockout` content; with `variant="bare"` there is no fill, so slotted content must meet WCAG AA against the page background instead — knockout content on a bare rail will fail
38
45
  *
39
46
  * @anatomy A sidebar-style global `ed-header` (orientation="vertical"): brand (logo slot) stacked above the primary navigation (nav slot) in a left rail that collapses to a compact bar + flyout below `lg`. The recipe owns the menu toggle.
40
47
  *
@@ -44,10 +51,26 @@ import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdEle
44
51
  *
45
52
  * @content For app/dashboard shells with a persistent left rail. Keep nav labels short. The recipe owns the structure — you own the words.
46
53
  *
47
- * @state expanded rail (lg+) / collapsed bar + flyout (below lg, toggled).
54
+ * @state expanded rail (lg+) / collapsed bar + flyout (below lg, toggled) / `variant` (rail fill: default knockout, `bare`, brand, accent-*).
48
55
  */
49
56
  export declare class EdRVerticalSiteHeader extends EdElement {
50
57
  static get styles(): import('lit').CSSResult;
58
+ /**
59
+ * Background color variant, forwarded to the inner `ed-header`. Leave unset
60
+ * for the default knockout (dark) rail.
61
+ *
62
+ * The rail's *responsive behavior* and its *color treatment* are independent
63
+ * concerns — set this when you want the collapse-to-flyout layout without the
64
+ * dark surface (#1415).
65
+ *
66
+ * - `bare` — no background fill; the rail sits transparently over the page
67
+ * background. Slot a **non-knockout** logo and nav, since content now has to
68
+ * meet contrast against the page rather than against a dark fill. The
69
+ * recipe's own chrome (menu toggle, small-screen flyout) follows suit.
70
+ * - `brand` / `brand-knockout` / `accent-1`–`accent-8` — a filled rail; slot
71
+ * knockout content as with the default.
72
+ */
73
+ variant?: 'bare' | 'brand' | 'brand-knockout' | 'accent-1' | 'accent-2' | 'accent-3' | 'accent-4' | 'accent-5' | 'accent-6' | 'accent-7' | 'accent-8';
51
74
  /**
52
75
  * Open state of the small-screen navigation flyout.
53
76
  */
@@ -1 +1 @@
1
- {"version":3,"file":"vertical-site-header.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/common/vertical-site-header/vertical-site-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AACzF,OAAO,kEAAkE,CAAC;AAC1E,OAAO,kEAAkE,CAAC;AAK1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,qBAAa,qBAAsB,SAAQ,SAAS;IAClD,MAAM,KAAK,MAAM,4BAEhB;IAED;;OAEG;IAEH,QAAQ,CAAC,EAAE,OAAO,CAAC;;IAOnB,YAAY;IASZ,MAAM;CAgCP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,2BAA2B,EAAE,qBAAqB,CAAC;KACpD;CACF"}
1
+ {"version":3,"file":"vertical-site-header.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/common/vertical-site-header/vertical-site-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AACzF,OAAO,kEAAkE,CAAC;AAC1E,OAAO,kEAAkE,CAAC;AAM1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,qBAAa,qBAAsB,SAAQ,SAAS;IAClD,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;;;;;;;;;;OAcG;IAEH,OAAO,CAAC,EACJ,MAAM,GACN,OAAO,GACP,gBAAgB,GAChB,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;IAEf;;OAEG;IAEH,QAAQ,CAAC,EAAE,OAAO,CAAC;;IAOnB,YAAY;IASZ,MAAM;CAuCP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,2BAA2B,EAAE,qBAAqB,CAAC;KACpD;CACF"}
@@ -1,17 +1,18 @@
1
- import { EdElement as n } from "@brad-frost-web/eddie-web-components/components/EdElement.js";
1
+ import { EdElement as c } from "@brad-frost-web/eddie-web-components/components/EdElement.js";
2
2
  import "@brad-frost-web/eddie-web-components/components/button/button.js";
3
3
  import "@brad-frost-web/eddie-web-components/components/header/header.js";
4
- import { unsafeCSS as l, html as s } from "lit";
5
- import { state as c } from "lit/decorators.js";
6
- const h = '@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}@media all and (min-width:60rem){.ed-r-vertical-site-header__logo{margin-block:1rem}}.ed-r-vertical-site-header__menu-button{margin-inline-start:auto}@media all and (min-width:60rem){.ed-r-vertical-site-header__menu-button{display:none}}.ed-r-vertical-site-header__nav{position:absolute;inset-inline-start:0;inset-block-start:100%;z-index:3;display:none;width:100%;height:100vh;padding:1rem;overflow:auto;background:var(--ed-theme-color-background-knockout)}.ed-r-vertical-site-header.ed-is-active .ed-r-vertical-site-header__nav{display:block}@media all and (min-width:60rem){.ed-r-vertical-site-header__nav{position:static;display:block;width:auto;height:auto;padding:0;overflow:visible;background:none}}';
7
- var v = Object.defineProperty, m = (a, i, t, u) => {
8
- for (var e = void 0, r = a.length - 1, o; r >= 0; r--)
9
- (o = a[r]) && (e = o(i, t, e) || e);
10
- return e && v(i, t, e), e;
4
+ import { unsafeCSS as h, html as a } from "lit";
5
+ import { property as v, state as m } from "lit/decorators.js";
6
+ import { ifDefined as u } from "lit/directives/if-defined.js";
7
+ const b = '@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}@media all and (min-width:60rem){.ed-r-vertical-site-header__logo{margin-block:1rem}}.ed-r-vertical-site-header__menu-button{margin-inline-start:auto}@media all and (min-width:60rem){.ed-r-vertical-site-header__menu-button{display:none}}.ed-r-vertical-site-header__nav{position:absolute;inset-inline-start:0;inset-block-start:100%;z-index:3;display:none;width:100%;height:100vh;padding:1rem;overflow:auto;background:var(--ed-theme-color-background-knockout)}.ed-r-vertical-site-header.ed-is-active .ed-r-vertical-site-header__nav{display:block}@media all and (min-width:60rem){.ed-r-vertical-site-header__nav{position:static;display:block;width:auto;height:auto;padding:0;overflow:visible;background:none}}.ed-r-vertical-site-header--bare .ed-r-vertical-site-header__nav{background:var(--ed-theme-color-background-default)}@media all and (min-width:60rem){.ed-r-vertical-site-header--bare .ed-r-vertical-site-header__nav{background:none}}';
8
+ var p = Object.defineProperty, l = (r, t, i, s) => {
9
+ for (var e = void 0, o = r.length - 1, n; o >= 0; o--)
10
+ (n = r[o]) && (e = n(t, i, e) || e);
11
+ return e && p(t, i, e), e;
11
12
  };
12
- class d extends n {
13
+ class d extends c {
13
14
  static get styles() {
14
- return l(h);
15
+ return h(b);
15
16
  }
16
17
  constructor() {
17
18
  super(), this.clickHandler = this.clickHandler.bind(this);
@@ -20,26 +21,27 @@ class d extends n {
20
21
  this.isActive = !this.isActive, this.isActive === !0 ? this.parentNode?.getRootNode()?.host?.classList.add("ed-body-is-disabled") : this.parentNode?.getRootNode()?.host?.classList.remove("ed-body-is-disabled");
21
22
  }
22
23
  render() {
23
- const i = this.componentClassNames("ed-r-vertical-site-header", {
24
- "ed-is-active": this.isActive === !0
25
- }), t = this.slotNotEmpty("nav");
26
- return s`
27
- <ed-header class="${i}" orientation="vertical">
28
- ${this.slotNotEmpty("logo") && s`<div class="ed-r-vertical-site-header__logo">
24
+ const t = this.variant === "bare", i = this.componentClassNames("ed-r-vertical-site-header", {
25
+ "ed-is-active": this.isActive === !0,
26
+ "ed-r-vertical-site-header--bare": t
27
+ }), s = this.slotNotEmpty("nav");
28
+ return a`
29
+ <ed-header class="${i}" orientation="vertical" variant=${u(this.variant)}>
30
+ ${this.slotNotEmpty("logo") && a`<div class="ed-r-vertical-site-header__logo">
29
31
  <slot name="logo"></slot>
30
32
  </div>`}
31
- ${t && s`<ed-button
33
+ ${s && a`<ed-button
32
34
  class="ed-r-vertical-site-header__menu-button"
33
35
  size="lg"
34
36
  aria-expanded=${this.isActive === !0}
35
37
  @click=${this.clickHandler}
36
38
  variant="bare"
37
- ?knockout=${!0}
39
+ ?knockout=${!t}
38
40
  text="Menu"
39
41
  iconPosition="before"
40
42
  iconName="menu"
41
43
  ></ed-button>`}
42
- ${t && s`<div class="ed-r-vertical-site-header__nav">
44
+ ${s && a`<div class="ed-r-vertical-site-header__nav">
43
45
  <slot name="nav"></slot>
44
46
  </div>`}
45
47
  <slot></slot>
@@ -47,8 +49,11 @@ class d extends n {
47
49
  `;
48
50
  }
49
51
  }
50
- m([
51
- c()
52
+ l([
53
+ v()
54
+ ], d.prototype, "variant");
55
+ l([
56
+ m()
52
57
  ], d.prototype, "isActive");
53
58
  customElements.get("ed-r-vertical-site-header") === void 0 && customElements.define("ed-r-vertical-site-header", d);
54
59
  export {
@@ -0,0 +1,112 @@
1
+ import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement.js';
2
+ /**
3
+ * Shape vocabulary, deliberately identical to `ed-r-visualzzz` — the system's
4
+ * other third-party embed recipe. Two embeds with two different ratio
5
+ * spellings would be a papercut every consumer hits.
6
+ */
7
+ declare const RATIOS: readonly ["16:9", "21:9", "4:3", "3:2", "1:1", "4:5", "9:16"];
8
+ type VideoEmbedRatio = typeof RATIOS[number];
9
+ /**
10
+ * Responsive wrapper for a third-party video embed (YouTube, Vimeo, or any
11
+ * provider that hands you an `<iframe>`).
12
+ *
13
+ * A provider's embed snippet ships fixed `width`/`height` attributes, so
14
+ * dropping it into a fluid column overflows on small screens. The long-standing
15
+ * fix is a ratio box with an absolutely-filled iframe, which every content site
16
+ * has historically hand-rolled as a local `.video-embed` class. This recipe is
17
+ * that pattern, owned by the system and sized from tokens (#1392).
18
+ *
19
+ * Two authoring forms, and the choice matters:
20
+ *
21
+ * ```html
22
+ * <!-- Slot the provider's own iframe. Preferred for existing content: a
23
+ * content transform can wrap what is already there without reconstructing
24
+ * the URL, and the provider's own params survive untouched. -->
25
+ * <ed-r-video-embed>
26
+ * <iframe src="https://www.youtube.com/embed/VIDEO_ID"
27
+ * title="Atomic Design — Brad Frost" allowfullscreen></iframe>
28
+ * </ed-r-video-embed>
29
+ *
30
+ * <!-- Or let the recipe build the iframe. Convenient for new content. -->
31
+ * <ed-r-video-embed src="https://www.youtube.com/embed/VIDEO_ID"
32
+ * videoTitle="Atomic Design — Brad Frost"></ed-r-video-embed>
33
+ * ```
34
+ *
35
+ * Slotted content always wins over `src`, so a page can mix both forms.
36
+ *
37
+ * @recipe declarative
38
+ *
39
+ * @use Embedding a YouTube or Vimeo video in a blog post or article body
40
+ * @use Wrapping legacy embed markup during a content migration — slot the existing `<iframe>` and the recipe supplies the responsive box around it
41
+ * @use Any third-party `<iframe>` that needs to hold a fixed aspect ratio in a fluid column
42
+ * @use Non-16:9 material — a vertical phone-shot clip is `ratio="9:16"`, a classic-TV-era clip is `ratio="4:3"`
43
+ *
44
+ * @dontuse For self-hosted video you control — use a native `<video>` element, which gives you real controls, captions, and preload behavior an iframe cannot
45
+ * @dontuse As a general third-party embed wrapper — the ratio vocabulary is video-shaped; use `ed-r-visualzzz` for embedded visuals and a purpose-built recipe for anything else
46
+ * @dontuse With `autoplay` in the embed URL — video that starts on its own is a WCAG 1.4.2 failure and is hostile on metered connections
47
+ * @dontuse To lazy-load a poster/facade and swap in the player on click — deliberately out of scope; this recipe always mounts the real iframe
48
+ *
49
+ * @a11y **Always name the video** — `videoTitle` when the recipe builds the iframe, or a `title` attribute on your own when you slot one. An `<iframe>` with no accessible name is announced as an unlabelled frame, so a screen-reader user has no idea what it contains — axe flags it as a serious violation (`frame-title`, WCAG 4.1.2). Name the video, not the medium: "Atomic Design — Brad Frost", never "YouTube video player" or "Video".
50
+ * @a11y Never add `autoplay` to the embed URL. Media that starts by itself fails WCAG 1.4.2 (Audio Control) when it runs past three seconds with no way to stop it, and it competes with a screen reader's own speech.
51
+ * @a11y The recipe reserves the video's space with `aspect-ratio` before the iframe loads, so the page does not reflow under a reader who has already started moving through it.
52
+ * @a11y `allowfullscreen` is set on the generated iframe so keyboard users can reach the player's fullscreen control; keep it when you slot your own.
53
+ * @a11y Captions are the provider's responsibility, not this recipe's — a video carrying dialogue needs real captions on the platform to meet WCAG 1.2.2, and no wrapper can supply them.
54
+ *
55
+ * @anatomy A ratio-constrained block (`aspect-ratio`, token background as the pre-load floor) containing exactly one `<iframe>` — either the author's slotted one or one the recipe builds from `src`, absolutely filling the box.
56
+ *
57
+ * @related ed-r-visualzzz — the other third-party embed recipe, for generative visuals rather than video; shares this ratio vocabulary
58
+ * @related ed-figure — wrap this in one when the video needs a caption
59
+ * @related ed-text-passage — the usual host, an article body
60
+ *
61
+ * @content The recipe renders no words of its own. The one string you own is `videoTitle`, and it is load-bearing: it is the video's accessible name. Write what the video IS ("Atomic Design — Brad Frost"), not what it is delivered by ("YouTube video player").
62
+ *
63
+ * @state Static. The only axis is `ratio`, which reserves the box's shape. There is no loading, error, or playing state — playback lives entirely inside the provider's iframe, and the recipe deliberately owns none of it.
64
+ *
65
+ * @slot - (default) The provider's own `<iframe>`. Slotting wins over `src`. Use this when the embed markup already exists — a content migration should wrap what is there rather than rebuild the URL.
66
+ *
67
+ * @csspart frame - The ratio-constrained box wrapping the iframe
68
+ */
69
+ export declare class EdRVideoEmbed extends EdElement {
70
+ static get styles(): import('lit').CSSResult;
71
+ /**
72
+ * The provider's embed URL — the `/embed/` form, not the page you watch on.
73
+ * YouTube's `https://www.youtube.com/embed/VIDEO_ID`, Vimeo's
74
+ * `https://player.vimeo.com/video/VIDEO_ID`. A normal `watch?v=` link renders
75
+ * a refused-to-connect frame, because providers block framing of the watch page.
76
+ *
77
+ * Ignored when an `<iframe>` is slotted.
78
+ */
79
+ src?: string;
80
+ /**
81
+ * The video's accessible name, forwarded to the generated iframe's `title`.
82
+ *
83
+ * Not optional in practice: an unnamed frame is announced as an unlabelled
84
+ * region, and axe flags it (`frame-title`). Name the video — "Atomic Design —
85
+ * Brad Frost" — not the medium. When you slot your own iframe, put the title
86
+ * on that element instead; this property only feeds the generated one.
87
+ *
88
+ * Named `videoTitle` rather than `title` on purpose. A reactive property
89
+ * called `title` would shadow `HTMLElement.prototype.title` (the same
90
+ * collision class as #1485) and, worse, a `title` attribute on the host paints
91
+ * a native browser tooltip over the whole embed on hover — which is not what
92
+ * anyone means by naming a video.
93
+ */
94
+ videoTitle: string;
95
+ /**
96
+ * Shape of the reserved box. `16:9` is the modern default and right for
97
+ * nearly all web video; reach for the others when the source material is
98
+ * genuinely a different shape — `4:3` for pre-HD footage, `9:16` for a
99
+ * vertical phone clip.
100
+ *
101
+ * Matches `ed-r-visualzzz`'s vocabulary exactly.
102
+ */
103
+ ratio: VideoEmbedRatio;
104
+ render(): import('lit-html').TemplateResult<1>;
105
+ }
106
+ declare global {
107
+ interface HTMLElementTagNameMap {
108
+ 'ed-r-video-embed': EdRVideoEmbed;
109
+ }
110
+ }
111
+ export {};
112
+ //# sourceMappingURL=video-embed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"video-embed.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/common/video-embed/video-embed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AAMzF;;;;GAIG;AACH,QAAA,MAAM,MAAM,+DAAgE,CAAC;AAE7E,KAAK,eAAe,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,qBAAa,aAAc,SAAQ,SAAS;IAC1C,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;;;OAOG;IAEH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;;;;;;;;;OAaG;IAEH,UAAU,SAAM;IAEhB;;;;;;;OAOG;IAEH,KAAK,EAAE,eAAe,CAAU;IAEhC,MAAM;CA+BP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,aAAa,CAAC;KACnC;CACF"}
@@ -0,0 +1,50 @@
1
+ import { EdElement as n } from "@brad-frost-web/eddie-web-components/components/EdElement.js";
2
+ import { unsafeCSS as c, nothing as p, html as m } from "lit";
3
+ import { property as s } from "lit/decorators.js";
4
+ import { ifDefined as b } from "lit/directives/if-defined.js";
5
+ const h = '@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;margin-block-end:2rem}.ed-r-video-embed{position:relative;overflow:hidden;aspect-ratio:16/9;background:var(--ed-theme-color-background-subtle)}.ed-r-video-embed__frame{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}.ed-r-video-embed ::slotted(iframe){position:absolute;inset:0;display:block;width:100%!important;height:100%!important;border:0}.ed-r-video-embed--ratio-16-9{aspect-ratio:16/9}.ed-r-video-embed--ratio-21-9{aspect-ratio:21/9}.ed-r-video-embed--ratio-4-3{aspect-ratio:4/3}.ed-r-video-embed--ratio-3-2{aspect-ratio:3/2}.ed-r-video-embed--ratio-1-1{aspect-ratio:1/1}.ed-r-video-embed--ratio-4-5{aspect-ratio:4/5}.ed-r-video-embed--ratio-9-16{aspect-ratio:9/16}';
6
+ var v = Object.defineProperty, a = (i, t, o, u) => {
7
+ for (var e = void 0, d = i.length - 1, l; d >= 0; d--)
8
+ (l = i[d]) && (e = l(t, o, e) || e);
9
+ return e && v(t, o, e), e;
10
+ };
11
+ const f = ["16:9", "21:9", "4:3", "3:2", "1:1", "4:5", "9:16"];
12
+ class r extends n {
13
+ constructor() {
14
+ super(...arguments), this.videoTitle = "", this.ratio = "16:9";
15
+ }
16
+ static get styles() {
17
+ return c(h);
18
+ }
19
+ render() {
20
+ const t = this.componentClassNames("ed-r-video-embed", {
21
+ [`ed-r-video-embed--ratio-${this.ratio.replace(":", "-")}`]: f.includes(this.ratio)
22
+ }), o = this.querySelector(":scope > *:not([slot])") !== null;
23
+ return m`
24
+ <div class="${t}" part="frame">
25
+ ${o || !this.src ? p : m`<iframe
26
+ class="ed-r-video-embed__frame"
27
+ src="${this.src}"
28
+ title="${b(this.videoTitle || void 0)}"
29
+ loading="lazy"
30
+ allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
31
+ allowfullscreen
32
+ ></iframe>`}
33
+ <slot></slot>
34
+ </div>
35
+ `;
36
+ }
37
+ }
38
+ a([
39
+ s()
40
+ ], r.prototype, "src");
41
+ a([
42
+ s()
43
+ ], r.prototype, "videoTitle");
44
+ a([
45
+ s({ reflect: !0 })
46
+ ], r.prototype, "ratio");
47
+ customElements.get("ed-r-video-embed") === void 0 && customElements.define("ed-r-video-embed", r);
48
+ export {
49
+ r as EdRVideoEmbed
50
+ };
@@ -1,64 +0,0 @@
1
- import { r as g, b as a, n as r } from "./lit.EWazi_Sp.js";
2
- import { E as y } from "./EdElement.Dqh0Nrbq.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{margin:0}.ed-c-heading{text-wrap:var(--ed-heading-text-wrap, balance);margin:0}.ed-c-heading--wrap-balance{--ed-heading-text-wrap: balance}.ed-c-heading--wrap-pretty{--ed-heading-text-wrap: pretty}.ed-c-heading--wrap-normal{--ed-heading-text-wrap: normal}::slotted(a){color:inherit;text-decoration:none;border-block-end:var(--ed-theme-border-width-sm) solid transparent;transition:border-color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}::slotted(a:hover),::slotted(a:focus-visible){color:inherit;border-block-end-color:var(--ed-heading-link-color-border, var(--ed-theme-color-border-brand))}::slotted(a:focus-visible){outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-default);outline-offset:var(--ed-theme-offset-focus-ring, .25rem)}.ed-c-heading--display-xl{font-family:var(--ed-theme-typography-display-xl-mobile-font-family);font-weight:var(--ed-theme-typography-display-xl-mobile-font-weight);font-size:var(--ed-theme-typography-display-xl-mobile-font-size);line-height:var(--ed-theme-typography-display-xl-mobile-line-height);letter-spacing:var(--ed-theme-typography-display-xl-mobile-letter-spacing);text-transform:var(--ed-theme-typography-display-xl-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--display-xl{font-family:var(--ed-theme-typography-display-xl-tablet-font-family);font-weight:var(--ed-theme-typography-display-xl-tablet-font-weight);font-size:var(--ed-theme-typography-display-xl-tablet-font-size);line-height:var(--ed-theme-typography-display-xl-tablet-line-height);letter-spacing:var(--ed-theme-typography-display-xl-tablet-letter-spacing);text-transform:var(--ed-theme-typography-display-xl-tablet-text-transform)}}@media all and (min-width:75rem){.ed-c-heading--display-xl{font-family:var(--ed-theme-typography-display-xl-font-family);font-weight:var(--ed-theme-typography-display-xl-font-weight);font-size:var(--ed-theme-typography-display-xl-font-size);line-height:var(--ed-theme-typography-display-xl-line-height);letter-spacing:var(--ed-theme-typography-display-xl-letter-spacing);text-transform:var(--ed-theme-typography-display-xl-text-transform)}}.ed-c-heading--display-lg{font-family:var(--ed-theme-typography-display-lg-mobile-font-family);font-weight:var(--ed-theme-typography-display-lg-mobile-font-weight);font-size:var(--ed-theme-typography-display-lg-mobile-font-size);line-height:var(--ed-theme-typography-display-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-display-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-display-lg-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--display-lg{font-family:var(--ed-theme-typography-display-lg-font-family);font-weight:var(--ed-theme-typography-display-lg-font-weight);font-size:var(--ed-theme-typography-display-lg-font-size);line-height:var(--ed-theme-typography-display-lg-line-height);letter-spacing:var(--ed-theme-typography-display-lg-letter-spacing);text-transform:var(--ed-theme-typography-display-lg-text-transform)}}.ed-c-heading--display-default{font-family:var(--ed-theme-typography-display-default-mobile-font-family);font-weight:var(--ed-theme-typography-display-default-mobile-font-weight);font-size:var(--ed-theme-typography-display-default-mobile-font-size);line-height:var(--ed-theme-typography-display-default-mobile-line-height);letter-spacing:var(--ed-theme-typography-display-default-mobile-letter-spacing);text-transform:var(--ed-theme-typography-display-default-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--display-default{font-family:var(--ed-theme-typography-display-default-font-family);font-weight:var(--ed-theme-typography-display-default-font-weight);font-size:var(--ed-theme-typography-display-default-font-size);line-height:var(--ed-theme-typography-display-default-line-height);letter-spacing:var(--ed-theme-typography-display-default-letter-spacing);text-transform:var(--ed-theme-typography-display-default-text-transform)}}.ed-c-heading--headline-lg{font-family:var(--ed-theme-typography-headline-lg-mobile-font-family);font-weight:var(--ed-theme-typography-headline-lg-mobile-font-weight);font-size:var(--ed-theme-typography-headline-lg-mobile-font-size);line-height:var(--ed-theme-typography-headline-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-lg-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--headline-lg{font-family:var(--ed-theme-typography-headline-lg-font-family);font-weight:var(--ed-theme-typography-headline-lg-font-weight);font-size:var(--ed-theme-typography-headline-lg-font-size);line-height:var(--ed-theme-typography-headline-lg-line-height);letter-spacing:var(--ed-theme-typography-headline-lg-letter-spacing);text-transform:var(--ed-theme-typography-headline-lg-text-transform)}}.ed-c-heading--headline-default{font-family:var(--ed-theme-typography-headline-default-mobile-font-family);font-weight:var(--ed-theme-typography-headline-default-mobile-font-weight);font-size:var(--ed-theme-typography-headline-default-mobile-font-size);line-height:var(--ed-theme-typography-headline-default-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-default-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-default-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--headline-default{font-family:var(--ed-theme-typography-headline-default-font-family);font-weight:var(--ed-theme-typography-headline-default-font-weight);font-size:var(--ed-theme-typography-headline-default-font-size);line-height:var(--ed-theme-typography-headline-default-line-height);letter-spacing:var(--ed-theme-typography-headline-default-letter-spacing);text-transform:var(--ed-theme-typography-headline-default-text-transform)}}.ed-c-heading--headline-sm{font-family:var(--ed-theme-typography-headline-sm-mobile-font-family);font-weight:var(--ed-theme-typography-headline-sm-mobile-font-weight);font-size:var(--ed-theme-typography-headline-sm-mobile-font-size);line-height:var(--ed-theme-typography-headline-sm-mobile-line-height);letter-spacing:var(--ed-theme-typography-headline-sm-mobile-letter-spacing);text-transform:var(--ed-theme-typography-headline-sm-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--headline-sm{font-family:var(--ed-theme-typography-headline-sm-font-family);font-weight:var(--ed-theme-typography-headline-sm-font-weight);font-size:var(--ed-theme-typography-headline-sm-font-size);line-height:var(--ed-theme-typography-headline-sm-line-height);letter-spacing:var(--ed-theme-typography-headline-sm-letter-spacing);text-transform:var(--ed-theme-typography-headline-sm-text-transform)}}.ed-c-heading--title-lg{font-family:var(--ed-theme-typography-title-lg-mobile-font-family);font-weight:var(--ed-theme-typography-title-lg-mobile-font-weight);font-size:var(--ed-theme-typography-title-lg-mobile-font-size);line-height:var(--ed-theme-typography-title-lg-mobile-line-height);letter-spacing:var(--ed-theme-typography-title-lg-mobile-letter-spacing);text-transform:var(--ed-theme-typography-title-lg-mobile-text-transform)}@media all and (min-width:48rem){.ed-c-heading--title-lg{font-family:var(--ed-theme-typography-title-lg-font-family);font-weight:var(--ed-theme-typography-title-lg-font-weight);font-size:var(--ed-theme-typography-title-lg-font-size);line-height:var(--ed-theme-typography-title-lg-line-height);letter-spacing:var(--ed-theme-typography-title-lg-letter-spacing);text-transform:var(--ed-theme-typography-title-lg-text-transform)}}.ed-c-heading--title-default{font-family:var(--ed-theme-typography-title-default-font-family);font-weight:var(--ed-theme-typography-title-default-font-weight);font-size:var(--ed-theme-typography-title-default-font-size);line-height:var(--ed-theme-typography-title-default-line-height);letter-spacing:var(--ed-theme-typography-title-default-letter-spacing);text-transform:var(--ed-theme-typography-title-default-text-transform)}.ed-c-heading--title-sm{font-family:var(--ed-theme-typography-title-sm-font-family);font-weight:var(--ed-theme-typography-title-sm-font-weight);font-size:var(--ed-theme-typography-title-sm-font-size);line-height:var(--ed-theme-typography-title-sm-line-height);letter-spacing:var(--ed-theme-typography-title-sm-letter-spacing);text-transform:var(--ed-theme-typography-title-sm-text-transform)}.ed-c-heading--label-lg{font-family:var(--ed-theme-typography-label-lg-font-family);font-weight:var(--ed-theme-typography-label-lg-font-weight);font-size:var(--ed-theme-typography-label-lg-font-size);line-height:var(--ed-theme-typography-label-lg-line-height);letter-spacing:var(--ed-theme-typography-label-lg-letter-spacing);text-transform:var(--ed-theme-typography-label-lg-text-transform)}.ed-c-heading--label-default{font-family:var(--ed-theme-typography-label-default-font-family);font-weight:var(--ed-theme-typography-label-default-font-weight);font-size:var(--ed-theme-typography-label-default-font-size);line-height:var(--ed-theme-typography-label-default-line-height);letter-spacing:var(--ed-theme-typography-label-default-letter-spacing);text-transform:var(--ed-theme-typography-label-default-text-transform)}.ed-c-heading--label-sm{font-family:var(--ed-theme-typography-label-sm-font-family);font-weight:var(--ed-theme-typography-label-sm-font-weight);font-size:var(--ed-theme-typography-label-sm-font-size);line-height:var(--ed-theme-typography-label-sm-line-height);letter-spacing:var(--ed-theme-typography-label-sm-letter-spacing);text-transform:var(--ed-theme-typography-label-sm-text-transform)}.ed-c-heading--body-lg{font-family:var(--ed-theme-typography-body-lg-font-family);font-weight:var(--ed-theme-typography-body-lg-font-weight);font-size:var(--ed-theme-typography-body-lg-font-size);line-height:var(--ed-theme-typography-body-lg-line-height);letter-spacing:var(--ed-theme-typography-body-lg-letter-spacing);text-transform:var(--ed-theme-typography-body-lg-text-transform)}.ed-c-heading--body-default{font-family:var(--ed-theme-typography-body-default-font-family);font-weight:var(--ed-theme-typography-body-default-font-weight);font-size:var(--ed-theme-typography-body-default-font-size);line-height:var(--ed-theme-typography-body-default-line-height);letter-spacing:var(--ed-theme-typography-body-default-letter-spacing);text-transform:var(--ed-theme-typography-body-default-text-transform)}.ed-c-heading--body-sm{font-family:var(--ed-theme-typography-body-sm-font-family);font-weight:var(--ed-theme-typography-body-sm-font-weight);font-size:var(--ed-theme-typography-body-sm-font-size);line-height:var(--ed-theme-typography-body-sm-line-height);letter-spacing:var(--ed-theme-typography-body-sm-letter-spacing);text-transform:var(--ed-theme-typography-body-sm-text-transform)}.ed-c-heading--meta-default{font-family:var(--ed-theme-typography-meta-default-font-family);font-weight:var(--ed-theme-typography-meta-default-font-weight);font-size:var(--ed-theme-typography-meta-default-font-size);line-height:var(--ed-theme-typography-meta-default-line-height);letter-spacing:var(--ed-theme-typography-meta-default-letter-spacing);text-transform:var(--ed-theme-typography-meta-default-text-transform)}.ed-c-heading--meta-sm{font-family:var(--ed-theme-typography-meta-sm-font-family);font-weight:var(--ed-theme-typography-meta-sm-font-weight);font-size:var(--ed-theme-typography-meta-sm-font-size);line-height:var(--ed-theme-typography-meta-sm-line-height);letter-spacing:var(--ed-theme-typography-meta-sm-letter-spacing);text-transform:var(--ed-theme-typography-meta-sm-text-transform)}';
4
- var m = Object.defineProperty, d = (h, e, o, s) => {
5
- for (var t = void 0, l = h.length - 1, n; l >= 0; l--)
6
- (n = h[l]) && (t = n(e, o, t) || t);
7
- return t && m(e, o, t), t;
8
- };
9
- class i extends y {
10
- constructor() {
11
- super(...arguments), this.tagName = "h2";
12
- }
13
- static get styles() {
14
- return g(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
- "ed-c-heading--wrap-balance": this.wrap === "balance",
36
- "ed-c-heading--wrap-pretty": this.wrap === "pretty",
37
- "ed-c-heading--wrap-normal": this.wrap === "normal"
38
- });
39
- switch (this.tagName) {
40
- case "h1":
41
- return a` <h1 class="${e}"><slot></slot></h1> `;
42
- case "h2":
43
- return a` <h2 class="${e}"><slot></slot></h2> `;
44
- case "h3":
45
- return a` <h3 class="${e}"><slot></slot></h3> `;
46
- case "h4":
47
- return a` <h4 class="${e}"><slot></slot></h4> `;
48
- case "h5":
49
- return a` <h5 class="${e}"><slot></slot></h5> `;
50
- case "h6":
51
- return a` <h6 class="${e}"><slot></slot></h6> `;
52
- }
53
- }
54
- }
55
- d([
56
- r()
57
- ], i.prototype, "variant");
58
- d([
59
- r()
60
- ], i.prototype, "tagName");
61
- d([
62
- r()
63
- ], i.prototype, "wrap");
64
- customElements.get("ed-heading") === void 0 && customElements.define("ed-heading", i);