@brad-frost-web/eddie-recipes 0.69.0 → 0.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/cdn/chunks/{accordion-panel.CfE_GzSz.js → accordion-panel.CK3tIxLP.js} +149 -128
  2. package/cdn/eddie-recipes-autoloader.js +1 -0
  3. package/cdn/recipes/common/example-form/example-form.js +1 -1
  4. package/cdn/recipes/common/video-card/video-card.js +167 -0
  5. package/cdn/recipes/common/visualzzz/visualzzz.js +1 -1
  6. package/cdn/recipes/tools/theme-customizer/theme-customizer.js +7 -2
  7. package/cdn/recipes/tools/viz-controls/viz-controls.js +1 -1
  8. package/package.json +1 -1
  9. package/recipes/common/article-card/article-card.d.ts +3 -2
  10. package/recipes/common/article-card/article-card.d.ts.map +1 -1
  11. package/recipes/common/example-form/example-form.js +1 -1
  12. package/recipes/common/timeline-node-video/timeline-node-video.d.ts +2 -0
  13. package/recipes/common/timeline-node-video/timeline-node-video.d.ts.map +1 -1
  14. package/recipes/common/vertical-site-header/vertical-site-header.d.ts +1 -1
  15. package/recipes/common/video-card/video-card.d.ts +159 -0
  16. package/recipes/common/video-card/video-card.d.ts.map +1 -0
  17. package/recipes/common/video-card/video-card.js +105 -0
  18. package/recipes/common/video-embed/video-embed.d.ts +1 -0
  19. package/recipes/common/video-embed/video-embed.d.ts.map +1 -1
  20. package/recipes/common/visualzzz/visualzzz.d.ts +2 -0
  21. package/recipes/common/visualzzz/visualzzz.d.ts.map +1 -1
  22. package/recipes/common/visualzzz/visualzzz.js +10 -10
  23. package/recipes/tools/theme-customizer/theme-customizer.d.ts.map +1 -1
  24. package/recipes/tools/theme-customizer/theme-customizer.js +6 -1
@@ -1,55 +1,55 @@
1
- import { E as v } from "./EdFormElement.D3Jd1jHD.js";
2
- import { r as g, o as l, b as h, n as t, e as k } from "./lit.B6pFiYzB.js";
3
- import { n as p } from "./index.browser.D527xXcp.js";
1
+ import { E as _ } from "./EdFormElement.D3Jd1jHD.js";
2
+ import { r as f, o as c, b as m, n as i, e as k, a as x } from "./lit.B6pFiYzB.js";
3
+ import { n as g } from "./index.browser.D527xXcp.js";
4
4
  import "./field-note.BkkZiSM5.js";
5
5
  import { E as y } from "./EdElement.BcrGsPCr.js";
6
6
  import "./icon.CJxL6Fld.js";
7
- const _ = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-range{display:flex;flex-direction:column;gap:.5rem}.ed-c-range__label{font-family:var(--ed-theme-typography-label-default-font-family);font-weight:var(--ed-theme-typography-label-default-font-weight);font-size:var(--ed-theme-typography-label-default-font-size);line-height:var(--ed-theme-typography-label-default-line-height);letter-spacing:var(--ed-theme-typography-label-default-letter-spacing);text-transform:var(--ed-theme-typography-label-default-text-transform);color:var(--ed-theme-color-content-default)}.ed-c-range__input{-webkit-appearance:none;appearance:none;width:100%;height:.25rem;background:var(--ed-theme-color-background-subtle);border-radius:var(--ed-theme-border-radius-sm);outline:none}.ed-c-range__input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:.75rem;height:.75rem;border-radius:50%;background:var(--ed-theme-color-background-brand);cursor:pointer}.ed-c-range__input::-moz-range-thumb{width:.75rem;height:.75rem;border-radius:50%;background:var(--ed-theme-color-background-brand);cursor:pointer;border:none}.ed-c-range__input::-moz-range-track{background:transparent;border:none}.ed-c-range__input:disabled{cursor:not-allowed}.ed-c-range__input:disabled::-webkit-slider-thumb{cursor:not-allowed}.ed-c-range__input:disabled::-moz-range-thumb{cursor:not-allowed}.ed-c-range.ed-is-disabled,.ed-c-range.ed-is-disabled .ed-c-range__label{color:var(--ed-theme-color-content-disabled)}.ed-c-range--knockout .ed-c-range__label{color:var(--ed-theme-color-content-knockout)}.ed-c-range--sm{--ed-field-padding-block: .375rem;--ed-field-padding-inline: .375rem;--ed-field-font-size: var(--ed-theme-typography-body-sm-font-size);--ed-field-line-height: var(--ed-theme-typography-body-sm-line-height);--ed-field-label-font-size: var(--ed-theme-typography-label-sm-font-size, var(--ed-theme-typography-body-sm-font-size));--ed-field-label-gap: .125rem;--ed-field-note-gap: .125rem;--ed-control-box-size: 1.125rem}.ed-c-range--lg{--ed-field-padding-block: 1.125rem;--ed-field-padding-inline: .75rem;--ed-field-font-size: var(--ed-theme-typography-body-lg-font-size, var(--ed-theme-typography-body-default-font-size));--ed-field-line-height: var(--ed-theme-typography-body-lg-line-height, var(--ed-theme-typography-body-default-line-height));--ed-field-label-gap: .375rem;--ed-field-note-gap: .375rem;--ed-control-box-size: 2rem}';
8
- var $ = Object.defineProperty, a = (n, i, d, f) => {
9
- for (var e = void 0, r = n.length - 1, s; r >= 0; r--)
10
- (s = n[r]) && (e = s(i, d, e) || e);
11
- return e && $(i, d, e), e;
7
+ const $ = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-range{display:flex;flex-direction:column;gap:.5rem}.ed-c-range__label{font-family:var(--ed-theme-typography-label-default-font-family);font-weight:var(--ed-theme-typography-label-default-font-weight);font-size:var(--ed-theme-typography-label-default-font-size);line-height:var(--ed-theme-typography-label-default-line-height);letter-spacing:var(--ed-theme-typography-label-default-letter-spacing);text-transform:var(--ed-theme-typography-label-default-text-transform);color:var(--ed-theme-color-content-default)}.ed-c-range__input{-webkit-appearance:none;appearance:none;width:100%;height:.25rem;background:var(--ed-theme-color-background-subtle);border-radius:var(--ed-theme-border-radius-sm);outline:none}.ed-c-range__input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:.75rem;height:.75rem;border-radius:50%;background:var(--ed-theme-color-background-brand);cursor:pointer}.ed-c-range__input::-moz-range-thumb{width:.75rem;height:.75rem;border-radius:50%;background:var(--ed-theme-color-background-brand);cursor:pointer;border:none}.ed-c-range__input::-moz-range-track{background:transparent;border:none}.ed-c-range__input:disabled{cursor:not-allowed}.ed-c-range__input:disabled::-webkit-slider-thumb{cursor:not-allowed}.ed-c-range__input:disabled::-moz-range-thumb{cursor:not-allowed}.ed-c-range.ed-is-disabled,.ed-c-range.ed-is-disabled .ed-c-range__label{color:var(--ed-theme-color-content-disabled)}.ed-c-range--knockout .ed-c-range__label{color:var(--ed-theme-color-content-knockout)}.ed-c-range--sm{--ed-field-padding-block: .375rem;--ed-field-padding-inline: .375rem;--ed-field-font-size: var(--ed-theme-typography-body-sm-font-size);--ed-field-line-height: var(--ed-theme-typography-body-sm-line-height);--ed-field-label-font-size: var(--ed-theme-typography-label-sm-font-size, var(--ed-theme-typography-body-sm-font-size));--ed-field-label-gap: .125rem;--ed-field-note-gap: .125rem;--ed-control-box-size: 1.125rem}.ed-c-range--lg{--ed-field-padding-block: 1.125rem;--ed-field-padding-inline: .75rem;--ed-field-font-size: var(--ed-theme-typography-body-lg-font-size, var(--ed-theme-typography-body-default-font-size));--ed-field-line-height: var(--ed-theme-typography-body-lg-line-height, var(--ed-theme-typography-body-default-line-height));--ed-field-label-gap: .375rem;--ed-field-note-gap: .375rem;--ed-control-box-size: 2rem}';
8
+ var z = Object.defineProperty, n = (o, t, r, l) => {
9
+ for (var e = void 0, d = o.length - 1, s; d >= 0; d--)
10
+ (s = o[d]) && (e = s(t, r, e) || e);
11
+ return e && z(t, r, e), e;
12
12
  };
13
- class o extends v {
13
+ class a extends _ {
14
14
  constructor() {
15
15
  super(...arguments), this.type = "range", this.label = "Range", this.min = "0", this.max = "100";
16
16
  }
17
17
  static get styles() {
18
- return g(_);
18
+ return f($);
19
19
  }
20
20
  connectedCallback() {
21
- super.connectedCallback(), this.fieldId = this.fieldId || p(), this.fieldNote && (this.ariaDescribedBy = this.ariaDescribedBy || p());
21
+ super.connectedCallback(), this.fieldId = this.fieldId || g(), this.fieldNote && (this.ariaDescribedBy = this.ariaDescribedBy || g());
22
22
  }
23
- handleInput(i) {
24
- this.value = i.target.value, this.internals.setFormValue(this.value), this.syncValidity();
23
+ handleInput(t) {
24
+ this.value = t.target.value, this.internals.setFormValue(this.value), this.syncValidity();
25
25
  }
26
26
  render() {
27
- const i = this.componentClassNames("ed-c-range", {
27
+ const t = this.componentClassNames("ed-c-range", {
28
28
  "ed-c-range--sm": this.size === "sm",
29
29
  "ed-c-range--lg": this.size === "lg",
30
30
  "ed-c-range--knockout": this.knockout === !0 || this.inverted === !0,
31
31
  "ed-is-disabled": this.disabled === !0
32
32
  });
33
- return h`
34
- <div class="${i}">
33
+ return m`
34
+ <div class="${t}">
35
35
  <label class="ed-c-range__label" for="${this.fieldId}">${this.label}</label>
36
36
  <input
37
37
  class="ed-c-range__input"
38
38
  type="range"
39
39
  id="${this.fieldId}"
40
- name="${l(this.name)}"
41
- value="${l(this.value)}"
40
+ name="${c(this.name)}"
41
+ value="${c(this.value)}"
42
42
  min="${this.min}"
43
43
  max="${this.max}"
44
- step="${l(this.step)}"
44
+ step="${c(this.step)}"
45
45
  @input="${this.handleInput}"
46
46
  ?disabled="${this.disabled}"
47
- aria-describedby="${l(this.ariaDescribedBy)}"
47
+ aria-describedby="${c(this.ariaDescribedBy)}"
48
48
  />
49
- ${this.fieldNote && h`<ed-field-note
49
+ ${this.fieldNote && m`<ed-field-note
50
50
  ?knockout=${this.knockout === !0 || this.inverted === !0}
51
- id=${l(this.ariaDescribedBy)}
52
- iconName=${l(this.iconName)}
51
+ id=${c(this.ariaDescribedBy)}
52
+ iconName=${c(this.iconName)}
53
53
  >
54
54
  ${this.fieldNote}
55
55
  </ed-field-note>`}
@@ -57,103 +57,110 @@ class o extends v {
57
57
  `;
58
58
  }
59
59
  }
60
- a([
61
- t()
62
- ], o.prototype, "fieldId");
63
- a([
64
- t()
65
- ], o.prototype, "label");
66
- a([
67
- t()
68
- ], o.prototype, "name");
69
- a([
70
- t()
71
- ], o.prototype, "fieldNote");
72
- a([
73
- t()
74
- ], o.prototype, "ariaDescribedBy");
75
- a([
76
- t()
77
- ], o.prototype, "min");
78
- a([
79
- t()
80
- ], o.prototype, "max");
81
- a([
82
- t()
83
- ], o.prototype, "step");
84
- a([
85
- t({ type: Boolean })
86
- ], o.prototype, "disabled");
87
- a([
88
- t({ type: Boolean })
89
- ], o.prototype, "knockout");
90
- a([
91
- t({ type: Boolean })
92
- ], o.prototype, "inverted");
93
- a([
94
- t()
95
- ], o.prototype, "iconName");
96
- a([
97
- t()
98
- ], o.prototype, "size");
99
- a([
60
+ n([
61
+ i()
62
+ ], a.prototype, "fieldId");
63
+ n([
64
+ i()
65
+ ], a.prototype, "label");
66
+ n([
67
+ i()
68
+ ], a.prototype, "name");
69
+ n([
70
+ i()
71
+ ], a.prototype, "fieldNote");
72
+ n([
73
+ i()
74
+ ], a.prototype, "ariaDescribedBy");
75
+ n([
76
+ i()
77
+ ], a.prototype, "min");
78
+ n([
79
+ i()
80
+ ], a.prototype, "max");
81
+ n([
82
+ i()
83
+ ], a.prototype, "step");
84
+ n([
85
+ i({ type: Boolean })
86
+ ], a.prototype, "disabled");
87
+ n([
88
+ i({ type: Boolean })
89
+ ], a.prototype, "knockout");
90
+ n([
91
+ i({ type: Boolean })
92
+ ], a.prototype, "inverted");
93
+ n([
94
+ i()
95
+ ], a.prototype, "iconName");
96
+ n([
97
+ i()
98
+ ], a.prototype, "size");
99
+ n([
100
100
  k("input")
101
- ], o.prototype, "field");
102
- customElements.get("ed-range") === void 0 && customElements.define("ed-range", o);
103
- const x = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-accordion--knockout{color:var(--ed-theme-color-content-knockout);--ed-accordion-panel-button-hover-text-color: var(--ed-theme-color-content-subtle)}.ed-c-accordion--condensed{--ed-accordion-panel-padding-block: .5rem}';
104
- var z = Object.defineProperty, u = (n, i, d, f) => {
105
- for (var e = void 0, r = n.length - 1, s; r >= 0; r--)
106
- (s = n[r]) && (e = s(i, d, e) || e);
107
- return e && z(i, d, e), e;
101
+ ], a.prototype, "field");
102
+ customElements.get("ed-range") === void 0 && customElements.define("ed-range", a);
103
+ const w = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-accordion--knockout{color:var(--ed-theme-color-content-knockout);--ed-accordion-panel-button-hover-text-color: var(--ed-theme-color-content-subtle)}.ed-c-accordion--condensed{--ed-accordion-panel-padding-block: .5rem}';
104
+ var N = Object.defineProperty, v = (o, t, r, l) => {
105
+ for (var e = void 0, d = o.length - 1, s; d >= 0; d--)
106
+ (s = o[d]) && (e = s(t, r, e) || e);
107
+ return e && N(t, r, e), e;
108
108
  };
109
- class m extends y {
109
+ class u extends y {
110
110
  static get styles() {
111
- return g(x);
111
+ return f(w);
112
112
  }
113
113
  render() {
114
- const i = this.componentClassNames("ed-c-accordion", {
114
+ const t = this.componentClassNames("ed-c-accordion", {
115
115
  "ed-c-accordion--knockout": this.knockout === !0 || this.inverted === !0,
116
116
  "ed-c-accordion--condensed": this.spacing === "condensed"
117
117
  });
118
- return h`
119
- <dl class="${i}">
118
+ return m`
119
+ <div class="${t}">
120
120
  <slot></slot>
121
- </dl>
121
+ </div>
122
122
  `;
123
123
  }
124
124
  }
125
- u([
126
- t({ type: Boolean })
127
- ], m.prototype, "knockout");
128
- u([
129
- t({ type: Boolean })
130
- ], m.prototype, "inverted");
131
- u([
132
- t()
133
- ], m.prototype, "spacing");
134
- customElements.get("ed-accordion") === void 0 && customElements.define("ed-accordion", m);
135
- const w = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-accordion-panel{border-block-end:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle)}.ed-c-accordion-panel__header{display:flex;align-items:center;gap:var(--ed-theme-spacing-inline)}.ed-c-accordion-panel__button{text-align:start;display:flex;align-items:center;appearance:none;background:none;border:none;padding:var(--ed-accordion-panel-padding-block, 1rem) 0;flex:1 1 auto;min-width:0;cursor:pointer;color:inherit;overflow-x:hidden;transition:color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-accordion-panel__button:hover,.ed-c-accordion-panel__button:focus{color:var(--ed-accordion-panel-button-hover-text-color, var(--ed-theme-color-content-default-hover))}ed-icon{margin-inline-start:auto;transition:transform var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-accordion-panel.ed-is-active ed-icon{transform:rotate(-180deg)}.ed-c-accordion-panel__body{margin:0;padding:0;overflow:hidden;visibility:hidden;transition:height var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease),visibility var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-accordion-panel.ed-is-active .ed-c-accordion-panel__body{visibility:visible}.ed-c-accordion-panel__body-inner{padding-block-end:var(--ed-accordion-panel-padding-block, 1rem);padding-block-start:var(--ed-accordion-panel-padding-block, 1rem)}';
136
- var P = Object.defineProperty, b = (n, i, d, f) => {
137
- for (var e = void 0, r = n.length - 1, s; r >= 0; r--)
138
- (s = n[r]) && (e = s(i, d, e) || e);
139
- return e && P(i, d, e), e;
125
+ v([
126
+ i({ type: Boolean })
127
+ ], u.prototype, "knockout");
128
+ v([
129
+ i({ type: Boolean })
130
+ ], u.prototype, "inverted");
131
+ v([
132
+ i()
133
+ ], u.prototype, "spacing");
134
+ customElements.get("ed-accordion") === void 0 && customElements.define("ed-accordion", u);
135
+ const P = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-accordion-panel{border-block-end:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle)}.ed-c-accordion-panel__header{display:flex;align-items:center;gap:var(--ed-theme-spacing-inline)}.ed-c-accordion-panel__heading{display:flex;flex:1 1 auto;min-width:0;margin:0}.ed-c-accordion-panel__button{text-align:start;display:flex;align-items:center;appearance:none;background:none;border:none;padding:var(--ed-accordion-panel-padding-block, 1rem) 0;flex:1 1 auto;min-width:0;cursor:pointer;color:inherit;overflow-x:hidden;transition:color var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-accordion-panel__button:hover,.ed-c-accordion-panel__button:focus{color:var(--ed-accordion-panel-button-hover-text-color, var(--ed-theme-color-content-default-hover))}ed-icon{margin-inline-start:auto;transition:transform var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-accordion-panel.ed-is-active ed-icon{transform:rotate(-180deg)}.ed-c-accordion-panel__body{margin:0;padding:0;overflow:hidden;visibility:hidden;transition:height var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease),visibility var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease)}.ed-c-accordion-panel.ed-is-active .ed-c-accordion-panel__body{visibility:visible}.ed-c-accordion-panel__body-inner{padding-block-end:var(--ed-accordion-panel-padding-block, 1rem);padding-block-start:var(--ed-accordion-panel-padding-block, 1rem)}';
136
+ var E = Object.defineProperty, p = (o, t, r, l) => {
137
+ for (var e = void 0, d = o.length - 1, s; d >= 0; d--)
138
+ (s = o[d]) && (e = s(t, r, e) || e);
139
+ return e && E(t, r, e), e;
140
140
  };
141
- class c extends y {
142
- static get styles() {
143
- return g(w);
144
- }
141
+ class h extends y {
145
142
  /**
146
143
  * Initialize functions
147
144
  */
148
145
  constructor() {
149
- super(), this.togglePanel = this.togglePanel.bind(this), this.setPanelHeight = this.setPanelHeight.bind(this);
146
+ super(), this.headingLevel = 3, this.togglePanel = this.togglePanel.bind(this), this.setPanelHeight = this.setPanelHeight.bind(this);
147
+ }
148
+ static get styles() {
149
+ return f(P);
150
+ }
151
+ /**
152
+ * Read the heading level from the slotted title, so the author's outline decides it. #2245
153
+ */
154
+ handleHeaderSlotChange(t) {
155
+ const l = t.target.assignedElements({ flatten: !0 }).map(A).find((e) => e !== void 0);
156
+ this.headingLevel = l ?? 3;
150
157
  }
151
158
  /**
152
159
  * Initialize/Update
153
160
  * 1) Set panel height on load. Active state should set panel height to content within panel
154
161
  */
155
162
  connectedCallback() {
156
- super.connectedCallback(), this.id = this.id || p(), this.ariaLabelledBy = this.ariaLabelledBy || p(), this.setPanelHeight(), this.isActive && (this.fullyOpen = !0, this.setPanelHeight());
163
+ super.connectedCallback(), this.id = this.id || g(), this.ariaLabelledBy = this.ariaLabelledBy || g(), this.setPanelHeight(), this.isActive && (this.fullyOpen = !0, this.setPanelHeight());
157
164
  }
158
165
  /**
159
166
  * Set panel height
@@ -180,43 +187,57 @@ class c extends y {
180
187
  }, 50));
181
188
  }
182
189
  render() {
183
- const i = this.componentClassNames("ed-c-accordion-panel", {
190
+ const t = this.componentClassNames("ed-c-accordion-panel", {
184
191
  "ed-is-active": this.isActive === !0
185
192
  });
186
- return h`
187
- <div class="${i}">
188
- <dt class="ed-c-accordion-panel__header">
189
- <button
190
- class="ed-c-accordion-panel__button"
191
- aria-expanded="${!!this.isActive}"
192
- id="${this.ariaLabelledBy}"
193
- aria-controls="${this.id}"
194
- @click=${this.togglePanel}
195
- >
196
- <slot name="header"></slot>
197
- <ed-icon name="keyboard-arrow-down"></ed-icon>
198
- </button>
193
+ return m`
194
+ <div class="${t}">
195
+ <div class="ed-c-accordion-panel__header">
196
+ <div class="ed-c-accordion-panel__heading" role="heading" aria-level="${this.headingLevel}">
197
+ <button
198
+ class="ed-c-accordion-panel__button"
199
+ aria-expanded="${!!this.isActive}"
200
+ id="${this.ariaLabelledBy}"
201
+ aria-controls="${this.id}"
202
+ @click=${this.togglePanel}
203
+ >
204
+ <slot name="header" @slotchange=${this.handleHeaderSlotChange}></slot>
205
+ <ed-icon name="keyboard-arrow-down"></ed-icon>
206
+ </button>
207
+ </div>
199
208
  <slot name="headerAfter"></slot>
200
- </dt>
201
- <dd class="ed-c-accordion-panel__body" aria-labelledby="${this.ariaLabelledBy}" id="${this.id}" style=${"height: " + this.height}>
202
- <div class="ed-c-accordion-panel__body-inner" #bodyInner>
209
+ </div>
210
+ <div class="ed-c-accordion-panel__body" id="${this.id}" style=${"height: " + this.height}>
211
+ <div class="ed-c-accordion-panel__body-inner">
203
212
  <slot></slot>
204
213
  </div>
205
- </dd>
214
+ </div>
206
215
  </div>
207
216
  `;
208
217
  }
209
218
  }
210
- b([
211
- t({ type: Boolean })
212
- ], c.prototype, "isActive");
213
- b([
214
- t({ type: Boolean })
215
- ], c.prototype, "fullyOpen");
216
- b([
217
- t()
218
- ], c.prototype, "ariaLabelledBy");
219
- b([
220
- t()
221
- ], c.prototype, "height");
222
- customElements.get("ed-accordion-panel") === void 0 && customElements.define("ed-accordion-panel", c);
219
+ p([
220
+ i({ type: Boolean })
221
+ ], h.prototype, "isActive");
222
+ p([
223
+ i({ type: Boolean })
224
+ ], h.prototype, "fullyOpen");
225
+ p([
226
+ i()
227
+ ], h.prototype, "ariaLabelledBy");
228
+ p([
229
+ i()
230
+ ], h.prototype, "height");
231
+ p([
232
+ x()
233
+ ], h.prototype, "headingLevel");
234
+ const b = /^h([1-6])$/i;
235
+ function A(o) {
236
+ const t = b.exec(o.localName);
237
+ if (t) return Number(t[1]);
238
+ const r = o.querySelector(":scope > h1, :scope > h2, :scope > h3, :scope > h4, :scope > h5, :scope > h6");
239
+ if (r) return Number(r.localName[1]);
240
+ const l = b.exec(String(o.tagName ?? "")) ?? b.exec(o.getAttribute("tagName") ?? "");
241
+ return l ? Number(l[1]) : o.localName === "ed-heading" ? 2 : void 0;
242
+ }
243
+ customElements.get("ed-accordion-panel") === void 0 && customElements.define("ed-accordion-panel", h);
@@ -41,6 +41,7 @@ const s = {
41
41
  "ed-r-todo-list": "./recipes/common/todo-list/todo-list.js",
42
42
  "ed-r-transport-button": "./recipes/common/transport-button/transport-button.js",
43
43
  "ed-r-vertical-site-header": "./recipes/common/vertical-site-header/vertical-site-header.js",
44
+ "ed-r-video-card": "./recipes/common/video-card/video-card.js",
44
45
  "ed-r-video-embed": "./recipes/common/video-embed/video-embed.js",
45
46
  "ed-r-visualzzz": "./recipes/common/visualzzz/visualzzz.js",
46
47
  "ed-r-viz-controls": "./recipes/tools/viz-controls/viz-controls.js",
@@ -663,7 +663,7 @@ class O extends z {
663
663
  </form>
664
664
  ${this.formData ? f`
665
665
  <ed-heading>Submitted form data</ed-heading>
666
- <pre>
666
+ <pre class="ed-r-example-form__output">
667
667
  ${this.formData}
668
668
  </pre
669
669
  >
@@ -0,0 +1,167 @@
1
+ import { E as g } from "../../../chunks/EdElement.BcrGsPCr.js";
2
+ import "../../../chunks/card.DF6tFZvU.js";
3
+ import "../../../chunks/heading.CFkMJ_PO.js";
4
+ import "../../../chunks/icon.CJxL6Fld.js";
5
+ import { r as f, b as i, n as o, A as m } from "../../../chunks/lit.B6pFiYzB.js";
6
+ const u = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}.ed-c-image{display:block}.ed-c-image ::slotted(*){display:block;max-width:100%;height:auto}.ed-c-image--cropped ::slotted(*){width:100%!important;height:100%!important;max-width:none!important;object-fit:cover}.ed-c-image--cropped.ed-c-image--fit-contain ::slotted(*){object-fit:contain}.ed-c-image--round{border-radius:50%;overflow:hidden}.ed-c-image--round ::slotted(*){border-radius:50%}.ed-c-image--bordered{border:var(--ed-theme-border-width-md) solid var(--ed-theme-color-border-strong);border-radius:var(--ed-theme-border-radius-md);overflow:hidden}.ed-c-image--shadowed{box-shadow:var(--ed-theme-box-shadow-bold)}:host([variant=shadowed]){padding-block-end:var(--ed-theme-shadow-clearance-bold, 0px)}.ed-c-image--bordered.ed-c-image--round{border-radius:50%}';
7
+ var y = Object.defineProperty, p = (l, e, t, n) => {
8
+ for (var a = void 0, d = l.length - 1, r; d >= 0; d--)
9
+ (r = l[d]) && (a = r(e, t, a) || a);
10
+ return a && y(e, t, a), a;
11
+ };
12
+ class c extends g {
13
+ static {
14
+ this.styles = f(u);
15
+ }
16
+ render() {
17
+ const e = this.componentClassNames("ed-c-image", {
18
+ "ed-c-image--cropped": !!this.effectiveRatio,
19
+ "ed-c-image--fit-contain": this.fit === "contain",
20
+ "ed-c-image--round": this.shape === "round",
21
+ "ed-c-image--bordered": this.variant === "bordered" || this.variant === "shadowed",
22
+ "ed-c-image--shadowed": this.variant === "shadowed"
23
+ }), t = this.effectiveRatio ? `aspect-ratio: ${this.effectiveRatio.replace(":", " / ")}` : "";
24
+ return i`
25
+ <div class="${e}" style="${t}">
26
+ <slot @slotchange="${this.syncPictureImg}"></slot>
27
+ </div>
28
+ `;
29
+ }
30
+ /**
31
+ * A circle needs a square box: round defaults the ratio to 1/1, but an
32
+ * explicitly authored aspectRatio still wins.
33
+ */
34
+ get effectiveRatio() {
35
+ return this.aspectRatio ?? (this.shape === "round" ? "1/1" : void 0);
36
+ }
37
+ updated() {
38
+ this.syncPictureImg();
39
+ }
40
+ /**
41
+ * Cropping styles ride `::slotted(*)`, which reaches the slotted element
42
+ * itself but never its descendants — so when the media is a `<picture>`
43
+ * (what image pipelines emit), the inner `<img>` keeps its intrinsic size
44
+ * and the crop silently fails. CSS cannot express this from the shadow
45
+ * root, so the component syncs the sizing onto the picture's `<img>`
46
+ * directly. Pre-upgrade, the DSD box still reserves the right footprint;
47
+ * the crop completes when the element upgrades.
48
+ */
49
+ syncPictureImg() {
50
+ const e = !!this.effectiveRatio;
51
+ for (const t of Array.from(this.querySelectorAll(":scope > picture"))) {
52
+ const n = t.querySelector("img");
53
+ n && (e ? (t.style.cssText = "width: 100%; height: 100%; display: block;", n.style.cssText = `width: 100%; height: 100%; max-width: none; object-fit: ${this.fit === "contain" ? "contain" : "cover"};${this.shape === "round" ? " border-radius: 50%;" : ""}`) : (t.style.cssText = "", n.style.cssText = this.shape === "round" ? "border-radius: 50%;" : ""));
54
+ }
55
+ }
56
+ }
57
+ p([
58
+ o()
59
+ ], c.prototype, "aspectRatio");
60
+ p([
61
+ o()
62
+ ], c.prototype, "fit");
63
+ p([
64
+ o()
65
+ ], c.prototype, "shape");
66
+ p([
67
+ o({ reflect: !0 })
68
+ ], c.prototype, "variant");
69
+ customElements.get("ed-image") === void 0 && customElements.define("ed-image", c);
70
+ 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{display:block;height:100%}.ed-r-video-card__media{display:block;color:inherit;text-decoration:none}:host(:not([padding])) .ed-r-video-card__media,:host([padding=none]) .ed-r-video-card__media{padding-block-end:.75rem}[hidden]{display:none!important}.ed-r-video-card__frame{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:var(--ed-theme-border-radius-md);background:var(--ed-theme-color-background-subtle)}.ed-r-video-card__frame ::slotted(*),.ed-r-video-card__frame ed-image,.ed-r-video-card__placeholder{display:block;width:100%;height:100%}.ed-r-video-card__frame ::slotted(img){object-fit:cover}a.ed-r-video-card__media:hover .ed-r-video-card__frame{opacity:.9}.ed-r-video-card__play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;--ed-icon-height: 3rem;--ed-icon-width: 3rem;color:var(--ed-theme-color-content-subtle);pointer-events:none}.ed-r-video-card__frame--picture .ed-r-video-card__play{color:var(--ed-theme-color-content-knockout)}.ed-r-video-card__duration{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);position:absolute;inset-block-end:.5rem;inset-inline-end:.5rem;padding:.125rem .375rem;border-radius:var(--ed-theme-border-radius-sm);background:var(--ed-theme-color-background-transparent-strong);color:var(--ed-theme-color-content-knockout)}.ed-r-video-card__title{display:block}.ed-r-video-card__title ::slotted(*){display:block;margin-block:0}.ed-r-video-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);margin:0;color:var(--ed-theme-color-content-subtle)}.ed-r-video-card__meta--spoken-only,.ed-r-video-card__spoken-duration{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-r-video-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:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.ed-r-video-card__excerpt ::slotted(*){margin-block-start:0}.ed-r-video-card__excerpt ::slotted(:last-child){margin-block-end:0}';
71
+ var _ = Object.defineProperty, h = (l, e, t, n) => {
72
+ for (var a = void 0, d = l.length - 1, r; d >= 0; d--)
73
+ (r = l[d]) && (a = r(e, t, a) || a);
74
+ return a && _(e, t, a), a;
75
+ };
76
+ class s extends g {
77
+ constructor() {
78
+ super(...arguments), this.text = "", this.imgAlt = "", this.headingTagName = "h3", this.handleSlotChange = () => this.requestUpdate();
79
+ }
80
+ static get styles() {
81
+ return f(b);
82
+ }
83
+ /**
84
+ * The duration in words for assistive technology: "1:02:05" → "1 hour 2
85
+ * minutes 5 seconds". Anything that isn't a clock is read as given.
86
+ */
87
+ durationInWords() {
88
+ if (!this.duration) return;
89
+ const e = this.duration.trim().split(":").map(Number);
90
+ if (e.length < 2 || e.length > 3 || e.some((r) => !Number.isInteger(r) || r < 0))
91
+ return this.duration;
92
+ const [t, n, a] = e.length === 3 ? e : [0, ...e], d = (r, v) => r ? `${r} ${v}${r === 1 ? "" : "s"}` : "";
93
+ return [d(t, "hour"), d(n, "minute"), d(a, "second")].filter(Boolean).join(" ") || "0 seconds";
94
+ }
95
+ /**
96
+ * A bare tag renders chrome around nothing, silently (#1620). Say so, but
97
+ * only when neither a prop nor a slot supplies a title.
98
+ */
99
+ firstUpdated() {
100
+ this.text || this.warnIfComposedEmpty(["media", "title", "meta"]);
101
+ }
102
+ renderThumbnail() {
103
+ const e = this.imgSrc ? i`<ed-image aspectRatio="16/9"><img src="${this.imgSrc}" alt="${this.imgAlt}" /></ed-image>` : i`<span class="ed-r-video-card__placeholder" aria-hidden="true"></span>`, t = !!this.imgSrc || this.slotNotEmpty("media");
104
+ return i`
105
+ <span class="ed-r-video-card__frame ${t ? "ed-r-video-card__frame--picture" : ""}">
106
+ <slot name="media" @slotchange="${this.handleSlotChange}">${e}</slot>
107
+ <span class="ed-r-video-card__play" aria-hidden="true">
108
+ <ed-icon name="circle-play"></ed-icon>
109
+ </span>
110
+ ${this.duration ? i`<span class="ed-r-video-card__duration" aria-hidden="true">${this.duration}</span>` : m}
111
+ </span>
112
+ `;
113
+ }
114
+ render() {
115
+ const e = this.componentClassNames("ed-r-video-card", {}), t = this.durationInWords(), n = this.slotNotEmpty("title") || !!this.text, a = this.slotNotEmpty("meta") || !!this.meta || !!t, d = !this.defaultSlotEmpty(), r = t ? `${this.meta || this.slotNotEmpty("meta") ? ", " : ""}${t}` : "";
116
+ return i`
117
+ <ed-card variant="${this.variant ?? "plain"}" padding="${this.padding ?? "none"}" class="${e}">
118
+ ${this.href ? i`<a slot="header" class="ed-r-video-card__media" href="${this.href}" tabindex="-1" aria-hidden="true">
119
+ ${this.renderThumbnail()}
120
+ </a>` : i`<div slot="header" class="ed-r-video-card__media">${this.renderThumbnail()}</div>`}
121
+ <div class="ed-r-video-card__title" ?hidden="${!n}">
122
+ <slot name="title" @slotchange="${this.handleSlotChange}">
123
+ ${this.text ? i`<ed-heading tagName="${this.headingTagName}" variant="title-default">
124
+ ${this.href ? i`<a class="ed-r-video-card__link" href="${this.href}">${this.text}</a>` : this.text}
125
+ </ed-heading>` : m}
126
+ </slot>
127
+ </div>
128
+ <p
129
+ class="ed-r-video-card__meta ${r && !this.meta && !this.slotNotEmpty("meta") ? "ed-r-video-card__meta--spoken-only" : ""}"
130
+ ?hidden="${!a}"
131
+ ><slot name="meta" @slotchange="${this.handleSlotChange}">${this.meta ?? m}</slot>${r ? i`<span class="ed-r-video-card__spoken-duration">${r}</span>` : m}</p>
132
+ <div class="ed-r-video-card__excerpt" ?hidden="${!d}"><slot @slotchange="${this.handleSlotChange}"></slot></div>
133
+ </ed-card>
134
+ `;
135
+ }
136
+ }
137
+ h([
138
+ o()
139
+ ], s.prototype, "text");
140
+ h([
141
+ o()
142
+ ], s.prototype, "href");
143
+ h([
144
+ o()
145
+ ], s.prototype, "imgSrc");
146
+ h([
147
+ o()
148
+ ], s.prototype, "imgAlt");
149
+ h([
150
+ o()
151
+ ], s.prototype, "meta");
152
+ h([
153
+ o()
154
+ ], s.prototype, "duration");
155
+ h([
156
+ o()
157
+ ], s.prototype, "headingTagName");
158
+ h([
159
+ o({ reflect: !0 })
160
+ ], s.prototype, "variant");
161
+ h([
162
+ o({ reflect: !0 })
163
+ ], s.prototype, "padding");
164
+ customElements.define("ed-r-video-card", s);
165
+ export {
166
+ s as EdRVideoCard
167
+ };
@@ -1,6 +1,6 @@
1
1
  import { E as R } from "../../../chunks/EdElement.BcrGsPCr.js";
2
2
  import { a as S, r as M, o as _, b as d, A as E, n as o } from "../../../chunks/lit.B6pFiYzB.js";
3
- const L = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}:host([ratio=fill]){width:100%;height:100%}.ed-r-visualzzz{position:relative;isolation:isolate;overflow:hidden;background:var(--ed-theme-color-background-brand)}.ed-r-visualzzz__frame{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}.ed-r-visualzzz__poster{display:block;width:100%;height:100%;object-fit:cover}.ed-r-visualzzz ::slotted(*){position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}.ed-r-visualzzz--decorative{pointer-events:none}.ed-r-visualzzz--ratio-16-9{aspect-ratio:16/9}.ed-r-visualzzz--ratio-21-9{aspect-ratio:21/9}.ed-r-visualzzz--ratio-4-3{aspect-ratio:4/3}.ed-r-visualzzz--ratio-3-2{aspect-ratio:3/2}.ed-r-visualzzz--ratio-1-1{aspect-ratio:1/1}.ed-r-visualzzz--ratio-4-5{aspect-ratio:4/5}.ed-r-visualzzz--ratio-9-16{aspect-ratio:9/16}.ed-r-visualzzz--fill{width:100%;height:100%}';
3
+ const L = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}:host([ratio=fill]){width:100%;height:100%}.ed-r-visualzzz{position:relative;isolation:isolate;overflow:hidden;background:var(--ed-r-visualzzz-background, var(--ed-theme-color-background-knockout))}.ed-r-visualzzz__frame{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}.ed-r-visualzzz__poster{display:block;width:100%;height:100%;object-fit:cover}.ed-r-visualzzz ::slotted(*){position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}.ed-r-visualzzz--decorative{pointer-events:none}.ed-r-visualzzz--ratio-16-9{aspect-ratio:16/9}.ed-r-visualzzz--ratio-21-9{aspect-ratio:21/9}.ed-r-visualzzz--ratio-4-3{aspect-ratio:4/3}.ed-r-visualzzz--ratio-3-2{aspect-ratio:3/2}.ed-r-visualzzz--ratio-1-1{aspect-ratio:1/1}.ed-r-visualzzz--ratio-4-5{aspect-ratio:4/5}.ed-r-visualzzz--ratio-9-16{aspect-ratio:9/16}.ed-r-visualzzz--fill{width:100%;height:100%}';
4
4
  var U = Object.defineProperty, r = (h, t, e, s) => {
5
5
  for (var a = void 0, n = h.length - 1, l; n >= 0; n--)
6
6
  (l = h[n]) && (a = l(t, e, a) || a);
@@ -1,7 +1,7 @@
1
1
  import { E as P } from "../../../chunks/EdElement.BcrGsPCr.js";
2
2
  import "../../../chunks/button.BI7SkOwy.js";
3
3
  import "../../../chunks/icon.CJxL6Fld.js";
4
- import "../../../chunks/accordion-panel.CfE_GzSz.js";
4
+ import "../../../chunks/accordion-panel.CK3tIxLP.js";
5
5
  import { E as se } from "../../../chunks/EdFormElement.D3Jd1jHD.js";
6
6
  import { a as h, r as O, A as y, b as l, o as x, n as c, e as W } from "../../../chunks/lit.B6pFiYzB.js";
7
7
  import { n as G } from "../../../chunks/index.browser.D527xXcp.js";
@@ -2283,7 +2283,12 @@ Paper: #F4EFE6` : ":root { --gray-0: #f8f9fa; --blue-6: #4dabf7; }"}
2283
2283
  ${Ne.map(
2284
2284
  (r) => l`
2285
2285
  <ed-tag behavior="action" size="sm">
2286
- <button type="button" ?disabled=${e} @click=${() => this.onExampleChip(r)}>
2286
+ <button
2287
+ class="ed-r-theme-customizer__example"
2288
+ type="button"
2289
+ ?disabled=${e}
2290
+ @click=${() => this.onExampleChip(r)}
2291
+ >
2287
2292
  ${r}
2288
2293
  </button>
2289
2294
  </ed-tag>
@@ -1,5 +1,5 @@
1
1
  import { E as h } from "../../../chunks/EdElement.BcrGsPCr.js";
2
- import "../../../chunks/accordion-panel.CfE_GzSz.js";
2
+ import "../../../chunks/accordion-panel.CK3tIxLP.js";
3
3
  import "../../../chunks/button.BI7SkOwy.js";
4
4
  import "../../../chunks/heading.CFkMJ_PO.js";
5
5
  import "../../../chunks/select-field.BdrdY_fo.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brad-frost-web/eddie-recipes",
3
- "version": "0.69.0",
3
+ "version": "0.70.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -35,7 +35,7 @@ type HeadingTag = 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
35
35
  * @use Anywhere a post needs a title + excerpt lockup without the visual weight of a bordered card
36
36
  *
37
37
  * @dontuse For long excerpts or full post bodies — this is a pointer to an article, not a reading surface. Use `ed-p-article` for the article itself
38
- * @dontuse When the item needs a thumbnail or cover image — use `ed-r-project-card`, which composes media with its heading and description
38
+ * @dontuse When the item needs a thumbnail or cover image — use `ed-r-project-card`, which composes media with its heading and description, or `ed-r-video-card` when the item is a video
39
39
  * @dontuse As a bordered, elevated tile in a dashboard — use `ed-card` directly, or `ed-r-stat-card` for a KPI
40
40
  * @dontuse Wrapped in a single enclosing `<a>` to make the whole card clickable — that defeats screen-reader navigation of the title link
41
41
  *
@@ -53,6 +53,7 @@ type HeadingTag = 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
53
53
  * @related ed-r-timeline-node-blog — the ready-made timeline entry for a post: a linked title and an excerpt, without this card
54
54
  * @related ed-timeline-node — the bare entry this card is slotted into when a timeline entry should be a card
55
55
  * @related ed-r-project-card — the media-carrying sibling, for items that need a thumbnail
56
+ * @related ed-r-video-card — the video sibling: a thumbnail (or placeholder) with a play glyph
56
57
  * @related ed-heading — owns the linked-title treatment
57
58
  * @related ed-card — the container it composes, as a flush `plain` card (`variant="plain" padding="none"`)
58
59
  *
@@ -63,7 +64,7 @@ type HeadingTag = 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
63
64
  * @recipe composition
64
65
  *
65
66
  * @useWhen a listing, grid, archive, or related-posts rail represents blog posts or articles by title and excerpt
66
- * @notWhen the item needs a thumbnail or cover image — use `ed-r-project-card`
67
+ * @notWhen the item needs a thumbnail or cover image — use `ed-r-project-card`, or `ed-r-video-card` for a video
67
68
  * @notWhen the item is a KPI — use `ed-r-stat-card`
68
69
  * @notWhen the full article is shown — use `ed-p-article`
69
70
  * @notWhen a chronological history needs no more than a linked title and an excerpt per entry — use `ed-r-timeline-node-blog`; this card goes inside a bare `ed-timeline-node` when an entry should sit on a surface of its own
@@ -1 +1 @@
1
- {"version":3,"file":"article-card.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/common/article-card/article-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AACzF,OAAO,8DAA8D,CAAC;AACtE,OAAO,oEAAoE,CAAC;AAK5E,KAAK,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAInD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,qBAAa,cAAe,SAAQ,SAAS;IAC3C,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;;;;OAQG;IAEH,IAAI,SAAM;IAEV;;;;;OAKG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;;;;;OASG;IAEH,cAAc,EAAE,UAAU,CAAQ;IAElC;;;;;;OAMG;IAEH,OAAO,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IAErD;;;;;;;;;;OAUG;IAEH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAE/B;;;;;;OAMG;IACH,SAAS,CAAC,cAAc,IAAI,MAAM,GAAG,SAAS;IAgB9C;;OAEG;IACH,YAAY;IAIZ,MAAM;CA0CP;AAID,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,cAAc,CAAC;KACrC;CACF"}
1
+ {"version":3,"file":"article-card.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/common/article-card/article-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AACzF,OAAO,8DAA8D,CAAC;AACtE,OAAO,oEAAoE,CAAC;AAK5E,KAAK,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAInD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,qBAAa,cAAe,SAAQ,SAAS;IAC3C,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;;;;OAQG;IAEH,IAAI,SAAM;IAEV;;;;;OAKG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;;;;;OASG;IAEH,cAAc,EAAE,UAAU,CAAQ;IAElC;;;;;;OAMG;IAEH,OAAO,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IAErD;;;;;;;;;;OAUG;IAEH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAE/B;;;;;;OAMG;IACH,SAAS,CAAC,cAAc,IAAI,MAAM,GAAG,SAAS;IAgB9C;;OAEG;IACH,YAAY;IAIZ,MAAM;CA0CP;AAID,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,cAAc,CAAC;KACrC;CACF"}
@@ -110,7 +110,7 @@ class m extends o {
110
110
  </form>
111
111
  ${this.formData ? l`
112
112
  <ed-heading>Submitted form data</ed-heading>
113
- <pre>
113
+ <pre class="ed-r-example-form__output">
114
114
  ${this.formData}
115
115
  </pre
116
116
  >
@@ -28,6 +28,7 @@ import { EdRTimelineNodeKind } from '../timeline-node/TimelineNodeKind';
28
28
  * @related ed-timeline-node — the composable core this wraps
29
29
  * @related ed-r-timeline-node — the compat recipe for pre-#1249 markup
30
30
  * @related ed-timeline — the required parent
31
+ * @related ed-r-video-card — a video in a set people pick from (a grid), where the date isn't the point
31
32
  * @related ed-r-video-embed — a film watched on the page; ed-r-timeline-node-speaking — the appearance itself rather than its recording; ed-r-timeline-node-podcast — audio only
32
33
  *
33
34
  * @content Title is the video title and leads the entry; `meta` carries channel/series/runtime. Slotted description stays to a line.
@@ -43,6 +44,7 @@ import { EdRTimelineNodeKind } from '../timeline-node/TimelineNodeKind';
43
44
  * @notWhen it should be watched on the page — use `ed-r-video-embed`
44
45
  * @notWhen the entry is the appearance itself — the day and the venue — rather than the recording of it — use `ed-r-timeline-node-speaking`
45
46
  * @notWhen it is audio only — use `ed-r-timeline-node-podcast`
47
+ * @notWhen the videos are a set to choose from rather than a history — use `ed-r-video-card` in an `ed-grid`
46
48
  */
47
49
  export declare class EdRTimelineNodeVideo extends EdRTimelineNodeKind {
48
50
  static get styles(): import('lit').CSSResult;
@@ -1 +1 @@
1
- {"version":3,"file":"timeline-node-video.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/common/timeline-node-video/timeline-node-video.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAGxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,qBAAa,oBAAqB,SAAQ,mBAAmB;IAC3D,MAAM,KAAK,MAAM,4BAEhB;IAED,SAAS,CAAC,QAAQ,CAAC,KAAK,8BAA8B;IACtD,SAAS,CAAC,QAAQ,CAAC,IAAI,WAAW;IAClC,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAG,UAAU,CAAU;IAErD;;OAEG;IACK,IAAI,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,0BAA0B,EAAE,oBAAoB,CAAC;KAClD;CACF"}
1
+ {"version":3,"file":"timeline-node-video.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/common/timeline-node-video/timeline-node-video.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAGxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,qBAAa,oBAAqB,SAAQ,mBAAmB;IAC3D,MAAM,KAAK,MAAM,4BAEhB;IAED,SAAS,CAAC,QAAQ,CAAC,KAAK,8BAA8B;IACtD,SAAS,CAAC,QAAQ,CAAC,IAAI,WAAW;IAClC,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAG,UAAU,CAAU;IAErD;;OAEG;IACK,IAAI,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,0BAA0B,EAAE,oBAAoB,CAAC;KAClD;CACF"}
@@ -38,7 +38,7 @@ import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdEle
38
38
  * @slot - (default) Escape hatch for additional rail content (utility links, actions) below the nav.
39
39
  *
40
40
  * @a11y The menu toggle's `aria-expanded` reflects the flyout's open/closed state — keep it in sync if you modify the toggle logic
41
- * @a11y Mark the current page's nav item so users get a clear "you are here" signal — `aria-current="page"` on the anchor in enhance mode (it drives the highlight styling too, so the visual and programmatic states cannot drift), or `isHighlighted` in classic mode
41
+ * @a11y Mark the current page's nav item so users get a clear "you are here" signal — `aria-current="page"` on the anchor in enhance mode (it drives the highlight styling too, so the visual and programmatic states cannot drift), or `isCurrent` in classic mode, which does both from one property (#2221)
42
42
  * @a11y Slot the nav in `enhance` mode. Classic mode splits `<ul>` and `<li>` across shadow roots, so the flattened tree has a list with no list items — axe `list`/`listitem`, WCAG 1.3.1, once per page and once per item (#1404). Note `render-check` exempts those rules (it cannot see across shadow boundaries), so a passing render-check does not clear this
43
43
  * @a11y In the sidebar layout the header appears before `<main>` in the DOM — pair with a skip link so keyboard users can bypass the nav
44
44
  * @a11y `variant` changes what the slotted content is contrast-checked *against*. On the default (or any filled) rail, slot `knockout` content; with `variant="bare"` there is no fill, so slotted content must meet WCAG AA against the page background instead — knockout content on a bare rail will fail
@@ -0,0 +1,159 @@
1
+ import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement.js';
2
+ type HeadingTag = 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
3
+ /**
4
+ * A card for one video people pick from — a course lesson, a talk, a demo: a
5
+ * 16:9 thumbnail with a play glyph, a linked title, a one-line meta, and an
6
+ * optional excerpt clipped to three lines, composed on a bare `ed-card`. Set
7
+ * several in an `ed-grid` and a set of recommended videos reads as videos at a
8
+ * glance.
9
+ *
10
+ * **No thumbnail yet? It still looks like a video.** Without `imgSrc` the card
11
+ * draws a placeholder — a quiet 16:9 surface with the play glyph centered — so
12
+ * a grid of lessons whose thumbnails haven't been made yet is still a grid of
13
+ * videos, not a grid of gaps.
14
+ *
15
+ * **One action, two ways to reach it.** The title is the card's link and its
16
+ * only tab stop. The thumbnail links to the same place for pointer users, but
17
+ * is hidden from keyboards and assistive technology (`tabindex="-1"`,
18
+ * `aria-hidden`), so nobody meets the same link twice — the pattern video sites
19
+ * use. Never wrap the whole card in a link.
20
+ *
21
+ * **Composition-first, with smart defaults.** Every region is reachable by prop
22
+ * (`imgSrc`, `text`, `href`, `meta`, `duration`) and by slot (`media`, `title`,
23
+ * `meta`, default). Slotted content replaces the prop fallback outright. Copy
24
+ * the `Default` story's skeleton rather than reading `render()`.
25
+ *
26
+ * @use Presenting each item of a recommended or related set of videos, one card per `ed-grid-item` of an `ed-grid`
27
+ * @use Standing in for a thumbnail that doesn't exist yet: leave `imgSrc` unset and the placeholder keeps the card reading as a video
28
+ * @use In a "watch next" rail beneath a video or lesson page
29
+ *
30
+ * @dontuse For playing the video in place — use `ed-r-video-embed`, which is the player
31
+ * @dontuse For an article or post with no video — use `ed-r-article-card`, which has no media, or `ed-r-project-card` for a still image
32
+ * @dontuse For a long page of keyword search results people scan by title — use `ed-list`; thumbnails cut how many results fit on a screen
33
+ * @dontuse Wrapped in a single enclosing `<a>` to make the whole card clickable — the title is the action; wrapping it defeats screen-reader navigation of the link
34
+ * @dontuse On a timeline where the date is the point — use `ed-r-timeline-node-video`
35
+ *
36
+ * @a11y The title link is the only tab stop; the thumbnail's duplicate link is `tabindex="-1"` and `aria-hidden="true"`, so keyboard and screen-reader users meet the video once
37
+ * @a11y The placeholder, the play glyph, and the duration badge are decorative (`aria-hidden`); the thumbnail image's `imgAlt` defaults to empty because the title already names the video. With `href` set the whole thumbnail is hidden from assistive technology, so its alt is never read; alt text only reaches anyone on a card without `href`
38
+ * @a11y `duration` is drawn on the thumbnail for sighted users and read in the meta line as words ("12 minutes 34 seconds") for everyone else, never as a bare "12:34"
39
+ * @a11y `headingTagName` defaults to `h3`; set it to match the surrounding document outline rather than leaving a skipped level
40
+ *
41
+ * @anatomy A flush `plain` `ed-card`: its media header holds the thumbnail (an `ed-image` at 16:9, or the placeholder surface) with a play glyph and an optional duration badge, linked to `href`; below it, a title (`ed-heading` whose text is the link), a one-line meta in the Meta register, and the excerpt clipped to three lines.
42
+ *
43
+ * @slot media - Replaces the thumbnail. Leave it unslotted and pass `imgSrc` (or nothing, for the placeholder). Slot your own `ed-image` or `<img>` when the thumbnail needs a `<picture>` or `srcset`; it keeps the 16:9 frame (a slotted `<img>` is cropped to fill it, never stretched), the play glyph and the link.
44
+ * @slot title - The video title. Leave it unslotted and pass `text` + `href`; slot an `ed-heading` containing a plain `<a>` when the title needs markup the prop can't carry.
45
+ * @slot meta - One short line of context: course, chapter, who's in it. Leave it unslotted and pass `meta`. Keep it to one line — it's the card's single use of the Meta register.
46
+ * @slot - (default) The excerpt: a sentence or two about what the video covers. It's clipped to three lines; the full text stays in the DOM.
47
+ *
48
+ * @related ed-r-video-embed — the player, for watching in place
49
+ * @related ed-r-timeline-node-video — a video entry on a timeline, where the date leads
50
+ * @related ed-r-article-card — the same card without media, for posts and articles
51
+ * @related ed-r-project-card — a still image, a heading and a description, for work that isn't a video
52
+ * @related ed-grid — the layout a set of these belongs in
53
+ * @related ed-card — the container it composes, as a flush `plain` card (`variant="plain" padding="none"`)
54
+ *
55
+ * @content The title is the video's title verbatim. The meta is one line of nouns joined by a middle dot ("Series · Chapter 5 · Presenter"), not a sentence. The excerpt says what someone will learn, in one or two sentences; it's clipped at three lines. Never use generic link text ("Watch now") as the title.
56
+ *
57
+ * @state The title link has hover and focus-visible states inherited from the system heading-link treatment. The thumbnail dims slightly on hover so pointer users can see it's clickable too. The card has no states of its own.
58
+ *
59
+ * @recipe composition
60
+ *
61
+ * @useWhen someone needs to choose one video from a handful — the lessons that answer their question, what to watch next, a talk from an archive
62
+ * @useWhen videos have no thumbnails yet but should still look like videos
63
+ * @notWhen the reader should watch without leaving the page — use `ed-r-video-embed`
64
+ * @notWhen nothing in the set is a video — use `ed-r-article-card`, or `ed-r-project-card` for a still image
65
+ * @notWhen people will scan dozens of results by their titles — use `ed-list`
66
+ * @notWhen the set is a history read in date order — use `ed-r-timeline-node-video`
67
+ */
68
+ export declare class EdRVideoCard extends EdElement {
69
+ static get styles(): import('lit').CSSResult;
70
+ /**
71
+ * The video's title, rendered as the card's heading. Use the title
72
+ * verbatim.
73
+ *
74
+ * Named `text` rather than `title` on purpose: `title` is a global HTML
75
+ * attribute and would give the whole card a browser tooltip. It matches
76
+ * `ed-r-article-card` and the `ed-r-timeline-node-*` recipes.
77
+ */
78
+ text: string;
79
+ /**
80
+ * Where the video lives. The title links here, and so does the thumbnail
81
+ * (for pointer users only). Without it the title is plain text and the
82
+ * thumbnail isn't a link.
83
+ */
84
+ href?: string;
85
+ /**
86
+ * The thumbnail image. Without it the card draws the placeholder: a quiet
87
+ * 16:9 surface with the play glyph centered.
88
+ */
89
+ imgSrc?: string;
90
+ /**
91
+ * Alternative text for the thumbnail. Defaults to empty, because the title
92
+ * already names the video. With `href` set, the thumbnail is a duplicate
93
+ * link hidden from assistive technology, so this is never read; it only
94
+ * matters on a card without `href`, and only when the picture says
95
+ * something the title doesn't.
96
+ */
97
+ imgAlt: string;
98
+ /**
99
+ * One line of context under the title: "AI & Design Systems · Chapter 5 ·
100
+ * TJ Pitre". Nouns joined by a middle dot, not a sentence.
101
+ */
102
+ meta?: string;
103
+ /**
104
+ * The video's length as a clock ("12:34", "1:02:05"), drawn on the
105
+ * thumbnail. Screen readers hear it in words in the meta line.
106
+ */
107
+ duration?: string;
108
+ /**
109
+ * Semantic heading tag for the title (h2–h6). Defaults to `h3`, which
110
+ * assumes the set sits inside an `h2`-titled section.
111
+ *
112
+ * Pick by the outline, never for size: one level below the heading that introduces the
113
+ * set. `h3` beneath a section's `h2` (the usual case); `h2` when the cards are the page's
114
+ * main content directly beneath its h1; `h4`, `h5` or `h6` when the set sits deeper.
115
+ */
116
+ headingTagName: HeadingTag;
117
+ /**
118
+ * The card's look, forwarded to `ed-card` (#2019). Unset renders the flush
119
+ * `plain` card this recipe is built around: the thumbnail and the text align
120
+ * with their neighbors in a grid, and the thumbnail carries the visual
121
+ * weight. Set `outlined` when the surrounding context gives the card no
122
+ * boundary of its own, or `subtle` / `strong` to lift one card out of a set.
123
+ */
124
+ variant?: 'outlined' | 'subtle' | 'strong' | 'plain';
125
+ /**
126
+ * The card's inset, forwarded to `ed-card`. Unset is flush (`none`). Give it
127
+ * an inset when you also give it a surface (`outlined`, `subtle`, `strong`):
128
+ * `sm` for an ordinary card, `lg` for a featured one that stands alone. With
129
+ * an inset the thumbnail sits inset too, aligned with the text rather than
130
+ * bleeding to the card's edge (`ed-card` insets any header that isn't a bare
131
+ * image, and this one is a link around the frame).
132
+ */
133
+ padding?: 'none' | 'sm' | 'lg';
134
+ /**
135
+ * The duration in words for assistive technology: "1:02:05" → "1 hour 2
136
+ * minutes 5 seconds". Anything that isn't a clock is read as given.
137
+ */
138
+ protected durationInWords(): string | undefined;
139
+ /**
140
+ * A bare tag renders chrome around nothing, silently (#1620). Say so, but
141
+ * only when neither a prop nor a slot supplies a title.
142
+ */
143
+ firstUpdated(): void;
144
+ /**
145
+ * Regions show or hide by whether they have content, which is read at
146
+ * render. Content slotted after the first render (a framework filling the
147
+ * card in later) fires `slotchange`, so render again and let it appear.
148
+ */
149
+ private handleSlotChange;
150
+ protected renderThumbnail(): import('lit-html').TemplateResult<1>;
151
+ render(): import('lit-html').TemplateResult<1>;
152
+ }
153
+ declare global {
154
+ interface HTMLElementTagNameMap {
155
+ 'ed-r-video-card': EdRVideoCard;
156
+ }
157
+ }
158
+ export {};
159
+ //# sourceMappingURL=video-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"video-card.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/common/video-card/video-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AACzF,OAAO,8DAA8D,CAAC;AACtE,OAAO,oEAAoE,CAAC;AAC5E,OAAO,8DAA8D,CAAC;AACtE,OAAO,gEAAgE,CAAC;AAKxE,KAAK,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,qBAAa,YAAa,SAAQ,SAAS;IACzC,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;;;OAOG;IAEH,IAAI,SAAM;IAEV;;;;OAIG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IAEH,MAAM,SAAM;IAEZ;;;OAGG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;OAOG;IAEH,cAAc,EAAE,UAAU,CAAQ;IAElC;;;;;;OAMG;IAEH,OAAO,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IAErD;;;;;;;OAOG;IAEH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAE/B;;;OAGG;IACH,SAAS,CAAC,eAAe,IAAI,MAAM,GAAG,SAAS;IAY/C;;;OAGG;IACH,YAAY;IAIZ;;;;OAIG;IACH,OAAO,CAAC,gBAAgB,CAA8B;IAEtD,SAAS,CAAC,eAAe;IAsBzB,MAAM;CAsCP;AAID,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,YAAY,CAAC;KACjC;CACF"}
@@ -0,0 +1,105 @@
1
+ import { EdElement as m } from "@brad-frost-web/eddie-web-components/components/EdElement.js";
2
+ import "@brad-frost-web/eddie-web-components/components/card/card.js";
3
+ import "@brad-frost-web/eddie-web-components/components/heading/heading.js";
4
+ import "@brad-frost-web/eddie-web-components/components/icon/icon.js";
5
+ import "@brad-frost-web/eddie-web-components/components/image/image.js";
6
+ import { unsafeCSS as g, html as d, nothing as l } from "lit";
7
+ import { property as n } from "lit/decorators.js";
8
+ const f = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block;height:100%}.ed-r-video-card__media{display:block;color:inherit;text-decoration:none}:host(:not([padding])) .ed-r-video-card__media,:host([padding=none]) .ed-r-video-card__media{padding-block-end:.75rem}[hidden]{display:none!important}.ed-r-video-card__frame{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:var(--ed-theme-border-radius-md);background:var(--ed-theme-color-background-subtle)}.ed-r-video-card__frame ::slotted(*),.ed-r-video-card__frame ed-image,.ed-r-video-card__placeholder{display:block;width:100%;height:100%}.ed-r-video-card__frame ::slotted(img){object-fit:cover}a.ed-r-video-card__media:hover .ed-r-video-card__frame{opacity:.9}.ed-r-video-card__play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;--ed-icon-height: 3rem;--ed-icon-width: 3rem;color:var(--ed-theme-color-content-subtle);pointer-events:none}.ed-r-video-card__frame--picture .ed-r-video-card__play{color:var(--ed-theme-color-content-knockout)}.ed-r-video-card__duration{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);position:absolute;inset-block-end:.5rem;inset-inline-end:.5rem;padding:.125rem .375rem;border-radius:var(--ed-theme-border-radius-sm);background:var(--ed-theme-color-background-transparent-strong);color:var(--ed-theme-color-content-knockout)}.ed-r-video-card__title{display:block}.ed-r-video-card__title ::slotted(*){display:block;margin-block:0}.ed-r-video-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);margin:0;color:var(--ed-theme-color-content-subtle)}.ed-r-video-card__meta--spoken-only,.ed-r-video-card__spoken-duration{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-r-video-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:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.ed-r-video-card__excerpt ::slotted(*){margin-block-start:0}.ed-r-video-card__excerpt ::slotted(:last-child){margin-block-end:0}';
9
+ var v = Object.defineProperty, s = (c, e, a, h) => {
10
+ for (var r = void 0, i = c.length - 1, t; i >= 0; i--)
11
+ (t = c[i]) && (r = t(e, a, r) || r);
12
+ return r && v(e, a, r), r;
13
+ };
14
+ class o extends m {
15
+ constructor() {
16
+ super(...arguments), this.text = "", this.imgAlt = "", this.headingTagName = "h3", this.handleSlotChange = () => this.requestUpdate();
17
+ }
18
+ static get styles() {
19
+ return g(f);
20
+ }
21
+ /**
22
+ * The duration in words for assistive technology: "1:02:05" → "1 hour 2
23
+ * minutes 5 seconds". Anything that isn't a clock is read as given.
24
+ */
25
+ durationInWords() {
26
+ if (!this.duration) return;
27
+ const e = this.duration.trim().split(":").map(Number);
28
+ if (e.length < 2 || e.length > 3 || e.some((t) => !Number.isInteger(t) || t < 0))
29
+ return this.duration;
30
+ const [a, h, r] = e.length === 3 ? e : [0, ...e], i = (t, p) => t ? `${t} ${p}${t === 1 ? "" : "s"}` : "";
31
+ return [i(a, "hour"), i(h, "minute"), i(r, "second")].filter(Boolean).join(" ") || "0 seconds";
32
+ }
33
+ /**
34
+ * A bare tag renders chrome around nothing, silently (#1620). Say so, but
35
+ * only when neither a prop nor a slot supplies a title.
36
+ */
37
+ firstUpdated() {
38
+ this.text || this.warnIfComposedEmpty(["media", "title", "meta"]);
39
+ }
40
+ renderThumbnail() {
41
+ const e = this.imgSrc ? d`<ed-image aspectRatio="16/9"><img src="${this.imgSrc}" alt="${this.imgAlt}" /></ed-image>` : d`<span class="ed-r-video-card__placeholder" aria-hidden="true"></span>`, a = !!this.imgSrc || this.slotNotEmpty("media");
42
+ return d`
43
+ <span class="ed-r-video-card__frame ${a ? "ed-r-video-card__frame--picture" : ""}">
44
+ <slot name="media" @slotchange="${this.handleSlotChange}">${e}</slot>
45
+ <span class="ed-r-video-card__play" aria-hidden="true">
46
+ <ed-icon name="circle-play"></ed-icon>
47
+ </span>
48
+ ${this.duration ? d`<span class="ed-r-video-card__duration" aria-hidden="true">${this.duration}</span>` : l}
49
+ </span>
50
+ `;
51
+ }
52
+ render() {
53
+ const e = this.componentClassNames("ed-r-video-card", {}), a = this.durationInWords(), h = this.slotNotEmpty("title") || !!this.text, r = this.slotNotEmpty("meta") || !!this.meta || !!a, i = !this.defaultSlotEmpty(), t = a ? `${this.meta || this.slotNotEmpty("meta") ? ", " : ""}${a}` : "";
54
+ return d`
55
+ <ed-card variant="${this.variant ?? "plain"}" padding="${this.padding ?? "none"}" class="${e}">
56
+ ${this.href ? d`<a slot="header" class="ed-r-video-card__media" href="${this.href}" tabindex="-1" aria-hidden="true">
57
+ ${this.renderThumbnail()}
58
+ </a>` : d`<div slot="header" class="ed-r-video-card__media">${this.renderThumbnail()}</div>`}
59
+ <div class="ed-r-video-card__title" ?hidden="${!h}">
60
+ <slot name="title" @slotchange="${this.handleSlotChange}">
61
+ ${this.text ? d`<ed-heading tagName="${this.headingTagName}" variant="title-default">
62
+ ${this.href ? d`<a class="ed-r-video-card__link" href="${this.href}">${this.text}</a>` : this.text}
63
+ </ed-heading>` : l}
64
+ </slot>
65
+ </div>
66
+ <p
67
+ class="ed-r-video-card__meta ${t && !this.meta && !this.slotNotEmpty("meta") ? "ed-r-video-card__meta--spoken-only" : ""}"
68
+ ?hidden="${!r}"
69
+ ><slot name="meta" @slotchange="${this.handleSlotChange}">${this.meta ?? l}</slot>${t ? d`<span class="ed-r-video-card__spoken-duration">${t}</span>` : l}</p>
70
+ <div class="ed-r-video-card__excerpt" ?hidden="${!i}"><slot @slotchange="${this.handleSlotChange}"></slot></div>
71
+ </ed-card>
72
+ `;
73
+ }
74
+ }
75
+ s([
76
+ n()
77
+ ], o.prototype, "text");
78
+ s([
79
+ n()
80
+ ], o.prototype, "href");
81
+ s([
82
+ n()
83
+ ], o.prototype, "imgSrc");
84
+ s([
85
+ n()
86
+ ], o.prototype, "imgAlt");
87
+ s([
88
+ n()
89
+ ], o.prototype, "meta");
90
+ s([
91
+ n()
92
+ ], o.prototype, "duration");
93
+ s([
94
+ n()
95
+ ], o.prototype, "headingTagName");
96
+ s([
97
+ n({ reflect: !0 })
98
+ ], o.prototype, "variant");
99
+ s([
100
+ n({ reflect: !0 })
101
+ ], o.prototype, "padding");
102
+ customElements.define("ed-r-video-card", o);
103
+ export {
104
+ o as EdRVideoCard
105
+ };
@@ -60,6 +60,7 @@ type VideoEmbedRatio = typeof RATIOS[number];
60
60
  * @related ed-r-audio-player — for audio
61
61
  * @related ed-band / ed-hero — when moving pictures are a backdrop rather than content
62
62
  * @related ed-r-timeline-node-video — an entry in a history that points at the film rather than playing it
63
+ * @related ed-r-video-card — a card that points at a video from a grid of choices, rather than playing it
63
64
  *
64
65
  * @content The recipe renders no words of its own. The one string you own is `videoTitle`, and it is load-bearing: it is the video's accessible name. Write what the video IS ("Atomic Design — Brad Frost"), not what it is delivered by ("YouTube video player").
65
66
  *
@@ -1 +1 @@
1
- {"version":3,"file":"video-embed.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/common/video-embed/video-embed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AAMzF;;;;GAIG;AACH,QAAA,MAAM,MAAM,+DAAgE,CAAC;AAE7E,KAAK,eAAe,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,qBAAa,aAAc,SAAQ,SAAS;IAC1C,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;;;OAOG;IAEH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;;;;;;;;;OAaG;IAEH,UAAU,SAAM;IAEhB;;;;;;;;OAQG;IAEH,KAAK,EAAE,eAAe,CAAU;IAEhC,MAAM;CA+BP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,aAAa,CAAC;KACnC;CACF"}
1
+ {"version":3,"file":"video-embed.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/common/video-embed/video-embed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AAMzF;;;;GAIG;AACH,QAAA,MAAM,MAAM,+DAAgE,CAAC;AAE7E,KAAK,eAAe,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuEG;AACH,qBAAa,aAAc,SAAQ,SAAS;IAC1C,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;;;OAOG;IAEH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;;;;;;;;;OAaG;IAEH,UAAU,SAAM;IAEhB;;;;;;;;OAQG;IAEH,KAAK,EAAE,eAAe,CAAU;IAEhC,MAAM;CA+BP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,aAAa,CAAC;KACnC;CACF"}
@@ -139,6 +139,8 @@ type ParamBag = Record<string, string | number | boolean>;
139
139
  * @notWhen it is a symbol — use `ed-icon`
140
140
  * @notWhen it is a film or a recording with controls — use `ed-r-video-embed`
141
141
  * @notWhen many of them would animate on one page at once — set `still` on all but one or two, or use `ed-image` when the picture need not be generated
142
+ *
143
+ * @cssprop --ed-r-visualzzz-background - The colour the frame shows before the embed's first frame lands (and under reduced motion with no poster). Defaults to the dark knockout surface; set `transparent` to let the surface behind show through (#2251).
142
144
  */
143
145
  export declare class EdRVisualzzz extends EdElement {
144
146
  static get styles(): import('lit').CSSResult;
@@ -1 +1 @@
1
- {"version":3,"file":"visualzzz.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/common/visualzzz/visualzzz.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AAQzF,QAAA,MAAM,MAAM,uEAAwE,CAAC;AAErF,KAAK,cAAc,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAkG5C,sEAAsE;AACtE,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAsB1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwIG;AACH,qBAAa,YAAa,SAAQ,SAAS;IACzC,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;OAKG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IAEH,MAAM,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAE3B;;;;OAIG;IAEH,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAE5B;;;;;;;;;;;;;;OAcG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IAEH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;;OAIG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;;;;OAYG;IAEH,KAAK,UAAS;IAEd;;;;;;;OAOG;IAEH,OAAO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,OAAO,CAAC,qBAAqB;IAK7B;;;;OAIG;IACH,OAAO,CAAC,YAAY,CAElB;IAIF,OAAO,CAAC,UAAU,CAAC,CAAoB;IACvC,OAAO,CAAC,kBAAkB,CAAC,CAAS;IACpC,OAAO,CAAC,WAAW,CAAC,CAAiB;IACrC,OAAO,CAAC,cAAc,CAAC,CAAmB;IAC1C,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,gBAAgB,CAAC,CAAS;IAClC,OAAO,CAAC,cAAc,CAAC,CAAiC;IAExD;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,SAAS,CA6Df;IAEF,OAAO,CAAC,SAAS;IAYjB,OAAO,CAAC,aAAa,CAInB;IAEF;;;;;OAKG;IACH,OAAO,CAAC,eAAe,CAWrB;IAEF,OAAO,CAAC,UAAU;IA4ClB,OAAO,CAAC,SAAS;IAkBjB;;;OAGG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;;OAGG;IACH,IAAI,QAAQ,IAAI,MAAM,CA4FrB;IAED,0EAA0E;IAC1E,OAAO,CAAC,YAAY,CAAqB;IAEzC,OAAO,CAAC,YAAY;IAWpB;;;;;;;OAOG;IACH,IAAI,YAAY,IAAI,MAAM,GAAG,IAAI,CAMhC;IAED,MAAM;IAiBN;;;;OAIG;IACH,OAAO,KAAK,YAAY,GAEvB;IAED;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAiBnB,OAAO,CAAC,UAAU;CAuBnB;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
1
+ {"version":3,"file":"visualzzz.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/common/visualzzz/visualzzz.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AAQzF,QAAA,MAAM,MAAM,uEAAwE,C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,cAAc,CAAC,CAAiC;IAExD;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,SAAS,CA6Df;IAEF,OAAO,CAAC,SAAS;IAYjB,OAAO,CAAC,aAAa,CAInB;IAEF;;;;;OAKG;IACH,OAAO,CAAC,eAAe,CAWrB;IAEF,OAAO,CAAC,UAAU;IA4ClB,OAAO,CAAC,SAAS;IAkBjB;;;OAGG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;;OAGG;IACH,IAAI,QAAQ,IAAI,MAAM,CA4FrB;IAED,0EAA0E;IAC1E,OAAO,CAAC,YAAY,CAAqB;IAEzC,OAAO,CAAC,YAAY;IAWpB;;;;;;;OAOG;IACH,IAAI,YAAY,IAAI,MAAM,GAAG,IAAI,CAMhC;IAED,MAAM;IAiBN;;;;OAIG;IACH,OAAO,KAAK,YAAY,GAEvB;IAED;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAiBnB,OAAO,CAAC,UAAU;CAuBnB;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
@@ -1,14 +1,14 @@
1
1
  import { EdElement as R } from "@brad-frost-web/eddie-web-components/components/EdElement.js";
2
2
  import { unsafeCSS as M, html as d, nothing as E } from "lit";
3
- import { property as o, state as g } from "lit/decorators.js";
3
+ import { property as o, state as S } from "lit/decorators.js";
4
4
  import { ifDefined as _ } from "lit/directives/if-defined.js";
5
- const L = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}:host([ratio=fill]){width:100%;height:100%}.ed-r-visualzzz{position:relative;isolation:isolate;overflow:hidden;background:var(--ed-theme-color-background-brand)}.ed-r-visualzzz__frame{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}.ed-r-visualzzz__poster{display:block;width:100%;height:100%;object-fit:cover}.ed-r-visualzzz ::slotted(*){position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}.ed-r-visualzzz--decorative{pointer-events:none}.ed-r-visualzzz--ratio-16-9{aspect-ratio:16/9}.ed-r-visualzzz--ratio-21-9{aspect-ratio:21/9}.ed-r-visualzzz--ratio-4-3{aspect-ratio:4/3}.ed-r-visualzzz--ratio-3-2{aspect-ratio:3/2}.ed-r-visualzzz--ratio-1-1{aspect-ratio:1/1}.ed-r-visualzzz--ratio-4-5{aspect-ratio:4/5}.ed-r-visualzzz--ratio-9-16{aspect-ratio:9/16}.ed-r-visualzzz--fill{width:100%;height:100%}';
5
+ const L = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block}:host([ratio=fill]){width:100%;height:100%}.ed-r-visualzzz{position:relative;isolation:isolate;overflow:hidden;background:var(--ed-r-visualzzz-background, var(--ed-theme-color-background-knockout))}.ed-r-visualzzz__frame{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}.ed-r-visualzzz__poster{display:block;width:100%;height:100%;object-fit:cover}.ed-r-visualzzz ::slotted(*){position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}.ed-r-visualzzz--decorative{pointer-events:none}.ed-r-visualzzz--ratio-16-9{aspect-ratio:16/9}.ed-r-visualzzz--ratio-21-9{aspect-ratio:21/9}.ed-r-visualzzz--ratio-4-3{aspect-ratio:4/3}.ed-r-visualzzz--ratio-3-2{aspect-ratio:3/2}.ed-r-visualzzz--ratio-1-1{aspect-ratio:1/1}.ed-r-visualzzz--ratio-4-5{aspect-ratio:4/5}.ed-r-visualzzz--ratio-9-16{aspect-ratio:9/16}.ed-r-visualzzz--fill{width:100%;height:100%}';
6
6
  var U = Object.defineProperty, r = (h, t, e, s) => {
7
7
  for (var a = void 0, n = h.length - 1, l; n >= 0; n--)
8
8
  (l = h[n]) && (a = l(t, e, a) || a);
9
9
  return a && U(t, e, a), a;
10
10
  };
11
- const A = "https://visualzzz.bradfrost.com/", C = ["16:9", "21:9", "4:3", "3:2", "1:1", "4:5", "9:16", "fill"], P = "[data-visualzzz-avoid]", m = 200, F = "200px", I = 500, N = 12, $ = {
11
+ const A = "https://visualzzz.bradfrost.com/", C = ["16:9", "21:9", "4:3", "3:2", "1:1", "4:5", "9:16", "fill"], P = "[data-visualzzz-avoid]", u = 200, F = "200px", I = 500, N = 12, $ = {
12
12
  speed: "g.globalSpeed",
13
13
  aspect: "g.aspectRatio"
14
14
  }, O = /* @__PURE__ */ new Set(["transcription", "caption"]);
@@ -21,7 +21,7 @@ function T(h) {
21
21
  }
22
22
  ] : [];
23
23
  }
24
- function S(h) {
24
+ function g(h) {
25
25
  if (!h) return {};
26
26
  if (typeof h == "object") return h;
27
27
  if (typeof h == "string")
@@ -49,8 +49,8 @@ class i extends R {
49
49
  for (const w of document.querySelectorAll(e))
50
50
  for (const c of this._rectsFor(w)) {
51
51
  if (c.width <= 0 || c.height <= 0) continue;
52
- const u = (c.left - s.left) / a, p = (c.top - s.top) / n, b = c.width / a, y = c.height / n;
53
- p + y < -m || p > f + m || u + b < -m || u > l + m || k.push({ x: u, y: p, w: b, h: y });
52
+ const m = (c.left - s.left) / a, p = (c.top - s.top) / n, b = c.width / a, y = c.height / n;
53
+ p + y < -u || p > f + u || m + b < -u || m > l + u || k.push({ x: m, y: p, w: b, h: y });
54
54
  }
55
55
  const v = {
56
56
  type: "visualzzz:mask",
@@ -178,9 +178,9 @@ class i extends R {
178
178
  }
179
179
  const e = (s, a) => t.searchParams.set(s, String(a));
180
180
  this.anim && e("anim", this.anim), this.theme && e("theme", this.theme), this.dark !== void 0 && e("dark", this.dark ? "1" : "0"), this.speed !== void 0 && (e("speed", this.speed), e("g.globalSpeed", this.speed));
181
- for (const [s, a] of Object.entries(S(this.params)))
181
+ for (const [s, a] of Object.entries(g(this.params)))
182
182
  e(`p.${s}`, a);
183
- for (const [s, a] of Object.entries(S(this.globals)))
183
+ for (const [s, a] of Object.entries(g(this.globals)))
184
184
  e(`g.${s}`, a);
185
185
  if (t.pathname.endsWith("embed.html") || (t.pathname = t.pathname.replace(/\/?$/, "/embed.html")), this.maskSelector) {
186
186
  e("mask", "1");
@@ -333,10 +333,10 @@ r([
333
333
  o()
334
334
  ], i.prototype, "baseUrl");
335
335
  r([
336
- g()
336
+ S()
337
337
  ], i.prototype, "_reducedMotion");
338
338
  r([
339
- g()
339
+ S()
340
340
  ], i.prototype, "_seen");
341
341
  customElements.get("ed-r-visualzzz") === void 0 && customElements.define("ed-r-visualzzz", i);
342
342
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"theme-customizer.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/tools/theme-customizer/theme-customizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AACzF,OAAO,kEAAkE,CAAC;AAC1E,OAAO,8DAA8D,CAAC;AACtE,OAAO,gEAAgE,CAAC;AACxE,OAAO,8EAA8E,CAAC;AACtF,OAAO,8EAA8E,CAAC;AACtF,OAAO,0EAA0E,CAAC;AAClF,OAAO,kFAAkF,CAAC;AAC1F,OAAO,4DAA4D,CAAC;AACpE,OAAO,sEAAsE,CAAC;AAC9E,OAAO,sEAAsE,CAAC;AAC9E,OAAO,8EAA8E,CAAC;AACtF,OAAO,0EAA0E,CAAC;AAClF,OAAO,wEAAwE,CAAC;AAChF,OAAO,kEAAkE,CAAC;AAC1E,OAAO,oEAAoE,CAAC;AAC5E,OAAO,wEAAwE,CAAC;AAChF,OAAO,oFAAoF,CAAC;AAC5F,OAAO,kFAAkF,CAAC;AAC1F,OAAO,4FAA4F,CAAC;AAkZpG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;IAuBpB,OAAO,CAAC,SAAS;IAMjB;;;;;;OAMG;IACH;;;;;;;;OAQG;IACH,OAAO,CAAC,gBAAgB;IAsDxB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,mBAAmB;IAuI3B;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,gBAAgB;IAwBxB;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,sBAAsB;IAqI9B;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,oBAAoB;IA0C5B;;;;;;;;;OASG;IACH,OAAO,CAAC,wBAAwB;IAoChC;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB;IAgD1B,MAAM;CAgKP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,uBAAuB,EAAE,kBAAkB,CAAC;KAC7C;CACF"}
1
+ {"version":3,"file":"theme-customizer.d.ts","sourceRoot":"","sources":["../../../../../packages/eddie-recipes/recipes/tools/theme-customizer/theme-customizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAC;AACzF,OAAO,kEAAkE,CAAC;AAC1E,OAAO,8DAA8D,CAAC;AACtE,OAAO,gEAAgE,CAAC;AACxE,OAAO,8EAA8E,CAAC;AACtF,OAAO,8EAA8E,CAAC;AACtF,OAAO,0EAA0E,CAAC;AAClF,OAAO,kFAAkF,CAAC;AAC1F,OAAO,4DAA4D,CAAC;AACpE,OAAO,sEAAsE,CAAC;AAC9E,OAAO,sEAAsE,CAAC;AAC9E,OAAO,8EAA8E,CAAC;AACtF,OAAO,0EAA0E,CAAC;AAClF,OAAO,wEAAwE,CAAC;AAChF,OAAO,kEAAkE,CAAC;AAC1E,OAAO,oEAAoE,CAAC;AAC5E,OAAO,wEAAwE,CAAC;AAChF,OAAO,oFAAoF,CAAC;AAC5F,OAAO,kFAAkF,CAAC;AAC1F,OAAO,4FAA4F,CAAC;AAkZpG;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,OAAO,CAAC,WAAW,CAEjB;IAEF;;;;;;;;;OASG;IACH,OAAO,CAAC,YAAY;IAuBpB,OAAO,CAAC,SAAS;IAMjB;;;;;;OAMG;IACH;;;;;;;;OAQG;IACH,OAAO,CAAC,gBAAgB;IAsDxB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,mBAAmB;IA4I3B;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,gBAAgB;IAwBxB;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,sBAAsB;IAqI9B;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,oBAAoB;IA0C5B;;;;;;;;;OASG;IACH,OAAO,CAAC,wBAAwB;IAoChC;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB;IAgD1B,MAAM;CAgKP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,uBAAuB,EAAE,kBAAkB,CAAC;KAC7C;CACF"}
@@ -1354,7 +1354,12 @@ Paper: #F4EFE6` : ":root { --gray-0: #f8f9fa; --blue-6: #4dabf7; }"}
1354
1354
  ${re.map(
1355
1355
  (r) => m`
1356
1356
  <ed-tag behavior="action" size="sm">
1357
- <button type="button" ?disabled=${e} @click=${() => this.onExampleChip(r)}>
1357
+ <button
1358
+ class="ed-r-theme-customizer__example"
1359
+ type="button"
1360
+ ?disabled=${e}
1361
+ @click=${() => this.onExampleChip(r)}
1362
+ >
1358
1363
  ${r}
1359
1364
  </button>
1360
1365
  </ed-tag>