@brad-frost-web/eddie-recipes 0.68.0 → 0.69.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.
- package/cdn/chunks/{accordion-panel.8jJb4a8B.js → accordion-panel.CfE_GzSz.js} +8 -8
- package/cdn/chunks/{band.Bhj0TLGx.js → band.CRKqX5PC.js} +1 -1
- package/cdn/chunks/button.BI7SkOwy.js +155 -0
- package/cdn/chunks/card.DF6tFZvU.js +53 -0
- package/cdn/chunks/{checkbox-field.JHW_h5gs.js → checkbox-field.Br1ruais.js} +2 -2
- package/cdn/chunks/field-note.BkkZiSM5.js +43 -0
- package/cdn/chunks/header.CZ0j7uWZ.js +51 -0
- package/cdn/chunks/heading.CFkMJ_PO.js +108 -0
- package/cdn/chunks/{icon.D8JzjeAU.js → icon.CJxL6Fld.js} +1 -1
- package/cdn/chunks/{layout-container.D19yXa4Z.js → layout-container.CdBxNczq.js} +5 -5
- package/cdn/chunks/{select-field.U1c8Jy5D.js → select-field.BdrdY_fo.js} +2 -2
- package/cdn/chunks/single-field-form.jTDbh2X1.js +170 -0
- package/cdn/chunks/text-field.DmUr7732.js +137 -0
- package/cdn/chunks/{text-passage.S8zUd08L.js → text-passage.CCSC-HVp.js} +2 -2
- package/cdn/chunks/textarea-field.BwGs_FD2.js +253 -0
- package/cdn/chunks/timeline-node.FdFfwve7.js +124 -0
- package/cdn/chunks/{toggle.BMqRrObB.js → toggle.Bja6MNel.js} +3 -3
- package/cdn/eddie-recipes-autoloader.js +1 -0
- package/cdn/recipes/common/article-card/article-card.js +3 -3
- package/cdn/recipes/common/audio-player/audio-player.js +12 -12
- package/cdn/recipes/common/avatar-block/avatar-block.js +155 -0
- package/cdn/recipes/common/bento/bento.js +9 -9
- package/cdn/recipes/common/bento-item/bento-item.js +3 -3
- package/cdn/recipes/common/example-form/example-form.js +14 -14
- package/cdn/recipes/common/icon-card/icon-card.js +13 -14
- package/cdn/recipes/common/newsletter-signup/newsletter-signup.js +10 -10
- package/cdn/recipes/common/page-banner/page-banner.js +10 -10
- package/cdn/recipes/common/project-card/project-card.js +4 -4
- package/cdn/recipes/common/promo-block/promo-block.js +3 -3
- package/cdn/recipes/common/search-form/search-form.js +2 -2
- package/cdn/recipes/common/site-footer/site-footer.js +7 -7
- package/cdn/recipes/common/site-header/site-header.js +121 -50
- package/cdn/recipes/common/speaking-card/speaking-card.js +3 -3
- package/cdn/recipes/common/stat-card/stat-card.js +23 -24
- package/cdn/recipes/common/theme-switcher/theme-switcher.js +4 -3
- package/cdn/recipes/common/timeline-node/TimelineNodeKind.js +2 -2
- package/cdn/recipes/common/timeline-node/timeline-node.js +3 -3
- package/cdn/recipes/common/timeline-node-art/timeline-node-art.js +1 -1
- package/cdn/recipes/common/timeline-node-blog/timeline-node-blog.js +1 -1
- package/cdn/recipes/common/timeline-node-book/timeline-node-book.js +1 -1
- package/cdn/recipes/common/timeline-node-client/timeline-node-client.js +1 -1
- package/cdn/recipes/common/timeline-node-concert/timeline-node-concert.js +1 -1
- package/cdn/recipes/common/timeline-node-course/timeline-node-course.js +1 -1
- package/cdn/recipes/common/timeline-node-link/timeline-node-link.js +1 -1
- package/cdn/recipes/common/timeline-node-location/timeline-node-location.js +1 -1
- package/cdn/recipes/common/timeline-node-milestone/timeline-node-milestone.js +1 -1
- package/cdn/recipes/common/timeline-node-newsletter/timeline-node-newsletter.js +1 -1
- package/cdn/recipes/common/timeline-node-note/timeline-node-note.js +1 -1
- package/cdn/recipes/common/timeline-node-playlist/timeline-node-playlist.js +1 -1
- package/cdn/recipes/common/timeline-node-podcast/timeline-node-podcast.js +1 -1
- package/cdn/recipes/common/timeline-node-song/timeline-node-song.js +1 -1
- package/cdn/recipes/common/timeline-node-speaking/timeline-node-speaking.js +5 -5
- package/cdn/recipes/common/timeline-node-video/timeline-node-video.js +1 -1
- package/cdn/recipes/common/todo-list/todo-list.js +14 -14
- package/cdn/recipes/common/transport-button/transport-button.js +5 -5
- package/cdn/recipes/common/vertical-site-header/vertical-site-header.js +6 -6
- package/cdn/recipes/common/video-embed/video-embed.js +4 -4
- package/cdn/recipes/common/visualzzz/visualzzz.js +118 -97
- package/cdn/recipes/common/wheel-of-life/wheel-of-life.js +11 -11
- package/cdn/recipes/eddie-slides/template-card/template-card.js +5 -5
- package/cdn/recipes/eddie-slides/thumbnail/thumbnail.js +8 -8
- package/cdn/recipes/tools/theme-customizer/theme-customizer.js +19 -18
- package/cdn/recipes/tools/viz-controls/viz-controls.js +7 -7
- package/cdn/recipes/we-are-here/chunky-checkbox/chunky-checkbox.js +15 -15
- package/cdn/recipes/we-are-here/wah-link-list/wah-link-list.js +28 -28
- package/cdn/recipes/we-are-here/wah-logo/wah-logo.js +1 -1
- package/cdn/recipes/we-are-here/wah-site-footer/wah-site-footer.js +5 -5
- package/cdn/recipes/we-are-here/wah-site-header/wah-site-header.js +10 -10
- package/package.json +1 -1
- package/recipes/common/article-card/article-card.js +1 -1
- package/recipes/common/audio-player/audio-player.js +4 -4
- package/recipes/common/avatar-block/avatar-block.d.ts +91 -0
- package/recipes/common/avatar-block/avatar-block.d.ts.map +1 -0
- package/recipes/common/avatar-block/avatar-block.js +64 -0
- package/recipes/common/bento/bento.js +4 -4
- package/recipes/common/bento-item/bento-item.js +5 -5
- package/recipes/common/example-form/example-form.js +1 -1
- package/recipes/common/icon-card/icon-card.d.ts +1 -1
- package/recipes/common/icon-card/icon-card.d.ts.map +1 -1
- package/recipes/common/icon-card/icon-card.js +11 -12
- package/recipes/common/newsletter-signup/newsletter-signup.d.ts +2 -2
- package/recipes/common/newsletter-signup/newsletter-signup.js +8 -8
- package/recipes/common/page-banner/page-banner.js +6 -6
- package/recipes/common/project-card/project-card.js +1 -1
- package/recipes/common/promo-block/promo-block.js +4 -4
- package/recipes/common/search-form/search-form.js +5 -5
- package/recipes/common/site-footer/site-footer.js +1 -1
- package/recipes/common/site-header/site-header.d.ts +74 -2
- package/recipes/common/site-header/site-header.d.ts.map +1 -1
- package/recipes/common/site-header/site-header.js +105 -41
- package/recipes/common/speaking-card/speaking-card.js +1 -1
- package/recipes/common/stat-card/stat-card.d.ts +4 -3
- package/recipes/common/stat-card/stat-card.d.ts.map +1 -1
- package/recipes/common/stat-card/stat-card.js +10 -11
- package/recipes/common/theme-switcher/theme-switcher.d.ts.map +1 -1
- package/recipes/common/theme-switcher/theme-switcher.js +6 -5
- package/recipes/common/timeline-node/timeline-node.js +1 -1
- package/recipes/common/timeline-node-art/timeline-node-art.js +1 -1
- package/recipes/common/timeline-node-blog/timeline-node-blog.js +1 -1
- package/recipes/common/timeline-node-book/timeline-node-book.js +1 -1
- package/recipes/common/timeline-node-client/timeline-node-client.js +6 -6
- package/recipes/common/timeline-node-concert/timeline-node-concert.js +1 -1
- package/recipes/common/timeline-node-course/timeline-node-course.js +1 -1
- package/recipes/common/timeline-node-link/timeline-node-link.js +1 -1
- package/recipes/common/timeline-node-location/timeline-node-location.js +1 -1
- package/recipes/common/timeline-node-milestone/timeline-node-milestone.js +1 -1
- package/recipes/common/timeline-node-newsletter/timeline-node-newsletter.js +1 -1
- package/recipes/common/timeline-node-note/timeline-node-note.js +1 -1
- package/recipes/common/timeline-node-playlist/timeline-node-playlist.js +1 -1
- package/recipes/common/timeline-node-podcast/timeline-node-podcast.js +1 -1
- package/recipes/common/timeline-node-song/timeline-node-song.js +1 -1
- package/recipes/common/timeline-node-speaking/timeline-node-speaking.js +7 -7
- package/recipes/common/timeline-node-video/timeline-node-video.js +1 -1
- package/recipes/common/todo-list/todo-list.js +1 -1
- package/recipes/common/transport-button/transport-button.js +1 -1
- package/recipes/common/vertical-site-header/vertical-site-header.js +1 -1
- package/recipes/common/video-embed/video-embed.js +5 -5
- package/recipes/common/visualzzz/visualzzz.d.ts +62 -22
- package/recipes/common/visualzzz/visualzzz.d.ts.map +1 -1
- package/recipes/common/visualzzz/visualzzz.js +123 -102
- package/recipes/common/wheel-of-life/wheel-of-life.js +11 -11
- package/recipes/eddie-slides/template-card/template-card.js +10 -10
- package/recipes/eddie-slides/thumbnail/thumbnail.js +9 -9
- package/recipes/tools/theme-customizer/theme-customizer.d.ts.map +1 -1
- package/recipes/tools/theme-customizer/theme-customizer.js +3 -2
- package/recipes/tools/viz-controls/viz-controls.js +1 -1
- package/recipes/we-are-here/chunky-checkbox/chunky-checkbox.js +7 -7
- package/recipes/we-are-here/wah-link-list/wah-link-list.js +28 -28
- package/recipes/we-are-here/wah-logo/wah-logo.js +1 -1
- package/recipes/we-are-here/wah-site-footer/wah-site-footer.js +11 -11
- package/recipes/we-are-here/wah-site-header/wah-site-header.js +17 -17
- package/cdn/chunks/button.BMOMYmQm.js +0 -155
- package/cdn/chunks/card.CKX503dH.js +0 -53
- package/cdn/chunks/field-note.B70Wg09R.js +0 -43
- package/cdn/chunks/header.CZMj7cDb.js +0 -51
- package/cdn/chunks/heading.CmKX6wjQ.js +0 -107
- package/cdn/chunks/single-field-form.5rO7JQ4l.js +0 -170
- package/cdn/chunks/text-field.CTlG5-2r.js +0 -137
- package/cdn/chunks/textarea-field.CF7xR4Ys.js +0 -253
- package/cdn/chunks/timeline-node.CzOCNbxm.js +0 -124
|
@@ -1,10 +1,10 @@
|
|
|
1
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
|
|
2
|
+
import { r as g, o as l, b as h, n as t, e as k } from "./lit.B6pFiYzB.js";
|
|
3
3
|
import { n as p } from "./index.browser.D527xXcp.js";
|
|
4
|
-
import "./field-note.
|
|
4
|
+
import "./field-note.BkkZiSM5.js";
|
|
5
5
|
import { E as y } from "./EdElement.BcrGsPCr.js";
|
|
6
|
-
import "./icon.
|
|
7
|
-
const
|
|
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
8
|
var $ = Object.defineProperty, a = (n, i, d, f) => {
|
|
9
9
|
for (var e = void 0, r = n.length - 1, s; r >= 0; r--)
|
|
10
10
|
(s = n[r]) && (e = s(i, d, e) || e);
|
|
@@ -15,7 +15,7 @@ class o extends v {
|
|
|
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 g(_);
|
|
19
19
|
}
|
|
20
20
|
connectedCallback() {
|
|
21
21
|
super.connectedCallback(), this.fieldId = this.fieldId || p(), this.fieldNote && (this.ariaDescribedBy = this.ariaDescribedBy || p());
|
|
@@ -97,10 +97,10 @@ a([
|
|
|
97
97
|
t()
|
|
98
98
|
], o.prototype, "size");
|
|
99
99
|
a([
|
|
100
|
-
|
|
100
|
+
k("input")
|
|
101
101
|
], o.prototype, "field");
|
|
102
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}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}';
|
|
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
104
|
var z = Object.defineProperty, u = (n, i, d, f) => {
|
|
105
105
|
for (var e = void 0, r = n.length - 1, s; r >= 0; r--)
|
|
106
106
|
(s = n[r]) && (e = s(i, d, e) || e);
|
|
@@ -132,7 +132,7 @@ u([
|
|
|
132
132
|
t()
|
|
133
133
|
], m.prototype, "spacing");
|
|
134
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}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)}';
|
|
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
136
|
var P = Object.defineProperty, b = (n, i, d, f) => {
|
|
137
137
|
for (var e = void 0, r = n.length - 1, s; r >= 0; r--)
|
|
138
138
|
(s = n[r]) && (e = s(i, d, e) || e);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as s, b, n as a } from "./lit.B6pFiYzB.js";
|
|
2
2
|
import { E as l } from "./EdElement.BcrGsPCr.js";
|
|
3
|
-
const u = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}.ed-c-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}';
|
|
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--)
|
|
6
6
|
(i = t[d]) && (e = i(n, c, e) || e);
|
|
@@ -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.CJxL6Fld.js";
|
|
4
|
+
const g = '@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-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)}:host([fullwidth]){display:block;width:100%}.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, reflect: !0 })
|
|
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,53 @@
|
|
|
1
|
+
import { r as l, b as g, n } from "./lit.B6pFiYzB.js";
|
|
2
|
+
import { E as p } from "./EdElement.BcrGsPCr.js";
|
|
3
|
+
const h = '@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;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;align-self:stretch}.ed-c-card__footer ::slotted(*){display:inline-block;margin:var(--_ed-card-padding)!important}.ed-c-card__footer ::slotted([fullwidth]),.ed-c-card__footer ::slotted(ed-grid){display:block;width:auto}.ed-c-card{position:relative;--_ed-card-actions-inset: var(--ed-card-actions-inset, var(--_ed-card-padding));--_ed-card-actions-gutter: calc( var(--_ed-card-padding) + var(--ed-card-actions-gutter, 2rem) )}.ed-c-card--padding-none{--_ed-card-actions-inset: var(--ed-card-actions-inset, .5rem);--_ed-card-actions-gutter: var(--ed-card-actions-gutter, 2rem)}.ed-c-card__actions{position:absolute;inset-block-start:var(--_ed-card-actions-inset);inset-inline-end:var(--_ed-card-actions-inset);display:flex;align-items:center;gap:var(--ed-theme-spacing-inline)}.ed-c-card--has-actions .ed-c-card__body{padding-inline-end:var(--_ed-card-actions-gutter);padding-block-start:calc(var(--_ed-card-padding) + var(--ed-card-actions-clearance, 0px))}';
|
|
4
|
+
var v = Object.defineProperty, i = (o, d, a, c) => {
|
|
5
|
+
for (var e = void 0, r = o.length - 1, s; r >= 0; r--)
|
|
6
|
+
(s = o[r]) && (e = s(d, a, e) || e);
|
|
7
|
+
return e && v(d, a, e), e;
|
|
8
|
+
};
|
|
9
|
+
class t extends p {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments), this.onActionsSlotChange = () => {
|
|
12
|
+
this.requestUpdate();
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
static get styles() {
|
|
16
|
+
return l(h);
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
const d = this.variant === "bare", a = d ? "plain" : this.variant, c = this.padding ?? (d ? "none" : void 0), e = this.slotNotEmpty("actions", !0) === !0, r = this.componentClassNames("ed-c-card", {
|
|
20
|
+
"ed-c-card--has-actions": e,
|
|
21
|
+
"ed-c-card--bare": d,
|
|
22
|
+
[`ed-c-card--${a}`]: !!a,
|
|
23
|
+
[`ed-c-card--padding-${c}`]: !!c,
|
|
24
|
+
"ed-c-card--align-center": this.align === "center"
|
|
25
|
+
});
|
|
26
|
+
return g`
|
|
27
|
+
<div class="${r}">
|
|
28
|
+
<div class="ed-c-card__header">
|
|
29
|
+
<slot name="header"></slot>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="ed-c-card__body">
|
|
32
|
+
<slot></slot>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="ed-c-card__footer">
|
|
35
|
+
<slot name="footer"></slot>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="ed-c-card__actions">
|
|
38
|
+
<slot name="actions" @slotchange=${this.onActionsSlotChange}></slot>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
`;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
i([
|
|
45
|
+
n({ reflect: !0 })
|
|
46
|
+
], t.prototype, "variant");
|
|
47
|
+
i([
|
|
48
|
+
n({ reflect: !0 })
|
|
49
|
+
], t.prototype, "padding");
|
|
50
|
+
i([
|
|
51
|
+
n()
|
|
52
|
+
], t.prototype, "align");
|
|
53
|
+
customElements.get("ed-card") === void 0 && customElements.define("ed-card", t);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as h } from "./EdElement.BcrGsPCr.js";
|
|
2
2
|
import { r as c, o as s, b as p, n as t } from "./lit.B6pFiYzB.js";
|
|
3
|
-
import "./field-note.
|
|
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}';
|
|
3
|
+
import "./field-note.BkkZiSM5.js";
|
|
4
|
+
const m = '@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-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
5
|
var y = Object.defineProperty, i = (l, d, n, f) => {
|
|
6
6
|
for (var o = void 0, a = l.length - 1, r; a >= 0; a--)
|
|
7
7
|
(r = l[a]) && (o = r(d, n, o) || o);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { E as l } from "./EdElement.BcrGsPCr.js";
|
|
2
|
+
import { r as m, b as c, n as o } from "./lit.B6pFiYzB.js";
|
|
3
|
+
import "./icon.CJxL6Fld.js";
|
|
4
|
+
const h = '@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-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 = (n, s, d, y) => {
|
|
6
|
+
for (var e = void 0, i = n.length - 1, a; i >= 0; i--)
|
|
7
|
+
(a = n[i]) && (e = a(s, d, e) || e);
|
|
8
|
+
return e && p(s, d, e), e;
|
|
9
|
+
};
|
|
10
|
+
class t extends l {
|
|
11
|
+
static get styles() {
|
|
12
|
+
return m(h);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const s = 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 c`
|
|
21
|
+
<div class="${s}">
|
|
22
|
+
${this.iconName && c`<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,51 @@
|
|
|
1
|
+
import { a as s, r as v, b as l, n as h } from "./lit.B6pFiYzB.js";
|
|
2
|
+
import { E as m } from "./EdElement.BcrGsPCr.js";
|
|
3
|
+
import "./layout-container.CdBxNczq.js";
|
|
4
|
+
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-header{--ed-header-color-content: var(--ed-theme-color-content-knockout);--ed-header-focus-ring-color: var(--ed-theme-focus-ring-color-border-knockout);background:var(--ed-theme-color-background-knockout);color:var(--ed-header-color-content);position:relative;z-index:var(--ed-theme-layer-sticky)}@media all and (min-width:60rem){.ed-c-header--vertical{inline-size:var(--ed-sidebar-width, 18rem);min-block-size:100vh}}.ed-c-header__top{position:relative;inset-block-start:0;width:100%;z-index:var(--ed-theme-layer-sticky)}.ed-c-header__top-inner{width:100%}.ed-c-header__middle{width:100%;display:flex;align-items:center}@media all and (min-width:60rem){.ed-c-header--vertical .ed-c-header__middle{flex-direction:column;align-items:flex-start;gap:1rem}}.ed-c-header--bare{--ed-header-color-content: var(--ed-theme-color-content-default);--ed-header-focus-ring-color: var(--ed-theme-focus-ring-color-border-default);background:transparent;color:var(--ed-header-color-content)}.ed-c-header--brand{--ed-header-color-content: var(--ed-theme-color-content-knockout);background:var(--ed-theme-color-background-brand);color:var(--ed-header-color-content)}.ed-c-header--brand-knockout{--ed-header-color-content: var(--ed-theme-color-content-knockout);background:var(--ed-theme-color-background-brand-knockout);color:var(--ed-header-color-content)}.ed-c-header--accent-1{--ed-header-color-content: var(--ed-theme-color-content-on-accent-1);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-1);background:var(--ed-theme-color-background-accent-1);color:var(--ed-header-color-content)}.ed-c-header--accent-2{--ed-header-color-content: var(--ed-theme-color-content-on-accent-2);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-2);background:var(--ed-theme-color-background-accent-2);color:var(--ed-header-color-content)}.ed-c-header--accent-3{--ed-header-color-content: var(--ed-theme-color-content-on-accent-3);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-3);background:var(--ed-theme-color-background-accent-3);color:var(--ed-header-color-content)}.ed-c-header--accent-4{--ed-header-color-content: var(--ed-theme-color-content-on-accent-4);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-4);background:var(--ed-theme-color-background-accent-4);color:var(--ed-header-color-content)}.ed-c-header--accent-5{--ed-header-color-content: var(--ed-theme-color-content-on-accent-5);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-5);background:var(--ed-theme-color-background-accent-5);color:var(--ed-header-color-content)}.ed-c-header--accent-6{--ed-header-color-content: var(--ed-theme-color-content-on-accent-6);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-6);background:var(--ed-theme-color-background-accent-6);color:var(--ed-header-color-content)}.ed-c-header--accent-7{--ed-header-color-content: var(--ed-theme-color-content-on-accent-7);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-7);background:var(--ed-theme-color-background-accent-7);color:var(--ed-header-color-content)}.ed-c-header--accent-8{--ed-header-color-content: var(--ed-theme-color-content-on-accent-8);--ed-header-focus-ring-color: var(--ed-theme-color-border-on-accent-8);background:var(--ed-theme-color-background-accent-8);color:var(--ed-header-color-content)}';
|
|
5
|
+
var b = Object.defineProperty, t = (a, r, c, d) => {
|
|
6
|
+
for (var e = void 0, n = a.length - 1, i; n >= 0; n--)
|
|
7
|
+
(i = a[n]) && (e = i(r, c, e) || e);
|
|
8
|
+
return e && b(r, c, e), e;
|
|
9
|
+
};
|
|
10
|
+
class o extends m {
|
|
11
|
+
static get styles() {
|
|
12
|
+
return v(u);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const r = this.variant ? `ed-c-header--${this.variant}` : "", c = this.componentClassNames("ed-c-header", {
|
|
16
|
+
"ed-is-active": this.isActive === !0,
|
|
17
|
+
"ed-c-header--vertical": this.orientation === "vertical",
|
|
18
|
+
[r]: !!this.variant
|
|
19
|
+
}), d = l`
|
|
20
|
+
<div class="ed-c-header__top">
|
|
21
|
+
<slot name="top"></slot>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="ed-c-header__middle">
|
|
24
|
+
<slot></slot>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="ed-c-header__bottom">
|
|
27
|
+
<slot name="bottom"></slot>
|
|
28
|
+
</div>
|
|
29
|
+
`;
|
|
30
|
+
return l`
|
|
31
|
+
<header role="banner" class="${c}">
|
|
32
|
+
${this.fullWidth ? d : l`<ed-layout-container class="ed-c-header__layout-container">
|
|
33
|
+
${d}
|
|
34
|
+
</ed-layout-container>`}
|
|
35
|
+
</header>
|
|
36
|
+
`;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
t([
|
|
40
|
+
s()
|
|
41
|
+
], o.prototype, "isActive");
|
|
42
|
+
t([
|
|
43
|
+
h()
|
|
44
|
+
], o.prototype, "variant");
|
|
45
|
+
t([
|
|
46
|
+
h({ type: Boolean })
|
|
47
|
+
], o.prototype, "fullWidth");
|
|
48
|
+
t([
|
|
49
|
+
h()
|
|
50
|
+
], o.prototype, "orientation");
|
|
51
|
+
customElements.get("ed-header") === void 0 && customElements.define("ed-header", o);
|
|
@@ -0,0 +1,108 @@
|
|
|
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}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}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)}}:host([variant=display-fluid]){container-type:inline-size;inline-size:100%}.ed-c-heading--display-fluid{font-family:var(--ed-theme-typography-display-fluid-font-family);font-weight:var(--ed-theme-typography-display-fluid-font-weight);font-size:var(--ed-theme-typography-display-fluid-font-size);line-height:var(--ed-theme-typography-display-fluid-line-height);letter-spacing:var(--ed-theme-typography-display-fluid-letter-spacing);text-transform:var(--ed-theme-typography-display-fluid-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-fluid": this.variant === "display-fluid",
|
|
29
|
+
"ed-c-heading--display-xl": this.variant === "display-xl",
|
|
30
|
+
"ed-c-heading--display-lg": this.variant === "display-lg",
|
|
31
|
+
"ed-c-heading--display-default": this.variant === "display-default",
|
|
32
|
+
"ed-c-heading--headline-lg": this.variant ? this.variant === "headline-lg" : e === "h1",
|
|
33
|
+
"ed-c-heading--headline-default": this.variant ? this.variant === "headline-default" : e === "h2",
|
|
34
|
+
"ed-c-heading--headline-sm": this.variant ? this.variant === "headline-sm" : e === "h3",
|
|
35
|
+
"ed-c-heading--title-lg": this.variant ? this.variant === "title-lg" : e === "h4",
|
|
36
|
+
"ed-c-heading--title-default": this.variant ? this.variant === "title-default" : e === "h5",
|
|
37
|
+
"ed-c-heading--title-sm": this.variant ? this.variant === "title-sm" : e === "h6",
|
|
38
|
+
"ed-c-heading--label-lg": this.variant === "label-lg",
|
|
39
|
+
"ed-c-heading--label-default": this.variant === "label-default",
|
|
40
|
+
"ed-c-heading--label-sm": this.variant === "label-sm",
|
|
41
|
+
"ed-c-heading--body-lg": this.variant === "body-lg",
|
|
42
|
+
"ed-c-heading--body-default": this.variant === "body-default",
|
|
43
|
+
"ed-c-heading--body-sm": this.variant === "body-sm",
|
|
44
|
+
"ed-c-heading--meta-default": this.variant === "meta-default",
|
|
45
|
+
"ed-c-heading--meta-sm": this.variant === "meta-sm",
|
|
46
|
+
"ed-c-heading--wrap-balance": this.wrap === "balance",
|
|
47
|
+
"ed-c-heading--wrap-pretty": this.wrap === "pretty",
|
|
48
|
+
"ed-c-heading--wrap-normal": this.wrap === "normal"
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Enhance mode (#1484): style the author's real heading in place instead of
|
|
53
|
+
* rendering one into a shadow root.
|
|
54
|
+
*
|
|
55
|
+
* Authored form:
|
|
56
|
+
* ```html
|
|
57
|
+
* <ed-heading enhance variant="display-lg">
|
|
58
|
+
* <h1 class="p-name">How I build design systems</h1>
|
|
59
|
+
* </ed-heading>
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* The point is that the `<h1>` is in the document before this component (or
|
|
63
|
+
* any JS) runs: it is in the accessibility tree and the heading outline with
|
|
64
|
+
* scripting off, and microformat and SEO parsers can read it — none of which
|
|
65
|
+
* is true of a heading rendered into a shadow root.
|
|
66
|
+
*
|
|
67
|
+
* `tagName` is inert here. The author's own element decides the semantic
|
|
68
|
+
* level, which is the entire point of the mode; this method reads that level
|
|
69
|
+
* to pick the default typography preset when `variant` is unset.
|
|
70
|
+
*/
|
|
71
|
+
enhanceLightDom() {
|
|
72
|
+
this.injectGlobalStyles("ed-heading-styles", s);
|
|
73
|
+
const e = this.querySelector(":scope > h1, :scope > h2, :scope > h3, :scope > h4, :scope > h5, :scope > h6");
|
|
74
|
+
e && (e.classList.add("ed-c-heading"), this.styleModifier && e.classList.add(this.styleModifier), Object.entries(this.headingModifiers(e.localName)).forEach(([i, o]) => {
|
|
75
|
+
e.classList.toggle(i, o);
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
render() {
|
|
79
|
+
const e = this.componentClassNames("ed-c-heading", this.headingModifiers(this.tagName));
|
|
80
|
+
switch (this.tagName) {
|
|
81
|
+
case "h1":
|
|
82
|
+
return a` <h1 class="${e}"><slot></slot></h1> `;
|
|
83
|
+
case "h2":
|
|
84
|
+
return a` <h2 class="${e}"><slot></slot></h2> `;
|
|
85
|
+
case "h3":
|
|
86
|
+
return a` <h3 class="${e}"><slot></slot></h3> `;
|
|
87
|
+
case "h4":
|
|
88
|
+
return a` <h4 class="${e}"><slot></slot></h4> `;
|
|
89
|
+
case "h5":
|
|
90
|
+
return a` <h5 class="${e}"><slot></slot></h5> `;
|
|
91
|
+
case "h6":
|
|
92
|
+
return a` <h6 class="${e}"><slot></slot></h6> `;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
r([
|
|
97
|
+
l({ reflect: !0 })
|
|
98
|
+
], h.prototype, "variant");
|
|
99
|
+
r([
|
|
100
|
+
l()
|
|
101
|
+
], h.prototype, "tagName");
|
|
102
|
+
r([
|
|
103
|
+
l()
|
|
104
|
+
], h.prototype, "wrap");
|
|
105
|
+
r([
|
|
106
|
+
l({ type: Boolean, reflect: !0 })
|
|
107
|
+
], h.prototype, "visuallyHidden");
|
|
108
|
+
customElements.get("ed-heading") === void 0 && customElements.define("ed-heading", h);
|