@atomic-ui/blocks 0.10.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +3157 -97
- package/dist/chunk-2URXTXNQ.js +296 -0
- package/dist/chunk-2URXTXNQ.js.map +1 -0
- package/dist/chunk-7X4WGV6K.js +97 -0
- package/dist/chunk-7X4WGV6K.js.map +1 -0
- package/dist/{chunk-QGVIJNTD.js → chunk-CCFBROX3.js} +127 -41
- package/dist/chunk-CCFBROX3.js.map +1 -0
- package/dist/{chunk-NLHFBIGQ.js → chunk-EYP5LWUR.js} +28 -10
- package/dist/chunk-EYP5LWUR.js.map +1 -0
- package/dist/chunk-GRKPKJZH.js +275 -0
- package/dist/chunk-GRKPKJZH.js.map +1 -0
- package/dist/{chunk-OR4U4UJQ.js → chunk-MX7FU5JE.js} +69 -1
- package/dist/chunk-MX7FU5JE.js.map +1 -0
- package/dist/{chunk-UVHQY3QJ.js → chunk-NHWD2LUR.js} +2 -2
- package/dist/chunk-NHWD2LUR.js.map +1 -0
- package/dist/{chunk-FLOKZ7O3.js → chunk-PIUPEB4I.js} +44 -11
- package/dist/chunk-PIUPEB4I.js.map +1 -0
- package/dist/{chunk-HNCJLMQB.js → chunk-R7SSIE2E.js} +26 -8
- package/dist/chunk-R7SSIE2E.js.map +1 -0
- package/dist/{chunk-LJ6AQO26.js → chunk-SYTQIQT2.js} +73 -18
- package/dist/chunk-SYTQIQT2.js.map +1 -0
- package/dist/chunk-WGDMORWT.js +48 -0
- package/dist/chunk-WGDMORWT.js.map +1 -0
- package/dist/{chunk-PALYJCLC.js → chunk-XB6FD4SF.js} +3 -3
- package/dist/chunk-XB6FD4SF.js.map +1 -0
- package/dist/chunk-XNRFZCNB.js +499 -0
- package/dist/chunk-XNRFZCNB.js.map +1 -0
- package/dist/{chunk-CC2U2L2H.js → chunk-YXMXLVK7.js} +3 -3
- package/dist/chunk-YXMXLVK7.js.map +1 -0
- package/dist/{chunk-YC6KXE6O.js → chunk-ZD75GU6J.js} +7 -4
- package/dist/chunk-ZD75GU6J.js.map +1 -0
- package/dist/{chunk-TT2PTEQO.js → chunk-ZODL5HD4.js} +64 -17
- package/dist/chunk-ZODL5HD4.js.map +1 -0
- package/dist/components/card-grid.js +1 -1
- package/dist/components/changelog.d.ts +24 -0
- package/dist/components/changelog.js +2 -2
- package/dist/components/estimator.d.ts +25 -0
- package/dist/components/estimator.js +1 -1
- package/dist/components/g2-case.d.ts +225 -0
- package/dist/components/g2-case.js +16 -0
- package/dist/components/g2-case.js.map +1 -0
- package/dist/components/g2-shared.d.ts +28 -0
- package/dist/components/g2-shared.js +35 -0
- package/dist/components/g2-shared.js.map +1 -0
- package/dist/components/g2-site.d.ts +493 -0
- package/dist/components/g2-site.js +26 -0
- package/dist/components/g2-site.js.map +1 -0
- package/dist/components/g2-tools.d.ts +77 -0
- package/dist/components/g2-tools.js +8 -0
- package/dist/components/g2-tools.js.map +1 -0
- package/dist/components/journey.d.ts +79 -9
- package/dist/components/journey.js +1 -1
- package/dist/components/marketing.d.ts +23 -0
- package/dist/components/marketing.js +1 -1
- package/dist/components/organisms.d.ts +23 -2
- package/dist/components/organisms.js +1 -1
- package/dist/components/property.js +1 -1
- package/dist/components/scene.js +1 -1
- package/dist/components/scrubber.js +1 -1
- package/dist/components/selling.d.ts +42 -1
- package/dist/components/selling.js +1 -1
- package/dist/components/site.d.ts +78 -0
- package/dist/components/site.js +1 -1
- package/dist/components/studio.d.ts +87 -6
- package/dist/components/studio.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +81 -42
- package/dist/index.js.map +1 -1
- package/dist/standalone/atomic-ui-blocks.js +1373 -787
- package/dist/standalone/atomic-ui-blocks.js.map +4 -4
- package/package.json +3 -3
- package/dist/chunk-CC2U2L2H.js.map +0 -1
- package/dist/chunk-FLOKZ7O3.js.map +0 -1
- package/dist/chunk-HNCJLMQB.js.map +0 -1
- package/dist/chunk-LJ6AQO26.js.map +0 -1
- package/dist/chunk-NLHFBIGQ.js.map +0 -1
- package/dist/chunk-OR4U4UJQ.js.map +0 -1
- package/dist/chunk-PALYJCLC.js.map +0 -1
- package/dist/chunk-QGVIJNTD.js.map +0 -1
- package/dist/chunk-SOFMXF32.js +0 -142
- package/dist/chunk-SOFMXF32.js.map +0 -1
- package/dist/chunk-TT2PTEQO.js.map +0 -1
- package/dist/chunk-UVHQY3QJ.js.map +0 -1
- package/dist/chunk-YC6KXE6O.js.map +0 -1
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import {
|
|
2
|
+
accent,
|
|
3
|
+
accentOn,
|
|
4
|
+
band,
|
|
5
|
+
bandLine,
|
|
6
|
+
bandMuted,
|
|
7
|
+
bandOn,
|
|
8
|
+
bandRaised,
|
|
9
|
+
ink,
|
|
10
|
+
inkLine,
|
|
11
|
+
levelOf,
|
|
12
|
+
monoLabel,
|
|
13
|
+
paper
|
|
14
|
+
} from "./chunk-WGDMORWT.js";
|
|
15
|
+
|
|
16
|
+
// packages/blocks/src/components/g2-case.ts
|
|
17
|
+
import { css, html, nothing, svg } from "lit";
|
|
18
|
+
import { ImpaktElement, fontWeight, say, space, t, visuallyHidden } from "@atomic-ui/ui";
|
|
19
|
+
var STEP = 40;
|
|
20
|
+
var TOP = 72;
|
|
21
|
+
var ImpaktProcessLine = class extends ImpaktElement {
|
|
22
|
+
static {
|
|
23
|
+
this.properties = {
|
|
24
|
+
nodes: { type: Array },
|
|
25
|
+
lineLabel: { type: String, attribute: "line-label" },
|
|
26
|
+
label: { type: String }
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
31
|
+
this.nodes = [];
|
|
32
|
+
this.lineLabel = "";
|
|
33
|
+
this.label = "";
|
|
34
|
+
}
|
|
35
|
+
static {
|
|
36
|
+
this.styles = [
|
|
37
|
+
...ImpaktElement.styles,
|
|
38
|
+
css`
|
|
39
|
+
:host { display: block; container-type: inline-size; background: ${band}; color: ${bandOn}; }
|
|
40
|
+
.visual { display: none; position: relative; }
|
|
41
|
+
.visual svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; }
|
|
42
|
+
.visual path { fill: none; stroke: ${bandOn}; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
|
|
43
|
+
.ring { position: absolute; inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid ${bandOn}; background: ${band}; transform: translate(-50%, -50%); }
|
|
44
|
+
.ring.current { inline-size: 12px; block-size: 12px; background: ${accent}; }
|
|
45
|
+
.vlabel { position: absolute; transform: translateX(-50%); ${monoLabel}; color: ${bandMuted}; white-space: nowrap; }
|
|
46
|
+
.lineLabel { position: absolute; inset-inline-start: 0; ${monoLabel}; color: ${bandMuted}; }
|
|
47
|
+
.flag { display: inline-block; padding: 4px 8px; ${monoLabel}; font-weight: ${fontWeight("medium")}; background: ${accent}; color: ${accentOn}; white-space: nowrap; }
|
|
48
|
+
.visual .flag { position: absolute; transform: translate(-50%, -100%); }
|
|
49
|
+
|
|
50
|
+
ol { margin: 0; padding: ${space(6)} ${space(4)}; list-style: none; }
|
|
51
|
+
li { position: relative; padding: 0 0 ${space(5)} 28px; }
|
|
52
|
+
li::before { content: ''; position: absolute; inset-inline-start: 0; inset-block-start: 4px; inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid ${bandOn}; background: ${band}; }
|
|
53
|
+
li[aria-current]::before { background: ${accent}; }
|
|
54
|
+
li:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: 4.25px; inset-block-start: 14px; inset-block-end: -4px; inline-size: 1.5px; background: ${bandOn}; }
|
|
55
|
+
.rlabel { ${monoLabel}; font-size: 0.75rem; color: ${bandOn}; }
|
|
56
|
+
li .flag { margin-inline-start: ${space(2)}; }
|
|
57
|
+
|
|
58
|
+
@container (min-width: 60rem) {
|
|
59
|
+
.visual { display: block; }
|
|
60
|
+
ol { ${visuallyHidden} }
|
|
61
|
+
}
|
|
62
|
+
@media (forced-colors: active) {
|
|
63
|
+
.visual path { stroke: CanvasText; }
|
|
64
|
+
.ring, li::before { border-color: CanvasText; background: Canvas; }
|
|
65
|
+
.ring.current, li[aria-current]::before { background: Highlight; }
|
|
66
|
+
li::after { background: CanvasText; }
|
|
67
|
+
.flag { border: 1px solid CanvasText; }
|
|
68
|
+
}
|
|
69
|
+
`
|
|
70
|
+
];
|
|
71
|
+
}
|
|
72
|
+
render() {
|
|
73
|
+
const nodes = this.nodes ?? [];
|
|
74
|
+
if (!nodes.length) return html``;
|
|
75
|
+
const n = nodes.length;
|
|
76
|
+
const depthOf = (node) => Math.max(0, Math.min(4, Number(node.depth) || 0));
|
|
77
|
+
const maxDepth = Math.max(...nodes.map(depthOf));
|
|
78
|
+
const height = TOP + maxDepth * STEP + 44;
|
|
79
|
+
const pts = nodes.map((node, i) => ({ x: (i + 0.5) / n * 1e3, y: TOP + depthOf(node) * STEP }));
|
|
80
|
+
let d = `M0 ${pts[0].y} L${pts[0].x} ${pts[0].y}`;
|
|
81
|
+
for (let i = 1; i < n; i++) {
|
|
82
|
+
const a = pts[i - 1];
|
|
83
|
+
const b = pts[i];
|
|
84
|
+
if (a.y === b.y) d += ` L${b.x} ${b.y}`;
|
|
85
|
+
else {
|
|
86
|
+
const mid = (a.x + b.x) / 2;
|
|
87
|
+
d += ` C${mid} ${a.y} ${mid} ${b.y} ${b.x} ${b.y}`;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
d += ` L1000 ${pts[n - 1].y}`;
|
|
91
|
+
const pct = (i) => `${(i + 0.5) / n * 100}%`;
|
|
92
|
+
return html`<div class="visual" part="drawing" aria-hidden="true" style="block-size:${height}px">
|
|
93
|
+
<svg viewBox="0 0 1000 ${height}" preserveAspectRatio="none" focusable="false">${svg`<path d=${d} />`}</svg>
|
|
94
|
+
${this.lineLabel ? html`<span class="lineLabel" style="inset-block-start:${TOP - 64}px">${this.lineLabel}</span>` : nothing}
|
|
95
|
+
${nodes.map((node, i) => {
|
|
96
|
+
const y = pts[i].y;
|
|
97
|
+
const onMain = depthOf(node) === 0;
|
|
98
|
+
const label = onMain ? node.flag ? nothing : html`<span class="vlabel" style="inset-inline-start:${pct(i)};inset-block-start:${y - 30}px">${node.label}</span>` : html`<span class="vlabel" style="inset-inline-start:${pct(i)};inset-block-start:${y + 14}px">${node.label}</span>`;
|
|
99
|
+
return html`<span class="ring ${node.current ? "current" : ""}" style="inset-inline-start:${pct(i)};inset-block-start:${y}px"></span>
|
|
100
|
+
${label}
|
|
101
|
+
${node.flag ? html`<span class="flag" style="inset-inline-start:${pct(i)};inset-block-start:${y - 12}px">${node.flag}</span>` : nothing}`;
|
|
102
|
+
})}
|
|
103
|
+
</div>
|
|
104
|
+
<ol part="list" role="list" aria-label=${this.label || nothing}>
|
|
105
|
+
${nodes.map(
|
|
106
|
+
(node) => html`<li part="item" aria-current=${node.current ? "step" : nothing}>
|
|
107
|
+
<span class="rlabel">${node.label}</span>${node.flag ? html`<span class="flag">${node.flag}</span>` : nothing}
|
|
108
|
+
</li>`
|
|
109
|
+
)}
|
|
110
|
+
</ol>`;
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
var ImpaktWeekStrip = class extends ImpaktElement {
|
|
114
|
+
static {
|
|
115
|
+
this.properties = {
|
|
116
|
+
days: { type: Array },
|
|
117
|
+
headingLevel: { type: Number, attribute: "heading-level" },
|
|
118
|
+
label: { type: String }
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
constructor() {
|
|
122
|
+
super();
|
|
123
|
+
this.days = [];
|
|
124
|
+
this.headingLevel = 3;
|
|
125
|
+
this.label = "";
|
|
126
|
+
}
|
|
127
|
+
static {
|
|
128
|
+
this.styles = [
|
|
129
|
+
...ImpaktElement.styles,
|
|
130
|
+
css`
|
|
131
|
+
:host { display: block; }
|
|
132
|
+
ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: 10px; }
|
|
133
|
+
li { box-sizing: border-box; min-block-size: 150px; padding: ${space(5)}; background: ${bandRaised}; border: 1px solid ${bandLine}; color: ${bandOn}; }
|
|
134
|
+
li.highlight { background: ${accent}; border-color: ${accent}; color: ${accentOn}; }
|
|
135
|
+
.day { margin: 0; ${monoLabel}; color: ${bandMuted}; }
|
|
136
|
+
.heading { margin: ${space(2)} 0 0; font-family: ${t.fontHeading}; font-size: 2rem; font-weight: ${fontWeight("semibold")}; line-height: 1.1; letter-spacing: -0.03em; }
|
|
137
|
+
.text { margin: ${space(3)} 0 0; font-size: 0.875rem; line-height: 1.45; color: ${bandMuted}; }
|
|
138
|
+
li.highlight :is(.day, .text) { color: ${accentOn}; }
|
|
139
|
+
@media (forced-colors: active) { li, li.highlight { border-color: CanvasText; } li.highlight { border-width: 3px; } }
|
|
140
|
+
`
|
|
141
|
+
];
|
|
142
|
+
}
|
|
143
|
+
render() {
|
|
144
|
+
if (!this.days?.length) return html``;
|
|
145
|
+
const level = levelOf(this.headingLevel);
|
|
146
|
+
return html`<ol part="list" role="list" aria-label=${this.label || nothing}>
|
|
147
|
+
${this.days.map(
|
|
148
|
+
(day) => html`<li part="day" class=${day.highlight ? "highlight" : ""}>
|
|
149
|
+
<p class="day">${day.day}</p>
|
|
150
|
+
<div class="heading" role="heading" aria-level=${level}>${day.heading}</div>
|
|
151
|
+
${day.text ? html`<p class="text">${day.text}</p>` : nothing}
|
|
152
|
+
</li>`
|
|
153
|
+
)}
|
|
154
|
+
</ol>`;
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
var ImpaktCallout = class extends ImpaktElement {
|
|
158
|
+
static {
|
|
159
|
+
this.properties = {
|
|
160
|
+
label: { type: String },
|
|
161
|
+
text: { type: String }
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
constructor() {
|
|
165
|
+
super();
|
|
166
|
+
this.label = "";
|
|
167
|
+
this.text = "";
|
|
168
|
+
}
|
|
169
|
+
static {
|
|
170
|
+
this.styles = [
|
|
171
|
+
...ImpaktElement.styles,
|
|
172
|
+
css`
|
|
173
|
+
:host { display: block; }
|
|
174
|
+
.panel { padding: ${space(8)} ${space(8)} ${space(10)}; background: ${ink}; color: ${paper}; border: 1px solid ${ink}; }
|
|
175
|
+
.label { margin: 0 0 ${space(4)}; ${monoLabel}; font-weight: ${fontWeight("medium")}; color: ${accent}; }
|
|
176
|
+
.text { margin: 0; max-inline-size: 26em; font-family: ${t.fontHeading}; font-size: clamp(1.5rem, 1rem + 2vw, 2rem); font-weight: ${fontWeight("semibold")}; line-height: 1.2; letter-spacing: -0.02em; }
|
|
177
|
+
@media (prefers-color-scheme: dark) { .panel { border-color: ${inkLine}; } }
|
|
178
|
+
@media (max-width: 30rem) { .panel { padding: ${space(6)}; } }
|
|
179
|
+
@media (forced-colors: active) { .panel { border-color: CanvasText; } }
|
|
180
|
+
`
|
|
181
|
+
];
|
|
182
|
+
}
|
|
183
|
+
render() {
|
|
184
|
+
return html`<div class="panel" part="panel">
|
|
185
|
+
${this.label ? html`<p class="label" part="label">${this.label}</p>` : nothing}
|
|
186
|
+
<p class="text" part="text"><slot>${this.text}</slot></p>
|
|
187
|
+
</div>`;
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
var ImpaktHypothesisCard = class extends ImpaktElement {
|
|
191
|
+
static {
|
|
192
|
+
this.properties = {
|
|
193
|
+
number: { type: String },
|
|
194
|
+
statement: { type: String },
|
|
195
|
+
metric: { type: String },
|
|
196
|
+
impact: { type: String, reflect: true },
|
|
197
|
+
impactLabel: { type: String, attribute: "impact-label" }
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
constructor() {
|
|
201
|
+
super();
|
|
202
|
+
this.number = "";
|
|
203
|
+
this.statement = "";
|
|
204
|
+
this.metric = "";
|
|
205
|
+
this.impact = "";
|
|
206
|
+
this.impactLabel = "";
|
|
207
|
+
}
|
|
208
|
+
static {
|
|
209
|
+
this.styles = [
|
|
210
|
+
...ImpaktElement.styles,
|
|
211
|
+
css`
|
|
212
|
+
:host { display: block; block-size: 100%; }
|
|
213
|
+
article { box-sizing: border-box; block-size: 100%; display: grid; align-content: start; gap: ${space(4)}; padding: ${space(6)}; background: ${t.surfaceCard}; color: ${t.text}; border: 1px solid ${t.text}; }
|
|
214
|
+
.top { display: flex; justify-content: space-between; align-items: center; gap: ${space(2)}; flex-wrap: wrap; min-block-size: 22px; }
|
|
215
|
+
.number { font-family: ${t.fontMono}; font-size: 0.75rem; letter-spacing: 0.06em; }
|
|
216
|
+
.impact { margin: 0; padding: 3px 7px; ${monoLabel}; font-weight: ${fontWeight("medium")}; border: 1px solid ${t.text}; color: ${t.text}; }
|
|
217
|
+
:host([impact='high']) .impact { background: ${accent}; color: ${accentOn}; border-color: ${accentOn}; }
|
|
218
|
+
.statement { margin: 0; font-family: ${t.fontHeading}; font-size: 1.25rem; line-height: 1.35; letter-spacing: -0.01em; }
|
|
219
|
+
.metric { margin: 0; ${monoLabel}; color: ${t.textMuted}; }
|
|
220
|
+
@media (forced-colors: active) { article, .impact { border-color: CanvasText; } }
|
|
221
|
+
`
|
|
222
|
+
];
|
|
223
|
+
}
|
|
224
|
+
render() {
|
|
225
|
+
const words = { high: "High impact", medium: "Medium impact", low: "Low impact" };
|
|
226
|
+
const impact = this.impactLabel || (this.impact && words[this.impact] ? say(words[this.impact]) : "");
|
|
227
|
+
return html`<article part="card">
|
|
228
|
+
${this.number || impact ? html`<div class="top">
|
|
229
|
+
<span class="number" part="number">${this.number}</span>
|
|
230
|
+
${impact ? html`<p class="impact" part="impact">${impact}</p>` : nothing}
|
|
231
|
+
</div>` : nothing}
|
|
232
|
+
${this.statement ? html`<p class="statement" part="statement">${this.statement}</p>` : nothing}
|
|
233
|
+
${this.metric ? html`<p class="metric" part="metric">${say("Metric")} · ${this.metric}</p>` : nothing}
|
|
234
|
+
</article>`;
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
var ImpaktBrowserFrame = class extends ImpaktElement {
|
|
238
|
+
static {
|
|
239
|
+
this.properties = {
|
|
240
|
+
caption: { type: String },
|
|
241
|
+
ratio: { type: String },
|
|
242
|
+
filled: { state: true }
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
constructor() {
|
|
246
|
+
super();
|
|
247
|
+
this.caption = "";
|
|
248
|
+
this.ratio = "16 / 9";
|
|
249
|
+
this.filled = false;
|
|
250
|
+
}
|
|
251
|
+
static {
|
|
252
|
+
this.styles = [
|
|
253
|
+
...ImpaktElement.styles,
|
|
254
|
+
css`
|
|
255
|
+
:host { display: block; }
|
|
256
|
+
.frame { border: 1px solid ${bandLine}; background: ${band}; color: ${bandOn}; }
|
|
257
|
+
.bar { display: flex; align-items: center; gap: 6px; block-size: 40px; padding-inline: ${space(3)}; background: ${bandRaised}; border-block-end: 1px solid ${bandLine}; overflow: hidden; }
|
|
258
|
+
.dot { flex: none; inline-size: 8px; block-size: 8px; border-radius: 50%; background: ${bandLine}; }
|
|
259
|
+
.dot:first-child { background: ${accent}; }
|
|
260
|
+
.caption { margin-inline-start: ${space(1.5)}; ${monoLabel}; color: ${bandMuted}; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
261
|
+
.canvas { position: relative; }
|
|
262
|
+
.canvas.empty { background-image: linear-gradient(to right, ${bandLine} 1px, transparent 1px), linear-gradient(to bottom, ${bandLine} 1px, transparent 1px); background-size: 28px 28px; }
|
|
263
|
+
::slotted(img), ::slotted(picture), ::slotted(video) { display: block; inline-size: 100%; block-size: auto; }
|
|
264
|
+
@media (forced-colors: active) { .frame, .bar { border-color: CanvasText; } .dot { background: CanvasText; } }
|
|
265
|
+
`
|
|
266
|
+
];
|
|
267
|
+
}
|
|
268
|
+
render() {
|
|
269
|
+
return html`<div class="frame" part="frame">
|
|
270
|
+
<div class="bar" part="bar" aria-hidden="true">
|
|
271
|
+
<span class="dot"></span><span class="dot"></span><span class="dot"></span>
|
|
272
|
+
${this.caption ? html`<span class="caption" part="caption">${this.caption}</span>` : nothing}
|
|
273
|
+
</div>
|
|
274
|
+
<div class="canvas ${this.filled ? "" : "empty"}" part="canvas" style=${this.filled ? "" : `aspect-ratio: ${this.ratio || "16 / 9"}`}>
|
|
275
|
+
<slot @slotchange=${this.onSlot}></slot>
|
|
276
|
+
</div>
|
|
277
|
+
</div>`;
|
|
278
|
+
}
|
|
279
|
+
onSlot(e) {
|
|
280
|
+
this.filled = e.target.assignedElements().length > 0;
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
customElements.define("impakt-process-line", ImpaktProcessLine);
|
|
284
|
+
customElements.define("impakt-week-strip", ImpaktWeekStrip);
|
|
285
|
+
customElements.define("impakt-callout", ImpaktCallout);
|
|
286
|
+
customElements.define("impakt-hypothesis-card", ImpaktHypothesisCard);
|
|
287
|
+
customElements.define("impakt-browser-frame", ImpaktBrowserFrame);
|
|
288
|
+
|
|
289
|
+
export {
|
|
290
|
+
ImpaktProcessLine,
|
|
291
|
+
ImpaktWeekStrip,
|
|
292
|
+
ImpaktCallout,
|
|
293
|
+
ImpaktHypothesisCard,
|
|
294
|
+
ImpaktBrowserFrame
|
|
295
|
+
};
|
|
296
|
+
//# sourceMappingURL=chunk-2URXTXNQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/g2-case.ts"],"sourcesContent":["/**\n * The G2 Noire blocks for a case study and the studio's process: the process\n * line, the week strip, the \"how might we\" callout, the hypothesis card and the\n * browser frame a product screenshot sits in.\n */\nimport { css, html, nothing, svg, type TemplateResult } from 'lit';\nimport { ImpaktElement, fontWeight, say, space, t, visuallyHidden } from '@atomic-ui/ui';\nimport { accent, accentOn, band, bandLine, bandMuted, bandOn, bandRaised, ink, inkLine, levelOf, monoLabel, paper } from './g2-shared';\n\n/** One point on the process line. */\nexport interface ProcessNode {\n /** What happens here, such as \"Discovery\". */\n label: string;\n /** How far the line dips here: 0 on the main line, 1 a step below, 2 two steps. */\n depth?: number;\n /** The point the project is at now, filled in the accent. */\n current?: boolean;\n /** A flag above the point, such as \"Build merged\" or \"v1.0 launch\". */\n flag?: string;\n}\n\nconst STEP = 40;\nconst TOP = 72;\n\n/**\n * A project's process drawn as one main line that dips to a different depth\n * for each phase, like a branch in version control: hollow rings for each\n * point, the current one filled in the accent, a mono label by each (above a\n * point on the main line, below one that dips) and accent flags such as\n * \"Build merged\" and \"v1.0 launch\". A flag on the main line stands in for\n * its point's label there.\n *\n * **The drawing is decoration; the list is the content.** A screen reader\n * meets an ordered list of the points, in order, with their flags and the\n * current one marked as the current step (1.1.1, 1.3.1). On a narrow column,\n * measured against its own width, the same list is drawn as a vertical rail\n * and the drawing is not shown, so nothing is lost at 320px (1.4.10).\n *\n * It is drawn for an ink band and takes the band's colours; outside one it\n * draws its own ink panel. The current point keeps a ring in the band's text\n * colour, so it is not told by its colour alone (1.4.1, 1.4.11).\n *\n * @category content\n * @icon git-commit\n */\nexport class ImpaktProcessLine extends ImpaktElement {\n static properties = {\n nodes: { type: Array },\n lineLabel: { type: String, attribute: 'line-label' },\n label: { type: String },\n };\n /** The points, left to right. */\n declare nodes: ProcessNode[];\n /** A label at the start of the line, such as \"main\". */\n declare lineLabel: string;\n /** A name for the list, for a screen reader, such as \"How a project runs\". */\n declare label: string;\n\n constructor() {\n super();\n this.nodes = [];\n this.lineLabel = '';\n this.label = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; container-type: inline-size; background: ${band}; color: ${bandOn}; }\n .visual { display: none; position: relative; }\n .visual svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; }\n .visual path { fill: none; stroke: ${bandOn}; stroke-width: 1.5; vector-effect: non-scaling-stroke; }\n .ring { position: absolute; inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid ${bandOn}; background: ${band}; transform: translate(-50%, -50%); }\n .ring.current { inline-size: 12px; block-size: 12px; background: ${accent}; }\n .vlabel { position: absolute; transform: translateX(-50%); ${monoLabel}; color: ${bandMuted}; white-space: nowrap; }\n .lineLabel { position: absolute; inset-inline-start: 0; ${monoLabel}; color: ${bandMuted}; }\n .flag { display: inline-block; padding: 4px 8px; ${monoLabel}; font-weight: ${fontWeight('medium')}; background: ${accent}; color: ${accentOn}; white-space: nowrap; }\n .visual .flag { position: absolute; transform: translate(-50%, -100%); }\n\n ol { margin: 0; padding: ${space(6)} ${space(4)}; list-style: none; }\n li { position: relative; padding: 0 0 ${space(5)} 28px; }\n li::before { content: ''; position: absolute; inset-inline-start: 0; inset-block-start: 4px; inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid ${bandOn}; background: ${band}; }\n li[aria-current]::before { background: ${accent}; }\n li:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: 4.25px; inset-block-start: 14px; inset-block-end: -4px; inline-size: 1.5px; background: ${bandOn}; }\n .rlabel { ${monoLabel}; font-size: 0.75rem; color: ${bandOn}; }\n li .flag { margin-inline-start: ${space(2)}; }\n\n @container (min-width: 60rem) {\n .visual { display: block; }\n ol { ${visuallyHidden} }\n }\n @media (forced-colors: active) {\n .visual path { stroke: CanvasText; }\n .ring, li::before { border-color: CanvasText; background: Canvas; }\n .ring.current, li[aria-current]::before { background: Highlight; }\n li::after { background: CanvasText; }\n .flag { border: 1px solid CanvasText; }\n }\n `,\n ];\n\n render(): TemplateResult {\n const nodes = this.nodes ?? [];\n if (!nodes.length) return html``;\n const n = nodes.length;\n const depthOf = (node: ProcessNode) => Math.max(0, Math.min(4, Number(node.depth) || 0));\n const maxDepth = Math.max(...nodes.map(depthOf));\n const height = TOP + maxDepth * STEP + 44;\n const pts = nodes.map((node, i) => ({ x: ((i + 0.5) / n) * 1000, y: TOP + depthOf(node) * STEP }));\n let d = `M0 ${pts[0]!.y} L${pts[0]!.x} ${pts[0]!.y}`;\n for (let i = 1; i < n; i++) {\n const a = pts[i - 1]!;\n const b = pts[i]!;\n if (a.y === b.y) d += ` L${b.x} ${b.y}`;\n else {\n const mid = (a.x + b.x) / 2;\n d += ` C${mid} ${a.y} ${mid} ${b.y} ${b.x} ${b.y}`;\n }\n }\n d += ` L1000 ${pts[n - 1]!.y}`;\n const pct = (i: number) => `${((i + 0.5) / n) * 100}%`;\n return html`<div class=\"visual\" part=\"drawing\" aria-hidden=\"true\" style=\"block-size:${height}px\">\n <svg viewBox=\"0 0 1000 ${height}\" preserveAspectRatio=\"none\" focusable=\"false\">${svg`<path d=${d} />`}</svg>\n ${this.lineLabel ? html`<span class=\"lineLabel\" style=\"inset-block-start:${TOP - 64}px\">${this.lineLabel}</span>` : nothing}\n ${nodes.map((node, i) => {\n const y = pts[i]!.y;\n // On the main line the label sits above the point, clear of the curves that leave it; a\n // flag there stands in for it. Below the main line the label hangs under the point.\n const onMain = depthOf(node) === 0;\n const label = onMain\n ? node.flag\n ? nothing\n : html`<span class=\"vlabel\" style=\"inset-inline-start:${pct(i)};inset-block-start:${y - 30}px\">${node.label}</span>`\n : html`<span class=\"vlabel\" style=\"inset-inline-start:${pct(i)};inset-block-start:${y + 14}px\">${node.label}</span>`;\n return html`<span class=\"ring ${node.current ? 'current' : ''}\" style=\"inset-inline-start:${pct(i)};inset-block-start:${y}px\"></span>\n ${label}\n ${node.flag ? html`<span class=\"flag\" style=\"inset-inline-start:${pct(i)};inset-block-start:${y - 12}px\">${node.flag}</span>` : nothing}`;\n })}\n </div>\n <ol part=\"list\" role=\"list\" aria-label=${this.label || nothing}>\n ${nodes.map(\n (node) => html`<li part=\"item\" aria-current=${node.current ? 'step' : nothing}>\n <span class=\"rlabel\">${node.label}</span>${node.flag ? html`<span class=\"flag\">${node.flag}</span>` : nothing}\n </li>`,\n )}\n </ol>`;\n }\n}\n\n/** One day of the week strip. */\nexport interface WeekDay {\n /** The day, such as \"Mon\". Set in mono capitals. */\n day: string;\n /** What happens, such as \"Plan\". */\n heading: string;\n /** A line about it. */\n text?: string;\n /** Pick this day out in the accent, such as the demo. */\n highlight?: boolean;\n}\n\n/**\n * A working week in five tiles, such as Mon Plan, Tue Make, Wed Review, Thu\n * Make and Fri Demo: a mono day, a heading and a line, on tiles raised off an\n * ink band, with one day picked out in the accent.\n *\n * A list, each heading at the level the page asks for (1.3.1). The accent day\n * is also the only one with ink words, and its heading says what it is, so it\n * is not told by colour alone (1.4.1). The tiles wrap on a narrow screen\n * (1.4.10).\n *\n * @category content\n * @icon calendar\n */\nexport class ImpaktWeekStrip extends ImpaktElement {\n static properties = {\n days: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n label: { type: String },\n };\n declare days: WeekDay[];\n declare headingLevel: number;\n /** A name for the list, for a screen reader. Leave empty for none. */\n declare label: string;\n\n constructor() {\n super();\n this.days = [];\n this.headingLevel = 3;\n this.label = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; }\n ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: 10px; }\n li { box-sizing: border-box; min-block-size: 150px; padding: ${space(5)}; background: ${bandRaised}; border: 1px solid ${bandLine}; color: ${bandOn}; }\n li.highlight { background: ${accent}; border-color: ${accent}; color: ${accentOn}; }\n .day { margin: 0; ${monoLabel}; color: ${bandMuted}; }\n .heading { margin: ${space(2)} 0 0; font-family: ${t.fontHeading}; font-size: 2rem; font-weight: ${fontWeight('semibold')}; line-height: 1.1; letter-spacing: -0.03em; }\n .text { margin: ${space(3)} 0 0; font-size: 0.875rem; line-height: 1.45; color: ${bandMuted}; }\n li.highlight :is(.day, .text) { color: ${accentOn}; }\n @media (forced-colors: active) { li, li.highlight { border-color: CanvasText; } li.highlight { border-width: 3px; } }\n `,\n ];\n\n render(): TemplateResult {\n if (!this.days?.length) return html``;\n const level = levelOf(this.headingLevel);\n return html`<ol part=\"list\" role=\"list\" aria-label=${this.label || nothing}>\n ${this.days.map(\n (day) => html`<li part=\"day\" class=${day.highlight ? 'highlight' : ''}>\n <p class=\"day\">${day.day}</p>\n <div class=\"heading\" role=\"heading\" aria-level=${level}>${day.heading}</div>\n ${day.text ? html`<p class=\"text\">${day.text}</p>` : nothing}\n </li>`,\n )}\n </ol>`;\n }\n}\n\n/**\n * A statement set apart on an ink panel, under a mono accent label: the \"How\n * might we\" of a case study.\n *\n * The panel stays ink in both themes, so the accent label on it keeps its\n * contrast (1.4.3). The label and statement are plain text, read in order.\n *\n * @category content\n * @icon quote\n * @slot - The statement, when it holds more than words. Replaces `text`.\n */\nexport class ImpaktCallout extends ImpaktElement {\n static properties = {\n label: { type: String },\n text: { type: String },\n };\n /** The label above, such as \"How might we\". */\n declare label: string;\n /** The statement. */\n declare text: string;\n\n constructor() {\n super();\n this.label = '';\n this.text = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; }\n .panel { padding: ${space(8)} ${space(8)} ${space(10)}; background: ${ink}; color: ${paper}; border: 1px solid ${ink}; }\n .label { margin: 0 0 ${space(4)}; ${monoLabel}; font-weight: ${fontWeight('medium')}; color: ${accent}; }\n .text { margin: 0; max-inline-size: 26em; font-family: ${t.fontHeading}; font-size: clamp(1.5rem, 1rem + 2vw, 2rem); font-weight: ${fontWeight('semibold')}; line-height: 1.2; letter-spacing: -0.02em; }\n @media (prefers-color-scheme: dark) { .panel { border-color: ${inkLine}; } }\n @media (max-width: 30rem) { .panel { padding: ${space(6)}; } }\n @media (forced-colors: active) { .panel { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n return html`<div class=\"panel\" part=\"panel\">\n ${this.label ? html`<p class=\"label\" part=\"label\">${this.label}</p>` : nothing}\n <p class=\"text\" part=\"text\"><slot>${this.text}</slot></p>\n </div>`;\n }\n}\n\n/**\n * A hypothesis to test: its number such as \"H1\", how much it matters, a\n * statement, and the metric that will tell, on a white card with an ink border.\n * Lay six out two to a row.\n *\n * `impact` draws the tag: \"High impact\" on the accent, \"Medium impact\" and\n * \"Low impact\" outlined in ink. The tag says the impact in words, so it is not\n * told by its colour (1.4.1).\n *\n * @category content\n * @icon flask\n */\nexport class ImpaktHypothesisCard extends ImpaktElement {\n static properties = {\n number: { type: String },\n statement: { type: String },\n metric: { type: String },\n impact: { type: String, reflect: true },\n impactLabel: { type: String, attribute: 'impact-label' },\n };\n /** The hypothesis's number, such as \"H1\". */\n declare number: string;\n /** What the team believes, such as \"A jobs board grouped by stage shows stuck cars faster than a shared spreadsheet.\" */\n declare statement: string;\n /** What will be measured, such as \"Time a car waits unnoticed\". */\n declare metric: string;\n /** How much it matters. Leave empty for no tag. */\n declare impact: 'high' | 'medium' | 'low' | '';\n /** The tag's words, in place of the impact's own. */\n declare impactLabel: string;\n\n constructor() {\n super();\n this.number = '';\n this.statement = '';\n this.metric = '';\n this.impact = '';\n this.impactLabel = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; block-size: 100%; }\n article { box-sizing: border-box; block-size: 100%; display: grid; align-content: start; gap: ${space(4)}; padding: ${space(6)}; background: ${t.surfaceCard}; color: ${t.text}; border: 1px solid ${t.text}; }\n .top { display: flex; justify-content: space-between; align-items: center; gap: ${space(2)}; flex-wrap: wrap; min-block-size: 22px; }\n .number { font-family: ${t.fontMono}; font-size: 0.75rem; letter-spacing: 0.06em; }\n .impact { margin: 0; padding: 3px 7px; ${monoLabel}; font-weight: ${fontWeight('medium')}; border: 1px solid ${t.text}; color: ${t.text}; }\n :host([impact='high']) .impact { background: ${accent}; color: ${accentOn}; border-color: ${accentOn}; }\n .statement { margin: 0; font-family: ${t.fontHeading}; font-size: 1.25rem; line-height: 1.35; letter-spacing: -0.01em; }\n .metric { margin: 0; ${monoLabel}; color: ${t.textMuted}; }\n @media (forced-colors: active) { article, .impact { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const words: Record<string, string> = { high: 'High impact', medium: 'Medium impact', low: 'Low impact' };\n const impact = this.impactLabel || (this.impact && words[this.impact] ? say(words[this.impact]!) : '');\n return html`<article part=\"card\">\n ${\n this.number || impact\n ? html`<div class=\"top\">\n <span class=\"number\" part=\"number\">${this.number}</span>\n ${impact ? html`<p class=\"impact\" part=\"impact\">${impact}</p>` : nothing}\n </div>`\n : nothing\n }\n ${this.statement ? html`<p class=\"statement\" part=\"statement\">${this.statement}</p>` : nothing}\n ${this.metric ? html`<p class=\"metric\" part=\"metric\">${say('Metric')} · ${this.metric}</p>` : nothing}\n </article>`;\n }\n}\n\n/**\n * A window frame for a product screenshot on an ink band: a 40px bar with\n * three dots, the first in the accent, and a mono caption, over a canvas that\n * holds the picture. With no picture in it, the canvas shows a grid, as a\n * placeholder.\n *\n * **The frame is decoration; the picture carries the words.** Give the image\n * its own `alt`. The bar is hidden from a screen reader (1.1.1).\n *\n * @category media\n * @icon browser\n * @slot - The picture, such as an `<img>` with its `alt`.\n */\nexport class ImpaktBrowserFrame extends ImpaktElement {\n static properties = {\n caption: { type: String },\n ratio: { type: String },\n filled: { state: true },\n };\n /** The caption in the bar, such as \"Harbour · Cover\". It is decoration. */\n declare caption: string;\n /** The canvas's shape while it is empty, as a CSS aspect ratio. */\n declare ratio: string;\n declare protected filled: boolean;\n\n constructor() {\n super();\n this.caption = '';\n this.ratio = '16 / 9';\n this.filled = false;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; }\n .frame { border: 1px solid ${bandLine}; background: ${band}; color: ${bandOn}; }\n .bar { display: flex; align-items: center; gap: 6px; block-size: 40px; padding-inline: ${space(3)}; background: ${bandRaised}; border-block-end: 1px solid ${bandLine}; overflow: hidden; }\n .dot { flex: none; inline-size: 8px; block-size: 8px; border-radius: 50%; background: ${bandLine}; }\n .dot:first-child { background: ${accent}; }\n .caption { margin-inline-start: ${space(1.5)}; ${monoLabel}; color: ${bandMuted}; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n .canvas { position: relative; }\n .canvas.empty { background-image: linear-gradient(to right, ${bandLine} 1px, transparent 1px), linear-gradient(to bottom, ${bandLine} 1px, transparent 1px); background-size: 28px 28px; }\n ::slotted(img), ::slotted(picture), ::slotted(video) { display: block; inline-size: 100%; block-size: auto; }\n @media (forced-colors: active) { .frame, .bar { border-color: CanvasText; } .dot { background: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n return html`<div class=\"frame\" part=\"frame\">\n <div class=\"bar\" part=\"bar\" aria-hidden=\"true\">\n <span class=\"dot\"></span><span class=\"dot\"></span><span class=\"dot\"></span>\n ${this.caption ? html`<span class=\"caption\" part=\"caption\">${this.caption}</span>` : nothing}\n </div>\n <div class=\"canvas ${this.filled ? '' : 'empty'}\" part=\"canvas\" style=${this.filled ? '' : `aspect-ratio: ${this.ratio || '16 / 9'}`}>\n <slot @slotchange=${this.onSlot}></slot>\n </div>\n </div>`;\n }\n\n private onSlot(e: Event): void {\n this.filled = (e.target as HTMLSlotElement).assignedElements().length > 0;\n }\n}\n\ncustomElements.define('impakt-process-line', ImpaktProcessLine);\ncustomElements.define('impakt-week-strip', ImpaktWeekStrip);\ncustomElements.define('impakt-callout', ImpaktCallout);\ncustomElements.define('impakt-hypothesis-card', ImpaktHypothesisCard);\ncustomElements.define('impakt-browser-frame', ImpaktBrowserFrame);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-process-line': ImpaktProcessLine;\n 'impakt-week-strip': ImpaktWeekStrip;\n 'impakt-callout': ImpaktCallout;\n 'impakt-hypothesis-card': ImpaktHypothesisCard;\n 'impakt-browser-frame': ImpaktBrowserFrame;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAKA,SAAS,KAAK,MAAM,SAAS,WAAgC;AAC7D,SAAS,eAAe,YAAY,KAAK,OAAO,GAAG,sBAAsB;AAezE,IAAM,OAAO;AACb,IAAM,MAAM;AAuBL,IAAM,oBAAN,cAAgC,cAAc;AAAA,EACnD;AAAA,SAAO,aAAa;AAAA,MAClB,OAAO,EAAE,MAAM,MAAM;AAAA,MACrB,WAAW,EAAE,MAAM,QAAQ,WAAW,aAAa;AAAA,MACnD,OAAO,EAAE,MAAM,OAAO;AAAA,IACxB;AAAA;AAAA,EAQA,cA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
|
+
paper
|
|
14
|
+
} from "./chunk-WGDMORWT.js";
|
|
15
|
+
|
|
16
|
+
// packages/blocks/src/components/g2-tools.ts
|
|
17
|
+
import { css, html, nothing } from "lit";
|
|
18
|
+
import { ImpaktElement, fontWeight, space, t } from "@atomic-ui/ui";
|
|
19
|
+
var ImpaktFlow = class extends ImpaktElement {
|
|
20
|
+
static {
|
|
21
|
+
this.properties = {
|
|
22
|
+
steps: { type: Array },
|
|
23
|
+
size: { type: String, reflect: true },
|
|
24
|
+
onInk: { type: Boolean, reflect: true, attribute: "on-ink" },
|
|
25
|
+
headingLevel: { type: Number, attribute: "heading-level" },
|
|
26
|
+
label: { type: String }
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
31
|
+
this.steps = [];
|
|
32
|
+
this.size = "md";
|
|
33
|
+
this.onInk = false;
|
|
34
|
+
this.headingLevel = 3;
|
|
35
|
+
this.label = "";
|
|
36
|
+
}
|
|
37
|
+
static {
|
|
38
|
+
this.styles = [
|
|
39
|
+
...ImpaktElement.styles,
|
|
40
|
+
css`
|
|
41
|
+
:host { display: block; container-type: inline-size; }
|
|
42
|
+
ol { margin: 0; padding: 0; list-style: none; display: flex; align-items: stretch; }
|
|
43
|
+
li { flex: 1 1 0; min-inline-size: 0; display: flex; align-items: stretch; }
|
|
44
|
+
li:not(:first-child) { flex-basis: 56px; }
|
|
45
|
+
.arrow { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; inline-size: 56px; color: ${t.text}; }
|
|
46
|
+
:host([on-ink]) .arrow { color: ${bandOn}; }
|
|
47
|
+
.arrow svg { display: block; }
|
|
48
|
+
.via { font-size: 0.75rem; line-height: 1.2; color: ${t.textMuted}; }
|
|
49
|
+
:host([on-ink]) .via { color: ${bandMuted}; }
|
|
50
|
+
.box { flex: 1 1 auto; min-inline-size: 0; box-sizing: border-box; padding: ${space(4)} ${space(5)}; border: 1px solid ${t.text}; background: ${t.surfaceCard}; color: ${t.text}; }
|
|
51
|
+
:host([size='lg']) .box { padding: ${space(6)}; }
|
|
52
|
+
.box.soft { background: ${t.surfaceSubtle}; }
|
|
53
|
+
:host([on-ink]) .box.card, :host([on-ink]) .box.soft { background: ${bandRaised}; border-color: ${bandLine}; color: ${bandOn}; }
|
|
54
|
+
.box.ink { background: ${ink}; border-color: ${inkLine}; color: ${paper}; }
|
|
55
|
+
.box.accent { background: ${accent}; border-color: ${accent}; color: ${accentOn}; }
|
|
56
|
+
.label { margin: 0 0 ${space(2)}; ${monoLabel}; color: ${t.textMuted}; }
|
|
57
|
+
.text { margin: ${space(2)} 0 0; font-size: 0.875rem; line-height: 1.5; color: ${t.textMuted}; }
|
|
58
|
+
:host([on-ink]) :is(.card, .soft) :is(.label, .text) { color: ${bandMuted}; }
|
|
59
|
+
.ink :is(.label, .text) { color: ${inkMuted}; }
|
|
60
|
+
.accent :is(.label, .text) { color: ${accentOn}; }
|
|
61
|
+
.heading { margin: 0; font-family: ${t.fontHeading}; font-size: 1.125rem; font-weight: ${fontWeight("medium")}; line-height: 1.25; letter-spacing: -0.01em; }
|
|
62
|
+
:host([size='lg']) .heading { font-size: clamp(1.5rem, 1rem + 2cqi, 2rem); font-weight: ${fontWeight("semibold")}; line-height: 1.1; letter-spacing: -0.03em; }
|
|
63
|
+
@container (max-width: 47.99rem) {
|
|
64
|
+
ol, li { flex-direction: column; }
|
|
65
|
+
.arrow { inline-size: auto; block-size: 48px; flex-direction: row; }
|
|
66
|
+
.arrow svg { transform: rotate(90deg); }
|
|
67
|
+
}
|
|
68
|
+
@media (forced-colors: active) { .box { border-color: CanvasText; } .accent { border-width: 3px; } }
|
|
69
|
+
`
|
|
70
|
+
];
|
|
71
|
+
}
|
|
72
|
+
render() {
|
|
73
|
+
if (!this.steps?.length) return html``;
|
|
74
|
+
const level = levelOf(this.headingLevel);
|
|
75
|
+
return html`<ol part="list" role="list" aria-label=${this.label || nothing}>
|
|
76
|
+
${this.steps.map(
|
|
77
|
+
(step, i) => html`<li part="step">
|
|
78
|
+
${i > 0 ? html`<span class="arrow" part="arrow">
|
|
79
|
+
<svg viewBox="0 0 36 12" width="36" height="12" fill="none" stroke="currentColor" stroke-width="1.25" aria-hidden="true" focusable="false"><path d="M0 6h34M29 1l5 5-5 5" /></svg>
|
|
80
|
+
${step.connector ? html`<span class="via">${step.connector}</span>` : nothing}
|
|
81
|
+
</span>` : nothing}
|
|
82
|
+
<div class="box ${step.tone ?? "card"}" part="box">
|
|
83
|
+
${step.label ? html`<p class="label">${step.label}</p>` : nothing}
|
|
84
|
+
<div class="heading" role="heading" aria-level=${level}>${step.heading}</div>
|
|
85
|
+
${step.text ? html`<p class="text">${step.text}</p>` : nothing}
|
|
86
|
+
</div>
|
|
87
|
+
</li>`
|
|
88
|
+
)}
|
|
89
|
+
</ol>`;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
customElements.define("impakt-flow", ImpaktFlow);
|
|
93
|
+
|
|
94
|
+
export {
|
|
95
|
+
ImpaktFlow
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=chunk-7X4WGV6K.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/g2-tools.ts"],"sourcesContent":["/**\n * The G2 Noire blocks for the AI tools pages: the flow that shows how a tool\n * works, or how a visitor gets from one page to the next.\n */\nimport { css, html, nothing, type TemplateResult } from 'lit';\nimport { ImpaktElement, fontWeight, space, t } from '@atomic-ui/ui';\nimport { accent, accentOn, bandLine, bandMuted, bandOn, bandRaised, ink, inkLine, inkMuted, levelOf, monoLabel, paper } from './g2-shared';\n\n/** One step of a flow. */\nexport interface FlowStep {\n /** A mono label, such as \"01 · Model\". */\n label?: string;\n /** What happens, such as \"Reads and drafts\". */\n heading: string;\n /** A line about it. */\n text?: string;\n /** The box: white with an ink border, soft, ink, or the accent. */\n tone?: 'card' | 'soft' | 'ink' | 'accent';\n /** Words on the arrow that leads to this step, such as \"back\". */\n connector?: string;\n}\n\n/**\n * Steps in a row joined by arrows: how a tool works (\"Reads and drafts\",\n * \"Checks every answer\", \"Makes the call\"), or the pages a visitor passes\n * through. Each box has a tone, a mono label, a heading and a line; an arrow\n * can carry words such as \"back\".\n *\n * **An ordered list.** A screen reader meets the steps in order, each heading\n * at the level the page asks for; the arrows are decoration, and words on an\n * arrow are read before the step they lead to (1.3.1). In a narrow column,\n * measured against its own width, the steps stack and the arrows point down\n * (1.4.10).\n *\n * On an ink band, set `on-ink`: white boxes become tiles raised off the band.\n * The ink and accent boxes keep their colours in both themes, so their words\n * keep their contrast (1.4.3).\n *\n * @category content\n * @icon flow\n */\nexport class ImpaktFlow extends ImpaktElement {\n static properties = {\n steps: { type: Array },\n size: { type: String, reflect: true },\n onInk: { type: Boolean, reflect: true, attribute: 'on-ink' },\n headingLevel: { type: Number, attribute: 'heading-level' },\n label: { type: String },\n };\n declare steps: FlowStep[];\n /** The headings' size: `md` 18px for a flow of pages, `lg` 32px for how a tool works. */\n declare size: 'md' | 'lg';\n /** Draw white boxes as tiles raised off an ink band. */\n declare onInk: boolean;\n declare headingLevel: number;\n /** A name for the list, for a screen reader. Leave empty for none. */\n declare label: string;\n\n constructor() {\n super();\n this.steps = [];\n this.size = 'md';\n this.onInk = false;\n this.headingLevel = 3;\n this.label = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; container-type: inline-size; }\n ol { margin: 0; padding: 0; list-style: none; display: flex; align-items: stretch; }\n li { flex: 1 1 0; min-inline-size: 0; display: flex; align-items: stretch; }\n li:not(:first-child) { flex-basis: 56px; }\n .arrow { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; inline-size: 56px; color: ${t.text}; }\n :host([on-ink]) .arrow { color: ${bandOn}; }\n .arrow svg { display: block; }\n .via { font-size: 0.75rem; line-height: 1.2; color: ${t.textMuted}; }\n :host([on-ink]) .via { color: ${bandMuted}; }\n .box { flex: 1 1 auto; min-inline-size: 0; box-sizing: border-box; padding: ${space(4)} ${space(5)}; border: 1px solid ${t.text}; background: ${t.surfaceCard}; color: ${t.text}; }\n :host([size='lg']) .box { padding: ${space(6)}; }\n .box.soft { background: ${t.surfaceSubtle}; }\n :host([on-ink]) .box.card, :host([on-ink]) .box.soft { background: ${bandRaised}; border-color: ${bandLine}; color: ${bandOn}; }\n .box.ink { background: ${ink}; border-color: ${inkLine}; color: ${paper}; }\n .box.accent { background: ${accent}; border-color: ${accent}; color: ${accentOn}; }\n .label { margin: 0 0 ${space(2)}; ${monoLabel}; color: ${t.textMuted}; }\n .text { margin: ${space(2)} 0 0; font-size: 0.875rem; line-height: 1.5; color: ${t.textMuted}; }\n :host([on-ink]) :is(.card, .soft) :is(.label, .text) { color: ${bandMuted}; }\n .ink :is(.label, .text) { color: ${inkMuted}; }\n .accent :is(.label, .text) { color: ${accentOn}; }\n .heading { margin: 0; font-family: ${t.fontHeading}; font-size: 1.125rem; font-weight: ${fontWeight('medium')}; line-height: 1.25; letter-spacing: -0.01em; }\n :host([size='lg']) .heading { font-size: clamp(1.5rem, 1rem + 2cqi, 2rem); font-weight: ${fontWeight('semibold')}; line-height: 1.1; letter-spacing: -0.03em; }\n @container (max-width: 47.99rem) {\n ol, li { flex-direction: column; }\n .arrow { inline-size: auto; block-size: 48px; flex-direction: row; }\n .arrow svg { transform: rotate(90deg); }\n }\n @media (forced-colors: active) { .box { border-color: CanvasText; } .accent { border-width: 3px; } }\n `,\n ];\n\n render(): TemplateResult {\n if (!this.steps?.length) return html``;\n const level = levelOf(this.headingLevel);\n return html`<ol part=\"list\" role=\"list\" aria-label=${this.label || nothing}>\n ${this.steps.map(\n (step, i) => html`<li part=\"step\">\n ${\n i > 0\n ? html`<span class=\"arrow\" part=\"arrow\">\n <svg viewBox=\"0 0 36 12\" width=\"36\" height=\"12\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.25\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M0 6h34M29 1l5 5-5 5\" /></svg>\n ${step.connector ? html`<span class=\"via\">${step.connector}</span>` : nothing}\n </span>`\n : nothing\n }\n <div class=\"box ${step.tone ?? 'card'}\" part=\"box\">\n ${step.label ? html`<p class=\"label\">${step.label}</p>` : nothing}\n <div class=\"heading\" role=\"heading\" aria-level=${level}>${step.heading}</div>\n ${step.text ? html`<p class=\"text\">${step.text}</p>` : nothing}\n </div>\n </li>`,\n )}\n </ol>`;\n }\n}\n\ncustomElements.define('impakt-flow', ImpaktFlow);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-flow': ImpaktFlow;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAIA,SAAS,KAAK,MAAM,eAAoC;AACxD,SAAS,eAAe,YAAY,OAAO,SAAS;AAoC7C,IAAM,aAAN,cAAyB,cAAc;AAAA,EAC5C;AAAA,SAAO,aAAa;AAAA,MAClB,OAAO,EAAE,MAAM,MAAM;AAAA,MACrB,MAAM,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,MACpC,OAAO,EAAE,MAAM,SAAS,SAAS,MAAM,WAAW,SAAS;AAAA,MAC3D,cAAc,EAAE,MAAM,QAAQ,WAAW,gBAAgB;AAAA,MACzD,OAAO,EAAE,MAAM,OAAO;AAAA,IACxB;AAAA;AAAA,EAUA,cAAc;AACZ,UAAM;AACN,SAAK,QAAQ,CAAC;AACd,SAAK,OAAO;AACZ,SAAK,QAAQ;AACb,SAAK,eAAe;AACpB,SAAK,QAAQ;AAAA,EACf;AAAA,EAEA;AAAA,SAAO,SAAS;AAAA,MACd,GAAG,cAAc;AAAA,MACjB;AAAA;AAAA;AAAA;AAAA;AAAA,sJAKkJ,EAAE,IAAI;AAAA,wCACpH,MAAM;AAAA;AAAA,4DAEc,EAAE,SAAS;AAAA,sCACjC,SAAS;AAAA,oFACqC,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,uBAAuB,EAAE,IAAI,iBAAiB,EAAE,WAAW,YAAY,EAAE,IAAI;AAAA,2CAC1I,MAAM,CAAC,CAAC;AAA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