@atomic-ui/blocks 0.13.1 → 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 +338 -31
- package/dist/{chunk-MX7FU5JE.js → chunk-3G3NP4UC.js} +40 -22
- package/dist/chunk-3G3NP4UC.js.map +1 -0
- package/dist/{chunk-W3MK3EEO.js → chunk-7OFH762N.js} +74 -26
- package/dist/chunk-7OFH762N.js.map +1 -0
- package/dist/{chunk-CCFBROX3.js → chunk-BW5ZMKES.js} +119 -50
- package/dist/chunk-BW5ZMKES.js.map +1 -0
- package/dist/{chunk-X3U2SOVV.js → chunk-GDATDR2Q.js} +64 -31
- package/dist/chunk-GDATDR2Q.js.map +1 -0
- package/dist/{chunk-VXQS5TAN.js → chunk-GZTBAT6P.js} +47 -23
- package/dist/chunk-GZTBAT6P.js.map +1 -0
- package/dist/{chunk-KOYQRJKY.js → chunk-NZQZRBKV.js} +159 -15
- package/dist/chunk-NZQZRBKV.js.map +1 -0
- package/dist/{chunk-JIITZUGI.js → chunk-Q366ZM2X.js} +84 -42
- package/dist/chunk-Q366ZM2X.js.map +1 -0
- package/dist/{chunk-EYP5LWUR.js → chunk-ZM2HLQOG.js} +14 -3
- package/dist/chunk-ZM2HLQOG.js.map +1 -0
- package/dist/components/changelog.js +1 -1
- package/dist/components/estimator.js +1 -1
- package/dist/components/g2-case.d.ts +28 -6
- package/dist/components/g2-case.js +1 -1
- package/dist/components/g2-site.d.ts +39 -5
- package/dist/components/g2-site.js +1 -1
- package/dist/components/journey.d.ts +26 -4
- package/dist/components/journey.js +1 -1
- package/dist/components/organisms.js +1 -1
- package/dist/components/site.d.ts +74 -2
- package/dist/components/site.js +2 -1
- package/dist/components/studio.d.ts +35 -2
- package/dist/components/studio.js +1 -1
- package/dist/index.js +8 -8
- package/dist/standalone/atomic-ui-blocks.js +1378 -1116
- package/dist/standalone/atomic-ui-blocks.js.map +4 -4
- package/package.json +3 -3
- package/dist/chunk-CCFBROX3.js.map +0 -1
- package/dist/chunk-EYP5LWUR.js.map +0 -1
- package/dist/chunk-JIITZUGI.js.map +0 -1
- package/dist/chunk-KOYQRJKY.js.map +0 -1
- package/dist/chunk-MX7FU5JE.js.map +0 -1
- package/dist/chunk-VXQS5TAN.js.map +0 -1
- package/dist/chunk-W3MK3EEO.js.map +0 -1
- package/dist/chunk-X3U2SOVV.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
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 /* The main line's label sits 14px under the last rule and the block ends 17px under it, 520px for four rows (12:716). */\n :host([look='mono']) .end { gap: 0; margin: 0; padding-block: 8px 17px; 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 /* On a phone the rows are 150px apart whatever their words, as they are 120px apart on a wide screen (14:989). */\n :host([look='mono']) .text { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'path' 'h' 'detail'; box-sizing: border-box; min-block-size: 127px; 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 { padding-block-end: 13px; }\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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A;AAAA,EAGjH;AACF;AAEA,eAAe,OAAO,uBAAuB,iBAAiB;AAC9D,eAAe,OAAO,uBAAuB,iBAAiB;AAC9D,eAAe,OAAO,sBAAsB,gBAAgB;AAC5D,eAAe,OAAO,qBAAqB,eAAe;AAC1D,eAAe,OAAO,0BAA0B,oBAAoB;","names":["heading","mono","words"]}
|
|
@@ -1,6 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
accent,
|
|
3
|
+
accentOn,
|
|
4
|
+
accentOnInk,
|
|
5
|
+
ink,
|
|
6
|
+
inkLine,
|
|
7
|
+
inkMuted
|
|
8
|
+
} from "./chunk-EGNQHWY6.js";
|
|
9
|
+
|
|
1
10
|
// packages/blocks/src/components/site.ts
|
|
2
11
|
import { css, html, nothing } from "lit";
|
|
3
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
ImpaktElement,
|
|
14
|
+
R,
|
|
15
|
+
focusRing,
|
|
16
|
+
hideOn,
|
|
17
|
+
fontSize,
|
|
18
|
+
fontWeight,
|
|
19
|
+
linkCurrent,
|
|
20
|
+
say,
|
|
21
|
+
space,
|
|
22
|
+
t,
|
|
23
|
+
token,
|
|
24
|
+
type,
|
|
25
|
+
toneOf
|
|
26
|
+
} from "@atomic-ui/ui";
|
|
27
|
+
var onInk = token("color.ink-on", "#FFFFFF");
|
|
4
28
|
var STRIPE = [0, 1, 2, 3, 4];
|
|
5
29
|
var MONO = t.fontMono;
|
|
6
30
|
var ImpaktSiteHeader = class extends ImpaktElement {
|
|
@@ -26,7 +50,14 @@ var ImpaktSiteHeader = class extends ImpaktElement {
|
|
|
26
50
|
statusAt: { type: String, reflect: true, attribute: "status-at" },
|
|
27
51
|
navLook: { type: String, attribute: "nav-look" },
|
|
28
52
|
current: { type: String },
|
|
29
|
-
presence: { type: Array }
|
|
53
|
+
presence: { type: Array },
|
|
54
|
+
look: { type: String, reflect: true },
|
|
55
|
+
menuActionText: { type: String, attribute: "menu-action-text" },
|
|
56
|
+
menuActionHref: { type: String, attribute: "menu-action-href" },
|
|
57
|
+
menuNote: { type: String, attribute: "menu-note" },
|
|
58
|
+
menuEmail: { type: String, attribute: "menu-email" },
|
|
59
|
+
currentText: { type: String, attribute: "current-text" },
|
|
60
|
+
closeText: { type: String, attribute: "close-text" }
|
|
30
61
|
};
|
|
31
62
|
}
|
|
32
63
|
constructor() {
|
|
@@ -52,6 +83,13 @@ var ImpaktSiteHeader = class extends ImpaktElement {
|
|
|
52
83
|
this.navLook = "";
|
|
53
84
|
this.current = "";
|
|
54
85
|
this.presence = [];
|
|
86
|
+
this.look = "default";
|
|
87
|
+
this.menuActionText = "";
|
|
88
|
+
this.menuActionHref = "";
|
|
89
|
+
this.menuNote = "";
|
|
90
|
+
this.menuEmail = "";
|
|
91
|
+
this.currentText = "Current";
|
|
92
|
+
this.closeText = "";
|
|
55
93
|
}
|
|
56
94
|
static {
|
|
57
95
|
this.styles = [
|
|
@@ -68,6 +106,8 @@ var ImpaktSiteHeader = class extends ImpaktElement {
|
|
|
68
106
|
.presence .avatar { display: inline-grid; place-items: center; inline-size: 22px; block-size: 22px; box-sizing: border-box; margin-inline-start: -6px; border-radius: 50%; border: ${t.borderThin} solid ${t.text}; background: ${t.surfaceCard}; color: ${t.text}; font-family: ${MONO}; font-size: 0.625rem; line-height: 1; }
|
|
69
107
|
.presence .avatar:first-child { margin-inline-start: 0; }
|
|
70
108
|
.presence .avatar.accent { background: ${token("color.accent.default", "#ffd43b")}; color: ${token("color.accent.on", "#111111")}; }
|
|
109
|
+
.presence .avatar.ink { background: ${t.text}; color: ${t.surfaceCard}; }
|
|
110
|
+
@media (forced-colors: active) { .presence .avatar.ink { forced-color-adjust: none; background: CanvasText; color: Canvas; } }
|
|
71
111
|
.bar { display: flex; align-items: center; gap: ${space(6)}; }
|
|
72
112
|
.start { display: flex; align-items: center; gap: ${space(3)}; flex: none; }
|
|
73
113
|
.middle { flex: 1 1 8rem; min-inline-size: 0; display: flex; align-items: center; justify-content: center; }
|
|
@@ -89,15 +129,15 @@ var ImpaktSiteHeader = class extends ImpaktElement {
|
|
|
89
129
|
.start .status .dot { inline-size: 6px; block-size: 6px; }
|
|
90
130
|
.status .dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--tone); }
|
|
91
131
|
.status .hash { opacity: 0.72; }
|
|
92
|
-
@container (max-width: 22rem) { :host(:not([fold='narrow'])) .bar { flex-wrap: wrap; row-gap: ${space(2)}; } :host(:not([fold='narrow'])) .end { flex: 1 1 100%; } }
|
|
132
|
+
@container (max-width: 22rem) { :host(:not([fold='narrow']):not([look='canvas'])) .bar { flex-wrap: wrap; row-gap: ${space(2)}; } :host(:not([fold='narrow']):not([look='canvas'])) .end { flex: 1 1 100%; } }
|
|
93
133
|
@container (max-width: 56rem) { .chip, .meta, .status, .context, .presence { display: none; } .bar { gap: ${space(3)}; } }
|
|
94
134
|
/* With no script the links cannot fold behind a Menu button. On a narrow screen they take a
|
|
95
135
|
line of their own under the name and the action, and wrap there. */
|
|
96
136
|
@container (max-width: 40rem) {
|
|
97
|
-
:host(:not(:defined):not([fold='narrow'])) .bar { flex-wrap: wrap; row-gap: ${space(1)}; }
|
|
98
|
-
:host(:not(:defined):not([fold='narrow'])) .start { flex: 1 1 auto; }
|
|
137
|
+
:host(:not(:defined):not([fold='narrow']):not([look='canvas'])) .bar { flex-wrap: wrap; row-gap: ${space(1)}; }
|
|
138
|
+
:host(:not(:defined):not([fold='narrow']):not([look='canvas'])) .start { flex: 1 1 auto; }
|
|
99
139
|
/* Its row may be narrower than the links, which then wrap: the max-content floor below is for the measured header only. */
|
|
100
|
-
:host(:not(:defined):not([fold='narrow'])) .middle { order: 3; flex: 1 1 100%; justify-content: flex-start; min-inline-size: 0; }
|
|
140
|
+
:host(:not(:defined):not([fold='narrow']):not([look='canvas'])) .middle { order: 3; flex: 1 1 100%; justify-content: flex-start; min-inline-size: 0; }
|
|
101
141
|
/* fold="narrow": the links are behind the Menu button, which sits at the end, and the action moves into the menu. */
|
|
102
142
|
:host([fold='narrow']) .middle { justify-content: flex-end; }
|
|
103
143
|
/*
|
|
@@ -111,31 +151,135 @@ var ImpaktSiteHeader = class extends ImpaktElement {
|
|
|
111
151
|
:host(:not([fold='narrow'])) .middle ::slotted(impakt-nav[folded]) { flex: none; min-inline-size: max-content; }
|
|
112
152
|
:host([fold='narrow']) .end > slot > impakt-button { display: none; }
|
|
113
153
|
}
|
|
154
|
+
/*
|
|
155
|
+
* look="canvas": the G2 top bar (9:264, 14:715). The mark and the name in Label S, 14px medium; the "/" in the subtle
|
|
156
|
+
* text and the file name in the muted; the Live chip with a soft edge, a 3px corner and an ink dot, in G2 Mono S.
|
|
157
|
+
*/
|
|
158
|
+
.menu-button, .sheet { display: none; }
|
|
159
|
+
/* The bar keeps the frame's 16px gutters of its own, and the tab track hugs its tabs, centred between the name and the end. */
|
|
160
|
+
:host([look='canvas']) .bar { min-block-size: 56px; padding-inline: 16px; }
|
|
161
|
+
:host([look='canvas']) .middle impakt-nav { flex: 0 1 auto; }
|
|
162
|
+
:host([look='canvas']) .end { gap: 16px; }
|
|
163
|
+
/* The people of 9:285: 22px avatars 4px over each other, their letters in G2 Mono S. */
|
|
164
|
+
:host([look='canvas']) .presence .avatar { margin-inline-start: -4px; font-size: 0.6875rem; letter-spacing: 0.06em; text-indent: 0.06em; }
|
|
165
|
+
:host([look='canvas']) .presence .avatar:first-child { margin-inline-start: 0; }
|
|
166
|
+
:host([look='canvas']) .start { gap: 10px; }
|
|
167
|
+
:host([look='canvas']) .brand.marked { gap: 10px; font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight("medium")}; line-height: 1.2; letter-spacing: 0; }
|
|
168
|
+
:host([look='canvas']) .mark { font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight("medium")}; line-height: 1.2; }
|
|
169
|
+
:host([look='canvas']) .context { font-family: ${t.fontBody}; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }
|
|
170
|
+
:host([look='canvas']) .context .slash { margin-inline-end: 10px; opacity: 1; color: ${token("color.text.subtle", "currentColor")}; }
|
|
171
|
+
:host([look='canvas']) .start .status { display: inline-flex; gap: 6px; padding: 3px 7px; background: ${t.surfaceCard}; border: 1px solid ${token("color.line.soft", "#CFCCC5")}; border-radius: 3px; color: ${t.textMuted}; font-family: ${MONO}; font-size: 0.6875rem; font-weight: ${fontWeight("medium")}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; }
|
|
172
|
+
:host([look='canvas']) .start .status .dot { inline-size: 6px; block-size: 6px; background: ${t.text}; }
|
|
173
|
+
/* The filled Menu button of 14:715: "Menu" and a two-line glyph after it. */
|
|
174
|
+
:host([look='canvas']) .menu-button { align-items: center; gap: 10px; padding: 9px 14px; border: 0; border-radius: 0; background: ${t.text}; color: ${t.surfaceCard}; font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight("medium")}; line-height: 1.2; cursor: pointer; }
|
|
175
|
+
.glyph { display: inline-block; inline-size: 14px; block-size: 6px; box-sizing: border-box; border-block: 1.5px solid currentColor; }
|
|
176
|
+
/*
|
|
177
|
+
* The tabs, the file name, the people and the action need about 70rem in one row. Narrower, the file name and the
|
|
178
|
+
* people leave first, as decoration; at 60rem and under the tabs and the action give their place to the Menu button.
|
|
179
|
+
*/
|
|
180
|
+
@container (max-width: 70rem) { :host([look='canvas']) :is(.context, .presence) { display: none; } }
|
|
181
|
+
@container (max-width: 60rem) {
|
|
182
|
+
:host([look='canvas']) .middle, :host([look='canvas']) .end > slot > impakt-button.act { display: none; }
|
|
183
|
+
:host([look='canvas']) .bar { justify-content: space-between; }
|
|
184
|
+
:host([look='canvas']) .menu-button { display: inline-flex; }
|
|
185
|
+
}
|
|
186
|
+
/* The open menu (21:1688): ink in both themes, the whole screen, opened by the browser as a popover. */
|
|
187
|
+
.sheet:popover-open { display: flex; flex-direction: column; position: fixed; inset: 0; box-sizing: border-box; inline-size: 100%; block-size: 100%; max-inline-size: none; max-block-size: none; margin: 0; padding: 0; border: 0; overflow: auto; overscroll-behavior: contain; background: ${ink}; color: ${onInk}; }
|
|
188
|
+
.menu-bar { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; box-sizing: border-box; min-block-size: 56px; padding: 0 ${space(4)}; border-block-end: 1px solid ${inkLine}; }
|
|
189
|
+
.menu-bar .brand.marked { gap: 10px; font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight("medium")}; line-height: 1.2; letter-spacing: 0; }
|
|
190
|
+
.menu-bar .mark { background: ${onInk}; color: ${ink}; font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight("medium")}; }
|
|
191
|
+
.close { display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px; border: 0; border-radius: 0; background: ${onInk}; color: ${ink}; font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight("medium")}; line-height: 1.2; cursor: pointer; }
|
|
192
|
+
.menu-nav { flex: 1; padding: ${space(8)} 20px 0; }
|
|
193
|
+
.menu-nav ol { list-style: none; margin: 0; padding: 0; }
|
|
194
|
+
.menu-nav li { border-block-end: 1px solid ${inkLine}; }
|
|
195
|
+
.menu-nav a { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding-block: 18px; color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 13.4vw, 3.25rem); font-weight: ${fontWeight("semibold")}; line-height: 1; letter-spacing: -0.05em; }
|
|
196
|
+
.menu-nav a:hover .words { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
|
|
197
|
+
.menu-nav .number { flex: none; font-family: ${MONO}; font-size: 0.8125rem; font-weight: ${fontWeight("regular")}; line-height: 1.5; letter-spacing: 0; color: ${inkMuted}; }
|
|
198
|
+
/* The page you are on is in the accent, and its number says "Current", so it is not told by colour alone. */
|
|
199
|
+
.menu-nav a[aria-current], .menu-nav a[aria-current] .number { color: ${accentOnInk}; }
|
|
200
|
+
.menu-foot { display: flex; flex-direction: column; align-items: flex-start; gap: ${space(4)}; padding: ${space(8)} 20px calc(${space(8)} + env(safe-area-inset-bottom)); }
|
|
201
|
+
.menu-foot:empty { display: none; }
|
|
202
|
+
.call { display: flex; align-items: center; justify-content: space-between; gap: ${space(3)}; align-self: stretch; box-sizing: border-box; min-block-size: 47px; padding: 0 20px; background: ${accent}; color: ${accentOn}; text-decoration: none; font-family: ${t.fontBody}; font-size: 1rem; font-weight: ${fontWeight("medium")}; line-height: 1.2; }
|
|
203
|
+
.call:hover .words { text-decoration: underline; text-underline-offset: 0.2em; }
|
|
204
|
+
/* The call's arrow slides forward when it is pointed at or focused (impkt-web#51). */
|
|
205
|
+
.call .go { display: inline-block; transition: translate ${R.arrowDuration} ${R.arrowEasing}; }
|
|
206
|
+
.call:is(:hover, :focus-visible) .go { translate: ${R.arrowDistance} 0; }
|
|
207
|
+
@media (prefers-reduced-motion: reduce) { .call .go { transition: none; } }
|
|
208
|
+
.note { margin: 0; font-family: ${MONO}; font-size: 0.6875rem; font-weight: ${fontWeight("medium")}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${inkMuted}; }
|
|
209
|
+
.mail { display: inline-flex; align-items: center; min-block-size: 24px; color: inherit; font-family: ${t.fontBody}; font-size: 1rem; line-height: 1.45; text-decoration: none; }
|
|
210
|
+
.mail:hover { text-decoration: underline; text-underline-offset: 0.2em; }
|
|
211
|
+
/* What is slotted at the foot is read on ink too. */
|
|
212
|
+
.menu-foot ::slotted(*) { --impakt-color-text-default: ${onInk}; --impakt-color-text-heading: ${onInk}; --impakt-color-text-muted: ${inkMuted}; --impakt-color-text-link: ${onInk}; --impakt-color-text-link-hover: ${onInk}; color: ${onInk}; }
|
|
213
|
+
@media (forced-colors: active) {
|
|
214
|
+
:host([look='canvas']) .menu-button, .close, .call { border: 1px solid ButtonText; }
|
|
215
|
+
.sheet:popover-open { border: 1px solid CanvasText; }
|
|
216
|
+
:host([look='canvas']) .start .status .dot { background: CanvasText; }
|
|
217
|
+
}
|
|
114
218
|
`
|
|
115
219
|
];
|
|
116
220
|
}
|
|
117
221
|
act() {
|
|
118
222
|
this.dispatchEvent(new CustomEvent("impakt-action", { bubbles: true, composed: true }));
|
|
119
223
|
}
|
|
120
|
-
|
|
224
|
+
/** The brand link: the mark and the name, or the logo. */
|
|
225
|
+
renderBrand() {
|
|
226
|
+
if (!this.brand && !this.logoSrc) return nothing;
|
|
121
227
|
const wordmark = this.logoSrc ? html`<img src=${this.logoSrc} alt=${this.logoAlt || this.brand} />` : html`${this.brand}`;
|
|
228
|
+
return 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}${wordmark}</a>`;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* look="canvas": the filled Menu button and the whole-screen menu (14:715, 21:1688). They are tied by
|
|
232
|
+
* `popovertarget`, so the browser opens and closes the menu, moves on to it with Tab, closes it on Escape and
|
|
233
|
+
* tells a screen reader whether it is open, with no script.
|
|
234
|
+
*/
|
|
235
|
+
renderMenu() {
|
|
236
|
+
const panel = this.id_("menu");
|
|
237
|
+
const callText = this.menuActionText || this.actionText;
|
|
238
|
+
const callHref = this.menuActionHref || this.actionHref;
|
|
239
|
+
return html`<button class="menu-button" type="button" part="menu-button" popovertarget=${panel}>${this.menuText}<span class="glyph" aria-hidden="true"></span></button>
|
|
240
|
+
<div id=${panel} class="sheet" popover="auto" part="menu" role="dialog" aria-label=${this.menuText}>
|
|
241
|
+
<div class="menu-bar">
|
|
242
|
+
${this.renderBrand()}
|
|
243
|
+
<button class="close" type="button" popovertarget=${panel} popovertargetaction="hide">${this.closeText || say("Close")}<svg viewBox="0 0 10 10" width="10" height="10" fill="none" stroke="currentColor" stroke-width="1.2" aria-hidden="true" focusable="false"><path d="M1 1l8 8M9 1 1 9" /></svg></button>
|
|
244
|
+
</div>
|
|
245
|
+
<nav class="menu-nav" aria-label=${this.label || nothing}>
|
|
246
|
+
<ol role="list">
|
|
247
|
+
${(this.links ?? []).map((link, index) => {
|
|
248
|
+
const here = linkCurrent(link.href, this.current);
|
|
249
|
+
const number = String(index + 1).padStart(2, "0");
|
|
250
|
+
return html`<li>
|
|
251
|
+
<a href=${link.href} part="menu-link" aria-current=${here === "page" ? "page" : here === "section" ? "true" : nothing}
|
|
252
|
+
><span class="words">${link.menuLabel || link.label}</span><span class="number" aria-hidden="true">${here && this.currentText ? `${this.currentText} \xB7 ${number}` : number}</span></a
|
|
253
|
+
>
|
|
254
|
+
</li>`;
|
|
255
|
+
})}
|
|
256
|
+
</ol>
|
|
257
|
+
</nav>
|
|
258
|
+
<div class="menu-foot" part="menu-foot"><slot name="menu-foot">${callText ? html`<a class="call" href=${callHref || nothing}><span class="words">${callText}</span><span class="go" aria-hidden="true">→</span></a>` : nothing}${this.menuNote ? html`<p class="note">${this.menuNote}</p>` : nothing}${this.menuEmail ? html`<a class="mail" href=${`mailto:${this.menuEmail}`}>${this.menuEmail}</a>` : nothing}</slot></div>
|
|
259
|
+
</div>`;
|
|
260
|
+
}
|
|
261
|
+
render() {
|
|
262
|
+
const canvas = this.look === "canvas";
|
|
263
|
+
const statusAt = canvas ? "start" : this.statusAt;
|
|
122
264
|
const status = this.status ? html`<span class="status" part="status" style=${`--tone:${toneOf(this.statusTone, 0)}`}><span class="dot" aria-hidden="true"></span>${this.status}${this.statusMeta ? html` <span class="hash">${this.statusMeta}</span>` : nothing}</span>` : nothing;
|
|
123
265
|
const presence = this.presence ?? [];
|
|
266
|
+
const fold = canvas ? "narrow" : this.fold;
|
|
267
|
+
const navLook = this.navLook || (canvas ? "tabs" : "");
|
|
124
268
|
return html`<div class="bar" part="bar">
|
|
125
269
|
<div class="start"><slot name="start">
|
|
126
|
-
${this.
|
|
270
|
+
${this.renderBrand()}
|
|
127
271
|
${this.context ? html`<span class="context" part="context"><span class="slash" aria-hidden="true">/</span>${this.context}</span>` : nothing}
|
|
128
|
-
${
|
|
272
|
+
${statusAt === "start" ? status : nothing}
|
|
129
273
|
${this.badge ? html`<span class="chip" part="badge"><svg viewBox="0 0 14 14" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="3.5" cy="3" r="1.5"/><circle cx="3.5" cy="11" r="1.5"/><circle cx="10.5" cy="4.5" r="1.5"/><path d="M3.5 4.5v5M10.5 6c0 2.5-3 2.5-6 4"/></svg>${this.badge}</span>` : nothing}
|
|
130
274
|
${this.meta ? html`<span class="meta" part="meta">${this.meta}</span>` : nothing}
|
|
131
275
|
</slot></div>
|
|
132
|
-
<div class="middle"><slot name="middle">${(this.links ?? []).length ? html`<impakt-nav align="center" size="sm" fold=${
|
|
276
|
+
<div class="middle"><slot name="middle">${(this.links ?? []).length ? html`<impakt-nav align="center" size="sm" fold=${fold} look=${navLook || nothing} .current=${this.current} .links=${this.links} .label=${this.label} .menuText=${this.menuText} .actionText=${fold === "narrow" && !canvas ? this.actionText : ""} .actionHref=${this.actionHref}></impakt-nav>` : nothing}</slot></div>
|
|
133
277
|
<div class="end"><slot name="presence">${presence.length ? html`<span class="presence" part="presence">${presence.map(
|
|
134
|
-
(person) => html`<span class=${person.accent ? "avatar accent" : "avatar"} role="img" aria-label=${person.name}>${person.initials ?? person.name.slice(0, 1).toUpperCase()}</span>`
|
|
278
|
+
(person) => html`<span class=${person.ink ? "avatar ink" : person.accent ? "avatar accent" : "avatar"} role="img" aria-label=${person.name}>${person.initials ?? person.name.slice(0, 1).toUpperCase()}</span>`
|
|
135
279
|
)}</span>` : nothing}</slot><slot name="end">
|
|
136
|
-
${
|
|
137
|
-
${this.actionText ? html`<impakt-button variant="primary" size="sm" icon-after="arrow-right" href=${this.actionHref || nothing} @click=${this.act}>${this.actionText}</impakt-button>` : nothing}
|
|
138
|
-
</slot
|
|
280
|
+
${statusAt === "start" ? nothing : status}
|
|
281
|
+
${this.actionText ? html`<impakt-button class="act" variant="primary" size="sm" icon-after="arrow-right" href=${this.actionHref || nothing} @click=${this.act}>${this.actionText}</impakt-button>` : nothing}
|
|
282
|
+
</slot>${canvas ? this.renderMenu() : nothing}</div>
|
|
139
283
|
</div>`;
|
|
140
284
|
}
|
|
141
285
|
};
|
|
@@ -290,4 +434,4 @@ export {
|
|
|
290
434
|
ImpaktWordmark,
|
|
291
435
|
ImpaktSiteFooter
|
|
292
436
|
};
|
|
293
|
-
//# sourceMappingURL=chunk-
|
|
437
|
+
//# sourceMappingURL=chunk-NZQZRBKV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/site.ts"],"sourcesContent":["/**\n * A site's own header and footer, drawn as one piece each, for the layout's\n * header and footer slots, and the wordmark that starts a header.\n *\n * The chip that sits beside a wordmark is a product component, `impakt-chip`,\n * and comes from `@atomic-ui/ui`.\n *\n * The page frame (`impakt-page`) gives them their landmarks, so neither draws a\n * `<header>` or `<footer>` of its own: a second banner would be one a screen\n * reader announces twice.\n */\nimport { css, html, nothing, type TemplateResult } from 'lit';\n// The base, the tokens and the nav and button these draw come from @atomic-ui/ui, which defines its elements on import.\nimport {\n ImpaktElement,\n R,\n focusRing,\n hideOn,\n fontSize,\n fontWeight,\n linkCurrent,\n say,\n space,\n t,\n token,\n type,\n toneOf,\n type NavLink,\n type Tone,\n} from '@atomic-ui/ui';\nimport { accent, accentOn, accentOnInk, ink, inkLine, inkMuted } from './g2-shared';\n\n/** A link in the site header. In the canvas look, `menuLabel` is what the phone menu calls it, such as \"Home\" for the \"home.canvas\" tab. */\nexport type SiteHeaderLink = NavLink & { menuLabel?: string };\n\n/** White, the words on the canvas menu's fixed ink (21:1688). */\nconst onInk = token('color.ink-on', '#FFFFFF');\n\n/** The footer stripe's colours, left to right. */\n/** The stripe's segments take the brand's chart colours in order. */\nconst STRIPE = [0, 1, 2, 3, 4];\n\n/** Code-like labels: a branch, a hash, a commit message. */\nconst MONO = t.fontMono;\n\n// Quieter words are faded to 0.72, no further: that keeps them at 4.5:1 on the page and card colours (1.4.3).\n\n/**\n * The site header: the brand, the main links and one call to action, with an\n * optional chip beside the brand and a status before the action.\n *\n * The links fold behind a Menu button when they do not fit, as `impakt-nav`\n * does. The chip and the status are labels, not controls, and they are left\n * out on a phone so the brand, the menu and the action keep the row.\n *\n * **Build your own.** Place components in its three slots, start, middle and\n * end, and each slot that holds something replaces what the props draw there:\n * a wordmark and chips at the start, a nav in the middle, a status and a\n * button at the end, in any order. Give a component `hideOn: 'phone'` to leave\n * it out on a phone, so the phone's header is built from the same pieces.\n *\n * **A header for a studio's canvas.** `mark` draws a 28px ink square with a\n * letter in it before the name, `context` a path after it (\"/ home.canvas\"),\n * and `status-at=\"start\"` moves the status chip, a square with a dot and a\n * word such as \"Live\", up beside them. `nav-look=\"tabs\"` draws the links as\n * file tabs. `presence` draws a few small overlapping avatars of the people in\n * the file before the action; each is named for a screen reader.\n *\n * **The G2 canvas header, whole.** `look=\"canvas\"` draws the G2 top bar (`9:264`, `14:715`) and its\n * phone menu (`21:1688`) from the props alone, so a site needs no markup of its own: the mark and\n * the name in Label S, the \"/\" and the file name, the Live chip with its soft edge and ink dot, the\n * links as file tabs, who is in the file and the action. The Live chip stays at every width; the\n * file name and the people leave on a narrower screen. When the tabs no longer fit, they and the\n * action give their place to a filled \"Menu\" button with a two-line glyph, which opens the\n * whole-screen ink menu as a popover, so the browser opens and closes it with no script: the name\n * and a white \"Close\", the links in display type with their numbers and \"Current · 01\" in the\n * accent, and a foot with the call in the accent, a short note and an email address\n * (`menu-action-text`, `menu-note`, `menu-email`), or whatever is placed in the `menu-foot` slot.\n * The menu stays ink in both themes. A link's `menuLabel` names it in the menu.\n *\n * @category layout\n * @icon header\n * @slot start - The brand: a wordmark or logo, and any chips beside it.\n * @slot middle - The links, usually one nav.\n * @slot presence - Avatars of the people in the file, before the action. Replaces what `presence` draws.\n * @slot end - A status and the call to action.\n * @slot menu-foot - With `look=\"canvas\"`: the foot of the phone menu, in place of the call, the note and the email address the props draw.\n * @csspart menu-button - With `look=\"canvas\"`: the filled Menu button.\n * @csspart menu - With `look=\"canvas\"`: the whole-screen menu.\n * @csspart menu-link - With `look=\"canvas\"`: a link in the menu.\n * @csspart menu-foot - With `look=\"canvas\"`: the menu's foot.\n * @fires {CustomEvent<null>} impakt-action - When the call to action is pressed.\n */\nexport class ImpaktSiteHeader extends ImpaktElement {\n static properties = {\n brand: { type: String },\n logoSrc: { type: String, attribute: 'logo-src' },\n logoAlt: { type: String, attribute: 'logo-alt' },\n home: { type: String },\n badge: { type: String },\n meta: { type: String },\n links: { type: Array },\n label: { type: String },\n menuText: { type: String, attribute: 'menu-text' },\n status: { type: String },\n statusMeta: { type: String, attribute: 'status-meta' },\n statusTone: { type: String, attribute: 'status-tone' },\n actionText: { type: String, attribute: 'action-text' },\n actionHref: { type: String, attribute: 'action-href' },\n fold: { type: String, reflect: true },\n mark: { type: String },\n context: { type: String },\n statusAt: { type: String, reflect: true, attribute: 'status-at' },\n navLook: { type: String, attribute: 'nav-look' },\n current: { type: String },\n presence: { type: Array },\n look: { type: String, reflect: true },\n menuActionText: { type: String, attribute: 'menu-action-text' },\n menuActionHref: { type: String, attribute: 'menu-action-href' },\n menuNote: { type: String, attribute: 'menu-note' },\n menuEmail: { type: String, attribute: 'menu-email' },\n currentText: { type: String, attribute: 'current-text' },\n closeText: { type: String, attribute: 'close-text' },\n };\n /** The site's name, set as a wordmark when there is no logo picture. */\n declare brand: string;\n /** A logo picture, used instead of the wordmark. */\n declare logoSrc: string;\n /** What the logo says. Leave empty to use the brand name. */\n declare logoAlt: string;\n /** Where the brand links to. */\n declare home: string;\n /** A short chip beside the brand, such as \"main\". */\n declare badge: string;\n /** A code-like line after the chip, such as a commit hash. */\n declare meta: string;\n declare links: SiteHeaderLink[];\n /** The name of the links' landmark. */\n declare label: string;\n /** The words on the button that opens the links on a narrow screen. */\n declare menuText: string;\n /** A status before the action, such as the stage the site is at. */\n declare status: string;\n /** A code-like line in the status, such as a hash. */\n declare statusMeta: string;\n declare statusTone: Tone;\n declare actionText: string;\n declare actionHref: string;\n /**\n * How the links fold on a narrow screen. `measure` folds them when they do not fit, which needs\n * script. `narrow` folds them at 40rem in CSS: the Menu button then opens a whole-screen menu\n * with no script, and the header's action moves into that menu. Use `narrow` on a page that may\n * be shown without script.\n */\n declare fold: 'measure' | 'narrow';\n /** A letter or two in a 28px ink square before the name, such as \"i\". Decoration: the name is what is read. */\n declare mark: string;\n /** A path after the name, such as \"home.canvas\", drawn as \"/ home.canvas\". */\n declare context: string;\n /** Where the status sits: `end`, before the action, or `start`, after the name. */\n declare statusAt: 'start' | 'end';\n /** How the links are drawn, passed to `impakt-nav` as its `look`, such as `tabs` for file tabs. */\n declare navLook: string;\n /** The href of the link to mark as the page you are on, passed to the nav; unset, the nav works it out from the address. */\n declare current: string;\n /** The people in the file, drawn as small overlapping avatars. `ink` fills one in ink, as the first of 9:285, and `accent` in the accent. */\n declare presence: Array<{ name: string; initials?: string; accent?: boolean; ink?: boolean }>;\n /** `canvas` is the whole G2 canvas header and its phone menu (`9:264`, `14:715`, `21:1688`). */\n declare look: 'default' | 'canvas';\n /** With `look=\"canvas\"`: the call at the foot of the phone menu, such as \"Book a 30-minute call\". The action's words when left empty. */\n declare menuActionText: string;\n /** Where that call goes. The action's href when left empty. */\n declare menuActionHref: string;\n /** With `look=\"canvas\"`: a short line in the menu's foot, such as \"UK · Cyprus\". */\n declare menuNote: string;\n /** With `look=\"canvas\"`: an email address in the menu's foot, as a mail link. */\n declare menuEmail: string;\n /** With `look=\"canvas\"`: the word before the current page's number in the menu, as in \"Current · 01\". */\n declare currentText: string;\n /** With `look=\"canvas\"`: the words on the button that closes the menu. */\n declare closeText: string;\n\n constructor() {\n super();\n this.brand = '';\n this.logoSrc = '';\n this.logoAlt = '';\n this.home = '/';\n this.badge = '';\n this.meta = '';\n this.links = [];\n this.label = 'Main';\n this.menuText = 'Menu';\n this.status = '';\n this.statusMeta = '';\n this.statusTone = 'success';\n this.actionText = '';\n this.actionHref = '';\n this.fold = 'measure';\n this.mark = '';\n this.context = '';\n this.statusAt = 'end';\n this.navLook = '';\n this.current = '';\n this.presence = [];\n this.look = 'default';\n this.menuActionText = '';\n this.menuActionHref = '';\n this.menuNote = '';\n this.menuEmail = '';\n this.currentText = 'Current';\n this.closeText = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n :host { display: block; container-type: inline-size; }\n /* With a mark, the name is set small beside it, as in the canvas header. */\n .brand.marked { gap: ${space(3)}; font-size: ${fontSize('md')}; letter-spacing: -0.01em; }\n .mark { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; flex: none; background: ${t.text}; color: ${t.surfaceCard}; font-size: ${fontSize('sm')}; font-weight: ${fontWeight('medium')}; }\n .context { font-size: ${fontSize('sm')}; white-space: nowrap; }\n .context .slash { margin-inline-end: ${space(2)}; opacity: 0.72; }\n .presence { display: flex; }\n .presence .avatar { display: inline-grid; place-items: center; inline-size: 22px; block-size: 22px; box-sizing: border-box; margin-inline-start: -6px; border-radius: 50%; border: ${t.borderThin} solid ${t.text}; background: ${t.surfaceCard}; color: ${t.text}; font-family: ${MONO}; font-size: 0.625rem; line-height: 1; }\n .presence .avatar:first-child { margin-inline-start: 0; }\n .presence .avatar.accent { background: ${token('color.accent.default', '#ffd43b')}; color: ${token('color.accent.on', '#111111')}; }\n .presence .avatar.ink { background: ${t.text}; color: ${t.surfaceCard}; }\n @media (forced-colors: active) { .presence .avatar.ink { forced-color-adjust: none; background: CanvasText; color: Canvas; } }\n .bar { display: flex; align-items: center; gap: ${space(6)}; }\n .start { display: flex; align-items: center; gap: ${space(3)}; flex: none; }\n .middle { flex: 1 1 8rem; min-inline-size: 0; display: flex; align-items: center; justify-content: center; }\n .middle ::slotted(*) { flex: 1 1 auto; min-inline-size: 0; }\n slot { display: contents; }\n .brand { display: inline-flex; align-items: center; min-block-size: ${t.targetMin}; color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-weight: ${fontWeight('semibold')}; ${type('2xl')} letter-spacing: -0.02em; line-height: 1; border-radius: ${t.radiusSm}; }\n .brand img { display: block; block-size: 32px; inline-size: auto; }\n .chip { display: inline-flex; align-items: center; gap: ${space(1)}; padding: 2px ${space(2)}; border-radius: ${t.radius}; background: color-mix(in srgb, currentColor 7%, transparent); font-family: ${MONO}; font-size: ${fontSize('xs')}; }\n .chip svg { inline-size: 12px; block-size: 12px; }\n .meta { font-family: ${MONO}; font-size: ${fontSize('xs')}; opacity: 0.72; }\n .middle impakt-nav { flex: 1 1 8rem; }\n /* File tabs sit in one box as wide as the tabs, centred between the name and the action. */\n :host([fold='narrow']) .middle impakt-nav[look='tabs'] { flex: 0 1 auto; }\n .end { display: flex; align-items: center; gap: ${space(3)}; flex: none; }\n .end:empty, .start:empty { display: none; }\n .status { display: inline-flex; align-items: center; gap: ${space(2)}; padding: ${space(1)} ${space(3)}; border: ${t.borderThin} solid ${t.border}; border-radius: var(--impakt-radius-pill, calc(var(--impakt-radius-md, 0.5rem) * 9999)); background: ${t.surfaceCard}; font-family: ${MONO}; font-size: ${fontSize('xs')}; white-space: nowrap; }\n /* Beside the name it is a small square chip: an ink outline, a dot, and the word in monospace capitals. */\n .start .status { padding: 2px ${space(2)}; border-color: ${t.text}; border-radius: ${t.radius}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; }\n .start .status .dot { inline-size: 6px; block-size: 6px; }\n .status .dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--tone); }\n .status .hash { opacity: 0.72; }\n @container (max-width: 22rem) { :host(:not([fold='narrow']):not([look='canvas'])) .bar { flex-wrap: wrap; row-gap: ${space(2)}; } :host(:not([fold='narrow']):not([look='canvas'])) .end { flex: 1 1 100%; } }\n @container (max-width: 56rem) { .chip, .meta, .status, .context, .presence { display: none; } .bar { gap: ${space(3)}; } }\n /* With no script the links cannot fold behind a Menu button. On a narrow screen they take a\n line of their own under the name and the action, and wrap there. */\n @container (max-width: 40rem) {\n :host(:not(:defined):not([fold='narrow']):not([look='canvas'])) .bar { flex-wrap: wrap; row-gap: ${space(1)}; }\n :host(:not(:defined):not([fold='narrow']):not([look='canvas'])) .start { flex: 1 1 auto; }\n /* Its row may be narrower than the links, which then wrap: the max-content floor below is for the measured header only. */\n :host(:not(:defined):not([fold='narrow']):not([look='canvas'])) .middle { order: 3; flex: 1 1 100%; justify-content: flex-start; min-inline-size: 0; }\n /* fold=\"narrow\": the links are behind the Menu button, which sits at the end, and the action moves into the menu. */\n :host([fold='narrow']) .middle { justify-content: flex-end; }\n /*\n * The measured links get only the room left beside the brand and the end slot, whatever the end slot holds, so\n * they fold behind the Menu button when they do not fit there (#55). A floor at the links' own width would give\n * them the room they ask for and push the end slot off the screen instead. Once folded, the Menu button keeps\n * its whole width, so it never spills over the brand.\n */\n :host(:not([fold='narrow'])) .middle { justify-content: flex-end; min-inline-size: 0; }\n :host(:not([fold='narrow'])) .middle:has(impakt-nav[folded]) { min-inline-size: max-content; }\n :host(:not([fold='narrow'])) .middle ::slotted(impakt-nav[folded]) { flex: none; min-inline-size: max-content; }\n :host([fold='narrow']) .end > slot > impakt-button { display: none; }\n }\n /*\n * look=\"canvas\": the G2 top bar (9:264, 14:715). The mark and the name in Label S, 14px medium; the \"/\" in the subtle\n * text and the file name in the muted; the Live chip with a soft edge, a 3px corner and an ink dot, in G2 Mono S.\n */\n .menu-button, .sheet { display: none; }\n /* The bar keeps the frame's 16px gutters of its own, and the tab track hugs its tabs, centred between the name and the end. */\n :host([look='canvas']) .bar { min-block-size: 56px; padding-inline: 16px; }\n :host([look='canvas']) .middle impakt-nav { flex: 0 1 auto; }\n :host([look='canvas']) .end { gap: 16px; }\n /* The people of 9:285: 22px avatars 4px over each other, their letters in G2 Mono S. */\n :host([look='canvas']) .presence .avatar { margin-inline-start: -4px; font-size: 0.6875rem; letter-spacing: 0.06em; text-indent: 0.06em; }\n :host([look='canvas']) .presence .avatar:first-child { margin-inline-start: 0; }\n :host([look='canvas']) .start { gap: 10px; }\n :host([look='canvas']) .brand.marked { gap: 10px; font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight('medium')}; line-height: 1.2; letter-spacing: 0; }\n :host([look='canvas']) .mark { font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight('medium')}; line-height: 1.2; }\n :host([look='canvas']) .context { font-family: ${t.fontBody}; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }\n :host([look='canvas']) .context .slash { margin-inline-end: 10px; opacity: 1; color: ${token('color.text.subtle', 'currentColor')}; }\n :host([look='canvas']) .start .status { display: inline-flex; gap: 6px; padding: 3px 7px; background: ${t.surfaceCard}; border: 1px solid ${token('color.line.soft', '#CFCCC5')}; border-radius: 3px; color: ${t.textMuted}; font-family: ${MONO}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; }\n :host([look='canvas']) .start .status .dot { inline-size: 6px; block-size: 6px; background: ${t.text}; }\n /* The filled Menu button of 14:715: \"Menu\" and a two-line glyph after it. */\n :host([look='canvas']) .menu-button { align-items: center; gap: 10px; padding: 9px 14px; border: 0; border-radius: 0; background: ${t.text}; color: ${t.surfaceCard}; font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight('medium')}; line-height: 1.2; cursor: pointer; }\n .glyph { display: inline-block; inline-size: 14px; block-size: 6px; box-sizing: border-box; border-block: 1.5px solid currentColor; }\n /*\n * The tabs, the file name, the people and the action need about 70rem in one row. Narrower, the file name and the\n * people leave first, as decoration; at 60rem and under the tabs and the action give their place to the Menu button.\n */\n @container (max-width: 70rem) { :host([look='canvas']) :is(.context, .presence) { display: none; } }\n @container (max-width: 60rem) {\n :host([look='canvas']) .middle, :host([look='canvas']) .end > slot > impakt-button.act { display: none; }\n :host([look='canvas']) .bar { justify-content: space-between; }\n :host([look='canvas']) .menu-button { display: inline-flex; }\n }\n /* The open menu (21:1688): ink in both themes, the whole screen, opened by the browser as a popover. */\n .sheet:popover-open { display: flex; flex-direction: column; position: fixed; inset: 0; box-sizing: border-box; inline-size: 100%; block-size: 100%; max-inline-size: none; max-block-size: none; margin: 0; padding: 0; border: 0; overflow: auto; overscroll-behavior: contain; background: ${ink}; color: ${onInk}; }\n .menu-bar { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; box-sizing: border-box; min-block-size: 56px; padding: 0 ${space(4)}; border-block-end: 1px solid ${inkLine}; }\n .menu-bar .brand.marked { gap: 10px; font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight('medium')}; line-height: 1.2; letter-spacing: 0; }\n .menu-bar .mark { background: ${onInk}; color: ${ink}; font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight('medium')}; }\n .close { display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px; border: 0; border-radius: 0; background: ${onInk}; color: ${ink}; font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight('medium')}; line-height: 1.2; cursor: pointer; }\n .menu-nav { flex: 1; padding: ${space(8)} 20px 0; }\n .menu-nav ol { list-style: none; margin: 0; padding: 0; }\n .menu-nav li { border-block-end: 1px solid ${inkLine}; }\n .menu-nav a { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding-block: 18px; color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 13.4vw, 3.25rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.05em; }\n .menu-nav a:hover .words { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }\n .menu-nav .number { flex: none; font-family: ${MONO}; font-size: 0.8125rem; font-weight: ${fontWeight('regular')}; line-height: 1.5; letter-spacing: 0; color: ${inkMuted}; }\n /* The page you are on is in the accent, and its number says \"Current\", so it is not told by colour alone. */\n .menu-nav a[aria-current], .menu-nav a[aria-current] .number { color: ${accentOnInk}; }\n .menu-foot { display: flex; flex-direction: column; align-items: flex-start; gap: ${space(4)}; padding: ${space(8)} 20px calc(${space(8)} + env(safe-area-inset-bottom)); }\n .menu-foot:empty { display: none; }\n .call { display: flex; align-items: center; justify-content: space-between; gap: ${space(3)}; align-self: stretch; box-sizing: border-box; min-block-size: 47px; padding: 0 20px; background: ${accent}; color: ${accentOn}; text-decoration: none; font-family: ${t.fontBody}; font-size: 1rem; font-weight: ${fontWeight('medium')}; line-height: 1.2; }\n .call:hover .words { text-decoration: underline; text-underline-offset: 0.2em; }\n /* The call's arrow slides forward when it is pointed at or focused (impkt-web#51). */\n .call .go { display: inline-block; transition: translate ${R.arrowDuration} ${R.arrowEasing}; }\n .call:is(:hover, :focus-visible) .go { translate: ${R.arrowDistance} 0; }\n @media (prefers-reduced-motion: reduce) { .call .go { transition: none; } }\n .note { margin: 0; font-family: ${MONO}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${inkMuted}; }\n .mail { display: inline-flex; align-items: center; min-block-size: 24px; color: inherit; font-family: ${t.fontBody}; font-size: 1rem; line-height: 1.45; text-decoration: none; }\n .mail:hover { text-decoration: underline; text-underline-offset: 0.2em; }\n /* What is slotted at the foot is read on ink too. */\n .menu-foot ::slotted(*) { --impakt-color-text-default: ${onInk}; --impakt-color-text-heading: ${onInk}; --impakt-color-text-muted: ${inkMuted}; --impakt-color-text-link: ${onInk}; --impakt-color-text-link-hover: ${onInk}; color: ${onInk}; }\n @media (forced-colors: active) {\n :host([look='canvas']) .menu-button, .close, .call { border: 1px solid ButtonText; }\n .sheet:popover-open { border: 1px solid CanvasText; }\n :host([look='canvas']) .start .status .dot { background: CanvasText; }\n }\n `,\n ];\n\n private act(): void {\n this.dispatchEvent(new CustomEvent('impakt-action', { bubbles: true, composed: true }));\n }\n\n /** The brand link: the mark and the name, or the logo. */\n private renderBrand(): TemplateResult | typeof nothing {\n if (!this.brand && !this.logoSrc) return nothing;\n const wordmark = this.logoSrc ? html`<img src=${this.logoSrc} alt=${this.logoAlt || this.brand} />` : html`${this.brand}`;\n return 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}${wordmark}</a>`;\n }\n\n /**\n * look=\"canvas\": the filled Menu button and the whole-screen menu (14:715, 21:1688). They are tied by\n * `popovertarget`, so the browser opens and closes the menu, moves on to it with Tab, closes it on Escape and\n * tells a screen reader whether it is open, with no script.\n */\n private renderMenu(): TemplateResult {\n const panel = this.id_('menu');\n const callText = this.menuActionText || this.actionText;\n const callHref = this.menuActionHref || this.actionHref;\n return html`<button class=\"menu-button\" type=\"button\" part=\"menu-button\" popovertarget=${panel}>${this.menuText}<span class=\"glyph\" aria-hidden=\"true\"></span></button>\n <div id=${panel} class=\"sheet\" popover=\"auto\" part=\"menu\" role=\"dialog\" aria-label=${this.menuText}>\n <div class=\"menu-bar\">\n ${this.renderBrand()}\n <button class=\"close\" type=\"button\" popovertarget=${panel} popovertargetaction=\"hide\">${this.closeText || say('Close')}<svg viewBox=\"0 0 10 10\" width=\"10\" height=\"10\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.2\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M1 1l8 8M9 1 1 9\" /></svg></button>\n </div>\n <nav class=\"menu-nav\" aria-label=${this.label || nothing}>\n <ol role=\"list\">\n ${(this.links ?? []).map((link, index) => {\n const here = linkCurrent(link.href, this.current);\n const number = String(index + 1).padStart(2, '0');\n return html`<li>\n <a href=${link.href} part=\"menu-link\" aria-current=${here === 'page' ? 'page' : here === 'section' ? 'true' : nothing}\n ><span class=\"words\">${link.menuLabel || link.label}</span><span class=\"number\" aria-hidden=\"true\">${here && this.currentText ? `${this.currentText} · ${number}` : number}</span></a\n >\n </li>`;\n })}\n </ol>\n </nav>\n <div class=\"menu-foot\" part=\"menu-foot\"><slot name=\"menu-foot\">${callText ? html`<a class=\"call\" href=${callHref || nothing}><span class=\"words\">${callText}</span><span class=\"go\" aria-hidden=\"true\">→</span></a>` : nothing}${this.menuNote ? html`<p class=\"note\">${this.menuNote}</p>` : nothing}${this.menuEmail ? html`<a class=\"mail\" href=${`mailto:${this.menuEmail}`}>${this.menuEmail}</a>` : nothing}</slot></div>\n </div>`;\n }\n\n render(): TemplateResult {\n const canvas = this.look === 'canvas';\n const statusAt = canvas ? 'start' : this.statusAt;\n const status = this.status\n ? html`<span class=\"status\" part=\"status\" style=${`--tone:${toneOf(this.statusTone, 0)}`}><span class=\"dot\" aria-hidden=\"true\"></span>${this.status}${this.statusMeta ? html` <span class=\"hash\">${this.statusMeta}</span>` : nothing}</span>`\n : nothing;\n const presence = this.presence ?? [];\n // In the canvas look the links are file tabs, folded by the header itself, so the nav never measures or folds them.\n const fold = canvas ? 'narrow' : this.fold;\n const navLook = this.navLook || (canvas ? 'tabs' : '');\n // Each region shows what is placed in its slot, or, when nothing is, what the props describe.\n return html`<div class=\"bar\" part=\"bar\">\n <div class=\"start\"><slot name=\"start\">\n ${this.renderBrand()}\n ${this.context ? html`<span class=\"context\" part=\"context\"><span class=\"slash\" aria-hidden=\"true\">/</span>${this.context}</span>` : nothing}\n ${statusAt === 'start' ? status : nothing}\n ${this.badge ? html`<span class=\"chip\" part=\"badge\"><svg viewBox=\"0 0 14 14\" aria-hidden=\"true\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"><circle cx=\"3.5\" cy=\"3\" r=\"1.5\"/><circle cx=\"3.5\" cy=\"11\" r=\"1.5\"/><circle cx=\"10.5\" cy=\"4.5\" r=\"1.5\"/><path d=\"M3.5 4.5v5M10.5 6c0 2.5-3 2.5-6 4\"/></svg>${this.badge}</span>` : nothing}\n ${this.meta ? html`<span class=\"meta\" part=\"meta\">${this.meta}</span>` : nothing}\n </slot></div>\n <div class=\"middle\"><slot name=\"middle\">${(this.links ?? []).length ? html`<impakt-nav align=\"center\" size=\"sm\" fold=${fold} look=${navLook || nothing} .current=${this.current} .links=${this.links} .label=${this.label} .menuText=${this.menuText} .actionText=${fold === 'narrow' && !canvas ? this.actionText : ''} .actionHref=${this.actionHref}></impakt-nav>` : nothing}</slot></div>\n <div class=\"end\"><slot name=\"presence\">${\n presence.length\n ? html`<span class=\"presence\" part=\"presence\">${presence.map(\n (person) =>\n html`<span class=${person.ink ? 'avatar ink' : person.accent ? 'avatar accent' : 'avatar'} role=\"img\" aria-label=${person.name}>${person.initials ?? person.name.slice(0, 1).toUpperCase()}</span>`,\n )}</span>`\n : nothing\n }</slot><slot name=\"end\">\n ${statusAt === 'start' ? nothing : status}\n ${this.actionText ? html`<impakt-button class=\"act\" variant=\"primary\" size=\"sm\" icon-after=\"arrow-right\" href=${this.actionHref || nothing} @click=${this.act}>${this.actionText}</impakt-button>` : nothing}\n </slot>${canvas ? this.renderMenu() : nothing}</div>\n </div>`;\n }\n}\n\n/**\n * The site's name as a wordmark, or its logo, linking home: the start of a\n * site header.\n *\n * @category layout\n * @icon logo\n */\nexport class ImpaktWordmark extends ImpaktElement {\n static properties = {\n text: { type: String },\n src: { type: String },\n alt: { type: String },\n href: { type: String },\n size: { type: String, reflect: true },\n hideOn: { type: String, reflect: true, attribute: 'hide-on' },\n };\n /** The name, set in the heading face. */\n declare text: string;\n /** A logo picture, used instead of the name. */\n declare src: string;\n /** What the logo says. Leave empty to use the name. */\n declare alt: string;\n declare href: string;\n /** Larger on a wide header, smaller on a phone's. */\n declare size: 'sm' | 'md' | 'lg';\n declare hideOn: 'never' | 'phone' | 'wide';\n\n constructor() {\n super();\n this.text = '';\n this.src = '';\n this.alt = '';\n this.href = '/';\n this.size = 'md';\n this.hideOn = 'never';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n hideOn,\n css`\n :host { display: inline-flex; align-items: center; flex: none; }\n a { color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-weight: ${fontWeight('semibold')}; letter-spacing: -0.02em; line-height: 1; border-radius: ${t.radiusSm}; }\n :host([size='sm']) a { ${type('xl')} } :host([size='md']) a { ${type('2xl')} } :host([size='lg']) a { ${type('3xl')} }\n img { display: block; block-size: 32px; inline-size: auto; }\n @media (max-width: 40rem) { :host([size='md']) a, :host([size='lg']) a { ${type('xl')} } }\n `,\n ];\n\n render(): TemplateResult {\n // The name arrives as the element's words when a page places it, or as `text` when it is set directly.\n return html`<a href=${this.href || '/'} part=\"link\">${this.src ? html`<img src=${this.src} alt=${this.alt || this.text || this.textContent?.trim() || ''} />` : html`<slot>${this.text}</slot>`}</a>`;\n }\n}\n\n/** One line of a footer's log: a code, what it says, and the colour of its dot. */\nexport interface FooterLogLine {\n meta?: string;\n text: string;\n tone?: Tone;\n}\n\n/** A column of footer links under a short heading. */\nexport interface FooterColumn {\n heading: string;\n links: NavLink[];\n}\n\n/**\n * The site footer: the footer band with the brand set large, an optional log of\n * lines beside it, columns of links, a legal line and a stripe of the brand's\n * colours along the foot.\n *\n * Each column is a list under its own heading, so a screen reader can move\n * from one to the next. The log is a list too; its dots are decoration.\n *\n * `action-text` and `action-href` put one outlined action at the end of the\n * columns' row, such as \"Back to top\". `tagline` sets a short line at the\n * other end of the legal line, such as \"Pixel to production\". On a phone the\n * columns sit two by two.\n *\n * @category layout\n * @icon footer\n */\nexport class ImpaktSiteFooter extends ImpaktElement {\n static properties = {\n brand: { type: String },\n brandSize: { type: String, reflect: true, attribute: 'brand-size' },\n log: { type: Array },\n columns: { type: Array },\n columnsOnPhone: { type: String, attribute: 'columns-on-phone', reflect: true },\n legal: { type: String },\n stripe: { type: Boolean, reflect: true },\n headingLevel: { type: Number, attribute: 'heading-level' },\n actionText: { type: String, attribute: 'action-text' },\n actionHref: { type: String, attribute: 'action-href' },\n tagline: { type: String },\n };\n /** The site's name, set large. */\n declare brand: string;\n /**\n * How large the name is set. `display` runs it the full width of the footer,\n * under the columns, sized by the footer's own width so it never spills at\n * 320px.\n */\n declare brandSize: 'lg' | 'display';\n /** Lines set in code type under the brand, newest first. The first is bright. */\n declare log: FooterLogLine[];\n declare columns: FooterColumn[];\n /** `hidden` leaves the link columns out on a phone, so the footer there is the name, the lines and the legal line. */\n declare columnsOnPhone: 'shown' | 'hidden';\n /** The line at the foot, such as the copyright. */\n declare legal: string;\n /** A stripe of the brand's colours along the bottom edge. */\n declare stripe: boolean;\n /** The level of each column's heading. */\n declare headingLevel: 2 | 3 | 4;\n /** The words on an outlined action at the end of the columns' row, such as \"Back to top\". */\n declare actionText: string;\n /** Where that action goes, such as \"#top\". */\n declare actionHref: string;\n /** A short line at the end of the legal line, such as \"Pixel to production\". */\n declare tagline: string;\n\n constructor() {\n super();\n this.brand = '';\n this.brandSize = 'lg';\n this.log = [];\n this.columns = [];\n this.columnsOnPhone = 'shown';\n this.legal = '';\n this.stripe = false;\n this.headingLevel = 2;\n this.actionText = '';\n this.actionHref = '';\n this.tagline = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n /* The page frame's footer band gives the colours; this sits flush with its foot so the stripe meets the edge. */\n :host { display: block; container-type: inline-size; position: relative; padding-block: ${space(8)} ${space(4)}; margin-block-end: calc(-1 * ${space(8)}); }\n .top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: ${space(10)}; }\n .brand { margin: 0; font-family: ${t.fontHeading}; font-weight: ${fontWeight('bold')}; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }\n /* The name as a wordmark across the whole footer, under the columns. */\n :host([brand-size='display']) .top { grid-template-columns: 1fr; }\n :host([brand-size='display']) .top > div:first-child { order: 2; }\n /*\n * The G2 footer (10:728, 15:1099): a 1px rule across the top of the columns, the wordmark straight under them as wide as\n * the content (350px on a 1080px column, 343px of glyphs on a 350px phone column), and the legal line and the tagline\n * on one row under it in the 13px code face (#52).\n */\n :host([brand-size='display']) .top { gap: 0; }\n :host([brand-size='display']) .row { padding-block: 28px 40px; border-block-start: ${t.borderThin} solid currentColor; }\n :host([brand-size='display']) .brand { font-weight: ${fontWeight('semibold')}; font-size: clamp(3rem, 32.3cqi, 24rem); line-height: 0.9; letter-spacing: -0.06em; overflow-wrap: anywhere; }\n :host([brand-size='display']) :is(.legal, .tagline) { font-size: 0.8125rem; line-height: 1.5; }\n :host([brand-size='display']) .legal, :host([brand-size='display']) .foot { margin-block-start: ${space(6)}; }\n :host([brand-size='display']) .foot .legal { margin: 0; }\n @container (min-width: 48rem) { :host([brand-size='display']) .foot { flex-wrap: nowrap; } :host([brand-size='display']) .foot .legal { flex: 0 1 auto; min-inline-size: 0; } :host([brand-size='display']) .tagline { flex: none; } }\n ul { list-style: none; margin: 0; padding: 0; }\n .log { margin-block-start: ${space(8)}; display: grid; gap: ${space(3)}; font-family: ${MONO}; font-size: ${fontSize('sm')}; }\n .log li { display: flex; align-items: center; gap: ${space(3)}; opacity: 0.72; }\n .log li:first-child { opacity: 1; }\n .log .dot { flex: none; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--tone); }\n .log .code { margin-inline-end: ${space(3)}; }\n .columns { display: grid; grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr)); gap: ${space(8)}; }\n .h { margin: 0 0 ${space(4)}; font-family: ${MONO}; font-size: ${fontSize('xs')}; font-weight: ${fontWeight('medium')}; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; }\n .columns ul { display: grid; gap: ${space(3)}; }\n a { color: inherit; text-decoration: none; font-weight: ${fontWeight('medium')}; border-radius: ${t.radiusSm}; }\n a:hover { text-decoration: underline; text-underline-offset: 0.25em; }\n .legal { margin: ${space(16)} 0 0; font-family: ${MONO}; font-size: ${fontSize('xs')}; opacity: 0.72; }\n .foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: ${space(2)} ${space(6)}; margin-block-start: ${space(16)}; }\n .foot .legal { margin: 0; }\n .tagline { margin: 0; font-family: ${MONO}; font-size: ${fontSize('xs')}; opacity: 0.72; text-align: end; }\n .row { display: flex; align-items: flex-start; gap: ${space(8)}; }\n .row .columns { flex: 1; }\n .row impakt-button { flex: none; }\n .stripe { position: absolute; inset-inline: -100vmax; inset-block-end: 0; block-size: 6px; display: flex; }\n .stripe span { flex: 1; }\n @container (max-width: 48rem) { .top { grid-template-columns: 1fr; } .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } .row { flex-direction: column; } }\n @container (max-width: 40rem) { :host([columns-on-phone='hidden']) .columns { display: none; } }\n @media (forced-colors: active) { :host { border-block-start: 1px solid CanvasText; } .log .dot { border: 1px solid CanvasText; } }\n `,\n ];\n\n private heading(text: string): TemplateResult {\n const level = Math.min(Math.max(this.headingLevel || 2, 2), 4);\n return level === 3 ? html`<h3 class=\"h\">${text}</h3>` : level === 4 ? html`<h4 class=\"h\">${text}</h4>` : html`<h2 class=\"h\">${text}</h2>`;\n }\n\n render(): TemplateResult {\n const log = this.log ?? [];\n return html`<div part=\"footer\">\n <div class=\"top\">\n <div>\n ${this.brand ? html`<p class=\"brand\" part=\"brand\">${this.brand}</p>` : nothing}\n ${log.length ? html`<ul class=\"log\" part=\"log\">${log.map((line, i) => html`<li style=${`--tone:${toneOf(line.tone ?? (i === 0 ? 'success' : 'accent'), i)}`}><span class=\"dot\" aria-hidden=\"true\"></span><span>${line.meta ? html`<span class=\"code\">${line.meta}</span>` : nothing}${line.text}</span></li>`)}</ul>` : nothing}\n </div>\n <div class=\"row\">\n <div class=\"columns\" part=\"columns\" style=${`--count:${Math.max(1, (this.columns ?? []).length)}`}>\n ${(this.columns ?? []).map((column) => html`<div>${this.heading(column.heading)}<ul>${(column.links ?? []).map((link) => html`<li><a href=${link.href}>${link.label}</a></li>`)}</ul></div>`)}\n </div>\n ${this.actionText ? html`<impakt-button variant=\"outline\" icon-after=\"arrow-right\" href=${this.actionHref || nothing} part=\"action\">${this.actionText}</impakt-button>` : nothing}\n </div>\n </div>\n ${\n this.tagline\n ? html`<div class=\"foot\">${this.legal ? html`<p class=\"legal\" part=\"legal\">${this.legal}</p>` : html`<span></span>`}<p class=\"tagline\" part=\"tagline\">${this.tagline}</p></div>`\n : this.legal\n ? html`<p class=\"legal\" part=\"legal\">${this.legal}</p>`\n : nothing\n }\n ${this.stripe ? html`<div class=\"stripe\" aria-hidden=\"true\">${STRIPE.map((i) => html`<span style=${`background:${toneOf(undefined, i)}`}></span>`)}</div>` : nothing}\n </div>`;\n }\n}\n\ncustomElements.define('impakt-site-header', ImpaktSiteHeader);\ncustomElements.define('impakt-wordmark', ImpaktWordmark);\ncustomElements.define('impakt-site-footer', ImpaktSiteFooter);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-site-header': ImpaktSiteHeader;\n 'impakt-wordmark': ImpaktWordmark;\n 'impakt-site-footer': ImpaktSiteFooter;\n }\n}\n"],"mappings":";;;;;;;;;;AAWA,SAAS,KAAK,MAAM,eAAoC;AAExD;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,OAGK;AAOP,IAAM,QAAQ,MAAM,gBAAgB,SAAS;AAI7C,IAAM,SAAS,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;AAG7B,IAAM,OAAO,EAAE;AAkDR,IAAM,mBAAN,cAA+B,cAAc;AAAA,EAClD;AAAA,SAAO,aAAa;AAAA,MAClB,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,SAAS,EAAE,MAAM,QAAQ,WAAW,WAAW;AAAA,MAC/C,SAAS,EAAE,MAAM,QAAQ,WAAW,WAAW;AAAA,MAC/C,MAAM,EAAE,MAAM,OAAO;AAAA,MACrB,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,MAAM,EAAE,MAAM,OAAO;AAAA,MACrB,OAAO,EAAE,MAAM,MAAM;AAAA,MACrB,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,UAAU,EAAE,MAAM,QAAQ,WAAW,YAAY;AAAA,MACjD,QAAQ,EAAE,MAAM,OAAO;AAAA,MACvB,YAAY,EAAE,MAAM,QAAQ,WAAW,cAAc;AAAA,MACrD,YAAY,EAAE,MAAM,QAAQ,WAAW,c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