@brad-frost-web/eddie-recipes 0.72.1 → 0.74.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/band.CT3gnONU.js +61 -0
- package/cdn/chunks/{button.B5j2wzLD.js → button.BWiwycc8.js} +5 -5
- package/cdn/chunks/{single-field-form.BwIjKCRH.js → single-field-form.DRODCnD-.js} +1 -1
- package/cdn/chunks/{solve.DLo1Kxyk.js → solve.DNvK8XQX.js} +36 -27
- package/cdn/chunks/text-passage.C_gm5elr.js +128 -0
- package/cdn/recipes/common/example-form/example-form.js +33 -25
- package/cdn/recipes/common/newsletter-signup/newsletter-signup.js +1 -1
- package/cdn/recipes/common/page-banner/page-banner.js +1 -1
- package/cdn/recipes/common/project-card/project-card.js +1 -1
- package/cdn/recipes/common/promo-block/promo-block.js +1 -1
- package/cdn/recipes/common/search-form/search-form.js +1 -1
- package/cdn/recipes/common/site-header/site-header.js +1 -1
- package/cdn/recipes/common/stat-card/stat-card.js +1 -1
- package/cdn/recipes/common/todo-list/todo-list.js +1 -1
- package/cdn/recipes/common/transport-button/transport-button.js +1 -1
- package/cdn/recipes/common/vertical-site-header/vertical-site-header.js +1 -1
- package/cdn/recipes/common/video-card/video-card.js +137 -79
- package/cdn/recipes/common/visualzzz/visualzzz.js +78 -60
- package/cdn/recipes/tools/theme-customizer/derive.js +1 -1
- package/cdn/recipes/tools/theme-customizer/theme-customizer.js +4 -4
- package/cdn/recipes/tools/theme-customizer/token-sync.js +1 -1
- package/cdn/recipes/tools/viz-controls/viz-controls.js +2 -2
- package/cdn/recipes/we-are-here/chunky-checkbox/chunky-checkbox.js +20 -20
- package/cdn/recipes/we-are-here/wah-link-list/wah-link-list.js +12 -12
- package/cdn/recipes/we-are-here/wah-site-header/wah-site-header.js +1 -1
- package/package.json +1 -1
- package/recipes/common/example-form/example-form.d.ts.map +1 -1
- package/recipes/common/example-form/example-form.js +3 -2
- package/recipes/common/vertical-site-header/vertical-site-header.d.ts +1 -1
- package/recipes/common/video-card/video-card.d.ts +41 -10
- package/recipes/common/video-card/video-card.d.ts.map +1 -1
- package/recipes/common/video-card/video-card.js +116 -58
- package/recipes/common/visualzzz/visualzzz.d.ts +27 -1
- package/recipes/common/visualzzz/visualzzz.d.ts.map +1 -1
- package/recipes/common/visualzzz/visualzzz.js +81 -63
- package/recipes/tools/theme-customizer/theme-customizer.js +1 -1
- package/recipes/tools/viz-controls/viz-controls.js +3 -3
- package/recipes/we-are-here/chunky-checkbox/chunky-checkbox.js +24 -24
- package/recipes/we-are-here/wah-link-list/wah-link-list.js +3 -3
- package/cdn/chunks/band.BwNBFen0.js +0 -61
- package/cdn/chunks/text-passage.bamqcOUu.js +0 -128
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { r as i, b as m, n as d } from "./lit.BJDcdeQB.js";
|
|
2
|
+
import { E as b } from "./EdElement.Vr8clRZw.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([hidden]:not([hidden=until-found i])),[hidden]:not([hidden=until-found i]){display:none!important}: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{--ed-theme-button-primary-color-background-default: var(--ed-theme-color-background-default);--ed-theme-button-primary-color-background-hover: var(--ed-theme-color-background-default);--ed-theme-button-primary-color-background-active: var(--ed-theme-color-background-default);--ed-theme-button-primary-color-border-default: var(--ed-theme-color-background-default);--ed-theme-button-primary-color-border-hover: var(--ed-theme-color-content-default);--ed-theme-button-primary-color-border-active: var(--ed-theme-color-content-default);--ed-theme-button-primary-color-content-default: var(--ed-theme-color-content-default);--ed-theme-button-primary-color-content-hover: var(--ed-theme-color-content-default);--ed-theme-button-primary-color-content-active: var(--ed-theme-color-content-default);--ed-theme-link-color-content-default: var(--ed-theme-color-content-on-brand);--ed-theme-link-color-content-hover: var(--ed-theme-color-content-on-brand);--ed-theme-link-color-content-active: var(--ed-theme-color-content-on-brand);--ed-theme-link-color-content-visited: var(--ed-theme-color-content-on-brand);--ed-theme-link-color-content-knockout: var(--ed-theme-color-content-on-brand);--ed-theme-link-color-content-knockout-hover: var(--ed-theme-color-content-on-brand);--ed-theme-link-color-content-knockout-active: var(--ed-theme-color-content-on-brand);--ed-theme-link-color-content-knockout-visited: var(--ed-theme-color-content-on-brand);color:var(--ed-theme-color-content-on-brand);background:var(--ed-theme-color-background-brand)}.ed-c-band--brand-knockout{--ed-theme-button-primary-color-background-default: var(--ed-theme-color-background-default);--ed-theme-button-primary-color-background-hover: var(--ed-theme-color-background-default);--ed-theme-button-primary-color-background-active: var(--ed-theme-color-background-default);--ed-theme-button-primary-color-border-default: var(--ed-theme-color-background-default);--ed-theme-button-primary-color-border-hover: var(--ed-theme-color-content-default);--ed-theme-button-primary-color-border-active: var(--ed-theme-color-content-default);--ed-theme-button-primary-color-content-default: var(--ed-theme-color-content-default);--ed-theme-button-primary-color-content-hover: var(--ed-theme-color-content-default);--ed-theme-button-primary-color-content-active: var(--ed-theme-color-content-default);--ed-theme-link-color-content-default: var(--ed-theme-color-content-on-brand);--ed-theme-link-color-content-hover: var(--ed-theme-color-content-on-brand);--ed-theme-link-color-content-active: var(--ed-theme-color-content-on-brand);--ed-theme-link-color-content-visited: var(--ed-theme-color-content-on-brand);--ed-theme-link-color-content-knockout: var(--ed-theme-color-content-on-brand);--ed-theme-link-color-content-knockout-hover: var(--ed-theme-color-content-on-brand);--ed-theme-link-color-content-knockout-active: var(--ed-theme-color-content-on-brand);--ed-theme-link-color-content-knockout-visited: var(--ed-theme-color-content-on-brand);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
|
+
var u = Object.defineProperty, a = (n, o, c, s) => {
|
|
5
|
+
for (var e = void 0, r = n.length - 1, l; r >= 0; r--)
|
|
6
|
+
(l = n[r]) && (e = l(o, c, e) || e);
|
|
7
|
+
return e && u(o, c, e), e;
|
|
8
|
+
};
|
|
9
|
+
class t extends b {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments), this.scrim = !1, this.flush = !1;
|
|
12
|
+
}
|
|
13
|
+
static get styles() {
|
|
14
|
+
return i(h);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Nothing here inspects the light DOM any more (#1360), so a band renders
|
|
18
|
+
* identically on the server and in the browser.
|
|
19
|
+
*
|
|
20
|
+
* The background layer renders unconditionally: it is absolutely positioned
|
|
21
|
+
* and out of flow, so an empty one costs nothing, whereas gating it crashed
|
|
22
|
+
* under Lit SSR and — once guarded — dropped the author's slotted backdrop
|
|
23
|
+
* from the server-rendered markup.
|
|
24
|
+
*
|
|
25
|
+
* `--has-background` is gone entirely rather than guessed. Everything it did
|
|
26
|
+
* is either harmless on a plain band and now lives on the base class
|
|
27
|
+
* (`position`, `isolation`, the content layer's stacking), or belongs on the
|
|
28
|
+
* background layer itself (`overflow: hidden`, which clips the backdrop to
|
|
29
|
+
* the same box it always did). `--scrim` keys off the `scrim` property
|
|
30
|
+
* alone, which the server can read.
|
|
31
|
+
*/
|
|
32
|
+
render() {
|
|
33
|
+
const o = this.componentClassNames("ed-c-band", {
|
|
34
|
+
"ed-c-band--brand": this.variant === "brand",
|
|
35
|
+
"ed-c-band--brand-knockout": this.variant === "brand-knockout",
|
|
36
|
+
"ed-c-band--knockout": this.variant === "knockout",
|
|
37
|
+
"ed-c-band--scrim": this.scrim,
|
|
38
|
+
"ed-c-band--flush": this.flush
|
|
39
|
+
});
|
|
40
|
+
return m`
|
|
41
|
+
<div class="${o}">
|
|
42
|
+
<div class="ed-c-band__background" part="background" aria-hidden="true">
|
|
43
|
+
<slot name="background"></slot>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="ed-c-band__content" part="content">
|
|
46
|
+
<slot></slot>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
`;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
a([
|
|
53
|
+
d()
|
|
54
|
+
], t.prototype, "variant");
|
|
55
|
+
a([
|
|
56
|
+
d({ type: Boolean, reflect: !0 })
|
|
57
|
+
], t.prototype, "scrim");
|
|
58
|
+
a([
|
|
59
|
+
d({ type: Boolean })
|
|
60
|
+
], t.prototype, "flush");
|
|
61
|
+
customElements.get("ed-band") === void 0 && customElements.define("ed-band", t);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { E as h } from "./EdFormElement.BHTo4Ifh.js";
|
|
2
|
-
import { r as m, A as n, b as c, o as
|
|
2
|
+
import { r as m, A as n, b as c, o as b, n as r, e as p } from "./lit.BJDcdeQB.js";
|
|
3
3
|
import "./icon.D0LqQAM1.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}:host([hidden]:not([hidden=until-found i])),[hidden]:not([hidden=until-found i]){display:none!important}.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: var(--ed-theme-button-padding-block, .75rem);--ed-button-padding-inline: var(--ed-theme-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)}';
|
|
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}:host([hidden]:not([hidden=until-found i])),[hidden]:not([hidden=until-found i]){display:none!important}.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: var(--ed-theme-button-padding-block, .75rem);--ed-button-padding-inline: var(--ed-theme-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);min-block-size:1.5rem;min-inline-size:1.5rem}.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
5
|
var v = Object.defineProperty, o = (l, e, d, i) => {
|
|
6
|
-
for (var a = void 0, u = l.length - 1,
|
|
7
|
-
(
|
|
6
|
+
for (var a = void 0, u = l.length - 1, s; u >= 0; u--)
|
|
7
|
+
(s = l[u]) && (a = s(e, d, a) || a);
|
|
8
8
|
return a && v(e, d, a), a;
|
|
9
9
|
};
|
|
10
10
|
class t extends h {
|
|
@@ -76,7 +76,7 @@ class t extends h {
|
|
|
76
76
|
createAnchorButton(e) {
|
|
77
77
|
const d = this.getIconElement(), i = this.getSpinnerElement();
|
|
78
78
|
return c`
|
|
79
|
-
<a href="${
|
|
79
|
+
<a href="${b(this.href)}" class="${e}" target=${this.target} rel=${b(this.rel)}
|
|
80
80
|
aria-busy=${this.isLoading ? "true" : n} aria-disabled=${this.isLoading ? "true" : n}
|
|
81
81
|
aria-expanded=${this.ariaState(this.expanded)} aria-pressed=${this.ariaState(this.pressed)}
|
|
82
82
|
aria-keyshortcuts=${this.ariaState(this.keyShortcuts)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as h, A as f, o as d, b as c, n as t, e as m } from "./lit.BJDcdeQB.js";
|
|
2
2
|
import { u } from "./uid.ChSzTghf.js";
|
|
3
3
|
import { E as p } from "./EdElement.Vr8clRZw.js";
|
|
4
|
-
import "./button.
|
|
4
|
+
import "./button.BWiwycc8.js";
|
|
5
5
|
const b = '@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([hidden]:not([hidden=until-found i])),[hidden]:not([hidden=until-found i]){display:none!important}.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-single-field-form{width:100%}@media all and (min-width:48rem){.ed-c-single-field-form__body{display:flex}}.ed-c-single-field-form__body-inner{position:relative;flex:1}.ed-c-single-field-form__clear-button{--ed-theme-color-content-default: var(--ed-theme-form-color-content-default);--ed-theme-color-content-hover: var(--ed-theme-form-color-content-hover, var(--ed-theme-form-color-content-default));display:inline-flex;position:absolute;inset-block-start:50%;inset-inline-end:1rem;transform:translateY(-50%)}.ed-c-single-field-form__label{font-family:var(--ed-theme-typography-label-default-font-family);font-weight:var(--ed-theme-typography-label-default-font-weight);font-size:var(--ed-theme-typography-label-default-font-size);line-height:var(--ed-theme-typography-label-default-line-height);letter-spacing:var(--ed-theme-typography-label-default-letter-spacing);text-transform:var(--ed-theme-typography-label-default-text-transform);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:block;margin-block-end:.5rem}.ed-c-single-field-form__input{-webkit-appearance:none;width:100%;border-width:var(--ed-theme-border-width-sm);border-style:solid;border-color:var(--ed-theme-form-color-border-default);border-radius:var(--ed-theme-form-border-radius, var(--ed-theme-border-radius-sm));outline:none;padding:var(--ed-field-padding-block, .8125rem) var(--ed-field-padding-inline, .5rem);font-family:var(--ed-theme-typography-body-default-font-family);font-weight:var(--ed-theme-typography-body-default-font-weight);font-size:var(--ed-theme-typography-body-default-font-size);line-height:var(--ed-theme-typography-body-default-line-height);letter-spacing:var(--ed-theme-typography-body-default-letter-spacing);text-transform:var(--ed-theme-typography-body-default-text-transform);font-size:var(--ed-field-font-size, var(--ed-theme-typography-body-default-font-size));line-height:var(--ed-field-line-height, var(--ed-theme-typography-body-default-line-height));color:var(--ed-theme-form-color-content-default);background-color:var(--ed-theme-form-color-background-default);transition:border-color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease),background-color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease),box-shadow var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-single-field-form__input:hover{border-color:var(--ed-theme-color-border-brand);background-color:var(--ed-theme-form-color-background-hover)}.ed-c-single-field-form__input:focus:not(:disabled){border-color:var(--ed-theme-form-color-border-focus)}.ed-c-single-field-form__input:not(:placeholder-shown):focus:not(:disabled){border-color:var(--ed-theme-form-color-border-focus);background-color:var(--ed-theme-form-color-background-hover)}.ed-is-error .ed-c-single-field-form__input:not(:placeholder-shown):focus:not(:disabled){background-color:var(--ed-theme-color-background-utility-error)}.ed-is-success .ed-c-single-field-form__input:not(:placeholder-shown):focus:not(:disabled){background-color:var(--ed-theme-color-background-utility-success)}.ed-c-single-field-form__input:active:not(:disabled){border-color:var(--ed-theme-form-color-border-default)}.ed-c-single-field-form__input:disabled{background-color:var(--ed-theme-color-background-subtle);border-color:var(--ed-theme-color-border-disabled);color:var(--ed-theme-color-content-disabled);cursor:not-allowed}.ed-c-single-field-form__input:disabled~.ed-c-text-field__label,.ed-c-single-field-form__input:disabled:hover~.ed-c-text-field__label,.ed-c-single-field-form__input:disabled::placeholder{color:var(--ed-theme-color-content-disabled)}.ed-c-single-field-form__input:focus-visible{outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-default);outline-offset:var(--ed-theme-focus-ring-offset, .25rem)}.ed-c-single-field-form__input::placeholder{font-family:var(--ed-theme-typography-body-sm-font-family);font-weight:var(--ed-theme-typography-body-sm-font-weight);font-size:var(--ed-theme-typography-body-sm-font-size);line-height:var(--ed-theme-typography-body-sm-line-height);letter-spacing:var(--ed-theme-typography-body-sm-letter-spacing);text-transform:var(--ed-theme-typography-body-sm-text-transform);color:var(--ed-theme-form-color-content-subtle);transition:color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-is-error .ed-c-single-field-form__input::placeholder{color:var(--ed-theme-color-content-utility-error)}.ed-is-error .ed-c-single-field-form__input:hover::placeholder{color:var(--ed-theme-color-content-utility-error)}.ed-is-error .ed-c-single-field-form__input{color:var(--ed-theme-color-content-default);border-color:var(--ed-theme-color-border-utility-error);background-color:var(--ed-theme-color-background-utility-error)}.ed-is-error .ed-c-single-field-form__input:hover,.ed-is-error .ed-c-single-field-form__input:focus{background-color:var(--ed-theme-color-background-utility-error)}.ed-is-error .ed-c-single-field-form__input:not(:focus){color:var(--ed-theme-color-content-default)}.ed-is-success .ed-c-single-field-form__input{color:var(--ed-theme-color-content-default);border-color:var(--ed-theme-color-border-utility-success);background-color:var(--ed-theme-color-background-utility-success)}.ed-is-success .ed-c-single-field-form__input:hover,.ed-is-success .ed-c-single-field-form__input:focus{background-color:var(--ed-theme-color-background-utility-success)}.ed-c-single-field-form__input{display:block;width:100%}.ed-c-single-field-form--has-clear .ed-c-single-field-form__input{padding-inline-end:6rem}.ed-c-single-field-form__button{display:block;margin-block-start:1rem}@media all and (min-width:48rem){.ed-c-single-field-form__button{margin-block-start:0;margin-inline-start:1rem}}.ed-c-single-field-form--knockout .ed-c-single-field-form__label{color:var(--ed-theme-color-content-knockout)}.ed-c-single-field-form--knockout .ed-c-single-field-form__input{border-color:var(--ed-theme-color-border-subtle)}.ed-c-single-field-form--knockout .ed-c-single-field-form__input:focus:not(:disabled){outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-knockout);outline-offset:var(--ed-theme-focus-ring-offset, .25rem)}';
|
|
6
6
|
var g = Object.defineProperty, o = (l, r, n, y) => {
|
|
7
7
|
for (var i = void 0, a = l.length - 1, s; a >= 0; a--)
|
|
@@ -100,6 +100,8 @@ const R = 4.5, eo = 3, ao = 3, co = /* @__PURE__ */ new Set([
|
|
|
100
100
|
// The edge of the selected item in a set (#684): on a thumbnail or a card deck the fill stays as it
|
|
101
101
|
// was and the border alone says "this one", so it is a UI-component boundary at the 1.4.11 floor.
|
|
102
102
|
"selected border on page",
|
|
103
|
+
"brand fill on page",
|
|
104
|
+
"brand-knockout fill on page",
|
|
103
105
|
"progress primary fill on track",
|
|
104
106
|
"progress success fill on track",
|
|
105
107
|
"progress warning fill on track",
|
|
@@ -198,6 +200,13 @@ const R = 4.5, eo = 3, ao = 3, co = /* @__PURE__ */ new Set([
|
|
|
198
200
|
["on-brand text on brand-knockout hover bg", "color.content.on-brand", "color.background.brand-knockout-hover"],
|
|
199
201
|
["on-brand text on brand bg", "color.content.on-brand", "color.background.brand"],
|
|
200
202
|
["on-brand text on brand hover bg", "color.content.on-brand", "color.background.brand-hover"],
|
|
203
|
+
// A primary button on a brand fill takes the page's own colours (#2260, `brandSurfaceControls`), so
|
|
204
|
+
// its fill has to stand out from every brand fill it can sit on: a UI-component boundary, 3:1.
|
|
205
|
+
// Its label is `default text on page`, already gated above. Contrast is symmetric, so the brand
|
|
206
|
+
// fill is the foreground here: the solver moves the *foreground*, and a contrast fix belongs on
|
|
207
|
+
// the brand colour, never on the page background every other pair is measured against.
|
|
208
|
+
["brand fill on page", "color.background.brand", "color.background.default"],
|
|
209
|
+
["brand-knockout fill on page", "color.background.brand-knockout", "color.background.default"],
|
|
201
210
|
// The selected state (#684) — what `aria-current` / `aria-selected` announce. `content.on-selected`
|
|
202
211
|
// exists for one purpose, to sit on `background.selected` (the nav highlight, the selected tab);
|
|
203
212
|
// `content.selected` is the same state as text on the page (a tab label with an underline); and
|
|
@@ -271,7 +280,7 @@ const R = 4.5, eo = 3, ao = 3, co = /* @__PURE__ */ new Set([
|
|
|
271
280
|
// Gradients (#1693). Absent from every authored theme, so these are skipped
|
|
272
281
|
// there; a derived theme that carries one is held to both of its stops.
|
|
273
282
|
...fo
|
|
274
|
-
],
|
|
283
|
+
], ko = [
|
|
275
284
|
["button.color.content.default", "button.color.content.hover", "button.color.content.active"],
|
|
276
285
|
[
|
|
277
286
|
"button.primary.color.content.default",
|
|
@@ -279,9 +288,9 @@ const R = 4.5, eo = 3, ao = 3, co = /* @__PURE__ */ new Set([
|
|
|
279
288
|
"button.primary.color.content.active"
|
|
280
289
|
],
|
|
281
290
|
["button.danger.color.content.default", "button.danger.color.content.hover", "button.danger.color.content.active"]
|
|
282
|
-
],
|
|
291
|
+
], go = (() => {
|
|
283
292
|
const o = /* @__PURE__ */ new Map();
|
|
284
|
-
return
|
|
293
|
+
return ko.forEach((t, r) => t.forEach((e) => o.set(e, `link-group-${r}`))), (t) => o.get(t) ?? t;
|
|
285
294
|
})();
|
|
286
295
|
function yo(o) {
|
|
287
296
|
let t = 1 / 0, r = 400;
|
|
@@ -327,7 +336,7 @@ const D = [
|
|
|
327
336
|
{ key: "background-knockout", path: "color.background.knockout", label: "Background knockout" },
|
|
328
337
|
{ key: "background-brand", path: "color.background.brand", label: "Brand" },
|
|
329
338
|
{ key: "content-default", path: "color.content.default", label: "Content" },
|
|
330
|
-
{ key: "content-muted", path: "color.content.subtle", label: "Content
|
|
339
|
+
{ key: "content-muted", path: "color.content.subtle", label: "Content subtle" },
|
|
331
340
|
{ key: "content-knockout", path: "color.content.knockout", label: "Content knockout" },
|
|
332
341
|
{ key: "border-default", path: "color.border.default", label: "Border" },
|
|
333
342
|
...Array.from({ length: 8 }, (o, t) => ({
|
|
@@ -417,8 +426,8 @@ function Z(o, t) {
|
|
|
417
426
|
return e;
|
|
418
427
|
}
|
|
419
428
|
function vo(o, t = {}) {
|
|
420
|
-
const r = { ...t }, e = /* @__PURE__ */ new Set(), n = (u, d,
|
|
421
|
-
d && (r[u] = d,
|
|
429
|
+
const r = { ...t }, e = /* @__PURE__ */ new Set(), n = (u, d, k) => {
|
|
430
|
+
d && (r[u] = d, k && e.add(u));
|
|
422
431
|
}, a = o.color ?? {};
|
|
423
432
|
for (const u of D)
|
|
424
433
|
n(u.path, a[u.key], !0);
|
|
@@ -437,15 +446,15 @@ function vo(o, t = {}) {
|
|
|
437
446
|
const d = r[`color.background.accent-${u}`];
|
|
438
447
|
d && n(`color.content.on-accent-${u}`, P(d, [i, f]), !1);
|
|
439
448
|
}
|
|
440
|
-
const s = o.buttons ?? {},
|
|
441
|
-
if (
|
|
449
|
+
const s = o.buttons ?? {}, g = s["primary-bg"] ?? l;
|
|
450
|
+
if (g && c) {
|
|
442
451
|
const u = {
|
|
443
|
-
default:
|
|
444
|
-
hover: y(
|
|
445
|
-
active: y(
|
|
452
|
+
default: g,
|
|
453
|
+
hover: y(g, c, 0.06),
|
|
454
|
+
active: y(g, c, 0.1)
|
|
446
455
|
}, d = s["primary-content"] ?? Z(Object.values(u), [i, f]);
|
|
447
|
-
for (const [
|
|
448
|
-
n(`button.primary.color.background.${
|
|
456
|
+
for (const [k, $] of Object.entries(u))
|
|
457
|
+
n(`button.primary.color.background.${k}`, $, k === "default" && !!s["primary-bg"]), n(`button.primary.color.content.${k}`, d, !!s["primary-content"]), n(`button.color.background.${k}`, $, !1), n(`button.color.content.${k}`, d, !1);
|
|
449
458
|
}
|
|
450
459
|
return (s["bare-content"] ?? l) && n("button.bare.color.content.default", s["bare-content"] ?? l, !!s["bare-content"]), s["utility-error"] && n("utility.color.background.error", s["utility-error"], !0), { tokens: r, authored: e };
|
|
451
460
|
}
|
|
@@ -481,23 +490,23 @@ function z(o, t) {
|
|
|
481
490
|
function Po(o, t = {}) {
|
|
482
491
|
const { authored: r = /* @__PURE__ */ new Set(), scale: e = null } = t, n = { ...o }, a = /* @__PURE__ */ new Map(), c = [];
|
|
483
492
|
for (const [f, i, s] of N) {
|
|
484
|
-
const
|
|
485
|
-
if (
|
|
486
|
-
if (!A(
|
|
487
|
-
c.push({ label: f, reason: `not a hex color: ${A(
|
|
493
|
+
const g = n[i], u = n[s];
|
|
494
|
+
if (g == null || u == null) continue;
|
|
495
|
+
if (!A(g) || !A(u)) {
|
|
496
|
+
c.push({ label: f, reason: `not a hex color: ${A(g) ? `${s}="${u}"` : `${i}="${g}"`}` });
|
|
488
497
|
continue;
|
|
489
498
|
}
|
|
490
|
-
const d =
|
|
499
|
+
const d = go(i);
|
|
491
500
|
a.has(d) || a.set(d, { paths: /* @__PURE__ */ new Set(), constraints: [] });
|
|
492
|
-
const
|
|
493
|
-
|
|
501
|
+
const k = a.get(d);
|
|
502
|
+
k.paths.add(i), k.constraints.push({ label: f, bgPath: s, floor: ho(f, e) });
|
|
494
503
|
}
|
|
495
504
|
const l = [], h = [];
|
|
496
505
|
for (const { paths: f, constraints: i } of a.values()) {
|
|
497
|
-
const s = [...f],
|
|
506
|
+
const s = [...f], g = s[0], u = n[g], d = i.filter((b) => I(u, n[b.bgPath]) < b.floor);
|
|
498
507
|
if (d.length === 0) continue;
|
|
499
|
-
const
|
|
500
|
-
let p = z(
|
|
508
|
+
const k = v(u), $ = () => i.map((b) => ({ hex: n[b.bgPath], floor: b.floor, path: b.bgPath }));
|
|
509
|
+
let p = z(k, $());
|
|
501
510
|
const G = [];
|
|
502
511
|
if (p.fallback) {
|
|
503
512
|
const b = v(n["color.background.default"] ?? "#ffffff").l;
|
|
@@ -510,7 +519,7 @@ function Po(o, t = {}) {
|
|
|
510
519
|
const S = L({ ...B, l: _ });
|
|
511
520
|
if (S === n[m.bgPath]) continue;
|
|
512
521
|
n[m.bgPath] = S;
|
|
513
|
-
const C = z(
|
|
522
|
+
const C = z(k, $());
|
|
514
523
|
if (!C.fallback) {
|
|
515
524
|
p = C, G.push({
|
|
516
525
|
path: m.bgPath,
|
|
@@ -528,7 +537,7 @@ function Po(o, t = {}) {
|
|
|
528
537
|
if (l.push(...G.map((b) => ({ ...b, wasAuthored: !1, kind: "background" }))), p.fallback) {
|
|
529
538
|
for (const b of s) n[b] = p.fallback.hex;
|
|
530
539
|
h.push({
|
|
531
|
-
path:
|
|
540
|
+
path: g,
|
|
532
541
|
...s.length > 1 ? { alsoAppliedTo: s.slice(1) } : {},
|
|
533
542
|
from: u,
|
|
534
543
|
to: p.fallback.hex,
|
|
@@ -538,12 +547,12 @@ function Po(o, t = {}) {
|
|
|
538
547
|
} else {
|
|
539
548
|
for (const b of s) n[b] = p.hex;
|
|
540
549
|
p.hex !== u && l.push({
|
|
541
|
-
path:
|
|
550
|
+
path: g,
|
|
542
551
|
...s.length > 1 ? { alsoAppliedTo: s.slice(1) } : {},
|
|
543
552
|
kind: "foreground",
|
|
544
553
|
from: u,
|
|
545
554
|
to: p.hex,
|
|
546
|
-
lightnessDelta: Number((p.l -
|
|
555
|
+
lightnessDelta: Number((p.l - k.l).toFixed(4)),
|
|
547
556
|
wasAuthored: s.some((b) => r.has(b)),
|
|
548
557
|
fixed: d.map((b) => b.label)
|
|
549
558
|
});
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { r as s, b as d, n } from "./lit.BJDcdeQB.js";
|
|
2
|
+
import { E as g } from "./EdElement.Vr8clRZw.js";
|
|
3
|
+
const y = '@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([hidden]:not([hidden=until-found i])),[hidden]:not([hidden=until-found i]){display:none!important}:host{display:block}.ed-c-linelength-container{max-width:var(--ed-l-linelength-width, var(--ed-theme-size-measure, 68ch));margin-inline:auto}.ed-c-linelength-container--start{margin-inline-start:0;margin-inline-end:auto}';
|
|
4
|
+
var f = Object.defineProperty, c = (i, e, a, m) => {
|
|
5
|
+
for (var t = void 0, o = i.length - 1, r; o >= 0; o--)
|
|
6
|
+
(r = i[o]) && (t = r(e, a, t) || t);
|
|
7
|
+
return t && f(e, a, t), t;
|
|
8
|
+
};
|
|
9
|
+
class p extends g {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments), this.variant = "default";
|
|
12
|
+
}
|
|
13
|
+
static get styles() {
|
|
14
|
+
return s(y);
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
const e = this.componentClassNames("ed-c-linelength-container", {
|
|
18
|
+
"ed-c-linelength-container--start": this.variant === "start"
|
|
19
|
+
});
|
|
20
|
+
return d`
|
|
21
|
+
<div class="${e}">
|
|
22
|
+
<slot></slot>
|
|
23
|
+
</div>
|
|
24
|
+
`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
c([
|
|
28
|
+
n()
|
|
29
|
+
], p.prototype, "variant");
|
|
30
|
+
customElements.get("ed-linelength-container") === void 0 && customElements.define("ed-linelength-container", p);
|
|
31
|
+
const v = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}ed-text-passage{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);overflow-wrap:anywhere}ed-text-passage h1,ed-text-passage h2,ed-text-passage h3,ed-text-passage h4,ed-text-passage h5,ed-text-passage h6{text-wrap:var(--ed-heading-text-wrap, balance);margin-block-start:0}ed-text-passage 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-text-passage 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-text-passage h1{margin-block-end:.75rem}ed-text-passage 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-text-passage 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-text-passage h2{margin-block-end:.75rem}ed-text-passage 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-text-passage 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-text-passage h3{margin-block-end:.75rem}ed-text-passage 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-text-passage 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-text-passage h4{margin-block-end:.75rem}ed-text-passage 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);margin-block-end:.75rem}ed-text-passage 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);margin-block-end:.75rem}ed-text-passage ul,ed-text-passage ol{margin-block-start:0}ed-text-passage ul{margin-inline-start:1.25rem;padding-inline-start:0}ed-text-passage ul li::marker{color:var(--ed-theme-color-content-brand)}ed-text-passage ol{margin-inline-start:1.125rem;padding-inline-start:0}ed-text-passage a{color:var(--ed-theme-link-color-content-default);text-decoration:underline}ed-text-passage a:hover{color:var(--ed-theme-link-color-content-hover);background-color:transparent}ed-text-passage a:active{color:var(--ed-theme-link-color-content-active)}ed-text-passage a:visited{color:var(--ed-theme-link-color-content-visited)}ed-text-passage 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-text-passage li>a:only-child{display:inline-block;min-block-size:1.5rem;padding-block:.125rem}ed-text-passage h1 a,ed-text-passage h2 a,ed-text-passage h3 a,ed-text-passage h4 a,ed-text-passage h5 a,ed-text-passage h6 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-text-passage h1 a:hover,ed-text-passage h1 a:focus-visible,ed-text-passage h2 a:hover,ed-text-passage h2 a:focus-visible,ed-text-passage h3 a:hover,ed-text-passage h3 a:focus-visible,ed-text-passage h4 a:hover,ed-text-passage h4 a:focus-visible,ed-text-passage h5 a:hover,ed-text-passage h5 a:focus-visible,ed-text-passage h6 a:hover,ed-text-passage h6 a:focus-visible{color:inherit;border-block-end-color:var(--ed-heading-link-color-border, var(--ed-theme-color-border-brand))}ed-text-passage h1 a:focus-visible,ed-text-passage h2 a:focus-visible,ed-text-passage h3 a:focus-visible,ed-text-passage h4 a:focus-visible,ed-text-passage h5 a:focus-visible,ed-text-passage h6 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-text-passage p{margin-block-start:0;margin-block-end:1.5rem}ed-text-passage ed-figure,ed-text-passage figure{display:block;margin-inline:0;margin-block-start:0;margin-block-end:1.5rem}ed-text-passage figcaption{font-family:var(--ed-theme-typography-body-sm-font-family);font-weight:var(--ed-theme-typography-body-sm-font-weight);font-size:var(--ed-theme-typography-body-sm-font-size);line-height:var(--ed-theme-typography-body-sm-line-height);letter-spacing:var(--ed-theme-typography-body-sm-letter-spacing);text-transform:var(--ed-theme-typography-body-sm-text-transform);color:var(--ed-theme-color-content-subtle);margin-block-start:.5rem}ed-text-passage img{max-width:100%;height:auto;display:block;margin-block-end:1.5rem}ed-text-passage figure img{margin-block-end:0}ed-text-passage iframe{max-width:100%;display:block;border:0;margin-block-end:1.5rem}ed-text-passage code{font-family:var(--ed-theme-typography-code-font-family);font-size:.9em;background:var(--ed-theme-color-background-subtle);border-radius:var(--ed-theme-border-radius-sm);padding:.1em .3em}ed-text-passage pre{font-family:var(--ed-theme-typography-code-font-family);font-size:.9em;background:var(--ed-theme-color-background-knockout);color:var(--ed-theme-color-content-knockout);border-radius:var(--ed-theme-border-radius-md);padding:1rem;overflow-x:auto;margin-block-start:0;margin-block-end:1.5rem}ed-text-passage pre code{font-size:inherit;background:none;border-radius:0;padding:0;color:inherit}ed-text-passage blockquote{font-style:italic;border-inline-start:var(--ed-theme-border-width-lg) solid var(--ed-theme-color-border-brand);padding-inline-start:1rem;margin-inline-start:0;margin-block-end:1rem}ed-text-passage blockquote>cite,ed-text-passage blockquote>footer,ed-text-passage figure:has(>blockquote)>figcaption{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);font-style:normal;display:block;margin-block-start:0;color:var(--ed-theme-color-content-subtle)}ed-text-passage table{width:100%;border-collapse:collapse;margin-block-end:1.5rem}ed-text-passage th{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);padding:.5rem .75rem;text-align:start;border-block-end:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-default)}ed-text-passage td{padding:.5rem .75rem;border-block-end:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-default)}ed-text-passage kbd:not(ed-kbd kbd){font-family:var(--ed-theme-typography-code-font-family);font-size:.9em;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;vertical-align:baseline;min-width:1.25rem;padding:0 var(--ed-theme-spacing-xs);border:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-default);border-radius:var(--ed-theme-border-radius-sm);background:var(--ed-theme-color-background-subtle);color:var(--ed-theme-color-content-default)}ed-text-passage kbd:has(>kbd):not(ed-kbd kbd){gap:var(--ed-theme-spacing-xs);min-width:0;padding:0;border:0;background:none}ed-text-passage kbd kbd:not(ed-kbd kbd){font-size:inherit}ed-text-passage sup,ed-text-passage sub{font-size:.75em;line-height:0;position:relative;vertical-align:baseline}ed-text-passage sup{inset-block-start:-.5em}ed-text-passage sub{inset-block-end:-.25em}ed-text-passage hr{height:var(--ed-theme-border-width-sm);margin-inline:0;margin-block-start:0;margin-block-end:1.5rem;border:0;background:var(--ed-theme-color-background-subtle)}ed-text-passage dl{margin-block-start:0;margin-block-end:1.5rem}ed-text-passage dt{font-weight:bolder}ed-text-passage dd{margin-inline-start:1.25rem;margin-block-end:.5rem}ed-text-passage[size=xl]{font-family:var(--ed-theme-typography-body-xl-font-family);font-weight:var(--ed-theme-typography-body-xl-font-weight);font-size:var(--ed-theme-typography-body-xl-font-size);line-height:var(--ed-theme-typography-body-xl-line-height);letter-spacing:var(--ed-theme-typography-body-xl-letter-spacing);text-transform:var(--ed-theme-typography-body-xl-text-transform)}ed-text-passage[size=xl] ul{margin-inline-start:1.5rem;padding-inline-start:0}ed-text-passage[size=xl] ol{margin-inline-start:1.375rem;padding-inline-start:0}ed-text-passage[size=xl] dd{margin-inline-start:1.5rem}ed-text-passage[size=xl] p{margin-block-end:2rem}ed-text-passage[size=xl] h1{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-text-passage[size=xl] h1{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-text-passage[size=xl] h1{margin-block-end:.75rem}ed-text-passage[size=xl] h2{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-text-passage[size=xl] h2{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-text-passage[size=xl] h2{margin-block-end:.75rem}ed-text-passage[size=xl] h3{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-text-passage[size=xl] h3{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-text-passage[size=xl] h3{margin-block-end:.75rem}ed-text-passage[size=xl] h4{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-text-passage[size=xl] h4{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-text-passage[size=xl] h4{margin-block-end:.75rem}ed-text-passage[size=xl] h5{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-text-passage[size=xl] h5{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-text-passage[size=xl] h5{margin-block-end:.75rem}ed-text-passage[size=xl] h6{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-text-passage[size=xl] h6{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-text-passage[size=xl] h6{margin-block-end:.75rem}ed-text-passage[size=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-text-passage[size=lg] ul{margin-inline-start:1.375rem;padding-inline-start:0}ed-text-passage[size=lg] ol{margin-inline-start:1.25rem;padding-inline-start:0}ed-text-passage[size=lg] dd{margin-inline-start:1.375rem}ed-text-passage[size=lg] p{margin-block-end:1.75rem}ed-text-passage[size=lg] h1{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-text-passage[size=lg] h1{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-text-passage[size=lg] h1{margin-block-end:.75rem}ed-text-passage[size=lg] h2{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-text-passage[size=lg] h2{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-text-passage[size=lg] h2{margin-block-end:.75rem}ed-text-passage[size=lg] h3{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-text-passage[size=lg] h3{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-text-passage[size=lg] h3{margin-block-end:.75rem}ed-text-passage[size=lg] h4{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-text-passage[size=lg] h4{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-text-passage[size=lg] h4{margin-block-end:.75rem}ed-text-passage[size=lg] h5{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-text-passage[size=lg] h5{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-text-passage[size=lg] h5{margin-block-end:.75rem}ed-text-passage[size=lg] h6{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);margin-block-end:.75rem}ed-text-passage[size=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-text-passage[size=sm] ul{margin-inline-start:1.125rem;padding-inline-start:0}ed-text-passage[size=sm] ol{margin-inline-start:1rem;padding-inline-start:0}ed-text-passage[size=sm] dd{margin-inline-start:1.125rem}ed-text-passage[size=sm] p{margin-block-end:1rem}ed-text-passage[size=sm] blockquote>cite,ed-text-passage[size=sm] blockquote>footer,ed-text-passage[size=sm] figure:has(>blockquote)>figcaption{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)}ed-text-passage[size=sm] h1{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-text-passage[size=sm] h1{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-text-passage[size=sm] h1{margin-block-end:.75rem}ed-text-passage[size=sm] h2{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-text-passage[size=sm] h2{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-text-passage[size=sm] h2{margin-block-end:.75rem}ed-text-passage[size=sm] h3{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-text-passage[size=sm] h3{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-text-passage[size=sm] h3{margin-block-end:.75rem}ed-text-passage[size=sm] h4{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);margin-block-end:.75rem}ed-text-passage[knockout],ed-text-passage[inverted]{color:var(--ed-theme-color-content-knockout)}ed-text-passage[knockout] a,ed-text-passage[inverted] a{color:var(--ed-theme-link-color-content-knockout);text-decoration:underline}ed-text-passage[knockout] a:hover,ed-text-passage[inverted] a:hover{color:var(--ed-theme-link-color-content-knockout-hover);background-color:transparent}ed-text-passage[knockout] a:active,ed-text-passage[inverted] a:active{color:var(--ed-theme-link-color-content-knockout-active)}ed-text-passage[knockout] a:visited,ed-text-passage[inverted] a:visited{color:var(--ed-theme-link-color-content-knockout-visited)}ed-text-passage[knockout] a:focus-visible,ed-text-passage[inverted] a: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-text-passage[knockout] h1 a,ed-text-passage[knockout] h2 a,ed-text-passage[knockout] h3 a,ed-text-passage[knockout] h4 a,ed-text-passage[knockout] h5 a,ed-text-passage[knockout] h6 a,ed-text-passage[inverted] h1 a,ed-text-passage[inverted] h2 a,ed-text-passage[inverted] h3 a,ed-text-passage[inverted] h4 a,ed-text-passage[inverted] h5 a,ed-text-passage[inverted] h6 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-text-passage[knockout] h1 a:hover,ed-text-passage[knockout] h1 a:focus-visible,ed-text-passage[knockout] h2 a:hover,ed-text-passage[knockout] h2 a:focus-visible,ed-text-passage[knockout] h3 a:hover,ed-text-passage[knockout] h3 a:focus-visible,ed-text-passage[knockout] h4 a:hover,ed-text-passage[knockout] h4 a:focus-visible,ed-text-passage[knockout] h5 a:hover,ed-text-passage[knockout] h5 a:focus-visible,ed-text-passage[knockout] h6 a:hover,ed-text-passage[knockout] h6 a:focus-visible,ed-text-passage[inverted] h1 a:hover,ed-text-passage[inverted] h1 a:focus-visible,ed-text-passage[inverted] h2 a:hover,ed-text-passage[inverted] h2 a:focus-visible,ed-text-passage[inverted] h3 a:hover,ed-text-passage[inverted] h3 a:focus-visible,ed-text-passage[inverted] h4 a:hover,ed-text-passage[inverted] h4 a:focus-visible,ed-text-passage[inverted] h5 a:hover,ed-text-passage[inverted] h5 a:focus-visible,ed-text-passage[inverted] h6 a:hover,ed-text-passage[inverted] h6 a:focus-visible{color:inherit;border-block-end-color:var(--ed-heading-link-color-border, var(--ed-theme-color-border-brand-knockout))}ed-text-passage[knockout] h1 a:focus-visible,ed-text-passage[knockout] h2 a:focus-visible,ed-text-passage[knockout] h3 a:focus-visible,ed-text-passage[knockout] h4 a:focus-visible,ed-text-passage[knockout] h5 a:focus-visible,ed-text-passage[knockout] h6 a:focus-visible,ed-text-passage[inverted] h1 a:focus-visible,ed-text-passage[inverted] h2 a:focus-visible,ed-text-passage[inverted] h3 a:focus-visible,ed-text-passage[inverted] h4 a:focus-visible,ed-text-passage[inverted] h5 a:focus-visible,ed-text-passage[inverted] h6 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-text-passage[knockout] h1 a:focus-visible,ed-text-passage[knockout] h2 a:focus-visible,ed-text-passage[knockout] h3 a:focus-visible,ed-text-passage[knockout] h4 a:focus-visible,ed-text-passage[knockout] h5 a:focus-visible,ed-text-passage[knockout] h6 a:focus-visible,ed-text-passage[inverted] h1 a:focus-visible,ed-text-passage[inverted] h2 a:focus-visible,ed-text-passage[inverted] h3 a:focus-visible,ed-text-passage[inverted] h4 a:focus-visible,ed-text-passage[inverted] h5 a:focus-visible,ed-text-passage[inverted] h6 a: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-text-passage[knockout] ul li::marker,ed-text-passage[inverted] ul li::marker{color:var(--ed-theme-color-content-brand-knockout)}ed-text-passage[knockout] blockquote,ed-text-passage[inverted] blockquote{border-inline-start-color:var(--ed-theme-color-border-brand-knockout);color:var(--ed-theme-color-content-knockout)}ed-text-passage[knockout] blockquote>cite,ed-text-passage[knockout] blockquote>footer,ed-text-passage[knockout] figure:has(>blockquote)>figcaption,ed-text-passage[inverted] blockquote>cite,ed-text-passage[inverted] blockquote>footer,ed-text-passage[inverted] figure:has(>blockquote)>figcaption{color:var(--ed-theme-color-content-knockout)}ed-text-passage[knockout] kbd:not(ed-kbd kbd),ed-text-passage[inverted] kbd:not(ed-kbd kbd){border-color:var(--ed-theme-color-border-knockout);background:transparent;color:var(--ed-theme-color-content-knockout)}ed-text-passage[knockout] figcaption,ed-text-passage[inverted] figcaption{color:var(--ed-theme-color-content-knockout)}ed-text-passage[knockout] code:not(pre code),ed-text-passage[inverted] code:not(pre code){border:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-knockout);background:transparent;color:var(--ed-theme-color-content-knockout)}ed-text-passage[knockout] pre,ed-text-passage[inverted] pre{border:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-knockout)}ed-text-passage :last-child,ed-text-passage[size] :last-child{margin-block-end:0}ed-text-passage[enhance][hidden]:not([hidden=until-found i]),ed-text-passage[enhance] [hidden]:not([hidden=until-found i]){display:none!important}', b = '@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([hidden]:not([hidden=until-found i])),[hidden]:not([hidden=until-found i]){display:none!important}:host{display:block;overflow-wrap:anywhere}';
|
|
32
|
+
var x = Object.defineProperty, h = (i, e, a, m) => {
|
|
33
|
+
for (var t = void 0, o = i.length - 1, r; o >= 0; o--)
|
|
34
|
+
(r = i[o]) && (t = r(e, a, t) || t);
|
|
35
|
+
return t && x(e, a, t), t;
|
|
36
|
+
};
|
|
37
|
+
class l extends g {
|
|
38
|
+
constructor() {
|
|
39
|
+
super(...arguments), this.size = void 0;
|
|
40
|
+
}
|
|
41
|
+
static get styles() {
|
|
42
|
+
return s(b);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Add the light dom styles when this component is connected to a page.
|
|
46
|
+
*
|
|
47
|
+
* This runs client-side only, so a page with JS off — or one painted before
|
|
48
|
+
* hydration — shows unstyled prose. Consumers that care about first paint
|
|
49
|
+
* should also link or inline the static artifact the package ships at
|
|
50
|
+
* `components/text-passage/text-passage-light-dom.css` (#1468). The id guard
|
|
51
|
+
* below makes loading both harmless: same rules, injected at most once.
|
|
52
|
+
*/
|
|
53
|
+
connectedCallback() {
|
|
54
|
+
if (super.connectedCallback(), !document.head.querySelector("#ed-text-passage-styles")) {
|
|
55
|
+
const a = document.createElement("style");
|
|
56
|
+
a.id = "ed-text-passage-styles", a.innerHTML = v, document.head.appendChild(a);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Make prose code blocks keyboard-reachable.
|
|
61
|
+
*
|
|
62
|
+
* `pre` scrolls horizontally (#1399) so a long line cannot force the whole
|
|
63
|
+
* passage wider than its container. That makes it a **scrollable region**,
|
|
64
|
+
* and a scrollable region a keyboard user cannot reach is WCAG 2.1.1 — axe's
|
|
65
|
+
* `scrollable-region-focusable`, which render-check flagged the moment the
|
|
66
|
+
* rule landed.
|
|
67
|
+
*
|
|
68
|
+
* `ed-code` answers this with `tabindex="0"` on the `<pre>` it renders
|
|
69
|
+
* itself. A prose `<pre>` arrives from a CMS or a markdown renderer and
|
|
70
|
+
* cannot be asked to carry one, so the component adds it — the same fix, at
|
|
71
|
+
* the only layer that can apply it.
|
|
72
|
+
*
|
|
73
|
+
* 1) Only when the author has not expressed an opinion. An explicit
|
|
74
|
+
* `tabindex` (including `-1`) is a deliberate choice to override.
|
|
75
|
+
* 2) Applied unconditionally rather than by measuring `scrollWidth`: whether
|
|
76
|
+
* a block overflows depends on the viewport and on fonts that may not
|
|
77
|
+
* have loaded yet, so a measurement here would be a race. A focusable
|
|
78
|
+
* `<pre>` that happens not to scroll costs one tab stop; a scrolling one
|
|
79
|
+
* that is not focusable is a barrier.
|
|
80
|
+
*/
|
|
81
|
+
makeCodeBlocksFocusable() {
|
|
82
|
+
this.querySelectorAll("pre").forEach((e) => {
|
|
83
|
+
e.hasAttribute("tabindex") || e.setAttribute("tabindex", "0");
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The passage's content is the author's light DOM, which it does not own and
|
|
88
|
+
* which can change at any time — a CMS hydrating, a markdown renderer
|
|
89
|
+
* streaming, a framework patching. `slotchange` is what makes the pass above
|
|
90
|
+
* run for content that arrives after the first paint as well as for what was
|
|
91
|
+
* there at mount.
|
|
92
|
+
*/
|
|
93
|
+
onSlotChange() {
|
|
94
|
+
this.makeCodeBlocksFocusable();
|
|
95
|
+
}
|
|
96
|
+
render() {
|
|
97
|
+
const e = this.componentClassNames("ed-c-text-passage", {
|
|
98
|
+
"ed-c-text-passage--knockout": this.knockout || this.inverted,
|
|
99
|
+
"ed-c-text-passage--xl": this.size === "xl",
|
|
100
|
+
"ed-c-text-passage--lg": this.size === "lg",
|
|
101
|
+
"ed-c-text-passage--sm": this.size === "sm"
|
|
102
|
+
});
|
|
103
|
+
return this.capLinelength ? d`
|
|
104
|
+
<div class="${e}">
|
|
105
|
+
<ed-linelength-container>
|
|
106
|
+
<slot @slotchange=${this.onSlotChange}></slot>
|
|
107
|
+
</ed-linelength-container>
|
|
108
|
+
</div>
|
|
109
|
+
` : d`
|
|
110
|
+
<div class="${e}">
|
|
111
|
+
<slot @slotchange=${this.onSlotChange}></slot>
|
|
112
|
+
</div>
|
|
113
|
+
`;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
h([
|
|
117
|
+
n({ type: Boolean })
|
|
118
|
+
], l.prototype, "knockout");
|
|
119
|
+
h([
|
|
120
|
+
n({ type: Boolean })
|
|
121
|
+
], l.prototype, "inverted");
|
|
122
|
+
h([
|
|
123
|
+
n()
|
|
124
|
+
], l.prototype, "size");
|
|
125
|
+
h([
|
|
126
|
+
n({ type: Boolean })
|
|
127
|
+
], l.prototype, "capLinelength");
|
|
128
|
+
customElements.get("ed-text-passage") === void 0 && customElements.define("ed-text-passage", l);
|