@atomic-ui/blocks 0.13.2 → 0.14.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 +82 -18
- package/dist/{chunk-B6I3GVJ5.js → chunk-3G3NP4UC.js} +9 -4
- package/dist/chunk-3G3NP4UC.js.map +1 -0
- package/dist/{chunk-H262HKSL.js → chunk-7OFH762N.js} +53 -23
- package/dist/chunk-7OFH762N.js.map +1 -0
- package/dist/{chunk-WIVKJL64.js → chunk-BW5ZMKES.js} +65 -29
- package/dist/chunk-BW5ZMKES.js.map +1 -0
- package/dist/{chunk-WTVF3JRL.js → chunk-GDATDR2Q.js} +24 -7
- package/dist/chunk-GDATDR2Q.js.map +1 -0
- package/dist/{chunk-IT2NA25D.js → chunk-GZTBAT6P.js} +6 -3
- package/dist/chunk-GZTBAT6P.js.map +1 -0
- package/dist/{chunk-FNGN2F6Y.js → chunk-NZQZRBKV.js} +17 -4
- package/dist/chunk-NZQZRBKV.js.map +1 -0
- package/dist/{chunk-53V2GY6L.js → chunk-Q366ZM2X.js} +60 -29
- package/dist/chunk-Q366ZM2X.js.map +1 -0
- package/dist/{chunk-MMADM6OW.js → chunk-ZM2HLQOG.js} +3 -2
- package/dist/{chunk-MMADM6OW.js.map → chunk-ZM2HLQOG.js.map} +1 -1
- package/dist/components/changelog.js +1 -1
- package/dist/components/estimator.js +1 -1
- package/dist/components/g2-case.d.ts +8 -1
- package/dist/components/g2-case.js +1 -1
- package/dist/components/g2-site.d.ts +22 -1
- package/dist/components/g2-site.js +1 -1
- package/dist/components/journey.d.ts +13 -2
- package/dist/components/journey.js +1 -1
- package/dist/components/organisms.js +1 -1
- package/dist/components/site.d.ts +2 -1
- package/dist/components/site.js +1 -1
- package/dist/components/studio.d.ts +32 -3
- package/dist/components/studio.js +1 -1
- package/dist/index.js +8 -8
- package/dist/standalone/atomic-ui-blocks.js +1173 -1072
- package/dist/standalone/atomic-ui-blocks.js.map +3 -3
- package/package.json +3 -3
- package/dist/chunk-53V2GY6L.js.map +0 -1
- package/dist/chunk-B6I3GVJ5.js.map +0 -1
- package/dist/chunk-FNGN2F6Y.js.map +0 -1
- package/dist/chunk-H262HKSL.js.map +0 -1
- package/dist/chunk-IT2NA25D.js.map +0 -1
- package/dist/chunk-WIVKJL64.js.map +0 -1
- package/dist/chunk-WTVF3JRL.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/changelog.ts"],"sourcesContent":["/**\n * Blocks that tell how software was made, in the language software is made\n * in: a release with what it added and removed, services as branches that\n * merge into one product, checks that passed, and a project drawn as a commit\n * graph. They came from building the Impakt site's Commit design in Strata, and\n * they are written for any studio, agency or product team that wants to show\n * its work this way.\n *\n * Every colour is a brand token. A lane's colour is a tone (brand, accent or\n * a status colour), never a hex value, so a partner's brand restyles them.\n */\nimport { css, html, nothing, svg, type TemplateResult } from 'lit';\nimport {\n say,\n ImpaktElement,\n focusRing,\n visuallyHidden,\n fontSize,\n fontWeight,\n space,\n spaceAround,\n t,\n token,\n type,\n iconSvg,\n toneOf,\n TONE,\n type Tone,\n} from '@atomic-ui/ui';\nimport './property';\n\n// The tones (`Tone`, `TONE`, `toneOf`) are shared with `impakt-chip`, so they live in @atomic-ui/ui.\n\n/**\n * Marks an element `shown` once a quarter of it is on screen, so it can draw\n * itself in (the Commit motion spec's branch draw, graph draw and checks run).\n * Where nothing can watch, it is shown at once; what draws in is decided by\n * CSS under `prefers-reduced-motion: no-preference`, so reduced motion never waits.\n */\nfunction revealOnView(el: HTMLElement, onShow?: () => void): () => void {\n const show = () => {\n el.setAttribute('shown', '');\n onShow?.();\n };\n if (typeof IntersectionObserver !== 'function') {\n show();\n return () => undefined;\n }\n const io = new IntersectionObserver(\n (entries) => {\n if (entries.some((e) => e.isIntersecting)) {\n show();\n io.disconnect();\n }\n },\n { threshold: 0.25 },\n );\n io.observe(el);\n return () => io.disconnect();\n}\nconst reduced = () => typeof matchMedia === 'function' && matchMedia('(prefers-reduced-motion: reduce)').matches;\n\n/** Code-like labels: a branch name, a version, a hash. The brand has no code face, so the system's is used. */\nconst mono = css`.mono { font-family: ${t.fontMono}; font-size: ${fontSize('xs')}; letter-spacing: 0.04em; }`;\n\nconst heading = (level: number, text: string | TemplateResult, cls: string): TemplateResult => {\n const l = Math.min(Math.max(level || 3, 2), 6);\n switch (l) {\n case 2:\n return html`<h2 class=${cls}>${text}</h2>`;\n case 4:\n return html`<h4 class=${cls}>${text}</h4>`;\n case 5:\n return html`<h5 class=${cls}>${text}</h5>`;\n case 6:\n return html`<h6 class=${cls}>${text}</h6>`;\n default:\n return html`<h3 class=${cls}>${text}</h3>`;\n }\n};\n\nconst words = css`\n .h { margin: 0; color: var(--impakt-heading, ${t.textHeading}); font-family: ${t.fontHeading}; font-weight: ${fontWeight('bold')}; letter-spacing: ${t.trackingTight}; text-wrap: balance; }\n .body { margin: 0; color: inherit; opacity: 0.8; text-wrap: pretty; }\n .meta { margin: 0; color: inherit; opacity: 0.72; text-transform: uppercase; }\n .sr-only { ${visuallyHidden} }\n`;\n\n// ── Release card ─────────────────────────────────────────────────────────\n\n/** One line of what a release changed. */\nexport interface DiffLine {\n id?: string;\n /** Added, taken away, or kept as it was. */\n change: 'added' | 'removed' | 'same';\n text: string;\n}\n\n/**\n * A piece of work told as a release: what it looked like when it started and\n * what shipped, a version line, and a short diff of what it added and took\n * away.\n *\n * With both pictures it is a before-and-after comparison a visitor drags; with\n * one it is a picture. The diff is a list, each line saying \"Added\" or\n * \"Removed\" for a screen reader, since the + and − are only drawn.\n *\n * @category content\n * @icon git-commit\n */\nexport class ImpaktReleaseCard extends ImpaktElement {\n static properties = {\n label: { type: String },\n heading: { type: String },\n text: { type: String },\n beforeSrc: { type: String, attribute: 'before-src' },\n beforeAlt: { type: String, attribute: 'before-alt' },\n afterSrc: { type: String, attribute: 'after-src' },\n afterAlt: { type: String, attribute: 'after-alt' },\n items: { type: Array },\n href: { type: String },\n headingLevel: { type: Number, attribute: 'heading-level' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** A line above the heading, such as \"v1.0 · Legal tech · Property\". */\n declare label: string;\n declare heading: string;\n declare text: string;\n /** What it started as: a sketch or a wireframe. */\n declare beforeSrc: string;\n declare beforeAlt: string;\n /** What shipped. */\n declare afterSrc: string;\n declare afterAlt: string;\n /** What the release added, took away or kept. */\n declare items: DiffLine[];\n /** Where the heading links to, such as the case study. */\n declare href: string;\n declare headingLevel: 2 | 3 | 4;\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.text = '';\n this.beforeSrc = '';\n this.beforeAlt = '';\n this.afterSrc = '';\n this.afterAlt = '';\n this.items = [];\n this.href = '';\n this.headingLevel = 3;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n mono,\n words,\n css`\n :host { display: block; }\n article { display: flex; flex-direction: column; gap: ${space(3)}; }\n .media { border-radius: ${t.radiusXl}; overflow: clip; background: ${t.surfaceInset}; }\n .media img { display: block; inline-size: 100%; aspect-ratio: 5 / 3; object-fit: cover; }\n impakt-before-after { display: block; }\n .h { font-size: ${fontSize('3xl')}; }\n .h a { color: inherit; text-decoration: none; }\n .h a:hover { text-decoration: underline; text-underline-offset: 0.15em; }\n .h a:focus-visible { outline: none; box-shadow: ${t.focusShadow}; border-radius: ${t.radiusSm}; }\n ul { list-style: none; margin: ${space(1)} 0 0; padding: 0; display: grid; gap: ${space(1)}; }\n li { display: grid; grid-template-columns: 1.25em minmax(0, 1fr); gap: ${space(2)}; padding: ${space(1)} ${space(3)}; border-radius: ${t.radius}; }\n li[data-change='added'] { background: ${t.successSubtle}; color: ${t.successText}; }\n li[data-change='removed'] { background: ${t.dangerSubtle}; color: ${t.dangerText}; }\n li[data-change='same'] { color: ${t.textMuted}; }\n .sign { font-weight: ${fontWeight('bold')}; }\n `,\n ];\n\n private raf = 0;\n\n /** Sweep the seam, as Commit's release wipe does: off the screenshot on hover, back on leaving. */\n private wipe(to: number): void {\n const ba = this.renderRoot.querySelector('impakt-before-after') as (HTMLElement & { position: number }) | null;\n if (!ba) return;\n cancelAnimationFrame(this.raf);\n if (reduced()) {\n ba.position = to;\n return;\n }\n const from = ba.position ?? SEAM;\n const start = performance.now();\n // cubic-bezier(.65, 0, .35, 1), near enough: an ease-in-out.\n const ease = (k: number) => (k < 0.5 ? 4 * k * k * k : 1 - Math.pow(-2 * k + 2, 3) / 2);\n const step = (now: number) => {\n const k = Math.min(1, (now - start) / 450);\n ba.position = from + (to - from) * ease(k);\n if (k < 1) this.raf = requestAnimationFrame(step);\n };\n this.raf = requestAnimationFrame(step);\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n cancelAnimationFrame(this.raf);\n }\n\n render(): TemplateResult {\n const both = this.beforeSrc && this.afterSrc;\n const title = this.href ? html`<a href=${this.href}>${this.heading}</a>` : this.heading;\n const SIGN = { added: '+', removed: '−', same: ' ' } as const;\n const SAID = { added: say('Added'), removed: say('Removed'), same: say('Kept') } as const;\n return html`<article part=\"card\">\n ${\n both\n ? html`<div class=\"media\" @pointerenter=${(e: PointerEvent) => e.pointerType === 'mouse' && this.wipe(0)} @pointerleave=${(e: PointerEvent) => e.pointerType === 'mouse' && this.wipe(SEAM)}><impakt-before-after .position=${SEAM} .beforeSrc=${this.beforeSrc} .beforeAlt=${this.beforeAlt} .afterSrc=${this.afterSrc} .afterAlt=${this.afterAlt} .beforeLabel=${say('Before')} .afterLabel=${say('Shipped')} .label=${say('Compare {name} before and after', { name: this.heading })}></impakt-before-after></div>`\n : this.afterSrc || this.beforeSrc\n ? html`<div class=\"media\"><img src=${this.afterSrc || this.beforeSrc} alt=${this.afterSrc ? this.afterAlt : this.beforeAlt} loading=\"lazy\" /></div>`\n : nothing\n }\n ${this.label ? html`<p class=\"meta mono\">${this.label}</p>` : nothing}\n ${this.heading ? headingWith(this.headingLevel, title) : nothing}\n ${this.text ? html`<p class=\"body\">${this.text}</p>` : nothing}\n ${(this.items ?? []).length ? html`<ul class=\"mono\" part=\"diff\">${this.items.map((line) => html`<li data-change=${line.change}><span class=\"sign\" aria-hidden=\"true\">${SIGN[line.change] ?? ' '}</span><span><span class=\"sr-only\">${SAID[line.change] ?? ''}: </span>${line.text}</span></li>`)}</ul>` : nothing}\n </article>`;\n }\n}\n\n// ── Release list ─────────────────────────────────────────────────────────\n\n/**\n * One release in a list: a release card's props. `title` is read when there is\n * no `heading`, because that is what a collection's entry carries (ADR 0028).\n */\nexport interface ReleaseItem {\n label?: string;\n heading?: string;\n title?: string;\n text?: string;\n beforeSrc?: string;\n beforeAlt?: string;\n afterSrc?: string;\n afterAlt?: string;\n items?: DiffLine[];\n href?: string;\n}\n\n/**\n * Releases side by side, two to a row: a changelog of case studies.\n *\n * Bind `items` to a collection's entries and the list follows them: a new case\n * study appears here when it is published. The release for the page being\n * read is left out, so a case study's \"more work\" does not offer itself.\n *\n * @category content\n * @icon git-commit\n */\nexport class ImpaktReleaseList extends ImpaktElement {\n static properties = {\n items: { type: Array },\n columns: { type: String, reflect: true },\n headingLevel: { type: Number, attribute: 'heading-level' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n declare items: ReleaseItem[];\n /** Releases in a row on a wide screen. One on a phone. */\n declare columns: 'one' | 'two' | 'three';\n declare headingLevel: 2 | 3 | 4;\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.items = [];\n this.columns = 'two';\n this.headingLevel = 3;\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; }\n ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${space(12)} ${space(10)}; }\n :host([columns='one']) ul { grid-template-columns: minmax(0, 1fr); }\n :host([columns='three']) ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n @container (max-width: 44rem) { ul, :host([columns='three']) ul { grid-template-columns: minmax(0, 1fr); } }\n `,\n ];\n\n render(): TemplateResult {\n const here = typeof location === 'undefined' ? '' : location.pathname.replace(/\\/$/, '');\n const shown = (this.items ?? []).filter((item) => !item.href || item.href.replace(/\\/$/, '') !== here);\n return html`<ul part=\"list\">${shown.map((item) => {\n const heading = item.heading ?? item.title ?? '';\n return html`<li><impakt-release-card\n .label=${item.label ?? ''} .heading=${heading} .text=${item.text ?? ''} .href=${item.href ?? ''}\n .beforeSrc=${item.beforeSrc ?? ''} .beforeAlt=${item.beforeAlt || say('{name} as a wireframe', { name: heading })}\n .afterSrc=${item.afterSrc ?? ''} .afterAlt=${item.afterAlt || say('{name} as it shipped', { name: heading })}\n .items=${item.items ?? []} .headingLevel=${this.headingLevel}></impakt-release-card></li>`;\n })}</ul>`;\n }\n}\n\n/** Where the seam rests: the wireframe covers the left of the screenshot until it is pointed at. */\nconst SEAM = 42;\n\n/** A heading holding a template, such as a link. */\nfunction headingWith(level: number, content: TemplateResult | string): TemplateResult {\n const l = Math.min(Math.max(level || 3, 2), 6);\n if (l === 2) return html`<h2 class=\"h\">${content}</h2>`;\n if (l === 4) return html`<h4 class=\"h\">${content}</h4>`;\n if (l === 5) return html`<h5 class=\"h\">${content}</h5>`;\n if (l === 6) return html`<h6 class=\"h\">${content}</h6>`;\n return html`<h3 class=\"h\">${content}</h3>`;\n}\n\n// ── Branch list ──────────────────────────────────────────────────────────\n\n/** One branch: a service, a team, a line of work. */\nexport interface Branch {\n id?: string;\n /** A short code-like name, such as \"feature/mobile-apps\". */\n path?: string;\n heading: string;\n text?: string;\n /** A few words below the text, such as the tools it uses. */\n tags?: string[];\n tone?: Tone;\n /** Where the heading links to, such as the service's own page. */\n href?: string;\n}\n\n/**\n * Several lines of work that come together into one: each item branches off a\n * main line on the left and merges back into it, and the line ends in what\n * they make together.\n *\n * The lines are drawn; the items are a list with headings, so a screen reader\n * reads the work, not the drawing.\n *\n * `look=\"mono\"` draws it in thin ink lines with no chart colours: hollow\n * rings for the branches, one filled with the accent for the `current` item,\n * a hairline under each row, the paths in monospace capitals, and the main\n * line ending in a small ink dot beside the `trunk` words. The tags are left\n * out on a phone in that look. Which item is current is also said in words to\n * a screen reader, so it never rests on the colour alone (1.4.1).\n *\n * @category content\n * @icon git-merge\n */\nexport class ImpaktBranchList extends ImpaktElement {\n static properties = {\n items: { type: Array },\n trunk: { type: String },\n look: { type: String, reflect: true },\n current: { type: Number },\n currentText: { type: String, attribute: 'current-text' },\n headingLevel: { type: Number, attribute: 'heading-level' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n declare items: Branch[];\n /** What the main line ends in, such as \"main ← one team owns the result\". */\n declare trunk: string;\n /** `tones` draws each branch in a chart colour. `mono` draws thin ink lines with hollow rings, as the Noire site does. */\n declare look: 'tones' | 'mono';\n /** The index of the item to mark as current, from 0: its ring is filled with the accent. -1 for none. */\n declare current: number;\n /** What a screen reader hears after the current item's heading, such as \"current\". Set it with `current`, so the mark is not colour alone. */\n declare currentText: string;\n declare headingLevel: 2 | 3 | 4;\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.items = [];\n this.trunk = '';\n this.look = 'tones';\n this.current = -1;\n this.currentText = '';\n this.headingLevel = 3;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n mono,\n words,\n css`\n :host { display: block; container-type: inline-size; --trunk: color-mix(in srgb, currentColor 70%, transparent); }\n ul { list-style: none; margin: 0; padding: 0; position: relative; }\n ul::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 11px; inline-size: 3px; border-radius: 3px; background: var(--trunk); }\n li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); padding-block: ${space(6)}; }\n .graph { position: relative; }\n .graph svg { position: absolute; inset-block-start: -${space(6)}; inset-inline-start: 0; inline-size: 96px; block-size: calc(100% + ${space(12)}); overflow: visible; }\n .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: ${space(4)} ${space(10)}; align-items: start; }\n .path { margin: 0 0 ${space(2)}; opacity: 0.72; }\n .h { font-size: ${fontSize('3xl')}; line-height: 1.05; }\n .h a { color: inherit; text-decoration: none; }\n .h a:hover { text-decoration: underline; text-underline-offset: 0.15em; }\n .h a:focus-visible { outline: none; box-shadow: ${t.focusShadow}; border-radius: ${t.radiusSm}; }\n .detail { display: flex; flex-direction: column; gap: ${space(3)}; padding-block-start: ${space(1)}; }\n .tags { margin: 0; opacity: 0.7; text-transform: uppercase; }\n .end { position: relative; display: flex; align-items: center; gap: ${space(3)}; padding-block-start: ${space(4)}; }\n .end::before { content: ''; inline-size: 16px; block-size: 16px; margin-inline-start: 5px; border-radius: 50%; background: currentColor; }\n @container (max-width: 44rem) {\n li { grid-template-columns: 56px minmax(0, 1fr); }\n .graph svg { inline-size: 56px; }\n .row { grid-template-columns: minmax(0, 1fr); }\n .h { font-size: ${fontSize('2xl')}; }\n }\n /*\n * The mono look, as the Branches component (12:683) draws it: rows 120px apart, a 1.5px trunk at 10px, and\n * each branch a fixed S-curve out to 60px by 28px down, straight to 78 and back by 110, so its shape does not\n * change with the row's height. The path and heading sit on the left and the line and tags in a 490px column\n * on the right, level with the path; a hairline closes each row 114px down. On a phone (14:989) the trunk is\n * at 8px, the branch reaches 40px and the words stack in one column.\n */\n :host([look='mono']) { --trunk: currentColor; }\n :host([look='mono']) ul::before { inset-inline-start: 10px; inline-size: 1.5px; border-radius: 0; }\n :host([look='mono']) li { grid-template-columns: 86px minmax(0, 1fr); padding-block: 24px 5px; }\n :host([look='mono']) .graph svg { inset-block-start: -24px; inline-size: 96px; block-size: 110px; }\n :host([look='mono']) .graph svg path { stroke-width: 1.5; }\n :host([look='mono']) .ring { position: absolute; inset-inline-start: 55px; inset-block-start: 20px; inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1px solid currentColor; background: ${t.surfaceCard}; }\n :host([look='mono']) .ring.current { background: ${token('color.accent.default', '#ffd43b')}; }\n :host([look='mono']) .text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 490px); grid-template-areas: 'path detail' 'h detail'; grid-template-rows: auto 1fr; column-gap: ${space(10)}; align-content: start; padding-block-end: 20px; border-block-end: ${t.borderThin} solid ${t.rule}; }\n :host([look='mono']) .row { display: contents; }\n :host([look='mono']) .path { grid-area: path; margin: 0 0 4.6px; font-size: 0.6875rem; line-height: 1.4; letter-spacing: ${t.trackingWide}; text-transform: uppercase; opacity: 1; color: ${t.textMuted}; }\n :host([look='mono']) .h { grid-area: h; margin: 0; font-size: 2rem; line-height: 1.1; font-weight: ${fontWeight('semibold')}; letter-spacing: -0.03em; }\n :host([look='mono']) .detail { grid-area: detail; gap: 8px; padding: 0; }\n :host([look='mono']) .body { margin: 0; font-size: 1rem; line-height: 1.45; color: ${t.textMuted}; opacity: 1; }\n :host([look='mono']) .tags { font-size: 0.6875rem; line-height: 1.4; letter-spacing: ${t.trackingWide}; opacity: 1; color: ${t.textMuted}; }\n :host([look='mono']) .end { gap: 0; margin: 0; padding-block-start: 8px; font-size: 0.6875rem; line-height: 1.4; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n /* The trunk runs on, unbroken, into its end dot, which sits on the trunk; the words line up with the rows' words. */\n :host([look='mono']) .end::before { flex: none; inline-size: 10px; block-size: 10px; margin-inline: 5.75px calc(86px - 15.75px); background: ${t.text}; }\n :host([look='mono']) .end::after { content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 10px; inline-size: 1.5px; block-size: 15.7px; background: var(--trunk); }\n :host([look='mono']) li:last-child .graph svg { block-size: 110px; }\n @container (max-width: 44rem) {\n /* Set on the list, since a container query cannot restyle the container itself. */\n :host([look='mono']) ul::before { inset-inline-start: 8px; }\n :host([look='mono']) li { grid-template-columns: 60px minmax(0, 1fr); padding-block: 18px 5px; }\n :host([look='mono']) .graph svg { inset-block-start: -18px; inline-size: 60px; block-size: 132px; }\n :host([look='mono']) .ring { inset-inline-start: 35px; inset-block-start: 38px; }\n :host([look='mono']) .text { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'path' 'h' 'detail'; padding-block-end: 12px; }\n :host([look='mono']) .h { font-size: 1.5rem; line-height: 1.15; }\n :host([look='mono']) .detail { margin-block-start: 6px; }\n :host([look='mono']) .body { font-size: 0.875rem; line-height: 1.43; }\n :host([look='mono']) .tags { display: none; }\n :host([look='mono']) .end::before { margin-inline: 3.75px calc(60px - 13.75px); }\n :host([look='mono']) .end::after { inset-inline-start: 8px; }\n }\n :host([look='mono']) .graph .narrow { display: none; }\n @container (max-width: 44rem) { :host([look='mono']) .graph .wide { display: none; } :host([look='mono']) .graph .narrow { display: inline; } }\n @media (forced-colors: active) { :host([look='mono']) .ring.current { background: Highlight; } }\n /* Branch draw: each branch opens down from the trunk, 120 ms after the one above, then its dot pops. */\n @media (prefers-reduced-motion: no-preference) {\n .graph svg { clip-path: inset(0 0 100% 0); transition: clip-path 700ms cubic-bezier(.25, 1, .5, 1) calc(var(--i, 0) * 120ms); }\n .graph circle, .ring { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform 200ms ease-out calc(var(--i, 0) * 120ms + 500ms); }\n :host([shown]) .graph svg { clip-path: inset(0); }\n :host([shown]) .graph circle, :host([shown]) .ring { transform: scale(1); }\n }\n `,\n ];\n\n private unwatch: () => void = () => undefined;\n connectedCallback(): void {\n super.connectedCallback();\n this.unwatch = revealOnView(this);\n }\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.unwatch();\n }\n\n render(): TemplateResult {\n // Each branch leaves the trunk, swings out to its dot level with the\n // heading, and returns: drawn in a 96-wide box, scaled down on phones.\n // The mono look draws a fixed curve in pixels, one for a wide row and one\n // for a phone, and its rings in HTML, so neither stretches with the row.\n const mono = this.look === 'mono';\n const branch = (colour: string) =>\n mono\n ? svg`<svg aria-hidden=\"true\" focusable=\"false\">\n <path class=\"wide\" d=\"M10.75 0C10.75 16 60.75 6 60.75 28V78C60.75 100 10.75 92 10.75 110\" fill=\"none\" stroke=${colour} />\n <path class=\"narrow\" d=\"M8.75 0C8.75 16 40.75 6 40.75 28V104C40.75 126 8.75 118 8.75 132\" fill=\"none\" stroke=${colour} />\n </svg>`\n : svg`<svg viewBox=\"0 0 96 200\" preserveAspectRatio=\"none\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"M12 0 C12 40 60 30 60 70 L60 120 C60 160 12 160 12 200\" fill=\"none\" stroke=${colour} stroke-width=\"3\" vector-effect=\"non-scaling-stroke\" />\n <circle cx=\"60\" cy=\"86\" r=\"8\" fill=${colour} />\n </svg>`;\n return html`<ul part=\"list\">${(this.items ?? []).map((item, i) => {\n const current = i === this.current;\n const words = html`${item.heading}${current && this.currentText ? html`<span class=\"sr-only\"> (${this.currentText})</span>` : nothing}`;\n return html`<li part=\"item\" style=${`--i:${i}`}>\n <div class=\"graph\">${branch(mono ? 'currentColor' : toneOf(item.tone, i))}${mono ? html`<span class=${current ? 'ring current' : 'ring'} aria-hidden=\"true\"></span>` : nothing}</div>\n <div class=\"text\">\n ${item.path ? html`<p class=\"path mono\">${item.path}</p>` : nothing}\n <div class=\"row\">\n ${heading(this.headingLevel, item.href ? html`<a href=${item.href}>${words}</a>` : words, 'h')}\n <div class=\"detail\">\n ${item.text ? html`<p class=\"body\">${item.text}</p>` : nothing}\n ${item.tags?.length ? html`<p class=\"tags mono\">${item.tags.join(' · ')}</p>` : nothing}\n </div>\n </div>\n </div>\n </li>`;\n })}</ul>\n ${this.trunk ? html`<p class=\"end mono\" part=\"trunk\">${this.trunk}</p>` : nothing}`;\n }\n}\n\n// ── Check list ───────────────────────────────────────────────────────────\n\n/** One check that passed: a figure and what it measures. */\nexport interface CheckItem {\n id?: string;\n figure: string;\n label: string;\n /** A word at the end of the row, such as \"passed\". */\n status?: string;\n}\n\n/**\n * Proof as a list of passing checks: a large figure, what it measures, and its\n * status, each row ticked. It reads its colours from the band it sits on, so\n * it works on a dark section as well as a light one.\n *\n * @category content\n * @icon list-check\n */\nexport class ImpaktCheckList extends ImpaktElement {\n static properties = {\n items: { type: Array },\n summary: { type: String },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n declare items: CheckItem[];\n /** A line above the list, such as \"All 4 checks passed\". */\n declare summary: string;\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.items = [];\n this.summary = '';\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n mono,\n words,\n css`\n :host { display: block; container-type: inline-size; }\n .summary { display: inline-flex; align-items: center; gap: ${space(2)}; margin: 0 0 ${space(6)}; padding: ${space(1)} ${space(3)}; border-radius: ${t.radiusXl}; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); }\n .summary::before { content: ''; inline-size: 8px; block-size: 8px; border-radius: 50%; background: ${t.success}; }\n /* The rows share one grid, so the figure column fits the widest figure and every row lines up. */\n ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 32px max-content minmax(0, 1fr) auto; column-gap: ${space(6)}; }\n li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding-block: ${space(5)}; border-block-end: 1px solid color-mix(in srgb, currentColor 18%, transparent); }\n /* Checks run: each tick pops in, 150 ms after the one above. */\n @media (prefers-reduced-motion: no-preference) {\n .tick { transform: scale(0); transition: transform 600ms cubic-bezier(.34, 1.56, .64, 1) calc(var(--i, 0) * 150ms); }\n :host([shown]) .tick { transform: scale(1); }\n }\n .sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n /* A passed check is a filled disc with a tick cut out of it, as a CI run shows one. */\n .tick { display: inline-flex; align-items: center; justify-content: center; inline-size: 26px; block-size: 26px; border-radius: 50%; background: ${t.success}; color: var(--impakt-color-status-success-on, #fff); }\n .figure { margin: 0; font-family: ${t.fontHeading}; font-weight: ${fontWeight('bold')}; font-size: ${fontSize('5xl')}; line-height: 1; letter-spacing: ${t.trackingTight}; white-space: nowrap; }\n .label { margin: 0; ${type('xl')} }\n .status { margin: 0; opacity: 0.72; }\n @container (max-width: 40rem) {\n ul { grid-template-columns: 28px minmax(0, 1fr); }\n li { row-gap: ${space(1)}; }\n .label, .status { grid-column: 2; }\n .figure { font-size: ${fontSize('4xl')}; }\n }\n `,\n ];\n\n private unwatch: () => void = () => undefined;\n /** How far each figure has counted up, from 0 to 1, while the checks run. */\n private counted: number[] | null = null;\n connectedCallback(): void {\n super.connectedCallback();\n this.unwatch = revealOnView(this, () => this.run());\n }\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.unwatch();\n }\n\n /** Checks run: each figure counts up over 1200 ms, 150 ms after the one above. */\n private run(): void {\n if (reduced()) return;\n const items = this.items ?? [];\n const start = performance.now();\n const step = (now: number) => {\n this.counted = items.map((_, i) => Math.min(1, Math.max(0, (now - start - i * 150) / 1200)));\n this.requestUpdate();\n if (this.counted.some((k) => k < 1)) requestAnimationFrame(step);\n else this.counted = null;\n };\n requestAnimationFrame(step);\n }\n\n render(): TemplateResult {\n // While counting, the drawn figure is hidden from screen readers and the final one is read instead.\n const shownFigure = (figure: string, i: number) => {\n const k = this.counted?.[i];\n const m = /^(\\d+)(.*)$/.exec(figure);\n if (k === undefined || k >= 1 || !m) return html`${figure}`;\n const eased = 1 - Math.pow(1 - k, 3);\n return html`<span aria-hidden=\"true\">${Math.round(Number(m[1]) * eased)}${m[2]}</span><span class=\"sr-only\">${figure}</span>`;\n };\n return html`${this.summary ? html`<p class=\"summary mono\" part=\"summary\">${this.summary}</p>` : nothing}\n <ul part=\"list\">${(this.items ?? []).map(\n (item, i) => html`<li part=\"item\" style=${`--i:${i}`}>\n <span class=\"tick\" aria-hidden=\"true\">${iconSvg('check', '16px')}</span>\n <p class=\"figure\">${shownFigure(item.figure, i)}</p>\n <p class=\"label\">${item.label}</p>\n ${item.status ? html`<p class=\"status mono\">${item.status}</p>` : html`<span></span>`}\n </li>`,\n )}</ul>`;\n }\n}\n\n// ── Branch timeline ──────────────────────────────────────────────────────\n\n/** One stretch of work, drawn as a branch off the main line. */\nexport interface TimelineLane {\n id?: string;\n label: string;\n /** Where it starts and ends, in the timeline's units (weeks, say). */\n from: number;\n to: number;\n tone?: Tone;\n}\n\n/** A moment on a lane, such as a demo. */\nexport interface TimelineMark {\n id?: string;\n label: string;\n at: number;\n}\n\n/**\n * A project drawn as a commit graph: a main line along a scale of weeks, each\n * phase branching off it and merging back, moments marked on the way, and a\n * release tag where it ships.\n *\n * It is a picture, so it carries a text alternative that says the same in\n * words: each phase and when it runs. The steps that explain the phases go\n * beside it as their own block.\n *\n * @category content\n * @icon git-branch\n */\nexport class ImpaktBranchTimeline extends ImpaktElement {\n static properties = {\n lanes: { type: Array },\n marks: { type: Array },\n span: { type: Number },\n unit: { type: String },\n every: { type: Number },\n release: { type: String },\n releaseAt: { type: Number, attribute: 'release-at' },\n label: { type: String },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n declare lanes: TimelineLane[];\n declare marks: TimelineMark[];\n /** How long the whole timeline is, in its units. */\n declare span: number;\n /** The unit's short name on the scale, such as \"wk\". */\n declare unit: string;\n /** How often the scale is labelled. */\n declare every: number;\n /** The tag where it ships, such as \"v1.0 · launch\". */\n declare release: string;\n declare releaseAt: number;\n /** What the picture shows, for a screen reader. */\n declare label: string;\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.lanes = [];\n this.marks = [];\n this.span = 20;\n this.unit = '';\n this.every = 2;\n this.release = '';\n this.releaseAt = 0;\n this.label = '';\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n spaceAround,\n mono,\n words,\n css`\n :host { display: block; }\n /* On a narrow screen the graph scrolls sideways, so the scroller takes focus and the arrow keys move it (2.1.1). */\n figure { margin: 0; overflow-x: auto; border-radius: ${t.radiusSm}; }\n svg { display: block; inline-size: 100%; min-inline-size: 640px; block-size: auto; overflow: visible; }\n text { font-family: ${t.fontMono}; font-size: 12px; fill: currentColor; }\n .faint { opacity: 0.5; }\n /* A lane's label keeps a band of the page colour around it, so a line crossing it stays legible. */\n .halo { paint-order: stroke; stroke: var(--impakt-color-surface-card, #fff); stroke-width: 5px; stroke-linejoin: round; }\n /* Graph draw: the graph opens left to right, so each demo appears as the line reaches it. */\n @media (prefers-reduced-motion: no-preference) {\n svg { clip-path: inset(0 100% 0 0); transition: clip-path 1400ms cubic-bezier(.25, 1, .5, 1); }\n :host([shown]) svg { clip-path: inset(0 -40px 0 0); }\n }\n `,\n ];\n\n private unwatch: () => void = () => undefined;\n connectedCallback(): void {\n super.connectedCallback();\n this.unwatch = revealOnView(this);\n }\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.unwatch();\n }\n\n render(): TemplateResult {\n const W = 1200;\n const left = 24;\n const right = W - 60;\n const span = this.span > 0 ? this.span : 20;\n const x = (v: number) => left + (Math.min(Math.max(v, 0), span) / span) * (right - left);\n const lanes = this.lanes ?? [];\n const rowH = 52;\n const H = 40 + (lanes.length + 1) * rowH + 40;\n const mainY = 40;\n const laneY = (i: number) => mainY + (i + 1) * rowH;\n const ticks: number[] = [];\n for (let v = 0; v <= span; v += Math.max(1, this.every || 2)) ticks.push(v);\n const laneOf = (at: number) => lanes.findIndex((l) => at >= l.from && at <= l.to);\n // A lane's label goes under it, out of the way of the curves, unless its marks are labelled there.\n const marked = (i: number) => (this.marks ?? []).some((m) => laneOf(m.at) === i);\n const unit = this.unit || say('wk');\n const label = this.label || say('Project timeline');\n const described = lanes.map((l) => `${l.label}: ${say('{unit} {from} to {to}', { unit, from: l.from, to: l.to })}`).join('; ');\n return html`<figure part=\"figure\" tabindex=\"0\">\n <svg viewBox=\"0 0 ${W} ${H}\" role=\"img\" aria-label=${`${label}. ${described}${this.release ? `. ${say('{name} at {unit} {at}', { name: this.release, unit, at: this.releaseAt })}` : ''}`}>\n <line x1=${left} y1=${mainY} x2=${right + 40} y2=${mainY} stroke=\"currentColor\" stroke-width=\"3\" stroke-linecap=\"round\" />\n <path d=\"M${right + 28} ${mainY - 7} L${right + 40} ${mainY} L${right + 28} ${mainY + 7}\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3\" />\n ${lanes.map((l, i) => {\n const c = toneOf(l.tone, i);\n const y = laneY(i);\n const a = x(l.from);\n const b = x(l.to);\n const bend = Math.min(36, (b - a) / 3);\n return svg`<g>\n <path d=\"M${a} ${mainY} C${a} ${(mainY + y) / 2} ${a + bend} ${y} ${a + bend * 1.6} ${y} L${b - bend * 1.6} ${y} C${b - bend} ${y} ${b} ${(mainY + y) / 2} ${b} ${mainY}\" fill=\"none\" stroke=${c} stroke-width=\"3\" />\n <circle cx=${a} cy=${mainY} r=\"7\" fill=${c} />\n <text x=${a + bend * 1.6} y=${marked(i) ? y - 10 : y + 20} class=\"halo\" style=${`fill:${c}`}>${l.label}</text>\n </g>`;\n })}\n ${(this.marks ?? []).map((m) => {\n const i = laneOf(m.at);\n const y = i >= 0 ? laneY(i) : mainY;\n const c = i >= 0 ? toneOf(lanes[i]!.tone, i) : 'currentColor';\n return svg`<g><circle cx=${x(m.at)} cy=${y} r=\"6\" fill=\"var(--impakt-color-surface-card, #fff)\" stroke=${c} stroke-width=\"3\" /><text x=${x(m.at)} y=${y + 22} text-anchor=\"middle\" class=\"faint\">${m.label}</text></g>`;\n })}\n ${\n this.release\n ? svg`<g>\n <circle cx=${x(this.releaseAt)} cy=${mainY} r=\"10\" fill=${TONE.success} />\n <rect x=${x(this.releaseAt) - 8} y=${mainY - 36} rx=\"4\" width=${this.release.length * 7.6 + 16} height=\"22\" fill=${TONE.success} />\n <text x=${x(this.releaseAt)} y=${mainY - 21} style=\"fill:var(--impakt-color-surface-card, #fff)\">${this.release}</text>\n </g>`\n : nothing\n }\n ${ticks.map((v) => svg`<text x=${x(v)} y=${H - 10} text-anchor=\"middle\" class=\"faint\">${unit} ${v}</text>`)}\n </svg>\n </figure>`;\n }\n}\n\ncustomElements.define('impakt-release-card', ImpaktReleaseCard);\ncustomElements.define('impakt-release-list', ImpaktReleaseList);\ncustomElements.define('impakt-branch-list', ImpaktBranchList);\ncustomElements.define('impakt-check-list', ImpaktCheckList);\ncustomElements.define('impakt-branch-timeline', ImpaktBranchTimeline);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-release-card': ImpaktReleaseCard;\n 'impakt-release-list': ImpaktReleaseList;\n 'impakt-branch-list': ImpaktBranchList;\n 'impakt-check-list': ImpaktCheckList;\n 'impakt-branch-timeline': ImpaktBranchTimeline;\n }\n}\n"],"mappings":";AAWA,SAAS,KAAK,MAAM,SAAS,WAAgC;AAC7D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAWP,SAAS,aAAa,IAAiB,QAAiC;AACtE,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B;","names":["heading","mono","words"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/studio.ts"],"sourcesContent":["/**\n * The blocks a studio's own site is built from: the numbered list of work, a\n * row of figures, and the questions at the foot of a page.\n */\nimport { css, html, nothing, type TemplateResult } from 'lit';\nimport {\n ImpaktElement,\n focusRing,\n fontSize,\n fontWeight,\n lineHeight,\n lockScroll,\n space,\n spaceAround,\n t,\n token,\n unlockScroll,\n type NavLink,\n} from '@atomic-ui/ui';\n\n/** One project in a list of work. */\nexport interface WorkItem {\n id?: string;\n /** The project's name, set large. */\n name: string;\n /** What it is and who it is for, such as \"Web platform · Automotive\". */\n meta?: string;\n /** Where the row goes when it is pressed. Leave empty for a row that goes nowhere: it has no arrow and does not turn to ink. */\n href?: string;\n /** A sentence about it, in its own column, such as \"Audits a website against WCAG 2.2 and writes the fixes.\" */\n text?: string;\n /** A short status, set in capitals, such as \"Available now\" or \"Coming soon\". The word carries the status. */\n badge?: string;\n /** A price line under the badge, such as \"From £59 a month\". */\n price?: string;\n /** Keep the row in ink, with the badge and the arrow in the accent: the one item the page wants seen first. */\n featured?: boolean;\n /** A picture shown, tilted, beside the pointer while the row is pointed at. It is decoration and is not read. */\n preview?: string;\n /** A small caption on the preview card, such as \"Harbour · Cover · 4:3\". */\n previewLabel?: string;\n}\n\n/** The arrow at the end of a row that goes somewhere. Drawn, so no font has to hold the glyph. */\nconst arrow = html`<svg viewBox=\"0 0 22 22\" width=\"22\" height=\"22\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"M5 17 17 5M8 5h9v9\" />\n</svg>`;\n\n/**\n * A numbered list of projects, each name set large: the work on a studio's\n * home page, or the index on its work page.\n *\n * **Each row is one link.** The link sits on the project's name, which is a\n * heading, and is stretched over the row, so the whole row can be pressed\n * while a screen reader meets one link with one name (2.4.4, 2.5.8). The\n * number and the arrow are decoration and are hidden from it; the list itself\n * says how many projects there are and which one this is (1.3.1).\n *\n * **Pointing at a row and focusing it look the same.** The row turns to the\n * text colour with the card colour on it, a pair every brand's tokens already\n * hold at 4.5:1, so the state never depends on a colour of its own (1.4.3,\n * 1.4.11). The focus ring is still drawn over it (2.4.7).\n *\n * The names shrink with the block's own width, not the window's, so the list\n * reads the same in a narrow column as on a phone (1.4.10).\n *\n * **A row can say more.** `text` adds a description column, `badge` a status\n * word in capitals and `price` a line under it, so the same list sets out a\n * studio's work or a shop of tools. A `featured` row stays in ink with its\n * badge and arrow in the accent. `columns` draws a line of column names above\n * the rows, such as \"No.\", \"Project\" and \"Type · Sector\"; it is decoration,\n * since each row's own words already say what they are.\n *\n * **A row can show a picture as it is pointed at.** Give it `preview` and a\n * card with the picture follows the pointer, tilted. It is shown only to a\n * mouse, never on touch or with reduced motion asked for, and it is hidden\n * from a screen reader: the row's name already says what it is.\n *\n * @category content\n * @icon list\n */\nexport class ImpaktWorkList extends ImpaktElement {\n static properties = {\n items: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n start: { type: Number },\n label: { type: String },\n columns: { type: Array },\n preview: { state: true },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The projects, in order. */\n declare items: WorkItem[];\n /** The heading level of each project's name. It depends on what is above the list on the page. */\n declare headingLevel: number;\n /** The number the first project is given. */\n declare start: number;\n /** A name for the list, so a screen reader can tell it from other lists on the page. Leave empty for none. */\n declare label: string;\n /**\n * Column names drawn above the rows, in monospace capitals: the first over\n * the numbers, the second over the names, and the rest, joined with \" · \",\n * over the last column, such as `[\"No.\", \"Project\", \"Type · Sector\"]`.\n * Leave empty for none.\n */\n declare columns: string[];\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n /** The preview being shown, with where the pointer is. */\n declare private preview: { src: string; label: string; x: number; y: number } | null;\n\n constructor() {\n super();\n this.items = [];\n this.headingLevel = 3;\n this.start = 1;\n this.label = '';\n this.columns = [];\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n this.preview = null;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n spaceAround,\n css`\n :host { display: block; position: relative; container: impakt-work-list / inline-size; --impakt-work-accent: ${token('color.accent.default', '#ffd43b')}; --impakt-work-on-accent: ${token('color.accent.on', '#111111')}; }\n ol { list-style: none; margin: 0; padding: 0; border-block-start: ${t.borderThin} solid ${t.text}; }\n .columns + ol { border-block-start: 0; }\n /* The Project row component (8:339): 22px above and below a 72px name, the number in a 54px column, 24px apart. */\n li, .columns { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 22px; align-items: center; column-gap: ${space(6)}; padding: 22px ${space(8)}; }\n .texts li, .texts.columns { grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr) auto 22px; }\n li { position: relative; border-block-end: ${t.borderThin} solid ${t.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }\n .columns { padding-block: ${space(3)}; border-block-end: ${t.borderThin} solid ${t.text}; font-family: ${t.fontMono}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n .columns .last { grid-column: -3; text-align: end; }\n .number { font-family: ${t.fontMono}; font-size: 0.8125rem; line-height: 1.5; font-variant-numeric: tabular-nums; color: ${t.textMuted}; }\n /* Display Row: 72px on a 1080px list and 40px on a 350px phone list (8:329, 14:947). */\n .name { font-family: ${t.fontHeading}; font-size: clamp(2rem, 1.541rem + 4.384cqi, 4.5rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.05em; color: ${t.text}; overflow-wrap: anywhere; }\n .texts .name { font-size: clamp(2rem, 5cqi, 3.5rem); }\n .name a { color: inherit; text-decoration: none; }\n /* The link is stretched over the row, so the row is one target. */\n .name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }\n .name a:focus-visible { outline: none; }\n .name a:focus-visible::after { box-shadow: ${t.focusShadow}; }\n .text { margin: 0; font-size: ${fontSize('md')}; line-height: ${lineHeight('normal')}; color: ${t.textMuted}; }\n .side { display: flex; flex-direction: column; align-items: flex-end; gap: ${space(2)}; text-align: end; }\n .meta, .price { font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n /* The meta in G2 Mono S: 11px medium capitals at 0.06em (8:331). */\n .meta { font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; }\n .price { font-size: 0.6875rem; }\n /* Marketing badges are monospace capitals at 11px. A row that goes somewhere has a solid one; one that does not yet has an outline. */\n .badge { display: inline-block; padding: ${space(1)} ${space(2.5)}; font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: ${t.trackingWide}; text-transform: uppercase; white-space: nowrap; color: ${t.surfaceCard}; background: ${t.text}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusSm}; }\n li:not(:has(a)) .badge { color: ${t.text}; background: transparent; }\n .arrow { display: flex; color: ${t.text}; }\n /* Pointed at, focused or featured, the row turns to ink. The card colour on the text colour is a pair every brand already holds at 4.5:1. */\n li:has(a):hover, li:has(a:focus-visible), li.featured { background: ${t.text}; }\n li:has(a):hover .name, li:has(a:focus-visible) .name, li.featured .name { color: ${t.surfaceCard}; }\n li:has(a):hover :is(.number, .meta, .text, .price), li:has(a:focus-visible) :is(.number, .meta, .text, .price), li.featured :is(.number, .meta, .text, .price) { color: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); }\n li:has(a):hover .badge, li:has(a:focus-visible) .badge { color: ${t.text}; background: ${t.surfaceCard}; border-color: ${t.surfaceCard}; }\n li:has(a):hover .arrow, li:has(a:focus-visible) .arrow, li.featured .arrow { color: var(--impakt-work-accent); }\n li.featured .badge { color: var(--impakt-work-on-accent); background: var(--impakt-work-accent); border-color: var(--impakt-work-accent); }\n /* The preview card follows the pointer. Only its transform changes, so it costs no layout. */\n .preview { position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 2; inline-size: 15rem; box-sizing: border-box; padding: ${space(2)}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; box-shadow: 0 16px 32px rgb(0 0 0 / 0.2); pointer-events: none; transform: translate(var(--x), var(--y)) translate(-50%, -50%) rotate(-3deg); }\n .preview img { display: block; inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; }\n .preview span { display: block; padding-block-end: ${space(2)}; font-family: ${t.fontMono}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n /* On a phone (14:944): 18px above and below, 14px at the sides, the number, the name with its meta 8px under it, and an 18px arrow, 12px apart. */\n @container impakt-work-list (max-width: 40rem) {\n li, .texts li { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: ${space(3)}; padding: 18px 14px; }\n .text { grid-column: 2 / -1; grid-row: 2; margin-block-start: ${space(2)}; }\n .side { grid-column: 2 / -1; grid-row: 3; align-items: flex-start; text-align: start; margin-block-start: ${space(2)}; }\n li:not(:has(.text)) .side { grid-row: 2; }\n .arrow { grid-column: 3; grid-row: 1; }\n li:not(:has(.text)) :is(.number, .arrow) { grid-row: 1 / span 2; }\n .arrow svg { inline-size: 18px; block-size: 18px; }\n .columns { display: none; }\n }\n @media (prefers-reduced-motion: reduce) { li { transition: none; } .preview { display: none; } }\n @media (forced-colors: active) {\n li:has(a):hover, li:has(a:focus-visible), li.featured { background: Canvas; outline: 2px solid Highlight; outline-offset: -2px; }\n li:has(a):hover :is(.name, .number, .meta, .arrow, .text, .price), li:has(a:focus-visible) :is(.name, .number, .meta, .arrow, .text, .price), li.featured :is(.name, .number, .meta, .arrow, .text, .price) { color: CanvasText; }\n .badge, li.featured .badge { color: CanvasText; background: Canvas; border-color: CanvasText; }\n }\n `,\n ];\n\n /** Show a row's preview beside a mouse pointer. Touch and reduced motion get none. */\n private point(event: PointerEvent, item: WorkItem): void {\n if (!item.preview || event.pointerType !== 'mouse' || window.matchMedia?.('(prefers-reduced-motion: reduce)').matches) {\n if (this.preview) this.preview = null;\n return;\n }\n const box = this.getBoundingClientRect();\n this.preview = { src: item.preview, label: item.previewLabel ?? '', x: event.clientX - box.left, y: event.clientY - box.top };\n }\n\n private columnRow(texts: boolean): TemplateResult | typeof nothing {\n const columns = this.columns ?? [];\n if (!columns.length) return nothing;\n const [number, name, ...rest] = columns;\n // Decoration: each row's own words already say what they are.\n return html`<div class=${texts ? 'columns texts' : 'columns'} part=\"columns\" aria-hidden=\"true\">\n <span>${number ?? ''}</span><span>${name ?? ''}</span>${rest.length ? html`<span class=\"last\">${rest.join(' · ')}</span>` : nothing}\n </div>`;\n }\n\n render(): TemplateResult {\n const items = this.items ?? [];\n const texts = items.some((item) => !!item.text);\n const preview = this.preview;\n // role=\"list\" is set by hand: a list with its markers removed is not announced as a list by every screen reader.\n return html`${this.columnRow(texts)}<ol role=\"list\" part=\"list\" class=${texts ? 'texts' : ''} aria-label=${this.label || nothing} @pointerleave=${() => (this.preview = null)}>\n ${items.map((item, index) => {\n const number = String(this.start + index).padStart(2, '0');\n const side = item.badge || item.price || item.meta;\n return html`<li part=\"row\" class=${item.featured ? 'featured' : ''} @pointermove=${(event: PointerEvent) => this.point(event, item)}>\n <span class=\"number\" aria-hidden=\"true\">${number}</span>\n <div class=\"name\" part=\"name\" role=\"heading\" aria-level=${this.headingLevel}>\n ${item.href ? html`<a href=${item.href} part=\"link\">${item.name}</a>` : item.name}\n </div>\n ${texts ? html`<p class=\"text\" part=\"text\">${item.text ?? ''}</p>` : nothing}\n ${\n side\n ? html`<span class=\"side\">\n ${item.badge ? html`<span class=\"badge\" part=\"badge\">${item.badge}</span>` : nothing}\n ${item.price ? html`<span class=\"price\" part=\"price\">${item.price}</span>` : nothing}\n ${item.meta ? html`<span class=\"meta\" part=\"meta\">${item.meta}</span>` : nothing}\n </span>`\n : html`<span></span>`\n }\n ${item.href ? html`<span class=\"arrow\">${arrow}</span>` : html`<span></span>`}\n </li>`;\n })}\n </ol>${\n preview\n ? html`<div class=\"preview\" part=\"preview\" aria-hidden=\"true\" style=${`--x:${preview.x}px;--y:${preview.y}px`}>\n ${preview.label ? html`<span>${preview.label}</span>` : nothing}<img src=${preview.src} alt=\"\" />\n </div>`\n : nothing\n }`;\n }\n}\n\n/** One figure in a row of them. */\nexport interface StatRowItem {\n /** The number, written as it should appear, such as \"161 ms\" or \"4\". */\n figure: string;\n /** What the number counts. */\n label: string;\n /** A line more, if the label needs it. */\n note?: string;\n}\n\n/**\n * A row of figures under a rule, each with what it counts: \"4 live products\",\n * \"161 ms response time\".\n *\n * The figures are a list, so a screen reader says how many there are, and each\n * is read as one phrase, \"161 ms response time\", not a bare number followed\n * some way off by its label (1.3.1). The row wraps by its own width: four\n * across, then two (a phone 350px wide shows two by two), then one, with\n * nothing to scroll sideways at 320px (1.4.10).\n *\n * @category content\n * @icon stat\n */\nexport class ImpaktStatRow extends ImpaktElement {\n static properties = {\n items: { type: Array },\n label: { type: String },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The figures, in order. Four fit a row on a wide page. */\n declare items: StatRowItem[];\n /** A name for the row, such as \"Live products\", read before the figures. Leave empty for none. */\n declare label: string;\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.items = [];\n this.label = '';\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: impakt-stat-row / inline-size; }\n /* The Stat component (8:324): a rule, 20px, the 52px figure, 8px, and the label in G2 Body S, 14px at 1.4; four 252px stats 24px apart. */\n ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: ${space(6)}; }\n li { border-block-start: ${t.borderThin} solid ${t.rule}; padding-block-start: ${space(5)}; }\n p { margin: 0; display: flex; flex-direction: column; gap: ${space(2)}; }\n .value { font-family: ${t.fontHeading}; font-size: clamp(2.5rem, 6cqi, 3.25rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; }\n .label { font-size: ${fontSize('sm')}; line-height: 1.4; color: ${t.textMuted}; }\n /* On a phone (14:783): two across, 20px apart with 16px between the rows; 14px over the 40px figure, 6px under it and 8px under the label. */\n @container impakt-stat-row (max-width: 40rem) {\n ul { gap: ${space(4)} ${space(5)}; }\n li { padding-block: 14px ${space(2)}; }\n p { gap: 6px; }\n }\n /* The note is meta: monospace capitals at 11px. */\n .note { font-family: ${t.fontMono}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n `,\n ];\n\n render(): TemplateResult {\n return html`<ul role=\"list\" part=\"list\" aria-label=${this.label || nothing}>\n ${this.items.map(\n (item) =>\n html`<li part=\"stat\">\n <p><span class=\"value\" part=\"value\">${item.figure}</span> <span class=\"label\" part=\"label\">${item.label}</span>${item.note ? html` <span class=\"note\">${item.note}</span>` : nothing}</p>\n </li>`,\n )}\n </ul>`;\n }\n}\n\n/** One question and its answer. */\nexport interface FaqItem {\n id: string;\n /** The question. */\n heading: string;\n /** The answer, as plain text. An answer with links or a list is slotted as `panel-<id>` instead. */\n body: string;\n}\n\n/**\n * The questions at the foot of a page, under a heading: a title, a line of\n * introduction, and the questions as sections that open.\n *\n * It is `impakt-accordion` with the heading a page always writes above it, so\n * the levels cannot drift: the questions are always one level below the\n * block's own heading (1.3.1). With a heading, the block is a region named by\n * it, so a screen reader can jump straight to the questions (2.4.1).\n *\n * An answer that is more than words is slotted as `panel-<id>`, exactly as\n * on the accordion, and is passed through to it.\n *\n * @category content\n * @icon accordion\n */\nexport class ImpaktFaq extends ImpaktElement {\n static properties = {\n eyebrow: { type: String },\n heading: { type: String },\n lead: { type: String },\n items: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n open: { type: Array },\n multiple: { type: Boolean },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The small line above the heading, such as \"Questions\". */\n declare eyebrow: string;\n /** The block's heading, such as \"Questions founders ask us first.\" */\n declare heading: string;\n /** A line under the heading. */\n declare lead: string;\n /** The questions, in order. */\n declare items: FaqItem[];\n /** The level of the block's heading. The questions are one level below it. */\n declare headingLevel: number;\n /** The ids of the questions that start open. */\n declare open: string[];\n /** Let more than one answer be open at once. */\n declare multiple: 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.eyebrow = '';\n this.heading = '';\n this.lead = '';\n this.items = [];\n this.headingLevel = 2;\n this.open = [];\n this.multiple = true;\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: impakt-faq / inline-size; }\n .head { display: flex; flex-direction: column; gap: ${space(4)}; margin-block-end: ${space(10)}; max-inline-size: 44rem; }\n .eyebrow { margin: 0; font-family: ${t.fontEyebrow}; font-size: ${fontSize('sm')}; color: var(--impakt-eyebrow, ${t.textMuted}); }\n .heading { font-family: ${t.fontHeading}; font-size: clamp(2rem, 6cqi, 3.25rem); font-weight: ${fontWeight('semibold')}; line-height: 1.04; letter-spacing: -0.04em; color: ${t.textHeading}; }\n .lead { margin: 0; font-size: ${fontSize('md')}; line-height: ${lineHeight('normal')}; color: ${t.textMuted}; }\n /* The questions sit between 1px ink rules, the first one included, each a row about 92px tall set at heading size S. */\n impakt-accordion { border-block-start: ${t.borderThin} solid ${t.text}; }\n impakt-accordion::part(item) { border-block-end: ${t.borderThin} solid ${t.text}; }\n impakt-accordion::part(header) { min-block-size: 5.75rem; padding-block: ${space(5)}; font-family: ${t.fontHeading}; font-size: clamp(1.25rem, 3.2cqi, 1.5rem); font-weight: ${fontWeight('semibold')}; line-height: 1.2; letter-spacing: -0.02em; }\n impakt-accordion::part(panel) { max-inline-size: 44rem; color: ${t.textMuted}; line-height: ${lineHeight('normal')}; }\n @media (forced-colors: active) { impakt-accordion, impakt-accordion::part(item) { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const headingId = this.id_('heading');\n const level = Math.min(Math.max(this.headingLevel, 1), 5);\n const head =\n this.eyebrow || this.heading || this.lead\n ? html`<div class=\"head\" part=\"head\">\n ${this.eyebrow ? html`<p class=\"eyebrow\" part=\"eyebrow\">${this.eyebrow}</p>` : nothing}\n ${this.heading ? html`<div id=${headingId} class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>${this.heading}</div>` : nothing}\n ${this.lead ? html`<p class=\"lead\" part=\"lead\">${this.lead}</p>` : nothing}\n </div>`\n : nothing;\n // Each answer's slot is passed through to the accordion, with the plain answer as what shows when nothing is slotted.\n const accordion = html`<impakt-accordion part=\"questions\" marker=\"plus\" .items=${this.items} .headingLevel=${level + 1} .open=${this.open} .multiple=${this.multiple}>\n ${this.items.map((item) => html`<slot name=${`panel-${item.id}`} slot=${`panel-${item.id}`}>${item.body}</slot>`)}\n </impakt-accordion>`;\n return this.heading ? html`<section aria-labelledby=${headingId}>${head}${accordion}</section>` : html`<div>${head}${accordion}</div>`;\n }\n}\n\n/**\n * A site's menu as a whole screen: a few large links, for a phone or for a\n * site with only a handful of pages.\n *\n * **It is a native `<dialog>` opened with `showModal()`**, as the drawer is, so\n * the focus trap, Escape, the inert page behind it and the return of focus to\n * the button that opened it all come from the browser (2.1.2, 2.4.3). The page\n * behind does not scroll while it is open. The button that opens it is the\n * page's own; set `open` from it and listen for `impakt-close`.\n *\n * **The links are a navigation landmark with a name**, and the page the reader\n * is on carries `aria-current=\"page\"` and is marked with a square, so the mark\n * does not depend on colour (1.4.1). Set `current-text`, such as \"Current\",\n * and the words \"Current · 01\" stand in its number instead of the square. A\n * brand whose ink is dark may also colour it, by setting\n * `--impakt-site-menu-current`.\n *\n * The menu is drawn in ink: the text colour as the background with the card\n * colour on it, a pair every brand already holds at 4.5:1. A component slotted\n * at its foot takes the same colours through its tokens; a plain link there\n * keeps the page's own link colour, so slot `impakt-link` instead.\n *\n * @category navigation\n * @icon menu\n * @slot footer - Under the links: a call to action, an email address.\n * @fires {CustomEvent<null>} impakt-close - When the menu is closed, by its button, by Escape or by following a link.\n */\nexport class ImpaktSiteMenu extends ImpaktElement {\n static properties = {\n open: { type: Boolean, reflect: true },\n links: { type: Array },\n current: { type: String },\n brand: { type: String },\n mark: { type: String },\n home: { type: String },\n label: { type: String },\n closeText: { type: String, attribute: 'close-text' },\n currentText: { type: String, attribute: 'current-text' },\n };\n /** Whether the menu is showing. */\n declare open: boolean;\n /** The pages, in order. */\n declare links: NavLink[];\n /** The `href` of the page the reader is on, so its link is marked. */\n declare current: string;\n /** The site's name, at the top. */\n declare brand: string;\n /** A letter in a small square before the name, such as \"i\", as the site header's canvas look draws it. */\n declare mark: string;\n /** Where the site's name goes. */\n declare home: string;\n /** The menu's name, read when it opens and as the name of its links. */\n declare label: string;\n /** The words on the button that closes it. */\n declare closeText: string;\n /**\n * A word shown with the current page's number, such as \"Current\", so it\n * reads \"Current · 01\". It then marks the page in place of the square.\n * Leave empty for the square.\n */\n declare currentText: string;\n\n constructor() {\n super();\n this.open = false;\n this.links = [];\n this.current = '';\n this.brand = '';\n this.mark = '';\n this.home = '/';\n this.label = 'Menu';\n this.closeText = 'Close';\n this.currentText = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n /* The ink colours are taken on the host, because the dialog repaints the text colour for what is inside it. */\n :host { --impakt-menu: ${t.text}; --impakt-menu-on: ${t.surfaceCard}; --impakt-menu-muted: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); --impakt-menu-rule: color-mix(in srgb, ${t.surfaceCard} 18%, ${t.text}); }\n dialog { box-sizing: border-box; display: none; flex-direction: column; inline-size: 100vw; max-inline-size: 100vw; block-size: 100dvh; max-block-size: 100dvh; margin: 0; padding: 0; border: 0; overflow: auto; background: var(--impakt-menu); color: var(--impakt-menu-on); }\n dialog[open] { display: flex; }\n dialog::backdrop { background: var(--impakt-menu); }\n .bar { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding: ${space(2)} ${space(4)}; border-block-end: ${t.borderThin} solid var(--impakt-menu-rule); }\n .brand { color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: ${fontSize('md')}; font-weight: ${fontWeight('semibold')}; border-radius: ${t.radiusSm}; }\n .brand.marked { display: inline-flex; align-items: center; gap: ${space(3)}; min-block-size: 44px; font-weight: ${fontWeight('medium')}; }\n .mark { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; flex: none; background: var(--impakt-menu-on); color: var(--impakt-menu); font-size: ${fontSize('sm')}; }\n .close { display: inline-flex; align-items: center; gap: ${space(2)}; min-block-size: 44px; padding: 0 ${space(4)}; font: inherit; font-size: ${fontSize('sm')}; font-weight: ${fontWeight('medium')}; color: var(--impakt-menu); background: var(--impakt-menu-on); border: 0; border-radius: ${t.radius}; cursor: pointer; }\n nav { flex: 1; padding: ${space(6)} ${space(5)} 0; }\n ol { list-style: none; margin: 0; padding: 0; }\n li { border-block-end: ${t.borderThin} solid var(--impakt-menu-rule); }\n li a { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding-block: ${space(4)}; color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 12vw, 3.5rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.05em; }\n li a:hover .words { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }\n .number { font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; font-weight: ${fontWeight('regular')}; letter-spacing: 0; color: var(--impakt-menu-muted); }\n /*\n * The current page is marked with a square. Its colour stays the menu's own text colour unless a brand sets\n * --impakt-site-menu-current, because an accent is only readable on ink when the brand's ink is dark (1.4.3).\n */\n a[aria-current] { color: var(--impakt-site-menu-current, var(--impakt-menu-on)); }\n a[aria-current] .number { color: var(--impakt-site-menu-current, var(--impakt-menu-on)); }\n a[aria-current]:not(.worded) .words::before { content: ''; display: inline-block; inline-size: 0.28em; block-size: 0.28em; margin-inline-end: 0.22em; vertical-align: 0.18em; background: currentColor; }\n .foot { display: flex; flex-direction: column; gap: ${space(4)}; padding: ${space(8)} ${space(5)} calc(${space(8)} + env(safe-area-inset-bottom)); }\n .foot[hidden] { display: none; }\n /* What is slotted at the foot is read on ink too. */\n ::slotted(*) { --impakt-color-text-default: var(--impakt-menu-on); --impakt-color-text-heading: var(--impakt-menu-on); --impakt-color-text-muted: var(--impakt-menu-muted); --impakt-color-text-link: var(--impakt-menu-on); --impakt-color-text-link-hover: var(--impakt-menu-on); color: var(--impakt-menu-on); }\n @media (forced-colors: active) { dialog { border: 1px solid CanvasText; } .close { border: 1px solid ButtonText; } }\n `,\n ];\n\n private hasFooter = false;\n\n private get dialog(): HTMLDialogElement | null {\n return this.renderRoot.querySelector('dialog');\n }\n\n updated(changed: Map<string, unknown>): void {\n if (!changed.has('open')) return;\n const dialog = this.dialog;\n if (!dialog) return;\n if (this.open) {\n if (typeof dialog.showModal === 'function') dialog.showModal();\n else dialog.setAttribute('open', '');\n lockScroll(this);\n } else {\n if (typeof dialog.close === 'function' && dialog.open) dialog.close();\n else dialog.removeAttribute('open');\n unlockScroll(this);\n }\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n unlockScroll(this);\n }\n\n private close(): void {\n if (!this.open) return;\n this.open = false;\n this.dispatchEvent(new CustomEvent('impakt-close', { bubbles: true, composed: true }));\n }\n\n private footerChanged(event: Event): void {\n this.hasFooter = (event.target as HTMLSlotElement).assignedNodes().length > 0;\n this.requestUpdate();\n }\n\n render(): TemplateResult {\n return html`<dialog part=\"dialog\" aria-label=${this.label} @cancel=${() => this.close()} @close=${() => this.close()}>\n <div class=\"bar\" part=\"bar\">\n ${\n this.brand\n ? html`<a class=${this.mark ? 'brand marked' : 'brand'} href=${this.home || '/'} part=\"brand\">${this.mark ? html`<span class=\"mark\" part=\"mark\" aria-hidden=\"true\">${this.mark}</span>` : nothing}${this.brand}</a>`\n : html`<span></span>`\n }\n <button class=\"close\" type=\"button\" part=\"close\" @click=${() => this.close()}>\n <span>${this.closeText}</span>\n <svg viewBox=\"0 0 12 12\" width=\"12\" height=\"12\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M1 1l10 10M11 1 1 11\" /></svg>\n </button>\n </div>\n <nav aria-label=${this.label} part=\"nav\">\n <ol role=\"list\">\n ${(this.links ?? []).map((link, index) => {\n const current = !!this.current && link.href === this.current;\n const number = String(index + 1).padStart(2, '0');\n const worded = current && !!this.currentText;\n // Following a link closes the menu, so a link to a place on the same page does not leave it open over that place.\n return html`<li>\n <a href=${link.href} class=${worded ? 'worded' : ''} aria-current=${current ? 'page' : nothing} part=\"link\" @click=${() => this.close()}>\n <span class=\"words\">${link.label}</span><span class=\"number\" aria-hidden=\"true\">${worded ? `${this.currentText} · ${number}` : number}</span>\n </a>\n </li>`;\n })}\n </ol>\n </nav>\n <div class=\"foot\" part=\"footer\" ?hidden=${!this.hasFooter}><slot name=\"footer\" @slotchange=${this.footerChanged}></slot></div>\n </dialog>`;\n }\n}\n\n/**\n * An offer, set out in two halves: what it is, with one action, and a short\n * numbered list of what you get.\n *\n * It draws no background of its own. Put it in `impakt-section` with the\n * `accent` or `ink` tone and it takes that band's colours, so the words on it\n * are always the colour the tokens measured against the band (1.4.3).\n *\n * The points are an ordered list, so a screen reader says how many there are;\n * the numbers drawn beside them are decoration (1.3.1). The halves stack by\n * the block's own width, and on a narrow screen the action comes after the\n * points, so it is the last thing read before the next section (1.4.10).\n *\n * @category content\n * @icon megaphone\n * @slot actions - The action: one button.\n */\nexport class ImpaktOffer extends ImpaktElement {\n static properties = {\n eyebrow: { type: String },\n heading: { type: String },\n lead: { type: String },\n points: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The small line above the heading, such as \"Free for founders and product owners\". */\n declare eyebrow: string;\n /** What is offered, such as \"Get a 48-hour product teardown.\" */\n declare heading: string;\n /** A sentence or two more. */\n declare lead: string;\n /** What you get, one short line each. */\n declare points: string[];\n declare headingLevel: number;\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.eyebrow = '';\n this.heading = '';\n this.lead = '';\n this.points = [];\n this.headingLevel = 2;\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: impakt-offer / inline-size; }\n /* The Offer component (10:619): the copy 520px wide and the points 460px, 100px apart; the label, heading, lead and action 24px apart. */\n .offer { display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 460fr); grid-template-areas: 'copy points' 'actions points'; grid-template-rows: auto 1fr; column-gap: 100px; row-gap: ${space(6)}; align-items: start; }\n .copy { grid-area: copy; }\n .actions { grid-area: actions; }\n ol { grid-area: points; }\n .copy { display: flex; flex-direction: column; align-items: flex-start; gap: ${space(6)}; }\n /* The label in G2 Mono M, 13px at 1.5; the heading Display L, 64px on a 1080px offer and 36px on a phone; the lead G2 Body M, 16px at 1.45, 480px wide. */\n .eyebrow { margin: 0; font-family: ${t.fontEyebrow}; font-size: 0.8125rem; line-height: 1.5; color: var(--impakt-eyebrow, ${t.textMuted}); }\n .heading { max-inline-size: 8.125em; font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 1.411rem + 3.836cqi, 4rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; }\n .lead { margin: 0; max-inline-size: 30rem; font-size: ${fontSize('md')}; line-height: 1.45; color: ${t.text}; }\n ol { list-style: none; margin: 0; padding: 0; }\n /* Each point: a rule, 20px, the number in G2 Mono M and the words in G2 Label L, 20px at 1.2, 20px apart, then 20px. */\n li { display: flex; gap: ${space(5)}; padding-block: ${space(5)}; border-block-start: ${t.borderThin} solid ${t.text}; font-size: 1.25rem; font-weight: ${fontWeight('medium')}; line-height: 1.2; letter-spacing: -0.01em; color: ${t.text}; }\n .number { flex: none; font-family: ${t.fontMono}; font-size: 0.8125rem; font-weight: ${fontWeight('regular')}; line-height: 1.5; letter-spacing: 0; }\n /* On a phone (15:993): everything 20px apart; the points 14px above and below, the words 16px, 14px after the number. */\n @container impakt-offer (max-width: 44rem) {\n .offer { grid-template-columns: 1fr; grid-template-areas: 'copy' 'points' 'actions'; grid-template-rows: auto; row-gap: ${space(5)}; }\n .copy { gap: ${space(5)}; }\n .heading { line-height: 1.03; }\n li { gap: 14px; padding-block: 14px; font-size: 1rem; }\n }\n `,\n ];\n\n render(): TemplateResult {\n const level = Math.min(Math.max(this.headingLevel, 1), 6);\n return html`<div class=\"offer\" part=\"offer\">\n <div class=\"copy\">\n ${this.eyebrow ? html`<p class=\"eyebrow\" part=\"eyebrow\">${this.eyebrow}</p>` : nothing}\n ${this.heading ? html`<div class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>${this.heading}</div>` : nothing}\n ${this.lead ? html`<p class=\"lead\" part=\"lead\">${this.lead}</p>` : nothing}\n </div>\n <div class=\"actions\" part=\"actions\"><slot name=\"actions\"></slot></div>\n ${\n (this.points ?? []).length\n ? html`<ol role=\"list\" part=\"points\">\n ${this.points.map((point, index) => html`<li><span class=\"number\" aria-hidden=\"true\">${String(index + 1).padStart(2, '0')}</span><span>${point}</span></li>`)}\n </ol>`\n : nothing\n }\n </div>`;\n }\n}\n\n/**\n * A card for one article: what it is filed under, its title and a line about\n * it.\n *\n * **The card is one link.** The link sits on the title, which is a heading,\n * and is stretched over the card, so the whole card can be pressed while a\n * screen reader meets one link named by the title, not a \"Read more\" that says\n * nothing out of context (2.4.4). `link-text` adds a visible line such as\n * \"Read\"; it is decoration and is hidden from a screen reader, which already\n * has the title.\n *\n * @category content\n * @icon card\n */\nexport class ImpaktPostCard extends ImpaktElement {\n static properties = {\n heading: { type: String },\n text: { type: String },\n meta: { type: String },\n href: { type: String },\n linkText: { type: String, attribute: 'link-text' },\n headingLevel: { type: Number, attribute: 'heading-level' },\n };\n /** The article's title. */\n declare heading: string;\n /** A line about it. */\n declare text: string;\n /** What it is filed under and how long it is, such as \"Pricing · 7 min read\". */\n declare meta: string;\n /** Where the card goes. */\n declare href: string;\n /** A visible line at the foot of the card, such as \"Read\". Leave empty for none. */\n declare linkText: string;\n declare headingLevel: number;\n\n constructor() {\n super();\n this.heading = '';\n this.text = '';\n this.meta = '';\n this.href = '';\n this.linkText = '';\n this.headingLevel = 3;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n :host { display: block; block-size: 100%; }\n /* The Article component (10:648): 24px inside, the meta, title, line and link 14px apart. */\n article { position: relative; box-sizing: border-box; block-size: 100%; display: flex; flex-direction: column; gap: 14px; padding: ${space(6)}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; transition: background-color 140ms ease-out; }\n /* The meta and the link in G2 Mono S: 11px medium capitals at 0.06em. */\n .meta { margin: 0; font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.textMuted}; }\n .heading { font-family: ${t.fontHeading}; font-size: 1.5rem; font-weight: ${fontWeight('semibold')}; line-height: 1.15; letter-spacing: -0.025em; color: ${t.text}; }\n .heading a { color: inherit; text-decoration: none; }\n .heading a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }\n .heading a:focus-visible { outline: none; }\n .heading a:focus-visible::after { box-shadow: ${t.focusShadow}; }\n article:has(a):hover .heading { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }\n .text { margin: 0; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }\n .more { font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.text}; }\n /* On a phone (15:1020): 20px inside and 12px apart. */\n @media (max-width: 47.99rem) { article { gap: ${space(3)}; padding: ${space(5)}; } }\n @media (forced-colors: active) { article { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const level = Math.min(Math.max(this.headingLevel, 1), 6);\n return html`<article part=\"card\">\n ${this.meta ? html`<p class=\"meta\" part=\"meta\">${this.meta}</p>` : nothing}\n <div class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>${this.href ? html`<a href=${this.href} part=\"link\">${this.heading}</a>` : this.heading}</div>\n ${this.text ? html`<p class=\"text\" part=\"text\">${this.text}</p>` : nothing}\n ${this.linkText && this.href ? html`<span class=\"more\" aria-hidden=\"true\">${this.linkText} →</span>` : nothing}\n </article>`;\n }\n}\n\n/**\n * A word or two of a heading picked out as if selected in a design tool: the\n * accent colour behind it, an outline and four handles.\n *\n * It is decoration round real text. The words stay in the heading, in the\n * page, so they are read, found and translated as the rest of it is; the\n * handles and the optional label are hidden from a screen reader (1.3.1).\n * The words on the accent are the colour the tokens measured against it\n * (1.4.3). Nothing moves, so there is nothing to stop for reduced motion.\n *\n * `cursor` draws a pointer at the bottom-right handle, as if someone in the\n * file had just picked the words; its value, if any, is the name tag beside\n * it. `hide-label-on=\"phone\"` leaves the label out on a phone, where it would\n * crowd the line below.\n *\n * The box is drawn 0.1em outside the words at each side, as the Selection in\n * the home frame is (`9:306`), so the words keep their place in the heading\n * and the box hangs into the space round them.\n *\n * @category content\n * @icon text\n * @slot - The words to pick out.\n */\nexport class ImpaktHighlight extends ImpaktElement {\n static properties = {\n label: { type: String },\n cursor: { type: String },\n hideLabelOn: { type: String, reflect: true, attribute: 'hide-label-on' },\n };\n /** A small tag under the words, such as \"Design · H1 / 120\". It is decoration and is not read. */\n declare label: string;\n /**\n * Draw a pointer at the bottom-right handle. Its value is a name tag beside\n * the pointer, such as \"Maria\"; an empty value draws the pointer alone. Leave\n * the attribute off for no pointer. Decoration, not read.\n */\n declare cursor: string | null;\n /** Leave the label out on a phone (`phone`). */\n declare hideLabelOn: '' | 'phone';\n\n constructor() {\n super();\n this.label = '';\n this.cursor = null;\n this.hideLabelOn = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n /*\n * The Selection (9:306): the accent behind the words with a 1.5px ink line, drawn 0.1em outside them at the sides\n * (12px at 120px) and from 2px under the top of the line to 4px over its foot, so the words keep their place in the\n * heading. Its four 8px handles sit on its corners with the same line.\n */\n :host { --x: 0.1em; --top: 0.0167em; --foot: 0.033em; display: inline-block; position: relative; isolation: isolate; color: ${token('color.accent.on', '#1a1a1a')}; }\n .box { position: absolute; z-index: -1; inset: var(--top) calc(-1 * var(--x)) var(--foot); box-sizing: border-box; background: ${token('color.accent.default', '#ffd43b')}; border: 1.5px solid ${token('color.accent.on', '#1a1a1a')}; }\n .handle { position: absolute; inline-size: 8px; block-size: 8px; box-sizing: border-box; background: ${t.surfaceCard}; border: 1.5px solid ${token('color.accent.on', '#1a1a1a')}; }\n .handle:nth-of-type(1) { inset-block-start: calc(var(--top) - 4px); inset-inline-start: calc(-1 * var(--x) - 4px); }\n .handle:nth-of-type(2) { inset-block-start: calc(var(--top) - 4px); inset-inline-end: calc(-1 * var(--x) - 4px); }\n .handle:nth-of-type(3) { inset-block-end: calc(var(--foot) - 4px); inset-inline-start: calc(-1 * var(--x) - 4px); }\n .handle:nth-of-type(4) { inset-block-end: calc(var(--foot) - 4px); inset-inline-end: calc(-1 * var(--x) - 4px); }\n /* The label is meta: monospace capitals at 11px, square, 8px under the box and level with its edge (9:311). */\n .label { position: absolute; inset-block-start: calc(100% - var(--foot) + 8px); inset-inline-start: calc(-1 * var(--x)); padding: 3px 7px; white-space: nowrap; font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.surfaceCard}; background: ${t.text}; border-radius: ${t.radiusSm}; }\n @media (max-width: 40rem) { :host([hide-label-on='phone']) .label { display: none; } }\n /* The pointer sits by the bottom-right handle, 16px up from the box's foot, with its name tag 16px along and 18px down (9:313, 9:315). */\n .cursor { position: absolute; inset-block-start: calc(100% - var(--foot) - 16px); inset-inline-start: calc(100% + var(--x) - 4px); display: flex; align-items: flex-start; pointer-events: none; line-height: 1; }\n .cursor svg { display: block; flex: none; color: ${t.text}; stroke: ${t.surfaceCard}; }\n .tag { margin-block-start: 18px; padding: 3px 6px; white-space: nowrap; font-family: ${t.fontMono}; font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.surfaceCard}; background: ${t.text}; }\n @media (forced-colors: active) { :host { forced-color-adjust: none; color: HighlightText; } .box { background: Highlight; border-color: HighlightText; } .handle { border-color: HighlightText; background: Canvas; } .label, .tag { background: CanvasText; color: Canvas; } .cursor svg { color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n return html`<span class=\"box\" part=\"box\" aria-hidden=\"true\"></span><slot></slot><span class=\"handle\" aria-hidden=\"true\"></span><span class=\"handle\" aria-hidden=\"true\"></span><span class=\"handle\" aria-hidden=\"true\"></span><span class=\"handle\" aria-hidden=\"true\"></span>${\n this.label ? html`<span class=\"label\" part=\"label\" aria-hidden=\"true\">${this.label}</span>` : nothing\n }${\n this.cursor != null\n ? html`<span class=\"cursor\" part=\"cursor\" aria-hidden=\"true\"\n ><svg viewBox=\"0 0 16 20\" width=\"16\" height=\"20\" focusable=\"false\"><path d=\"M1 1v16l4.2-4 2.9 6.2 2.6-1.2-2.9-6.1H14Z\" fill=\"currentColor\" stroke-width=\"1.2\" stroke-linejoin=\"round\" /></svg\n >${this.cursor ? html`<span class=\"tag\">${this.cursor}</span>` : nothing}</span\n >`\n : nothing\n }`;\n }\n}\n\ncustomElements.define('impakt-work-list', ImpaktWorkList);\ncustomElements.define('impakt-stat-row', ImpaktStatRow);\ncustomElements.define('impakt-faq', ImpaktFaq);\ncustomElements.define('impakt-site-menu', ImpaktSiteMenu);\ncustomElements.define('impakt-offer', ImpaktOffer);\ncustomElements.define('impakt-post-card', ImpaktPostCard);\ncustomElements.define('impakt-highlight', ImpaktHighlight);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-work-list': ImpaktWorkList;\n 'impakt-stat-row': ImpaktStatRow;\n 'impakt-faq': ImpaktFaq;\n 'impakt-site-menu': ImpaktSiteMenu;\n 'impakt-offer': ImpaktOffer;\n 'impakt-post-card': ImpaktPostCard;\n 'impakt-highlight': ImpaktHighlight;\n }\n}\n"],"mappings":";AAIA,SAAS,KAAK,MAAM,eAAoC;AACxD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AA0BP,IAAM,QAAQ;AAAA;AAAA;AAqCP,IAAM,iBAAN,cAA6B,cAAc;AAAA,EAChD;AAAA,SAAO,aAAa;AAAA,MAClB,OAAO,EAAE,MAAM,MAAM;AAAA,MACrB,cAAc,EAAE,MAAM,QAAQ,WAAW,gBAAgB;AAAA,MACzD,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,SAAS,EAAE,MAAM,MAAM;AAAA,MACvB,SAAS,EAAE,OAAO,KAAK;AAAA,MACvB,YAAY,EAAE,MAAM,QAAQ,SAAS,MAAM,WAAW,cAAc;AAAA,MACpE,YAAY,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AAuG,EAAE,WAAW,iBAAiB,EAAE,IAAI;AAAA;AAAA;AAAA,IAG9O;AAAA;AAAA,EAEA,SAAyB;AACvB,WAAO,uQACL,KAAK,QAAQ,2DAA2D,KAAK,KAAK,YAAY,OAChG,GACE,KAAK,UAAU,OACX;AAAA;AAAA,eAEK,KAAK,SAAS,yBAAyB,KAAK,MAAM,YAAY,OAAO;AAAA,eAE1E,OACN;AAAA,EACF;AACF;AAEA,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,mBAAmB,aAAa;AACtD,eAAe,OAAO,cAAc,SAAS;AAC7C,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,gBAAgB,WAAW;AACjD,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,oBAAoB,eAAe;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/journey.ts"],"sourcesContent":["/**\n * The journey button: a site's one call to action, drawn at the stage a\n * section of the page is about.\n */\nimport { css, html, nothing, unsafeCSS, type TemplateResult } from 'lit';\nimport { ImpaktElement, focusRing, fontWeight, say, space, t, token } from '@atomic-ui/ui';\n\n/** The stages a button passes through on its way to being live, in order. */\nexport const JOURNEY_STAGES = ['note', 'wireframe', 'component', 'code', 'live'] as const;\nexport type JourneyStage = (typeof JOURNEY_STAGES)[number];\n\nconst isStage = (value: unknown): value is JourneyStage => (JOURNEY_STAGES as readonly string[]).includes(value as string);\nconst indexOf = (stage: JourneyStage): number => JOURNEY_STAGES.indexOf(stage);\n\n/** The arrow after the words. Drawn, so no font has to hold the glyph. */\nconst arrow = html`<svg class=\"arrow\" viewBox=\"0 0 20 12\" width=\"20\" height=\"12\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"M0 6h18M13 1l5 5-5 5\" />\n</svg>`;\n\n/** A pointer, drawn at the live button when the annotations are on. */\nconst pointer = html`<svg class=\"pointer\" viewBox=\"0 0 16 20\" width=\"16\" height=\"20\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"M1 1v16l4.2-4 2.9 6.2 2.6-1.2-2.9-6.1H14Z\" stroke-width=\"1.2\" stroke-linejoin=\"round\" />\n</svg>`;\n\n/** One move of the motion spec, read from its tokens with the spec's values as the fallback. */\nconst move = (name: string, ms: number, easing: string) =>\n unsafeCSS(`--jt: var(--impakt-motion-journey-${name}-duration, ${ms}ms); --je: var(--impakt-motion-journey-${name}-easing, ${easing});`);\n\n/** The moves between stages, in order: the move into stage k is MOVES[k - 1]. Each easing is the motion spec's (11:830). */\nexport const JOURNEY_MOVES = [\n { name: 'flatten', ms: 640, easing: [0.65, 0, 0.35, 1] },\n { name: 'ink-in', ms: 560, easing: [0.22, 1, 0.36, 1] },\n { name: 'compile', ms: 720, easing: [0.83, 0, 0.17, 1] },\n { name: 'ship', ms: 600, easing: [0.34, 1.56, 0.64, 1] },\n] as const;\n\n/**\n * The stage as a number, 0 (note) to 4 (live), and how far through each gap between two tracked sections the\n * scroll has gone. They are registered as numbers, so the stage can be transitioned when it is set by hand and\n * animated by a scroll timeline when it follows the page.\n */\nconst P = '--impakt-journey-p';\n/** The most gaps between tracked sections a scroll timeline drives. A page with more falls back to the frame loop. */\nconst GAPS = 8;\nconst gapName = (i: number) => `--impakt-journey-g${i}`;\nlet registered: boolean | undefined;\n/** Register the numbers once for the document. A browser without CSS.registerProperty still draws every stage; it cuts between them. */\nfunction register(): boolean {\n if (registered !== undefined) return registered;\n const api = typeof CSS !== 'undefined' ? (CSS as unknown as { registerProperty?: (d: PropertyDefinition) => void }) : undefined;\n if (!api?.registerProperty) return (registered = false);\n for (const name of [P, ...Array.from({ length: GAPS }, (_, i) => gapName(i))]) {\n try {\n api.registerProperty({ name, syntax: '<number>', inherits: true, initialValue: '0' });\n } catch {\n // Already registered, by this or another copy of the library.\n }\n }\n return (registered = true);\n}\n\n/** A CSS cubic-bezier as a function of progress, for the frame loop, which applies the spec's easing itself. */\nexport function cubicBezier([x1, y1, x2, y2]: readonly number[]): (x: number) => number {\n const at = (a: number, b: number, t: number) => 3 * a * (1 - t) ** 2 * t + 3 * b * (1 - t) * t ** 2 + t ** 3;\n return (x: number) => {\n if (x <= 0) return 0;\n if (x >= 1) return 1;\n let lo = 0;\n let hi = 1;\n let t = x;\n for (let i = 0; i < 30; i += 1) {\n const v = at(x1!, x2!, t);\n if (Math.abs(v - x) < 1e-5) break;\n if (v < x) lo = t;\n else hi = t;\n t = (lo + hi) / 2;\n }\n return at(y1!, y2!, t);\n };\n}\n\n/** The move between two stages, which takes the timing of the move into the later one. */\nconst moveBetween = (a: number, b: number) => JOURNEY_MOVES[Math.max(0, Math.min(3, Math.max(a, b) - 1))]!;\n\n/**\n * How much of stage k shows: 1 at its own stage, falling to 0 one stage either side. Every shape, every word and\n * every note is drawn from these, so the whole morph follows the stage number wherever it is between two stages.\n */\nconst w = (k: number) => `clamp(0, min(calc(1 + var(${P}) - ${k}), calc(1 - var(${P}) + ${k})), 1)`;\n/** How far the note has still to flatten, 1 at the note and 0 from the wireframe on. */\nconst toNote = `clamp(0, calc(1 - var(${P})), 1)`;\n/** How far the live button has come, 0 at the code and 1 live; past 4 is ship's overshoot. */\nconst live = `max(0, calc(var(${P}) - 3))`;\nconst over = `max(0, calc(var(${P}) - 4))`;\n\n/**\n * A call to action drawn as the thing it once was: a sticky note from a\n * workshop, a wireframe box, a designed component, the code that renders it,\n * and at last the live button. A page shows it at the stage each section is\n * about, so the same button is seen being made as the page is read.\n *\n * **It is the same link at every stage.** Whatever it is drawn as, it is one\n * `<a>` whose name is its words, so a screen reader and a keyboard meet an\n * ordinary link; the note, the wireframe cross, the measuring marks and the\n * lines of code around it are decoration and are hidden (1.3.1, 4.1.2). Its\n * target is at least 44px tall at every stage (2.5.8).\n *\n * **A page that shows it more than once sets `decorative` on the copies.** A\n * decorative one is a picture of the button, not a control: it has no link\n * and is hidden from a screen reader, so the page does not hold five links\n * that say the same thing (2.4.4).\n *\n * **It keeps its shape as it scales.** The drawing is about 14 wide to 9\n * tall at any width, 560 by 360 on a wide page and 347 by 223 on a phone, and\n * everything in it is sized from its own width.\n *\n * **One button can follow the page.** Give `track` a selector for the page's\n * sections, each carrying `data-journey-stage`, and the button takes the stage\n * of whichever section is across the middle of the screen. Between two\n * sections the whole morph is scrubbed by the scroll, as the motion spec\n * (`11:830`) asks: the shapes, the words and the design notes all follow the\n * scroll, and the move is complete as the next section crosses the middle of\n * the screen. Scrolling back halfway leaves it halfway.\n *\n * Where the browser has scroll-driven animations, the scroll drives the stage\n * itself through a scroll timeline, with no script running as the page moves;\n * the button only measures where the sections are, again when the page is\n * resized. Elsewhere a frame loop reads the scroll at most once a frame, and\n * only while the page scrolls. Either way each move between two sections is\n * shaped by that move's easing, so ship overshoots near the end of its range.\n *\n * **One button can travel.** Set `travel` and the button stays in view while\n * its sections scroll past, as the spec's one moving object does. It is sticky,\n * so put it in a column as tall as the tracked sections, beside them, such as\n * the second column of a grid whose first holds the sections. It sits\n * `--impakt-journey-travel-top` from the top of the screen, a fifth of the\n * screen unless the page sets it. On a phone, where the sections stack, leave\n * `travel` off and give each section its own decorative copy.\n *\n * **A page can drive the morph itself.** Set `progress`, a number from 0 (the\n * note) to 4 (live), and the button draws the morph at that point with no\n * transition, for a page that scrubs it over scroll ranges of its own, such as\n * one that rests the button in each section's aside in turn. Set `stage` to the\n * nearest stage as well, so the link takes that stage's shape.\n *\n * **Each move has its own timing**, from the motion spec: flatten 640ms, ink\n * in 560ms, compile 720ms, ship 600ms with an overshoot, lift 180ms on hover\n * and press 140ms. Each is read from `--impakt-motion-journey-<move>-duration`\n * and `-easing`. When `stage` is set by hand the move runs on that timing.\n * **Only transforms, opacity and colour move**, so a change of stage costs no\n * layout.\n *\n * **With reduced motion asked for** each stage cuts straight to its final\n * state: there is no morph, no scale and no change of position. A tracked\n * button swaps to a section's stage as soon as the section enters the screen,\n * and pointing at the live button changes its colour only (2.3.3).\n *\n * **`annotations` draws the design notes around it**, as the site's motion\n * frames show: the stage's caption above, a handwritten note in the margin at\n * the note stage, the width and height marks at the wireframe and component,\n * the spec tags under the component and a pointer at the live button. They\n * are decoration and are hidden from a screen reader. Leave it off when the\n * button is a plain call to action.\n *\n * The words on every fill are a pair the tokens already measured: the accent\n * with its own text colour, and the text colour with the card colour (1.4.3).\n * A brand whose ink is dark may colour the words in the code window by\n * setting `--impakt-journey-code-words`.\n *\n * @category action\n * @icon button\n * @fires {CustomEvent<{ stage: JourneyStage }>} impakt-journey-stage - When a tracked button changes stage as the page scrolls.\n * @cssprop --impakt-journey-travel-top - With `travel`: how far from the top of the screen the button stays.\n */\nexport class ImpaktJourneyButton extends ImpaktElement {\n static properties = {\n stage: { type: String, reflect: true },\n label: { type: String },\n href: { type: String },\n decorative: { type: Boolean, reflect: true },\n track: { type: String },\n travel: { type: Boolean, reflect: true },\n code: { type: Array },\n annotations: { type: Boolean, reflect: true },\n captions: { type: Array },\n marginNote: { type: String, attribute: 'margin-note' },\n specs: { type: Array },\n markWidth: { type: String, attribute: 'mark-width' },\n markHeight: { type: String, attribute: 'mark-height' },\n progress: { type: Number },\n };\n /** What the button is drawn as. */\n declare stage: JourneyStage;\n /** The button's words, such as \"Book a 30-minute call\". */\n declare label: string;\n /** Where the button goes. */\n declare href: string;\n /** Draw it as a picture only, with no link, for a page that already has the real button. */\n declare decorative: boolean;\n /**\n * A selector for the sections of the page that each carry\n * `data-journey-stage`. The button then takes the stage of the section\n * across the middle of the screen. Leave empty to set `stage` by hand.\n */\n declare track: string;\n /** With `track`: stay in view while the tracked sections scroll past. Place it in a column as tall as they are. */\n declare travel: boolean;\n /**\n * Lines of code drawn around the words at the `code` stage, split where the\n * words go: the lines before, then the lines after. They are decoration and\n * are not read. A line that starts with `//` is drawn dimmer, as a comment.\n * Left empty, plain bars are drawn instead.\n */\n declare code: { before?: string[]; after?: string[] };\n /** Draw the design notes around the button: captions, marks, spec tags, a margin note and a pointer. */\n declare annotations: boolean;\n /** With `annotations`: the caption above each stage, in order, such as \"Note — Discover\". Numbered for you. */\n declare captions: string[];\n /** With `annotations`: the handwritten note beside the sticky note. */\n declare marginNote: string;\n /** With `annotations`: the tags under the component, such as \"Fill · Accent/Signal\". */\n declare specs: string[];\n /** With `annotations`: the width written on the width mark, \"320\" unless set. */\n declare markWidth: string;\n /** With `annotations`: the height written on the height mark, \"72\" unless set. */\n declare markHeight: string;\n /** Draw the morph at this point, from 0 (note) to 4 (live), instead of at `stage`. Leave unset to follow `stage` or `track`. */\n declare progress: number | undefined;\n\n constructor() {\n super();\n this.stage = 'live';\n this.label = '';\n this.href = '';\n this.decorative = false;\n this.track = '';\n this.travel = false;\n this.code = {};\n this.annotations = false;\n this.captions = [];\n this.marginNote = '';\n this.specs = [];\n this.markWidth = '320';\n this.markHeight = '72';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n :host {\n display: block; inline-size: min(100%, 35rem); container-type: inline-size;\n --impakt-journey-accent: ${token('color.accent.default', '#ffd43b')}; --impakt-journey-on-accent: ${token('color.accent.on', '#1a1a1a')};\n --hand: var(--impakt-font-family-hand, ${t.fontBody});\n /* The stage as a number. Set by hand, it moves on the timing of the move into the new stage, and back out of a\n stage the same move runs in reverse. A tracked button sets it on the frame instead, from the scroll. */\n ${unsafeCSS(P)}: 4;\n transition: ${unsafeCSS(P)} var(--jt) var(--je);\n ${move('flatten', 640, 'cubic-bezier(0.65, 0, 0.35, 1)')}\n }\n :host([stage='note']) { ${unsafeCSS(P)}: 0; }\n :host([stage='wireframe']) { ${unsafeCSS(P)}: 1; }\n :host([stage='component']) { ${unsafeCSS(P)}: 2; ${move('ink-in', 560, 'cubic-bezier(0.22, 1, 0.36, 1)')} }\n :host([stage='code']) { ${unsafeCSS(P)}: 3; ${move('compile', 720, 'cubic-bezier(0.83, 0, 0.17, 1)')} }\n :host([stage='live']) { ${unsafeCSS(P)}: 4; ${move('ship', 600, 'cubic-bezier(0.34, 1.56, 0.64, 1)')} }\n /* Travelling: it stays in view while its sections scroll past, in a column as tall as they are. */\n :host([travel]) { position: sticky; inset-block-start: var(--impakt-journey-travel-top, 20vh); }\n\n /* About 14 wide to 9 tall at any width. Every size inside is a share of the width (cqi), as the Journey object\n component (8:477) places it on its 560 by 360 frame: the shell 320 by 72 at 120, 144. */\n .frame { position: relative; aspect-ratio: 14 / 9; }\n /* Each plate is one stage's shape with that stage's words in it. Every one is drawn from the stage number, so\n its opacity and its shape follow the stage wherever it is between two. Nothing here changes the layout. */\n .plate { position: absolute; box-sizing: border-box; pointer-events: none; }\n .bar { inset-inline-start: 21.43cqi; inline-size: 57.14cqi; inset-block-start: 25.71cqi; block-size: 12.86cqi; }\n /* The sticky note: 290 square, turned 4° (8:362). */\n .note { inset-inline-start: 20.98cqi; inset-block-start: 7.11cqi; inline-size: 51.79cqi; block-size: 51.79cqi; background: var(--impakt-journey-accent); box-shadow: 0 3.2cqi 6.4cqi rgb(0 0 0 / 0.18); }\n .wire { background: ${t.surfaceCard}; border: ${t.borderThin} dashed ${t.textMuted}; }\n .wire > svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; color: ${t.rule}; }\n .solid { background: var(--impakt-journey-accent); }\n .shadow { box-shadow: 0 0.9rem 1.75rem rgb(0 0 0 / 0.22); }\n /* The code window is the raised ink and its muted words, a pair the theme measures, so it stays a dark window on paper and on an ink band alike. */\n /* The code window: 520 by 300 at 20, 40, with 6px corners (8:431). */\n .window { inset-inline: 3.57cqi; inset-block: 7.14cqi 3.57cqi; padding: 4.5cqi 5cqi; background: var(--impakt-color-surface-ink-raised, ${t.text}); border: ${t.borderThin} solid var(--impakt-color-line-inverse, transparent); border-radius: 6px; font-family: ${t.fontMono}; font-size: clamp(0.5rem, 2.32cqi, 0.8125rem); line-height: 1.5; color: var(--impakt-color-text-inverse-muted, color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text})); white-space: pre; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) 44px minmax(0, 1fr); }\n /* On a small button the lines furthest from the words are cut off, so a line never runs under the words. */\n .window .before { align-self: end; display: flex; flex-direction: column; justify-content: flex-end; max-block-size: 100%; overflow: hidden; }\n .window .after { align-self: start; display: flex; flex-direction: column; max-block-size: 100%; overflow: hidden; }\n .window .comment { font-style: italic; }\n .window .rule { display: block; block-size: 0.5em; margin-block: 0.55em; background: currentColor; opacity: 0.35; }\n\n /*\n * The morph. Each plate shows at its own stage and fades one stage either side. The note flattens as it goes,\n * without growing wider, so a shape that is not showing never reaches past the block (1.4.10); the wireframe\n * comes out of the flattened note; the component is inked in from a slightly smaller box; the code window opens\n * from a strip; and the live button's shadow and fill grow to full size, past it for a moment where ship's\n * easing overshoots.\n */\n .note { opacity: ${unsafeCSS(w(0))}; transform: rotate(calc(4deg * ${unsafeCSS(w(0))})) scale(1, calc(0.45 + 0.55 * ${unsafeCSS(w(0))})); }\n .wire { opacity: ${unsafeCSS(w(1))}; transform: rotate(calc(4deg * ${unsafeCSS(toNote)})) scale(calc(1 - 0.1 * ${unsafeCSS(toNote)}), calc(1 + 3 * ${unsafeCSS(toNote)})); }\n .solid { opacity: max(${unsafeCSS(w(2))}, ${unsafeCSS(w(4))}); transform: scale(calc(0.92 + 0.08 * max(${unsafeCSS(w(2))}, min(1, ${unsafeCSS(live)})) + 0.4 * ${unsafeCSS(over)})); }\n .window { opacity: ${unsafeCSS(w(3))}; transform: scale(calc(0.94 + 0.06 * ${unsafeCSS(w(3))}), calc(0.5 + 0.5 * ${unsafeCSS(w(3))})); }\n .shadow { opacity: ${unsafeCSS(w(4))}; transform: scale(calc(0.9 + 0.1 * min(1, ${unsafeCSS(live)}) + 0.4 * ${unsafeCSS(over)})); }\n\n /* The words as each stage draws them, inside that stage's plate, so they morph and fade with it. All decoration: the link below carries the name. */\n .said { position: absolute; inset: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding-inline: 5cqi; font-family: ${t.fontBody}; font-size: clamp(0.75rem, 3.04cqi, 1.0625rem); font-weight: ${fontWeight('medium')}; line-height: 1.2; color: var(--impakt-journey-on-accent); }\n .arrow { flex: none; }\n /* At the note stage the words are handwritten, bold, with a line drawn under them. */\n .note .said { flex-direction: column; align-items: flex-start; padding: 7.7cqi; font-family: var(--hand); font-size: clamp(1.125rem, 6.07cqi, 2.125rem); font-weight: ${fontWeight('bold')}; line-height: 1.1; letter-spacing: -0.01em; }\n .note .said .text::after { content: ''; display: block; block-size: 0.28em; margin-block-start: 0.12em; inline-size: 92%; background: currentColor; -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6c30-4 60-5 98-3s66 3 98-1' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E\") center / 100% 100% no-repeat; mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6c30-4 60-5 98-3s66 3 98-1' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E\") center / 100% 100% no-repeat; }\n .note .said .arrow { align-self: flex-end; }\n .wire .said { justify-content: center; font-family: ${t.fontMono}; font-size: clamp(0.5rem, 2.32cqi, 0.8125rem); font-weight: ${fontWeight('regular')}; color: ${t.textMuted}; }\n .window .said { position: static; padding-inline: 3ch 0; justify-content: flex-start; font-family: ${t.fontMono}; font-size: inherit; font-weight: ${fontWeight('regular')}; color: var(--impakt-journey-code-words, var(--ik-ink-inverse, ${t.surfaceCard})); }\n .window .said .arrow { display: none; }\n\n /*\n * The link. One element at every stage, sized to the shape the stage draws, so the keyboard, a pointer and a\n * screen reader meet an ordinary link with the button's words. Its own words are not painted: the plates paint\n * them, so they can morph. In forced colours the plates step aside and the link draws its words itself.\n */\n .words { position: absolute; inset-inline-start: 21.43cqi; inline-size: 57.14cqi; inset-block-start: calc(25.71cqi + 6.43cqi - max(22px, 6.43cqi)); box-sizing: border-box; min-block-size: max(44px, 12.86cqi); display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding-inline: 5cqi; font-family: ${t.fontBody}; font-size: clamp(0.75rem, 3.04cqi, 1.0625rem); font-weight: ${fontWeight('medium')}; line-height: 1.2; color: transparent; text-decoration: none; }\n :host([stage='note']) .words { inset-inline-start: 20.98cqi; inset-block-start: 7.11cqi; inline-size: 51.79cqi; min-block-size: 51.79cqi; align-items: flex-start; padding: 7.7cqi; font-family: var(--hand); font-size: clamp(1.125rem, 6.07cqi, 2.125rem); font-weight: ${fontWeight('bold')}; line-height: 1.1; transform: rotate(4deg); }\n :host([stage='wireframe']) .words { justify-content: center; font-family: ${t.fontMono}; font-size: clamp(0.5rem, 2.32cqi, 0.8125rem); font-weight: ${fontWeight('regular')}; }\n :host([stage='code']) .words { min-block-size: 44px; inset-block-start: calc(26.79cqi - 22px); justify-content: flex-start; padding-inline: calc(8.57cqi + 3ch) 8.57cqi; font-family: ${t.fontMono}; font-size: clamp(0.5rem, 2.32cqi, 0.8125rem); font-weight: ${fontWeight('regular')}; }\n a.words:focus-visible { outline: none; box-shadow: ${t.focusShadow}; }\n\n /* Live, it answers a pointer: the button lifts when pointed at and sits when pressed, and its fill deepens a little. */\n .solid { transition: background-color 180ms, translate var(--impakt-motion-journey-lift-duration, 180ms) var(--impakt-motion-journey-lift-easing, cubic-bezier(0.2, 0, 0, 1)); }\n :host([stage='live']) .frame:has(a.words:hover) .solid { background: color-mix(in srgb, var(--impakt-journey-accent) 90%, ${t.text}); translate: 0 -2px; }\n :host([stage='live']) .frame:has(a.words:active) .solid { translate: 0 1px; transition: background-color 140ms, translate var(--impakt-motion-journey-press-duration, 140ms) var(--impakt-motion-journey-press-easing, cubic-bezier(0.4, 0, 0.2, 1)); }\n\n /* The design notes. Each shows at its own stages, follows the stage number with the shapes, and none is read. */\n .ann { position: absolute; pointer-events: none; color: ${t.text}; }\n .caption { inset-block-start: 0; inset-inline-start: 0; font-family: ${t.fontMono}; font-size: clamp(0.5rem, 1.96cqi, 0.6875rem); letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; white-space: nowrap; }\n .caption span { position: absolute; inset-block-start: 0; inset-inline-start: 0; }\n ${unsafeCSS(JOURNEY_STAGES.map((_, k) => `.caption span:nth-child(${k + 1}) { opacity: ${w(k)}; }`).join('\\n '))}\n .margin { inset-inline-start: 76.96cqi; inset-block-start: 7.14cqi; inline-size: 21.43cqi; font-family: var(--hand); font-size: clamp(0.625rem, 3.57cqi, 1.25rem); line-height: 1.2; transform: rotate(4deg); opacity: ${unsafeCSS(w(0))}; }\n /* The measures, as the redlines (8:401) draw them: the width 26px over the shell, the height 10px beside it. */\n .width { inset-inline-start: 21.43cqi; inline-size: 57.14cqi; inset-block-start: 21.07cqi; block-size: 2.14cqi; border-inline: 1px solid currentColor; }\n .width::before { content: ''; position: absolute; inset-inline: 0; inset-block-start: 50%; border-block-start: 1px solid currentColor; }\n .width b, .height b { position: absolute; font-family: ${t.fontMono}; font-size: clamp(0.5rem, 1.96cqi, 0.6875rem); font-weight: ${fontWeight('regular')}; line-height: 1; background: var(--impakt-journey-mark-ground, ${t.surfaceCard}); padding-inline: 0.4em; }\n .width b { inset-block-start: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%); }\n .height { inset-inline-start: 80.36cqi; inline-size: 2.14cqi; inset-block-start: 25.71cqi; block-size: 12.86cqi; border-block: 1px solid currentColor; }\n .height::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 50%; border-inline-start: 1px solid currentColor; }\n .height b { inset-block-start: 50%; inset-inline-start: calc(100% + 0.2em); transform: translateY(-50%); background: none; }\n .width, .height { opacity: max(${unsafeCSS(w(1))}, ${unsafeCSS(w(2))}); }\n /* The spec tags (8:417) 30px under the shell. */\n .specs { inset-inline-start: 21.43cqi; inset-block-start: 43.93cqi; display: flex; flex-wrap: wrap; gap: 1.43cqi; inline-size: 75cqi; opacity: ${unsafeCSS(w(2))}; }\n .specs span { padding: 0.36em 0.73em; font-family: ${t.fontMono}; font-size: clamp(0.5rem, 1.96cqi, 0.6875rem); line-height: 1.4; letter-spacing: ${t.trackingWide}; text-transform: uppercase; white-space: nowrap; border: 1px solid currentColor; background: ${t.surfaceCard}; }\n /* The pointer (8:474) at 404, 196, its tip just inside the shell's corner. */\n .cursor { inset-inline-start: 72.14cqi; inset-block-start: 35cqi; opacity: ${unsafeCSS(w(4))}; }\n .pointer { display: block; fill: ${t.text}; stroke: ${t.surfaceCard}; }\n\n /* The gaps a scroll timeline drives, one keyframe set each. */\n ${unsafeCSS(Array.from({ length: GAPS }, (_, i) => `@keyframes impakt-journey-g${i} { from { ${gapName(i)}: 0; } to { ${gapName(i)}: 1; } }`).join('\\n '))}\n\n /* Reduced motion: each stage cuts to its final state, and the live button changes colour only. */\n @media (prefers-reduced-motion: reduce) {\n :host { transition: none; }\n .solid { transition: background-color 180ms; }\n :host([stage='live']) .frame:has(a.words:is(:hover, :active)) .solid { translate: none; }\n }\n @media (forced-colors: active) {\n .plate { forced-color-adjust: none; }\n .plate .said { display: none; }\n .note, .solid { background: Highlight; }\n .window { background: Canvas; border: 1px solid CanvasText; color: CanvasText; }\n .wire { background: Canvas; border-color: CanvasText; }\n .words { color: LinkText; }\n :host(:is([stage='note'], [stage='component'], [stage='live'])) .words { color: HighlightText; forced-color-adjust: none; }\n .ann { color: CanvasText; }\n }\n `,\n ];\n\n private observer?: IntersectionObserver;\n private sections: Element[] = [];\n private frameRequest = 0;\n private resizeObserver?: ResizeObserver;\n private easings: Array<(x: number) => number> = [];\n private readonly onScroll = (): void => {\n if (this.frameRequest) return;\n this.frameRequest = requestAnimationFrame(() => {\n this.frameRequest = 0;\n this.scrub();\n });\n };\n private readonly onResize = (): void => {\n if (this.getAttribute('scrub') === 'timeline') this.timeline();\n else this.onScroll();\n };\n\n connectedCallback(): void {\n super.connectedCallback();\n register();\n // The first render starts the watch; this is for a button taken off the page and put back.\n if (this.hasUpdated) this.watch();\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.unwatch();\n }\n\n protected willUpdate(changed: Map<string, unknown>): void {\n // A stage that is not one of the five would draw nothing at all, so it falls back to the finished button.\n if (changed.has('stage') && !isStage(this.stage)) this.stage = 'live';\n }\n\n protected updated(changed: Map<string, unknown>): void {\n if (changed.has('track')) this.watch();\n if (changed.has('progress')) {\n if (typeof this.progress === 'number' && Number.isFinite(this.progress)) {\n this.style.setProperty(P, String(this.progress));\n this.style.setProperty('transition', 'none');\n } else {\n this.style.removeProperty(P);\n this.style.removeProperty('transition');\n }\n }\n }\n\n private get frameEl(): HTMLElement | null {\n return this.renderRoot.querySelector<HTMLElement>('.frame');\n }\n\n private reduced(): boolean {\n return Boolean(this.ownerDocument.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches);\n }\n\n private unwatch(): void {\n this.observer?.disconnect();\n this.observer = undefined;\n this.resizeObserver?.disconnect();\n this.resizeObserver = undefined;\n const view = this.ownerDocument?.defaultView;\n view?.removeEventListener('scroll', this.onScroll);\n view?.removeEventListener('resize', this.onResize);\n if (this.frameRequest) cancelAnimationFrame(this.frameRequest);\n this.frameRequest = 0;\n this.removeAttribute('scrub');\n const frame = this.frameEl;\n if (frame)\n for (const prop of [\n P,\n 'animation-name',\n 'animation-duration',\n 'animation-timing-function',\n 'animation-fill-mode',\n 'animation-timeline',\n 'animation-range',\n ])\n frame.style.removeProperty(prop);\n }\n\n /**\n * Follow the sections named by `track`. Without reduced motion the section across the middle of the screen\n * sets the stage and the scroll scrubs the morph between sections; with it, a section sets the stage as soon as\n * it enters the screen and nothing is scrubbed.\n */\n private watch(): void {\n this.unwatch();\n this.sections = [];\n if (!this.track || !this.isConnected || typeof IntersectionObserver !== 'function') return;\n let sections: Element[];\n try {\n sections = Array.from(this.ownerDocument.querySelectorAll(this.track)).filter((el) => isStage(el.getAttribute('data-journey-stage')));\n } catch {\n // Not a selector: nothing to follow.\n return;\n }\n if (!sections.length) return;\n this.sections = sections;\n if (this.reduced()) {\n // The whole screen: a section's stage is taken the moment it enters, and given back when it leaves at the foot.\n this.observer = new IntersectionObserver(() => this.entered(), { threshold: 0 });\n } else {\n // A line across the middle of the screen. A section is \"current\" while it crosses that line.\n this.observer = new IntersectionObserver((entries) => this.crossed(entries), { rootMargin: '-50% 0px -50% 0px', threshold: 0 });\n }\n for (const section of sections) this.observer.observe(section);\n if (!this.reduced()) this.startScrub();\n }\n\n private crossed(entries: IntersectionObserverEntry[]): void {\n const entry = entries.find((e) => e.isIntersecting);\n const stage = entry?.target.getAttribute('data-journey-stage');\n if (isStage(stage)) this.become(stage);\n }\n\n /** With reduced motion: the stage of the last section whose top has come onto the screen. */\n private entered(): void {\n const view = this.ownerDocument.defaultView;\n if (!view) return;\n let stage: string | null = null;\n for (const section of this.sections) if (section.getBoundingClientRect().top < view.innerHeight) stage = section.getAttribute('data-journey-stage');\n if (isStage(stage)) this.become(stage);\n }\n\n private become(stage: JourneyStage): void {\n if (stage === this.stage) return;\n this.stage = stage;\n this.dispatchEvent(new CustomEvent('impakt-journey-stage', { detail: { stage }, bubbles: true, composed: true }));\n }\n\n /** Scrub with a scroll timeline where the browser has one and the page scrolls the document; otherwise with a frame loop. */\n private startScrub(): void {\n const view = this.ownerDocument.defaultView;\n if (!view) return;\n const supports =\n typeof CSS !== 'undefined' &&\n typeof CSS.supports === 'function' &&\n CSS.supports('animation-timeline: scroll()') &&\n CSS.supports('animation-range: 0px 1px');\n const timeline = supports && register() && this.sections.length - 1 <= GAPS && this.rootScrolls();\n view.addEventListener('resize', this.onResize, { passive: true });\n if (typeof ResizeObserver === 'function') {\n this.resizeObserver = new ResizeObserver(this.onResize);\n this.resizeObserver.observe(this.ownerDocument.documentElement);\n for (const section of this.sections) this.resizeObserver.observe(section);\n }\n this.easings = JOURNEY_MOVES.map((m) => cubicBezier(this.easingOf(m.name, m.easing)));\n if (timeline) {\n this.setAttribute('scrub', 'timeline');\n this.timeline();\n } else if (typeof view.requestAnimationFrame === 'function') {\n this.setAttribute('scrub', 'frame');\n view.addEventListener('scroll', this.onScroll, { passive: true });\n this.scrub();\n }\n }\n\n /** Whether the tracked sections scroll with the document, which is the scroller a root scroll timeline follows. */\n private rootScrolls(): boolean {\n const view = this.ownerDocument.defaultView!;\n for (let el = this.sections[0]?.parentElement; el && el !== this.ownerDocument.body && el !== this.ownerDocument.documentElement; el = el.parentElement) {\n const { overflowY } = view.getComputedStyle(el);\n if ((overflowY === 'auto' || overflowY === 'scroll') && el.scrollHeight > el.clientHeight) return false;\n }\n return true;\n }\n\n /** The easing of a move, from its token if the page sets one, as four numbers. */\n private easingOf(name: string, fallback: readonly number[]): readonly number[] {\n const value = this.ownerDocument.defaultView?.getComputedStyle(this).getPropertyValue(`--impakt-motion-journey-${name}-easing`) ?? '';\n const numbers = /cubic-bezier\\(([^)]+)\\)/.exec(value)?.[1]?.split(',').map(Number);\n return numbers?.length === 4 && numbers.every(Number.isFinite) ? numbers : fallback;\n }\n\n /** Each gap between two tracked sections, as the scroll positions it runs between and the stages at its ends. */\n private gaps(): Array<{ from: number; to: number; start: number; end: number }> {\n const view = this.ownerDocument.defaultView!;\n const middle = view.innerHeight / 2;\n const tops = this.sections.map((s) => s.getBoundingClientRect().top + view.scrollY);\n const stages = this.sections.map((s) => indexOf(s.getAttribute('data-journey-stage') as JourneyStage));\n return tops.slice(1).map((top, i) => ({ from: stages[i]!, to: stages[i + 1]!, start: tops[i]! - middle, end: top - middle }));\n }\n\n /**\n * The scroll timeline. Each gap animates its own number from 0 to 1 across the scroll between its two sections,\n * shaped by the move's easing, and the stage is the first section's stage plus each gap's step times its number.\n * The browser runs it as the page scrolls; this only runs again when the page is resized.\n */\n private timeline(): void {\n const frame = this.frameEl;\n if (!frame || !this.sections.length) return;\n const gaps = this.gaps().filter((g) => g.end > g.start);\n const first = indexOf(this.sections[0]!.getAttribute('data-journey-stage') as JourneyStage);\n const terms = gaps.map((g, i) => (g.to === g.from ? '' : ` + ${g.to - g.from} * var(${gapName(i)})`)).join('');\n frame.style.setProperty(P, `calc(${first}${terms})`);\n const list = (f: (g: (typeof gaps)[number], i: number) => string) => gaps.map(f).join(', ') || 'none';\n frame.style.setProperty('animation-name', gaps.length ? list((_, i) => `impakt-journey-g${i}`) : 'none');\n frame.style.setProperty(\n 'animation-duration',\n list(() => '1ms'),\n );\n frame.style.setProperty(\n 'animation-timing-function',\n list((g) => {\n const m = moveBetween(g.from, g.to);\n return `var(--impakt-motion-journey-${m.name}-easing, cubic-bezier(${m.easing.join(', ')}))`;\n }),\n );\n frame.style.setProperty(\n 'animation-fill-mode',\n list(() => 'both'),\n );\n frame.style.setProperty(\n 'animation-timeline',\n list(() => 'scroll(root block)'),\n );\n frame.style.setProperty(\n 'animation-range',\n list((g) => `${Math.round(g.start)}px ${Math.round(g.end)}px`),\n );\n }\n\n /**\n * The frame loop. The section across the middle of the screen gives the whole part of the stage; how far the next\n * section has risen toward the middle, shaped by the move's easing, gives the rest, so the move is complete as\n * the next section crosses it.\n */\n private scrub(): void {\n const view = this.ownerDocument.defaultView;\n const frame = this.frameEl;\n if (!view || !frame || !this.sections.length) return;\n const middle = view.innerHeight / 2;\n const tops = this.sections.map((s) => s.getBoundingClientRect().top);\n let at = 0;\n tops.forEach((top, i) => {\n if (top <= middle) at = i;\n });\n const stageAt = (i: number) => indexOf(this.sections[i]!.getAttribute('data-journey-stage') as JourneyStage);\n const next = at + 1 < this.sections.length ? at + 1 : at;\n const span = tops[next]! - tops[at]!;\n const f = next === at || span <= 0 ? 0 : Math.min(1, Math.max(0, (middle - tops[at]!) / span));\n const [a, b] = [stageAt(at), stageAt(next)];\n const eased = a === b ? 0 : this.easings[JOURNEY_MOVES.indexOf(moveBetween(a, b))]!(f);\n const p = a + eased * (b - a);\n frame.style.setProperty(P, p.toFixed(4));\n }\n\n private lines(lines: string[] | undefined, fallback: number): TemplateResult[] {\n return lines?.length\n ? lines.map((line) => html`<span class=${line.trim().startsWith('//') ? 'comment' : ''}>${line}</span>`)\n : Array.from({ length: fallback }, (_, i) => html`<span class=\"rule\" style=${`inline-size:${[58, 72, 44][i % 3]}%`}></span>`);\n }\n\n /** The design notes around the button. All decoration. */\n private notes(): TemplateResult {\n const captions = this.captions?.length\n ? this.captions\n : [say('Note — Discover'), say('Wireframe — Design low-fi'), say('Component — Design hi-fi'), say('Code — Build'), say('Live — Launch')];\n const specs = this.specs?.length ? this.specs : [say('Fill · Accent/Signal'), say('Radius · 0'), say('Type · Archivo 17')];\n return html`<span class=\"ann caption\" part=\"caption\">${JOURNEY_STAGES.map((_, i) => html`<span>${String(i + 1).padStart(2, '0')} · ${captions[i] ?? ''}</span>`)}</span>\n <span class=\"ann margin\" part=\"margin-note\">${this.marginNote || say('make it the biggest thing on the page')}</span>\n <span class=\"ann width\"><b>${this.markWidth}</b></span>\n <span class=\"ann height\"><b>${this.markHeight}</b></span>\n <span class=\"ann specs\" part=\"specs\">${specs.map((spec) => html`<span>${spec}</span>`)}</span>\n <span class=\"ann cursor\">${pointer}</span>`;\n }\n\n render(): TemplateResult {\n const said = html`<span class=\"said\"><span class=\"text\">${this.label}</span>${arrow}</span>`;\n const words = html`<span class=\"text\">${this.label}</span>`;\n return html`<div class=\"frame\" part=\"frame\" aria-hidden=${this.decorative ? 'true' : nothing}>\n <span class=\"plate note\" aria-hidden=\"true\">${said}</span>\n <span class=\"plate bar wire\" aria-hidden=\"true\"><svg viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\" fill=\"none\" stroke=\"currentColor\" focusable=\"false\"><path d=\"M0 0 100 100M0 100 100 0\" vector-effect=\"non-scaling-stroke\" /></svg>${said}</span>\n <span class=\"plate bar shadow\" aria-hidden=\"true\"></span>\n <span class=\"plate bar solid\" aria-hidden=\"true\">${said}</span>\n <span class=\"plate window\" aria-hidden=\"true\"><span class=\"before\">${this.lines(this.code?.before, 3)}</span>${said}<span class=\"after\">${this.lines(this.code?.after, 2)}</span></span>\n ${this.annotations ? html`<span class=\"notes\" aria-hidden=\"true\">${this.notes()}</span>` : nothing}\n ${this.decorative || !this.href ? html`<span class=\"words\" part=\"button\">${words}</span>` : html`<a class=\"words\" part=\"button\" href=${this.href}>${words}</a>`}\n </div>`;\n }\n}\n\ncustomElements.define('impakt-journey-button', ImpaktJourneyButton);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-journey-button': ImpaktJourneyButton;\n }\n}\n"],"mappings":";AAIA,SAAS,KAAK,MAAM,SAAS,iBAAsC;AACnE,SAAS,eAAe,WAAW,YAAY,KAAK,OAAO,GAAG,aAAa;AAGpE,IAAM,iBAAiB,CAAC,QAAQ,aAAa,aAAa,QAAQ,MAAM;AAG/E,IAAM,UAAU,CAAC,UAA2C,eAAqC,SAAS,KAAe;AACzH,IAAM,UAAU,CAAC,UAAgC,eAAe,QAAQ,KAAK;AAG7E,IAAM,QAAQ;AAAA;AAAA;AAKd,IAAM,UAAU;AAAA;AAAA;AAKhB,IAAM,OAAO,CAAC,MAAc,IAAY,WACtC,UAAU,qCAAqC,IAAI,cAAc,EAAE,0CAA0C,IAAI,YAAY,MAAM,IAAI;AAGlI,IAAM,gBAAgB;AAAA,EAC3B,EAAE,MAAM,WAAW,IAAI,KAAK,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE;AAAA,EACvD,EAAE,MAAM,UAAU,IAAI,KAAK,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE;AAAA,EACtD,EAAE,MAAM,WAAW,IAAI,KAAK,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE;AAAA,EACvD,EAAE,MAAM,QAAQ,IAAI,KAAK,QAAQ,CAAC,MAAM,MAAM,MAAM,CAAC,EAAE;AACzD;AAOA,IAAM,IAAI;AAEV,IAAM,OAAO;AACb,IAAM,UAAU,CAAC,MAAc,qBAAqB,CAAC;AACrD,IAAI;AAEJ,SAAS,WAAoB;AAC3B,MAAI,eAAe,OAAW,QAAO;AACrC,QAAM,MAAM,OAAO,QAAQ,cAAe,MAA4E;AACtH,MAAI,CAAC,KAAK,iBAAkB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