@brad-frost-web/eddie-recipes 0.65.0 → 0.66.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 (43) hide show
  1. package/cdn/chunks/{accordion-panel.BMRj9KIn.js → accordion-panel.B9jQR7S6.js} +1 -1
  2. package/cdn/chunks/button.Dzlp-GBS.js +155 -0
  3. package/cdn/chunks/{card.GLnK_QKK.js → card.DrfT-zfU.js} +1 -1
  4. package/cdn/chunks/heading.CmKX6wjQ.js +107 -0
  5. package/cdn/chunks/{select-field.C5TNJvUA.js → select-field.DbfZwxDt.js} +64 -36
  6. package/cdn/chunks/single-field-form.BcMhlRlQ.js +170 -0
  7. package/cdn/chunks/{text-field.BMZBG9I3.js → text-field.CBbmMvh1.js} +1 -1
  8. package/cdn/chunks/text-passage.S8zUd08L.js +128 -0
  9. package/cdn/chunks/{textarea-field.BWBov7zk.js → textarea-field.DQkp1U-5.js} +47 -27
  10. package/cdn/chunks/{toggle.DbY4EVd9.js → toggle.B07CbpBi.js} +37 -15
  11. package/cdn/recipes/common/article-card/article-card.js +3 -3
  12. package/cdn/recipes/common/example-form/example-form.js +42 -23
  13. package/cdn/recipes/common/newsletter-signup/newsletter-signup.js +1 -1
  14. package/cdn/recipes/common/page-banner/page-banner.js +29 -21
  15. package/cdn/recipes/common/project-card/project-card.js +3 -3
  16. package/cdn/recipes/common/search-form/search-form.js +1 -1
  17. package/cdn/recipes/common/site-header/site-header.js +8 -8
  18. package/cdn/recipes/common/speaking-card/speaking-card.js +3 -3
  19. package/cdn/recipes/common/stat-card/stat-card.js +7 -7
  20. package/cdn/recipes/common/theme-switcher/theme-switcher.js +1 -1
  21. package/cdn/recipes/common/timeline-node/TimelineNodeKind.js +1 -1
  22. package/cdn/recipes/common/timeline-node/timeline-node.js +1 -1
  23. package/cdn/recipes/common/transport-button/transport-button.js +1 -1
  24. package/cdn/recipes/common/vertical-site-header/vertical-site-header.js +1 -1
  25. package/cdn/recipes/common/wheel-of-life/wheel-of-life.js +1 -1
  26. package/cdn/recipes/eddie-slides/template-card/template-card.js +6 -6
  27. package/cdn/recipes/tools/theme-customizer/theme-customizer.js +499 -430
  28. package/cdn/recipes/tools/viz-controls/viz-controls.js +6 -6
  29. package/cdn/recipes/we-are-here/wah-site-header/wah-site-header.js +1 -1
  30. package/package.json +1 -1
  31. package/recipes/common/article-card/article-card.js +1 -1
  32. package/recipes/common/project-card/project-card.js +1 -1
  33. package/recipes/common/site-header/site-header.js +17 -17
  34. package/recipes/common/speaking-card/speaking-card.js +1 -1
  35. package/recipes/common/stat-card/stat-card.js +5 -5
  36. package/recipes/common/wheel-of-life/wheel-of-life.js +9 -9
  37. package/recipes/eddie-slides/template-card/template-card.js +1 -1
  38. package/recipes/tools/theme-customizer/theme-customizer.d.ts.map +1 -1
  39. package/recipes/tools/theme-customizer/theme-customizer.js +50 -29
  40. package/cdn/chunks/button.DUAGvu3b.js +0 -154
  41. package/cdn/chunks/heading.BYd3PI-V.js +0 -107
  42. package/cdn/chunks/single-field-form.DwsgpQNI.js +0 -170
  43. package/cdn/chunks/text-passage.DiDchPiE.js +0 -78
@@ -1,7 +1,7 @@
1
1
  import { E as v } from "./EdFormElement.D3Jd1jHD.js";
2
2
  import { r as g, o as l, b as h, n as t, e as _ } from "./lit.B6pFiYzB.js";
3
3
  import { n as p } from "./index.browser.D527xXcp.js";
4
- import "./select-field.C5TNJvUA.js";
4
+ import "./select-field.DbfZwxDt.js";
5
5
  import { E as y } from "./EdElement.BcrGsPCr.js";
6
6
  import "./icon.3TieVSgp.js";
7
7
  const k = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-range{display:flex;flex-direction:column;gap:.5rem}.ed-c-range__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);color:var(--ed-theme-color-content-default)}.ed-c-range__input{-webkit-appearance:none;appearance:none;width:100%;height:.25rem;background:var(--ed-theme-color-background-subtle);border-radius:var(--ed-theme-border-radius-sm);outline:none}.ed-c-range__input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:.75rem;height:.75rem;border-radius:50%;background:var(--ed-theme-color-background-brand);cursor:pointer}.ed-c-range__input::-moz-range-thumb{width:.75rem;height:.75rem;border-radius:50%;background:var(--ed-theme-color-background-brand);cursor:pointer;border:none}.ed-c-range__input::-moz-range-track{background:transparent;border:none}.ed-c-range__input:disabled{cursor:not-allowed}.ed-c-range__input:disabled::-webkit-slider-thumb{cursor:not-allowed}.ed-c-range__input:disabled::-moz-range-thumb{cursor:not-allowed}.ed-c-range.ed-is-disabled,.ed-c-range.ed-is-disabled .ed-c-range__label{color:var(--ed-theme-color-content-disabled)}.ed-c-range--knockout .ed-c-range__label{color:var(--ed-theme-color-content-knockout)}.ed-c-range--sm{--ed-field-padding-block: .375rem;--ed-field-padding-inline: .375rem;--ed-field-font-size: var(--ed-theme-typography-body-sm-font-size);--ed-field-line-height: var(--ed-theme-typography-body-sm-line-height);--ed-field-label-font-size: var(--ed-theme-typography-label-sm-font-size, var(--ed-theme-typography-body-sm-font-size));--ed-field-label-gap: .125rem;--ed-field-note-gap: .125rem;--ed-control-box-size: 1.125rem}.ed-c-range--lg{--ed-field-padding-block: 1.125rem;--ed-field-padding-inline: .75rem;--ed-field-font-size: var(--ed-theme-typography-body-lg-font-size, var(--ed-theme-typography-body-default-font-size));--ed-field-line-height: var(--ed-theme-typography-body-lg-line-height, var(--ed-theme-typography-body-default-line-height));--ed-field-label-gap: .375rem;--ed-field-note-gap: .375rem;--ed-control-box-size: 2rem}';
@@ -0,0 +1,155 @@
1
+ import { E as h } from "./EdFormElement.D3Jd1jHD.js";
2
+ import { r as m, A as n, b as c, o as s, n as r, e as p } from "./lit.B6pFiYzB.js";
3
+ import "./icon.3TieVSgp.js";
4
+ const g = '@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-visually-hidden,.ed-u-is-vishidden,.ed-u-visually-hidden-focusable{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}.ed-u-visually-hidden-focusable:focus,.ed-u-visually-hidden-focusable:focus-visible{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;clip-path:none;white-space:normal}@media all and (min-width:23.4375rem){.ed-u-hide-sm{display:none!important}}@media all and (min-width:48rem){.ed-u-hide-md{display:none!important}}@media all and (min-width:60rem){.ed-u-hide-lg{display:none!important}}@media all and (min-width:75rem){.ed-u-hide-xl{display:none!important}}@media all and (max-width:23.4375rem){.ed-u-show-sm{display:none!important}}@media all and (max-width:48rem){.ed-u-show-md{display:none!important}}@media all and (max-width:60rem){.ed-u-show-lg{display:none!important}}@media all and (max-width:75rem){.ed-u-show-xl{display:none!important}}.ed-c-button{font-family:var(--ed-theme-typography-button-default-font-family);font-weight:var(--ed-theme-typography-button-default-font-weight);font-size:var(--ed-theme-typography-button-default-font-size);line-height:var(--ed-theme-typography-button-default-line-height);letter-spacing:var(--ed-theme-typography-button-default-letter-spacing);text-transform:var(--ed-theme-typography-button-default-text-transform);--ed-button-padding-block: .75rem;--ed-button-padding-inline: 1.75rem;--ed-button-padding-inline-icon: .75rem;display:inline-flex;align-items:center;justify-content:center;gap:var(--ed-button-gap, .25em);padding:var(--ed-button-padding-block) var(--ed-button-padding-inline);margin:0;background:var(--ed-theme-button-color-background-default);border-width:var(--ed-theme-border-width-md);border-style:solid;border-color:var(--ed-theme-button-color-border-default);border-radius:var(--ed-theme-border-radius-md);color:var(--ed-theme-button-color-content-default);cursor:pointer;max-width:100%;white-space:var(--ed-button-white-space, normal);overflow-wrap:break-word;text-align:center;transition:all var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-button:hover,.ed-c-button:focus{color:var(--ed-theme-button-color-content-hover);border-color:var(--ed-theme-button-color-border-hover);background:var(--ed-theme-button-color-background-hover);text-decoration:none}.ed-c-button:focus-visible{outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-default);outline-offset:var(--ed-theme-focus-ring-offset, .25rem)}.ed-c-button:active{background-color:var(--ed-theme-button-color-background-active);border-color:var(--ed-theme-button-color-border-active);color:var(--ed-theme-button-color-content-active)}a.ed-c-button{text-decoration:none}.ed-c-button:disabled{background-color:var(--ed-theme-button-color-background-disabled);border-color:var(--ed-theme-button-color-border-disabled);color:var(--ed-theme-button-color-content-disabled);cursor:not-allowed}.ed-c-button:disabled:hover,.ed-c-button:disabled:focus,.ed-c-button:disabled:active{background-color:var(--ed-theme-button-color-background-disabled);border-color:var(--ed-theme-button-color-border-disabled);color:var(--ed-theme-button-color-content-disabled)}.ed-c-button--primary{background-color:var(--ed-theme-button-primary-color-background-default);border-color:var(--ed-theme-button-primary-color-border-default);color:var(--ed-theme-button-primary-color-content-default)}.ed-c-button--primary:hover,.ed-c-button--primary:focus{background-color:var(--ed-theme-button-primary-color-background-hover);border-color:var(--ed-theme-button-primary-color-border-hover);color:var(--ed-theme-button-primary-color-content-hover)}.ed-c-button--primary:active{background-color:var(--ed-theme-button-primary-color-background-active);border-color:var(--ed-theme-button-primary-color-border-active);color:var(--ed-theme-button-primary-color-content-active)}.ed-c-button--primary:disabled{background-color:var(--ed-theme-button-primary-color-background-disabled);border-color:var(--ed-theme-button-primary-color-border-disabled);color:var(--ed-theme-button-primary-color-content-disabled)}.ed-c-button--primary:disabled:hover,.ed-c-button--primary:disabled:focus,.ed-c-button--primary:disabled:active{background-color:var(--ed-theme-button-primary-color-background-disabled);border-color:var(--ed-theme-button-primary-color-border-disabled);color:var(--ed-theme-button-primary-color-content-disabled)}.ed-c-button--danger{background-color:var(--ed-theme-button-danger-color-background-default, var(--ed-theme-color-background-utility-error));border-color:var(--ed-theme-button-danger-color-border-default, var(--ed-theme-color-border-utility-error));color:var(--ed-theme-button-danger-color-content-default, var(--ed-theme-color-content-utility-error))}.ed-c-button--danger:hover,.ed-c-button--danger:focus{background-color:var(--ed-theme-button-danger-color-background-hover, var(--ed-theme-color-background-utility-error));border-color:var(--ed-theme-button-danger-color-border-hover, var(--ed-theme-color-border-utility-error));color:var(--ed-theme-button-danger-color-content-hover, var(--ed-theme-color-content-utility-error))}.ed-c-button--danger:active{background-color:var(--ed-theme-button-danger-color-background-active, var(--ed-theme-color-background-utility-error));border-color:var(--ed-theme-button-danger-color-border-active, var(--ed-theme-color-border-utility-error));color:var(--ed-theme-button-danger-color-content-active, var(--ed-theme-color-content-utility-error))}.ed-c-button--danger:disabled{background-color:var(--ed-theme-button-danger-color-background-disabled, var(--ed-theme-button-color-background-disabled));border-color:var(--ed-theme-button-danger-color-border-disabled, var(--ed-theme-button-color-border-disabled));color:var(--ed-theme-button-danger-color-content-disabled, var(--ed-theme-button-color-content-disabled))}.ed-c-button--danger:disabled:hover,.ed-c-button--danger:disabled:focus,.ed-c-button--danger:disabled:active{background-color:var(--ed-theme-button-danger-color-background-disabled, var(--ed-theme-button-color-background-disabled));border-color:var(--ed-theme-button-danger-color-border-disabled, var(--ed-theme-button-color-border-disabled));color:var(--ed-theme-button-danger-color-content-disabled, var(--ed-theme-button-color-content-disabled))}.ed-c-button--link{font-family:var(--ed-theme-typography-body-default-font-family);font-weight:var(--ed-theme-typography-body-default-font-weight);font-size:var(--ed-theme-typography-body-default-font-size);line-height:var(--ed-theme-typography-body-default-line-height);letter-spacing:var(--ed-theme-typography-body-default-letter-spacing);text-transform:var(--ed-theme-typography-body-default-text-transform);background-color:transparent;border:none;color:var(--ed-theme-link-color-content-default);padding:0}.ed-c-button--link:hover,.ed-c-button--link:focus{background-color:transparent;border:none;color:var(--ed-theme-link-color-content-hover);text-decoration:underline}.ed-c-button--link:active{background-color:transparent;border:none;color:var(--ed-theme-link-color-content-active)}.ed-c-button--link:visited{color:var(--ed-theme-link-color-content-visited)}.ed-c-button--link:disabled{background-color:transparent;border:none;color:var(--ed-theme-color-content-disabled)}.ed-c-button--link:disabled:hover,.ed-c-button--link:disabled:focus,.ed-c-button--link:disabled:active{background-color:transparent;border:none;color:var(--ed-theme-color-content-disabled)}.ed-c-button--link.ed-c-button--sm{font-family:var(--ed-theme-typography-body-sm-font-family);font-weight:var(--ed-theme-typography-body-sm-font-weight);font-size:var(--ed-theme-typography-body-sm-font-size);line-height:var(--ed-theme-typography-body-sm-line-height);letter-spacing:var(--ed-theme-typography-body-sm-letter-spacing);text-transform:var(--ed-theme-typography-body-sm-text-transform)}.ed-c-button--link.ed-c-button--lg{font-family:var(--ed-theme-typography-body-lg-font-family);font-weight:var(--ed-theme-typography-body-lg-font-weight);font-size:var(--ed-theme-typography-body-lg-font-size);line-height:var(--ed-theme-typography-body-lg-line-height);letter-spacing:var(--ed-theme-typography-body-lg-letter-spacing);text-transform:var(--ed-theme-typography-body-lg-text-transform)}.ed-c-button--bare{padding:0;border:0;background:none;color:var(--ed-theme-color-content-default)}.ed-c-button--bare:hover,.ed-c-button--bare:focus{color:var(--ed-theme-button-bare-color-content-hover);background:none}.ed-c-button--bare:disabled{color:var(--ed-theme-button-bare-color-content-disabled);background:none;cursor:not-allowed}.ed-c-button--bare:disabled:hover,.ed-c-button--bare:disabled:focus{background:none;color:var(--ed-theme-button-bare-color-content-disabled)}.ed-c-button--knockout:focus-visible{outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-knockout);outline-offset:var(--ed-theme-focus-ring-offset, .25rem)}.ed-c-button--bare.ed-c-button--knockout{color:var(--ed-theme-color-content-knockout)}.ed-c-button--bare.ed-c-button--knockout:hover,.ed-c-button--bare.ed-c-button--knockout:focus{color:var(--ed-theme-color-content-knockout)}.ed-c-button--bare.ed-c-button--knockout:active{color:var(--ed-theme-color-content-knockout)}.ed-c-button--link.ed-c-button--knockout{color:var(--ed-theme-link-color-content-knockout)}.ed-c-button--link.ed-c-button--knockout:hover,.ed-c-button--link.ed-c-button--knockout:focus{color:var(--ed-theme-link-color-content-knockout-hover)}.ed-c-button--link.ed-c-button--knockout:active{color:var(--ed-theme-link-color-content-knockout-active)}.ed-c-button--link.ed-c-button--knockout:visited{color:var(--ed-theme-link-color-content-knockout-visited)}.ed-c-button--full-width{width:100%;justify-content:center;text-align:center}.ed-c-button--loading{cursor:not-allowed}a.ed-c-button--loading{background-color:var(--ed-theme-button-color-background-disabled);border-color:var(--ed-theme-button-color-border-disabled);color:var(--ed-theme-button-color-content-disabled)}a.ed-c-button--loading:hover,a.ed-c-button--loading:focus,a.ed-c-button--loading:active{background-color:var(--ed-theme-button-color-background-disabled);border-color:var(--ed-theme-button-color-border-disabled);color:var(--ed-theme-button-color-content-disabled)}.ed-c-button__spinner{display:inline-flex;align-self:center;animation:ed-c-button-spin .7s linear infinite}@media(prefers-reduced-motion:reduce){.ed-c-button__spinner{animation:none}}@keyframes ed-c-button-spin{to{transform:rotate(360deg)}}.ed-c-button--sm{font-family:var(--ed-theme-typography-button-sm-font-family);font-weight:var(--ed-theme-typography-button-sm-font-weight);font-size:var(--ed-theme-typography-button-sm-font-size);line-height:var(--ed-theme-typography-button-sm-line-height);letter-spacing:var(--ed-theme-typography-button-sm-letter-spacing);text-transform:var(--ed-theme-typography-button-sm-text-transform);--ed-button-padding-block: .5rem;--ed-button-padding-inline: 1rem;--ed-button-padding-inline-icon: .75rem}.ed-c-button--sm.ed-c-button--bare{padding:0}.ed-c-button--lg{font-family:var(--ed-theme-typography-button-lg-font-family);font-weight:var(--ed-theme-typography-button-lg-font-weight);font-size:var(--ed-theme-typography-button-lg-font-size);line-height:var(--ed-theme-typography-button-lg-line-height);letter-spacing:var(--ed-theme-typography-button-lg-letter-spacing);text-transform:var(--ed-theme-typography-button-lg-text-transform);--ed-button-padding-block: 1rem;--ed-button-padding-inline: 2.25rem;--ed-button-padding-inline-icon: 1rem}.ed-c-button--lg.ed-c-button--bare{padding:0}ed-icon{--ed-icon-height: 1em;--ed-icon-width: 1em;transition:all var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease);transform:var(--ed-button-icon-transform, none)}.ed-c-button:not(.ed-c-button--bare):not(.ed-c-button--link):has(>ed-icon:first-child){padding-inline-start:var(--ed-button-padding-inline-icon)}.ed-c-button:not(.ed-c-button--bare):not(.ed-c-button--link):has(>ed-icon:last-child){padding-inline-end:var(--ed-button-padding-inline-icon)}.ed-c-button:not(.ed-c-button--bare):not(.ed-c-button--link):has(>.ed-c-button__text.ed-u-is-vishidden){padding-inline:var(--ed-button-padding-inline-icon)}';
5
+ var v = Object.defineProperty, o = (l, e, d, i) => {
6
+ for (var a = void 0, b = l.length - 1, u; b >= 0; b--)
7
+ (u = l[b]) && (a = u(e, d, a) || a);
8
+ return a && v(e, d, a), a;
9
+ };
10
+ class t extends h {
11
+ constructor() {
12
+ super(...arguments), this.iconPosition = void 0, this.fullWidth = !1, this.round = !1, this.isLoading = !1, this.type = "button";
13
+ }
14
+ static {
15
+ this.formAssociated = !0;
16
+ }
17
+ static get styles() {
18
+ return m(g);
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
+ }
32
+ clickHandler(e) {
33
+ if (this.isLoading) {
34
+ e.preventDefault();
35
+ return;
36
+ }
37
+ this.type === "submit" ? this.formSubmit() : this.type === "reset" && this.formReset();
38
+ }
39
+ formSubmit() {
40
+ const e = this.internals.form;
41
+ e && (typeof e.requestSubmit == "function" ? e.requestSubmit() : e.submit());
42
+ }
43
+ formReset() {
44
+ const e = this.internals.form;
45
+ e && e.reset();
46
+ }
47
+ getIconElement() {
48
+ return this.iconName ? c`<ed-icon styleModifier="ed-c-button__icon" aria-hidden="true" name="${this.iconName}"></ed-icon>` : n;
49
+ }
50
+ getSpinnerElement() {
51
+ return this.isLoading ? c`<ed-icon class="ed-c-button__spinner" aria-hidden="true" name="spinner"></ed-icon>` : n;
52
+ }
53
+ createButton(e) {
54
+ const d = this.getIconElement(), i = this.getSpinnerElement();
55
+ return c`
56
+ <button type="${this.type}" class="${e}" ?disabled=${this.disabled || this.isLoading}
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}>
60
+ ${this.isLoading ? i : this.iconPosition === "before" ? d : n}
61
+ <span class="${this.hideText ? "ed-u-is-vishidden ed-c-button__text" : "ed-c-button__text"}"><slot>${this.text}</slot></span>
62
+ ${!this.isLoading && this.iconPosition === "after" ? d : n}
63
+ </button>
64
+ `;
65
+ }
66
+ createAnchorButton(e) {
67
+ const d = this.getIconElement(), i = this.getSpinnerElement();
68
+ return c`
69
+ <a href="${s(this.href)}" class="${e}" target=${this.target} rel=${s(this.rel)}
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}>
73
+ ${this.isLoading ? i : this.iconPosition === "before" ? d : n}
74
+ <span class="${this.hideText ? "ed-u-is-vishidden ed-c-button__text" : "ed-c-button__text"}"><slot>${this.text}</slot></span>
75
+ ${!this.isLoading && this.iconPosition === "after" ? d : n}
76
+ </a>
77
+ `;
78
+ }
79
+ render() {
80
+ const e = this.componentClassNames("ed-c-button", {
81
+ "ed-c-button--primary": this.variant === "primary",
82
+ "ed-c-button--secondary": this.variant === "secondary",
83
+ "ed-c-button--danger": this.variant === "danger",
84
+ "ed-c-button--bare": this.variant === "bare",
85
+ "ed-c-button--link": this.variant === "link",
86
+ "ed-c-button--knockout": this.knockout === !0 || this.inverted === !0,
87
+ "ed-c-button--loading": this.isLoading === !0,
88
+ "ed-c-button--full-width": this.fullWidth === !0,
89
+ "ed-c-button--sm": this.size === "sm",
90
+ "ed-c-button--lg": this.size === "lg"
91
+ });
92
+ return this.href ? this.createAnchorButton(e) : this.createButton(e);
93
+ }
94
+ }
95
+ o([
96
+ r()
97
+ ], t.prototype, "text");
98
+ o([
99
+ r()
100
+ ], t.prototype, "variant");
101
+ o([
102
+ r({ type: Boolean })
103
+ ], t.prototype, "disabled");
104
+ o([
105
+ r()
106
+ ], t.prototype, "target");
107
+ o([
108
+ r()
109
+ ], t.prototype, "rel");
110
+ o([
111
+ r({ type: Boolean })
112
+ ], t.prototype, "knockout");
113
+ o([
114
+ r({ type: Boolean })
115
+ ], t.prototype, "inverted");
116
+ o([
117
+ r()
118
+ ], t.prototype, "href");
119
+ o([
120
+ r()
121
+ ], t.prototype, "iconName");
122
+ o([
123
+ r()
124
+ ], t.prototype, "iconPosition");
125
+ o([
126
+ r()
127
+ ], t.prototype, "size");
128
+ o([
129
+ r({ type: Boolean })
130
+ ], t.prototype, "hideText");
131
+ o([
132
+ r({ type: Boolean })
133
+ ], t.prototype, "fullWidth");
134
+ o([
135
+ r({ type: Boolean })
136
+ ], t.prototype, "round");
137
+ o([
138
+ r({ type: Boolean })
139
+ ], t.prototype, "isLoading");
140
+ o([
141
+ r({ type: String })
142
+ ], t.prototype, "type");
143
+ o([
144
+ r({ attribute: "aria-expanded" })
145
+ ], t.prototype, "expanded");
146
+ o([
147
+ r({ attribute: "aria-pressed" })
148
+ ], t.prototype, "pressed");
149
+ o([
150
+ r({ attribute: "aria-haspopup" })
151
+ ], t.prototype, "hasPopup");
152
+ o([
153
+ p("button")
154
+ ], t.prototype, "field");
155
+ customElements.get("ed-button") === void 0 && customElements.define("ed-button", t);
@@ -1,6 +1,6 @@
1
1
  import { r as i, b as l, n } from "./lit.B6pFiYzB.js";
2
2
  import { E as m } from "./EdElement.BcrGsPCr.js";
3
- 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-c-card{display:flex;flex-direction:column;height:100%;width:100%;border-width:var(--ed-theme-border-width-sm);border-style:solid;border-color:var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-md);box-shadow:var(--ed-theme-box-shadow-md);color:var(--ed-theme-color-content-on-surface);background:var(--ed-theme-color-background-surface)}.ed-c-card--bare{border:0;padding:0;background:none;color:var(--ed-theme-color-content-default);box-shadow:none}.ed-c-card--align-center{text-align:center;align-items:center;justify-content:center}::slotted(img){width:100%}.ed-c-card__header{display:block;flex:none}.ed-c-card__body{display:flex;flex-direction:column;gap:var(--ed-card-body-gap, var(--ed-theme-spacing-flow));padding:1rem;flex:1 0 auto}.ed-c-card--bare .ed-c-card__body{padding:0}.ed-c-card__footer{display:block;flex:none}.ed-c-card__footer ::slotted(*){display:inline-block;margin:1rem!important}.ed-c-card--bare .ed-c-card__footer ::slotted(*){margin:0!important}';
3
+ 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;height:100%}.ed-c-card{display:flex;flex-direction:column;height:100%;width:100%;border-width:var(--ed-theme-border-width-sm);border-style:solid;border-color:var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-md);box-shadow:var(--ed-theme-box-shadow-md);color:var(--ed-theme-color-content-on-surface);background:var(--ed-theme-color-background-surface)}.ed-c-card--bare{border:0;padding:0;background:none;color:var(--ed-theme-color-content-default);box-shadow:none}.ed-c-card--align-center{text-align:center;align-items:center;justify-content:center}::slotted(img){width:100%}.ed-c-card__header{display:block;flex:none}.ed-c-card__body{display:flex;flex-direction:column;gap:var(--ed-card-body-gap, var(--ed-theme-spacing-flow));padding:1rem;flex:1 0 auto}.ed-c-card--bare .ed-c-card__body{padding:0}.ed-c-card__footer{display:block;flex:none}.ed-c-card__footer ::slotted(*){display:inline-block;margin:1rem!important}.ed-c-card--bare .ed-c-card__footer ::slotted(*){margin:0!important}';
4
4
  var h = Object.defineProperty, s = (d, r, t, f) => {
5
5
  for (var e = void 0, o = d.length - 1, c; o >= 0; o--)
6
6
  (c = d[o]) && (e = c(r, t, e) || e);
@@ -0,0 +1,107 @@
1
+ import { r as p, b as a, n as l } from "./lit.B6pFiYzB.js";
2
+ import { E as y } from "./EdElement.BcrGsPCr.js";
3
+ const m = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}:host([visuallyhidden]){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}.ed-c-heading--visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border: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-focus-ring-offset, .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)}', s = '@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-focus-ring-offset, .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 f = Object.defineProperty, r = (n, e, i, o) => {
5
+ for (var t = void 0, d = n.length - 1, g; d >= 0; d--)
6
+ (g = n[d]) && (t = g(e, i, t) || t);
7
+ return t && f(e, i, t), t;
8
+ };
9
+ class h extends y {
10
+ constructor() {
11
+ super(...arguments), this.tagName = "h2";
12
+ }
13
+ static get styles() {
14
+ return p(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--visually-hidden": this.visuallyHidden === !0,
28
+ "ed-c-heading--display-xl": this.variant === "display-xl",
29
+ "ed-c-heading--display-lg": this.variant === "display-lg",
30
+ "ed-c-heading--display-default": this.variant === "display-default",
31
+ "ed-c-heading--headline-lg": this.variant ? this.variant === "headline-lg" : e === "h1",
32
+ "ed-c-heading--headline-default": this.variant ? this.variant === "headline-default" : e === "h2",
33
+ "ed-c-heading--headline-sm": this.variant ? this.variant === "headline-sm" : e === "h3",
34
+ "ed-c-heading--title-lg": this.variant ? this.variant === "title-lg" : e === "h4",
35
+ "ed-c-heading--title-default": this.variant ? this.variant === "title-default" : e === "h5",
36
+ "ed-c-heading--title-sm": this.variant ? this.variant === "title-sm" : e === "h6",
37
+ "ed-c-heading--label-lg": this.variant === "label-lg",
38
+ "ed-c-heading--label-default": this.variant === "label-default",
39
+ "ed-c-heading--label-sm": this.variant === "label-sm",
40
+ "ed-c-heading--body-lg": this.variant === "body-lg",
41
+ "ed-c-heading--body-default": this.variant === "body-default",
42
+ "ed-c-heading--body-sm": this.variant === "body-sm",
43
+ "ed-c-heading--meta-default": this.variant === "meta-default",
44
+ "ed-c-heading--meta-sm": this.variant === "meta-sm",
45
+ "ed-c-heading--wrap-balance": this.wrap === "balance",
46
+ "ed-c-heading--wrap-pretty": this.wrap === "pretty",
47
+ "ed-c-heading--wrap-normal": this.wrap === "normal"
48
+ };
49
+ }
50
+ /**
51
+ * Enhance mode (#1484): style the author's real heading in place instead of
52
+ * rendering one into a shadow root.
53
+ *
54
+ * Authored form:
55
+ * ```html
56
+ * <ed-heading enhance variant="display-lg">
57
+ * <h1 class="p-name">How I build design systems</h1>
58
+ * </ed-heading>
59
+ * ```
60
+ *
61
+ * The point is that the `<h1>` is in the document before this component (or
62
+ * any JS) runs: it is in the accessibility tree and the heading outline with
63
+ * scripting off, and microformat and SEO parsers can read it — none of which
64
+ * is true of a heading rendered into a shadow root.
65
+ *
66
+ * `tagName` is inert here. The author's own element decides the semantic
67
+ * level, which is the entire point of the mode; this method reads that level
68
+ * to pick the default typography preset when `variant` is unset.
69
+ */
70
+ enhanceLightDom() {
71
+ this.injectGlobalStyles("ed-heading-styles", s);
72
+ const e = this.querySelector(":scope > h1, :scope > h2, :scope > h3, :scope > h4, :scope > h5, :scope > h6");
73
+ e && (e.classList.add("ed-c-heading"), this.styleModifier && e.classList.add(this.styleModifier), Object.entries(this.headingModifiers(e.localName)).forEach(([i, o]) => {
74
+ e.classList.toggle(i, o);
75
+ }));
76
+ }
77
+ render() {
78
+ const e = this.componentClassNames("ed-c-heading", this.headingModifiers(this.tagName));
79
+ switch (this.tagName) {
80
+ case "h1":
81
+ return a` <h1 class="${e}"><slot></slot></h1> `;
82
+ case "h2":
83
+ return a` <h2 class="${e}"><slot></slot></h2> `;
84
+ case "h3":
85
+ return a` <h3 class="${e}"><slot></slot></h3> `;
86
+ case "h4":
87
+ return a` <h4 class="${e}"><slot></slot></h4> `;
88
+ case "h5":
89
+ return a` <h5 class="${e}"><slot></slot></h5> `;
90
+ case "h6":
91
+ return a` <h6 class="${e}"><slot></slot></h6> `;
92
+ }
93
+ }
94
+ }
95
+ r([
96
+ l()
97
+ ], h.prototype, "variant");
98
+ r([
99
+ l()
100
+ ], h.prototype, "tagName");
101
+ r([
102
+ l()
103
+ ], h.prototype, "wrap");
104
+ r([
105
+ l({ type: Boolean, reflect: !0 })
106
+ ], h.prototype, "visuallyHidden");
107
+ customElements.get("ed-heading") === void 0 && customElements.define("ed-heading", h);
@@ -1,12 +1,12 @@
1
1
  import { E as y } from "./EdFormElement.D3Jd1jHD.js";
2
- import { r as m, b as n, n as r, o as p, e as b, d as v } from "./lit.B6pFiYzB.js";
3
- import { n as u } from "./index.browser.D527xXcp.js";
2
+ import { r as m, b as n, n as r, o as u, e as b, d as v } from "./lit.B6pFiYzB.js";
3
+ import { n as p } from "./index.browser.D527xXcp.js";
4
4
  import { E as g } from "./EdElement.BcrGsPCr.js";
5
5
  import "./icon.3TieVSgp.js";
6
6
  const _ = '@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-field-note{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);display:flex;align-items:center;color:var(--ed-theme-color-content-subtle);margin-block-start:var(--ed-field-note-gap, .25rem)}.ed-c-field-note.ed-is-error{color:var(--ed-theme-color-content-utility-error)}.ed-c-field-note.ed-is-success{color:var(--ed-theme-color-content-utility-success)}.ed-c-field-note--knockout{color:var(--ed-theme-color-content-knockout)}ed-icon{margin-inline-end:.25rem}';
7
- var k = Object.defineProperty, f = (l, e, o, s) => {
8
- for (var t = void 0, a = l.length - 1, h; a >= 0; a--)
9
- (h = l[a]) && (t = h(e, o, t) || t);
7
+ var k = Object.defineProperty, f = (d, e, o, s) => {
8
+ for (var t = void 0, a = d.length - 1, h; a >= 0; a--)
9
+ (h = d[a]) && (t = h(e, o, t) || t);
10
10
  return t && k(e, o, t), t;
11
11
  };
12
12
  class c extends g {
@@ -44,13 +44,13 @@ f([
44
44
  ], c.prototype, "inverted");
45
45
  customElements.get("ed-field-note") === void 0 && customElements.define("ed-field-note", c);
46
46
  const $ = '@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-select-field__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;font-size:var(--ed-field-label-font-size, var(--ed-theme-typography-label-default-font-size));margin-block-end:var(--ed-field-label-gap, .25rem)}.ed-c-select-field--knockout .ed-c-select-field__label{color:var(--ed-theme-color-content-knockout)}.ed-c-select-field.ed-is-error .ed-c-select-field__label{color:var(--ed-theme-color-content-utility-error)}.ed-c-select-field.ed-is-success .ed-c-select-field__label{color:var(--ed-theme-color-content-utility-success)}.ed-c-select-field__body{position:relative}.ed-c-select-field__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:var(--ed-field-padding-block, .8125rem) var(--ed-field-padding-inline, .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);font-size:var(--ed-field-font-size, var(--ed-theme-typography-body-default-font-size));line-height:var(--ed-field-line-height, var(--ed-theme-typography-body-default-line-height));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-select-field__input:hover{border-color:var(--ed-theme-color-border-brand);background-color:var(--ed-theme-form-color-background-hover)}.ed-c-select-field__input:focus:not(:disabled){border-color:var(--ed-theme-form-color-border-focus)}.ed-c-select-field__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-select-field__input:not(:placeholder-shown):focus:not(:disabled){background-color:var(--ed-theme-color-background-utility-error)}.ed-is-success .ed-c-select-field__input:not(:placeholder-shown):focus:not(:disabled){background-color:var(--ed-theme-color-background-utility-success)}.ed-c-select-field__input:active:not(:disabled){border-color:var(--ed-theme-form-color-border-default)}.ed-c-select-field__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-select-field__input:disabled~.ed-c-text-field__label,.ed-c-select-field__input:disabled:hover~.ed-c-text-field__label,.ed-c-select-field__input:disabled::placeholder{color:var(--ed-theme-color-content-disabled)}.ed-c-select-field__input:focus-visible{outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-default);outline-offset:var(--ed-theme-focus-ring-offset, .25rem)}.ed-c-select-field__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-select-field__input::placeholder{color:var(--ed-theme-color-content-utility-error)}.ed-is-error .ed-c-select-field__input:hover::placeholder{color:var(--ed-theme-color-content-utility-error)}.ed-is-error .ed-c-select-field__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-select-field__input:hover,.ed-is-error .ed-c-select-field__input:focus{background-color:var(--ed-theme-color-background-utility-error)}.ed-is-error .ed-c-select-field__input:not(:focus){color:var(--ed-theme-color-content-default)}.ed-is-success .ed-c-select-field__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-select-field__input:hover,.ed-is-success .ed-c-select-field__input:focus{background-color:var(--ed-theme-color-background-utility-success)}.ed-c-select-field__input{padding-inline-end:var(--ed-select-field-chevron-gutter, 2rem)}.ed-c-select-field--knockout .ed-c-select-field__input{border-color:var(--ed-theme-color-border-subtle)}select::-ms-expand{display:none}ed-icon{position:absolute;inset-block-start:50%;transform:translateY(-50%);inset-inline-end:var(--ed-select-field-chevron-inset, .75rem);pointer-events:none;--ed-icon-fill: var(--ed-theme-color-content-brand-knockout);--ed-icon-height: .75rem;--ed-icon-width: .75rem}.ed-c-select-field--sm{--ed-field-padding-block: .375rem;--ed-field-padding-inline: .375rem;--ed-field-font-size: var(--ed-theme-typography-body-sm-font-size);--ed-field-line-height: var(--ed-theme-typography-body-sm-line-height);--ed-field-label-font-size: var(--ed-theme-typography-label-sm-font-size, var(--ed-theme-typography-body-sm-font-size));--ed-field-label-gap: .125rem;--ed-field-note-gap: .125rem;--ed-control-box-size: 1.125rem;--ed-select-field-chevron-gutter: 1.5rem;--ed-select-field-chevron-inset: .375rem}.ed-c-select-field--lg{--ed-field-padding-block: 1.125rem;--ed-field-padding-inline: .75rem;--ed-field-font-size: var(--ed-theme-typography-body-lg-font-size, var(--ed-theme-typography-body-default-font-size));--ed-field-line-height: var(--ed-theme-typography-body-lg-line-height, var(--ed-theme-typography-body-default-line-height));--ed-field-label-gap: .375rem;--ed-field-note-gap: .375rem;--ed-control-box-size: 2rem;--ed-select-field-chevron-gutter: 2.25rem;--ed-select-field-chevron-inset: .75rem}';
47
- var z = Object.defineProperty, i = (l, e, o, s) => {
48
- for (var t = void 0, a = l.length - 1, h; a >= 0; a--)
49
- (h = l[a]) && (t = h(e, o, t) || t);
47
+ var z = Object.defineProperty, i = (d, e, o, s) => {
48
+ for (var t = void 0, a = d.length - 1, h; a >= 0; a--)
49
+ (h = d[a]) && (t = h(e, o, t) || t);
50
50
  return t && z(e, o, t), t;
51
51
  };
52
- const x = (l) => typeof l == "object" && l !== null && "optGroupLabel" in l, w = (l) => typeof l == "string" ? { label: l, value: l } : l;
53
- class d extends y {
52
+ const x = (d) => typeof d == "object" && d !== null && "optGroupLabel" in d, w = (d) => typeof d == "string" ? { label: d, value: d } : d;
53
+ class l extends y {
54
54
  constructor() {
55
55
  super(...arguments), this.type = "select", this.label = "Label", this.required = !1, this.items = [];
56
56
  }
@@ -87,12 +87,27 @@ class d extends y {
87
87
  e && (this.value === void 0 || this.value === null || this.value === "" ? e.value !== "" && this.internalValue !== e.value && (this.internalValue = e.value, this.internals.setFormValue(e.value)) : e.value !== this.value && (e.value = this.value), this.syncValidity());
88
88
  }
89
89
  updated(e) {
90
- super.updated(e), this.updateField();
90
+ super.updated(e), this.updateField(), this.defaultValue === void 0 && this.selectOptions.length > 0 && (this.seedDefaultValue(), this.setFormData());
91
91
  }
92
- firstUpdated() {
93
- this.updateField(), this.selectOptions.forEach((e) => {
92
+ /**
93
+ * Adopt the control's own selection as the reset target (#1934).
94
+ *
95
+ * Extracted from `firstUpdated` because `firstUpdated` runs exactly once, and
96
+ * a field created empty and filled by a later patch has no options at that
97
+ * moment — so `defaultValue` stayed `undefined` forever and
98
+ * `formResetCallback` (`this.value = this.defaultValue`) silently did
99
+ * nothing. That is precisely the streaming sequence this component now has to
100
+ * survive, so the seeding has to be able to happen later too.
101
+ *
102
+ * Idempotent: once seeded it never moves, which is what a reset target means.
103
+ */
104
+ seedDefaultValue() {
105
+ this.defaultValue !== void 0 || this.selectOptions.length === 0 || (this.selectOptions.forEach((e) => {
94
106
  e.selected === !0 && (this.selectedItem = e.value);
95
- }), this.selectOptions.length > 0 && (this.defaultValue = this.selectedItem ? this.selectedItem : this.selectOptions[0].value), this.fieldId = this.fieldId || u(), this.fieldNote && (this.ariaDescribedBy = this.ariaDescribedBy || u()), this.setFormData();
107
+ }), this.defaultValue = this.selectedItem ? this.selectedItem : this.selectOptions[0].value);
108
+ }
109
+ firstUpdated() {
110
+ this.updateField(), this.seedDefaultValue(), this.fieldId = this.fieldId || p(), this.fieldNote && (this.ariaDescribedBy = this.ariaDescribedBy || p()), this.setFormData();
96
111
  }
97
112
  /**
98
113
  * Read native <option>/<optgroup> children from the light DOM and convert
@@ -125,9 +140,22 @@ class d extends y {
125
140
  /**
126
141
  * Set form data
127
142
  * 1) Set the element internals to the selected item value if it exists, otherwise the default selected item is the first one
143
+ * 2) With no options there is nothing to submit, and neither of those exists
144
+ *
145
+ * On (2): a select with no `<option>`s is legal HTML — a native one reports
146
+ * `value === ''` — and on a generative surface it is a routine intermediate
147
+ * state, since the patch that creates the field necessarily lands before the
148
+ * patches that fill it (#1934). Nothing assigns a fallback in that case:
149
+ * `firstUpdated` only sets `defaultValue` when `selectOptions.length > 0`,
150
+ * and this class overrides `firstUpdated` without calling `super`, so the
151
+ * base's own `defaultValue` seeding never runs either. The unguarded
152
+ * `.toString()` therefore threw on `undefined` — and because `setFormData`
153
+ * is called FROM `firstUpdated`, that rejected `updateComplete` and the
154
+ * component never completed its first render at all.
128
155
  */
129
156
  setFormData() {
130
- this.selectedItem ? this.internals.setFormValue(this.selectedItem) : this.internals.setFormValue(this.defaultValue.toString()), this.syncValidity();
157
+ const e = this.selectedItem || this.defaultValue;
158
+ this.internals.setFormValue(e == null ? null : e.toString()), this.syncValidity();
131
159
  }
132
160
  render() {
133
161
  const e = this.componentClassNames("ed-c-select-field", {
@@ -144,10 +172,10 @@ class d extends y {
144
172
  <select
145
173
  class="ed-c-select-field__input"
146
174
  id="${this.fieldId}"
147
- name="${p(this.name)}"
175
+ name="${u(this.name)}"
148
176
  ?required="${this.required}"
149
177
  ?disabled="${this.disabled}"
150
- aria-describedby="${p(this.ariaDescribedBy)}"
178
+ aria-describedby="${u(this.ariaDescribedBy)}"
151
179
  @change="${this.handleChange}"
152
180
  >
153
181
  ${this.items.map((o) => {
@@ -164,8 +192,8 @@ class d extends y {
164
192
  <ed-icon name="keyboard-arrow-down" styleModifier="ed-c-select-field__icon"></ed-icon>
165
193
  </div>
166
194
  ${this.fieldNote && n`<ed-field-note
167
- id=${p(this.ariaDescribedBy)}
168
- iconName=${p(this.iconName)}
195
+ id=${u(this.ariaDescribedBy)}
196
+ iconName=${u(this.iconName)}
169
197
  ?isSuccess=${this.isSuccess}
170
198
  ?isError=${this.isError}
171
199
  ?knockout=${this.knockout === !0 || this.inverted === !0}
@@ -177,50 +205,50 @@ class d extends y {
177
205
  }
178
206
  i([
179
207
  r()
180
- ], d.prototype, "fieldId");
208
+ ], l.prototype, "fieldId");
181
209
  i([
182
210
  r()
183
- ], d.prototype, "label");
211
+ ], l.prototype, "label");
184
212
  i([
185
213
  r()
186
- ], d.prototype, "name");
214
+ ], l.prototype, "name");
187
215
  i([
188
216
  r()
189
- ], d.prototype, "fieldNote");
217
+ ], l.prototype, "fieldNote");
190
218
  i([
191
219
  r()
192
- ], d.prototype, "ariaDescribedBy");
220
+ ], l.prototype, "ariaDescribedBy");
193
221
  i([
194
222
  r({ type: Boolean })
195
- ], d.prototype, "required");
223
+ ], l.prototype, "required");
196
224
  i([
197
225
  r({ type: Boolean })
198
- ], d.prototype, "disabled");
226
+ ], l.prototype, "disabled");
199
227
  i([
200
228
  r({ type: Array })
201
- ], d.prototype, "items");
229
+ ], l.prototype, "items");
202
230
  i([
203
231
  r({ type: Boolean })
204
- ], d.prototype, "knockout");
232
+ ], l.prototype, "knockout");
205
233
  i([
206
234
  r({ type: Boolean })
207
- ], d.prototype, "inverted");
235
+ ], l.prototype, "inverted");
208
236
  i([
209
237
  r({ type: Boolean })
210
- ], d.prototype, "isError");
238
+ ], l.prototype, "isError");
211
239
  i([
212
240
  r({ type: Boolean })
213
- ], d.prototype, "isSuccess");
241
+ ], l.prototype, "isSuccess");
214
242
  i([
215
243
  r()
216
- ], d.prototype, "iconName");
244
+ ], l.prototype, "iconName");
217
245
  i([
218
246
  r()
219
- ], d.prototype, "size");
247
+ ], l.prototype, "size");
220
248
  i([
221
249
  b("select")
222
- ], d.prototype, "field");
250
+ ], l.prototype, "field");
223
251
  i([
224
252
  v("option")
225
- ], d.prototype, "selectOptions");
226
- customElements.get("ed-select-field") === void 0 && customElements.define("ed-select-field", d);
253
+ ], l.prototype, "selectOptions");
254
+ customElements.get("ed-select-field") === void 0 && customElements.define("ed-select-field", l);