@brad-frost-web/eddie-recipes 0.69.0 → 0.71.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 (140) hide show
  1. package/cdn/chunks/{EdElement.BcrGsPCr.js → EdElement.Vr8clRZw.js} +17 -18
  2. package/cdn/chunks/{EdFormElement.D3Jd1jHD.js → EdFormElement.BHTo4Ifh.js} +10 -7
  3. package/cdn/chunks/{accordion-panel.CfE_GzSz.js → accordion-panel.BrflJCE5.js} +152 -131
  4. package/cdn/chunks/{band.CRKqX5PC.js → band.D49jgXOb.js} +2 -2
  5. package/cdn/chunks/button.CRZcpcb5.js +169 -0
  6. package/cdn/chunks/{card.DF6tFZvU.js → card.CqBw3i54.js} +2 -2
  7. package/cdn/chunks/{checkbox-field.Br1ruais.js → checkbox-field.BEhsaOD9.js} +3 -3
  8. package/cdn/chunks/{field-note.BkkZiSM5.js → field-note.CK3ikewY.js} +3 -3
  9. package/cdn/chunks/{header.CZ0j7uWZ.js → header.BI8m1sij.js} +3 -3
  10. package/cdn/chunks/{heading.CFkMJ_PO.js → heading.BaZm6xWi.js} +120 -55
  11. package/cdn/chunks/icon.CkGhv9DG.js +281 -0
  12. package/cdn/chunks/{layout-container.CdBxNczq.js → layout-container.Dcji3D4O.js} +2 -2
  13. package/cdn/chunks/lit.BJDcdeQB.js +629 -0
  14. package/cdn/chunks/{select-field.BdrdY_fo.js → select-field.1Ec3iQwv.js} +5 -5
  15. package/cdn/chunks/{single-field-form.jTDbh2X1.js → single-field-form.UvyFUVzh.js} +5 -5
  16. package/cdn/chunks/solve.DLo1Kxyk.js +576 -0
  17. package/cdn/chunks/text-field.nmPQhapu.js +141 -0
  18. package/cdn/chunks/text-link.B3X537x4.js +51 -0
  19. package/cdn/chunks/text-passage.CQWKJMQh.js +128 -0
  20. package/cdn/chunks/{textarea-field.BwGs_FD2.js → textarea-field.CGBXVzeE.js} +54 -32
  21. package/cdn/chunks/{timeline-node.FdFfwve7.js → timeline-node.DS59s0th.js} +2 -2
  22. package/cdn/chunks/{toggle.Bja6MNel.js → toggle.1FPnP-zG.js} +9 -9
  23. package/cdn/chunks/uid.ChSzTghf.js +6 -0
  24. package/cdn/eddie-recipes-autoloader.js +26 -22
  25. package/cdn/recipes/common/ad/ad.js +2 -2
  26. package/cdn/recipes/common/article-card/article-card.js +4 -4
  27. package/cdn/recipes/common/audio-player/audio-player.js +2 -2
  28. package/cdn/recipes/common/avatar-block/avatar-block.js +9 -8
  29. package/cdn/recipes/common/bento/bento.js +3 -3
  30. package/cdn/recipes/common/bento-item/bento-item.js +2 -2
  31. package/cdn/recipes/common/example-form/example-form.js +123 -86
  32. package/cdn/recipes/common/icon-card/icon-card.js +4 -4
  33. package/cdn/recipes/common/newsletter-signup/newsletter-signup.js +3 -3
  34. package/cdn/recipes/common/page-banner/page-banner.js +23 -11
  35. package/cdn/recipes/common/project-card/project-card.js +48 -36
  36. package/cdn/recipes/common/promo-block/promo-block.js +13 -13
  37. package/cdn/recipes/common/search-form/search-form.js +3 -3
  38. package/cdn/recipes/common/site-footer/site-footer.js +3 -3
  39. package/cdn/recipes/common/site-header/site-header.js +59 -55
  40. package/cdn/recipes/common/speaking-card/speaking-card.js +4 -4
  41. package/cdn/recipes/common/stat-card/stat-card.js +6 -6
  42. package/cdn/recipes/common/theme-switcher/theme-switcher.js +3 -3
  43. package/cdn/recipes/common/timeline-node/TimelineNodeKind.js +4 -4
  44. package/cdn/recipes/common/timeline-node/timeline-node.js +4 -4
  45. package/cdn/recipes/common/timeline-node-art/timeline-node-art.js +1 -1
  46. package/cdn/recipes/common/timeline-node-blog/timeline-node-blog.js +1 -1
  47. package/cdn/recipes/common/timeline-node-book/timeline-node-book.js +1 -1
  48. package/cdn/recipes/common/timeline-node-client/timeline-node-client.js +1 -1
  49. package/cdn/recipes/common/timeline-node-concert/timeline-node-concert.js +1 -1
  50. package/cdn/recipes/common/timeline-node-course/timeline-node-course.js +1 -1
  51. package/cdn/recipes/common/timeline-node-link/timeline-node-link.js +1 -1
  52. package/cdn/recipes/common/timeline-node-location/timeline-node-location.js +1 -1
  53. package/cdn/recipes/common/timeline-node-milestone/timeline-node-milestone.js +1 -1
  54. package/cdn/recipes/common/timeline-node-newsletter/timeline-node-newsletter.js +1 -1
  55. package/cdn/recipes/common/timeline-node-note/timeline-node-note.js +1 -1
  56. package/cdn/recipes/common/timeline-node-playlist/timeline-node-playlist.js +1 -1
  57. package/cdn/recipes/common/timeline-node-podcast/timeline-node-podcast.js +1 -1
  58. package/cdn/recipes/common/timeline-node-song/timeline-node-song.js +1 -1
  59. package/cdn/recipes/common/timeline-node-speaking/timeline-node-speaking.js +1 -1
  60. package/cdn/recipes/common/timeline-node-video/timeline-node-video.js +1 -1
  61. package/cdn/recipes/common/todo-list/todo-list.js +3 -3
  62. package/cdn/recipes/common/transport-button/transport-button.js +3 -3
  63. package/cdn/recipes/common/vertical-site-header/vertical-site-header.js +36 -22
  64. package/cdn/recipes/common/video-card/video-card.js +167 -0
  65. package/cdn/recipes/common/video-embed/video-embed.js +19 -18
  66. package/cdn/recipes/common/visualzzz/visualzzz.js +315 -110
  67. package/cdn/recipes/common/wheel-of-life/wheel-of-life.js +14 -14
  68. package/cdn/recipes/eddie-slides/template-card/template-card.js +2 -2
  69. package/cdn/recipes/eddie-slides/thumbnail/thumbnail.js +11 -12
  70. package/cdn/recipes/tools/theme-customizer/derive.js +87 -594
  71. package/cdn/recipes/tools/theme-customizer/theme-customizer.js +805 -513
  72. package/cdn/recipes/tools/theme-customizer/token-sync.js +186 -0
  73. package/cdn/recipes/tools/viz-controls/viz-controls.js +8 -8
  74. package/cdn/recipes/we-are-here/chunky-checkbox/chunky-checkbox.js +13 -11
  75. package/cdn/recipes/we-are-here/wah-link-list/wah-link-list.js +28 -23
  76. package/cdn/recipes/we-are-here/wah-logo/wah-logo.js +25 -20
  77. package/cdn/recipes/we-are-here/wah-site-footer/wah-site-footer.js +3 -3
  78. package/cdn/recipes/we-are-here/wah-site-header/wah-site-header.js +4 -4
  79. package/package.json +1 -1
  80. package/recipes/common/article-card/article-card.d.ts +3 -2
  81. package/recipes/common/article-card/article-card.d.ts.map +1 -1
  82. package/recipes/common/bento/bento.js +1 -1
  83. package/recipes/common/example-form/example-form.js +1 -1
  84. package/recipes/common/page-banner/page-banner.d.ts +63 -9
  85. package/recipes/common/page-banner/page-banner.d.ts.map +1 -1
  86. package/recipes/common/page-banner/page-banner.js +28 -16
  87. package/recipes/common/project-card/project-card.d.ts +21 -4
  88. package/recipes/common/project-card/project-card.d.ts.map +1 -1
  89. package/recipes/common/project-card/project-card.js +59 -47
  90. package/recipes/common/promo-block/promo-block.d.ts +4 -2
  91. package/recipes/common/promo-block/promo-block.d.ts.map +1 -1
  92. package/recipes/common/promo-block/promo-block.js +10 -10
  93. package/recipes/common/site-header/site-header.d.ts +19 -2
  94. package/recipes/common/site-header/site-header.d.ts.map +1 -1
  95. package/recipes/common/site-header/site-header.js +40 -36
  96. package/recipes/common/timeline-node-video/timeline-node-video.d.ts +2 -0
  97. package/recipes/common/timeline-node-video/timeline-node-video.d.ts.map +1 -1
  98. package/recipes/common/vertical-site-header/vertical-site-header.d.ts +14 -2
  99. package/recipes/common/vertical-site-header/vertical-site-header.d.ts.map +1 -1
  100. package/recipes/common/vertical-site-header/vertical-site-header.js +29 -15
  101. package/recipes/common/video-card/video-card.d.ts +159 -0
  102. package/recipes/common/video-card/video-card.d.ts.map +1 -0
  103. package/recipes/common/video-card/video-card.js +105 -0
  104. package/recipes/common/video-embed/video-embed.d.ts +33 -9
  105. package/recipes/common/video-embed/video-embed.d.ts.map +1 -1
  106. package/recipes/common/video-embed/video-embed.js +13 -12
  107. package/recipes/common/visualzzz/visualzzz.d.ts +62 -20
  108. package/recipes/common/visualzzz/visualzzz.d.ts.map +1 -1
  109. package/recipes/common/visualzzz/visualzzz.js +317 -112
  110. package/recipes/common/wheel-of-life/wheel-of-life.d.ts +13 -4
  111. package/recipes/common/wheel-of-life/wheel-of-life.d.ts.map +1 -1
  112. package/recipes/common/wheel-of-life/wheel-of-life.js +20 -20
  113. package/recipes/eddie-slides/thumbnail/thumbnail.d.ts +35 -5
  114. package/recipes/eddie-slides/thumbnail/thumbnail.d.ts.map +1 -1
  115. package/recipes/eddie-slides/thumbnail/thumbnail.js +6 -7
  116. package/recipes/tools/theme-customizer/google-fonts-catalog.d.ts +4 -3
  117. package/recipes/tools/theme-customizer/google-fonts-catalog.d.ts.map +1 -1
  118. package/recipes/tools/theme-customizer/theme-customizer.d.ts +197 -4
  119. package/recipes/tools/theme-customizer/theme-customizer.d.ts.map +1 -1
  120. package/recipes/tools/theme-customizer/theme-customizer.js +724 -471
  121. package/recipes/tools/theme-customizer/token-sync.d.ts +190 -0
  122. package/recipes/tools/theme-customizer/token-sync.d.ts.map +1 -0
  123. package/recipes/tools/theme-customizer/token-sync.js +189 -0
  124. package/recipes/tools/viz-controls/viz-controls.d.ts +3 -0
  125. package/recipes/tools/viz-controls/viz-controls.d.ts.map +1 -1
  126. package/recipes/we-are-here/chunky-checkbox/chunky-checkbox.d.ts +12 -6
  127. package/recipes/we-are-here/chunky-checkbox/chunky-checkbox.d.ts.map +1 -1
  128. package/recipes/we-are-here/chunky-checkbox/chunky-checkbox.js +14 -12
  129. package/recipes/we-are-here/wah-link-list/wah-link-list.d.ts +34 -6
  130. package/recipes/we-are-here/wah-link-list/wah-link-list.d.ts.map +1 -1
  131. package/recipes/we-are-here/wah-link-list/wah-link-list.js +31 -26
  132. package/recipes/we-are-here/wah-logo/wah-logo.d.ts +23 -3
  133. package/recipes/we-are-here/wah-logo/wah-logo.d.ts.map +1 -1
  134. package/recipes/we-are-here/wah-logo/wah-logo.js +27 -22
  135. package/cdn/chunks/button.BI7SkOwy.js +0 -155
  136. package/cdn/chunks/icon.CJxL6Fld.js +0 -271
  137. package/cdn/chunks/index.browser.D527xXcp.js +0 -4
  138. package/cdn/chunks/lit.B6pFiYzB.js +0 -589
  139. package/cdn/chunks/text-field.DmUr7732.js +0 -137
  140. package/cdn/chunks/text-passage.CCSC-HVp.js +0 -128
@@ -1,18 +1,17 @@
1
1
  import { c as d } from "./vendor.lY5z9hnC.js";
2
- import { i as p, b as m, n as l } from "./lit.B6pFiYzB.js";
3
- var h = Object.defineProperty, u = (c, t, e, o) => {
4
- for (var n = void 0, s = c.length - 1, r; s >= 0; s--)
5
- (r = c[s]) && (n = r(t, e, n) || n);
2
+ import { i as m, b as p, n as c } from "./lit.BJDcdeQB.js";
3
+ var h = Object.defineProperty, u = (l, t, e, o) => {
4
+ for (var n = void 0, r = l.length - 1, s; r >= 0; r--)
5
+ (s = l[r]) && (n = s(t, e, n) || n);
6
6
  return n && h(t, e, n), n;
7
7
  };
8
- const a = class i extends p {
8
+ const a = class i extends m {
9
9
  static get observedAttributes() {
10
10
  const t = super.observedAttributes ?? [], e = /* @__PURE__ */ new Map();
11
- for (const o of t) {
12
- const n = this.__attributeToPropertyMap?.get(o);
13
- if (typeof n != "string") continue;
14
- const s = n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
15
- s === o || t.includes(s) || e.set(s, o);
11
+ for (const [o, n] of this.elementProperties) {
12
+ if (typeof o != "string" || n.attribute === !1) continue;
13
+ const r = typeof n.attribute == "string" ? n.attribute : o.toLowerCase(), s = o.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
14
+ s === r || t.includes(s) || e.set(s, r);
16
15
  }
17
16
  return this.__kebabAliases = e, [...t, ...e.keys()];
18
17
  }
@@ -193,28 +192,28 @@ See the Default story, or eddie_get_component("${e}").canonicalUsage.`
193
192
  * Dispatch a custom event.
194
193
  */
195
194
  dispatch({ e: t, eventName: e, detailObj: o = {}, optionsObj: n = {} }) {
196
- const s = {
195
+ const r = {
197
196
  bubbles: !0,
198
197
  composed: !0,
199
198
  ...n,
200
199
  detail: { ...t && { originalEvent: t }, ...o }
201
- }, r = new CustomEvent(e, s);
202
- return this.dispatchEvent(r), r;
200
+ }, s = new CustomEvent(e, r);
201
+ return this.dispatchEvent(s), s;
203
202
  }
204
203
  /**
205
204
  * Example render, should not be used
206
205
  */
207
206
  render() {
208
- return m`<slot></slot>`;
207
+ return p`<slot></slot>`;
209
208
  }
210
209
  };
211
210
  u([
212
- l()
211
+ c()
213
212
  ], a.prototype, "styleModifier");
214
213
  u([
215
- l({ type: Boolean })
214
+ c({ type: Boolean })
216
215
  ], a.prototype, "enhance");
217
- let g = a;
216
+ let b = a;
218
217
  export {
219
- g as E
218
+ b as E
220
219
  };
@@ -1,14 +1,17 @@
1
- import { n as r } from "./lit.B6pFiYzB.js";
2
- import { E as n } from "./EdElement.BcrGsPCr.js";
3
- var d = Object.defineProperty, h = Object.getOwnPropertyDescriptor, o = (s, i, t, c) => {
4
- for (var e = h(i, t), a = s.length - 1, l; a >= 0; a--)
1
+ import { n } from "./lit.BJDcdeQB.js";
2
+ import { E as r } from "./EdElement.Vr8clRZw.js";
3
+ var d = Object.defineProperty, o = Object.getOwnPropertyDescriptor, h = (s, i, t, c) => {
4
+ for (var e = o(i, t), a = s.length - 1, l; a >= 0; a--)
5
5
  (l = s[a]) && (e = l(i, t, e) || e);
6
6
  return e && d(i, t, e), e;
7
7
  };
8
- class u extends n {
8
+ class u extends r {
9
9
  static {
10
10
  this.formAssociated = !0;
11
11
  }
12
+ static {
13
+ this.shadowRootOptions = { ...r.shadowRootOptions, delegatesFocus: !0 };
14
+ }
12
15
  get value() {
13
16
  return this.internalValue;
14
17
  }
@@ -122,8 +125,8 @@ class u extends n {
122
125
  super(), this.internals = this.attachInternals();
123
126
  }
124
127
  }
125
- o([
126
- r()
128
+ h([
129
+ n()
127
130
  ], u.prototype, "value");
128
131
  export {
129
132
  u as E
@@ -1,55 +1,55 @@
1
- import { E as v } from "./EdFormElement.D3Jd1jHD.js";
2
- import { r as g, o as l, b as h, n as t, e as k } from "./lit.B6pFiYzB.js";
3
- import { n as p } from "./index.browser.D527xXcp.js";
4
- import "./field-note.BkkZiSM5.js";
5
- import { E as y } from "./EdElement.BcrGsPCr.js";
6
- import "./icon.CJxL6Fld.js";
7
- const _ = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}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}';
8
- var $ = Object.defineProperty, a = (n, i, d, f) => {
9
- for (var e = void 0, r = n.length - 1, s; r >= 0; r--)
10
- (s = n[r]) && (e = s(i, d, e) || e);
11
- return e && $(i, d, e), e;
1
+ import { E as _ } from "./EdFormElement.BHTo4Ifh.js";
2
+ import { r as f, o as c, b as m, n as i, e as k, a as x } from "./lit.BJDcdeQB.js";
3
+ import { u as g } from "./uid.ChSzTghf.js";
4
+ import "./field-note.CK3ikewY.js";
5
+ import { E as y } from "./EdElement.Vr8clRZw.js";
6
+ import "./icon.CkGhv9DG.js";
7
+ const $ = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}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}';
8
+ var z = Object.defineProperty, n = (o, t, r, l) => {
9
+ for (var e = void 0, d = o.length - 1, s; d >= 0; d--)
10
+ (s = o[d]) && (e = s(t, r, e) || e);
11
+ return e && z(t, r, e), e;
12
12
  };
13
- class o extends v {
13
+ class a extends _ {
14
14
  constructor() {
15
15
  super(...arguments), this.type = "range", this.label = "Range", this.min = "0", this.max = "100";
16
16
  }
17
17
  static get styles() {
18
- return g(_);
18
+ return f($);
19
19
  }
20
20
  connectedCallback() {
21
- super.connectedCallback(), this.fieldId = this.fieldId || p(), this.fieldNote && (this.ariaDescribedBy = this.ariaDescribedBy || p());
21
+ super.connectedCallback(), this.fieldId = this.fieldId || g(), this.fieldNote && (this.ariaDescribedBy = this.ariaDescribedBy || g());
22
22
  }
23
- handleInput(i) {
24
- this.value = i.target.value, this.internals.setFormValue(this.value), this.syncValidity();
23
+ handleInput(t) {
24
+ this.value = t.target.value, this.internals.setFormValue(this.value), this.syncValidity();
25
25
  }
26
26
  render() {
27
- const i = this.componentClassNames("ed-c-range", {
27
+ const t = this.componentClassNames("ed-c-range", {
28
28
  "ed-c-range--sm": this.size === "sm",
29
29
  "ed-c-range--lg": this.size === "lg",
30
30
  "ed-c-range--knockout": this.knockout === !0 || this.inverted === !0,
31
31
  "ed-is-disabled": this.disabled === !0
32
32
  });
33
- return h`
34
- <div class="${i}">
33
+ return m`
34
+ <div class="${t}">
35
35
  <label class="ed-c-range__label" for="${this.fieldId}">${this.label}</label>
36
36
  <input
37
37
  class="ed-c-range__input"
38
38
  type="range"
39
39
  id="${this.fieldId}"
40
- name="${l(this.name)}"
41
- value="${l(this.value)}"
40
+ name="${c(this.name)}"
41
+ value="${c(this.value)}"
42
42
  min="${this.min}"
43
43
  max="${this.max}"
44
- step="${l(this.step)}"
44
+ step="${c(this.step)}"
45
45
  @input="${this.handleInput}"
46
46
  ?disabled="${this.disabled}"
47
- aria-describedby="${l(this.ariaDescribedBy)}"
47
+ aria-describedby="${c(this.ariaDescribedBy)}"
48
48
  />
49
- ${this.fieldNote && h`<ed-field-note
49
+ ${this.fieldNote && m`<ed-field-note
50
50
  ?knockout=${this.knockout === !0 || this.inverted === !0}
51
- id=${l(this.ariaDescribedBy)}
52
- iconName=${l(this.iconName)}
51
+ id=${c(this.ariaDescribedBy)}
52
+ iconName=${c(this.iconName)}
53
53
  >
54
54
  ${this.fieldNote}
55
55
  </ed-field-note>`}
@@ -57,103 +57,110 @@ class o extends v {
57
57
  `;
58
58
  }
59
59
  }
60
- a([
61
- t()
62
- ], o.prototype, "fieldId");
63
- a([
64
- t()
65
- ], o.prototype, "label");
66
- a([
67
- t()
68
- ], o.prototype, "name");
69
- a([
70
- t()
71
- ], o.prototype, "fieldNote");
72
- a([
73
- t()
74
- ], o.prototype, "ariaDescribedBy");
75
- a([
76
- t()
77
- ], o.prototype, "min");
78
- a([
79
- t()
80
- ], o.prototype, "max");
81
- a([
82
- t()
83
- ], o.prototype, "step");
84
- a([
85
- t({ type: Boolean })
86
- ], o.prototype, "disabled");
87
- a([
88
- t({ type: Boolean })
89
- ], o.prototype, "knockout");
90
- a([
91
- t({ type: Boolean })
92
- ], o.prototype, "inverted");
93
- a([
94
- t()
95
- ], o.prototype, "iconName");
96
- a([
97
- t()
98
- ], o.prototype, "size");
99
- a([
60
+ n([
61
+ i()
62
+ ], a.prototype, "fieldId");
63
+ n([
64
+ i()
65
+ ], a.prototype, "label");
66
+ n([
67
+ i()
68
+ ], a.prototype, "name");
69
+ n([
70
+ i()
71
+ ], a.prototype, "fieldNote");
72
+ n([
73
+ i()
74
+ ], a.prototype, "ariaDescribedBy");
75
+ n([
76
+ i()
77
+ ], a.prototype, "min");
78
+ n([
79
+ i()
80
+ ], a.prototype, "max");
81
+ n([
82
+ i()
83
+ ], a.prototype, "step");
84
+ n([
85
+ i({ type: Boolean })
86
+ ], a.prototype, "disabled");
87
+ n([
88
+ i({ type: Boolean })
89
+ ], a.prototype, "knockout");
90
+ n([
91
+ i({ type: Boolean })
92
+ ], a.prototype, "inverted");
93
+ n([
94
+ i()
95
+ ], a.prototype, "iconName");
96
+ n([
97
+ i()
98
+ ], a.prototype, "size");
99
+ n([
100
100
  k("input")
101
- ], o.prototype, "field");
102
- customElements.get("ed-range") === void 0 && customElements.define("ed-range", o);
103
- const x = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-accordion--knockout{color:var(--ed-theme-color-content-knockout);--ed-accordion-panel-button-hover-text-color: var(--ed-theme-color-content-subtle)}.ed-c-accordion--condensed{--ed-accordion-panel-padding-block: .5rem}';
104
- var z = Object.defineProperty, u = (n, i, d, f) => {
105
- for (var e = void 0, r = n.length - 1, s; r >= 0; r--)
106
- (s = n[r]) && (e = s(i, d, e) || e);
107
- return e && z(i, d, e), e;
101
+ ], a.prototype, "field");
102
+ customElements.get("ed-range") === void 0 && customElements.define("ed-range", a);
103
+ const w = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-accordion--knockout{color:var(--ed-theme-color-content-knockout);--ed-accordion-panel-button-hover-text-color: var(--ed-theme-color-content-subtle)}.ed-c-accordion--condensed{--ed-accordion-panel-padding-block: .5rem}';
104
+ var N = Object.defineProperty, v = (o, t, r, l) => {
105
+ for (var e = void 0, d = o.length - 1, s; d >= 0; d--)
106
+ (s = o[d]) && (e = s(t, r, e) || e);
107
+ return e && N(t, r, e), e;
108
108
  };
109
- class m extends y {
109
+ class u extends y {
110
110
  static get styles() {
111
- return g(x);
111
+ return f(w);
112
112
  }
113
113
  render() {
114
- const i = this.componentClassNames("ed-c-accordion", {
114
+ const t = this.componentClassNames("ed-c-accordion", {
115
115
  "ed-c-accordion--knockout": this.knockout === !0 || this.inverted === !0,
116
116
  "ed-c-accordion--condensed": this.spacing === "condensed"
117
117
  });
118
- return h`
119
- <dl class="${i}">
118
+ return m`
119
+ <div class="${t}">
120
120
  <slot></slot>
121
- </dl>
121
+ </div>
122
122
  `;
123
123
  }
124
124
  }
125
- u([
126
- t({ type: Boolean })
127
- ], m.prototype, "knockout");
128
- u([
129
- t({ type: Boolean })
130
- ], m.prototype, "inverted");
131
- u([
132
- t()
133
- ], m.prototype, "spacing");
134
- customElements.get("ed-accordion") === void 0 && customElements.define("ed-accordion", m);
135
- const w = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-accordion-panel{border-block-end:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle)}.ed-c-accordion-panel__header{display:flex;align-items:center;gap:var(--ed-theme-spacing-inline)}.ed-c-accordion-panel__button{text-align:start;display:flex;align-items:center;appearance:none;background:none;border:none;padding:var(--ed-accordion-panel-padding-block, 1rem) 0;flex:1 1 auto;min-width:0;cursor:pointer;color:inherit;overflow-x:hidden;transition:color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-accordion-panel__button:hover,.ed-c-accordion-panel__button:focus{color:var(--ed-accordion-panel-button-hover-text-color, var(--ed-theme-color-content-default-hover))}ed-icon{margin-inline-start:auto;transition:transform var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-accordion-panel.ed-is-active ed-icon{transform:rotate(-180deg)}.ed-c-accordion-panel__body{margin:0;padding:0;overflow:hidden;visibility:hidden;transition:height var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease),visibility var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-accordion-panel.ed-is-active .ed-c-accordion-panel__body{visibility:visible}.ed-c-accordion-panel__body-inner{padding-block-end:var(--ed-accordion-panel-padding-block, 1rem);padding-block-start:var(--ed-accordion-panel-padding-block, 1rem)}';
136
- var P = Object.defineProperty, b = (n, i, d, f) => {
137
- for (var e = void 0, r = n.length - 1, s; r >= 0; r--)
138
- (s = n[r]) && (e = s(i, d, e) || e);
139
- return e && P(i, d, e), e;
125
+ v([
126
+ i({ type: Boolean })
127
+ ], u.prototype, "knockout");
128
+ v([
129
+ i({ type: Boolean })
130
+ ], u.prototype, "inverted");
131
+ v([
132
+ i()
133
+ ], u.prototype, "spacing");
134
+ customElements.get("ed-accordion") === void 0 && customElements.define("ed-accordion", u);
135
+ const P = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-accordion-panel{border-block-end:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle)}.ed-c-accordion-panel__header{display:flex;align-items:center;gap:var(--ed-theme-spacing-inline)}.ed-c-accordion-panel__heading{display:flex;flex:1 1 auto;min-width:0;margin:0}.ed-c-accordion-panel__button{text-align:start;display:flex;align-items:center;appearance:none;background:none;border:none;padding:var(--ed-accordion-panel-padding-block, 1rem) 0;flex:1 1 auto;min-width:0;cursor:pointer;color:inherit;overflow-x:hidden;transition:color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-accordion-panel__button:hover,.ed-c-accordion-panel__button:focus{color:var(--ed-accordion-panel-button-hover-text-color, var(--ed-theme-color-content-default-hover))}ed-icon{margin-inline-start:auto;transition:transform var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-accordion-panel.ed-is-active ed-icon{transform:rotate(-180deg)}.ed-c-accordion-panel__body{margin:0;padding:0;overflow:hidden;visibility:hidden;transition:height var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease),visibility var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-accordion-panel.ed-is-active .ed-c-accordion-panel__body{visibility:visible}.ed-c-accordion-panel__body-inner{padding-block-end:var(--ed-accordion-panel-padding-block, 1rem);padding-block-start:var(--ed-accordion-panel-padding-block, 1rem)}';
136
+ var E = Object.defineProperty, p = (o, t, r, l) => {
137
+ for (var e = void 0, d = o.length - 1, s; d >= 0; d--)
138
+ (s = o[d]) && (e = s(t, r, e) || e);
139
+ return e && E(t, r, e), e;
140
140
  };
141
- class c extends y {
142
- static get styles() {
143
- return g(w);
144
- }
141
+ class h extends y {
145
142
  /**
146
143
  * Initialize functions
147
144
  */
148
145
  constructor() {
149
- super(), this.togglePanel = this.togglePanel.bind(this), this.setPanelHeight = this.setPanelHeight.bind(this);
146
+ super(), this.headingLevel = 3, this.togglePanel = this.togglePanel.bind(this), this.setPanelHeight = this.setPanelHeight.bind(this);
147
+ }
148
+ static get styles() {
149
+ return f(P);
150
+ }
151
+ /**
152
+ * Read the heading level from the slotted title, so the author's outline decides it. #2245
153
+ */
154
+ handleHeaderSlotChange(t) {
155
+ const l = t.target.assignedElements({ flatten: !0 }).map(A).find((e) => e !== void 0);
156
+ this.headingLevel = l ?? 3;
150
157
  }
151
158
  /**
152
159
  * Initialize/Update
153
160
  * 1) Set panel height on load. Active state should set panel height to content within panel
154
161
  */
155
162
  connectedCallback() {
156
- super.connectedCallback(), this.id = this.id || p(), this.ariaLabelledBy = this.ariaLabelledBy || p(), this.setPanelHeight(), this.isActive && (this.fullyOpen = !0, this.setPanelHeight());
163
+ super.connectedCallback(), this.id = this.id || g(), this.ariaLabelledBy = this.ariaLabelledBy || g(), this.setPanelHeight(), this.isActive && (this.fullyOpen = !0, this.setPanelHeight());
157
164
  }
158
165
  /**
159
166
  * Set panel height
@@ -180,43 +187,57 @@ class c extends y {
180
187
  }, 50));
181
188
  }
182
189
  render() {
183
- const i = this.componentClassNames("ed-c-accordion-panel", {
190
+ const t = this.componentClassNames("ed-c-accordion-panel", {
184
191
  "ed-is-active": this.isActive === !0
185
192
  });
186
- return h`
187
- <div class="${i}">
188
- <dt class="ed-c-accordion-panel__header">
189
- <button
190
- class="ed-c-accordion-panel__button"
191
- aria-expanded="${!!this.isActive}"
192
- id="${this.ariaLabelledBy}"
193
- aria-controls="${this.id}"
194
- @click=${this.togglePanel}
195
- >
196
- <slot name="header"></slot>
197
- <ed-icon name="keyboard-arrow-down"></ed-icon>
198
- </button>
193
+ return m`
194
+ <div class="${t}">
195
+ <div class="ed-c-accordion-panel__header">
196
+ <div class="ed-c-accordion-panel__heading" role="heading" aria-level="${this.headingLevel}">
197
+ <button
198
+ class="ed-c-accordion-panel__button"
199
+ aria-expanded="${!!this.isActive}"
200
+ id="${this.ariaLabelledBy}"
201
+ aria-controls="${this.id}"
202
+ @click=${this.togglePanel}
203
+ >
204
+ <slot name="header" @slotchange=${this.handleHeaderSlotChange}></slot>
205
+ <ed-icon name="keyboard-arrow-down"></ed-icon>
206
+ </button>
207
+ </div>
199
208
  <slot name="headerAfter"></slot>
200
- </dt>
201
- <dd class="ed-c-accordion-panel__body" aria-labelledby="${this.ariaLabelledBy}" id="${this.id}" style=${"height: " + this.height}>
202
- <div class="ed-c-accordion-panel__body-inner" #bodyInner>
209
+ </div>
210
+ <div class="ed-c-accordion-panel__body" id="${this.id}" style=${"height: " + this.height}>
211
+ <div class="ed-c-accordion-panel__body-inner">
203
212
  <slot></slot>
204
213
  </div>
205
- </dd>
214
+ </div>
206
215
  </div>
207
216
  `;
208
217
  }
209
218
  }
210
- b([
211
- t({ type: Boolean })
212
- ], c.prototype, "isActive");
213
- b([
214
- t({ type: Boolean })
215
- ], c.prototype, "fullyOpen");
216
- b([
217
- t()
218
- ], c.prototype, "ariaLabelledBy");
219
- b([
220
- t()
221
- ], c.prototype, "height");
222
- customElements.get("ed-accordion-panel") === void 0 && customElements.define("ed-accordion-panel", c);
219
+ p([
220
+ i({ type: Boolean })
221
+ ], h.prototype, "isActive");
222
+ p([
223
+ i({ type: Boolean })
224
+ ], h.prototype, "fullyOpen");
225
+ p([
226
+ i()
227
+ ], h.prototype, "ariaLabelledBy");
228
+ p([
229
+ i()
230
+ ], h.prototype, "height");
231
+ p([
232
+ x()
233
+ ], h.prototype, "headingLevel");
234
+ const b = /^h([1-6])$/i;
235
+ function A(o) {
236
+ const t = b.exec(o.localName);
237
+ if (t) return Number(t[1]);
238
+ const r = o.querySelector(":scope > h1, :scope > h2, :scope > h3, :scope > h4, :scope > h5, :scope > h6");
239
+ if (r) return Number(r.localName[1]);
240
+ const l = b.exec(String(o.tagName ?? "")) ?? b.exec(o.getAttribute("tagName") ?? "");
241
+ return l ? Number(l[1]) : o.localName === "ed-heading" ? 2 : void 0;
242
+ }
243
+ customElements.get("ed-accordion-panel") === void 0 && customElements.define("ed-accordion-panel", h);
@@ -1,5 +1,5 @@
1
- import { r as s, b, n as a } from "./lit.B6pFiYzB.js";
2
- import { E as l } from "./EdElement.BcrGsPCr.js";
1
+ import { r as s, b, n as a } from "./lit.BJDcdeQB.js";
2
+ import { E as l } from "./EdElement.Vr8clRZw.js";
3
3
  const u = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}.ed-c-band{position:relative;isolation:isolate;background:var(--ed-theme-color-background-subtle);padding-block:var(--ed-band-padding-block, 1.5rem);padding-inline:var(--ed-band-padding-inline, 0)}@media all and (min-width:75rem){.ed-c-band{padding-block:var(--ed-band-padding-block, 2rem)}}.ed-c-band--brand{color:var(--ed-theme-color-content-on-brand);background:var(--ed-theme-color-background-brand)}.ed-c-band--brand-knockout{color:var(--ed-theme-color-content-on-brand);background:var(--ed-theme-color-background-brand-knockout)}.ed-c-band--knockout{color:var(--ed-theme-color-content-knockout);background:var(--ed-theme-color-background-knockout)}.ed-c-band__background{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}.ed-c-band__background ::slotted(*){position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}.ed-c-band__content{display:flex;flex-direction:column;gap:var(--ed-band-gap, var(--ed-theme-spacing-block));position:relative;z-index:1}.ed-c-band--flush .ed-c-band__content{gap:0}.ed-c-band--scrim{color:var(--ed-theme-color-content-knockout)}.ed-c-band--scrim:after{content:"";position:absolute;inset:0;z-index:0;background:color-mix(in srgb,var(--ed-theme-color-background-knockout) var(--ed-c-band-scrim-strength, 65%),transparent);pointer-events:none}';
4
4
  var k = Object.defineProperty, r = (t, n, c, m) => {
5
5
  for (var e = void 0, d = t.length - 1, i; d >= 0; d--)