@brad-frost-web/eddie-recipes 0.67.0 → 0.68.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.
@@ -1,37 +1,30 @@
1
1
  import { r as l, b as g, n as c } from "./lit.B6pFiYzB.js";
2
2
  import { E as p } from "./EdElement.BcrGsPCr.js";
3
- const m = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block;height:100%}.ed-c-card{--_ed-card-padding: var(--ed-card-padding, var(--ed-theme-spacing-md));display:flex;flex-direction:column;height:100%;width:100%;border-width:var(--ed-theme-border-width-sm);border-style:solid;border-color:var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-md);box-shadow:var(--ed-theme-box-shadow-md);color:var(--ed-theme-color-content-on-surface);background:var(--ed-theme-color-background-surface)}.ed-c-card--subtle{border-color:transparent;box-shadow:none;color:var(--ed-theme-color-content-default);background:var(--ed-theme-color-background-subtle)}.ed-c-card--strong{border-color:transparent;box-shadow:none;color:var(--ed-theme-color-content-knockout);background:var(--ed-theme-color-background-knockout)}.ed-c-card--plain{border:0;box-shadow:none;color:var(--ed-theme-color-content-default);background:none}.ed-c-card--padding-none{--_ed-card-padding: var(--ed-card-padding, 0)}.ed-c-card--padding-sm{--_ed-card-padding: var(--ed-card-padding, var(--ed-theme-spacing-sm))}.ed-c-card--padding-lg{--_ed-card-padding: var(--ed-card-padding, var(--ed-theme-spacing-lg))}.ed-c-card--align-center{text-align:center;align-items:center;justify-content:center}::slotted(img){width:100%}.ed-c-card__header{display:block;flex:none}.ed-c-card__header ::slotted(:not(img):not(picture):not(video):not(ed-image):not(ed-figure)){margin-block:var(--_ed-card-padding) 0!important;margin-inline:var(--_ed-card-padding)!important}.ed-c-card__body{display:flex;flex-direction:column;gap:var(--ed-card-body-gap, var(--ed-theme-spacing-flow));padding:var(--_ed-card-padding);flex:1 0 auto}.ed-c-card__footer{display:block;flex:none}.ed-c-card__footer ::slotted(*){display:inline-block;margin:var(--_ed-card-padding)!important}';
4
- var h = Object.defineProperty, i = (o, d, r, t) => {
5
- for (var e = void 0, n = o.length - 1, s; n >= 0; n--)
6
- (s = o[n]) && (e = s(d, r, e) || e);
7
- return e && h(d, r, e), e;
3
+ const h = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block;height:100%}.ed-c-card{--_ed-card-padding: var(--ed-card-padding, var(--ed-theme-spacing-md));display:flex;flex-direction:column;height:100%;width:100%;border-width:var(--ed-theme-border-width-sm);border-style:solid;border-color:var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-md);box-shadow:var(--ed-theme-box-shadow-md);color:var(--ed-theme-color-content-on-surface);background:var(--ed-theme-color-background-surface)}.ed-c-card--subtle{border-color:transparent;box-shadow:none;color:var(--ed-theme-color-content-default);background:var(--ed-theme-color-background-subtle)}.ed-c-card--strong{border-color:transparent;box-shadow:none;color:var(--ed-theme-color-content-knockout);background:var(--ed-theme-color-background-knockout)}.ed-c-card--plain{border:0;box-shadow:none;color:var(--ed-theme-color-content-default);background:none}.ed-c-card--padding-none{--_ed-card-padding: var(--ed-card-padding, 0)}.ed-c-card--padding-sm{--_ed-card-padding: var(--ed-card-padding, var(--ed-theme-spacing-sm))}.ed-c-card--padding-lg{--_ed-card-padding: var(--ed-card-padding, var(--ed-theme-spacing-lg))}.ed-c-card--align-center{text-align:center;align-items:center;justify-content:center}::slotted(img){width:100%}.ed-c-card__header{display:block;flex:none}.ed-c-card__header ::slotted(:not(img):not(picture):not(video):not(ed-image):not(ed-figure)){margin-block:var(--_ed-card-padding) 0!important;margin-inline:var(--_ed-card-padding)!important}.ed-c-card__body{display:flex;flex-direction:column;gap:var(--ed-card-body-gap, var(--ed-theme-spacing-flow));padding:var(--_ed-card-padding);flex:1 0 auto}.ed-c-card__footer{display:block;flex:none}.ed-c-card__footer ::slotted(*){display:inline-block;margin:var(--_ed-card-padding)!important}.ed-c-card{position:relative;--_ed-card-actions-inset: var(--_ed-card-padding);--_ed-card-actions-gutter: calc( var(--_ed-card-padding) + var(--ed-card-actions-gutter, 2rem) )}.ed-c-card--padding-none{--_ed-card-actions-inset: .5rem;--_ed-card-actions-gutter: var(--ed-card-actions-gutter, 2rem)}.ed-c-card__actions{position:absolute;inset-block-start:var(--_ed-card-actions-inset);inset-inline-end:var(--_ed-card-actions-inset);display:flex;align-items:center;gap:var(--ed-theme-spacing-inline)}.ed-c-card--has-actions .ed-c-card__body{padding-inline-end:var(--_ed-card-actions-gutter)}';
4
+ var m = Object.defineProperty, i = (o, d, a, n) => {
5
+ for (var e = void 0, r = o.length - 1, s; r >= 0; r--)
6
+ (s = o[r]) && (e = s(d, a, e) || e);
7
+ return e && m(d, a, e), e;
8
8
  };
9
- class a extends p {
9
+ class t extends p {
10
+ constructor() {
11
+ super(...arguments), this.onActionsSlotChange = () => {
12
+ this.requestUpdate();
13
+ };
14
+ }
10
15
  static get styles() {
11
- return l(m);
16
+ return l(h);
12
17
  }
13
- /**
14
- * The header and footer regions render unconditionally.
15
- *
16
- * They were gated behind `slotNotEmpty()`, which crashes under Lit SSR
17
- * (#1360): the server has no light DOM to inspect and no Lit SSR API exposes
18
- * one, so the gate could only ever guess — and guessing "empty" dropped the
19
- * author's slotted media and actions from the server-rendered markup.
20
- *
21
- * Rendering them always is safe because neither costs anything when empty:
22
- * `__header` has no padding, and `__footer`'s padding moved onto its slotted
23
- * content (see `card.scss`), so an empty region is a zero-height block. The
24
- * server and the browser produce the same shadow tree.
25
- */
26
18
  render() {
27
- const d = this.variant === "bare", r = d ? "plain" : this.variant, t = this.padding ?? (d ? "none" : void 0), e = this.componentClassNames("ed-c-card", {
19
+ const d = this.variant === "bare", a = d ? "plain" : this.variant, n = this.padding ?? (d ? "none" : void 0), e = this.slotNotEmpty("actions", !0) === !0, r = this.componentClassNames("ed-c-card", {
20
+ "ed-c-card--has-actions": e,
28
21
  "ed-c-card--bare": d,
29
- [`ed-c-card--${r}`]: !!r,
30
- [`ed-c-card--padding-${t}`]: !!t,
22
+ [`ed-c-card--${a}`]: !!a,
23
+ [`ed-c-card--padding-${n}`]: !!n,
31
24
  "ed-c-card--align-center": this.align === "center"
32
25
  });
33
26
  return g`
34
- <div class="${e}">
27
+ <div class="${r}">
35
28
  <div class="ed-c-card__header">
36
29
  <slot name="header"></slot>
37
30
  </div>
@@ -41,17 +34,20 @@ class a extends p {
41
34
  <div class="ed-c-card__footer">
42
35
  <slot name="footer"></slot>
43
36
  </div>
37
+ <div class="ed-c-card__actions">
38
+ <slot name="actions" @slotchange=${this.onActionsSlotChange}></slot>
39
+ </div>
44
40
  </div>
45
41
  `;
46
42
  }
47
43
  }
48
44
  i([
49
45
  c({ reflect: !0 })
50
- ], a.prototype, "variant");
46
+ ], t.prototype, "variant");
51
47
  i([
52
48
  c({ reflect: !0 })
53
- ], a.prototype, "padding");
49
+ ], t.prototype, "padding");
54
50
  i([
55
51
  c()
56
- ], a.prototype, "align");
57
- customElements.get("ed-card") === void 0 && customElements.define("ed-card", a);
52
+ ], t.prototype, "align");
53
+ customElements.get("ed-card") === void 0 && customElements.define("ed-card", t);
@@ -1,5 +1,5 @@
1
1
  import { E as c } from "../../../chunks/EdElement.BcrGsPCr.js";
2
- import "../../../chunks/card.DARUvAye.js";
2
+ import "../../../chunks/card.CKX503dH.js";
3
3
  import "../../../chunks/heading.CmKX6wjQ.js";
4
4
  import { r as p, A as n, b as o, n as d } from "../../../chunks/lit.B6pFiYzB.js";
5
5
  const f = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block;height:100%}.ed-r-article-card__timestamp{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);margin:0;margin-block-end:.25rem;color:var(--ed-theme-color-content-subtle)}.ed-r-article-card__title{display:block}.ed-r-article-card__title:not(:last-child){margin-block-end:.5rem}.ed-r-article-card__title ::slotted(*){display:block;margin-block:0}.ed-r-article-card__excerpt{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);display:block}.ed-r-article-card__excerpt ::slotted(*){margin-block-start:0}.ed-r-article-card__excerpt ::slotted(:last-child){margin-block-end:0}';
@@ -1,5 +1,5 @@
1
1
  import { E as m } from "../../../chunks/EdElement.BcrGsPCr.js";
2
- import "../../../chunks/card.DARUvAye.js";
2
+ import "../../../chunks/card.CKX503dH.js";
3
3
  import "../../../chunks/icon.D8JzjeAU.js";
4
4
  import { r as l, A as d, b as h, n as o } from "../../../chunks/lit.B6pFiYzB.js";
5
5
  const p = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block;height:100%}.ed-r-icon-card__icon{--ed-icon-height: 2rem;--ed-icon-width: 2rem;color:var(--ed-theme-color-content-brand)}.ed-r-icon-card--size-sm .ed-r-icon-card__icon{--ed-icon-height: 1.5rem;--ed-icon-width: 1.5rem}.ed-r-icon-card--size-lg .ed-r-icon-card__icon{--ed-icon-height: 3rem;--ed-icon-width: 3rem}';
@@ -1,59 +1,73 @@
1
- import { E as h } from "../../../chunks/EdElement.BcrGsPCr.js";
1
+ import { E as p } from "../../../chunks/EdElement.BcrGsPCr.js";
2
2
  import "../../../chunks/heading.CmKX6wjQ.js";
3
3
  import "../../../chunks/text-passage.S8zUd08L.js";
4
- import { r as p, A as c, b as d, n as t } from "../../../chunks/lit.B6pFiYzB.js";
5
- const m = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block;height:100%}.ed-r-project-card{display:flex;flex-direction:column;height:100%;border-width:var(--ed-theme-border-width-sm);border-style:solid;border-color:var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-md);box-shadow:var(--ed-theme-box-shadow-md);background:var(--ed-theme-color-background-default);overflow:hidden}.ed-r-project-card__media{flex:none}.ed-r-project-card__img{display:block;width:100%;height:auto;object-fit:cover}.ed-r-project-card__body{display:flex;flex-direction:column;flex:1 0 auto;padding:1.5rem;gap:.5rem}.ed-r-project-card__title{display:block}.ed-r-project-card__link{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-r-project-card__link:hover,.ed-r-project-card__link:focus-visible{color:inherit;border-block-end-color:var(--ed-heading-link-color-border, var(--ed-theme-color-border-brand))}.ed-r-project-card__link: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-r-project-card__description{display:block}';
6
- var b = Object.defineProperty, o = (a, i, l, f) => {
7
- for (var r = void 0, s = a.length - 1, n; s >= 0; s--)
8
- (n = a[s]) && (r = n(i, l, r) || r);
9
- return r && b(i, l, r), r;
4
+ import { r as m, A as c, b as i, n as r } from "../../../chunks/lit.B6pFiYzB.js";
5
+ const b = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block;height:100%}.ed-r-project-card{display:flex;flex-direction:column;height:100%;border-width:var(--ed-theme-border-width-sm);border-style:solid;border-color:var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-md);box-shadow:var(--ed-theme-box-shadow-md);background:var(--ed-theme-color-background-default);overflow:hidden}.ed-r-project-card__media{flex:none}.ed-r-project-card__img{display:block;width:100%;height:auto;object-fit:cover}.ed-r-project-card__body{display:flex;flex-direction:column;flex:1 0 auto;padding:1.5rem;gap:.5rem}.ed-r-project-card__title{display:block}.ed-r-project-card__link{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-r-project-card__link:hover,.ed-r-project-card__link:focus-visible{color:inherit;border-block-end-color:var(--ed-heading-link-color-border, var(--ed-theme-color-border-brand))}.ed-r-project-card__link: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-r-project-card__description{display:block}';
6
+ var g = Object.defineProperty, t = (n, o, a, _) => {
7
+ for (var d = void 0, s = n.length - 1, h; s >= 0; s--)
8
+ (h = n[s]) && (d = h(o, a, d) || d);
9
+ return d && g(o, a, d), d;
10
10
  };
11
- class e extends h {
11
+ const e = class l extends p {
12
12
  constructor() {
13
- super(...arguments), this.title = "", this.headingTagName = "h3";
13
+ super(...arguments), this.text = "", this.title = "", this.headingTagName = "h3";
14
14
  }
15
15
  static get styles() {
16
- return p(m);
16
+ return m(b);
17
+ }
18
+ static {
19
+ this.warnedTitle = !1;
20
+ }
21
+ /** The heading: `text`, falling back to the deprecated `title`. */
22
+ get heading() {
23
+ return this.text ? this.text : (this.title && !l.warnedTitle && (l.warnedTitle = !0, console.warn(
24
+ "<ed-r-project-card>: `title` is deprecated (removal 2026-12-21) — use `text`. `title` is a global HTML attribute and gives the whole card a tooltip. Card:",
25
+ this
26
+ )), this.title);
17
27
  }
18
28
  render() {
19
- const i = this.componentClassNames("ed-r-project-card", {
29
+ const o = this.heading, a = this.componentClassNames("ed-r-project-card", {
20
30
  "ed-r-project-card--has-link": !!this.href
21
31
  });
22
- return d`
23
- <div class="${i}">
24
- ${this.imgSrc ? d`<div class="ed-r-project-card__media">
32
+ return i`
33
+ <div class="${a}">
34
+ ${this.imgSrc ? i`<div class="ed-r-project-card__media">
25
35
  <img class="ed-r-project-card__img" src="${this.imgSrc}" alt="${this.imgAlt ?? ""}" />
26
36
  </div>` : c}
27
37
  <div class="ed-r-project-card__body">
28
- ${this.title ? d`<ed-heading class="ed-r-project-card__title" tagName="${this.headingTagName}" variant="headline-sm">
29
- ${this.href ? d`<a class="ed-r-project-card__link" href="${this.href}">${this.title}</a>` : this.title}
38
+ ${o ? i`<ed-heading class="ed-r-project-card__title" tagName="${this.headingTagName}" variant="headline-sm">
39
+ ${this.href ? i`<a class="ed-r-project-card__link" href="${this.href}">${o}</a>` : o}
30
40
  </ed-heading>` : c}
31
- ${this.description ? d`<ed-text-passage class="ed-r-project-card__description">${this.description}</ed-text-passage>` : c}
41
+ ${this.description ? i`<ed-text-passage class="ed-r-project-card__description">${this.description}</ed-text-passage>` : c}
32
42
  <slot></slot>
33
43
  </div>
34
44
  </div>
35
45
  `;
36
46
  }
37
- }
38
- o([
39
- t()
47
+ };
48
+ t([
49
+ r()
50
+ ], e.prototype, "text");
51
+ t([
52
+ r()
40
53
  ], e.prototype, "title");
41
- o([
42
- t()
54
+ t([
55
+ r()
43
56
  ], e.prototype, "description");
44
- o([
45
- t()
57
+ t([
58
+ r()
46
59
  ], e.prototype, "imgSrc");
47
- o([
48
- t()
60
+ t([
61
+ r()
49
62
  ], e.prototype, "imgAlt");
50
- o([
51
- t()
63
+ t([
64
+ r()
52
65
  ], e.prototype, "headingTagName");
53
- o([
54
- t()
66
+ t([
67
+ r()
55
68
  ], e.prototype, "href");
56
- customElements.get("ed-r-project-card") === void 0 && customElements.define("ed-r-project-card", e);
69
+ let f = e;
70
+ customElements.get("ed-r-project-card") === void 0 && customElements.define("ed-r-project-card", f);
57
71
  export {
58
- e as EdRProjectCard
72
+ f as EdRProjectCard
59
73
  };
@@ -1,5 +1,5 @@
1
1
  import { E as c } from "../../../chunks/EdElement.BcrGsPCr.js";
2
- import "../../../chunks/card.DARUvAye.js";
2
+ import "../../../chunks/card.CKX503dH.js";
3
3
  import "../../../chunks/heading.CmKX6wjQ.js";
4
4
  import { r as g, b as a, A as n, n as o } from "../../../chunks/lit.B6pFiYzB.js";
5
5
  const y = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block;height:100%}.ed-r-speaking-card__meta{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);display:flex;flex-wrap:wrap;gap:.125rem;margin:0;margin-block-end:.25rem;color:var(--ed-theme-color-content-subtle)}.ed-r-speaking-card__separator{color:var(--ed-theme-color-content-subtle)}.ed-r-speaking-card__title{display:block}.ed-r-speaking-card__title:not(:last-child){margin-block-end:.25rem}.ed-r-speaking-card__title ::slotted(*){display:block;margin-block:0}.ed-r-speaking-card__note{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);display:block}.ed-r-speaking-card__note:not(:last-child){margin-block-end:.25rem}.ed-r-speaking-card__note ::slotted(*){margin-block-start:0;margin-block-end:.25rem}.ed-r-speaking-card__note ::slotted(:last-child){margin-block-end:0}.ed-r-speaking-card__materials{display:block}';
@@ -1,5 +1,5 @@
1
1
  import { E as g } from "../../../chunks/EdElement.BcrGsPCr.js";
2
- import "../../../chunks/card.DARUvAye.js";
2
+ import "../../../chunks/card.CKX503dH.js";
3
3
  import "../../../chunks/heading.CmKX6wjQ.js";
4
4
  import "../../../chunks/icon.D8JzjeAU.js";
5
5
  import "../../../chunks/text-passage.S8zUd08L.js";
@@ -234,20 +234,25 @@ class S extends P {
234
234
  * used on its own — a label on a card, a status in a cell — and a `listitem`
235
235
  * with no list is its own axe violation (`aria-required-parent`), so claiming
236
236
  * the role unconditionally trades one failure for another.
237
+ *
238
+ * **`ed-tag-list` grants the role itself; the tag does not claim it there.**
239
+ * The tag used to match its parent's tag name, `ED-TAG-LIST` — but a list
240
+ * that was never registered has no shadow `<ul>` and no role, so every tag
241
+ * inside it became an orphaned listitem, a critical axe failure on every
242
+ * page of a consumer that loaded `ed-tag` (via `ed-badge`) without the list
243
+ * (#2098). Only a registered list knows its `<ul>` exists, so the list owns
244
+ * the claim. Here the tag handles light-DOM lists only.
237
245
  */
238
246
  connectedCallback() {
239
247
  super.connectedCallback(), !this.hasAttribute("role") && this.hasListParent() && this.setAttribute("role", "listitem");
240
248
  }
241
249
  /**
242
- * Whether this tag is slotted into something that forms a list.
243
- *
244
- * `ed-tag-list` renders its `<ul>` inside its own shadow root, so the tag's
245
- * `parentElement` is the `ed-tag-list` host rather than the `<ul>` — the list
246
- * is not reachable with `closest('ul, ol')`.
250
+ * Whether this tag's parent is a list in the light DOM. `ed-tag-list` is
251
+ * deliberately absent — it grants the role from its own side (#2098).
247
252
  */
248
253
  hasListParent() {
249
254
  const e = this.parentElement;
250
- return e ? e.tagName === "ED-TAG-LIST" || e.tagName === "UL" || e.tagName === "OL" || e.getAttribute("role") === "list" : !1;
255
+ return e ? e.tagName === "UL" || e.tagName === "OL" || e.getAttribute("role") === "list" : !1;
251
256
  }
252
257
  /** The tag's label, for event payloads and the dismiss button's name. */
253
258
  get label() {
@@ -310,11 +315,24 @@ class ye extends P {
310
315
  static get styles() {
311
316
  return O(fe);
312
317
  }
318
+ /**
319
+ * Give each slotted `ed-tag` the `listitem` role its place in the `<ul>`
320
+ * implies. The tags sit in light DOM and the `<ul>` in this shadow root, so
321
+ * the host is the only element where the role can land. It is granted here,
322
+ * by the list, because only a list that has actually rendered its `<ul>` can
323
+ * vouch for the parent a listitem requires (#2098). An author-set role is
324
+ * left alone.
325
+ */
326
+ onSlotChange(e) {
327
+ const t = e.target;
328
+ for (const r of t.assignedElements())
329
+ r.tagName === "ED-TAG" && !r.hasAttribute("role") && r.setAttribute("role", "listitem");
330
+ }
313
331
  render() {
314
332
  const e = this.componentClassNames("ed-c-tag-list", {});
315
333
  return l`
316
334
  <ul class="${e}" role="list">
317
- <slot></slot>
335
+ <slot @slotchange=${this.onSlotChange}></slot>
318
336
  </ul>
319
337
  `;
320
338
  }
@@ -1062,7 +1080,7 @@ const R = [
1062
1080
  ], De = "400;500;600;700", q = ["display", "serif", "handwriting"], K = ["sans-serif", "serif", "monospace"], Z = "ed-r-theme-customizer:catalog:v1", Ie = 1e3 * 60 * 60 * 24 * 7, V = [
1063
1081
  { key: "--ed-theme-border-radius-sm", label: "radius-sm", max: 1.5 },
1064
1082
  { key: "--ed-theme-border-radius-md", label: "radius-md", max: 2.5 }
1065
- ], L = [
1083
+ ], j = [
1066
1084
  { key: "--ed-theme-border-width-sm", label: "width-sm", max: 0.5 },
1067
1085
  { key: "--ed-theme-border-width-md", label: "width-md", max: 0.75 },
1068
1086
  { key: "--ed-theme-border-width-lg", label: "width-lg", max: 1 },
@@ -1108,7 +1126,7 @@ const R = [
1108
1126
  "--ed-theme-color-background-accent-6",
1109
1127
  "--ed-theme-color-background-accent-7",
1110
1128
  "--ed-theme-color-background-accent-8"
1111
- ], Pe = 0.5, Be = 1, Re = 1500, j = {
1129
+ ], Pe = 0.5, Be = 1, Re = 1500, L = {
1112
1130
  "--ed-theme-color-background-default": "--ed-theme-color-content-default",
1113
1131
  "--ed-theme-color-background-subtle": "--ed-theme-color-content-default",
1114
1132
  "--ed-theme-color-background-knockout": "--ed-theme-color-content-knockout",
@@ -1193,7 +1211,7 @@ class p extends P {
1193
1211
  const r = t.target, o = parseFloat(r.value);
1194
1212
  Number.isFinite(o) && this.setShadowScale(e, o);
1195
1213
  }, this.onRandom = () => {
1196
- const e = (o) => this.randomFacets.has(o), t = N ? new Set(Object.values(j)) : /* @__PURE__ */ new Set(), r = N ? /* @__PURE__ */ new Set(["primary-content"]) : /* @__PURE__ */ new Set();
1214
+ const e = (o) => this.randomFacets.has(o), t = N ? new Set(Object.values(L)) : /* @__PURE__ */ new Set(), r = N ? /* @__PURE__ */ new Set(["primary-content"]) : /* @__PURE__ */ new Set();
1197
1215
  if (e("colors"))
1198
1216
  for (const { key: o } of M)
1199
1217
  t.has(o) || this.setColor(o, this.randomHex());
@@ -1218,8 +1236,8 @@ class p extends P {
1218
1236
  }
1219
1237
  if (e("borders")) {
1220
1238
  const o = 0.0625 + Math.random() * 0.4375;
1221
- L.forEach((i, s) => {
1222
- const a = (s + 1) / L.length;
1239
+ j.forEach((i, s) => {
1240
+ const a = (s + 1) / j.length;
1223
1241
  this.setBorderValue(i.key, this.roundToStep(a * o, 0.0625));
1224
1242
  });
1225
1243
  }
@@ -1331,7 +1349,7 @@ class p extends P {
1331
1349
  r && (this.resolvedButtonColors[t.id] = this.normalizeColor(r));
1332
1350
  }
1333
1351
  this.resolvedDisplayFont = this.firstFamily(e.getPropertyValue(X[0]).trim()), this.resolvedBodyFont = this.firstFamily(e.getPropertyValue(Q[0]).trim()), this.resolvedBorders = {};
1334
- for (const { key: t } of [...V, ...L]) {
1352
+ for (const { key: t } of [...V, ...j]) {
1335
1353
  const r = e.getPropertyValue(t).trim(), o = this.toRem(r);
1336
1354
  o !== null && (this.resolvedBorders[t] = o);
1337
1355
  }
@@ -1422,7 +1440,7 @@ class p extends P {
1422
1440
  l: o.l
1423
1441
  });
1424
1442
  if (document.documentElement.style.setProperty(r, i), N) {
1425
- const s = j[r];
1443
+ const s = L[r];
1426
1444
  s && document.documentElement.style.setProperty(s, `contrast-color(${i})`);
1427
1445
  }
1428
1446
  }
@@ -1442,7 +1460,7 @@ class p extends P {
1442
1460
  for (const e of ie) {
1443
1461
  const t = this.colorOverrides[e];
1444
1462
  t ? document.documentElement.style.setProperty(e, t) : document.documentElement.style.removeProperty(e);
1445
- const r = j[e];
1463
+ const r = L[e];
1446
1464
  if (r) {
1447
1465
  const o = this.colorOverrides[r];
1448
1466
  o ? document.documentElement.style.setProperty(r, o) : document.documentElement.style.removeProperty(r);
@@ -1794,7 +1812,7 @@ class p extends P {
1794
1812
  */
1795
1813
  writeContrastPair(e, t) {
1796
1814
  if (!N) return null;
1797
- const r = j[e];
1815
+ const r = L[e];
1798
1816
  if (!r) return null;
1799
1817
  const o = `contrast-color(${t})`;
1800
1818
  return document.documentElement.style.setProperty(r, o), { contentKey: r, contentValue: o };
@@ -2388,7 +2406,7 @@ Paper: #F4EFE6` : ":root { --gray-0: #f8f9fa; --blue-6: #4dabf7; }"}
2388
2406
  <ed-accordion-panel>
2389
2407
  <ed-heading slot="header" tagName="h4" variant="title-sm">Corners &amp; borders</ed-heading>
2390
2408
  <div class="ed-r-theme-customizer__stack">
2391
- ${[...V, ...L].map((e) => {
2409
+ ${[...V, ...j].map((e) => {
2392
2410
  const t = this.borderOverrides[e.key], r = t !== void 0 ? this.toRem(t) ?? 0 : this.resolvedBorders[e.key] ?? 0;
2393
2411
  return this.renderSlider({
2394
2412
  label: e.label,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brad-frost-web/eddie-recipes",
3
- "version": "0.67.0",
3
+ "version": "0.68.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -47,8 +47,20 @@ import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdEle
47
47
  */
48
48
  export declare class EdRProjectCard extends EdElement {
49
49
  static get styles(): import('lit').CSSResult;
50
+ /** One deprecation warning per page, not one per card. */
51
+ private static warnedTitle;
50
52
  /**
51
- * The project title displayed as a heading
53
+ * The project's name, rendered as the card's heading — linked when `href` is set.
54
+ *
55
+ * Named `text` rather than `title` on purpose: `title` is a global HTML attribute, so
56
+ * `title="…"` on the card gives the whole card a browser tooltip repeating its heading.
57
+ * Matches the `text` prop of `ed-r-article-card` and `ed-r-speaking-card` (#2025).
58
+ */
59
+ text: string;
60
+ /**
61
+ * **Deprecated — use `text`** (removal 2026-12-21, #2025). Still rendered as the heading
62
+ * when `text` is empty, with a one-time console warning, so existing markup keeps
63
+ * working. The tooltip it puts on the whole card is why it is going.
52
64
  */
53
65
  title: string;
54
66
  /**
@@ -74,6 +86,8 @@ export declare class EdRProjectCard extends EdElement {
74
86
  * URL the card links to
75
87
  */
76
88
  href?: string;
89
+ /** The heading: `text`, falling back to the deprecated `title`. */
90
+ private get heading();
77
91
  render(): import('lit-html').TemplateResult<1>;
78
92
  }
79
93
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"project-card.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/common/project-card/project-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AACzF,OAAO,oEAAoE,CAAC;AAC5E,OAAO,8EAA8E,CAAC;AAKtF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,qBAAa,cAAe,SAAQ,SAAS;IAC3C,MAAM,KAAK,MAAM,4BAEhB;IAED;;OAEG;IAEM,KAAK,SAAM;IAEpB;;OAEG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IAEH,cAAc,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAQ;IAExD;;OAEG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,MAAM;CA0BP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,cAAc,CAAC;KACrC;CACF"}
1
+ {"version":3,"file":"project-card.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/common/project-card/project-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AACzF,OAAO,oEAAoE,CAAC;AAC5E,OAAO,8EAA8E,CAAC;AAKtF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,qBAAa,cAAe,SAAQ,SAAS;IAC3C,MAAM,KAAK,MAAM,4BAEhB;IAED,0DAA0D;IAC1D,OAAO,CAAC,MAAM,CAAC,WAAW,CAAS;IAEnC;;;;;;OAMG;IAEH,IAAI,SAAM;IAEV;;;;OAIG;IAEM,KAAK,SAAM;IAEpB;;OAEG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IAEH,cAAc,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAQ;IAExD;;OAEG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,mEAAmE;IACnE,OAAO,KAAK,OAAO,GAYlB;IAED,MAAM;CA2BP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,cAAc,CAAC;KACrC;CACF"}
@@ -1,60 +1,71 @@
1
- import { EdElement as h } from "@brad-frost-web/eddie-web-components/components/EdElement.js";
1
+ import { EdElement as p } from "@brad-frost-web/eddie-web-components/components/EdElement.js";
2
2
  import "@brad-frost-web/eddie-web-components/components/heading/heading.js";
3
3
  import "@brad-frost-web/eddie-web-components/components/text-passage/text-passage.js";
4
- import { unsafeCSS as p, nothing as c, html as d } from "lit";
4
+ import { unsafeCSS as m, nothing as l, html as a } from "lit";
5
5
  import { property as t } from "lit/decorators.js";
6
- const m = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block;height:100%}.ed-r-project-card{display:flex;flex-direction:column;height:100%;border-width:var(--ed-theme-border-width-sm);border-style:solid;border-color:var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-md);box-shadow:var(--ed-theme-box-shadow-md);background:var(--ed-theme-color-background-default);overflow:hidden}.ed-r-project-card__media{flex:none}.ed-r-project-card__img{display:block;width:100%;height:auto;object-fit:cover}.ed-r-project-card__body{display:flex;flex-direction:column;flex:1 0 auto;padding:1.5rem;gap:.5rem}.ed-r-project-card__title{display:block}.ed-r-project-card__link{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-r-project-card__link:hover,.ed-r-project-card__link:focus-visible{color:inherit;border-block-end-color:var(--ed-heading-link-color-border, var(--ed-theme-color-border-brand))}.ed-r-project-card__link: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-r-project-card__description{display:block}';
7
- var b = Object.defineProperty, o = (a, i, l, f) => {
8
- for (var r = void 0, s = a.length - 1, n; s >= 0; s--)
9
- (n = a[s]) && (r = n(i, l, r) || r);
10
- return r && b(i, l, r), r;
11
- };
12
- class e extends h {
6
+ const g = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block;height:100%}.ed-r-project-card{display:flex;flex-direction:column;height:100%;border-width:var(--ed-theme-border-width-sm);border-style:solid;border-color:var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-md);box-shadow:var(--ed-theme-box-shadow-md);background:var(--ed-theme-color-background-default);overflow:hidden}.ed-r-project-card__media{flex:none}.ed-r-project-card__img{display:block;width:100%;height:auto;object-fit:cover}.ed-r-project-card__body{display:flex;flex-direction:column;flex:1 0 auto;padding:1.5rem;gap:.5rem}.ed-r-project-card__title{display:block}.ed-r-project-card__link{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-r-project-card__link:hover,.ed-r-project-card__link:focus-visible{color:inherit;border-block-end-color:var(--ed-heading-link-color-border, var(--ed-theme-color-border-brand))}.ed-r-project-card__link: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-r-project-card__description{display:block}';
7
+ var b = Object.defineProperty, o = (n, d, s, u) => {
8
+ for (var i = void 0, c = n.length - 1, h; c >= 0; c--)
9
+ (h = n[c]) && (i = h(d, s, i) || i);
10
+ return i && b(d, s, i), i;
11
+ }, e;
12
+ const r = (e = class extends p {
13
13
  constructor() {
14
- super(...arguments), this.title = "", this.headingTagName = "h3";
14
+ super(...arguments), this.text = "", this.title = "", this.headingTagName = "h3";
15
15
  }
16
16
  static get styles() {
17
- return p(m);
17
+ return m(g);
18
+ }
19
+ /** The heading: `text`, falling back to the deprecated `title`. */
20
+ get heading() {
21
+ return this.text ? this.text : (this.title && !e.warnedTitle && (e.warnedTitle = !0, console.warn(
22
+ "<ed-r-project-card>: `title` is deprecated (removal 2026-12-21) — use `text`. `title` is a global HTML attribute and gives the whole card a tooltip. Card:",
23
+ this
24
+ )), this.title);
18
25
  }
19
26
  render() {
20
- const i = this.componentClassNames("ed-r-project-card", {
27
+ const d = this.heading, s = this.componentClassNames("ed-r-project-card", {
21
28
  "ed-r-project-card--has-link": !!this.href
22
29
  });
23
- return d`
24
- <div class="${i}">
25
- ${this.imgSrc ? d`<div class="ed-r-project-card__media">
30
+ return a`
31
+ <div class="${s}">
32
+ ${this.imgSrc ? a`<div class="ed-r-project-card__media">
26
33
  <img class="ed-r-project-card__img" src="${this.imgSrc}" alt="${this.imgAlt ?? ""}" />
27
- </div>` : c}
34
+ </div>` : l}
28
35
  <div class="ed-r-project-card__body">
29
- ${this.title ? d`<ed-heading class="ed-r-project-card__title" tagName="${this.headingTagName}" variant="headline-sm">
30
- ${this.href ? d`<a class="ed-r-project-card__link" href="${this.href}">${this.title}</a>` : this.title}
31
- </ed-heading>` : c}
32
- ${this.description ? d`<ed-text-passage class="ed-r-project-card__description">${this.description}</ed-text-passage>` : c}
36
+ ${d ? a`<ed-heading class="ed-r-project-card__title" tagName="${this.headingTagName}" variant="headline-sm">
37
+ ${this.href ? a`<a class="ed-r-project-card__link" href="${this.href}">${d}</a>` : d}
38
+ </ed-heading>` : l}
39
+ ${this.description ? a`<ed-text-passage class="ed-r-project-card__description">${this.description}</ed-text-passage>` : l}
33
40
  <slot></slot>
34
41
  </div>
35
42
  </div>
36
43
  `;
37
44
  }
38
- }
45
+ }, e.warnedTitle = !1, e);
46
+ o([
47
+ t()
48
+ ], r.prototype, "text");
39
49
  o([
40
50
  t()
41
- ], e.prototype, "title");
51
+ ], r.prototype, "title");
42
52
  o([
43
53
  t()
44
- ], e.prototype, "description");
54
+ ], r.prototype, "description");
45
55
  o([
46
56
  t()
47
- ], e.prototype, "imgSrc");
57
+ ], r.prototype, "imgSrc");
48
58
  o([
49
59
  t()
50
- ], e.prototype, "imgAlt");
60
+ ], r.prototype, "imgAlt");
51
61
  o([
52
62
  t()
53
- ], e.prototype, "headingTagName");
63
+ ], r.prototype, "headingTagName");
54
64
  o([
55
65
  t()
56
- ], e.prototype, "href");
57
- customElements.get("ed-r-project-card") === void 0 && customElements.define("ed-r-project-card", e);
66
+ ], r.prototype, "href");
67
+ let f = r;
68
+ customElements.get("ed-r-project-card") === void 0 && customElements.define("ed-r-project-card", f);
58
69
  export {
59
- e as EdRProjectCard
70
+ f as EdRProjectCard
60
71
  };