@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomic-ui/blocks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "The section blocks Impakt sites are built from: marketing blocks, property and selling tools, the site frame and the changelog blocks, as standard custom elements built on @atomic-ui/ui to WCAG 2.2 AA.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"lit": "^3.3.3",
|
|
34
|
-
"@atomic-ui/ui": "^0.
|
|
34
|
+
"@atomic-ui/ui": "^0.14.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"tsx": "^4.16.0",
|
|
45
45
|
"typescript": "^5.5.0",
|
|
46
46
|
"vitest": "^2.0.0",
|
|
47
|
-
"@atomic-ui/design-tokens": "^0.
|
|
47
|
+
"@atomic-ui/design-tokens": "^0.14.0"
|
|
48
48
|
},
|
|
49
49
|
"customElements": "custom-elements.json",
|
|
50
50
|
"files": [
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/studio.ts"],"sourcesContent":["/**\n * The blocks a studio's own site is built from: the numbered list of work, a\n * row of figures, and the questions at the foot of a page.\n */\nimport { css, html, nothing, type TemplateResult } from 'lit';\nimport {\n ImpaktElement,\n focusRing,\n fontSize,\n fontWeight,\n lineHeight,\n lockScroll,\n space,\n spaceAround,\n t,\n token,\n unlockScroll,\n type NavLink,\n} from '@atomic-ui/ui';\n\n/** One project in a list of work. */\nexport interface WorkItem {\n id?: string;\n /** The project's name, set large. */\n name: string;\n /** What it is and who it is for, such as \"Web platform · Automotive\". */\n meta?: string;\n /** Where the row goes when it is pressed. Leave empty for a row that goes nowhere: it has no arrow and does not turn to ink. */\n href?: string;\n /** A sentence about it, in its own column, such as \"Audits a website against WCAG 2.2 and writes the fixes.\" */\n text?: string;\n /** A short status, set in capitals, such as \"Available now\" or \"Coming soon\". The word carries the status. */\n badge?: string;\n /** A price line under the badge, such as \"From £59 a month\". */\n price?: string;\n /** Keep the row in ink, with the badge and the arrow in the accent: the one item the page wants seen first. */\n featured?: boolean;\n /** A picture shown, tilted, beside the pointer while the row is pointed at. It is decoration and is not read. */\n preview?: string;\n /** A small caption on the preview card, such as \"Harbour · Cover · 4:3\". */\n previewLabel?: string;\n}\n\n/** The arrow at the end of a row that goes somewhere. Drawn, so no font has to hold the glyph. */\nconst arrow = html`<svg viewBox=\"0 0 22 22\" width=\"22\" height=\"22\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"M5 17 17 5M8 5h9v9\" />\n</svg>`;\n\n/**\n * A numbered list of projects, each name set large: the work on a studio's\n * home page, or the index on its work page.\n *\n * **Each row is one link.** The link sits on the project's name, which is a\n * heading, and is stretched over the row, so the whole row can be pressed\n * while a screen reader meets one link with one name (2.4.4, 2.5.8). The\n * number and the arrow are decoration and are hidden from it; the list itself\n * says how many projects there are and which one this is (1.3.1).\n *\n * **Pointing at a row and focusing it look the same.** The row turns to the\n * text colour with the card colour on it, a pair every brand's tokens already\n * hold at 4.5:1, so the state never depends on a colour of its own (1.4.3,\n * 1.4.11). The focus ring is still drawn over it (2.4.7).\n *\n * The names shrink with the block's own width, not the window's, so the list\n * reads the same in a narrow column as on a phone (1.4.10).\n *\n * **A row can say more.** `text` adds a description column, `badge` a status\n * word in capitals and `price` a line under it, so the same list sets out a\n * studio's work or a shop of tools. A `featured` row stays in ink with its\n * badge and arrow in the accent. `columns` draws a line of column names above\n * the rows, such as \"No.\", \"Project\" and \"Type · Sector\"; it is decoration,\n * since each row's own words already say what they are.\n *\n * **A row can show a picture as it is pointed at.** Give it `preview` and a\n * card with the picture follows the pointer, tilted. It is shown only to a\n * mouse, never on touch or with reduced motion asked for, and it is hidden\n * from a screen reader: the row's name already says what it is.\n *\n * @category content\n * @icon list\n */\nexport class ImpaktWorkList extends ImpaktElement {\n static properties = {\n items: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n start: { type: Number },\n label: { type: String },\n columns: { type: Array },\n preview: { state: true },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The projects, in order. */\n declare items: WorkItem[];\n /** The heading level of each project's name. It depends on what is above the list on the page. */\n declare headingLevel: number;\n /** The number the first project is given. */\n declare start: number;\n /** A name for the list, so a screen reader can tell it from other lists on the page. Leave empty for none. */\n declare label: string;\n /**\n * Column names drawn above the rows, in monospace capitals: the first over\n * the numbers, the second over the names, and the rest, joined with \" · \",\n * over the last column, such as `[\"No.\", \"Project\", \"Type · Sector\"]`.\n * Leave empty for none.\n */\n declare columns: string[];\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n /** The preview being shown, with where the pointer is. */\n declare private preview: { src: string; label: string; x: number; y: number } | null;\n\n constructor() {\n super();\n this.items = [];\n this.headingLevel = 3;\n this.start = 1;\n this.label = '';\n this.columns = [];\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n this.preview = null;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n spaceAround,\n css`\n :host { display: block; position: relative; container: impakt-work-list / inline-size; --impakt-work-accent: ${token('color.accent.default', '#ffd43b')}; --impakt-work-on-accent: ${token('color.accent.on', '#111111')}; }\n ol { list-style: none; margin: 0; padding: 0; border-block-start: ${t.borderThin} solid ${t.text}; }\n .columns + ol { border-block-start: 0; }\n li, .columns { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto 22px; align-items: center; column-gap: ${space(6)}; padding: ${space(5)} ${space(8)}; }\n .texts li, .texts.columns { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1fr) auto 22px; }\n li { position: relative; border-block-end: ${t.borderThin} solid ${t.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }\n .columns { padding-block: ${space(3)}; border-block-end: ${t.borderThin} solid ${t.text}; font-family: ${t.fontMono}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n .columns .last { grid-column: -3; text-align: end; }\n .number { font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; font-variant-numeric: tabular-nums; color: ${t.textMuted}; }\n .name { font-family: ${t.fontHeading}; font-size: clamp(2rem, 7cqi, 4.5rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.05em; color: ${t.text}; overflow-wrap: anywhere; }\n .texts .name { font-size: clamp(2rem, 5cqi, 3.5rem); }\n .name a { color: inherit; text-decoration: none; }\n /* The link is stretched over the row, so the row is one target. */\n .name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }\n .name a:focus-visible { outline: none; }\n .name a:focus-visible::after { box-shadow: ${t.focusShadow}; }\n .text { margin: 0; font-size: ${fontSize('md')}; line-height: ${lineHeight('normal')}; color: ${t.textMuted}; }\n .side { display: flex; flex-direction: column; align-items: flex-end; gap: ${space(2)}; text-align: end; }\n .meta, .price { font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n .price { font-size: 0.6875rem; }\n /* Marketing badges are monospace capitals at 11px. A row that goes somewhere has a solid one; one that does not yet has an outline. */\n .badge { display: inline-block; padding: ${space(1)} ${space(2.5)}; font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: ${t.trackingWide}; text-transform: uppercase; white-space: nowrap; color: ${t.surfaceCard}; background: ${t.text}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusSm}; }\n li:not(:has(a)) .badge { color: ${t.text}; background: transparent; }\n .arrow { display: flex; color: ${t.text}; }\n /* Pointed at, focused or featured, the row turns to ink. The card colour on the text colour is a pair every brand already holds at 4.5:1. */\n li:has(a):hover, li:has(a:focus-visible), li.featured { background: ${t.text}; }\n li:has(a):hover .name, li:has(a:focus-visible) .name, li.featured .name { color: ${t.surfaceCard}; }\n li:has(a):hover :is(.number, .meta, .text, .price), li:has(a:focus-visible) :is(.number, .meta, .text, .price), li.featured :is(.number, .meta, .text, .price) { color: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); }\n li:has(a):hover .badge, li:has(a:focus-visible) .badge { color: ${t.text}; background: ${t.surfaceCard}; border-color: ${t.surfaceCard}; }\n li:has(a):hover .arrow, li:has(a:focus-visible) .arrow, li.featured .arrow { color: var(--impakt-work-accent); }\n li.featured .badge { color: var(--impakt-work-on-accent); background: var(--impakt-work-accent); border-color: var(--impakt-work-accent); }\n /* The preview card follows the pointer. Only its transform changes, so it costs no layout. */\n .preview { position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 2; inline-size: 15rem; box-sizing: border-box; padding: ${space(2)}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; box-shadow: 0 16px 32px rgb(0 0 0 / 0.2); pointer-events: none; transform: translate(var(--x), var(--y)) translate(-50%, -50%) rotate(-3deg); }\n .preview img { display: block; inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; }\n .preview span { display: block; padding-block-end: ${space(2)}; font-family: ${t.fontMono}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n @container impakt-work-list (max-width: 40rem) {\n li, .texts li { grid-template-columns: 2rem minmax(0, 1fr) auto; column-gap: ${space(3)}; padding-inline: ${space(4)}; }\n .text { grid-column: 2 / -1; grid-row: 2; margin-block-start: ${space(2)}; }\n .side { grid-column: 2 / -1; grid-row: 3; align-items: flex-start; text-align: start; margin-block-start: ${space(2)}; }\n li:not(:has(.text)) .side { grid-row: 2; }\n .arrow { grid-column: 3; grid-row: 1; }\n .columns { display: none; }\n }\n @media (prefers-reduced-motion: reduce) { li { transition: none; } .preview { display: none; } }\n @media (forced-colors: active) {\n li:has(a):hover, li:has(a:focus-visible), li.featured { background: Canvas; outline: 2px solid Highlight; outline-offset: -2px; }\n li:has(a):hover :is(.name, .number, .meta, .arrow, .text, .price), li:has(a:focus-visible) :is(.name, .number, .meta, .arrow, .text, .price), li.featured :is(.name, .number, .meta, .arrow, .text, .price) { color: CanvasText; }\n .badge, li.featured .badge { color: CanvasText; background: Canvas; border-color: CanvasText; }\n }\n `,\n ];\n\n /** Show a row's preview beside a mouse pointer. Touch and reduced motion get none. */\n private point(event: PointerEvent, item: WorkItem): void {\n if (!item.preview || event.pointerType !== 'mouse' || window.matchMedia?.('(prefers-reduced-motion: reduce)').matches) {\n if (this.preview) this.preview = null;\n return;\n }\n const box = this.getBoundingClientRect();\n this.preview = { src: item.preview, label: item.previewLabel ?? '', x: event.clientX - box.left, y: event.clientY - box.top };\n }\n\n private columnRow(texts: boolean): TemplateResult | typeof nothing {\n const columns = this.columns ?? [];\n if (!columns.length) return nothing;\n const [number, name, ...rest] = columns;\n // Decoration: each row's own words already say what they are.\n return html`<div class=${texts ? 'columns texts' : 'columns'} part=\"columns\" aria-hidden=\"true\">\n <span>${number ?? ''}</span><span>${name ?? ''}</span>${rest.length ? html`<span class=\"last\">${rest.join(' · ')}</span>` : nothing}\n </div>`;\n }\n\n render(): TemplateResult {\n const items = this.items ?? [];\n const texts = items.some((item) => !!item.text);\n const preview = this.preview;\n // role=\"list\" is set by hand: a list with its markers removed is not announced as a list by every screen reader.\n return html`${this.columnRow(texts)}<ol role=\"list\" part=\"list\" class=${texts ? 'texts' : ''} aria-label=${this.label || nothing} @pointerleave=${() => (this.preview = null)}>\n ${items.map((item, index) => {\n const number = String(this.start + index).padStart(2, '0');\n const side = item.badge || item.price || item.meta;\n return html`<li part=\"row\" class=${item.featured ? 'featured' : ''} @pointermove=${(event: PointerEvent) => this.point(event, item)}>\n <span class=\"number\" aria-hidden=\"true\">${number}</span>\n <div class=\"name\" part=\"name\" role=\"heading\" aria-level=${this.headingLevel}>\n ${item.href ? html`<a href=${item.href} part=\"link\">${item.name}</a>` : item.name}\n </div>\n ${texts ? html`<p class=\"text\" part=\"text\">${item.text ?? ''}</p>` : nothing}\n ${\n side\n ? html`<span class=\"side\">\n ${item.badge ? html`<span class=\"badge\" part=\"badge\">${item.badge}</span>` : nothing}\n ${item.price ? html`<span class=\"price\" part=\"price\">${item.price}</span>` : nothing}\n ${item.meta ? html`<span class=\"meta\" part=\"meta\">${item.meta}</span>` : nothing}\n </span>`\n : html`<span></span>`\n }\n ${item.href ? html`<span class=\"arrow\">${arrow}</span>` : html`<span></span>`}\n </li>`;\n })}\n </ol>${\n preview\n ? html`<div class=\"preview\" part=\"preview\" aria-hidden=\"true\" style=${`--x:${preview.x}px;--y:${preview.y}px`}>\n ${preview.label ? html`<span>${preview.label}</span>` : nothing}<img src=${preview.src} alt=\"\" />\n </div>`\n : nothing\n }`;\n }\n}\n\n/** One figure in a row of them. */\nexport interface StatRowItem {\n /** The number, written as it should appear, such as \"161 ms\" or \"4\". */\n figure: string;\n /** What the number counts. */\n label: string;\n /** A line more, if the label needs it. */\n note?: string;\n}\n\n/**\n * A row of figures under a rule, each with what it counts: \"4 live products\",\n * \"161 ms response time\".\n *\n * The figures are a list, so a screen reader says how many there are, and each\n * is read as one phrase, \"161 ms response time\", not a bare number followed\n * some way off by its label (1.3.1). The row wraps by its own width: four\n * across, then two (a phone 350px wide shows two by two), then one, with\n * nothing to scroll sideways at 320px (1.4.10).\n *\n * @category content\n * @icon stat\n */\nexport class ImpaktStatRow extends ImpaktElement {\n static properties = {\n items: { type: Array },\n label: { type: String },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The figures, in order. Four fit a row on a wide page. */\n declare items: StatRowItem[];\n /** A name for the row, such as \"Live products\", read before the figures. Leave empty for none. */\n declare label: string;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.items = [];\n this.label = '';\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host { display: block; container: impakt-stat-row / inline-size; }\n ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: ${space(6)}; }\n li { border-block-start: ${t.borderThin} solid ${t.rule}; padding-block-start: ${space(5)}; }\n p { margin: 0; display: flex; flex-direction: column; gap: ${space(2)}; }\n .value { font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 6cqi, 3.25rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; }\n .label { font-size: ${fontSize('sm')}; line-height: ${lineHeight('normal')}; color: ${t.textMuted}; }\n /* The note is meta: monospace capitals at 11px. */\n .note { font-family: ${t.fontMono}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n `,\n ];\n\n render(): TemplateResult {\n return html`<ul role=\"list\" part=\"list\" aria-label=${this.label || nothing}>\n ${this.items.map(\n (item) =>\n html`<li part=\"stat\">\n <p><span class=\"value\" part=\"value\">${item.figure}</span> <span class=\"label\" part=\"label\">${item.label}</span>${item.note ? html` <span class=\"note\">${item.note}</span>` : nothing}</p>\n </li>`,\n )}\n </ul>`;\n }\n}\n\n/** One question and its answer. */\nexport interface FaqItem {\n id: string;\n /** The question. */\n heading: string;\n /** The answer, as plain text. An answer with links or a list is slotted as `panel-<id>` instead. */\n body: string;\n}\n\n/**\n * The questions at the foot of a page, under a heading: a title, a line of\n * introduction, and the questions as sections that open.\n *\n * It is `impakt-accordion` with the heading a page always writes above it, so\n * the levels cannot drift: the questions are always one level below the\n * block's own heading (1.3.1). With a heading, the block is a region named by\n * it, so a screen reader can jump straight to the questions (2.4.1).\n *\n * An answer that is more than words is slotted as `panel-<id>`, exactly as\n * on the accordion, and is passed through to it.\n *\n * @category content\n * @icon accordion\n */\nexport class ImpaktFaq extends ImpaktElement {\n static properties = {\n eyebrow: { type: String },\n heading: { type: String },\n lead: { type: String },\n items: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n open: { type: Array },\n multiple: { type: Boolean },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The small line above the heading, such as \"Questions\". */\n declare eyebrow: string;\n /** The block's heading, such as \"Questions founders ask us first.\" */\n declare heading: string;\n /** A line under the heading. */\n declare lead: string;\n /** The questions, in order. */\n declare items: FaqItem[];\n /** The level of the block's heading. The questions are one level below it. */\n declare headingLevel: number;\n /** The ids of the questions that start open. */\n declare open: string[];\n /** Let more than one answer be open at once. */\n declare multiple: boolean;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.eyebrow = '';\n this.heading = '';\n this.lead = '';\n this.items = [];\n this.headingLevel = 2;\n this.open = [];\n this.multiple = true;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host { display: block; container: impakt-faq / inline-size; }\n .head { display: flex; flex-direction: column; gap: ${space(4)}; margin-block-end: ${space(10)}; max-inline-size: 44rem; }\n .eyebrow { margin: 0; font-family: ${t.fontEyebrow}; font-size: ${fontSize('sm')}; color: var(--impakt-eyebrow, ${t.textMuted}); }\n .heading { font-family: ${t.fontHeading}; font-size: clamp(2rem, 6cqi, 3.25rem); font-weight: ${fontWeight('semibold')}; line-height: 1.04; letter-spacing: -0.04em; color: ${t.textHeading}; }\n .lead { margin: 0; font-size: ${fontSize('md')}; line-height: ${lineHeight('normal')}; color: ${t.textMuted}; }\n /* The questions sit between 1px ink rules, the first one included, each a row about 92px tall set at heading size S. */\n impakt-accordion { border-block-start: ${t.borderThin} solid ${t.text}; }\n impakt-accordion::part(item) { border-block-end: ${t.borderThin} solid ${t.text}; }\n impakt-accordion::part(header) { min-block-size: 5.75rem; padding-block: ${space(5)}; font-family: ${t.fontHeading}; font-size: clamp(1.25rem, 3.2cqi, 1.5rem); font-weight: ${fontWeight('semibold')}; line-height: 1.2; letter-spacing: -0.02em; }\n impakt-accordion::part(panel) { max-inline-size: 44rem; color: ${t.textMuted}; line-height: ${lineHeight('normal')}; }\n @media (forced-colors: active) { impakt-accordion, impakt-accordion::part(item) { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const headingId = this.id_('heading');\n const level = Math.min(Math.max(this.headingLevel, 1), 5);\n const head =\n this.eyebrow || this.heading || this.lead\n ? html`<div class=\"head\" part=\"head\">\n ${this.eyebrow ? html`<p class=\"eyebrow\" part=\"eyebrow\">${this.eyebrow}</p>` : nothing}\n ${this.heading ? html`<div id=${headingId} class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>${this.heading}</div>` : nothing}\n ${this.lead ? html`<p class=\"lead\" part=\"lead\">${this.lead}</p>` : nothing}\n </div>`\n : nothing;\n // Each answer's slot is passed through to the accordion, with the plain answer as what shows when nothing is slotted.\n const accordion = html`<impakt-accordion part=\"questions\" marker=\"plus\" .items=${this.items} .headingLevel=${level + 1} .open=${this.open} .multiple=${this.multiple}>\n ${this.items.map((item) => html`<slot name=${`panel-${item.id}`} slot=${`panel-${item.id}`}>${item.body}</slot>`)}\n </impakt-accordion>`;\n return this.heading ? html`<section aria-labelledby=${headingId}>${head}${accordion}</section>` : html`<div>${head}${accordion}</div>`;\n }\n}\n\n/**\n * A site's menu as a whole screen: a few large links, for a phone or for a\n * site with only a handful of pages.\n *\n * **It is a native `<dialog>` opened with `showModal()`**, as the drawer is, so\n * the focus trap, Escape, the inert page behind it and the return of focus to\n * the button that opened it all come from the browser (2.1.2, 2.4.3). The page\n * behind does not scroll while it is open. The button that opens it is the\n * page's own; set `open` from it and listen for `impakt-close`.\n *\n * **The links are a navigation landmark with a name**, and the page the reader\n * is on carries `aria-current=\"page\"` and is marked with a square, so the mark\n * does not depend on colour (1.4.1). Set `current-text`, such as \"Current\",\n * and the words \"Current · 01\" stand in its number instead of the square. A\n * brand whose ink is dark may also colour it, by setting\n * `--impakt-site-menu-current`.\n *\n * The menu is drawn in ink: the text colour as the background with the card\n * colour on it, a pair every brand already holds at 4.5:1. A component slotted\n * at its foot takes the same colours through its tokens; a plain link there\n * keeps the page's own link colour, so slot `impakt-link` instead.\n *\n * @category navigation\n * @icon menu\n * @slot footer - Under the links: a call to action, an email address.\n * @fires {CustomEvent<null>} impakt-close - When the menu is closed, by its button, by Escape or by following a link.\n */\nexport class ImpaktSiteMenu extends ImpaktElement {\n static properties = {\n open: { type: Boolean, reflect: true },\n links: { type: Array },\n current: { type: String },\n brand: { type: String },\n mark: { type: String },\n home: { type: String },\n label: { type: String },\n closeText: { type: String, attribute: 'close-text' },\n currentText: { type: String, attribute: 'current-text' },\n };\n /** Whether the menu is showing. */\n declare open: boolean;\n /** The pages, in order. */\n declare links: NavLink[];\n /** The `href` of the page the reader is on, so its link is marked. */\n declare current: string;\n /** The site's name, at the top. */\n declare brand: string;\n /** A letter in a small square before the name, such as \"i\", as the site header's canvas look draws it. */\n declare mark: string;\n /** Where the site's name goes. */\n declare home: string;\n /** The menu's name, read when it opens and as the name of its links. */\n declare label: string;\n /** The words on the button that closes it. */\n declare closeText: string;\n /**\n * A word shown with the current page's number, such as \"Current\", so it\n * reads \"Current · 01\". It then marks the page in place of the square.\n * Leave empty for the square.\n */\n declare currentText: string;\n\n constructor() {\n super();\n this.open = false;\n this.links = [];\n this.current = '';\n this.brand = '';\n this.mark = '';\n this.home = '/';\n this.label = 'Menu';\n this.closeText = 'Close';\n this.currentText = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n /* The ink colours are taken on the host, because the dialog repaints the text colour for what is inside it. */\n :host { --impakt-menu: ${t.text}; --impakt-menu-on: ${t.surfaceCard}; --impakt-menu-muted: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); --impakt-menu-rule: color-mix(in srgb, ${t.surfaceCard} 18%, ${t.text}); }\n dialog { box-sizing: border-box; display: none; flex-direction: column; inline-size: 100vw; max-inline-size: 100vw; block-size: 100dvh; max-block-size: 100dvh; margin: 0; padding: 0; border: 0; overflow: auto; background: var(--impakt-menu); color: var(--impakt-menu-on); }\n dialog[open] { display: flex; }\n dialog::backdrop { background: var(--impakt-menu); }\n .bar { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding: ${space(2)} ${space(4)}; border-block-end: ${t.borderThin} solid var(--impakt-menu-rule); }\n .brand { color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: ${fontSize('md')}; font-weight: ${fontWeight('semibold')}; border-radius: ${t.radiusSm}; }\n .brand.marked { display: inline-flex; align-items: center; gap: ${space(3)}; min-block-size: 44px; font-weight: ${fontWeight('medium')}; }\n .mark { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; flex: none; background: var(--impakt-menu-on); color: var(--impakt-menu); font-size: ${fontSize('sm')}; }\n .close { display: inline-flex; align-items: center; gap: ${space(2)}; min-block-size: 44px; padding: 0 ${space(4)}; font: inherit; font-size: ${fontSize('sm')}; font-weight: ${fontWeight('medium')}; color: var(--impakt-menu); background: var(--impakt-menu-on); border: 0; border-radius: ${t.radius}; cursor: pointer; }\n nav { flex: 1; padding: ${space(6)} ${space(5)} 0; }\n ol { list-style: none; margin: 0; padding: 0; }\n li { border-block-end: ${t.borderThin} solid var(--impakt-menu-rule); }\n li a { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding-block: ${space(4)}; color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 12vw, 3.5rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.05em; }\n li a:hover .words { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }\n .number { font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; font-weight: ${fontWeight('regular')}; letter-spacing: 0; color: var(--impakt-menu-muted); }\n /*\n * The current page is marked with a square. Its colour stays the menu's own text colour unless a brand sets\n * --impakt-site-menu-current, because an accent is only readable on ink when the brand's ink is dark (1.4.3).\n */\n a[aria-current] { color: var(--impakt-site-menu-current, var(--impakt-menu-on)); }\n a[aria-current] .number { color: var(--impakt-site-menu-current, var(--impakt-menu-on)); }\n a[aria-current]:not(.worded) .words::before { content: ''; display: inline-block; inline-size: 0.28em; block-size: 0.28em; margin-inline-end: 0.22em; vertical-align: 0.18em; background: currentColor; }\n .foot { display: flex; flex-direction: column; gap: ${space(4)}; padding: ${space(8)} ${space(5)} calc(${space(8)} + env(safe-area-inset-bottom)); }\n .foot[hidden] { display: none; }\n /* What is slotted at the foot is read on ink too. */\n ::slotted(*) { --impakt-color-text-default: var(--impakt-menu-on); --impakt-color-text-heading: var(--impakt-menu-on); --impakt-color-text-muted: var(--impakt-menu-muted); --impakt-color-text-link: var(--impakt-menu-on); --impakt-color-text-link-hover: var(--impakt-menu-on); color: var(--impakt-menu-on); }\n @media (forced-colors: active) { dialog { border: 1px solid CanvasText; } .close { border: 1px solid ButtonText; } }\n `,\n ];\n\n private hasFooter = false;\n\n private get dialog(): HTMLDialogElement | null {\n return this.renderRoot.querySelector('dialog');\n }\n\n updated(changed: Map<string, unknown>): void {\n if (!changed.has('open')) return;\n const dialog = this.dialog;\n if (!dialog) return;\n if (this.open) {\n if (typeof dialog.showModal === 'function') dialog.showModal();\n else dialog.setAttribute('open', '');\n lockScroll(this);\n } else {\n if (typeof dialog.close === 'function' && dialog.open) dialog.close();\n else dialog.removeAttribute('open');\n unlockScroll(this);\n }\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n unlockScroll(this);\n }\n\n private close(): void {\n if (!this.open) return;\n this.open = false;\n this.dispatchEvent(new CustomEvent('impakt-close', { bubbles: true, composed: true }));\n }\n\n private footerChanged(event: Event): void {\n this.hasFooter = (event.target as HTMLSlotElement).assignedNodes().length > 0;\n this.requestUpdate();\n }\n\n render(): TemplateResult {\n return html`<dialog part=\"dialog\" aria-label=${this.label} @cancel=${() => this.close()} @close=${() => this.close()}>\n <div class=\"bar\" part=\"bar\">\n ${\n this.brand\n ? html`<a class=${this.mark ? 'brand marked' : 'brand'} href=${this.home || '/'} part=\"brand\">${this.mark ? html`<span class=\"mark\" part=\"mark\" aria-hidden=\"true\">${this.mark}</span>` : nothing}${this.brand}</a>`\n : html`<span></span>`\n }\n <button class=\"close\" type=\"button\" part=\"close\" @click=${() => this.close()}>\n <span>${this.closeText}</span>\n <svg viewBox=\"0 0 12 12\" width=\"12\" height=\"12\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M1 1l10 10M11 1 1 11\" /></svg>\n </button>\n </div>\n <nav aria-label=${this.label} part=\"nav\">\n <ol role=\"list\">\n ${(this.links ?? []).map((link, index) => {\n const current = !!this.current && link.href === this.current;\n const number = String(index + 1).padStart(2, '0');\n const worded = current && !!this.currentText;\n // Following a link closes the menu, so a link to a place on the same page does not leave it open over that place.\n return html`<li>\n <a href=${link.href} class=${worded ? 'worded' : ''} aria-current=${current ? 'page' : nothing} part=\"link\" @click=${() => this.close()}>\n <span class=\"words\">${link.label}</span><span class=\"number\" aria-hidden=\"true\">${worded ? `${this.currentText} · ${number}` : number}</span>\n </a>\n </li>`;\n })}\n </ol>\n </nav>\n <div class=\"foot\" part=\"footer\" ?hidden=${!this.hasFooter}><slot name=\"footer\" @slotchange=${this.footerChanged}></slot></div>\n </dialog>`;\n }\n}\n\n/**\n * An offer, set out in two halves: what it is, with one action, and a short\n * numbered list of what you get.\n *\n * It draws no background of its own. Put it in `impakt-section` with the\n * `accent` or `ink` tone and it takes that band's colours, so the words on it\n * are always the colour the tokens measured against the band (1.4.3).\n *\n * The points are an ordered list, so a screen reader says how many there are;\n * the numbers drawn beside them are decoration (1.3.1). The halves stack by\n * the block's own width, and on a narrow screen the action comes after the\n * points, so it is the last thing read before the next section (1.4.10).\n *\n * @category content\n * @icon megaphone\n * @slot actions - The action: one button.\n */\nexport class ImpaktOffer extends ImpaktElement {\n static properties = {\n eyebrow: { type: String },\n heading: { type: String },\n lead: { type: String },\n points: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The small line above the heading, such as \"Free for founders and product owners\". */\n declare eyebrow: string;\n /** What is offered, such as \"Get a 48-hour product teardown.\" */\n declare heading: string;\n /** A sentence or two more. */\n declare lead: string;\n /** What you get, one short line each. */\n declare points: string[];\n declare headingLevel: number;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.eyebrow = '';\n this.heading = '';\n this.lead = '';\n this.points = [];\n this.headingLevel = 2;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host { display: block; container: impakt-offer / inline-size; }\n .offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'copy points' 'actions points'; grid-template-rows: auto 1fr; column-gap: ${space(12)}; row-gap: ${space(5)}; align-items: start; }\n .copy { grid-area: copy; }\n .actions { grid-area: actions; }\n ol { grid-area: points; }\n .copy { display: flex; flex-direction: column; align-items: flex-start; gap: ${space(5)}; }\n .eyebrow { margin: 0; font-family: ${t.fontEyebrow}; font-size: ${fontSize('sm')}; color: var(--impakt-eyebrow, ${t.textMuted}); }\n .heading { font-family: ${t.fontHeading}; font-size: clamp(2rem, 7cqi, 4rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; }\n .lead { margin: 0; max-inline-size: 32rem; font-size: ${fontSize('md')}; line-height: ${lineHeight('normal')}; color: ${t.text}; }\n ol { list-style: none; margin: 0; padding: 0; }\n li { display: flex; gap: ${space(5)}; padding-block: ${space(5)}; border-block-start: ${t.borderThin} solid ${t.text}; font-size: ${fontSize('lg')}; font-weight: ${fontWeight('medium')}; line-height: 1.2; color: ${t.text}; }\n .number { flex: none; font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; font-weight: ${fontWeight('regular')}; line-height: 1.6; }\n @container impakt-offer (max-width: 44rem) { .offer { grid-template-columns: 1fr; grid-template-areas: 'copy' 'points' 'actions'; grid-template-rows: auto; row-gap: ${space(8)}; } }\n `,\n ];\n\n render(): TemplateResult {\n const level = Math.min(Math.max(this.headingLevel, 1), 6);\n return html`<div class=\"offer\" part=\"offer\">\n <div class=\"copy\">\n ${this.eyebrow ? html`<p class=\"eyebrow\" part=\"eyebrow\">${this.eyebrow}</p>` : nothing}\n ${this.heading ? html`<div class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>${this.heading}</div>` : nothing}\n ${this.lead ? html`<p class=\"lead\" part=\"lead\">${this.lead}</p>` : nothing}\n </div>\n <div class=\"actions\" part=\"actions\"><slot name=\"actions\"></slot></div>\n ${\n (this.points ?? []).length\n ? html`<ol role=\"list\" part=\"points\">\n ${this.points.map((point, index) => html`<li><span class=\"number\" aria-hidden=\"true\">${String(index + 1).padStart(2, '0')}</span><span>${point}</span></li>`)}\n </ol>`\n : nothing\n }\n </div>`;\n }\n}\n\n/**\n * A card for one article: what it is filed under, its title and a line about\n * it.\n *\n * **The card is one link.** The link sits on the title, which is a heading,\n * and is stretched over the card, so the whole card can be pressed while a\n * screen reader meets one link named by the title, not a \"Read more\" that says\n * nothing out of context (2.4.4). `link-text` adds a visible line such as\n * \"Read\"; it is decoration and is hidden from a screen reader, which already\n * has the title.\n *\n * @category content\n * @icon card\n */\nexport class ImpaktPostCard extends ImpaktElement {\n static properties = {\n heading: { type: String },\n text: { type: String },\n meta: { type: String },\n href: { type: String },\n linkText: { type: String, attribute: 'link-text' },\n headingLevel: { type: Number, attribute: 'heading-level' },\n };\n /** The article's title. */\n declare heading: string;\n /** A line about it. */\n declare text: string;\n /** What it is filed under and how long it is, such as \"Pricing · 7 min read\". */\n declare meta: string;\n /** Where the card goes. */\n declare href: string;\n /** A visible line at the foot of the card, such as \"Read\". Leave empty for none. */\n declare linkText: string;\n declare headingLevel: number;\n\n constructor() {\n super();\n this.heading = '';\n this.text = '';\n this.meta = '';\n this.href = '';\n this.linkText = '';\n this.headingLevel = 3;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n :host { display: block; block-size: 100%; }\n article { position: relative; box-sizing: border-box; block-size: 100%; display: flex; flex-direction: column; gap: ${space(4)}; padding: ${space(6)}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; transition: background-color 140ms ease-out; }\n .meta { margin: 0; font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n .heading { font-family: ${t.fontHeading}; font-size: ${fontSize('xl')}; font-weight: ${fontWeight('semibold')}; line-height: 1.15; letter-spacing: -0.025em; color: ${t.text}; }\n .heading a { color: inherit; text-decoration: none; }\n .heading a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }\n .heading a:focus-visible { outline: none; }\n .heading a:focus-visible::after { box-shadow: ${t.focusShadow}; }\n article:has(a):hover .heading { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }\n .text { margin: 0; font-size: ${fontSize('sm')}; line-height: ${lineHeight('normal')}; color: ${t.textMuted}; }\n .more { margin-block-start: auto; font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.text}; }\n @media (forced-colors: active) { article { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const level = Math.min(Math.max(this.headingLevel, 1), 6);\n return html`<article part=\"card\">\n ${this.meta ? html`<p class=\"meta\" part=\"meta\">${this.meta}</p>` : nothing}\n <div class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>${this.href ? html`<a href=${this.href} part=\"link\">${this.heading}</a>` : this.heading}</div>\n ${this.text ? html`<p class=\"text\" part=\"text\">${this.text}</p>` : nothing}\n ${this.linkText && this.href ? html`<span class=\"more\" aria-hidden=\"true\">${this.linkText} →</span>` : nothing}\n </article>`;\n }\n}\n\n/**\n * A word or two of a heading picked out as if selected in a design tool: the\n * accent colour behind it, an outline and four handles.\n *\n * It is decoration round real text. The words stay in the heading, in the\n * page, so they are read, found and translated as the rest of it is; the\n * handles and the optional label are hidden from a screen reader (1.3.1).\n * The words on the accent are the colour the tokens measured against it\n * (1.4.3). Nothing moves, so there is nothing to stop for reduced motion.\n *\n * `cursor` draws a pointer at the bottom-right handle, as if someone in the\n * file had just picked the words; its value, if any, is the name tag beside\n * it. `hide-label-on=\"phone\"` leaves the label out on a phone, where it would\n * crowd the line below.\n *\n * @category content\n * @icon text\n * @slot - The words to pick out.\n */\nexport class ImpaktHighlight extends ImpaktElement {\n static properties = {\n label: { type: String },\n cursor: { type: String },\n hideLabelOn: { type: String, reflect: true, attribute: 'hide-label-on' },\n };\n /** A small tag under the words, such as \"Design · H1 / 120\". It is decoration and is not read. */\n declare label: string;\n /**\n * Draw a pointer at the bottom-right handle. Its value is a name tag beside\n * the pointer, such as \"Maria\"; an empty value draws the pointer alone. Leave\n * the attribute off for no pointer. Decoration, not read.\n */\n declare cursor: string | null;\n /** Leave the label out on a phone (`phone`). */\n declare hideLabelOn: '' | 'phone';\n\n constructor() {\n super();\n this.label = '';\n this.cursor = null;\n this.hideLabelOn = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: inline-block; position: relative; padding-inline: 0.1em; margin-inline: -0.02em; background: ${token('color.accent.default', '#ffd43b')}; color: ${token('color.accent.on', '#1a1a1a')}; outline: 1.5px solid ${token('color.accent.on', '#1a1a1a')}; outline-offset: -1px; }\n .handle { position: absolute; inline-size: 6px; block-size: 6px; box-sizing: border-box; background: ${t.surfaceCard}; border: 1px solid ${token('color.accent.on', '#1a1a1a')}; }\n .handle:nth-of-type(1) { inset-block-start: -3px; inset-inline-start: -3px; }\n .handle:nth-of-type(2) { inset-block-start: -3px; inset-inline-end: -3px; }\n .handle:nth-of-type(3) { inset-block-end: -3px; inset-inline-start: -3px; }\n .handle:nth-of-type(4) { inset-block-end: -3px; inset-inline-end: -3px; }\n /* The label is meta: monospace capitals at 11px, square. */\n .label { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 0; padding: 3px 7px; white-space: nowrap; font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.surfaceCard}; background: ${t.text}; border-radius: ${t.radiusSm}; }\n @media (max-width: 40rem) { :host([hide-label-on='phone']) .label { display: none; } }\n /* The pointer's tip sits on the bottom-right handle. */\n .cursor { position: absolute; inset-block-start: calc(100% - 1px); inset-inline-start: calc(100% - 1px); display: flex; align-items: flex-start; gap: 2px; pointer-events: none; line-height: 1; }\n .cursor svg { display: block; flex: none; color: ${t.text}; stroke: ${t.surfaceCard}; }\n .tag { margin-block-start: 14px; padding: 3px 6px; white-space: nowrap; font-family: ${t.fontMono}; font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.surfaceCard}; background: ${t.text}; }\n @media (forced-colors: active) { :host { forced-color-adjust: none; background: Highlight; color: HighlightText; outline-color: HighlightText; } .handle { border-color: HighlightText; background: Canvas; } .label, .tag { background: CanvasText; color: Canvas; } .cursor svg { color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n return html`<slot></slot><span class=\"handle\" aria-hidden=\"true\"></span><span class=\"handle\" aria-hidden=\"true\"></span><span class=\"handle\" aria-hidden=\"true\"></span><span class=\"handle\" aria-hidden=\"true\"></span>${\n this.label ? html`<span class=\"label\" part=\"label\" aria-hidden=\"true\">${this.label}</span>` : nothing\n }${\n this.cursor != null\n ? html`<span class=\"cursor\" part=\"cursor\" aria-hidden=\"true\"\n ><svg viewBox=\"0 0 16 20\" width=\"16\" height=\"20\" focusable=\"false\"><path d=\"M1 1v16l4.2-4 2.9 6.2 2.6-1.2-2.9-6.1H14Z\" fill=\"currentColor\" stroke-width=\"1.2\" stroke-linejoin=\"round\" /></svg\n >${this.cursor ? html`<span class=\"tag\">${this.cursor}</span>` : nothing}</span\n >`\n : nothing\n }`;\n }\n}\n\ncustomElements.define('impakt-work-list', ImpaktWorkList);\ncustomElements.define('impakt-stat-row', ImpaktStatRow);\ncustomElements.define('impakt-faq', ImpaktFaq);\ncustomElements.define('impakt-site-menu', ImpaktSiteMenu);\ncustomElements.define('impakt-offer', ImpaktOffer);\ncustomElements.define('impakt-post-card', ImpaktPostCard);\ncustomElements.define('impakt-highlight', ImpaktHighlight);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-work-list': ImpaktWorkList;\n 'impakt-stat-row': ImpaktStatRow;\n 'impakt-faq': ImpaktFaq;\n 'impakt-site-menu': ImpaktSiteMenu;\n 'impakt-offer': ImpaktOffer;\n 'impakt-post-card': ImpaktPostCard;\n 'impakt-highlight': ImpaktHighlight;\n }\n}\n"],"mappings":";AAIA,SAAS,KAAK,MAAM,eAAoC;AACxD;A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SAAK,QAAQ;AACb,SAAK,SAAS;AACd,SAAK,cAAc;AAAA,EACrB;AAAA,EAEA;AAAA,SAAO,SAAS;AAAA,MACd,GAAG,cAAc;AAAA,MACjB;AAAA,oHACgH,MAAM,wBAAwB,SAAS,CAAC,YAAY,MAAM,mBAAmB,SAAS,CAAC,0BAA0B,MAAM,mBAAmB,SAAS,CAAC;AAAA,2GAC7J,EAAE,WAAW,uBAAuB,MAAM,mBAAmB,SAAS,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mJAM/B,EAAE,QAAQ,wCAAwC,WAAW,QAAQ,CAAC,iFAAiF,EAAE,WAAW,iBAAiB,EAAE,IAAI,oBAAoB,EAAE,QAAQ;AAAA;AAAA;AAAA;AAAA,uDAIrT,EAAE,IAAI,aAAa,EAAE,WAAW;AAAA,2FACI,EAAE,QAAQ,uGAAuG,EAAE,WAAW,iBAAiB,EAAE,IAAI;AAAA;AAAA;AAAA,IAG9O;AAAA;AAAA,EAEA,SAAyB;AACvB,WAAO,gNACL,KAAK,QAAQ,2DAA2D,KAAK,KAAK,YAAY,OAChG,GACE,KAAK,UAAU,OACX;AAAA;AAAA,eAEK,KAAK,SAAS,yBAAyB,KAAK,MAAM,YAAY,OAAO;AAAA,eAE1E,OACN;AAAA,EACF;AACF;AAEA,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,mBAAmB,aAAa;AACtD,eAAe,OAAO,cAAc,SAAS;AAC7C,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,gBAAgB,WAAW;AACjD,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,oBAAoB,eAAe;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/organisms.ts"],"sourcesContent":["import { css, html, nothing, type TemplateResult } from 'lit';\nimport { say, ImpaktElement, focusRing, targetSize, visuallyHidden, fontWeight, lineHeight, space, spaceAround, t, token, type, iconSvg } from '@atomic-ui/ui';\n\nconst token_accent = token('color.accent.default', '#c8a15a');\n\nconst reducedMotion = (): boolean => typeof matchMedia === 'function' && matchMedia('(prefers-reduced-motion: reduce)').matches;\n\n/** A round control laid over or beside content: previous, next, close. */\nconst roundButton = css`\n .round { ${targetSize} display: inline-flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; padding: 0; color: ${t.text}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.rule}; border-radius: 50%; box-shadow: ${t.shadowSm}; cursor: pointer; transition: box-shadow 120ms ease-in-out, background-color 120ms ease-in-out; }\n .round:hover:not(:disabled) { box-shadow: ${t.shadowMd}; }\n .round:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }\n`;\n\nconst headingStyles = css`\n .eyebrow { margin: 0; color: var(--impakt-eyebrow, var(--impakt-color-text-eyebrow, ${t.brand})); ${type('sm')} font-size: var(--impakt-font-size-eyebrow, var(--impakt-font-size-sm, 0.875rem)); font-family: ${t.fontEyebrow}; font-weight: var(--impakt-font-weight-eyebrow, ${fontWeight('semibold')}); letter-spacing: ${t.trackingWide}; text-transform: uppercase; }\n .h { margin: 0; color: ${t.textHeading}; font-family: ${t.fontHeading}; font-weight: ${fontWeight('bold')}; letter-spacing: ${t.trackingTight}; text-wrap: balance; }\n .lead { margin: 0; color: ${t.textMuted}; text-wrap: pretty; }\n`;\n\n/**\n * Slides that move sideways: house types, reviews, the rooms of a show home.\n * Put anything in it, one child to a slide.\n *\n * It follows the ARIA carousel pattern. Each slide is named \"2 of 6\", a live\n * region says where you are, and it can be moved with the buttons, the dots,\n * the arrow keys, a swipe or a scroll.\n *\n * **It moves only when asked.** Autoplay is off by default. Turned on, it has a\n * Pause button, stops while pointed at or focused, and never runs for someone\n * who has asked for reduced motion (2.2.2).\n *\n * @category content\n * @icon carousel\n * @slot - The slides, one child to each.\n */\nexport class ImpaktCarousel extends ImpaktElement {\n static properties = {\n label: { type: String },\n perView: { type: String, reflect: true, attribute: 'per-view' },\n arrows: { type: String, reflect: true },\n autoplay: { type: Boolean, reflect: true },\n seconds: { type: Number },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** What the slides are, for a screen reader, such as \"House types\". */\n declare label: string;\n /** How many slides show at once on a wide screen. A tablet shows at most two, and a phone one. */\n declare perView: '1' | '2' | '3';\n /** Where the arrows sit: under the slides, or level with the heading above them. */\n declare arrows: 'below' | 'top';\n /** Move on by itself. People can pause it, and it never runs for those who ask for less motion. */\n declare autoplay: boolean;\n /** How long each slide stays, when it moves by itself. */\n declare seconds: number;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n private index = 0;\n private count = 0;\n /** How many slides fit right now, which the width decides. */\n private visible: number | null = null;\n /** Where a button or dot is taking the row. Until it arrives, the scroll position is not the truth. */\n private heading: number | null = null;\n private settle: ReturnType<typeof setTimeout> | undefined;\n private observer: ResizeObserver | undefined;\n private paused = false;\n private held = false;\n private timer: ReturnType<typeof setInterval> | undefined;\n\n constructor() {\n super();\n this.label = 'Slides';\n this.perView = '1';\n this.arrows = 'below';\n this.autoplay = false;\n this.seconds = 6;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n spaceAround,\n roundButton,\n css`\n :host { display: block; container-type: inline-size; --most: 1; --gap: ${space(6)}; }\n :host([per-view='2']) { --most: 2; }\n :host([per-view='3']) { --most: 3; }\n .track { --per: var(--most); display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: ${space(1)} ${space(2)}; border-radius: ${t.radiusLg}; }\n .track::-webkit-scrollbar { display: none; }\n ::slotted(*) { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-inline-size: 0; scroll-snap-align: start; box-sizing: border-box; }\n /* Whole slides only: a slice of the next one reads as content spilling out of the page. */\n @container (max-width: 60rem) { .track { --per: min(var(--most), 2); } }\n @container (max-width: 40rem) { .track { --per: 1; --gap: ${space(4)}; } }\n .controls { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; margin-block-start: ${space(4)}; }\n .dots { display: flex; flex-wrap: wrap; gap: ${space(1)}; }\n .dot { ${targetSize} display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 0; cursor: pointer; border-radius: ${t.radiusSm}; }\n .dot span { display: block; inline-size: 8px; block-size: 8px; border-radius: 50%; background: ${t.rule}; transition: inline-size 150ms ease-in-out, background-color 150ms ease-in-out; }\n .dot[aria-current='true'] span { inline-size: 24px; background: ${t.brand}; }\n .buttons { display: flex; gap: ${space(2)}; }\n section { position: relative; }\n @container (min-width: 40.01rem) { :host([arrows='top']) .buttons { position: absolute; inset-block-end: calc(100% + ${space(4)}); inset-inline-end: 0; } }\n .sr-only { ${visuallyHidden} }\n @media (forced-colors: active) { .dot span { background: CanvasText; } .dot[aria-current='true'] span { background: Highlight; } }\n `,\n ];\n\n private get track(): HTMLElement | null {\n return this.renderRoot.querySelector('.track');\n }\n\n private get slides(): HTMLElement[] {\n return Array.from(this.children) as HTMLElement[];\n }\n\n /** The last slide that can sit at the start of the row. */\n private get last(): number {\n return Math.max(0, this.count - (this.visible ?? Number(this.perView || 1)));\n }\n\n /** Count what actually fits, and keep the row on a real stop when that changes. */\n private measure(): void {\n const track = this.track;\n const first = this.slides[0];\n if (!track || !first) return;\n const width = first.getBoundingClientRect().width;\n if (width <= 0) return;\n const gap = Number.parseFloat(getComputedStyle(track).columnGap) || 0;\n const fits = Math.max(1, Math.round((track.clientWidth + gap) / (width + gap)));\n if (fits === this.visible) return;\n this.visible = fits;\n this.index = Math.min(this.index, this.last);\n const slide = this.slides[this.index];\n if (slide && typeof track.scrollTo === 'function') track.scrollTo({ left: slide.offsetLeft - track.offsetLeft, behavior: 'auto' });\n this.requestUpdate();\n }\n\n private onSlots(): void {\n const slides = this.slides;\n this.count = slides.length;\n slides.forEach((slide, i) => {\n slide.setAttribute('role', 'group');\n slide.setAttribute('aria-roledescription', say('slide'));\n slide.setAttribute('aria-label', say('{slide} of {slides}', { slide: i + 1, slides: slides.length }));\n });\n this.measure();\n this.requestUpdate();\n }\n\n private go(to: number): void {\n const target = Math.min(this.last, Math.max(0, to));\n this.index = target;\n this.heading = target;\n clearTimeout(this.settle);\n // If the row has not got there by now (a tab in the background, say), put it there.\n this.settle = setTimeout(() => {\n const arrived = this.heading === null;\n this.heading = null;\n const track = this.track;\n const slide = this.slides[this.index];\n if (!arrived && track && slide && typeof track.scrollTo === 'function') track.scrollTo({ left: slide.offsetLeft - track.offsetLeft, behavior: 'auto' });\n }, 900);\n this.requestUpdate();\n const track = this.track;\n const slide = this.slides[target];\n if (track && slide && typeof track.scrollTo === 'function') {\n track.scrollTo({ left: slide.offsetLeft - track.offsetLeft, behavior: reducedMotion() ? 'auto' : 'smooth' });\n }\n }\n\n private onScroll(): void {\n const track = this.track;\n const slides = this.slides;\n if (!track || !slides.length) return;\n let nearest = 0;\n let distance = Infinity;\n slides.forEach((slide, i) => {\n const d = Math.abs(slide.offsetLeft - track.offsetLeft - track.scrollLeft);\n if (d < distance) {\n distance = d;\n nearest = i;\n }\n });\n if (this.heading !== null) {\n if (nearest === this.heading && distance < 2) {\n this.heading = null;\n clearTimeout(this.settle);\n }\n return;\n }\n if (nearest !== this.index) {\n this.index = Math.min(nearest, this.last);\n this.requestUpdate();\n }\n }\n\n private onKey(event: KeyboardEvent): void {\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n this.go(this.index + 1);\n }\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n this.go(this.index - 1);\n }\n }\n\n private get canPlay(): boolean {\n return this.autoplay && !reducedMotion();\n }\n\n private restart(): void {\n clearInterval(this.timer);\n this.timer = undefined;\n if (!this.canPlay || this.paused || this.held) return;\n this.timer = setInterval(() => this.go(this.index >= this.last ? 0 : this.index + 1), Math.max(2, this.seconds) * 1000);\n }\n\n private hold(held: boolean): void {\n this.held = held;\n this.restart();\n }\n\n private togglePause(): void {\n this.paused = !this.paused;\n this.restart();\n this.requestUpdate();\n }\n\n protected firstUpdated(): void {\n if (typeof ResizeObserver === 'function' && this.track) {\n this.observer = new ResizeObserver(() => this.measure());\n this.observer.observe(this.track);\n }\n }\n\n protected updated(changed: Map<string, unknown>): void {\n if (changed.has('autoplay') || changed.has('seconds')) this.restart();\n if (changed.has('perView')) this.measure();\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n if (this.track) this.observer?.observe(this.track);\n this.restart();\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.observer?.disconnect();\n clearInterval(this.timer);\n clearTimeout(this.settle);\n }\n\n render(): TemplateResult {\n const stops = Array.from({ length: this.last + 1 }, (_, i) => i);\n return html`<section aria-roledescription=${say('carousel')} aria-label=${this.label} part=\"carousel\" @keydown=${this.onKey}\n @mouseenter=${() => this.hold(true)} @mouseleave=${() => this.hold(false)} @focusin=${() => this.hold(true)} @focusout=${() => this.hold(false)}>\n <div class=\"track\" part=\"track\" tabindex=\"0\" @scroll=${this.onScroll}><slot @slotchange=${this.onSlots}></slot></div>\n <div class=\"controls\" part=\"controls\">\n <div class=\"dots\">${stops.length > 1 ? stops.map((i) => html`<button class=\"dot\" type=\"button\" aria-label=${say('Go to slide {slide}', { slide: i + 1 })} aria-current=${i === this.index ? 'true' : 'false'} @click=${() => this.go(i)}><span></span></button>`) : nothing}</div>\n <div class=\"buttons\">\n ${this.canPlay ? html`<button class=\"round\" type=\"button\" aria-label=${say(this.paused ? 'Play the slides' : 'Pause the slides')} @click=${this.togglePause}>${this.paused ? iconSvg('arrow-right', '18px') : html`<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><rect x=\"6\" y=\"5\" width=\"4\" height=\"14\" rx=\"1\"/><rect x=\"14\" y=\"5\" width=\"4\" height=\"14\" rx=\"1\"/></svg>`}</button>` : nothing}\n <button class=\"round\" type=\"button\" aria-label=${say('Previous slide')} ?disabled=${this.index === 0} @click=${() => this.go(this.index - 1)}>${iconSvg('arrow-left', '18px')}</button>\n <button class=\"round\" type=\"button\" aria-label=${say('Next slide')} ?disabled=${this.index >= this.last} @click=${() => this.go(this.index + 1)}>${iconSvg('arrow-right', '18px')}</button>\n </div>\n </div>\n <p class=\"sr-only\" aria-live=\"polite\">${say('Slide {slide} of {slides}', { slide: this.index + 1, slides: this.count })}</p>\n </section>`;\n }\n}\n\n/** One picture in a gallery. */\nexport interface GalleryItem {\n id?: string;\n src: string;\n alt: string;\n caption?: string;\n}\n\n/**\n * How far a gallery picture stretches so that no row ends in a gap, on a wide\n * container and on a narrow one. The large first picture keeps its own size.\n */\nexport function gallerySpan(index: number, count: number, layout: 'feature' | 'grid'): { wide: number; narrow: number; rows: number } {\n const last = index === count - 1;\n const span = { wide: 1, narrow: 1, rows: 1 };\n if (layout === 'grid') {\n if (last) {\n span.wide = count % 3 ? 4 - (count % 3) : 1;\n span.narrow = count % 2 ? 2 : 1;\n }\n return span;\n }\n if (index === 0) return span;\n if (count === 2) return { wide: 2, narrow: 2, rows: 2 };\n if (count === 3) return { ...span, wide: 2 };\n if (last) {\n const extra = (count - 5) % 4;\n span.wide = count === 4 ? 2 : count > 5 && extra ? 5 - extra : 1;\n span.narrow = count % 2 ? 1 : 2;\n }\n return span;\n}\n\n/**\n * A set of pictures, with the first shown large, that open full screen one at\n * a time: the rooms of a show home, or views of a development.\n *\n * Each picture is a button. The full-screen view is a real modal dialog, so\n * focus stays inside it, Escape closes it and focus returns to the picture that\n * opened it. The arrow keys move between pictures.\n *\n * @category media\n * @icon gallery\n */\nexport class ImpaktGallery extends ImpaktElement {\n static properties = {\n items: { type: Array },\n layout: { type: String, reflect: true },\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 items: GalleryItem[];\n /** One large picture with smaller ones beside it, or an even grid. */\n declare layout: 'feature' | 'grid';\n /** What the pictures are of, 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 private shown = -1;\n private opener: HTMLElement | null = null;\n\n constructor() {\n super();\n this.items = [];\n this.layout = 'feature';\n this.label = 'Gallery';\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n spaceAround,\n roundButton,\n css`\n :host { display: block; container-type: inline-size; }\n ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${space(3)}; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 180px; }\n :host([layout='grid']) ul { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 220px; }\n li { grid-column: span var(--span-wide, 1); grid-row: span var(--span-rows, 1); }\n :host([layout='feature']) li:first-child { grid-column: span 2; grid-row: span 2; }\n .open { position: relative; display: block; inline-size: 100%; block-size: 100%; padding: 0; border: 0; background: ${t.surfaceInset}; border-radius: ${t.radiusXl}; overflow: hidden; cursor: zoom-in; }\n .open img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 300ms ease-out; }\n .open:hover img { transform: scale(1.03); }\n @container (max-width: 40rem) { ul, :host([layout='grid']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; } li { grid-column: span var(--span-narrow, 1); } }\n dialog { padding: 0; border: 0; background: transparent; max-inline-size: none; max-block-size: none; inline-size: 100vw; block-size: 100dvh; }\n dialog::backdrop { background: rgb(10 14 12 / 0.9); }\n .stage { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; block-size: 100%; box-sizing: border-box; padding: ${space(4)}; gap: ${space(3)}; color: #fff; }\n .bar { display: flex; align-items: center; justify-content: space-between; ${type('sm')} }\n .middle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: ${space(3)}; min-block-size: 0; }\n .middle img { display: block; margin: auto; max-inline-size: 100%; max-block-size: 100%; object-fit: contain; border-radius: ${t.radiusLg}; }\n figure { margin: 0; display: flex; min-block-size: 0; block-size: 100%; }\n .caption { margin: 0; text-align: center; ${type('sm')} }\n `,\n ];\n\n private get dialog(): HTMLDialogElement | null {\n return this.renderRoot.querySelector('dialog');\n }\n\n private open(index: number, event: Event): void {\n this.opener = event.currentTarget as HTMLElement;\n this.shown = index;\n this.requestUpdate();\n void this.updateComplete.then(() => {\n const d = this.dialog;\n if (d && !d.open) {\n if (typeof d.showModal === 'function') d.showModal();\n else d.setAttribute('open', '');\n }\n });\n }\n\n private close(): void {\n const d = this.dialog;\n if (d?.open) {\n if (typeof d.close === 'function') d.close();\n else d.removeAttribute('open');\n }\n this.onClosed();\n }\n\n private onClosed(): void {\n if (this.shown === -1) return;\n this.shown = -1;\n this.requestUpdate();\n this.opener?.focus();\n }\n\n private step(by: number): void {\n const n = (this.items ?? []).length;\n if (!n || this.shown < 0) return;\n this.shown = (this.shown + by + n) % n;\n this.requestUpdate();\n }\n\n private onKey(event: KeyboardEvent): void {\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n this.step(1);\n }\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n this.step(-1);\n }\n }\n\n render(): TemplateResult {\n const items = this.items ?? [];\n const current = this.shown >= 0 ? items[this.shown] : undefined;\n return html`<ul aria-label=${this.label} part=\"list\">${items.map((item, i) => {\n const span = gallerySpan(i, items.length, this.layout);\n return html`<li style=${`--span-wide:${span.wide};--span-narrow:${span.narrow};--span-rows:${span.rows}`}>\n <button class=\"open\" type=\"button\" aria-label=${say('View larger: {picture}', { picture: item.alt })} @click=${(e: Event) => this.open(i, e)}><img src=${item.src} alt=${item.alt} loading=\"lazy\" /></button>\n </li>`;\n })}</ul>\n <dialog aria-label=${this.label} @keydown=${this.onKey} @close=${this.onClosed}>\n ${\n current\n ? html`<div class=\"stage\">\n <div class=\"bar\"><span>${this.shown + 1} of ${items.length}</span><button class=\"round\" type=\"button\" aria-label=${say('Close')} @click=${this.close}>${iconSvg('close', '18px')}</button></div>\n <div class=\"middle\">\n <button class=\"round\" type=\"button\" aria-label=${say('Previous picture')} @click=${() => this.step(-1)}>${iconSvg('arrow-left', '18px')}</button>\n <figure><img src=${current.src} alt=${current.alt} /></figure>\n <button class=\"round\" type=\"button\" aria-label=${say('Next picture')} @click=${() => this.step(1)}>${iconSvg('arrow-right', '18px')}</button>\n </div>\n <p class=\"caption\">${current.caption ?? current.alt}</p>\n </div>`\n : nothing\n }\n </dialog>`;\n }\n}\n\n/** One accreditation or partner. */\nexport interface LogoItem {\n id?: string;\n src: string;\n alt: string;\n href?: string;\n}\n\n/**\n * A row of logos that lends trust: accreditations, awards, lenders, partners.\n *\n * The logos are drawn quietly so they do not fight the page, and come to full\n * colour when pointed at. Each one is named by its alt text.\n *\n * @category content\n * @icon logos\n */\nexport class ImpaktLogoCloud extends ImpaktElement {\n static properties = {\n heading: { type: String },\n items: { type: Array },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** A line above the logos, such as \"Accredited by\". */\n declare heading: string;\n declare items: LogoItem[];\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.heading = '';\n this.items = [];\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n spaceAround,\n css`\n :host { display: block; }\n p { margin: 0 0 ${space(6)}; text-align: center; color: ${t.textMuted}; ${type('sm')} font-weight: ${fontWeight('medium')}; }\n ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: ${space(8)} ${space(12)}; }\n img { display: block; block-size: 40px; inline-size: auto; max-inline-size: 160px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 200ms ease-in-out, opacity 200ms ease-in-out; }\n li:hover img { filter: none; opacity: 1; }\n a { display: block; border-radius: ${t.radiusSm}; }\n `,\n ];\n\n render(): TemplateResult {\n return html`${this.heading ? html`<p part=\"heading\">${this.heading}</p>` : nothing}\n <ul part=\"list\">${(this.items ?? []).map((logo) => html`<li>${logo.href ? html`<a href=${logo.href}><img src=${logo.src} alt=${logo.alt} /></a>` : html`<img src=${logo.src} alt=${logo.alt} />`}</li>`)}</ul>`;\n }\n}\n\n/** One step in a process. */\nexport interface StepItem {\n id?: string;\n heading: string;\n text?: string;\n /** A short line above the heading, such as how long the step takes. */\n meta?: string;\n}\n\n/**\n * A process, in order, joined by a line: how buying a home works, what happens\n * after you apply.\n *\n * It is an ordered list, so a screen reader says the number and how many there\n * are. The numbers are drawn from the list, not typed in.\n *\n * @category content\n * @icon steps\n */\nexport class ImpaktSteps extends ImpaktElement {\n static properties = {\n items: { type: Array },\n orientation: { type: String, reflect: true },\n look: { type: String, reflect: true },\n tones: { type: Boolean, reflect: true },\n current: { type: Number },\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: StepItem[];\n /** Across the page, or down it. Across becomes down on a narrow screen. */\n declare orientation: 'horizontal' | 'vertical';\n /**\n * `numbered` joins numbered circles with a line. `ruled` gives each step a\n * 1px rule along its top in the band's text colour, with its number and\n * meta in monospace capitals (\"01 · 1 TO 2 WEEKS\"), as a project plan's\n * phases are drawn; on a phone the steps hang off a rail down the left. The\n * steps are an ordered list either way.\n */\n declare look: 'numbered' | 'ruled';\n /**\n * With `ruled`: colour each step's rule in the brand's chart colours, and on\n * a phone draw the steps as a coloured branch graph, for a brand that wants\n * colour there.\n */\n declare tones: boolean;\n /**\n * The index of the step the project is at, from 0, or -1 for none. It is\n * marked `aria-current=\"step\"`, its rule is drawn heavier and its meta and\n * rule take `--impakt-steps-current`, which a dark band sets to the accent.\n */\n declare current: number;\n /** The level of each step's heading. One below the heading above the steps. */\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.orientation = 'horizontal';\n this.look = 'numbered';\n this.tones = false;\n this.current = -1;\n this.headingLevel = 3;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n headingStyles,\n css`\n :host { display: block; container-type: inline-size; }\n ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: ${space(6)}; }\n li { position: relative; counter-increment: step; display: flex; flex-direction: column; gap: ${space(2)}; }\n li::before { content: counter(step); display: flex; align-items: center; justify-content: center; inline-size: 40px; block-size: 40px; border-radius: 50%; background: ${t.brand}; color: ${t.onBrand}; ${type('sm')} font-weight: ${fontWeight('bold')}; position: relative; z-index: 1; margin-block-end: ${space(2)}; }\n li:not(:last-child)::after { content: ''; position: absolute; inset-block-start: 20px; inset-inline-start: 48px; inset-inline-end: calc(-1 * ${space(6)} + 8px); block-size: 2px; background: ${t.rule}; }\n .h { ${type('lg')} letter-spacing: 0; }\n .meta { margin: 0; ${type('sm')} color: ${t.textMuted}; font-family: ${t.fontMono}; letter-spacing: 0.02em; }\n .body { margin: 0; color: ${t.textMuted}; line-height: ${lineHeight('normal')}; text-wrap: pretty; }\n :host([orientation='vertical']) ol { grid-auto-flow: row; }\n :host([orientation='vertical']) li { padding-inline-start: 56px; min-block-size: 56px; }\n :host([orientation='vertical']) li::before { position: absolute; inset-inline-start: 0; inset-block-start: 0; margin: 0; }\n :host([orientation='vertical']) li:not(:last-child)::after { inset-block-start: 48px; inset-block-end: calc(-1 * ${space(6)} + 8px); inset-inline-start: 19px; inset-inline-end: auto; inline-size: 2px; block-size: auto; }\n @container (max-width: 40rem) {\n ol { grid-auto-flow: row; }\n li { padding-inline-start: 56px; min-block-size: 56px; }\n li::before { position: absolute; inset-inline-start: 0; inset-block-start: 0; margin: 0; }\n li:not(:last-child)::after { inset-block-start: 48px; inset-block-end: calc(-1 * ${space(6)} + 8px); inset-inline-start: 19px; inset-inline-end: auto; inline-size: 2px; block-size: auto; }\n }\n /* Ruled: a 1px rule in the band's text colour, or in the chart colours with tones. */\n :host([look='ruled']) li { --rule: currentColor; padding-block-start: ${space(5)}; border-block-start: 1px solid var(--rule); }\n :host([look='ruled'][tones]) li { --rule: var(--chart); border-block-start-width: 3px; }\n :host([look='ruled']:not([tones])) .meta { font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; }\n :host([look='ruled']:not([tones])) .meta::before { content: counter(step, decimal-leading-zero) ' · '; }\n :host([look='ruled']:not([tones])) li[aria-current] { --rule: var(--impakt-steps-current, currentColor); border-block-start-width: 2px; padding-block-start: calc(${space(5)} - 1px); }\n :host([look='ruled']:not([tones])) li[aria-current] .meta { color: var(--impakt-steps-current, currentColor); }\n :host([look='ruled']) li::before, :host([look='ruled']) li::after { display: none; }\n :host([look='ruled']) ol { gap: ${space(5)}; }\n /* On a phone the ruled steps hang off a rail: a 1.5px line down the left and a hollow 10px ring at each step, the current one filled. */\n @container (max-width: 40rem) {\n :host([look='ruled']) ol { gap: 0; }\n :host([look='ruled']) li, :host([look='ruled']:not([tones])) li[aria-current] { padding-inline-start: 40px; padding-block: ${space(6)}; min-block-size: 0; border-block-start: 0; }\n :host([look='ruled']) li::before { display: block; content: ''; position: absolute; inset-block: 0; inset-inline-start: 4px; inline-size: 1.5px; block-size: auto; border-radius: 0; margin: 0; background: currentColor; }\n :host([look='ruled']) li::after { display: block; content: ''; position: absolute; inset-block-start: calc(${space(6)} + 2px); inset-inline-start: 0; inline-size: 10px; block-size: 10px; box-sizing: border-box; border: 1px solid currentColor; border-radius: 50%; background: ${t.surfaceCard}; }\n :host([look='ruled']) li:first-child::before { inset-block-start: calc(${space(6)} + 7px); }\n :host([look='ruled']) li:last-child::before { inset-block-end: auto; block-size: calc(${space(6)} + 7px); }\n :host([look='ruled']:not([tones])) li[aria-current]::after { background: var(--impakt-steps-current, currentColor); }\n /* With tones: a branch graph, one trunk down the left and each step a coloured branch off it with a dot. */\n :host([look='ruled'][tones]) li::before { inset-block: 0; inset-inline-start: 0; inline-size: 2px; block-size: auto; background: ${t.text}; }\n :host([look='ruled'][tones]) li::after { inset-block: ${space(3)}; inset-inline-start: 2px; inline-size: 12px; block-size: auto; background: radial-gradient(circle at 100% 34px, var(--rule) 4px, transparent 4.5px); border: 2px solid var(--rule); border-inline-start: 0; border-radius: 0 14px 14px 0; }\n }\n @media (forced-colors: active) { li::before { border: 1px solid CanvasText; } li:not(:last-child)::after { background: CanvasText; } :host([look='ruled']) li { border-block-start-color: CanvasText; } :host([look='ruled']) li[aria-current]::after { background: Highlight; } }\n `,\n ];\n\n render(): TemplateResult {\n return html`<ol part=\"list\">${(this.items ?? []).map(\n (\n step,\n i,\n ) => html`<li part=\"step\" aria-current=${i === this.current ? 'step' : nothing} style=${this.look === 'ruled' ? `--chart:var(--impakt-color-chart-${(i % 5) + 1}, ${'var(--impakt-color-brand-default, #1f4ed8)'})` : nothing}>\n ${step.meta ? html`<p class=\"meta\">${step.meta}</p>` : nothing}\n <div class=\"h\" role=\"heading\" aria-level=${this.headingLevel}>${step.heading}</div>\n ${step.text ? html`<p class=\"body\">${step.text}</p>` : nothing}\n </li>`,\n )}</ol>`;\n }\n}\n\n/**\n * A picture beside words, the working section of a marketing page: a heading,\n * a line of text, a short list of points and an action.\n *\n * On a phone the words come first, whichever side the picture is on, so the\n * reading order never depends on the layout.\n *\n * @category layout\n * @icon split\n * @role heading\n * @slot actions - Buttons and links under the words.\n */\nexport class ImpaktMediaSplit extends ImpaktElement {\n static properties = {\n eyebrow: { type: String },\n heading: { type: String },\n lead: { type: String },\n points: { type: Array },\n level: { type: Number, reflect: true },\n imageSrc: { type: String, attribute: 'image-src' },\n imageAlt: { type: String, attribute: 'image-alt' },\n imageSide: { type: String, reflect: true, attribute: 'image-side' },\n insetSrc: { type: String, attribute: 'inset-src' },\n insetAlt: { type: String, attribute: 'inset-alt' },\n ratio: { type: String, reflect: true },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n declare eyebrow: string;\n declare heading: string;\n /** A sentence or two under the heading. */\n declare lead: string;\n /** Short points, each drawn with a tick. */\n declare points: string[];\n /** The heading's level in the page. */\n declare level: 2 | 3;\n declare imageSrc: string;\n /** What the picture shows. Leave empty only when it is decoration. */\n declare imageAlt: string;\n /** A smaller picture overlapping the corner of the main one. */\n declare insetSrc: string;\n declare insetAlt: string;\n /** Which side the picture sits on, on a wide screen. */\n declare imageSide: 'start' | 'end';\n /** The picture's shape. */\n declare ratio: '4:3' | '1:1' | '3:2' | '16:9';\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.eyebrow = '';\n this.heading = '';\n this.lead = '';\n this.points = [];\n this.level = 2;\n this.imageSrc = '';\n this.imageAlt = '';\n this.imageSide = 'end';\n this.insetSrc = '';\n this.insetAlt = '';\n this.ratio = '4:3';\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n headingStyles,\n css`\n :host { display: block; container-type: inline-size; --ratio: 4 / 3; }\n :host([ratio='1:1']) { --ratio: 1 / 1; }\n :host([ratio='3:2']) { --ratio: 3 / 2; }\n :host([ratio='16:9']) { --ratio: 16 / 9; }\n .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${space(16)}; align-items: center; }\n :host([image-side='start']) .picture { order: -1; }\n .words { display: flex; flex-direction: column; gap: ${space(4)}; }\n .h { ${type('4xl')} }\n .lead { ${type('lg')} }\n ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: ${space(3)}; }\n li { display: flex; gap: ${space(3)}; align-items: flex-start; line-height: ${lineHeight('normal')}; }\n .tick { flex: none; display: inline-flex; align-items: center; justify-content: center; inline-size: 24px; block-size: 24px; border-radius: 50%; background: ${t.brandSubtle}; color: ${t.brand}; }\n .actions { display: flex; flex-wrap: wrap; gap: ${space(3)} ${space(4)}; align-items: center; margin-block-start: ${space(2)}; }\n img { display: block; inline-size: 100%; aspect-ratio: var(--ratio); object-fit: cover; border-radius: ${t.radius2xl}; box-shadow: ${t.shadowXl}; }\n .picture { position: relative; }\n .picture.has-inset { padding-block-end: 8%; padding-inline-end: 4%; }\n .inset { position: absolute; inset-block-end: 0; inset-inline-end: 0; inline-size: 42%; aspect-ratio: 10 / 7; border: 6px solid ${t.surfaceCard}; border-radius: ${t.radiusXl}; box-sizing: border-box; }\n @container (max-width: 48rem) {\n .split { grid-template-columns: minmax(0, 1fr); gap: ${space(8)}; }\n :host([image-side='start']) .picture { order: 0; }\n .h { ${type('3xl')} }\n }\n `,\n ];\n\n render(): TemplateResult {\n return html`<div class=\"split\" part=\"split\">\n <div class=\"words\">\n ${this.eyebrow ? html`<p class=\"eyebrow\" part=\"eyebrow\">${this.eyebrow}</p>` : nothing}\n <div class=\"h\" role=\"heading\" aria-level=${this.level}>${this.heading}</div>\n ${this.lead ? html`<p class=\"lead\">${this.lead}</p>` : nothing}\n ${this.points?.length ? html`<ul>${this.points.map((p) => html`<li><span class=\"tick\">${iconSvg('check', '14px')}</span><span>${p}</span></li>`)}</ul>` : nothing}\n <div class=\"actions\"><slot name=\"actions\"></slot></div>\n </div>\n ${this.imageSrc ? html`<div class=\"picture ${this.insetSrc ? 'has-inset' : ''}\"><img src=${this.imageSrc} alt=${this.imageAlt} loading=\"lazy\" part=\"image\" />${this.insetSrc ? html`<img class=\"inset\" src=${this.insetSrc} alt=${this.insetAlt} loading=\"lazy\" />` : nothing}</div>` : nothing}\n </div>`;\n }\n}\n\n/**\n * The closing push of a page: a rounded panel with a heading, a line of text\n * and the page's main action, set apart from everything above it.\n *\n * @category layout\n * @icon banner\n * @slot actions - The buttons.\n */\nexport class ImpaktCtaBanner extends ImpaktElement {\n static properties = {\n heading: { type: String },\n lead: { type: String },\n tone: { type: String, reflect: true },\n align: { type: String, reflect: true },\n imageSrc: { type: String, attribute: 'image-src' },\n imageAlt: { type: String, attribute: 'image-alt' },\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 heading: string;\n declare lead: string;\n /** The panel's colour. */\n declare tone: 'brand' | 'subtle' | 'card';\n /** Words beside the action, centred above it, or above it on the left. */\n declare align: 'split' | 'center' | 'stacked';\n /** A photo behind the words, with a scrim so they stay readable. */\n declare imageSrc: string;\n declare imageAlt: string;\n declare headingLevel: 2 | 3;\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.heading = '';\n this.lead = '';\n this.tone = 'brand';\n this.align = 'split';\n this.imageSrc = '';\n this.imageAlt = '';\n this.headingLevel = 2;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n headingStyles,\n css`\n :host { display: block; container-type: inline-size; }\n .panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: ${space(8)}; padding: ${space(16)}; border-radius: ${t.radius2xl}; background: ${t.surfaceCard}; box-shadow: ${t.shadowSm}, inset 0 0 0 1px ${t.hairline}; }\n :host([tone='subtle']) .panel { background: ${t.surfaceSubtle}; box-shadow: none; }\n :host([tone='brand']) .panel { background: ${t.brand}; color: ${t.onBrand}; box-shadow: ${t.shadowMd};\n /* A primary button on the brand panel turns over, as it does on an ink band, so it keeps an edge against the panel. */\n --impakt-button-primary: ${t.onBrand}; --impakt-button-on-primary: ${t.brand}; --impakt-button-primary-hover: color-mix(in srgb, ${t.onBrand} 86%, ${t.brand}); --impakt-color-text-inverse: ${t.brand}; }\n /* Only the words take the light colours: a button in the actions keeps its own. */\n :host([tone='brand']) .words { --impakt-color-text-heading: ${t.onBrand}; --impakt-color-text-default: ${t.onBrand}; --impakt-color-text-muted: ${t.onBrand}; --impakt-color-text-link: ${t.onBrand}; }\n /* A soft glow in the corner, so a flat colour has some depth. Decoration only. */\n :host([tone='brand']) .panel::before { content: ''; position: absolute; inset-block-start: -40%; inset-inline-end: -10%; inline-size: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, ${t.onBrand} 18%, transparent), transparent); pointer-events: none; }\n .photo { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }\n .panel.pictured { min-block-size: 26rem; color: #fff; background: #12211a; --impakt-color-text-heading: #fff; }\n .panel.pictured::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(18 31 26 / 0.8) 0%, rgb(18 31 26 / 0.1) 75%); }\n .panel.pictured .words, .panel.pictured .actions { z-index: 1; }\n @container (max-width: 48rem) { .panel.pictured { justify-content: flex-end; } .panel.pictured::after { background: linear-gradient(180deg, rgb(18 31 26 / 0.15) 0%, rgb(18 31 26 / 0.85) 100%); } }\n .words { position: relative; display: flex; flex-direction: column; gap: ${space(3)}; max-inline-size: 40rem; }\n .h { ${type('4xl')} }\n .lead { ${type('lg')} }\n .actions { position: relative; flex: none; display: flex; flex-wrap: wrap; gap: ${space(3)}; }\n :host([align='stacked']) .panel { flex-direction: column; align-items: flex-start; justify-content: center; }\n :host([align='center']) .panel { flex-direction: column; text-align: center; }\n :host([align='center']) .words { align-items: center; }\n @container (max-width: 48rem) { .panel { flex-direction: column; align-items: flex-start; padding: ${space(8)} ${space(6)}; } .h { ${type('3xl')} } :host([align='center']) .panel { align-items: center; } }\n @media (forced-colors: active) { .panel { border: 1px solid CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n return html`<div class=\"panel ${this.imageSrc ? 'pictured' : ''}\" part=\"panel\">\n ${this.imageSrc ? html`<img class=\"photo\" src=${this.imageSrc} alt=${this.imageAlt} />` : nothing}\n <div class=\"words\">\n <div class=\"h\" role=\"heading\" aria-level=${this.headingLevel}>${this.heading}</div>\n ${this.lead ? html`<p class=\"lead\">${this.lead}</p>` : nothing}\n </div>\n <div class=\"actions\"><slot name=\"actions\"></slot></div>\n </div>`;\n }\n}\n\n/** One review. */\nexport interface ReviewItem {\n id?: string;\n quote: string;\n person: string;\n about?: string;\n rating?: number;\n avatarSrc?: string;\n}\n\nconst stars = (rating: number): TemplateResult =>\n html`<span class=\"stars\" role=\"img\" aria-label=${say('Rated {rating} out of 5', { rating })}>${[1, 2, 3, 4, 5].map((n) => html`<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" aria-hidden=\"true\" fill=${n <= rating ? 'currentColor' : 'none'} stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linejoin=\"round\"><path d=\"M12 3.5l2.6 5.4 5.9.7-4.4 4 1.2 5.8L12 16.5l-5.3 2.9 1.2-5.8-4.4-4 5.9-.7z\"/></svg>`)}</span>`;\n\nconst initials = (name: string): string =>\n name\n .split(/\\s+/)\n .filter((w) => /^[A-Za-z]/.test(w) && w.toLowerCase() !== 'and')\n .slice(0, 2)\n .map((w) => w[0]!.toUpperCase())\n .join('');\n\n/**\n * What customers say, in cards, with their rating and a face or their\n * initials, and a summary line above them.\n *\n * A rating is said in words as well as drawn in stars.\n *\n * @category content\n * @icon reviews\n */\nexport class ImpaktReviews extends ImpaktElement {\n static properties = {\n summary: { type: String },\n rating: { type: Number },\n items: { type: Array },\n columns: { type: String, reflect: true },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** A line above the reviews, such as \"4.8 from 312 buyers\". */\n declare summary: string;\n /** The overall rating out of 5, drawn beside the summary. */\n declare rating: number | undefined;\n declare items: ReviewItem[];\n declare columns: 'two' | 'three';\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.summary = '';\n this.rating = undefined;\n this.items = [];\n this.columns = 'three';\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 .top { display: flex; align-items: center; gap: ${space(3)}; margin-block-end: ${space(6)}; ${type('sm')} font-weight: ${fontWeight('medium')}; }\n .stars { display: inline-flex; gap: 2px; color: ${token_accent}; }\n ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${space(6)}; grid-template-columns: repeat(3, minmax(0, 1fr)); }\n :host([columns='two']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n li { display: flex; flex-direction: column; gap: ${space(4)}; padding: ${space(6)}; background: ${t.surfaceCard}; border-radius: ${t.radiusXl}; box-shadow: ${t.shadowSm}, inset 0 0 0 1px ${t.hairline}; }\n blockquote { margin: 0; flex: 1; ${type('md')} text-wrap: pretty; }\n .who { display: flex; align-items: center; gap: ${space(3)}; }\n .face { flex: none; display: inline-flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; border-radius: 50%; overflow: hidden; background: ${t.brandSubtle}; color: ${t.brand}; ${type('sm')} font-weight: ${fontWeight('bold')}; }\n .face img { inline-size: 100%; block-size: 100%; object-fit: cover; }\n .name { font-weight: ${fontWeight('semibold')}; ${type('sm')} }\n .about { color: ${t.textMuted}; ${type('sm')} }\n @container (max-width: 56rem) { ul, :host([columns='two']) ul { grid-template-columns: minmax(0, 1fr); } }\n `,\n ];\n\n render(): TemplateResult {\n return html`${this.summary || this.rating ? html`<p class=\"top\" part=\"summary\" style=\"margin-block-start:0\">${this.rating ? stars(Math.round(this.rating)) : nothing}<span>${this.summary}</span></p>` : nothing}\n <ul part=\"list\">${(this.items ?? []).map(\n (r) => html`<li part=\"review\">\n ${r.rating ? stars(r.rating) : nothing}\n <blockquote>${r.quote}</blockquote>\n <div class=\"who\"><span class=\"face\" aria-hidden=\"true\">${r.avatarSrc ? html`<img src=${r.avatarSrc} alt=\"\" />` : initials(r.person)}</span><span><span class=\"name\">${r.person}</span>${r.about ? html`<br /><span class=\"about\">${r.about}</span>` : nothing}</span></div>\n </li>`,\n )}</ul>`;\n }\n}\n\n/**\n * An email sign-up in one line: release dates, price lists, launch news.\n *\n * The field has a real label, the browser checks the address, and what happens\n * with the address is said beside the button. The app receives the address and\n * says when it is done.\n *\n * @category form\n * @icon mail\n * @fires {CustomEvent<{ email: string }>} impakt-submit - When a valid address is sent. The address is in detail.email.\n */\nexport class ImpaktNewsletter extends ImpaktElement {\n static properties = {\n heading: { type: String },\n lead: { type: String },\n label: { type: String },\n buttonText: { type: String, attribute: 'button-text' },\n smallPrint: { type: String, attribute: 'small-print' },\n doneText: { type: String, attribute: 'done-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 heading: string;\n declare lead: string;\n /** The field's label. */\n declare label: string;\n declare buttonText: string;\n /** What happens with the address, such as how to stop the emails. */\n declare smallPrint: string;\n /** What is said once the address is sent. */\n declare doneText: string;\n declare headingLevel: 2 | 3;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n private done = false;\n\n constructor() {\n super();\n this.heading = '';\n this.lead = '';\n this.label = 'Email address';\n this.buttonText = 'Sign up';\n this.smallPrint = '';\n this.doneText = 'Thank you. You’re on the list.';\n this.headingLevel = 2;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n spaceAround,\n headingStyles,\n css`\n :host { display: block; container-type: inline-size; }\n .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${space(8)}; align-items: center; }\n .words { display: flex; flex-direction: column; gap: ${space(2)}; }\n .h { ${type('2xl')} }\n form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: ${space(1)} ${space(3)}; }\n label { grid-column: 1 / -1; ${type('sm')} font-weight: ${fontWeight('semibold')}; }\n input { min-block-size: 44px; box-sizing: border-box; inline-size: 100%; padding: ${space(2.5)} ${space(3)}; font: inherit; color: ${t.text}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.border}; border-radius: ${t.radiusLg}; box-shadow: ${t.shadowXs}; }\n button { ${targetSize} min-block-size: 44px; padding: ${space(2)} ${space(5)}; font: inherit; ${type('sm')} font-weight: ${fontWeight('semibold')}; color: ${t.onBrand}; background: ${t.brand}; border: 0; border-radius: ${t.radiusLg}; box-shadow: ${t.shadowXs}; cursor: pointer; }\n button:hover { background: ${t.brandHover}; }\n .note { grid-column: 1 / -1; margin: ${space(1)} 0 0; color: ${t.textMuted}; ${type('sm')} }\n .done { margin: 0; ${type('md')} font-weight: ${fontWeight('semibold')}; }\n @container (max-width: 40rem) { .wrap { grid-template-columns: minmax(0, 1fr); } }\n `,\n ];\n\n private submit(event: SubmitEvent): void {\n event.preventDefault();\n const form = event.currentTarget as HTMLFormElement;\n if (typeof form.reportValidity === 'function' && !form.reportValidity()) return;\n const email = (form.querySelector('input') as HTMLInputElement).value.trim();\n this.dispatchEvent(new CustomEvent('impakt-submit', { detail: { email }, bubbles: true, composed: true }));\n this.done = true;\n this.requestUpdate();\n }\n\n render(): TemplateResult {\n const field = this.id_('email');\n return html`<div class=\"wrap\" part=\"wrap\">\n <div class=\"words\">\n ${this.heading ? html`<div class=\"h\" role=\"heading\" aria-level=${this.headingLevel}>${this.heading}</div>` : nothing}\n ${this.lead ? html`<p class=\"lead\">${this.lead}</p>` : nothing}\n </div>\n <div aria-live=\"polite\">${\n this.done\n ? html`<p class=\"done\">${this.doneText}</p>`\n : html`<form @submit=${this.submit}>\n <label for=${field}>${this.label}</label>\n <input id=${field} type=\"email\" name=\"email\" autocomplete=\"email\" required />\n <button type=\"submit\">${this.buttonText}</button>\n ${this.smallPrint ? html`<p class=\"note\">${this.smallPrint}</p>` : nothing}\n </form>`\n }</div>\n </div>`;\n }\n}\n\ncustomElements.define('impakt-carousel', ImpaktCarousel);\ncustomElements.define('impakt-gallery', ImpaktGallery);\ncustomElements.define('impakt-logo-cloud', ImpaktLogoCloud);\ncustomElements.define('impakt-steps', ImpaktSteps);\ncustomElements.define('impakt-media-split', ImpaktMediaSplit);\ncustomElements.define('impakt-cta-banner', ImpaktCtaBanner);\ncustomElements.define('impakt-reviews', ImpaktReviews);\ncustomElements.define('impakt-newsletter', ImpaktNewsletter);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-carousel': ImpaktCarousel;\n 'impakt-gallery': ImpaktGallery;\n 'impakt-logo-cloud': ImpaktLogoCloud;\n 'impakt-steps': ImpaktSteps;\n 'impakt-media-split': ImpaktMediaSplit;\n 'impakt-cta-banner': ImpaktCtaBanner;\n 'impakt-reviews': ImpaktReviews;\n 'impakt-newsletter': ImpaktNewsletter;\n }\n}\n"],"mappings":";AAAA,SAAS,KAAK,MAAM,eAAoC;AACxD,SAAS,KAAK,eAAe,WAAW,YAAY,gBAAgB,YAAY,YAAY,OAAO,aAAa,GAAG,OAAO,MAAM,eAAe;AAE/I,IAAM,eAAe,MAAM,wBAAwB,SAAS;AAE5D,IAAM,gBAAgB,MAAe,OAAO,eAAe,cAAc,WAAW,kCAAkC,EAAE;AAGxH,IAAM,cAAc;AAAA,aACP,UAAU,gIAAgI,EAAE,IAAI,iBAAiB,EAAE,WAAW,aAAa,EAAE,UAAU,UAAU,EAAE,IA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AAA,cAE5E;AAAA;AAAA,EAEJ;AACF;AAEA,eAAe,OAAO,mBAAmB,cAAc;AACvD,eAAe,OAAO,kBAAkB,aAAa;AACrD,eAAe,OAAO,qBAAqB,eAAe;AAC1D,eAAe,OAAO,gBAAgB,WAAW;AACjD,eAAe,OAAO,sBAAsB,gBAAgB;AAC5D,eAAe,OAAO,qBAAqB,eAAe;AAC1D,eAAe,OAAO,kBAAkB,aAAa;AACrD,eAAe,OAAO,qBAAqB,gBAAgB;","names":["track","slide"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/g2-site.ts"],"sourcesContent":["/**\n * The G2 Noire site blocks: the stage tag and section head every section starts\n * with, the service card, the cursors and hand notes on the hero, the facts,\n * numbered and column lists, and the office card.\n */\nimport { css, html, nothing, type TemplateResult } from 'lit';\nimport { ImpaktElement, focusRing, fontWeight, say, space, spaceAround, t } from '@atomic-ui/ui';\nimport { accent, accentOn, accentOnInk, ink, inkLine, inkMuted, inkRaised, levelOf, monoLabel, pad, paper } from './g2-shared';\n\n/** The five stages of a project, as the stage tags name them. */\nexport type StageName = 'note' | 'wireframe' | 'component' | 'code' | 'live';\n\n/** Each stage's number, phase and name, in English; `say` puts them in the page's language. */\nexport const STAGE_WORDS: Record<StageName, readonly [string, string, string]> = {\n note: ['01', 'Discover', 'Note'],\n wireframe: ['02', 'Design low-fi', 'Wireframe'],\n component: ['03', 'Design hi-fi', 'Component'],\n code: ['04', 'Build', 'Code'],\n live: ['05', 'Launch', 'Live'],\n};\n\n/**\n * A small square mono tag that says which stage of a project a section shows,\n * such as \"01 Discover Note\": the number in the accent, the phase in paper and\n * the stage's name quieter, on ink.\n *\n * Set `stage` for one of the five stages, or `index`, `phase` and `label` for\n * your own words; each one set wins over the stage's. On an ink band, set\n * `on-ink`: the tag is raised off the band with a line round it.\n *\n * **It is decoration.** The section's heading says what the section is, so the\n * tag is hidden from a screen reader unless `announce` is set (1.3.1). The tag\n * stays ink in both themes, so the yellow on it stays readable (1.4.3).\n *\n * @category content\n * @icon tag\n */\nexport class ImpaktStageTag extends ImpaktElement {\n static properties = {\n stage: { type: String, reflect: true },\n index: { type: String },\n phase: { type: String },\n label: { type: String },\n onInk: { type: Boolean, reflect: true, attribute: 'on-ink' },\n announce: { type: Boolean },\n };\n /** One of the five stages, which fills in the words. Leave empty to give them yourself. */\n declare stage: StageName | '';\n /** The number, such as \"01\". */\n declare index: string;\n /** The phase, such as \"Discover\". */\n declare phase: string;\n /** The stage's name, such as \"Note\". */\n declare label: string;\n /** Raise the tag off an ink band, with a line round it. */\n declare onInk: boolean;\n /** Let a screen reader read the tag. Leave off when the heading beside it says the same. */\n declare announce: boolean;\n\n constructor() {\n super();\n this.stage = '';\n this.index = '';\n this.phase = '';\n this.label = '';\n this.onInk = false;\n this.announce = false;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: inline-block; vertical-align: middle; }\n .tag { display: inline-flex; align-items: baseline; gap: 0.6em; padding: 6px 10px; background: ${ink}; border: 1px solid ${ink}; ${monoLabel}; font-size: 0.75rem; font-weight: ${fontWeight('medium')}; white-space: nowrap; }\n :host([on-ink]) .tag { background: ${inkRaised}; border-color: ${inkLine}; }\n .index { color: ${accentOnInk}; }\n .phase { color: ${paper}; }\n .label { color: ${inkMuted}; }\n @media (prefers-color-scheme: dark) { .tag { border-color: ${inkLine}; } }\n @media (forced-colors: active) { .tag { border-color: CanvasText; } .index, .phase, .label { color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const words = this.stage && this.stage in STAGE_WORDS ? STAGE_WORDS[this.stage] : undefined;\n const index = this.index || words?.[0] || '';\n const phase = this.phase || (words ? say(words[1]) : '');\n const label = this.label || (words ? say(words[2]) : '');\n if (!index && !phase && !label) return html``;\n return html`<span class=\"tag\" part=\"tag\" aria-hidden=${this.announce ? nothing : 'true'}\n >${index ? html`<span class=\"index\" part=\"index\">${index}</span>` : nothing}${phase ? html`<span class=\"phase\" part=\"phase\">${phase}</span>` : nothing}${\n label ? html`<span class=\"label\" part=\"label\">${label}</span>` : nothing\n }</span\n >`;\n }\n}\n\n/**\n * The head of a section: a mono label such as \"# Services\" with an optional\n * stage tag on the right, then a display heading and a lead.\n *\n * `size` sets the heading: `xl` (120px) for a page's hero, `l` (64px), and `m`\n * (52px) for a section. Give the heading as `heading`, or in the `heading` slot\n * when part of it is picked out with `impakt-highlight` or an accent word. The\n * lead goes under the heading, or with `lead-position=\"side\"` at the foot of a\n * 340px column on the right. The `aside` slot holds a picture on the right,\n * such as a journey object at 448 by 288.\n *\n * **One heading, at the level the page needs.** `level` is 1 for a page's hero\n * and 2 for a section (1.3.1, 2.4.6). The \"#\" before the label is decoration.\n *\n * **It stacks in a narrow column**, measured against its own width: the label\n * row, the heading, the lead and the aside, in reading order (1.4.10). It takes\n * its colours from the band it is on, so it reads on paper, ink and accent.\n *\n * @category layout\n * @icon heading\n * @role heading\n * @slot heading - The heading, when it holds more than words, such as an `impakt-highlight`. Replaces `heading`.\n * @slot lead - The lead, when it holds more than words. Replaces `lead`.\n * @slot tag - Something on the right of the label row, in place of the stage tag.\n * @slot aside - A picture on the right of the heading, such as a journey object.\n */\nexport class ImpaktSectionHead extends ImpaktElement {\n static properties = {\n label: { type: String },\n heading: { type: String },\n lead: { type: String },\n size: { type: String, reflect: true },\n level: { type: Number, reflect: true },\n leadPosition: { type: String, reflect: true, attribute: 'lead-position' },\n stage: { type: String },\n stageOnInk: { type: Boolean, attribute: 'stage-on-ink' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The mono label above the heading, such as \"Services\". A \"#\" is drawn before it. */\n declare label: string;\n declare heading: string;\n /** A sentence or two about the section. */\n declare lead: string;\n /** How large the heading is: `xl` 120px, `l` 64px, `m` 52px. */\n declare size: 'xl' | 'l' | 'm';\n /** The heading's level: 1 for a page's hero, 2 for a section. */\n declare level: 1 | 2;\n /** Where the lead goes: under the heading, or at the foot of a column on the right. */\n declare leadPosition: 'below' | 'side';\n /** A stage tag on the right of the label row. Leave empty for none. */\n declare stage: StageName | '';\n /** Draw the stage tag for an ink band. */\n declare stageOnInk: boolean;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.label = '';\n this.heading = '';\n this.lead = '';\n this.size = 'm';\n this.level = 2;\n this.leadPosition = 'below';\n this.stage = '';\n this.stageOnInk = false;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host { display: block; container-type: inline-size; color: ${t.text}; }\n .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: ${space(2)} ${space(4)}; min-block-size: 29px; }\n /* The label row in G2 Mono M: IBM Plex Mono 13px at 1.5 (14:728). */\n .label { margin: 0; font-family: ${t.fontMono}; font-size: var(--impakt-type-mono-m-size, 0.8125rem); line-height: var(--impakt-type-mono-m-line-height, 1.5); color: ${t.textMuted}; }\n .body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: ${space(10)}; row-gap: ${space(6)}; align-items: end; margin-block-start: ${space(6)}; }\n .heading { margin: 0; font-family: ${t.fontHeading}; font-weight: ${fontWeight('semibold')}; color: var(--impakt-color-text-heading, ${t.text}); text-wrap: balance; overflow-wrap: anywhere; }\n :host([size='m']) .heading { font-size: clamp(2.25rem, 1.2rem + 4cqi, 3.25rem); line-height: 1; letter-spacing: -0.04em; max-inline-size: 11.5em; }\n :host([size='l']) .heading { font-size: clamp(2.5rem, 1.2rem + 5cqi, 4rem); line-height: 1; letter-spacing: -0.04em; max-inline-size: 11.5em; }\n /* Display XL: 120px on a 1080px column and 52px on a 350px phone column, line height 1 and -5% (9:303, 14:734). */\n :host([size='xl']) .heading { font-size: clamp(3.25rem, 1.2128rem + 9.315cqi, 7.5rem); line-height: var(--impakt-type-display-xl-line-height, 1); letter-spacing: var(--impakt-type-display-xl-tracking, -0.05em); }\n .lead { margin: ${space(5)} 0 0; max-inline-size: 36rem; font-size: 1rem; line-height: 1.55; color: ${t.textMuted}; }\n .side { display: grid; gap: ${space(6)}; justify-items: end; }\n /* Beside a picture in the aside, such as the journey button, the heading sits level with the middle of it. */\n .body.aside { align-items: center; }\n .side .lead { margin: 0; max-inline-size: 340px; inline-size: 340px; }\n .side:not(:has(.lead)) { align-self: center; }\n ::slotted([slot='aside']) { display: block; max-inline-size: 100%; }\n @container (max-width: 47.99rem) {\n .body { grid-template-columns: minmax(0, 1fr); }\n .side { justify-items: stretch; }\n .side .lead { inline-size: auto; }\n }\n `,\n ];\n\n render(): TemplateResult {\n const lead = html`<p class=\"lead\" part=\"lead\"><slot name=\"lead\">${this.lead}</slot></p>`;\n const showLead = Boolean(this.lead) || this.hasSlot('lead');\n const inner = html`<slot name=\"heading\">${this.heading}</slot>`;\n const heading = Number(this.level) === 1 ? html`<h1 class=\"heading\" part=\"heading\">${inner}</h1>` : html`<h2 class=\"heading\" part=\"heading\">${inner}</h2>`;\n const side = this.leadPosition === 'side';\n return html`<header part=\"head\">\n <div class=\"top\">\n ${this.label ? html`<p class=\"label\" part=\"label\"><span aria-hidden=\"true\"># </span>${this.label}</p>` : html`<span></span>`}\n <slot name=\"tag\">${this.stage ? html`<impakt-stage-tag stage=${this.stage} ?on-ink=${this.stageOnInk}></impakt-stage-tag>` : nothing}</slot>\n </div>\n <div class=${this.hasSlot('aside') ? 'body aside' : 'body'}>\n <div class=\"main\">${heading}${showLead && !side ? lead : nothing}</div>\n <div class=\"side\">${showLead && side ? lead : nothing}<slot name=\"aside\"></slot></div>\n </div>\n </header>`;\n }\n\n /** Whether a child is in the named slot. On a server, where there are no children, only the attribute counts. */\n private hasSlot(name: string): boolean {\n const children = (this as unknown as { children?: HTMLCollection }).children;\n if (!children) return false;\n return Array.from(children).some((c) => c.getAttribute('slot') === name);\n }\n}\n\n/**\n * A service on the services grid: a number and a dot at the top, then at the\n * foot its name, a line about it, mono tags such as \"React Native · Expo\" and\n * \"Learn more\".\n *\n * **The card is one link.** The link is on the service's name, a heading, and\n * stretched over the card (2.4.4, 2.5.8). The number, dot and \"Learn more\"\n * line are decoration. Pointing at the card and focusing it look the same: it\n * turns to ink with paper words and the dot and \"Learn more\" in the accent,\n * which holds 4.5:1 on ink, and the focus ring is drawn round it (2.4.7).\n *\n * `featured` draws a card inked all the time, as it is when pointed at, for\n * the one service a page picks out or a sheet that shows the state.\n *\n * Put cards in a four-column grid with a 10px gap. On a phone the words sit at\n * the top and the card is as tall as they are.\n *\n * @category content\n * @icon card\n */\nexport class ImpaktServiceCard extends ImpaktElement {\n static properties = {\n number: { type: String },\n heading: { type: String },\n text: { type: String },\n tags: { type: String },\n href: { type: String },\n linkText: { type: String, attribute: 'link-text' },\n headingLevel: { type: Number, attribute: 'heading-level' },\n featured: { type: Boolean, reflect: true },\n };\n /** The number at the top, such as \"01\". */\n declare number: string;\n /** The service's name. */\n declare heading: string;\n /** A line about it. */\n declare text: string;\n /** What it uses or includes, such as \"React Native · Expo · Store launch\". Set in mono capitals. */\n declare tags: string;\n /** Where the card goes. Leave empty for a card that goes nowhere. */\n declare href: string;\n /** The line at the foot of a card that goes somewhere. */\n declare linkText: string;\n declare headingLevel: number;\n /** Draw the card inked, as when it is pointed at. */\n declare featured: boolean;\n\n constructor() {\n super();\n this.featured = false;\n this.number = '';\n this.heading = '';\n this.text = '';\n this.tags = '';\n this.href = '';\n this.linkText = 'Learn more';\n this.headingLevel = 3;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; block-size: 100%; }\n article { position: relative; box-sizing: border-box; block-size: 100%; min-block-size: 330px; display: flex; flex-direction: column; justify-content: space-between; gap: ${space(6)}; padding: ${space(6)}; background: ${t.surfaceCard}; color: ${t.text}; border: 1px solid ${t.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }\n .top { display: flex; align-items: center; justify-content: space-between; }\n .number { font-family: ${t.fontMono}; font-size: 0.75rem; letter-spacing: 0.06em; }\n .dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: currentColor; }\n .foot { display: grid; gap: ${space(3)}; }\n .heading { margin: 0; font-family: ${t.fontHeading}; font-size: 1.5rem; font-weight: ${fontWeight('semibold')}; line-height: 1.15; letter-spacing: -0.02em; }\n .heading a { color: inherit; text-decoration: none; }\n .heading a::after { content: ''; position: absolute; inset: 0; }\n .heading a:focus-visible { outline: none; }\n .heading a:focus-visible::after { box-shadow: ${t.focusShadow}; }\n .text { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: ${t.textMuted}; }\n .tags { margin: ${space(1)} 0 0; ${monoLabel}; color: ${t.textMuted}; }\n .more { margin-block-start: ${space(2)}; ${monoLabel}; font-weight: ${fontWeight('medium')}; }\n article:has(a):hover, article:focus-within, :host([featured]) article { background: ${ink}; color: ${paper}; border-color: ${ink}; }\n article:has(a):hover :is(.text, .tags), article:focus-within :is(.text, .tags), :host([featured]) :is(.text, .tags) { color: ${inkMuted}; }\n article:has(a):hover :is(.dot, .more), article:focus-within :is(.dot, .more), :host([featured]) :is(.dot, .more) { color: ${accentOnInk}; }\n @media (max-width: 47.99rem) { article { min-block-size: 0; justify-content: flex-start; } }\n @media (forced-colors: active) { article { border-color: CanvasText; } .dot { background: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const level = levelOf(this.headingLevel);\n return html`<article part=\"card\">\n <div class=\"top\" aria-hidden=\"true\">\n <span class=\"number\" part=\"number\">${this.number}</span>\n <span class=\"dot\" part=\"dot\"></span>\n </div>\n <div class=\"foot\">\n <div class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>\n ${this.href ? html`<a href=${this.href} part=\"link\">${this.heading}</a>` : this.heading}\n </div>\n ${this.text ? html`<p class=\"text\" part=\"text\">${this.text}</p>` : nothing}\n ${this.tags ? html`<p class=\"tags\" part=\"tags\">${this.tags}</p>` : nothing}\n ${this.href && this.linkText ? html`<span class=\"more\" part=\"more\" aria-hidden=\"true\">${this.linkText} →</span>` : nothing}\n </div>\n </article>`;\n }\n}\n\n/**\n * A pointer with a name beside it, as if someone were working on the page with\n * you: the cursors round a hero's heading.\n *\n * The name is on ink, outlined, or on the accent. With `drift` it moves a few\n * pixels to and fro, slowly; it stays still for anyone who asks for less\n * motion (2.3.3), and it never moves more than 5 seconds without a way to stop\n * it mattering, because it carries nothing (2.2.2).\n *\n * **It is decoration**, hidden from a screen reader (1.3.1).\n *\n * @category media\n * @icon pointer\n */\nexport class ImpaktCursor extends ImpaktElement {\n static properties = {\n name: { type: String },\n variant: { type: String, reflect: true },\n drift: { type: Boolean, reflect: true },\n };\n /** The name beside the pointer, such as \"Client\". */\n declare name: string;\n /** How the name is drawn: on ink, outlined, or on the accent. */\n declare variant: 'ink' | 'outline' | 'accent';\n /** Move slowly to and fro. Still for anyone who asks for less motion. */\n declare drift: boolean;\n\n constructor() {\n super();\n this.name = '';\n this.variant = 'ink';\n this.drift = false;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: inline-block; position: relative; pointer-events: none; }\n .cursor { display: inline-flex; align-items: flex-start; }\n svg { display: block; flex: none; }\n .arrow { fill: ${ink}; stroke: ${paper}; }\n .name { margin: 16px 0 0 -2px; padding: 4px 7px; ${monoLabel}; font-weight: ${fontWeight('medium')}; white-space: nowrap; background: ${ink}; color: ${paper}; border: 1px solid ${ink}; }\n :host([variant='outline']) .name { background: ${t.surfaceCard}; color: ${t.text}; border-color: ${t.text}; }\n :host([variant='accent']) .name { background: ${accent}; color: ${accentOn}; border-color: ${accentOn}; }\n :host([drift]) .cursor { animation: drift 7s ease-in-out infinite alternate; }\n @keyframes drift { 0% { transform: translate(0, 0); } 50% { transform: translate(6px, -3px); } 100% { transform: translate(-3px, 4px); } }\n @media (prefers-reduced-motion: reduce) { :host([drift]) .cursor { animation: none; } }\n @media (forced-colors: active) { .arrow { fill: CanvasText; stroke: Canvas; } .name { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n return html`<span class=\"cursor\" part=\"cursor\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 16 22\" width=\"16\" height=\"22\" focusable=\"false\"><path class=\"arrow\" d=\"M1.5 1.5v16.2l4.3-4.1 3 6.6 2.6-1.2-3-6.5h6z\" stroke-width=\"1.25\" stroke-linejoin=\"round\" /></svg>\n ${this.name ? html`<span class=\"name\" part=\"name\">${this.name}</span>` : nothing}\n </span>`;\n }\n}\n\n/**\n * A short note in handwriting, with an arrow if it points at something, such\n * as \"keep scrolling, this note becomes the real button.\"\n *\n * The face is `--impakt-font-family-hand` (Kalam in the G2 designs), and the\n * body face until a brand sets it. The note is real text and is read, unless\n * `decorative` is set because it repeats something said elsewhere (1.3.1).\n * The arrow is always decoration.\n *\n * @category content\n * @icon pen\n * @slot - The note, when it holds more than words. Replaces `text`.\n */\nexport class ImpaktHandNote extends ImpaktElement {\n static properties = {\n text: { type: String },\n arrow: { type: String, reflect: true },\n decorative: { type: Boolean, reflect: true },\n };\n /** The note. */\n declare text: string;\n /** Where an arrow points from the note. */\n declare arrow: 'none' | 'left' | 'right' | 'down' | 'up';\n /** Hide the note from a screen reader, when it repeats something said elsewhere. */\n declare decorative: boolean;\n\n constructor() {\n super();\n this.text = '';\n this.arrow = 'none';\n this.decorative = false;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: inline-block; max-inline-size: 18rem; }\n .note { display: inline-flex; align-items: center; gap: ${space(2)}; }\n :host(:is([arrow='down'], [arrow='up'])) .note { flex-direction: column; align-items: flex-start; }\n :host(:is([arrow='left'], [arrow='up'])) svg { order: -1; }\n p { margin: 0; font-family: var(--impakt-font-family-hand, ${t.fontBody}); font-size: 1.25rem; line-height: 1.2; color: ${t.textMuted}; }\n svg { flex: none; color: ${t.textMuted}; }\n :host([arrow='left']) svg { transform: scaleX(-1); }\n :host([arrow='down']) svg { transform: rotate(90deg); }\n :host([arrow='up']) svg { transform: rotate(-90deg); }\n @media (forced-colors: active) { p, svg { color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const arrow =\n this.arrow && this.arrow !== 'none'\n ? html`<svg viewBox=\"0 0 40 24\" width=\"40\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M2 16c8-10 20-12 34-6M30 4l6 6-7 4\" /></svg>`\n : nothing;\n return html`<div class=\"note\" part=\"note\" aria-hidden=${this.decorative ? 'true' : nothing}><p part=\"text\"><slot>${this.text}</slot></p>${arrow}</div>`;\n }\n}\n\n/** One fact: a label and its value. */\nexport interface FactItem {\n /** What it is, such as \"Client\". Set in mono capitals. */\n label: string;\n /** The fact, such as \"Vehicle importer · UK → Cyprus\". */\n value: string;\n /** Make the value a link, such as `mailto:` for an email address. */\n href?: string;\n /** This value's size, in place of the block's. */\n size?: 'sm' | 'md' | 'lg' | 'xl';\n}\n\n/**\n * A few facts, each a mono label over its value: a case study's client, role,\n * platform and stack in four columns under an ink rule, or contact details\n * stacked with the email set large.\n *\n * A description list, so each value is read with its label (1.3.1). Columns\n * wrap to fit their width, so they stack on a phone (1.4.10).\n *\n * @category content\n * @icon list\n */\nexport class ImpaktFacts extends ImpaktElement {\n static properties = {\n items: { type: Array },\n layout: { type: String, reflect: true },\n size: { type: String, reflect: true },\n label: { type: String },\n };\n /** The facts, in order. */\n declare items: FactItem[];\n /** Side by side under a rule each, or stacked. */\n declare layout: 'columns' | 'stacked';\n /** The values' size: `sm` 16px, `md` 18px, `lg` 24px, `xl` 32px. An item can set its own. */\n declare size: 'sm' | 'md' | 'lg' | 'xl';\n /** A name for the list, for a screen reader. Leave empty for none. */\n declare label: string;\n\n constructor() {\n super();\n this.items = [];\n this.layout = 'columns';\n this.size = 'md';\n this.label = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n :host { display: block; color: ${t.text}; }\n dl { margin: 0; display: grid; gap: ${space(5)}; }\n :host([layout='columns']) dl { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); column-gap: ${space(5)}; row-gap: ${space(6)}; }\n :host([layout='columns']) .fact { border-block-start: 1px solid ${t.text}; padding-block-start: ${space(4)}; }\n dt { ${monoLabel}; color: ${t.textMuted}; }\n dd { margin: ${space(2)} 0 0; font-family: ${t.fontBody}; line-height: 1.3; overflow-wrap: anywhere; }\n :host([layout='columns']) dd { margin-block-start: ${space(3)}; }\n .sm { font-size: 1rem; }\n .md { font-size: 1.125rem; }\n .lg { font-size: 1.5rem; letter-spacing: -0.01em; }\n .xl { font-size: clamp(1.5rem, 1rem + 2vw, 2rem); letter-spacing: -0.02em; }\n a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }\n a:hover { text-decoration-thickness: 2px; }\n @media (forced-colors: active) { :host([layout='columns']) .fact { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n if (!this.items.length) return html``;\n return html`<dl part=\"list\" aria-label=${this.label || nothing}>\n ${this.items.map(\n (item) => html`<div class=\"fact\" part=\"fact\">\n <dt part=\"label\">${item.label}</dt>\n <dd part=\"value\" class=${item.size ?? this.size}>${item.href ? html`<a href=${item.href}>${item.value}</a>` : item.value}</dd>\n </div>`,\n )}\n </dl>`;\n }\n}\n\n/** One row of a numbered list. */\nexport interface NumberedItem {\n heading: string;\n text?: string;\n}\n\n/**\n * A numbered list under an ink rule, each row split by a hairline: the number,\n * a heading and a line of quieter text in three columns. \"Three rules we don't\n * break\", the steps of a project, a tool's features.\n *\n * An ordered list, so a screen reader says how many rows there are and which\n * one this is, and the drawn numbers are hidden from it (1.3.1). Each heading\n * is at the level the page asks for. It stacks in a narrow column, measured\n * against its own width (1.4.10), and takes its colours from its band.\n *\n * @category content\n * @icon list-ordered\n */\nexport class ImpaktNumberedList extends ImpaktElement {\n static properties = {\n items: { type: Array },\n start: { type: Number },\n headingLevel: { type: Number, attribute: 'heading-level' },\n label: { type: String },\n };\n declare items: NumberedItem[];\n /** The number the first row is given. */\n declare start: number;\n declare headingLevel: number;\n /** A name for the list, for a screen reader. Leave empty for none. */\n declare label: string;\n\n constructor() {\n super();\n this.items = [];\n this.start = 1;\n this.headingLevel = 3;\n this.label = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; container-type: inline-size; color: ${t.text}; }\n ol { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid ${t.text}; }\n li { display: grid; grid-template-columns: 60px minmax(0, 520fr) minmax(0, 420fr); column-gap: ${space(10)}; align-items: center; padding-block: ${space(6)}; border-block-end: 1px solid ${t.rule}; }\n .n { font-family: ${t.fontMono}; font-size: 0.75rem; letter-spacing: 0.06em; color: ${t.textMuted}; }\n .heading { margin: 0; font-family: ${t.fontHeading}; font-size: clamp(1.5rem, 1rem + 2cqi, 2rem); font-weight: ${fontWeight('semibold')}; line-height: 1.15; letter-spacing: -0.025em; }\n .text { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: ${t.textMuted}; }\n @container (max-width: 47.99rem) {\n li { grid-template-columns: minmax(0, 1fr); row-gap: ${space(2)}; }\n }\n @media (forced-colors: active) { ol { border-color: CanvasText; } li { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n if (!this.items.length) return html``;\n const level = levelOf(this.headingLevel);\n const start = Number.isFinite(Number(this.start)) ? Number(this.start) : 1;\n return html`<ol part=\"list\" role=\"list\" start=${start} aria-label=${this.label || nothing}>\n ${this.items.map(\n (item, i) => html`<li part=\"item\">\n <span class=\"n\" aria-hidden=\"true\">${pad(start + i)}</span>\n <div class=\"heading\" role=\"heading\" aria-level=${level} part=\"heading\">${item.heading}</div>\n ${item.text ? html`<p class=\"text\" part=\"text\">${item.text}</p>` : html`<span></span>`}\n </li>`,\n )}\n </ol>`;\n }\n}\n\n/** One column of a column list. */\nexport interface ColumnListColumn {\n /** The column's heading, such as \"Design\". Set in mono capitals. */\n heading: string;\n /** What is in it, each a line set large. */\n items: string[];\n}\n\n/**\n * What a studio does, in four columns: each under an ink rule, with a mono\n * heading such as \"Engineering\" and a stack of what it covers set large. The\n * items are words, not links.\n *\n * Each column's heading is a heading at the level the page asks for, and its\n * items a list (1.3.1). The columns wrap to fit their width (1.4.10).\n *\n * @category content\n * @icon columns\n */\nexport class ImpaktColumnList extends ImpaktElement {\n static properties = {\n columns: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n };\n declare columns: ColumnListColumn[];\n declare headingLevel: number;\n\n constructor() {\n super();\n this.columns = [];\n this.headingLevel = 3;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; color: ${t.text}; }\n .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: ${space(8)} ${space(5)}; }\n section { border-block-start: 1px solid ${t.text}; padding-block-start: ${space(4)}; }\n .heading { margin: 0; ${monoLabel}; color: ${t.textMuted}; }\n ul { margin: ${space(3)} 0 0; padding: 0; list-style: none; display: grid; gap: ${space(2)}; }\n li { font-family: ${t.fontHeading}; font-size: 1.5rem; font-weight: ${fontWeight('semibold')}; line-height: 1.2; letter-spacing: -0.02em; }\n @media (forced-colors: active) { section { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n if (!this.columns.length) return html``;\n const level = levelOf(this.headingLevel);\n return html`<div class=\"grid\" part=\"grid\">\n ${this.columns.map(\n (col) => html`<section part=\"column\">\n <div class=\"heading\" role=\"heading\" aria-level=${level} part=\"heading\">${col.heading}</div>\n <ul role=\"list\" part=\"list\">${(col.items ?? []).map((item) => html`<li part=\"item\">${item}</li>`)}</ul>\n </section>`,\n )}\n </div>`;\n }\n}\n\n/**\n * An office: a mono line with its time zone and hours, its name set large, the\n * region under it and a line about it, on a white card with an ink border. An\n * accent tag at the top right can say how its hours meet another office's,\n * such as \"+2h · same working day\".\n *\n * The name is a heading at the level the page asks for (1.3.1). The tag is\n * text and is read; on a narrow card it moves above the name (1.4.10).\n *\n * @category content\n * @icon map-pin\n */\nexport class ImpaktOfficeCard extends ImpaktElement {\n static properties = {\n hours: { type: String },\n name: { type: String },\n region: { type: String },\n text: { type: String },\n tag: { type: String },\n headingLevel: { type: Number, attribute: 'heading-level' },\n };\n /** The time zone and hours, such as \"GMT · Mon–Fri 9–18\". */\n declare hours: string;\n /** The office, such as \"UK\". */\n declare name: string;\n /** Where it is, such as \"United Kingdom\". */\n declare region: string;\n /** A line about it. */\n declare text: string;\n /** An accent tag at the top right, such as \"+2h · same working day\". Leave empty for none. */\n declare tag: string;\n declare headingLevel: number;\n\n constructor() {\n super();\n this.hours = '';\n this.name = '';\n this.region = '';\n this.text = '';\n this.tag = '';\n this.headingLevel = 3;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; block-size: 100%; container-type: inline-size; }\n article { box-sizing: border-box; block-size: 100%; display: grid; align-content: start; gap: ${space(2)}; padding: ${space(8)}; background: ${t.surfaceCard}; color: ${t.text}; border: 1px solid ${t.text}; }\n .top { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: center; gap: ${space(2)}; }\n .hours { margin: 0; ${monoLabel}; color: ${t.textMuted}; }\n .tag { margin: 0; padding: 3px 6px; ${monoLabel}; font-weight: ${fontWeight('medium')}; background: ${accent}; color: ${accentOn}; }\n .name { margin: ${space(2)} 0 0; font-family: ${t.fontHeading}; font-size: clamp(2.5rem, 1rem + 10cqi, 4rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.04em; overflow-wrap: anywhere; }\n .region { margin: ${space(2)} 0 0; font-size: 1rem; line-height: 1.4; }\n .text { margin: ${space(2)} 0 0; font-size: 0.9375rem; line-height: 1.5; color: ${t.textMuted}; }\n @container (max-width: 22rem) { article { padding: ${space(5)}; } }\n @media (forced-colors: active) { article { border-color: CanvasText; } .tag { border: 1px solid CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const level = levelOf(this.headingLevel);\n return html`<article part=\"card\">\n ${\n this.hours || this.tag\n ? html`<div class=\"top\">${this.hours ? html`<p class=\"hours\" part=\"hours\">${this.hours}</p>` : html`<span></span>`}${this.tag ? html`<p class=\"tag\" part=\"tag\">${this.tag}</p>` : nothing}</div>`\n : nothing\n }\n <div class=\"name\" role=\"heading\" aria-level=${level} part=\"name\">${this.name}</div>\n ${this.region ? html`<p class=\"region\" part=\"region\">${this.region}</p>` : nothing}\n ${this.text ? html`<p class=\"text\" part=\"text\">${this.text}</p>` : nothing}\n </article>`;\n }\n}\n\ncustomElements.define('impakt-stage-tag', ImpaktStageTag);\ncustomElements.define('impakt-section-head', ImpaktSectionHead);\ncustomElements.define('impakt-service-card', ImpaktServiceCard);\ncustomElements.define('impakt-cursor', ImpaktCursor);\ncustomElements.define('impakt-hand-note', ImpaktHandNote);\ncustomElements.define('impakt-facts', ImpaktFacts);\ncustomElements.define('impakt-numbered-list', ImpaktNumberedList);\ncustomElements.define('impakt-column-list', ImpaktColumnList);\ncustomElements.define('impakt-office-card', ImpaktOfficeCard);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-stage-tag': ImpaktStageTag;\n 'impakt-section-head': ImpaktSectionHead;\n 'impakt-service-card': ImpaktServiceCard;\n 'impakt-cursor': ImpaktCursor;\n 'impakt-hand-note': ImpaktHandNote;\n 'impakt-facts': ImpaktFacts;\n 'impakt-numbered-list': ImpaktNumberedList;\n 'impakt-column-list': ImpaktColumnList;\n 'impakt-office-card': ImpaktOfficeCard;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAKA,SAAS,KAAK,MAAM,eAAoC;AACxD,SAAS,eAAe,WAAW,YAAY,KAAK,OAAO,aAAa,SAAS;AAO1E,IAAM,cAAoE;AAAA,EAC/E,MAAM,CAAC,MAAM,YAAY,MAAM;AAAA,EAC/B,WAAW,CAAC,MAAM,iBAAiB,WAAW;AAAA,EAC9C,WAAW,CAAC,MAAM,gBAAgB,WAAW;AAAA,EAC7C,MAAM,CAAC,MAAM,SAAS,MAAM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;AAAA,QAEH,KAAK,SAAS,KAAK,MACf,wBAAwB,KAAK,QAAQ,qCAAqC,KAAK,KAAK,SAAS,mBAAmB,GAAG,KAAK,MAAM,iCAAiC,KAAK,GAAG,SAAS,OAAO,WACvL,OACN;AAAA,oDAC8C,KAAK,gBAAgB,KAAK,IAAI;AAAA,QAC1E,KAAK,SAAS,uCAAuC,KAAK,MAAM,SAAS,OAAO;AAAA,QAChF,KAAK,OAAO,mCAAmC,KAAK,IAAI,SAAS,OAAO;AAAA;AAAA,EAE9E;AACF;AAEA,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,uBAAuB,iBAAiB;AAC9D,eAAe,OAAO,uBAAuB,iBAAiB;AAC9D,eAAe,OAAO,iBAAiB,YAAY;AACnD,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,gBAAgB,WAAW;AACjD,eAAe,OAAO,wBAAwB,kBAAkB;AAChE,eAAe,OAAO,sBAAsB,gBAAgB;AAC5D,eAAe,OAAO,sBAAsB,gBAAgB;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
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 { ImpaktElement, focusRing, hideOn, fontSize, fontWeight, space, t, token, type, toneOf, type NavLink, type Tone } from '@atomic-ui/ui';\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 * @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 * @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 };\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: NavLink[];\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. `accent` fills one in the accent. */\n declare presence: Array<{ name: string; initials?: string; accent?: boolean }>;\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 }\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 .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'])) .bar { flex-wrap: wrap; row-gap: ${space(2)}; } :host(:not([fold='narrow'])) .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'])) .bar { flex-wrap: wrap; row-gap: ${space(1)}; }\n :host(:not(:defined):not([fold='narrow'])) .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'])) .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 ];\n\n private act(): void {\n this.dispatchEvent(new CustomEvent('impakt-action', { bubbles: true, composed: true }));\n }\n\n render(): TemplateResult {\n const wordmark = this.logoSrc ? html`<img src=${this.logoSrc} alt=${this.logoAlt || this.brand} />` : html`${this.brand}`;\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 // 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.brand || this.logoSrc ? 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>` : nothing}\n ${this.context ? html`<span class=\"context\" part=\"context\"><span class=\"slash\" aria-hidden=\"true\">/</span>${this.context}</span>` : nothing}\n ${this.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=${this.fold} look=${this.navLook || nothing} .current=${this.current} .links=${this.links} .label=${this.label} .menuText=${this.menuText} .actionText=${this.fold === 'narrow' ? 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.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 ${this.statusAt === 'start' ? nothing : status}\n ${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}\n </slot></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,SAAS,eAAe,WAAW,QAAQ,UAAU,YAAY,OAAO,GAAG,OAAO,MAAM,cAAuC;AAI/H,IAAM,SAAS,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;AAG7B,IAAM,OAAO,EAAE;AAiCR,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,O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