@atomic-ui/blocks 0.10.1 → 0.12.1

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 (84) hide show
  1. package/custom-elements.json +3157 -97
  2. package/dist/chunk-7X4WGV6K.js +97 -0
  3. package/dist/chunk-7X4WGV6K.js.map +1 -0
  4. package/dist/{chunk-QGVIJNTD.js → chunk-CCFBROX3.js} +127 -41
  5. package/dist/chunk-CCFBROX3.js.map +1 -0
  6. package/dist/{chunk-NLHFBIGQ.js → chunk-EYP5LWUR.js} +28 -10
  7. package/dist/chunk-EYP5LWUR.js.map +1 -0
  8. package/dist/chunk-GRKPKJZH.js +275 -0
  9. package/dist/chunk-GRKPKJZH.js.map +1 -0
  10. package/dist/chunk-I2DL3DRU.js +297 -0
  11. package/dist/chunk-I2DL3DRU.js.map +1 -0
  12. package/dist/{chunk-OR4U4UJQ.js → chunk-MX7FU5JE.js} +69 -1
  13. package/dist/chunk-MX7FU5JE.js.map +1 -0
  14. package/dist/{chunk-UVHQY3QJ.js → chunk-NHWD2LUR.js} +2 -2
  15. package/dist/chunk-NHWD2LUR.js.map +1 -0
  16. package/dist/{chunk-HNCJLMQB.js → chunk-R7SSIE2E.js} +26 -8
  17. package/dist/chunk-R7SSIE2E.js.map +1 -0
  18. package/dist/{chunk-LJ6AQO26.js → chunk-SYTQIQT2.js} +73 -18
  19. package/dist/chunk-SYTQIQT2.js.map +1 -0
  20. package/dist/{chunk-FLOKZ7O3.js → chunk-VXQS5TAN.js} +46 -11
  21. package/dist/chunk-VXQS5TAN.js.map +1 -0
  22. package/dist/chunk-WGDMORWT.js +48 -0
  23. package/dist/chunk-WGDMORWT.js.map +1 -0
  24. package/dist/{chunk-PALYJCLC.js → chunk-XB6FD4SF.js} +3 -3
  25. package/dist/chunk-XB6FD4SF.js.map +1 -0
  26. package/dist/chunk-XNRFZCNB.js +499 -0
  27. package/dist/chunk-XNRFZCNB.js.map +1 -0
  28. package/dist/{chunk-CC2U2L2H.js → chunk-YXMXLVK7.js} +3 -3
  29. package/dist/chunk-YXMXLVK7.js.map +1 -0
  30. package/dist/{chunk-YC6KXE6O.js → chunk-ZD75GU6J.js} +7 -4
  31. package/dist/chunk-ZD75GU6J.js.map +1 -0
  32. package/dist/{chunk-TT2PTEQO.js → chunk-ZODL5HD4.js} +64 -17
  33. package/dist/chunk-ZODL5HD4.js.map +1 -0
  34. package/dist/components/card-grid.js +1 -1
  35. package/dist/components/changelog.d.ts +24 -0
  36. package/dist/components/changelog.js +2 -2
  37. package/dist/components/estimator.d.ts +25 -0
  38. package/dist/components/estimator.js +1 -1
  39. package/dist/components/g2-case.d.ts +225 -0
  40. package/dist/components/g2-case.js +16 -0
  41. package/dist/components/g2-case.js.map +1 -0
  42. package/dist/components/g2-shared.d.ts +28 -0
  43. package/dist/components/g2-shared.js +35 -0
  44. package/dist/components/g2-shared.js.map +1 -0
  45. package/dist/components/g2-site.d.ts +493 -0
  46. package/dist/components/g2-site.js +26 -0
  47. package/dist/components/g2-site.js.map +1 -0
  48. package/dist/components/g2-tools.d.ts +77 -0
  49. package/dist/components/g2-tools.js +8 -0
  50. package/dist/components/g2-tools.js.map +1 -0
  51. package/dist/components/journey.d.ts +79 -9
  52. package/dist/components/journey.js +1 -1
  53. package/dist/components/marketing.d.ts +23 -0
  54. package/dist/components/marketing.js +1 -1
  55. package/dist/components/organisms.d.ts +23 -2
  56. package/dist/components/organisms.js +1 -1
  57. package/dist/components/property.js +1 -1
  58. package/dist/components/scene.js +1 -1
  59. package/dist/components/scrubber.js +1 -1
  60. package/dist/components/selling.d.ts +42 -1
  61. package/dist/components/selling.js +1 -1
  62. package/dist/components/site.d.ts +78 -0
  63. package/dist/components/site.js +1 -1
  64. package/dist/components/studio.d.ts +87 -6
  65. package/dist/components/studio.js +1 -1
  66. package/dist/index.d.ts +3 -0
  67. package/dist/index.js +81 -42
  68. package/dist/index.js.map +1 -1
  69. package/dist/standalone/atomic-ui-blocks.js +1388 -799
  70. package/dist/standalone/atomic-ui-blocks.js.map +4 -4
  71. package/package.json +3 -3
  72. package/dist/chunk-CC2U2L2H.js.map +0 -1
  73. package/dist/chunk-FLOKZ7O3.js.map +0 -1
  74. package/dist/chunk-HNCJLMQB.js.map +0 -1
  75. package/dist/chunk-LJ6AQO26.js.map +0 -1
  76. package/dist/chunk-NLHFBIGQ.js.map +0 -1
  77. package/dist/chunk-OR4U4UJQ.js.map +0 -1
  78. package/dist/chunk-PALYJCLC.js.map +0 -1
  79. package/dist/chunk-QGVIJNTD.js.map +0 -1
  80. package/dist/chunk-SOFMXF32.js +0 -142
  81. package/dist/chunk-SOFMXF32.js.map +0 -1
  82. package/dist/chunk-TT2PTEQO.js.map +0 -1
  83. package/dist/chunk-UVHQY3QJ.js.map +0 -1
  84. package/dist/chunk-YC6KXE6O.js.map +0 -1
@@ -0,0 +1,499 @@
1
+ import {
2
+ accent,
3
+ accentOn,
4
+ ink,
5
+ inkLine,
6
+ inkMuted,
7
+ inkRaised,
8
+ levelOf,
9
+ monoLabel,
10
+ pad,
11
+ paper
12
+ } from "./chunk-WGDMORWT.js";
13
+
14
+ // packages/blocks/src/components/g2-site.ts
15
+ import { css, html, nothing } from "lit";
16
+ import { ImpaktElement, focusRing, fontWeight, say, space, spaceAround, t } from "@atomic-ui/ui";
17
+ var STAGE_WORDS = {
18
+ note: ["01", "Discover", "Note"],
19
+ wireframe: ["02", "Design low-fi", "Wireframe"],
20
+ component: ["03", "Design hi-fi", "Component"],
21
+ code: ["04", "Build", "Code"],
22
+ live: ["05", "Launch", "Live"]
23
+ };
24
+ var ImpaktStageTag = class extends ImpaktElement {
25
+ static {
26
+ this.properties = {
27
+ stage: { type: String, reflect: true },
28
+ index: { type: String },
29
+ phase: { type: String },
30
+ label: { type: String },
31
+ onInk: { type: Boolean, reflect: true, attribute: "on-ink" },
32
+ announce: { type: Boolean }
33
+ };
34
+ }
35
+ constructor() {
36
+ super();
37
+ this.stage = "";
38
+ this.index = "";
39
+ this.phase = "";
40
+ this.label = "";
41
+ this.onInk = false;
42
+ this.announce = false;
43
+ }
44
+ static {
45
+ this.styles = [
46
+ ...ImpaktElement.styles,
47
+ css`
48
+ :host { display: inline-block; vertical-align: middle; }
49
+ .tag { display: inline-flex; align-items: baseline; gap: 0.6em; padding: 6px 10px; background: ${ink}; border: 1px solid ${ink}; ${monoLabel}; font-size: 0.75rem; font-weight: ${fontWeight("medium")}; white-space: nowrap; }
50
+ :host([on-ink]) .tag { background: ${inkRaised}; border-color: ${inkLine}; }
51
+ .index { color: ${accent}; }
52
+ .phase { color: ${paper}; }
53
+ .label { color: ${inkMuted}; }
54
+ @media (prefers-color-scheme: dark) { .tag { border-color: ${inkLine}; } }
55
+ @media (forced-colors: active) { .tag { border-color: CanvasText; } .index, .phase, .label { color: CanvasText; } }
56
+ `
57
+ ];
58
+ }
59
+ render() {
60
+ const words = this.stage && this.stage in STAGE_WORDS ? STAGE_WORDS[this.stage] : void 0;
61
+ const index = this.index || words?.[0] || "";
62
+ const phase = this.phase || (words ? say(words[1]) : "");
63
+ const label = this.label || (words ? say(words[2]) : "");
64
+ if (!index && !phase && !label) return html``;
65
+ return html`<span class="tag" part="tag" aria-hidden=${this.announce ? nothing : "true"}
66
+ >${index ? html`<span class="index" part="index">${index}</span>` : nothing}${phase ? html`<span class="phase" part="phase">${phase}</span>` : nothing}${label ? html`<span class="label" part="label">${label}</span>` : nothing}</span
67
+ >`;
68
+ }
69
+ };
70
+ var ImpaktSectionHead = class extends ImpaktElement {
71
+ static {
72
+ this.properties = {
73
+ label: { type: String },
74
+ heading: { type: String },
75
+ lead: { type: String },
76
+ size: { type: String, reflect: true },
77
+ level: { type: Number, reflect: true },
78
+ leadPosition: { type: String, reflect: true, attribute: "lead-position" },
79
+ stage: { type: String },
80
+ stageOnInk: { type: Boolean, attribute: "stage-on-ink" },
81
+ spaceAbove: { type: String, reflect: true, attribute: "space-above" },
82
+ spaceBelow: { type: String, reflect: true, attribute: "space-below" }
83
+ };
84
+ }
85
+ constructor() {
86
+ super();
87
+ this.label = "";
88
+ this.heading = "";
89
+ this.lead = "";
90
+ this.size = "m";
91
+ this.level = 2;
92
+ this.leadPosition = "below";
93
+ this.stage = "";
94
+ this.stageOnInk = false;
95
+ this.spaceAbove = "none";
96
+ this.spaceBelow = "none";
97
+ }
98
+ static {
99
+ this.styles = [
100
+ ...ImpaktElement.styles,
101
+ spaceAround,
102
+ css`
103
+ :host { display: block; container-type: inline-size; color: ${t.text}; }
104
+ .top { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; min-block-size: 29px; }
105
+ .label { margin: 0; font-family: ${t.fontMono}; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }
106
+ .body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: ${space(10)}; row-gap: ${space(6)}; align-items: end; margin-block-start: ${space(6)}; }
107
+ .heading { margin: 0; font-family: ${t.fontHeading}; font-weight: ${fontWeight("semibold")}; color: var(--impakt-color-text-heading, ${t.text}); text-wrap: balance; overflow-wrap: anywhere; }
108
+ :host([size='m']) .heading { font-size: clamp(2.25rem, 1.2rem + 4cqi, 3.25rem); line-height: 1; letter-spacing: -0.04em; max-inline-size: 11.5em; }
109
+ :host([size='l']) .heading { font-size: clamp(2.5rem, 1.2rem + 5cqi, 4rem); line-height: 1; letter-spacing: -0.04em; max-inline-size: 11.5em; }
110
+ :host([size='xl']) .heading { font-size: clamp(3rem, 0.8rem + 10cqi, 7.5rem); line-height: 0.95; letter-spacing: -0.05em; }
111
+ .lead { margin: ${space(5)} 0 0; max-inline-size: 36rem; font-size: 1rem; line-height: 1.55; color: ${t.textMuted}; }
112
+ .side { display: grid; gap: ${space(6)}; justify-items: end; }
113
+ /* Beside a picture in the aside, such as the journey button, the heading sits level with the middle of it. */
114
+ .body.aside { align-items: center; }
115
+ .side .lead { margin: 0; max-inline-size: 340px; inline-size: 340px; }
116
+ .side:not(:has(.lead)) { align-self: center; }
117
+ ::slotted([slot='aside']) { display: block; max-inline-size: 100%; }
118
+ @container (max-width: 47.99rem) {
119
+ .body { grid-template-columns: minmax(0, 1fr); }
120
+ .side { justify-items: stretch; }
121
+ .side .lead { inline-size: auto; }
122
+ }
123
+ `
124
+ ];
125
+ }
126
+ render() {
127
+ const lead = html`<p class="lead" part="lead"><slot name="lead">${this.lead}</slot></p>`;
128
+ const showLead = Boolean(this.lead) || this.hasSlot("lead");
129
+ const inner = html`<slot name="heading">${this.heading}</slot>`;
130
+ const heading = Number(this.level) === 1 ? html`<h1 class="heading" part="heading">${inner}</h1>` : html`<h2 class="heading" part="heading">${inner}</h2>`;
131
+ const side = this.leadPosition === "side";
132
+ return html`<header part="head">
133
+ <div class="top">
134
+ ${this.label ? html`<p class="label" part="label"><span aria-hidden="true"># </span>${this.label}</p>` : html`<span></span>`}
135
+ <slot name="tag">${this.stage ? html`<impakt-stage-tag stage=${this.stage} ?on-ink=${this.stageOnInk}></impakt-stage-tag>` : nothing}</slot>
136
+ </div>
137
+ <div class=${this.hasSlot("aside") ? "body aside" : "body"}>
138
+ <div class="main">${heading}${showLead && !side ? lead : nothing}</div>
139
+ <div class="side">${showLead && side ? lead : nothing}<slot name="aside"></slot></div>
140
+ </div>
141
+ </header>`;
142
+ }
143
+ /** Whether a child is in the named slot. On a server, where there are no children, only the attribute counts. */
144
+ hasSlot(name) {
145
+ const children = this.children;
146
+ if (!children) return false;
147
+ return Array.from(children).some((c) => c.getAttribute("slot") === name);
148
+ }
149
+ };
150
+ var ImpaktServiceCard = class extends ImpaktElement {
151
+ static {
152
+ this.properties = {
153
+ number: { type: String },
154
+ heading: { type: String },
155
+ text: { type: String },
156
+ tags: { type: String },
157
+ href: { type: String },
158
+ linkText: { type: String, attribute: "link-text" },
159
+ headingLevel: { type: Number, attribute: "heading-level" },
160
+ featured: { type: Boolean, reflect: true }
161
+ };
162
+ }
163
+ constructor() {
164
+ super();
165
+ this.featured = false;
166
+ this.number = "";
167
+ this.heading = "";
168
+ this.text = "";
169
+ this.tags = "";
170
+ this.href = "";
171
+ this.linkText = "Learn more";
172
+ this.headingLevel = 3;
173
+ }
174
+ static {
175
+ this.styles = [
176
+ ...ImpaktElement.styles,
177
+ css`
178
+ :host { display: block; block-size: 100%; }
179
+ article { position: relative; box-sizing: border-box; block-size: 100%; min-block-size: 330px; display: flex; flex-direction: column; justify-content: space-between; gap: ${space(6)}; padding: ${space(6)}; background: ${t.surfaceCard}; color: ${t.text}; border: 1px solid ${t.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }
180
+ .top { display: flex; align-items: center; justify-content: space-between; }
181
+ .number { font-family: ${t.fontMono}; font-size: 0.75rem; letter-spacing: 0.06em; }
182
+ .dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: currentColor; }
183
+ .foot { display: grid; gap: ${space(3)}; }
184
+ .heading { margin: 0; font-family: ${t.fontHeading}; font-size: 1.5rem; font-weight: ${fontWeight("semibold")}; line-height: 1.15; letter-spacing: -0.02em; }
185
+ .heading a { color: inherit; text-decoration: none; }
186
+ .heading a::after { content: ''; position: absolute; inset: 0; }
187
+ .heading a:focus-visible { outline: none; }
188
+ .heading a:focus-visible::after { box-shadow: ${t.focusShadow}; }
189
+ .text { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: ${t.textMuted}; }
190
+ .tags { margin: ${space(1)} 0 0; ${monoLabel}; color: ${t.textMuted}; }
191
+ .more { margin-block-start: ${space(2)}; ${monoLabel}; font-weight: ${fontWeight("medium")}; }
192
+ article:has(a):hover, article:focus-within, :host([featured]) article { background: ${ink}; color: ${paper}; border-color: ${ink}; }
193
+ article:has(a):hover :is(.text, .tags), article:focus-within :is(.text, .tags), :host([featured]) :is(.text, .tags) { color: ${inkMuted}; }
194
+ article:has(a):hover :is(.dot, .more), article:focus-within :is(.dot, .more), :host([featured]) :is(.dot, .more) { color: ${accent}; }
195
+ @media (max-width: 47.99rem) { article { min-block-size: 0; justify-content: flex-start; } }
196
+ @media (forced-colors: active) { article { border-color: CanvasText; } .dot { background: CanvasText; } }
197
+ `
198
+ ];
199
+ }
200
+ render() {
201
+ const level = levelOf(this.headingLevel);
202
+ return html`<article part="card">
203
+ <div class="top" aria-hidden="true">
204
+ <span class="number" part="number">${this.number}</span>
205
+ <span class="dot" part="dot"></span>
206
+ </div>
207
+ <div class="foot">
208
+ <div class="heading" part="heading" role="heading" aria-level=${level}>
209
+ ${this.href ? html`<a href=${this.href} part="link">${this.heading}</a>` : this.heading}
210
+ </div>
211
+ ${this.text ? html`<p class="text" part="text">${this.text}</p>` : nothing}
212
+ ${this.tags ? html`<p class="tags" part="tags">${this.tags}</p>` : nothing}
213
+ ${this.href && this.linkText ? html`<span class="more" part="more" aria-hidden="true">${this.linkText} →</span>` : nothing}
214
+ </div>
215
+ </article>`;
216
+ }
217
+ };
218
+ var ImpaktCursor = class extends ImpaktElement {
219
+ static {
220
+ this.properties = {
221
+ name: { type: String },
222
+ variant: { type: String, reflect: true },
223
+ drift: { type: Boolean, reflect: true }
224
+ };
225
+ }
226
+ constructor() {
227
+ super();
228
+ this.name = "";
229
+ this.variant = "ink";
230
+ this.drift = false;
231
+ }
232
+ static {
233
+ this.styles = [
234
+ ...ImpaktElement.styles,
235
+ css`
236
+ :host { display: inline-block; position: relative; pointer-events: none; }
237
+ .cursor { display: inline-flex; align-items: flex-start; }
238
+ svg { display: block; flex: none; }
239
+ .arrow { fill: ${ink}; stroke: ${paper}; }
240
+ .name { margin: 16px 0 0 -2px; padding: 4px 7px; ${monoLabel}; font-weight: ${fontWeight("medium")}; white-space: nowrap; background: ${ink}; color: ${paper}; border: 1px solid ${ink}; }
241
+ :host([variant='outline']) .name { background: ${t.surfaceCard}; color: ${t.text}; border-color: ${t.text}; }
242
+ :host([variant='accent']) .name { background: ${accent}; color: ${accentOn}; border-color: ${accentOn}; }
243
+ :host([drift]) .cursor { animation: drift 7s ease-in-out infinite alternate; }
244
+ @keyframes drift { 0% { transform: translate(0, 0); } 50% { transform: translate(6px, -3px); } 100% { transform: translate(-3px, 4px); } }
245
+ @media (prefers-reduced-motion: reduce) { :host([drift]) .cursor { animation: none; } }
246
+ @media (forced-colors: active) { .arrow { fill: CanvasText; stroke: Canvas; } .name { border-color: CanvasText; } }
247
+ `
248
+ ];
249
+ }
250
+ render() {
251
+ return html`<span class="cursor" part="cursor" aria-hidden="true">
252
+ <svg viewBox="0 0 16 22" width="16" height="22" focusable="false"><path class="arrow" d="M1.5 1.5v16.2l4.3-4.1 3 6.6 2.6-1.2-3-6.5h6z" stroke-width="1.25" stroke-linejoin="round" /></svg>
253
+ ${this.name ? html`<span class="name" part="name">${this.name}</span>` : nothing}
254
+ </span>`;
255
+ }
256
+ };
257
+ var ImpaktHandNote = class extends ImpaktElement {
258
+ static {
259
+ this.properties = {
260
+ text: { type: String },
261
+ arrow: { type: String, reflect: true },
262
+ decorative: { type: Boolean, reflect: true }
263
+ };
264
+ }
265
+ constructor() {
266
+ super();
267
+ this.text = "";
268
+ this.arrow = "none";
269
+ this.decorative = false;
270
+ }
271
+ static {
272
+ this.styles = [
273
+ ...ImpaktElement.styles,
274
+ css`
275
+ :host { display: inline-block; max-inline-size: 18rem; }
276
+ .note { display: inline-flex; align-items: center; gap: ${space(2)}; }
277
+ :host(:is([arrow='down'], [arrow='up'])) .note { flex-direction: column; align-items: flex-start; }
278
+ :host(:is([arrow='left'], [arrow='up'])) svg { order: -1; }
279
+ p { margin: 0; font-family: var(--impakt-font-family-hand, ${t.fontBody}); font-size: 1.25rem; line-height: 1.2; color: ${t.textMuted}; }
280
+ svg { flex: none; color: ${t.textMuted}; }
281
+ :host([arrow='left']) svg { transform: scaleX(-1); }
282
+ :host([arrow='down']) svg { transform: rotate(90deg); }
283
+ :host([arrow='up']) svg { transform: rotate(-90deg); }
284
+ @media (forced-colors: active) { p, svg { color: CanvasText; } }
285
+ `
286
+ ];
287
+ }
288
+ render() {
289
+ const arrow = this.arrow && this.arrow !== "none" ? html`<svg viewBox="0 0 40 24" width="40" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M2 16c8-10 20-12 34-6M30 4l6 6-7 4" /></svg>` : nothing;
290
+ return html`<div class="note" part="note" aria-hidden=${this.decorative ? "true" : nothing}><p part="text"><slot>${this.text}</slot></p>${arrow}</div>`;
291
+ }
292
+ };
293
+ var ImpaktFacts = class extends ImpaktElement {
294
+ static {
295
+ this.properties = {
296
+ items: { type: Array },
297
+ layout: { type: String, reflect: true },
298
+ size: { type: String, reflect: true },
299
+ label: { type: String }
300
+ };
301
+ }
302
+ constructor() {
303
+ super();
304
+ this.items = [];
305
+ this.layout = "columns";
306
+ this.size = "md";
307
+ this.label = "";
308
+ }
309
+ static {
310
+ this.styles = [
311
+ ...ImpaktElement.styles,
312
+ focusRing,
313
+ css`
314
+ :host { display: block; color: ${t.text}; }
315
+ dl { margin: 0; display: grid; gap: ${space(5)}; }
316
+ :host([layout='columns']) dl { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); column-gap: ${space(5)}; row-gap: ${space(6)}; }
317
+ :host([layout='columns']) .fact { border-block-start: 1px solid ${t.text}; padding-block-start: ${space(4)}; }
318
+ dt { ${monoLabel}; color: ${t.textMuted}; }
319
+ dd { margin: ${space(2)} 0 0; font-family: ${t.fontBody}; line-height: 1.3; overflow-wrap: anywhere; }
320
+ :host([layout='columns']) dd { margin-block-start: ${space(3)}; }
321
+ .sm { font-size: 1rem; }
322
+ .md { font-size: 1.125rem; }
323
+ .lg { font-size: 1.5rem; letter-spacing: -0.01em; }
324
+ .xl { font-size: clamp(1.5rem, 1rem + 2vw, 2rem); letter-spacing: -0.02em; }
325
+ a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
326
+ a:hover { text-decoration-thickness: 2px; }
327
+ @media (forced-colors: active) { :host([layout='columns']) .fact { border-color: CanvasText; } }
328
+ `
329
+ ];
330
+ }
331
+ render() {
332
+ if (!this.items.length) return html``;
333
+ return html`<dl part="list" aria-label=${this.label || nothing}>
334
+ ${this.items.map(
335
+ (item) => html`<div class="fact" part="fact">
336
+ <dt part="label">${item.label}</dt>
337
+ <dd part="value" class=${item.size ?? this.size}>${item.href ? html`<a href=${item.href}>${item.value}</a>` : item.value}</dd>
338
+ </div>`
339
+ )}
340
+ </dl>`;
341
+ }
342
+ };
343
+ var ImpaktNumberedList = class extends ImpaktElement {
344
+ static {
345
+ this.properties = {
346
+ items: { type: Array },
347
+ start: { type: Number },
348
+ headingLevel: { type: Number, attribute: "heading-level" },
349
+ label: { type: String }
350
+ };
351
+ }
352
+ constructor() {
353
+ super();
354
+ this.items = [];
355
+ this.start = 1;
356
+ this.headingLevel = 3;
357
+ this.label = "";
358
+ }
359
+ static {
360
+ this.styles = [
361
+ ...ImpaktElement.styles,
362
+ css`
363
+ :host { display: block; container-type: inline-size; color: ${t.text}; }
364
+ ol { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid ${t.text}; }
365
+ li { display: grid; grid-template-columns: 60px minmax(0, 520fr) minmax(0, 420fr); column-gap: ${space(10)}; align-items: center; padding-block: ${space(6)}; border-block-end: 1px solid ${t.rule}; }
366
+ .n { font-family: ${t.fontMono}; font-size: 0.75rem; letter-spacing: 0.06em; color: ${t.textMuted}; }
367
+ .heading { margin: 0; font-family: ${t.fontHeading}; font-size: clamp(1.5rem, 1rem + 2cqi, 2rem); font-weight: ${fontWeight("semibold")}; line-height: 1.15; letter-spacing: -0.025em; }
368
+ .text { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: ${t.textMuted}; }
369
+ @container (max-width: 47.99rem) {
370
+ li { grid-template-columns: minmax(0, 1fr); row-gap: ${space(2)}; }
371
+ }
372
+ @media (forced-colors: active) { ol { border-color: CanvasText; } li { border-color: CanvasText; } }
373
+ `
374
+ ];
375
+ }
376
+ render() {
377
+ if (!this.items.length) return html``;
378
+ const level = levelOf(this.headingLevel);
379
+ const start = Number.isFinite(Number(this.start)) ? Number(this.start) : 1;
380
+ return html`<ol part="list" role="list" start=${start} aria-label=${this.label || nothing}>
381
+ ${this.items.map(
382
+ (item, i) => html`<li part="item">
383
+ <span class="n" aria-hidden="true">${pad(start + i)}</span>
384
+ <div class="heading" role="heading" aria-level=${level} part="heading">${item.heading}</div>
385
+ ${item.text ? html`<p class="text" part="text">${item.text}</p>` : html`<span></span>`}
386
+ </li>`
387
+ )}
388
+ </ol>`;
389
+ }
390
+ };
391
+ var ImpaktColumnList = class extends ImpaktElement {
392
+ static {
393
+ this.properties = {
394
+ columns: { type: Array },
395
+ headingLevel: { type: Number, attribute: "heading-level" }
396
+ };
397
+ }
398
+ constructor() {
399
+ super();
400
+ this.columns = [];
401
+ this.headingLevel = 3;
402
+ }
403
+ static {
404
+ this.styles = [
405
+ ...ImpaktElement.styles,
406
+ css`
407
+ :host { display: block; color: ${t.text}; }
408
+ .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: ${space(8)} ${space(5)}; }
409
+ section { border-block-start: 1px solid ${t.text}; padding-block-start: ${space(4)}; }
410
+ .heading { margin: 0; ${monoLabel}; color: ${t.textMuted}; }
411
+ ul { margin: ${space(3)} 0 0; padding: 0; list-style: none; display: grid; gap: ${space(2)}; }
412
+ li { font-family: ${t.fontHeading}; font-size: 1.5rem; font-weight: ${fontWeight("semibold")}; line-height: 1.2; letter-spacing: -0.02em; }
413
+ @media (forced-colors: active) { section { border-color: CanvasText; } }
414
+ `
415
+ ];
416
+ }
417
+ render() {
418
+ if (!this.columns.length) return html``;
419
+ const level = levelOf(this.headingLevel);
420
+ return html`<div class="grid" part="grid">
421
+ ${this.columns.map(
422
+ (col) => html`<section part="column">
423
+ <div class="heading" role="heading" aria-level=${level} part="heading">${col.heading}</div>
424
+ <ul role="list" part="list">${(col.items ?? []).map((item) => html`<li part="item">${item}</li>`)}</ul>
425
+ </section>`
426
+ )}
427
+ </div>`;
428
+ }
429
+ };
430
+ var ImpaktOfficeCard = class extends ImpaktElement {
431
+ static {
432
+ this.properties = {
433
+ hours: { type: String },
434
+ name: { type: String },
435
+ region: { type: String },
436
+ text: { type: String },
437
+ tag: { type: String },
438
+ headingLevel: { type: Number, attribute: "heading-level" }
439
+ };
440
+ }
441
+ constructor() {
442
+ super();
443
+ this.hours = "";
444
+ this.name = "";
445
+ this.region = "";
446
+ this.text = "";
447
+ this.tag = "";
448
+ this.headingLevel = 3;
449
+ }
450
+ static {
451
+ this.styles = [
452
+ ...ImpaktElement.styles,
453
+ css`
454
+ :host { display: block; block-size: 100%; container-type: inline-size; }
455
+ article { box-sizing: border-box; block-size: 100%; display: grid; align-content: start; gap: ${space(2)}; padding: ${space(8)}; background: ${t.surfaceCard}; color: ${t.text}; border: 1px solid ${t.text}; }
456
+ .top { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: center; gap: ${space(2)}; }
457
+ .hours { margin: 0; ${monoLabel}; color: ${t.textMuted}; }
458
+ .tag { margin: 0; padding: 3px 6px; ${monoLabel}; font-weight: ${fontWeight("medium")}; background: ${accent}; color: ${accentOn}; }
459
+ .name { margin: ${space(2)} 0 0; font-family: ${t.fontHeading}; font-size: clamp(2.5rem, 1rem + 10cqi, 4rem); font-weight: ${fontWeight("semibold")}; line-height: 1; letter-spacing: -0.04em; overflow-wrap: anywhere; }
460
+ .region { margin: ${space(2)} 0 0; font-size: 1rem; line-height: 1.4; }
461
+ .text { margin: ${space(2)} 0 0; font-size: 0.9375rem; line-height: 1.5; color: ${t.textMuted}; }
462
+ @container (max-width: 22rem) { article { padding: ${space(5)}; } }
463
+ @media (forced-colors: active) { article { border-color: CanvasText; } .tag { border: 1px solid CanvasText; } }
464
+ `
465
+ ];
466
+ }
467
+ render() {
468
+ const level = levelOf(this.headingLevel);
469
+ return html`<article part="card">
470
+ ${this.hours || this.tag ? html`<div class="top">${this.hours ? html`<p class="hours" part="hours">${this.hours}</p>` : html`<span></span>`}${this.tag ? html`<p class="tag" part="tag">${this.tag}</p>` : nothing}</div>` : nothing}
471
+ <div class="name" role="heading" aria-level=${level} part="name">${this.name}</div>
472
+ ${this.region ? html`<p class="region" part="region">${this.region}</p>` : nothing}
473
+ ${this.text ? html`<p class="text" part="text">${this.text}</p>` : nothing}
474
+ </article>`;
475
+ }
476
+ };
477
+ customElements.define("impakt-stage-tag", ImpaktStageTag);
478
+ customElements.define("impakt-section-head", ImpaktSectionHead);
479
+ customElements.define("impakt-service-card", ImpaktServiceCard);
480
+ customElements.define("impakt-cursor", ImpaktCursor);
481
+ customElements.define("impakt-hand-note", ImpaktHandNote);
482
+ customElements.define("impakt-facts", ImpaktFacts);
483
+ customElements.define("impakt-numbered-list", ImpaktNumberedList);
484
+ customElements.define("impakt-column-list", ImpaktColumnList);
485
+ customElements.define("impakt-office-card", ImpaktOfficeCard);
486
+
487
+ export {
488
+ STAGE_WORDS,
489
+ ImpaktStageTag,
490
+ ImpaktSectionHead,
491
+ ImpaktServiceCard,
492
+ ImpaktCursor,
493
+ ImpaktHandNote,
494
+ ImpaktFacts,
495
+ ImpaktNumberedList,
496
+ ImpaktColumnList,
497
+ ImpaktOfficeCard
498
+ };
499
+ //# sourceMappingURL=chunk-XNRFZCNB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/g2-site.ts"],"sourcesContent":["/**\n * The G2 Noire site blocks: the stage tag and section head every section starts\n * with, the service card, the cursors and hand notes on the hero, the facts,\n * numbered and column lists, and the office card.\n */\nimport { css, html, nothing, type TemplateResult } from 'lit';\nimport { ImpaktElement, focusRing, fontWeight, say, space, spaceAround, t } from '@atomic-ui/ui';\nimport { accent, accentOn, ink, inkLine, inkMuted, inkRaised, levelOf, monoLabel, pad, paper } from './g2-shared';\n\n/** The five stages of a project, as the stage tags name them. */\nexport type StageName = 'note' | 'wireframe' | 'component' | 'code' | 'live';\n\n/** Each stage's number, phase and name, in English; `say` puts them in the page's language. */\nexport const STAGE_WORDS: Record<StageName, readonly [string, string, string]> = {\n note: ['01', 'Discover', 'Note'],\n wireframe: ['02', 'Design low-fi', 'Wireframe'],\n component: ['03', 'Design hi-fi', 'Component'],\n code: ['04', 'Build', 'Code'],\n live: ['05', 'Launch', 'Live'],\n};\n\n/**\n * A small square mono tag that says which stage of a project a section shows,\n * such as \"01 Discover Note\": the number in the accent, the phase in paper and\n * the stage's name quieter, on ink.\n *\n * Set `stage` for one of the five stages, or `index`, `phase` and `label` for\n * your own words; each one set wins over the stage's. On an ink band, set\n * `on-ink`: the tag is raised off the band with a line round it.\n *\n * **It is decoration.** The section's heading says what the section is, so the\n * tag is hidden from a screen reader unless `announce` is set (1.3.1). The tag\n * stays ink in both themes, so the yellow on it stays readable (1.4.3).\n *\n * @category content\n * @icon tag\n */\nexport class ImpaktStageTag extends ImpaktElement {\n static properties = {\n stage: { type: String, reflect: true },\n index: { type: String },\n phase: { type: String },\n label: { type: String },\n onInk: { type: Boolean, reflect: true, attribute: 'on-ink' },\n announce: { type: Boolean },\n };\n /** One of the five stages, which fills in the words. Leave empty to give them yourself. */\n declare stage: StageName | '';\n /** The number, such as \"01\". */\n declare index: string;\n /** The phase, such as \"Discover\". */\n declare phase: string;\n /** The stage's name, such as \"Note\". */\n declare label: string;\n /** Raise the tag off an ink band, with a line round it. */\n declare onInk: boolean;\n /** Let a screen reader read the tag. Leave off when the heading beside it says the same. */\n declare announce: boolean;\n\n constructor() {\n super();\n this.stage = '';\n this.index = '';\n this.phase = '';\n this.label = '';\n this.onInk = false;\n this.announce = false;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: inline-block; vertical-align: middle; }\n .tag { display: inline-flex; align-items: baseline; gap: 0.6em; padding: 6px 10px; background: ${ink}; border: 1px solid ${ink}; ${monoLabel}; font-size: 0.75rem; font-weight: ${fontWeight('medium')}; white-space: nowrap; }\n :host([on-ink]) .tag { background: ${inkRaised}; border-color: ${inkLine}; }\n .index { color: ${accent}; }\n .phase { color: ${paper}; }\n .label { color: ${inkMuted}; }\n @media (prefers-color-scheme: dark) { .tag { border-color: ${inkLine}; } }\n @media (forced-colors: active) { .tag { border-color: CanvasText; } .index, .phase, .label { color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const words = this.stage && this.stage in STAGE_WORDS ? STAGE_WORDS[this.stage] : undefined;\n const index = this.index || words?.[0] || '';\n const phase = this.phase || (words ? say(words[1]) : '');\n const label = this.label || (words ? say(words[2]) : '');\n if (!index && !phase && !label) return html``;\n return html`<span class=\"tag\" part=\"tag\" aria-hidden=${this.announce ? nothing : 'true'}\n >${index ? html`<span class=\"index\" part=\"index\">${index}</span>` : nothing}${phase ? html`<span class=\"phase\" part=\"phase\">${phase}</span>` : nothing}${\n label ? html`<span class=\"label\" part=\"label\">${label}</span>` : nothing\n }</span\n >`;\n }\n}\n\n/**\n * The head of a section: a mono label such as \"# Services\" with an optional\n * stage tag on the right, then a display heading and a lead.\n *\n * `size` sets the heading: `xl` (120px) for a page's hero, `l` (64px), and `m`\n * (52px) for a section. Give the heading as `heading`, or in the `heading` slot\n * when part of it is picked out with `impakt-highlight` or an accent word. The\n * lead goes under the heading, or with `lead-position=\"side\"` at the foot of a\n * 340px column on the right. The `aside` slot holds a picture on the right,\n * such as a journey object at 448 by 288.\n *\n * **One heading, at the level the page needs.** `level` is 1 for a page's hero\n * and 2 for a section (1.3.1, 2.4.6). The \"#\" before the label is decoration.\n *\n * **It stacks in a narrow column**, measured against its own width: the label\n * row, the heading, the lead and the aside, in reading order (1.4.10). It takes\n * its colours from the band it is on, so it reads on paper, ink and accent.\n *\n * @category layout\n * @icon heading\n * @role heading\n * @slot heading - The heading, when it holds more than words, such as an `impakt-highlight`. Replaces `heading`.\n * @slot lead - The lead, when it holds more than words. Replaces `lead`.\n * @slot tag - Something on the right of the label row, in place of the stage tag.\n * @slot aside - A picture on the right of the heading, such as a journey object.\n */\nexport class ImpaktSectionHead extends ImpaktElement {\n static properties = {\n label: { type: String },\n heading: { type: String },\n lead: { type: String },\n size: { type: String, reflect: true },\n level: { type: Number, reflect: true },\n leadPosition: { type: String, reflect: true, attribute: 'lead-position' },\n stage: { type: String },\n stageOnInk: { type: Boolean, attribute: 'stage-on-ink' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The mono label above the heading, such as \"Services\". A \"#\" is drawn before it. */\n declare label: string;\n declare heading: string;\n /** A sentence or two about the section. */\n declare lead: string;\n /** How large the heading is: `xl` 120px, `l` 64px, `m` 52px. */\n declare size: 'xl' | 'l' | 'm';\n /** The heading's level: 1 for a page's hero, 2 for a section. */\n declare level: 1 | 2;\n /** Where the lead goes: under the heading, or at the foot of a column on the right. */\n declare leadPosition: 'below' | 'side';\n /** A stage tag on the right of the label row. Leave empty for none. */\n declare stage: StageName | '';\n /** Draw the stage tag for an ink band. */\n declare stageOnInk: boolean;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.label = '';\n this.heading = '';\n this.lead = '';\n this.size = 'm';\n this.level = 2;\n this.leadPosition = 'below';\n this.stage = '';\n this.stageOnInk = false;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host { display: block; container-type: inline-size; color: ${t.text}; }\n .top { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; min-block-size: 29px; }\n .label { margin: 0; font-family: ${t.fontMono}; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }\n .body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: ${space(10)}; row-gap: ${space(6)}; align-items: end; margin-block-start: ${space(6)}; }\n .heading { margin: 0; font-family: ${t.fontHeading}; font-weight: ${fontWeight('semibold')}; color: var(--impakt-color-text-heading, ${t.text}); text-wrap: balance; overflow-wrap: anywhere; }\n :host([size='m']) .heading { font-size: clamp(2.25rem, 1.2rem + 4cqi, 3.25rem); line-height: 1; letter-spacing: -0.04em; max-inline-size: 11.5em; }\n :host([size='l']) .heading { font-size: clamp(2.5rem, 1.2rem + 5cqi, 4rem); line-height: 1; letter-spacing: -0.04em; max-inline-size: 11.5em; }\n :host([size='xl']) .heading { font-size: clamp(3rem, 0.8rem + 10cqi, 7.5rem); line-height: 0.95; letter-spacing: -0.05em; }\n .lead { margin: ${space(5)} 0 0; max-inline-size: 36rem; font-size: 1rem; line-height: 1.55; color: ${t.textMuted}; }\n .side { display: grid; gap: ${space(6)}; justify-items: end; }\n /* Beside a picture in the aside, such as the journey button, the heading sits level with the middle of it. */\n .body.aside { align-items: center; }\n .side .lead { margin: 0; max-inline-size: 340px; inline-size: 340px; }\n .side:not(:has(.lead)) { align-self: center; }\n ::slotted([slot='aside']) { display: block; max-inline-size: 100%; }\n @container (max-width: 47.99rem) {\n .body { grid-template-columns: minmax(0, 1fr); }\n .side { justify-items: stretch; }\n .side .lead { inline-size: auto; }\n }\n `,\n ];\n\n render(): TemplateResult {\n const lead = html`<p class=\"lead\" part=\"lead\"><slot name=\"lead\">${this.lead}</slot></p>`;\n const showLead = Boolean(this.lead) || this.hasSlot('lead');\n const inner = html`<slot name=\"heading\">${this.heading}</slot>`;\n const heading = Number(this.level) === 1 ? html`<h1 class=\"heading\" part=\"heading\">${inner}</h1>` : html`<h2 class=\"heading\" part=\"heading\">${inner}</h2>`;\n const side = this.leadPosition === 'side';\n return html`<header part=\"head\">\n <div class=\"top\">\n ${this.label ? html`<p class=\"label\" part=\"label\"><span aria-hidden=\"true\"># </span>${this.label}</p>` : html`<span></span>`}\n <slot name=\"tag\">${this.stage ? html`<impakt-stage-tag stage=${this.stage} ?on-ink=${this.stageOnInk}></impakt-stage-tag>` : nothing}</slot>\n </div>\n <div class=${this.hasSlot('aside') ? 'body aside' : 'body'}>\n <div class=\"main\">${heading}${showLead && !side ? lead : nothing}</div>\n <div class=\"side\">${showLead && side ? lead : nothing}<slot name=\"aside\"></slot></div>\n </div>\n </header>`;\n }\n\n /** Whether a child is in the named slot. On a server, where there are no children, only the attribute counts. */\n private hasSlot(name: string): boolean {\n const children = (this as unknown as { children?: HTMLCollection }).children;\n if (!children) return false;\n return Array.from(children).some((c) => c.getAttribute('slot') === name);\n }\n}\n\n/**\n * A service on the services grid: a number and a dot at the top, then at the\n * foot its name, a line about it, mono tags such as \"React Native · Expo\" and\n * \"Learn more\".\n *\n * **The card is one link.** The link is on the service's name, a heading, and\n * stretched over the card (2.4.4, 2.5.8). The number, dot and \"Learn more\"\n * line are decoration. Pointing at the card and focusing it look the same: it\n * turns to ink with paper words and the dot and \"Learn more\" in the accent,\n * which holds 4.5:1 on ink, and the focus ring is drawn round it (2.4.7).\n *\n * `featured` draws a card inked all the time, as it is when pointed at, for\n * the one service a page picks out or a sheet that shows the state.\n *\n * Put cards in a four-column grid with a 10px gap. On a phone the words sit at\n * the top and the card is as tall as they are.\n *\n * @category content\n * @icon card\n */\nexport class ImpaktServiceCard extends ImpaktElement {\n static properties = {\n number: { type: String },\n heading: { type: String },\n text: { type: String },\n tags: { type: String },\n href: { type: String },\n linkText: { type: String, attribute: 'link-text' },\n headingLevel: { type: Number, attribute: 'heading-level' },\n featured: { type: Boolean, reflect: true },\n };\n /** The number at the top, such as \"01\". */\n declare number: string;\n /** The service's name. */\n declare heading: string;\n /** A line about it. */\n declare text: string;\n /** What it uses or includes, such as \"React Native · Expo · Store launch\". Set in mono capitals. */\n declare tags: string;\n /** Where the card goes. Leave empty for a card that goes nowhere. */\n declare href: string;\n /** The line at the foot of a card that goes somewhere. */\n declare linkText: string;\n declare headingLevel: number;\n /** Draw the card inked, as when it is pointed at. */\n declare featured: boolean;\n\n constructor() {\n super();\n this.featured = false;\n this.number = '';\n this.heading = '';\n this.text = '';\n this.tags = '';\n this.href = '';\n this.linkText = 'Learn more';\n this.headingLevel = 3;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; block-size: 100%; }\n article { position: relative; box-sizing: border-box; block-size: 100%; min-block-size: 330px; display: flex; flex-direction: column; justify-content: space-between; gap: ${space(6)}; padding: ${space(6)}; background: ${t.surfaceCard}; color: ${t.text}; border: 1px solid ${t.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }\n .top { display: flex; align-items: center; justify-content: space-between; }\n .number { font-family: ${t.fontMono}; font-size: 0.75rem; letter-spacing: 0.06em; }\n .dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: currentColor; }\n .foot { display: grid; gap: ${space(3)}; }\n .heading { margin: 0; font-family: ${t.fontHeading}; font-size: 1.5rem; font-weight: ${fontWeight('semibold')}; line-height: 1.15; letter-spacing: -0.02em; }\n .heading a { color: inherit; text-decoration: none; }\n .heading a::after { content: ''; position: absolute; inset: 0; }\n .heading a:focus-visible { outline: none; }\n .heading a:focus-visible::after { box-shadow: ${t.focusShadow}; }\n .text { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: ${t.textMuted}; }\n .tags { margin: ${space(1)} 0 0; ${monoLabel}; color: ${t.textMuted}; }\n .more { margin-block-start: ${space(2)}; ${monoLabel}; font-weight: ${fontWeight('medium')}; }\n article:has(a):hover, article:focus-within, :host([featured]) article { background: ${ink}; color: ${paper}; border-color: ${ink}; }\n article:has(a):hover :is(.text, .tags), article:focus-within :is(.text, .tags), :host([featured]) :is(.text, .tags) { color: ${inkMuted}; }\n article:has(a):hover :is(.dot, .more), article:focus-within :is(.dot, .more), :host([featured]) :is(.dot, .more) { color: ${accent}; }\n @media (max-width: 47.99rem) { article { min-block-size: 0; justify-content: flex-start; } }\n @media (forced-colors: active) { article { border-color: CanvasText; } .dot { background: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const level = levelOf(this.headingLevel);\n return html`<article part=\"card\">\n <div class=\"top\" aria-hidden=\"true\">\n <span class=\"number\" part=\"number\">${this.number}</span>\n <span class=\"dot\" part=\"dot\"></span>\n </div>\n <div class=\"foot\">\n <div class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>\n ${this.href ? html`<a href=${this.href} part=\"link\">${this.heading}</a>` : this.heading}\n </div>\n ${this.text ? html`<p class=\"text\" part=\"text\">${this.text}</p>` : nothing}\n ${this.tags ? html`<p class=\"tags\" part=\"tags\">${this.tags}</p>` : nothing}\n ${this.href && this.linkText ? html`<span class=\"more\" part=\"more\" aria-hidden=\"true\">${this.linkText} →</span>` : nothing}\n </div>\n </article>`;\n }\n}\n\n/**\n * A pointer with a name beside it, as if someone were working on the page with\n * you: the cursors round a hero's heading.\n *\n * The name is on ink, outlined, or on the accent. With `drift` it moves a few\n * pixels to and fro, slowly; it stays still for anyone who asks for less\n * motion (2.3.3), and it never moves more than 5 seconds without a way to stop\n * it mattering, because it carries nothing (2.2.2).\n *\n * **It is decoration**, hidden from a screen reader (1.3.1).\n *\n * @category media\n * @icon pointer\n */\nexport class ImpaktCursor extends ImpaktElement {\n static properties = {\n name: { type: String },\n variant: { type: String, reflect: true },\n drift: { type: Boolean, reflect: true },\n };\n /** The name beside the pointer, such as \"Client\". */\n declare name: string;\n /** How the name is drawn: on ink, outlined, or on the accent. */\n declare variant: 'ink' | 'outline' | 'accent';\n /** Move slowly to and fro. Still for anyone who asks for less motion. */\n declare drift: boolean;\n\n constructor() {\n super();\n this.name = '';\n this.variant = 'ink';\n this.drift = false;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: inline-block; position: relative; pointer-events: none; }\n .cursor { display: inline-flex; align-items: flex-start; }\n svg { display: block; flex: none; }\n .arrow { fill: ${ink}; stroke: ${paper}; }\n .name { margin: 16px 0 0 -2px; padding: 4px 7px; ${monoLabel}; font-weight: ${fontWeight('medium')}; white-space: nowrap; background: ${ink}; color: ${paper}; border: 1px solid ${ink}; }\n :host([variant='outline']) .name { background: ${t.surfaceCard}; color: ${t.text}; border-color: ${t.text}; }\n :host([variant='accent']) .name { background: ${accent}; color: ${accentOn}; border-color: ${accentOn}; }\n :host([drift]) .cursor { animation: drift 7s ease-in-out infinite alternate; }\n @keyframes drift { 0% { transform: translate(0, 0); } 50% { transform: translate(6px, -3px); } 100% { transform: translate(-3px, 4px); } }\n @media (prefers-reduced-motion: reduce) { :host([drift]) .cursor { animation: none; } }\n @media (forced-colors: active) { .arrow { fill: CanvasText; stroke: Canvas; } .name { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n return html`<span class=\"cursor\" part=\"cursor\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 16 22\" width=\"16\" height=\"22\" focusable=\"false\"><path class=\"arrow\" d=\"M1.5 1.5v16.2l4.3-4.1 3 6.6 2.6-1.2-3-6.5h6z\" stroke-width=\"1.25\" stroke-linejoin=\"round\" /></svg>\n ${this.name ? html`<span class=\"name\" part=\"name\">${this.name}</span>` : nothing}\n </span>`;\n }\n}\n\n/**\n * A short note in handwriting, with an arrow if it points at something, such\n * as \"keep scrolling, this note becomes the real button.\"\n *\n * The face is `--impakt-font-family-hand` (Kalam in the G2 designs), and the\n * body face until a brand sets it. The note is real text and is read, unless\n * `decorative` is set because it repeats something said elsewhere (1.3.1).\n * The arrow is always decoration.\n *\n * @category content\n * @icon pen\n * @slot - The note, when it holds more than words. Replaces `text`.\n */\nexport class ImpaktHandNote extends ImpaktElement {\n static properties = {\n text: { type: String },\n arrow: { type: String, reflect: true },\n decorative: { type: Boolean, reflect: true },\n };\n /** The note. */\n declare text: string;\n /** Where an arrow points from the note. */\n declare arrow: 'none' | 'left' | 'right' | 'down' | 'up';\n /** Hide the note from a screen reader, when it repeats something said elsewhere. */\n declare decorative: boolean;\n\n constructor() {\n super();\n this.text = '';\n this.arrow = 'none';\n this.decorative = false;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: inline-block; max-inline-size: 18rem; }\n .note { display: inline-flex; align-items: center; gap: ${space(2)}; }\n :host(:is([arrow='down'], [arrow='up'])) .note { flex-direction: column; align-items: flex-start; }\n :host(:is([arrow='left'], [arrow='up'])) svg { order: -1; }\n p { margin: 0; font-family: var(--impakt-font-family-hand, ${t.fontBody}); font-size: 1.25rem; line-height: 1.2; color: ${t.textMuted}; }\n svg { flex: none; color: ${t.textMuted}; }\n :host([arrow='left']) svg { transform: scaleX(-1); }\n :host([arrow='down']) svg { transform: rotate(90deg); }\n :host([arrow='up']) svg { transform: rotate(-90deg); }\n @media (forced-colors: active) { p, svg { color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const arrow =\n this.arrow && this.arrow !== 'none'\n ? html`<svg viewBox=\"0 0 40 24\" width=\"40\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M2 16c8-10 20-12 34-6M30 4l6 6-7 4\" /></svg>`\n : nothing;\n return html`<div class=\"note\" part=\"note\" aria-hidden=${this.decorative ? 'true' : nothing}><p part=\"text\"><slot>${this.text}</slot></p>${arrow}</div>`;\n }\n}\n\n/** One fact: a label and its value. */\nexport interface FactItem {\n /** What it is, such as \"Client\". Set in mono capitals. */\n label: string;\n /** The fact, such as \"Vehicle importer · UK → Cyprus\". */\n value: string;\n /** Make the value a link, such as `mailto:` for an email address. */\n href?: string;\n /** This value's size, in place of the block's. */\n size?: 'sm' | 'md' | 'lg' | 'xl';\n}\n\n/**\n * A few facts, each a mono label over its value: a case study's client, role,\n * platform and stack in four columns under an ink rule, or contact details\n * stacked with the email set large.\n *\n * A description list, so each value is read with its label (1.3.1). Columns\n * wrap to fit their width, so they stack on a phone (1.4.10).\n *\n * @category content\n * @icon list\n */\nexport class ImpaktFacts extends ImpaktElement {\n static properties = {\n items: { type: Array },\n layout: { type: String, reflect: true },\n size: { type: String, reflect: true },\n label: { type: String },\n };\n /** The facts, in order. */\n declare items: FactItem[];\n /** Side by side under a rule each, or stacked. */\n declare layout: 'columns' | 'stacked';\n /** The values' size: `sm` 16px, `md` 18px, `lg` 24px, `xl` 32px. An item can set its own. */\n declare size: 'sm' | 'md' | 'lg' | 'xl';\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.items = [];\n this.layout = 'columns';\n this.size = 'md';\n this.label = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n :host { display: block; color: ${t.text}; }\n dl { margin: 0; display: grid; gap: ${space(5)}; }\n :host([layout='columns']) dl { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); column-gap: ${space(5)}; row-gap: ${space(6)}; }\n :host([layout='columns']) .fact { border-block-start: 1px solid ${t.text}; padding-block-start: ${space(4)}; }\n dt { ${monoLabel}; color: ${t.textMuted}; }\n dd { margin: ${space(2)} 0 0; font-family: ${t.fontBody}; line-height: 1.3; overflow-wrap: anywhere; }\n :host([layout='columns']) dd { margin-block-start: ${space(3)}; }\n .sm { font-size: 1rem; }\n .md { font-size: 1.125rem; }\n .lg { font-size: 1.5rem; letter-spacing: -0.01em; }\n .xl { font-size: clamp(1.5rem, 1rem + 2vw, 2rem); letter-spacing: -0.02em; }\n a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }\n a:hover { text-decoration-thickness: 2px; }\n @media (forced-colors: active) { :host([layout='columns']) .fact { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n if (!this.items.length) return html``;\n return html`<dl part=\"list\" aria-label=${this.label || nothing}>\n ${this.items.map(\n (item) => html`<div class=\"fact\" part=\"fact\">\n <dt part=\"label\">${item.label}</dt>\n <dd part=\"value\" class=${item.size ?? this.size}>${item.href ? html`<a href=${item.href}>${item.value}</a>` : item.value}</dd>\n </div>`,\n )}\n </dl>`;\n }\n}\n\n/** One row of a numbered list. */\nexport interface NumberedItem {\n heading: string;\n text?: string;\n}\n\n/**\n * A numbered list under an ink rule, each row split by a hairline: the number,\n * a heading and a line of quieter text in three columns. \"Three rules we don't\n * break\", the steps of a project, a tool's features.\n *\n * An ordered list, so a screen reader says how many rows there are and which\n * one this is, and the drawn numbers are hidden from it (1.3.1). Each heading\n * is at the level the page asks for. It stacks in a narrow column, measured\n * against its own width (1.4.10), and takes its colours from its band.\n *\n * @category content\n * @icon list-ordered\n */\nexport class ImpaktNumberedList extends ImpaktElement {\n static properties = {\n items: { type: Array },\n start: { type: Number },\n headingLevel: { type: Number, attribute: 'heading-level' },\n label: { type: String },\n };\n declare items: NumberedItem[];\n /** The number the first row is given. */\n declare start: number;\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.items = [];\n this.start = 1;\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; color: ${t.text}; }\n ol { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid ${t.text}; }\n li { display: grid; grid-template-columns: 60px minmax(0, 520fr) minmax(0, 420fr); column-gap: ${space(10)}; align-items: center; padding-block: ${space(6)}; border-block-end: 1px solid ${t.rule}; }\n .n { font-family: ${t.fontMono}; font-size: 0.75rem; letter-spacing: 0.06em; color: ${t.textMuted}; }\n .heading { margin: 0; font-family: ${t.fontHeading}; font-size: clamp(1.5rem, 1rem + 2cqi, 2rem); font-weight: ${fontWeight('semibold')}; line-height: 1.15; letter-spacing: -0.025em; }\n .text { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: ${t.textMuted}; }\n @container (max-width: 47.99rem) {\n li { grid-template-columns: minmax(0, 1fr); row-gap: ${space(2)}; }\n }\n @media (forced-colors: active) { ol { border-color: CanvasText; } li { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n if (!this.items.length) return html``;\n const level = levelOf(this.headingLevel);\n const start = Number.isFinite(Number(this.start)) ? Number(this.start) : 1;\n return html`<ol part=\"list\" role=\"list\" start=${start} aria-label=${this.label || nothing}>\n ${this.items.map(\n (item, i) => html`<li part=\"item\">\n <span class=\"n\" aria-hidden=\"true\">${pad(start + i)}</span>\n <div class=\"heading\" role=\"heading\" aria-level=${level} part=\"heading\">${item.heading}</div>\n ${item.text ? html`<p class=\"text\" part=\"text\">${item.text}</p>` : html`<span></span>`}\n </li>`,\n )}\n </ol>`;\n }\n}\n\n/** One column of a column list. */\nexport interface ColumnListColumn {\n /** The column's heading, such as \"Design\". Set in mono capitals. */\n heading: string;\n /** What is in it, each a line set large. */\n items: string[];\n}\n\n/**\n * What a studio does, in four columns: each under an ink rule, with a mono\n * heading such as \"Engineering\" and a stack of what it covers set large. The\n * items are words, not links.\n *\n * Each column's heading is a heading at the level the page asks for, and its\n * items a list (1.3.1). The columns wrap to fit their width (1.4.10).\n *\n * @category content\n * @icon columns\n */\nexport class ImpaktColumnList extends ImpaktElement {\n static properties = {\n columns: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n };\n declare columns: ColumnListColumn[];\n declare headingLevel: number;\n\n constructor() {\n super();\n this.columns = [];\n this.headingLevel = 3;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; color: ${t.text}; }\n .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: ${space(8)} ${space(5)}; }\n section { border-block-start: 1px solid ${t.text}; padding-block-start: ${space(4)}; }\n .heading { margin: 0; ${monoLabel}; color: ${t.textMuted}; }\n ul { margin: ${space(3)} 0 0; padding: 0; list-style: none; display: grid; gap: ${space(2)}; }\n li { font-family: ${t.fontHeading}; font-size: 1.5rem; font-weight: ${fontWeight('semibold')}; line-height: 1.2; letter-spacing: -0.02em; }\n @media (forced-colors: active) { section { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n if (!this.columns.length) return html``;\n const level = levelOf(this.headingLevel);\n return html`<div class=\"grid\" part=\"grid\">\n ${this.columns.map(\n (col) => html`<section part=\"column\">\n <div class=\"heading\" role=\"heading\" aria-level=${level} part=\"heading\">${col.heading}</div>\n <ul role=\"list\" part=\"list\">${(col.items ?? []).map((item) => html`<li part=\"item\">${item}</li>`)}</ul>\n </section>`,\n )}\n </div>`;\n }\n}\n\n/**\n * An office: a mono line with its time zone and hours, its name set large, the\n * region under it and a line about it, on a white card with an ink border. An\n * accent tag at the top right can say how its hours meet another office's,\n * such as \"+2h · same working day\".\n *\n * The name is a heading at the level the page asks for (1.3.1). The tag is\n * text and is read; on a narrow card it moves above the name (1.4.10).\n *\n * @category content\n * @icon map-pin\n */\nexport class ImpaktOfficeCard extends ImpaktElement {\n static properties = {\n hours: { type: String },\n name: { type: String },\n region: { type: String },\n text: { type: String },\n tag: { type: String },\n headingLevel: { type: Number, attribute: 'heading-level' },\n };\n /** The time zone and hours, such as \"GMT · Mon–Fri 9–18\". */\n declare hours: string;\n /** The office, such as \"UK\". */\n declare name: string;\n /** Where it is, such as \"United Kingdom\". */\n declare region: string;\n /** A line about it. */\n declare text: string;\n /** An accent tag at the top right, such as \"+2h · same working day\". Leave empty for none. */\n declare tag: string;\n declare headingLevel: number;\n\n constructor() {\n super();\n this.hours = '';\n this.name = '';\n this.region = '';\n this.text = '';\n this.tag = '';\n this.headingLevel = 3;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; block-size: 100%; container-type: inline-size; }\n article { box-sizing: border-box; block-size: 100%; display: grid; align-content: start; gap: ${space(2)}; padding: ${space(8)}; background: ${t.surfaceCard}; color: ${t.text}; border: 1px solid ${t.text}; }\n .top { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: center; gap: ${space(2)}; }\n .hours { margin: 0; ${monoLabel}; color: ${t.textMuted}; }\n .tag { margin: 0; padding: 3px 6px; ${monoLabel}; font-weight: ${fontWeight('medium')}; background: ${accent}; color: ${accentOn}; }\n .name { margin: ${space(2)} 0 0; font-family: ${t.fontHeading}; font-size: clamp(2.5rem, 1rem + 10cqi, 4rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.04em; overflow-wrap: anywhere; }\n .region { margin: ${space(2)} 0 0; font-size: 1rem; line-height: 1.4; }\n .text { margin: ${space(2)} 0 0; font-size: 0.9375rem; line-height: 1.5; color: ${t.textMuted}; }\n @container (max-width: 22rem) { article { padding: ${space(5)}; } }\n @media (forced-colors: active) { article { border-color: CanvasText; } .tag { border: 1px solid CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const level = levelOf(this.headingLevel);\n return html`<article part=\"card\">\n ${\n this.hours || this.tag\n ? html`<div class=\"top\">${this.hours ? html`<p class=\"hours\" part=\"hours\">${this.hours}</p>` : html`<span></span>`}${this.tag ? html`<p class=\"tag\" part=\"tag\">${this.tag}</p>` : nothing}</div>`\n : nothing\n }\n <div class=\"name\" role=\"heading\" aria-level=${level} part=\"name\">${this.name}</div>\n ${this.region ? html`<p class=\"region\" part=\"region\">${this.region}</p>` : nothing}\n ${this.text ? html`<p class=\"text\" part=\"text\">${this.text}</p>` : nothing}\n </article>`;\n }\n}\n\ncustomElements.define('impakt-stage-tag', ImpaktStageTag);\ncustomElements.define('impakt-section-head', ImpaktSectionHead);\ncustomElements.define('impakt-service-card', ImpaktServiceCard);\ncustomElements.define('impakt-cursor', ImpaktCursor);\ncustomElements.define('impakt-hand-note', ImpaktHandNote);\ncustomElements.define('impakt-facts', ImpaktFacts);\ncustomElements.define('impakt-numbered-list', ImpaktNumberedList);\ncustomElements.define('impakt-column-list', ImpaktColumnList);\ncustomElements.define('impakt-office-card', ImpaktOfficeCard);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-stage-tag': ImpaktStageTag;\n 'impakt-section-head': ImpaktSectionHead;\n 'impakt-service-card': ImpaktServiceCard;\n 'impakt-cursor': ImpaktCursor;\n 'impakt-hand-note': ImpaktHandNote;\n 'impakt-facts': ImpaktFacts;\n 'impakt-numbered-list': ImpaktNumberedList;\n 'impakt-column-list': ImpaktColumnList;\n 'impakt-office-card': ImpaktOfficeCard;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAKA,SAAS,KAAK,MAAM,eAAoC;AACxD,SAAS,eAAe,WAAW,YAAY,KAAK,OAAO,aAAa,SAAS;AAO1E,IAAM,cAAoE;AAAA,EAC/E,MAAM,CAAC,MAAM,YAAY,MAAM;AAAA,EAC/B,WA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jE;AAAA;AAAA,EAEA,SAAyB;AACvB,UAAM,QAAQ,QAAQ,KAAK,YAAY;AACvC,WAAO;AAAA,QAEH,KAAK,SAAS,KAAK,MACf,wBAAwB,KAAK,QAAQ,qCAAqC,KAAK,KAAK,SAAS,mBAAmB,GAAG,KAAK,MAAM,iCAAiC,KAAK,GAAG,SAAS,OAAO,WACvL,OACN;AAAA,oDAC8C,KAAK,gBAAgB,KAAK,IAAI;AAAA,QAC1E,KAAK,SAAS,uCAAuC,KAAK,MAAM,SAAS,OAAO;AAAA,QAChF,KAAK,OAAO,mCAAmC,KAAK,IAAI,SAAS,OAAO;AAAA;AAAA,EAE9E;AACF;AAEA,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,uBAAuB,iBAAiB;AAC9D,eAAe,OAAO,uBAAuB,iBAAiB;AAC9D,eAAe,OAAO,iBAAiB,YAAY;AACnD,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,gBAAgB,WAAW;AACjD,eAAe,OAAO,wBAAwB,kBAAkB;AAChE,eAAe,OAAO,sBAAsB,gBAAgB;AAC5D,eAAe,OAAO,sBAAsB,gBAAgB;","names":[]}
@@ -73,7 +73,7 @@ var ImpaktScrubber = class extends ImpaktElement {
73
73
  button {
74
74
  min-height: ${token("target.min", "24px")};
75
75
  padding: ${space(1)} ${space(3)};
76
- border-radius: ${token("radius.full", "9999px")};
76
+ border-radius: var(--impakt-radius-pill, calc(var(--impakt-radius-md, 0.5rem) * 9999));
77
77
  border: 1px solid ${t.border};
78
78
  background: transparent;
79
79
  color: ${t.textMuted};
@@ -108,7 +108,7 @@ var ImpaktScrubber = class extends ImpaktElement {
108
108
  .line input { position: absolute; inset: 0 0 auto; block-size: 30px; opacity: 0; cursor: grab; }
109
109
  .line input:focus-visible { opacity: 1; }
110
110
  .where { display: grid; gap: ${space(2)}; justify-items: end; }
111
- .chip { display: inline-flex; align-items: center; gap: ${space(2)}; padding: ${space(1)} ${space(3)}; border-radius: ${token("radius.full", "9999px")}; border: 1px solid ${t.border}; color: ${t.text}; text-transform: uppercase; }
111
+ .chip { display: inline-flex; align-items: center; gap: ${space(2)}; padding: ${space(1)} ${space(3)}; border-radius: var(--impakt-radius-pill, calc(var(--impakt-radius-md, 0.5rem) * 9999)); border: 1px solid ${t.border}; color: ${t.text}; text-transform: uppercase; }
112
112
  .chip::before { content: ''; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--c); }
113
113
  .hint { color: ${t.textMuted}; text-transform: uppercase; }
114
114
  /* Muted by colour, not opacity, so the code keeps its contrast (1.4.3). */
@@ -227,4 +227,4 @@ customElements.define("impakt-scrubber", ImpaktScrubber);
227
227
  export {
228
228
  ImpaktScrubber
229
229
  };
230
- //# sourceMappingURL=chunk-CC2U2L2H.js.map
230
+ //# sourceMappingURL=chunk-YXMXLVK7.js.map