@brad-frost-web/eddie-recipes 0.65.0 → 0.67.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 (148) hide show
  1. package/cdn/chunks/{accordion-panel.BMRj9KIn.js → accordion-panel.8jJb4a8B.js} +2 -2
  2. package/cdn/chunks/button.BMOMYmQm.js +155 -0
  3. package/cdn/chunks/card.DARUvAye.js +57 -0
  4. package/cdn/chunks/checkbox-field.JHW_h5gs.js +107 -0
  5. package/cdn/chunks/field-note.B70Wg09R.js +43 -0
  6. package/cdn/chunks/heading.CmKX6wjQ.js +107 -0
  7. package/cdn/chunks/icon.D8JzjeAU.js +271 -0
  8. package/cdn/chunks/{select-field.C5TNJvUA.js → select-field.U1c8Jy5D.js} +119 -132
  9. package/cdn/chunks/single-field-form.5rO7JQ4l.js +170 -0
  10. package/cdn/chunks/{text-field.BMZBG9I3.js → text-field.CTlG5-2r.js} +1 -1
  11. package/cdn/chunks/text-passage.S8zUd08L.js +128 -0
  12. package/cdn/chunks/{textarea-field.BWBov7zk.js → textarea-field.CF7xR4Ys.js} +109 -194
  13. package/cdn/chunks/{toggle.DbY4EVd9.js → toggle.BMqRrObB.js} +38 -16
  14. package/cdn/eddie-recipes-autoloader.js +4 -0
  15. package/cdn/recipes/common/article-card/article-card.js +46 -40
  16. package/cdn/recipes/common/bento/bento.js +44 -0
  17. package/cdn/recipes/common/bento-item/bento-item.js +39 -0
  18. package/cdn/recipes/common/example-form/example-form.js +45 -24
  19. package/cdn/recipes/common/icon-card/icon-card.js +48 -0
  20. package/cdn/recipes/common/newsletter-signup/newsletter-signup.js +1 -1
  21. package/cdn/recipes/common/page-banner/page-banner.js +29 -21
  22. package/cdn/recipes/common/project-card/project-card.js +3 -3
  23. package/cdn/recipes/common/search-form/search-form.js +1 -1
  24. package/cdn/recipes/common/site-header/site-header.js +8 -8
  25. package/cdn/recipes/common/speaking-card/speaking-card.js +10 -4
  26. package/cdn/recipes/common/stat-card/stat-card.js +85 -39
  27. package/cdn/recipes/common/theme-switcher/theme-switcher.js +1 -1
  28. package/cdn/recipes/common/timeline-node/TimelineNodeKind.js +1 -1
  29. package/cdn/recipes/common/timeline-node/timeline-node.js +1 -1
  30. package/cdn/recipes/common/todo-list/todo-list.js +215 -0
  31. package/cdn/recipes/common/transport-button/transport-button.js +1 -1
  32. package/cdn/recipes/common/vertical-site-header/vertical-site-header.js +1 -1
  33. package/cdn/recipes/common/wheel-of-life/wheel-of-life.js +1 -1
  34. package/cdn/recipes/eddie-slides/template-card/template-card.js +6 -6
  35. package/cdn/recipes/eddie-slides/thumbnail/thumbnail.js +1 -1
  36. package/cdn/recipes/tools/theme-customizer/derive.js +117 -73
  37. package/cdn/recipes/tools/theme-customizer/theme-customizer.js +502 -431
  38. package/cdn/recipes/tools/viz-controls/viz-controls.js +6 -6
  39. package/cdn/recipes/we-are-here/wah-site-header/wah-site-header.js +1 -1
  40. package/package.json +3 -3
  41. package/recipes/common/ad/ad.d.ts +8 -2
  42. package/recipes/common/ad/ad.d.ts.map +1 -1
  43. package/recipes/common/article-card/article-card.d.ts +32 -5
  44. package/recipes/common/article-card/article-card.d.ts.map +1 -1
  45. package/recipes/common/article-card/article-card.js +47 -41
  46. package/recipes/common/audio-player/audio-player.d.ts +15 -1
  47. package/recipes/common/audio-player/audio-player.d.ts.map +1 -1
  48. package/recipes/common/bento/bento.d.ts +87 -0
  49. package/recipes/common/bento/bento.d.ts.map +1 -0
  50. package/recipes/common/bento/bento.js +45 -0
  51. package/recipes/common/bento-item/bento-item.d.ts +76 -0
  52. package/recipes/common/bento-item/bento-item.d.ts.map +1 -0
  53. package/recipes/common/bento-item/bento-item.js +40 -0
  54. package/recipes/common/example-form/example-form.d.ts +10 -0
  55. package/recipes/common/example-form/example-form.d.ts.map +1 -1
  56. package/recipes/common/icon-card/icon-card.d.ts +92 -0
  57. package/recipes/common/icon-card/icon-card.d.ts.map +1 -0
  58. package/recipes/common/icon-card/icon-card.js +49 -0
  59. package/recipes/common/newsletter-signup/newsletter-signup.d.ts +13 -1
  60. package/recipes/common/newsletter-signup/newsletter-signup.d.ts.map +1 -1
  61. package/recipes/common/page-banner/page-banner.d.ts +4 -0
  62. package/recipes/common/page-banner/page-banner.d.ts.map +1 -1
  63. package/recipes/common/project-card/project-card.d.ts +17 -1
  64. package/recipes/common/project-card/project-card.d.ts.map +1 -1
  65. package/recipes/common/project-card/project-card.js +1 -1
  66. package/recipes/common/promo-block/promo-block.d.ts +2 -0
  67. package/recipes/common/promo-block/promo-block.d.ts.map +1 -1
  68. package/recipes/common/search-form/search-form.d.ts +7 -0
  69. package/recipes/common/search-form/search-form.d.ts.map +1 -1
  70. package/recipes/common/site-header/site-header.js +17 -17
  71. package/recipes/common/speaking-card/speaking-card.d.ts +28 -3
  72. package/recipes/common/speaking-card/speaking-card.d.ts.map +1 -1
  73. package/recipes/common/speaking-card/speaking-card.js +38 -32
  74. package/recipes/common/stat-card/stat-card.d.ts +107 -30
  75. package/recipes/common/stat-card/stat-card.d.ts.map +1 -1
  76. package/recipes/common/stat-card/stat-card.js +83 -37
  77. package/recipes/common/theme-switcher/theme-switcher.d.ts +8 -0
  78. package/recipes/common/theme-switcher/theme-switcher.d.ts.map +1 -1
  79. package/recipes/common/timeline-node/timeline-node.d.ts +14 -0
  80. package/recipes/common/timeline-node/timeline-node.d.ts.map +1 -1
  81. package/recipes/common/timeline-node-art/timeline-node-art.d.ts +10 -0
  82. package/recipes/common/timeline-node-art/timeline-node-art.d.ts.map +1 -1
  83. package/recipes/common/timeline-node-blog/timeline-node-blog.d.ts +10 -0
  84. package/recipes/common/timeline-node-blog/timeline-node-blog.d.ts.map +1 -1
  85. package/recipes/common/timeline-node-book/timeline-node-book.d.ts +6 -0
  86. package/recipes/common/timeline-node-book/timeline-node-book.d.ts.map +1 -1
  87. package/recipes/common/timeline-node-client/timeline-node-client.d.ts +8 -0
  88. package/recipes/common/timeline-node-client/timeline-node-client.d.ts.map +1 -1
  89. package/recipes/common/timeline-node-concert/timeline-node-concert.d.ts +9 -1
  90. package/recipes/common/timeline-node-concert/timeline-node-concert.d.ts.map +1 -1
  91. package/recipes/common/timeline-node-course/timeline-node-course.d.ts +6 -0
  92. package/recipes/common/timeline-node-course/timeline-node-course.d.ts.map +1 -1
  93. package/recipes/common/timeline-node-link/timeline-node-link.d.ts +8 -0
  94. package/recipes/common/timeline-node-link/timeline-node-link.d.ts.map +1 -1
  95. package/recipes/common/timeline-node-location/timeline-node-location.d.ts +8 -0
  96. package/recipes/common/timeline-node-location/timeline-node-location.d.ts.map +1 -1
  97. package/recipes/common/timeline-node-milestone/timeline-node-milestone.d.ts +9 -0
  98. package/recipes/common/timeline-node-milestone/timeline-node-milestone.d.ts.map +1 -1
  99. package/recipes/common/timeline-node-newsletter/timeline-node-newsletter.d.ts +8 -0
  100. package/recipes/common/timeline-node-newsletter/timeline-node-newsletter.d.ts.map +1 -1
  101. package/recipes/common/timeline-node-note/timeline-node-note.d.ts +8 -0
  102. package/recipes/common/timeline-node-note/timeline-node-note.d.ts.map +1 -1
  103. package/recipes/common/timeline-node-playlist/timeline-node-playlist.d.ts +6 -0
  104. package/recipes/common/timeline-node-playlist/timeline-node-playlist.d.ts.map +1 -1
  105. package/recipes/common/timeline-node-podcast/timeline-node-podcast.d.ts +9 -0
  106. package/recipes/common/timeline-node-podcast/timeline-node-podcast.d.ts.map +1 -1
  107. package/recipes/common/timeline-node-song/timeline-node-song.d.ts +8 -0
  108. package/recipes/common/timeline-node-song/timeline-node-song.d.ts.map +1 -1
  109. package/recipes/common/timeline-node-speaking/timeline-node-speaking.d.ts +8 -0
  110. package/recipes/common/timeline-node-speaking/timeline-node-speaking.d.ts.map +1 -1
  111. package/recipes/common/timeline-node-video/timeline-node-video.d.ts +7 -0
  112. package/recipes/common/timeline-node-video/timeline-node-video.d.ts.map +1 -1
  113. package/recipes/common/todo-list/todo-list.d.ts +176 -0
  114. package/recipes/common/todo-list/todo-list.d.ts.map +1 -0
  115. package/recipes/common/todo-list/todo-list.js +159 -0
  116. package/recipes/common/transport-button/transport-button.d.ts +20 -1
  117. package/recipes/common/transport-button/transport-button.d.ts.map +1 -1
  118. package/recipes/common/vertical-site-header/vertical-site-header.d.ts +13 -0
  119. package/recipes/common/vertical-site-header/vertical-site-header.d.ts.map +1 -1
  120. package/recipes/common/video-embed/video-embed.d.ts +13 -1
  121. package/recipes/common/video-embed/video-embed.d.ts.map +1 -1
  122. package/recipes/common/visualzzz/visualzzz.d.ts +31 -9
  123. package/recipes/common/visualzzz/visualzzz.d.ts.map +1 -1
  124. package/recipes/common/wheel-of-life/wheel-of-life.d.ts +10 -0
  125. package/recipes/common/wheel-of-life/wheel-of-life.d.ts.map +1 -1
  126. package/recipes/common/wheel-of-life/wheel-of-life.js +9 -9
  127. package/recipes/eddie-slides/template-card/template-card.d.ts +8 -0
  128. package/recipes/eddie-slides/template-card/template-card.d.ts.map +1 -1
  129. package/recipes/eddie-slides/template-card/template-card.js +1 -1
  130. package/recipes/eddie-slides/thumbnail/thumbnail.d.ts +17 -1
  131. package/recipes/eddie-slides/thumbnail/thumbnail.d.ts.map +1 -1
  132. package/recipes/tools/theme-customizer/theme-customizer.d.ts +13 -0
  133. package/recipes/tools/theme-customizer/theme-customizer.d.ts.map +1 -1
  134. package/recipes/tools/theme-customizer/theme-customizer.js +50 -29
  135. package/recipes/tools/viz-controls/viz-controls.d.ts +12 -0
  136. package/recipes/tools/viz-controls/viz-controls.d.ts.map +1 -1
  137. package/recipes/we-are-here/chunky-checkbox/chunky-checkbox.d.ts +10 -1
  138. package/recipes/we-are-here/chunky-checkbox/chunky-checkbox.d.ts.map +1 -1
  139. package/recipes/we-are-here/wah-link-list/wah-link-list.d.ts +11 -0
  140. package/recipes/we-are-here/wah-link-list/wah-link-list.d.ts.map +1 -1
  141. package/recipes/we-are-here/wah-logo/wah-logo.d.ts +7 -0
  142. package/recipes/we-are-here/wah-logo/wah-logo.d.ts.map +1 -1
  143. package/cdn/chunks/button.DUAGvu3b.js +0 -154
  144. package/cdn/chunks/card.GLnK_QKK.js +0 -52
  145. package/cdn/chunks/heading.BYd3PI-V.js +0 -107
  146. package/cdn/chunks/icon.3TieVSgp.js +0 -264
  147. package/cdn/chunks/single-field-form.DwsgpQNI.js +0 -170
  148. package/cdn/chunks/text-passage.DiDchPiE.js +0 -78
@@ -1,9 +1,9 @@
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 "./field-note.B70Wg09R.js";
5
5
  import { E as y } from "./EdElement.BcrGsPCr.js";
6
- import "./icon.3TieVSgp.js";
6
+ import "./icon.D8JzjeAU.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}';
8
8
  var $ = Object.defineProperty, a = (n, i, d, f) => {
9
9
  for (var e = void 0, r = n.length - 1, s; r >= 0; r--)
@@ -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.D8JzjeAU.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);
@@ -0,0 +1,57 @@
1
+ import { r as l, b as g, n as c } from "./lit.B6pFiYzB.js";
2
+ import { E as p } 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;height:100%}.ed-c-card{--_ed-card-padding: var(--ed-card-padding, var(--ed-theme-spacing-md));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--subtle{border-color:transparent;box-shadow:none;color:var(--ed-theme-color-content-default);background:var(--ed-theme-color-background-subtle)}.ed-c-card--strong{border-color:transparent;box-shadow:none;color:var(--ed-theme-color-content-knockout);background:var(--ed-theme-color-background-knockout)}.ed-c-card--plain{border:0;box-shadow:none;color:var(--ed-theme-color-content-default);background:none}.ed-c-card--padding-none{--_ed-card-padding: var(--ed-card-padding, 0)}.ed-c-card--padding-sm{--_ed-card-padding: var(--ed-card-padding, var(--ed-theme-spacing-sm))}.ed-c-card--padding-lg{--_ed-card-padding: var(--ed-card-padding, var(--ed-theme-spacing-lg))}.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__header ::slotted(:not(img):not(picture):not(video):not(ed-image):not(ed-figure)){margin-block:var(--_ed-card-padding) 0!important;margin-inline:var(--_ed-card-padding)!important}.ed-c-card__body{display:flex;flex-direction:column;gap:var(--ed-card-body-gap, var(--ed-theme-spacing-flow));padding:var(--_ed-card-padding);flex:1 0 auto}.ed-c-card__footer{display:block;flex:none}.ed-c-card__footer ::slotted(*){display:inline-block;margin:var(--_ed-card-padding)!important}';
4
+ var h = Object.defineProperty, i = (o, d, r, t) => {
5
+ for (var e = void 0, n = o.length - 1, s; n >= 0; n--)
6
+ (s = o[n]) && (e = s(d, r, e) || e);
7
+ return e && h(d, r, e), e;
8
+ };
9
+ class a extends p {
10
+ static get styles() {
11
+ return l(m);
12
+ }
13
+ /**
14
+ * The header and footer regions render unconditionally.
15
+ *
16
+ * They were gated behind `slotNotEmpty()`, which crashes under Lit SSR
17
+ * (#1360): the server has no light DOM to inspect and no Lit SSR API exposes
18
+ * one, so the gate could only ever guess — and guessing "empty" dropped the
19
+ * author's slotted media and actions from the server-rendered markup.
20
+ *
21
+ * Rendering them always is safe because neither costs anything when empty:
22
+ * `__header` has no padding, and `__footer`'s padding moved onto its slotted
23
+ * content (see `card.scss`), so an empty region is a zero-height block. The
24
+ * server and the browser produce the same shadow tree.
25
+ */
26
+ render() {
27
+ const d = this.variant === "bare", r = d ? "plain" : this.variant, t = this.padding ?? (d ? "none" : void 0), e = this.componentClassNames("ed-c-card", {
28
+ "ed-c-card--bare": d,
29
+ [`ed-c-card--${r}`]: !!r,
30
+ [`ed-c-card--padding-${t}`]: !!t,
31
+ "ed-c-card--align-center": this.align === "center"
32
+ });
33
+ return g`
34
+ <div class="${e}">
35
+ <div class="ed-c-card__header">
36
+ <slot name="header"></slot>
37
+ </div>
38
+ <div class="ed-c-card__body">
39
+ <slot></slot>
40
+ </div>
41
+ <div class="ed-c-card__footer">
42
+ <slot name="footer"></slot>
43
+ </div>
44
+ </div>
45
+ `;
46
+ }
47
+ }
48
+ i([
49
+ c({ reflect: !0 })
50
+ ], a.prototype, "variant");
51
+ i([
52
+ c({ reflect: !0 })
53
+ ], a.prototype, "padding");
54
+ i([
55
+ c()
56
+ ], a.prototype, "align");
57
+ customElements.get("ed-card") === void 0 && customElements.define("ed-card", a);
@@ -0,0 +1,107 @@
1
+ import { E as h } from "./EdElement.BcrGsPCr.js";
2
+ import { r as c, o as s, b as p, n as t } from "./lit.B6pFiYzB.js";
3
+ import "./field-note.B70Wg09R.js";
4
+ const m = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.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-checkbox-field{border:none;margin:0;padding:0}.ed-c-checkbox-field--knockout{color:var(--ed-theme-color-content-knockout)}.ed-c-checkbox-field__legend{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);display:inline-block;margin-block-end:1rem}.ed-c-checkbox-field__list{display:flex;flex-direction:column;gap:.75rem;list-style:none;margin:0;padding:0}.ed-c-checkbox-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-c-checkbox-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}';
5
+ var y = Object.defineProperty, i = (l, d, n, f) => {
6
+ for (var o = void 0, a = l.length - 1, r; a >= 0; a--)
7
+ (r = l[a]) && (o = r(d, n, o) || o);
8
+ return o && y(d, n, o), o;
9
+ };
10
+ class e extends h {
11
+ constructor() {
12
+ super(...arguments), this.optionalLabel = "(optional)", this.label = "Label";
13
+ }
14
+ static get styles() {
15
+ return c(m);
16
+ }
17
+ render() {
18
+ const d = this.componentClassNames("ed-c-checkbox-field", {
19
+ "ed-c-checkbox-field--sm": this.size === "sm",
20
+ "ed-c-checkbox-field--lg": this.size === "lg",
21
+ "ed-c-checkbox-field--knockout": this.knockout === !0 || this.inverted === !0
22
+ });
23
+ return p`
24
+ <fieldset class="${d}">
25
+ <legend
26
+ class=${this.hideLegend ? "ed-c-checkbox-field__legend ed-u-is-vishidden" : "ed-c-checkbox-field__legend"}
27
+ aria-describedby="${this.ariaDescribedBy}"
28
+ >
29
+ ${this.label}
30
+ </legend>
31
+
32
+ <div class="ed-c-checkbox-field__body">
33
+ <!-- Deliberately presentational, not a list. The fieldset and legend
34
+ above already group these controls for assistive technology, and a
35
+ list wrapper whose items are custom elements cannot form a valid
36
+ list across shadow roots anyway (#785). Restoring list semantics
37
+ here would announce a redundant "list of N items" over a checkbox group
38
+ that already reports its own membership. -->
39
+ <div class="ed-c-checkbox-field__list">
40
+ <slot></slot>
41
+ </div>
42
+ </div>
43
+ ${this.fieldNote && p`<ed-field-note
44
+ ?knockout=${this.knockout === !0 || this.inverted === !0}
45
+ id=${s(this.ariaDescribedBy)}
46
+ iconName=${s(this.iconName)}
47
+ ?isSuccess=${this.isSuccess}
48
+ ?isError=${this.isError}
49
+ >
50
+ ${this.fieldNote}
51
+ </ed-field-note>`}
52
+ </fieldset>
53
+ `;
54
+ }
55
+ }
56
+ i([
57
+ t({ type: Boolean })
58
+ ], e.prototype, "isError");
59
+ i([
60
+ t({ type: Boolean })
61
+ ], e.prototype, "isSuccess");
62
+ i([
63
+ t({ type: Boolean })
64
+ ], e.prototype, "readOnly");
65
+ i([
66
+ t({ type: Boolean })
67
+ ], e.prototype, "disabled");
68
+ i([
69
+ t()
70
+ ], e.prototype, "fieldId");
71
+ i([
72
+ t()
73
+ ], e.prototype, "name");
74
+ i([
75
+ t({ type: Boolean })
76
+ ], e.prototype, "checked");
77
+ i([
78
+ t()
79
+ ], e.prototype, "fieldNote");
80
+ i([
81
+ t({ type: Boolean })
82
+ ], e.prototype, "required");
83
+ i([
84
+ t({ type: Boolean })
85
+ ], e.prototype, "hideLegend");
86
+ i([
87
+ t()
88
+ ], e.prototype, "optionalLabel");
89
+ i([
90
+ t()
91
+ ], e.prototype, "iconName");
92
+ i([
93
+ t({ type: Boolean })
94
+ ], e.prototype, "knockout");
95
+ i([
96
+ t({ type: Boolean })
97
+ ], e.prototype, "inverted");
98
+ i([
99
+ t()
100
+ ], e.prototype, "ariaDescribedBy");
101
+ i([
102
+ t()
103
+ ], e.prototype, "label");
104
+ i([
105
+ t()
106
+ ], e.prototype, "size");
107
+ customElements.get("ed-checkbox-field") === void 0 && customElements.define("ed-checkbox-field", e);
@@ -0,0 +1,43 @@
1
+ import { E as l } from "./EdElement.BcrGsPCr.js";
2
+ import { r as m, b as a, n as o } from "./lit.B6pFiYzB.js";
3
+ import "./icon.D8JzjeAU.js";
4
+ const h = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.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}';
5
+ var p = Object.defineProperty, r = (s, n, d, y) => {
6
+ for (var e = void 0, i = s.length - 1, c; i >= 0; i--)
7
+ (c = s[i]) && (e = c(n, d, e) || e);
8
+ return e && p(n, d, e), e;
9
+ };
10
+ class t extends l {
11
+ static get styles() {
12
+ return m(h);
13
+ }
14
+ render() {
15
+ const n = this.componentClassNames("ed-c-field-note", {
16
+ "ed-is-error": this.isError,
17
+ "ed-is-success": this.isSuccess,
18
+ "ed-c-field-note--knockout": this.knockout === !0 || this.inverted === !0
19
+ });
20
+ return a`
21
+ <div class="${n}">
22
+ ${this.iconName && a`<ed-icon name="${this.iconName}"></ed-icon>`}
23
+ <slot></slot>
24
+ </div>
25
+ `;
26
+ }
27
+ }
28
+ r([
29
+ o({ type: Boolean })
30
+ ], t.prototype, "isError");
31
+ r([
32
+ o({ type: Boolean })
33
+ ], t.prototype, "isSuccess");
34
+ r([
35
+ o()
36
+ ], t.prototype, "iconName");
37
+ r([
38
+ o({ type: Boolean })
39
+ ], t.prototype, "knockout");
40
+ r([
41
+ o({ type: Boolean })
42
+ ], t.prototype, "inverted");
43
+ customElements.get("ed-field-note") === void 0 && customElements.define("ed-field-note", t);
@@ -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);