@atomic-ui/blocks 0.14.0 → 0.15.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/README.md +15 -15
- package/custom-elements.json +2978 -9654
- package/dist/chunk-GQ2I44OU.js +226 -0
- package/dist/chunk-GQ2I44OU.js.map +1 -0
- package/dist/chunk-HISF6RYK.js +199 -0
- package/dist/chunk-HISF6RYK.js.map +1 -0
- package/dist/{chunk-Q366ZM2X.js → chunk-LJGOTYDJ.js} +17 -41
- package/dist/chunk-LJGOTYDJ.js.map +1 -0
- package/dist/{chunk-BW5ZMKES.js → chunk-OBBPBN4S.js} +17 -144
- package/dist/chunk-OBBPBN4S.js.map +1 -0
- package/dist/chunk-OHXEZPBB.js +109 -0
- package/dist/chunk-OHXEZPBB.js.map +1 -0
- package/dist/{chunk-NZQZRBKV.js → chunk-VOONXP5H.js} +15 -57
- package/dist/chunk-VOONXP5H.js.map +1 -0
- package/dist/chunk-XSKGWT2D.js +84 -0
- package/dist/chunk-XSKGWT2D.js.map +1 -0
- package/dist/components/changelog.d.ts +0 -288
- package/dist/components/changelog.js +3 -12
- package/dist/components/g2-site.d.ts +27 -40
- package/dist/components/g2-site.js +1 -3
- package/dist/components/marketing.d.ts +0 -283
- package/dist/components/marketing.js +3 -13
- package/dist/components/organisms.d.ts +0 -489
- package/dist/components/organisms.js +3 -19
- package/dist/components/selling.d.ts +0 -255
- package/dist/components/selling.js +3 -15
- package/dist/components/site.d.ts +6 -52
- package/dist/components/site.js +3 -5
- package/dist/components/studio.d.ts +10 -95
- package/dist/components/studio.js +1 -3
- package/dist/index.d.ts +9 -13
- package/dist/index.js +23 -101
- package/dist/index.js.map +1 -1
- package/dist/standalone/atomic-ui-blocks.js +751 -1642
- package/dist/standalone/atomic-ui-blocks.js.map +4 -4
- package/dist/standalone/index.html +18 -26
- package/package.json +3 -3
- package/specimen/index.html +18 -26
- package/dist/chunk-BW5ZMKES.js.map +0 -1
- package/dist/chunk-GZTBAT6P.js +0 -574
- package/dist/chunk-GZTBAT6P.js.map +0 -1
- package/dist/chunk-NHWD2LUR.js +0 -255
- package/dist/chunk-NHWD2LUR.js.map +0 -1
- package/dist/chunk-NZQZRBKV.js.map +0 -1
- package/dist/chunk-Q366ZM2X.js.map +0 -1
- package/dist/chunk-R7SSIE2E.js +0 -362
- package/dist/chunk-R7SSIE2E.js.map +0 -1
- package/dist/chunk-XB6FD4SF.js +0 -438
- package/dist/chunk-XB6FD4SF.js.map +0 -1
- package/dist/chunk-YXMXLVK7.js +0 -230
- package/dist/chunk-YXMXLVK7.js.map +0 -1
- package/dist/chunk-ZD75GU6J.js +0 -75
- package/dist/chunk-ZD75GU6J.js.map +0 -1
- package/dist/chunk-ZM2HLQOG.js +0 -783
- package/dist/chunk-ZM2HLQOG.js.map +0 -1
- package/dist/chunk-ZODL5HD4.js +0 -535
- package/dist/chunk-ZODL5HD4.js.map +0 -1
- package/dist/components/card-grid.d.ts +0 -72
- package/dist/components/card-grid.js +0 -7
- package/dist/components/card-grid.js.map +0 -1
- package/dist/components/property.d.ts +0 -389
- package/dist/components/property.js +0 -17
- package/dist/components/property.js.map +0 -1
- package/dist/components/scene.d.ts +0 -138
- package/dist/components/scene.js +0 -7
- package/dist/components/scene.js.map +0 -1
- package/dist/components/scrubber.d.ts +0 -86
- package/dist/components/scrubber.js +0 -7
- package/dist/components/scrubber.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
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 { ImpaktElement, focusRing, fontSize, fontWeight, lineHeight, space, spaceAround, t, token, R, revealAt, revealStyles } 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 * For a brand with the reveal set on (impkt-web#51) the ink wipes in from the\n * left in 180ms and the arrow slides 4px on, on hover or focus only, and the\n * rows drop into place one after another, once, as the list is reached. No row\n * is inked until it is pointed at or focused, unless it is `featured`.\n *\n * The names shrink with the block's own width, not the window's, so the list\n * reads the same in a narrow column as on a phone (1.4.10).\n *\n * **A row can say more.** `text` adds a description column, `badge` a status\n * word in capitals and `price` a line under it, so the same list sets out a\n * studio's work or a shop of tools. A `featured` row stays in ink with its\n * badge and arrow in the accent. `columns` draws a line of column names above\n * the rows, such as \"No.\", \"Project\" and \"Type · Sector\"; it is decoration,\n * since each row's own words already say what they are.\n *\n * **A row can show a picture as it is pointed at.** Give it `preview` and a\n * card with the picture follows the pointer, tilted. It is shown only to a\n * mouse, never on touch or with reduced motion asked for, and it is hidden\n * from a screen reader: the row's name already says what it is.\n *\n * @category content\n * @icon list\n */\nexport class ImpaktWorkList extends ImpaktElement {\n static properties = {\n items: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n start: { type: Number },\n label: { type: String },\n columns: { type: Array },\n preview: { state: true },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The projects, in order. */\n declare items: WorkItem[];\n /** The heading level of each project's name. It depends on what is above the list on the page. */\n declare headingLevel: number;\n /** The number the first project is given. */\n declare start: number;\n /** A name for the list, so a screen reader can tell it from other lists on the page. Leave empty for none. */\n declare label: string;\n /**\n * Column names drawn above the rows, in monospace capitals: the first over\n * the numbers, the second over the names, and the rest, joined with \" · \",\n * over the last column, such as `[\"No.\", \"Project\", \"Type · Sector\"]`.\n * Leave empty for none.\n */\n declare columns: string[];\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n /** The preview being shown, with where the pointer is. */\n declare private preview: { src: string; label: string; x: number; y: number } | null;\n\n constructor() {\n super();\n this.items = [];\n this.headingLevel = 3;\n this.start = 1;\n this.label = '';\n this.columns = [];\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n this.preview = null;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n spaceAround,\n css`\n :host { display: block; position: relative; container: impakt-work-list / inline-size; --impakt-work-accent: ${token('color.accent.default', '#ffd43b')}; --impakt-work-on-accent: ${token('color.accent.on', '#111111')}; }\n ol { list-style: none; margin: 0; padding: 0; border-block-start: ${t.borderThin} solid ${t.text}; }\n .columns + ol { border-block-start: 0; }\n /* The Project row component (8:339): 22px above and below a 72px name, the number in a 54px column, 24px apart. */\n li, .columns { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 22px; align-items: center; column-gap: ${space(6)}; padding: 22px ${space(8)}; }\n .texts li, .texts.columns { grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr) auto 22px; }\n li { position: relative; isolation: isolate; border-block-end: ${t.borderThin} solid ${t.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }\n /* The ink a row turns to, a layer of its own: a brand that derives the reveal set fades it in whole, as before; Impakt wipes it in from the left in 180ms (impkt-web#51). */\n li::before { content: ''; position: absolute; inset: 0; z-index: -1; background: ${t.text}; opacity: calc(1 - ${R.wipeFrom}); transform: scaleX(${R.wipeFrom}); transform-origin: left center; transition: transform ${R.wipeDuration} ${R.wipeEasing}, opacity ${R.wipeDuration} ${R.wipeEasing}; pointer-events: none; }\n li:has(a):hover::before, li:has(a:focus-visible)::before { opacity: 1; transform: none; }\n li :is(.name, .number, .meta, .text, .price, .arrow) { transition: color ${R.wipeDuration} ${R.wipeEasing}; }\n .arrow svg { transition: translate ${R.arrowDuration} ${R.arrowEasing}; }\n /* The row's arrow points up and along, so it slides that way, 4px in all. */\n li:has(a):hover .arrow svg, li:has(a:focus-visible) .arrow svg { translate: calc(0.7071 * ${R.arrowDistance}) calc(-0.7071 * ${R.arrowDistance}); }\n /* Drop (impkt-web#51): the rows drop 12px into place one after another as the list is reached, and the line under each settles. */\n :host([data-motion]) li { animation: ik-reveal-drop ${R.drop} ${R.arrive} ${revealAt()} both, ik-reveal-settle ${R.drop} ${R.arrive} ${revealAt()} both; }\n :host([data-motion]) .columns { animation: ik-reveal-type ${R.type} ${R.arrive} ${revealAt(0)} both; }\n /* The column names (20:998): G2 Mono S on its 1.4 line, 12px over the rule, and the last name ends over the arrow's column. */\n .columns { padding-block: 0 ${space(3)}; border-block-end: ${t.borderThin} solid ${t.text}; font-family: ${t.fontMono}; font-size: 0.6875rem; line-height: 1.4; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n .columns .last { grid-column: -3 / -1; text-align: end; }\n .number { font-family: ${t.fontMono}; font-size: 0.8125rem; line-height: 1.5; font-variant-numeric: tabular-nums; color: ${t.textMuted}; }\n /* Display Row: 72px on a 1080px list and 40px on a 350px phone list (8:329, 14:947). */\n .name { font-family: ${t.fontHeading}; font-size: clamp(2rem, 1.541rem + 4.384cqi, 4.5rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.05em; color: ${t.text}; overflow-wrap: anywhere; }\n .texts .name { font-size: clamp(2rem, 5cqi, 3.5rem); }\n .name a { color: inherit; text-decoration: none; }\n /* The link is stretched over the row, so the row is one target. */\n .name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }\n .name a:focus-visible { outline: none; }\n .name a:focus-visible::after { box-shadow: ${t.focusShadow}; }\n .text { margin: 0; font-size: ${fontSize('md')}; line-height: ${lineHeight('normal')}; color: ${t.textMuted}; }\n .side { display: flex; flex-direction: column; align-items: flex-end; gap: ${space(2)}; text-align: end; }\n .meta, .price { font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n /* The meta in G2 Mono S: 11px medium capitals at 0.06em (8:331). */\n .meta { font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; }\n .price { font-size: 0.6875rem; }\n /* Marketing badges are monospace capitals at 11px. A row that goes somewhere has a solid one; one that does not yet has an outline. */\n .badge { display: inline-block; padding: ${space(1)} ${space(2.5)}; font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: ${t.trackingWide}; text-transform: uppercase; white-space: nowrap; color: ${t.surfaceCard}; background: ${t.text}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusSm}; }\n li:not(:has(a)) .badge { color: ${t.text}; background: transparent; }\n .arrow { display: flex; color: ${t.text}; }\n /* Pointed at, focused or featured, the row turns to ink. The card colour on the text colour is a pair every brand already holds at 4.5:1. */\n li.featured { background: ${t.text}; }\n li:has(a):hover .name, li:has(a:focus-visible) .name, li.featured .name { color: ${t.surfaceCard}; }\n li:has(a):hover :is(.number, .meta, .text, .price), li:has(a:focus-visible) :is(.number, .meta, .text, .price), li.featured :is(.number, .meta, .text, .price) { color: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); }\n li:has(a):hover .badge, li:has(a:focus-visible) .badge { color: ${t.text}; background: ${t.surfaceCard}; border-color: ${t.surfaceCard}; }\n li:has(a):hover .arrow, li:has(a:focus-visible) .arrow, li.featured .arrow { color: var(--impakt-work-accent); }\n li.featured .badge { color: var(--impakt-work-on-accent); background: var(--impakt-work-accent); border-color: var(--impakt-work-accent); }\n /* The preview card follows the pointer. Only its transform changes, so it costs no layout. */\n .preview { position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 2; inline-size: 15rem; box-sizing: border-box; padding: ${space(2)}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; box-shadow: 0 16px 32px rgb(0 0 0 / 0.2); pointer-events: none; transform: translate(var(--x), var(--y)) translate(-50%, -50%) rotate(-3deg); }\n .preview img { display: block; inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; }\n .preview span { display: block; padding-block-end: ${space(2)}; font-family: ${t.fontMono}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n /* On a phone (14:944): 18px above and below, 14px at the sides, the number, the name with its meta 8px under it, and an 18px arrow, 12px apart. */\n @container impakt-work-list (max-width: 40rem) {\n li, .texts li { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: ${space(3)}; padding: 18px 14px; }\n .text { grid-column: 2 / -1; grid-row: 2; margin-block-start: ${space(2)}; }\n .side { grid-column: 2 / -1; grid-row: 3; align-items: flex-start; text-align: start; margin-block-start: ${space(2)}; }\n li:not(:has(.text)) .side { grid-row: 2; }\n .arrow { grid-column: 3; grid-row: 1; }\n li:not(:has(.text)) :is(.number, .arrow) { grid-row: 1 / span 2; }\n .arrow svg { inline-size: 18px; block-size: 18px; }\n .columns { display: none; }\n }\n @media (prefers-reduced-motion: reduce) { li, li::before, li *, .arrow svg { transition: none; } .preview { display: none; } }\n @media (forced-colors: active) {\n li::before { display: none; }\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 revealStyles,\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' : ''} style=${`--i:${index}`} @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 * For a brand with the reveal set on (impkt-web#51) each figure counts up\n * once, over 900ms, as the row is reached. The count is drawn over the figure,\n * so the real figure is the text a screen reader reads throughout; with no\n * script and with reduced motion the figure is simply there.\n *\n * The figures are a list, so a screen reader says how many there are, and each\n * is read as one phrase, \"161 ms response time\", not a bare number followed\n * some way off by its label (1.3.1). The row wraps by its own width: four\n * across, then two (a phone 350px wide shows two by two), then one, with\n * nothing to scroll sideways at 320px (1.4.10).\n *\n * @category content\n * @icon stat\n */\nexport class ImpaktStatRow extends ImpaktElement {\n static properties = {\n items: { type: Array },\n label: { type: String },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The figures, in order. Four fit a row on a wide page. */\n declare items: StatRowItem[];\n /** A name for the row, such as \"Live products\", read before the figures. Leave empty for none. */\n declare label: string;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.items = [];\n this.label = '';\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host { display: block; container: impakt-stat-row / inline-size; }\n /* The Stat component (8:324): a rule, 20px, the 52px figure, 8px, and the label in G2 Body S, 14px at 1.4; four 252px stats 24px apart. */\n ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: ${space(6)}; }\n li { border-block-start: ${t.borderThin} solid ${t.rule}; padding-block-start: ${space(5)}; }\n p { margin: 0; display: flex; flex-direction: column; gap: ${space(2)}; }\n .value { font-family: ${t.fontHeading}; font-size: clamp(2.5rem, 6cqi, 3.25rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; font-variant-numeric: tabular-nums; }\n /* The label's lines are whole pixels, 20px at 14, as the frame sets them, so a two-line stat is 121px (9:362). */\n .label { font-size: ${fontSize('sm')}; line-height: 1.25rem; color: ${t.textMuted}; }\n /* The Stat component (8:324) sets its label 230px wide under Impakt, so \"of row counts matched in the restore drill\" takes two lines and its stat is 121px (94:1716); another brand runs it the stat's width. */\n .label { max-inline-size: ${token('stat-row.label.width', 'none')}; }\n /* On a phone (14:783): two across, 20px apart with 16px between the rows; 14px over the 40px figure, 6px under it and 8px under the label. */\n @container impakt-stat-row (max-width: 40rem) {\n ul { gap: ${space(4)} ${space(5)}; }\n li { padding-block: 14px ${space(2)}; }\n p { gap: 6px; }\n }\n /* The note is meta: monospace capitals at 11px. */\n .note { font-family: ${t.fontMono}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n `,\n revealStyles,\n ];\n\n render(): TemplateResult {\n return html`<ul role=\"list\" part=\"list\" aria-label=${this.label || nothing}>\n ${this.items.map(\n (item, i) =>\n html`<li part=\"stat\" style=${`--i:${i}`}>\n <p><span class=\"value\" part=\"value\" data-ik-count>${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. The accordion's parts are\n * passed out too, as `item`, `head`, `header` and `panel`, so a page can style\n * a row as it would on the accordion itself.\n *\n * Each row is 92px with its rule, the question centred beside its \"+\", as\n * the FAQ item of `10:670` and `21:1220` is.\n *\n * @category content\n * @icon accordion\n * @csspart questions - The accordion that holds the questions.\n * @csspart item - A question and its answer, passed out from the accordion.\n * @csspart head - A question's row.\n * @csspart header - The button that opens a question.\n * @csspart panel - An answer.\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 /* The FAQ item (10:670, 21:1220): 92px with its rule, the question in Heading S (24px on 1.15 at -2.5%) centred beside the \"+\". Impakt keeps 24px on a phone (92:2191); another brand's question runs from 20px in a narrow column (faq.question.size). */\n impakt-accordion::part(header) { box-sizing: border-box; min-block-size: 91px; align-items: center; padding-block: ${space(5)}; font-family: ${t.fontHeading}; font-size: ${token('faq.question.size', 'clamp(1.25rem, 3.2cqi, 1.5rem)')}; font-weight: ${fontWeight('semibold')}; line-height: 1.15; letter-spacing: -0.025em; }\n /* The \"+\" sits on the question's first line, or under Impakt in the middle of the row, as the FAQ item does (8:359, 92:2191). */\n impakt-accordion { --ik-accordion-marker-align: ${token('faq.marker.align', 'flex-start')}; --ik-accordion-marker-first-line: ${token('faq.marker.first-line', '1')}; }\n /* On a phone a one-line row is as tall as the \"+\" line under Impakt, 76px with its rule (92:2402); another brand keeps 92px. */\n @container impakt-faq (max-width: 47.99rem) { impakt-accordion::part(header) { min-block-size: ${token('faq.question.phone-min-height', '91px')}; } }\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\" exportparts=\"item, head, header, panel\" 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 * An offer, set out in two halves: what it is, with one action, and a short\n * numbered list of what you get.\n *\n * It draws no background of its own. Put it in `impakt-section` with the\n * `accent` or `ink` tone and it takes that band's colours, so the words on it\n * are always the colour the tokens measured against the band (1.4.3).\n *\n * The points are an ordered list, so a screen reader says how many there are;\n * the numbers drawn beside them are decoration (1.3.1). The halves stack by\n * the block's own width, and on a narrow screen the action comes after the\n * points, so it is the last thing read before the next section (1.4.10).\n *\n * @category content\n * @icon megaphone\n * @slot actions - The action: one button.\n */\nexport class ImpaktOffer extends ImpaktElement {\n static properties = {\n eyebrow: { type: String },\n heading: { type: String },\n lead: { type: String },\n points: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The small line above the heading, such as \"Free for founders and product owners\". */\n declare eyebrow: string;\n /** What is offered, such as \"Get a 48-hour product teardown.\" */\n declare heading: string;\n /** A sentence or two more. */\n declare lead: string;\n /** What you get, one short line each. */\n declare points: string[];\n declare headingLevel: number;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.eyebrow = '';\n this.heading = '';\n this.lead = '';\n this.points = [];\n this.headingLevel = 2;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host { display: block; container: impakt-offer / inline-size; }\n /* The Offer component (10:619): the copy 520px wide and the points 460px, 100px apart; the label, heading, lead and action 24px apart. */\n .offer { display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 460fr); grid-template-areas: 'copy points' 'actions points'; grid-template-rows: auto 1fr; column-gap: 100px; row-gap: ${space(6)}; align-items: start; }\n .copy { grid-area: copy; }\n .actions { grid-area: actions; }\n ol { grid-area: points; }\n .copy { display: flex; flex-direction: column; align-items: flex-start; gap: ${space(6)}; }\n /* The label in G2 Mono M, 13px at 1.5; the heading Display L, 64px on a 1080px offer and 36px on a phone; the lead G2 Body M, 16px at 1.45, 480px wide. */\n .eyebrow { margin: 0; font-family: ${t.fontEyebrow}; font-size: 0.8125rem; line-height: 1.5; color: var(--impakt-eyebrow, ${t.textMuted}); }\n .heading { max-inline-size: 8.125em; font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 1.411rem + 3.836cqi, 4rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; }\n .lead { margin: 0; max-inline-size: 30rem; font-size: ${fontSize('md')}; line-height: 1.45; color: ${t.text}; }\n ol { list-style: none; margin: 0; padding: 0; }\n /* Each point: a rule, 20px, the number in G2 Mono M and the words in G2 Label L, 20px at 1.2, 20px apart, then 20px. */\n li { display: flex; gap: ${space(5)}; padding-block: ${space(5)}; border-block-start: ${t.borderThin} solid ${t.text}; font-size: 1.25rem; font-weight: ${fontWeight('medium')}; line-height: 1.2; letter-spacing: -0.01em; color: ${t.text}; }\n .number { flex: none; font-family: ${t.fontMono}; font-size: 0.8125rem; font-weight: ${fontWeight('regular')}; line-height: 1.5; letter-spacing: 0; }\n /* On a phone (15:993): everything 20px apart; the points 14px above and below, the words 16px, 14px after the number. */\n @container impakt-offer (max-width: 44rem) {\n .offer { grid-template-columns: 1fr; grid-template-areas: 'copy' 'points' 'actions'; grid-template-rows: auto; row-gap: ${space(5)}; }\n .copy { gap: ${space(5)}; }\n .heading { line-height: 1.03; }\n li { gap: 14px; padding-block: 14px; font-size: 1rem; }\n }\n `,\n ];\n\n render(): TemplateResult {\n const level = Math.min(Math.max(this.headingLevel, 1), 6);\n return html`<div class=\"offer\" part=\"offer\">\n <div class=\"copy\">\n ${this.eyebrow ? html`<p class=\"eyebrow\" part=\"eyebrow\">${this.eyebrow}</p>` : nothing}\n ${this.heading ? html`<div class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>${this.heading}</div>` : nothing}\n ${this.lead ? html`<p class=\"lead\" part=\"lead\">${this.lead}</p>` : nothing}\n </div>\n <div class=\"actions\" part=\"actions\"><slot name=\"actions\"></slot></div>\n ${\n (this.points ?? []).length\n ? html`<ol role=\"list\" part=\"points\">\n ${this.points.map((point, index) => html`<li><span class=\"number\" aria-hidden=\"true\">${String(index + 1).padStart(2, '0')}</span><span>${point}</span></li>`)}\n </ol>`\n : nothing\n }\n </div>`;\n }\n}\n\n/**\n * A card for one article: what it is filed under, its title and a line about\n * it.\n *\n * **The card is one link.** The link sits on the title, which is a heading,\n * and is stretched over the card, so the whole card can be pressed while a\n * screen reader meets one link named by the title, not a \"Read more\" that says\n * nothing out of context (2.4.4). `link-text` adds a visible line such as\n * \"Read\"; it is decoration and is hidden from a screen reader, which already\n * has the title.\n *\n * @category content\n * @icon card\n */\nexport class ImpaktPostCard extends ImpaktElement {\n static properties = {\n heading: { type: String },\n text: { type: String },\n meta: { type: String },\n href: { type: String },\n linkText: { type: String, attribute: 'link-text' },\n headingLevel: { type: Number, attribute: 'heading-level' },\n };\n /** The article's title. */\n declare heading: string;\n /** A line about it. */\n declare text: string;\n /** What it is filed under and how long it is, such as \"Pricing · 7 min read\". */\n declare meta: string;\n /** Where the card goes. */\n declare href: string;\n /** A visible line at the foot of the card, such as \"Read\". Leave empty for none. */\n declare linkText: string;\n declare headingLevel: number;\n\n constructor() {\n super();\n this.heading = '';\n this.text = '';\n this.meta = '';\n this.href = '';\n this.linkText = '';\n this.headingLevel = 3;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n :host { display: block; block-size: 100%; }\n /* The Article component (10:648): 24px inside, the meta, title, line and link 14px apart. */\n article { position: relative; box-sizing: border-box; block-size: 100%; display: flex; flex-direction: column; gap: 14px; padding: ${space(6)}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; transition: background-color 140ms ease-out; }\n /* The meta and the link in G2 Mono S: 11px medium capitals at 0.06em. */\n .meta { margin: 0; font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.textMuted}; }\n .heading { font-family: ${t.fontHeading}; font-size: 1.5rem; font-weight: ${fontWeight('semibold')}; line-height: 1.15; letter-spacing: -0.025em; color: ${t.text}; }\n .heading a { color: inherit; text-decoration: none; }\n .heading a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }\n .heading a:focus-visible { outline: none; }\n .heading a:focus-visible::after { box-shadow: ${t.focusShadow}; }\n article:has(a):hover .heading { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }\n .text { margin: 0; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }\n .more { font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.text}; }\n /* The link's arrow slides forward when the card is pointed at or focused (impkt-web#51). */\n .go { display: inline-block; transition: translate ${R.arrowDuration} ${R.arrowEasing}; }\n article:has(a):hover .go, article:focus-within .go { translate: ${R.arrowDistance} 0; }\n @media (prefers-reduced-motion: reduce) { .go { transition: none; } }\n /* On a phone (15:1020): 20px inside and 12px apart. */\n @media (max-width: 47.99rem) { article { gap: ${space(3)}; padding: ${space(5)}; } }\n @media (forced-colors: active) { article { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const level = Math.min(Math.max(this.headingLevel, 1), 6);\n return html`<article part=\"card\">\n ${this.meta ? html`<p class=\"meta\" part=\"meta\">${this.meta}</p>` : nothing}\n <div class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>${this.href ? html`<a href=${this.href} part=\"link\">${this.heading}</a>` : this.heading}</div>\n ${this.text ? html`<p class=\"text\" part=\"text\">${this.text}</p>` : nothing}\n ${this.linkText && this.href ? html`<span class=\"more\" aria-hidden=\"true\">${this.linkText} <span class=\"go\">→</span></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).\n *\n * **It draws itself once** (impkt-web#51), for a brand with the reveal set on:\n * when its section reaches the middle of the screen the frame is drawn round\n * the words in 260ms, the 8px handles appear at its corners and the size in\n * the label counts up to the real size. The words never move. With no script\n * and with reduced motion it is drawn as it ends.\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. `label-phone` gives a shorter tag for a phone, such as \"Design\", as the\n * phone frames draw it (`90:1297`, `92:2191`, `96:2290`).\n * `hide-label-on=\"phone\"` leaves the label out on a phone, where it would\n * crowd the line below.\n *\n * The box is drawn 0.1em outside the words at each side, as the Selection in\n * the home frame is (`9:306`), so the words keep their place in the heading\n * and the box hangs into the space round them. At its end it also gives back\n * the display type's -0.05em tracking after the last letter\n * (`--impakt-highlight-trail`), and the word after it is pushed along by the\n * overhang, so a space still follows the box (`9:302`, `21:1322`).\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 labelPhone: { type: String, attribute: 'label-phone' },\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 /** A shorter tag in its place on a phone, such as \"Design\". Leave empty to keep `label` there. */\n declare labelPhone: 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.labelPhone = '';\n this.cursor = null;\n this.hideLabelOn = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n /*\n * The Selection (9:306): the accent behind the words with a 1.5px ink line, drawn 0.1em outside them at the sides\n * (12px at 120px) and from 2px under the top of the line to 4px over its foot, so the words keep their place in the\n * heading. Its four 8px handles sit on its corners with the same line.\n */\n :host { --x: 0.1em; --trail: var(--impakt-highlight-trail, 0.05em); --top: 0.0167em; --foot: 0.033em; display: inline-block; position: relative; isolation: isolate; margin-inline-end: calc(var(--x) + var(--trail) + 0.05em); color: ${token('color.accent.on', '#1a1a1a')}; }\n .box { position: absolute; z-index: -1; inset: var(--top) calc(-1 * var(--x) - var(--trail)) var(--foot) calc(-1 * var(--x)); box-sizing: border-box; background: ${token('color.accent.default', '#ffd43b')}; border: 1.5px solid ${token('color.accent.on', '#1a1a1a')}; }\n .handle { position: absolute; inline-size: 8px; block-size: 8px; box-sizing: border-box; background: ${t.surfaceCard}; border: 1.5px solid ${token('color.accent.on', '#1a1a1a')}; }\n .handle.h1 { inset-block-start: calc(var(--top) - 4px); inset-inline-start: calc(-1 * var(--x) - 4px); }\n .handle.h2 { inset-block-start: calc(var(--top) - 4px); inset-inline-end: calc(-1 * var(--x) - var(--trail) - 4px); }\n .handle.h3 { inset-block-end: calc(var(--foot) - 4px); inset-inline-start: calc(-1 * var(--x) - 4px); }\n .handle.h4 { inset-block-end: calc(var(--foot) - 4px); inset-inline-end: calc(-1 * var(--x) - var(--trail) - 4px); }\n /*\n * The label is meta: monospace capitals at 11px, square, 8px under the box and level with its edge (9:311). It is\n * placed by a holder in the heading's own size, so the box's em measures are the heading's, not the label's.\n */\n .label-at { position: absolute; inset-block-start: calc(100% - var(--foot) + 8px); inset-inline-start: calc(-1 * var(--x)); line-height: 0; }\n .label { display: block; 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 /* A phone tag, such as \"Design\" under \"Design · H1 / 120\" (90:1297, 92:2191, 96:2290), stands in for the label on a phone. */\n .label.phone { display: none; }\n @media (max-width: 40rem) { .label.phone { display: block; } .label.wide:has(+ .label.phone) { display: none; } :host([hide-label-on='phone']) .label-at { display: none; } }\n /* The pointer sits by the bottom-right handle, 16px up from the box's foot, with its name tag 16px along and 18px down (9:313, 9:315). */\n .cursor { position: absolute; inset-block-start: calc(100% - var(--foot) - 16px); inset-inline-start: calc(100% + var(--x) + var(--trail) - 4px); display: flex; align-items: flex-start; pointer-events: none; line-height: 1; }\n .cursor svg { display: block; flex: none; color: ${t.text}; stroke: ${t.surfaceCard}; }\n .tag { margin-block-start: 18px; padding: 3px 6px; white-space: nowrap; font-family: ${t.fontMono}; font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.surfaceCard}; background: ${t.text}; }\n @media (forced-colors: active) { :host { forced-color-adjust: none; color: HighlightText; } .box { background: Highlight; border-color: HighlightText; } .handle { border-color: HighlightText; background: Canvas; } .label, .tag { background: CanvasText; color: Canvas; } .cursor svg { color: CanvasText; } }\n /* Selection draw (impkt-web#51): the frame is dragged out from its top-left corner over the words, then its handles appear; the size label counts up as it does. Until the frame is there the words keep the page's text colour. */\n .label { --ik-count-duration: ${R.select}; }\n :host([data-motion]) { animation: ik-highlight-words ${R.select} ${R.shape} ${revealAt(0)} both; }\n :host([data-motion]) .box { animation: ik-highlight-draw ${R.select} ${R.shape} ${revealAt(0)} both; }\n :host([data-motion]) :is(.label, .cursor) { animation: ik-reveal-fade ${R.mark} ${R.arrive} ${revealAt(0)} both; }\n :host([data-motion]) .handle { animation: ik-reveal-mark ${R.mark} ${R.arrive} ${revealAt(0, 'var(--impakt-motion-reveal-select-duration, 260ms)')} both; }\n @keyframes ik-highlight-draw { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }\n @keyframes ik-highlight-words { from { color: ${t.text}; } }\n `,\n revealStyles,\n ];\n\n render(): TemplateResult {\n return html`<span class=\"box\" part=\"box\" aria-hidden=\"true\"></span><slot></slot><span class=\"handle h1\" aria-hidden=\"true\"></span><span class=\"handle h2\" aria-hidden=\"true\"></span><span class=\"handle h3\" aria-hidden=\"true\"></span><span class=\"handle h4\" aria-hidden=\"true\"></span>${\n this.label || this.labelPhone\n ? html`<span class=\"label-at\" aria-hidden=\"true\">${\n this.label ? html`<span class=\"label wide\" part=\"label\" aria-hidden=\"true\" data-ik-count=\"text\">${this.label}</span>` : nothing\n }${this.labelPhone ? html`<span class=\"label phone\" part=\"label label-phone\" aria-hidden=\"true\" data-ik-count=\"text\">${this.labelPhone}</span>` : nothing}</span>`\n : 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-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-offer': ImpaktOffer;\n 'impakt-post-card': ImpaktPostCard;\n 'impakt-highlight': ImpaktHighlight;\n }\n}\n"],"mappings":";AAIA,SAAS,KAAK,MAAM,eAAoC;AACxD,SAAS,eAAe,WAAW,UAAU,YAAY,YAAY,OAAO,aAAa,GAAG,OAAO,GAAG,UAAU,oBAAoB;AA0BpI,IAAM,QAAQ;AAAA;AAAA;AA0CP,IAAM,iBAAN,cAA6B,cAAc;AAAA,EAChD;AAAA,SAAO,aAAa;AAAA,MAClB,OAAO,EAAE,MAAM,MAAM;AAAA,MACrB,cAAc,EAAE,MAAM,QAAQ,WAAW,gBAAgB;AAAA,MACzD,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,SAAS,EAAE,MAAM,MAAM;AAAA,MACvB,SAAS,EAAE,OAAO,KAAK;AAAA,MACvB,YAAY,EAAE,MAAM,QAAQ,SAAS,MAAM,WAAW,cAAc;AAAA,MACpE,YAAY,EAAE,MAAM,QAAQ,SAAS,MAAM,WAAW,cAAc;AAAA,IACtE;AAAA;AAAA,EAqBA,cAAc;AACZ,UAAM;AACN,SAAK,QAAQ,CAAC;AACd,SAAK,eAAe;AACpB,SAAK,QAAQ;AACb,SAAK,QAAQ;AACb,SAAK,UAAU,CAAC;AAChB,SAAK,aAAa;AAClB,SAAK,aAAa;AAClB,SAAK,UAAU;AAAA,EACjB;AAAA,EAEA;AAAA,SAAO,SAAS;AAAA,MACd,GAAG,cAAc;AAAA,MACjB;AAAA,MACA;AAAA,MACA;AAAA,mHAC+G,MAAM,wBAAwB,SAAS,CAAC,8BAA8B,MAAM,mBAAmB,SAAS,CAAC;AAAA,wEACpJ,EAAE,UAAU,UAAU,EAAE,IAAI;AAAA;AAAA;AAAA,2HAG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,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,gBAAgB,WAAW;AACjD,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,oBAAoB,eAAe;","names":[]}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// packages/blocks/src/components/organisms.ts
|
|
2
|
+
import { css, html, nothing } from "lit";
|
|
3
|
+
import { ImpaktElement, fontWeight, lineHeight, space, spaceAround, t, type } from "@atomic-ui/ui";
|
|
4
|
+
var headingStyles = css`
|
|
5
|
+
.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; }
|
|
6
|
+
.h { margin: 0; color: ${t.textHeading}; font-family: ${t.fontHeading}; font-weight: ${fontWeight("bold")}; letter-spacing: ${t.trackingTight}; text-wrap: balance; }
|
|
7
|
+
.lead { margin: 0; color: ${t.textMuted}; text-wrap: pretty; }
|
|
8
|
+
`;
|
|
9
|
+
var ImpaktSteps = class extends ImpaktElement {
|
|
10
|
+
static {
|
|
11
|
+
this.properties = {
|
|
12
|
+
items: { type: Array },
|
|
13
|
+
orientation: { type: String, reflect: true },
|
|
14
|
+
look: { type: String, reflect: true },
|
|
15
|
+
tones: { type: Boolean, reflect: true },
|
|
16
|
+
current: { type: Number },
|
|
17
|
+
headingLevel: { type: Number, attribute: "heading-level" },
|
|
18
|
+
spaceAbove: { type: String, reflect: true, attribute: "space-above" },
|
|
19
|
+
spaceBelow: { type: String, reflect: true, attribute: "space-below" }
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
this.items = [];
|
|
25
|
+
this.orientation = "horizontal";
|
|
26
|
+
this.look = "numbered";
|
|
27
|
+
this.tones = false;
|
|
28
|
+
this.current = -1;
|
|
29
|
+
this.headingLevel = 3;
|
|
30
|
+
this.spaceAbove = "none";
|
|
31
|
+
this.spaceBelow = "none";
|
|
32
|
+
}
|
|
33
|
+
static {
|
|
34
|
+
this.styles = [
|
|
35
|
+
...ImpaktElement.styles,
|
|
36
|
+
spaceAround,
|
|
37
|
+
headingStyles,
|
|
38
|
+
css`
|
|
39
|
+
:host { display: block; container-type: inline-size; }
|
|
40
|
+
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)}; }
|
|
41
|
+
li { position: relative; counter-increment: step; display: flex; flex-direction: column; gap: ${space(2)}; }
|
|
42
|
+
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)}; }
|
|
43
|
+
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}; }
|
|
44
|
+
.h { ${type("lg")} letter-spacing: 0; }
|
|
45
|
+
.meta { margin: 0; ${type("sm")} color: ${t.textMuted}; font-family: ${t.fontMono}; letter-spacing: 0.02em; }
|
|
46
|
+
.body { margin: 0; color: ${t.textMuted}; line-height: ${lineHeight("normal")}; text-wrap: pretty; }
|
|
47
|
+
:host([orientation='vertical']) ol { grid-auto-flow: row; }
|
|
48
|
+
:host([orientation='vertical']) li { padding-inline-start: 56px; min-block-size: 56px; }
|
|
49
|
+
:host([orientation='vertical']) li::before { position: absolute; inset-inline-start: 0; inset-block-start: 0; margin: 0; }
|
|
50
|
+
: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; }
|
|
51
|
+
@container (max-width: 40rem) {
|
|
52
|
+
ol { grid-auto-flow: row; }
|
|
53
|
+
li { padding-inline-start: 56px; min-block-size: 56px; }
|
|
54
|
+
li::before { position: absolute; inset-inline-start: 0; inset-block-start: 0; margin: 0; }
|
|
55
|
+
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; }
|
|
56
|
+
}
|
|
57
|
+
/* Ruled: a 1px rule in the band's text colour, or in the chart colours with tones. */
|
|
58
|
+
:host([look='ruled']) li { --rule: currentColor; padding-block-start: ${space(5)}; border-block-start: 1px solid var(--rule); }
|
|
59
|
+
:host([look='ruled'][tones]) li { --rule: var(--chart); border-block-start-width: 3px; }
|
|
60
|
+
/* The Step component (10:512): 16px under the rule, 8px apart, the meta in G2 Mono S, the title in G2 Label L (Archivo medium 20px at 1.2) and the text in G2 Body S (14px at 1.4). */
|
|
61
|
+
:host([look='ruled']:not([tones])) li { padding-block-start: ${space(4)}; }
|
|
62
|
+
:host([look='ruled']:not([tones])) .meta { font-size: 0.6875rem; font-weight: ${fontWeight("medium")}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; }
|
|
63
|
+
:host([look='ruled']:not([tones])) .h { font-size: 1.25rem; font-weight: ${fontWeight("medium")}; line-height: 1.2; letter-spacing: -0.01em; }
|
|
64
|
+
/* The text sets 20px lines at 14px, as the frame lays them out (10:515), so a four-line step is 80px of text. */
|
|
65
|
+
:host([look='ruled']:not([tones])) .body { font-size: 0.875rem; line-height: 1.25rem; }
|
|
66
|
+
:host([look='ruled']:not([tones])) .meta::before { content: counter(step, decimal-leading-zero) ' · '; }
|
|
67
|
+
:host([look='ruled']:not([tones])) li[aria-current] { --rule: var(--impakt-steps-current, currentColor); border-block-start-width: 2px; padding-block-start: calc(${space(4)} - 1px); }
|
|
68
|
+
:host([look='ruled']:not([tones])) li[aria-current] .meta { color: var(--impakt-steps-current, currentColor); }
|
|
69
|
+
:host([look='ruled']) li::before, :host([look='ruled']) li::after { display: none; }
|
|
70
|
+
:host([look='ruled']) ol { gap: ${space(5)}; }
|
|
71
|
+
/* 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. */
|
|
72
|
+
@container (max-width: 40rem) {
|
|
73
|
+
:host([look='ruled']) ol { gap: 0; }
|
|
74
|
+
: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; }
|
|
75
|
+
: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; }
|
|
76
|
+
: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}; }
|
|
77
|
+
:host([look='ruled']) li:first-child::before { inset-block-start: calc(${space(6)} + 7px); }
|
|
78
|
+
:host([look='ruled']) li:last-child::before { inset-block-end: auto; block-size: calc(${space(6)} + 7px); }
|
|
79
|
+
:host([look='ruled']:not([tones])) li[aria-current]::after { background: var(--impakt-steps-current, currentColor); }
|
|
80
|
+
/* The phone rail (15:891): each step 26px in from the rail, 28px under its text, its parts 6px apart; a 10px ring 4px down and the 1.5px line from under it to the next. */
|
|
81
|
+
:host([look='ruled']:not([tones])) li, :host([look='ruled']:not([tones])) li[aria-current] { gap: 6px; padding: 0 0 28px 26px; }
|
|
82
|
+
:host([look='ruled']:not([tones])) li::before { inset-block: 14px 0; inset-inline-start: 4.25px; }
|
|
83
|
+
:host([look='ruled']:not([tones])) li::after { inset-block-start: 4px; border-width: 1.5px; }
|
|
84
|
+
:host([look='ruled']:not([tones])) li:first-child::before { inset-block-start: 14px; }
|
|
85
|
+
:host([look='ruled']:not([tones])) li:last-child::before { display: none; }
|
|
86
|
+
/* With tones: a branch graph, one trunk down the left and each step a coloured branch off it with a dot. */
|
|
87
|
+
:host([look='ruled'][tones]) li::before { inset-block: 0; inset-inline-start: 0; inline-size: 2px; block-size: auto; background: ${t.text}; }
|
|
88
|
+
: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; }
|
|
89
|
+
}
|
|
90
|
+
@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; } }
|
|
91
|
+
`
|
|
92
|
+
];
|
|
93
|
+
}
|
|
94
|
+
render() {
|
|
95
|
+
return html`<ol part="list">${(this.items ?? []).map(
|
|
96
|
+
(step, i) => 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}>
|
|
97
|
+
${step.meta ? html`<p class="meta">${step.meta}</p>` : nothing}
|
|
98
|
+
<div class="h" role="heading" aria-level=${this.headingLevel}>${step.heading}</div>
|
|
99
|
+
${step.text ? html`<p class="body">${step.text}</p>` : nothing}
|
|
100
|
+
</li>`
|
|
101
|
+
)}</ol>`;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
customElements.define("impakt-steps", ImpaktSteps);
|
|
105
|
+
|
|
106
|
+
export {
|
|
107
|
+
ImpaktSteps
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=chunk-OHXEZPBB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/organisms.ts"],"sourcesContent":["import { css, html, nothing, type TemplateResult } from 'lit';\nimport { ImpaktElement, fontWeight, lineHeight, space, spaceAround, t, type } from '@atomic-ui/ui';\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/** 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 /* The Step component (10:512): 16px under the rule, 8px apart, the meta in G2 Mono S, the title in G2 Label L (Archivo medium 20px at 1.2) and the text in G2 Body S (14px at 1.4). */\n :host([look='ruled']:not([tones])) li { padding-block-start: ${space(4)}; }\n :host([look='ruled']:not([tones])) .meta { font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; }\n :host([look='ruled']:not([tones])) .h { font-size: 1.25rem; font-weight: ${fontWeight('medium')}; line-height: 1.2; letter-spacing: -0.01em; }\n /* The text sets 20px lines at 14px, as the frame lays them out (10:515), so a four-line step is 80px of text. */\n :host([look='ruled']:not([tones])) .body { font-size: 0.875rem; line-height: 1.25rem; }\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(4)} - 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 /* The phone rail (15:891): each step 26px in from the rail, 28px under its text, its parts 6px apart; a 10px ring 4px down and the 1.5px line from under it to the next. */\n :host([look='ruled']:not([tones])) li, :host([look='ruled']:not([tones])) li[aria-current] { gap: 6px; padding: 0 0 28px 26px; }\n :host([look='ruled']:not([tones])) li::before { inset-block: 14px 0; inset-inline-start: 4.25px; }\n :host([look='ruled']:not([tones])) li::after { inset-block-start: 4px; border-width: 1.5px; }\n :host([look='ruled']:not([tones])) li:first-child::before { inset-block-start: 14px; }\n :host([look='ruled']:not([tones])) li:last-child::before { display: none; }\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}\ncustomElements.define('impakt-steps', ImpaktSteps);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-steps': ImpaktSteps;\n }\n}\n"],"mappings":";AAAA,SAAS,KAAK,MAAM,eAAoC;AACxD,SAAS,eAAe,YAAY,YAAY,OAAO,aAAa,GAAG,YAAY;AAEnF,IAAM,gBAAgB;AAAA,wFACkE,EAAE,KAAK,OAAO,KAAK,IAAI,CAAC,mGAAmG,EAAE,WAAW,oDAAoD,WAAW,UAAU,CAAC,sBAAsB,EAAE,YAAY;AAAA,2BACnT,EAAE,WAAW,kBAAkB,EAAE,WAAW,kBAAkB,WAAW,MAAM,CAAC,qBAAqB,EAAE,aAAa;AAAA,8BACjH,EAAE,SAA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AAA;AAAA,yFAKtC,MAAM,CAAC,CAAC;AAAA;AAAA;AAAA,4EAGrB,MAAM,CAAC,CAAC;AAAA;AAAA;AAAA,mEAGjB,MAAM,CAAC,CAAC;AAAA,oFACS,WAAW,QAAQ,CAAC;AAAA,+EACzB,WAAW,QAAQ,CAAC;AAAA;AAAA;AAAA;AAAA,wKAIqE,MAAM,CAAC,CAAC;AAAA;AAAA;AAAA,sCAG1I,MAAM,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA,mIAIqF,MAAM,CAAC,CAAC;AAAA;AAAA,mHAExB,MAAM,CAAC,CAAC,gKAAgK,EAAE,WAAW;AAAA,+EACzN,MAAM,CAAC,CAAC;AAAA,8FACO,MAAM,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yIASmC,EAAE,IAAI;AAAA,8DACjF,MAAM,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA,IAIpE;AAAA;AAAA,EAEA,SAAyB;AACvB,WAAO,wBAAwB,KAAK,SAAS,CAAC,GAAG;AAAA,MAC/C,CACE,MACA,MACG,oCAAoC,MAAM,KAAK,UAAU,SAAS,OAAO,UAAU,KAAK,SAAS,UAAU,oCAAqC,IAAI,IAAK,CAAC,KAAK,4CAA4C,MAAM,OAAO;AAAA,QAC3N,KAAK,OAAO,uBAAuB,KAAK,IAAI,SAAS,OAAO;AAAA,iDACnB,KAAK,YAAY,IAAI,KAAK,OAAO;AAAA,QAC1E,KAAK,OAAO,uBAAuB,KAAK,IAAI,SAAS,OAAO;AAAA;AAAA,IAEhE,CAAC;AAAA,EACH;AACF;AACA,eAAe,OAAO,gBAAgB,WAAW;","names":[]}
|
|
@@ -9,21 +9,7 @@ import {
|
|
|
9
9
|
|
|
10
10
|
// packages/blocks/src/components/site.ts
|
|
11
11
|
import { css, html, nothing } from "lit";
|
|
12
|
-
import {
|
|
13
|
-
ImpaktElement,
|
|
14
|
-
R,
|
|
15
|
-
focusRing,
|
|
16
|
-
hideOn,
|
|
17
|
-
fontSize,
|
|
18
|
-
fontWeight,
|
|
19
|
-
linkCurrent,
|
|
20
|
-
say,
|
|
21
|
-
space,
|
|
22
|
-
t,
|
|
23
|
-
token,
|
|
24
|
-
type,
|
|
25
|
-
toneOf
|
|
26
|
-
} from "@atomic-ui/ui";
|
|
12
|
+
import { ImpaktElement, R, focusRing, fontSize, fontWeight, linkCurrent, say, space, t, token, type, toneOf } from "@atomic-ui/ui";
|
|
27
13
|
var onInk = token("color.ink-on", "#FFFFFF");
|
|
28
14
|
var STRIPE = [0, 1, 2, 3, 4];
|
|
29
15
|
var MONO = t.fontMono;
|
|
@@ -283,44 +269,6 @@ var ImpaktSiteHeader = class extends ImpaktElement {
|
|
|
283
269
|
</div>`;
|
|
284
270
|
}
|
|
285
271
|
};
|
|
286
|
-
var ImpaktWordmark = class extends ImpaktElement {
|
|
287
|
-
static {
|
|
288
|
-
this.properties = {
|
|
289
|
-
text: { type: String },
|
|
290
|
-
src: { type: String },
|
|
291
|
-
alt: { type: String },
|
|
292
|
-
href: { type: String },
|
|
293
|
-
size: { type: String, reflect: true },
|
|
294
|
-
hideOn: { type: String, reflect: true, attribute: "hide-on" }
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
constructor() {
|
|
298
|
-
super();
|
|
299
|
-
this.text = "";
|
|
300
|
-
this.src = "";
|
|
301
|
-
this.alt = "";
|
|
302
|
-
this.href = "/";
|
|
303
|
-
this.size = "md";
|
|
304
|
-
this.hideOn = "never";
|
|
305
|
-
}
|
|
306
|
-
static {
|
|
307
|
-
this.styles = [
|
|
308
|
-
...ImpaktElement.styles,
|
|
309
|
-
focusRing,
|
|
310
|
-
hideOn,
|
|
311
|
-
css`
|
|
312
|
-
:host { display: inline-flex; align-items: center; flex: none; }
|
|
313
|
-
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}; }
|
|
314
|
-
:host([size='sm']) a { ${type("xl")} } :host([size='md']) a { ${type("2xl")} } :host([size='lg']) a { ${type("3xl")} }
|
|
315
|
-
img { display: block; block-size: 32px; inline-size: auto; }
|
|
316
|
-
@media (max-width: 40rem) { :host([size='md']) a, :host([size='lg']) a { ${type("xl")} } }
|
|
317
|
-
`
|
|
318
|
-
];
|
|
319
|
-
}
|
|
320
|
-
render() {
|
|
321
|
-
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>`;
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
272
|
var ImpaktSiteFooter = class extends ImpaktElement {
|
|
325
273
|
static {
|
|
326
274
|
this.properties = {
|
|
@@ -375,6 +323,16 @@ var ImpaktSiteFooter = class extends ImpaktElement {
|
|
|
375
323
|
:host([brand-size='display']) .legal, :host([brand-size='display']) .foot { margin-block-start: ${space(6)}; }
|
|
376
324
|
:host([brand-size='display']) .foot .legal { margin: 0; }
|
|
377
325
|
@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; } }
|
|
326
|
+
/*
|
|
327
|
+
* The G2 footer's link row (10:729, 96:2492): each column as wide as its words, and the columns and the action spread
|
|
328
|
+
* across the row with equal space between them, so on a 1080px column they start at 0, 201, 499 and 682 and the
|
|
329
|
+
* action ends at the row's end; the action is the frame's 170px button with its arrow at the far end (#88).
|
|
330
|
+
*/
|
|
331
|
+
/* Each column in the frame (96:2493): the heading in G2 Mono S, then the links in Body M, 23px lines 8px apart, so four links are 139px. */
|
|
332
|
+
:host([brand-size='display']) .h { margin-block-end: ${space(2)}; font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.06em; }
|
|
333
|
+
:host([brand-size='display']) .columns ul { gap: ${space(2)}; }
|
|
334
|
+
:host([brand-size='display']) .columns :is(li, a) { font-size: 1rem; line-height: 1.45; font-weight: ${fontWeight("regular")}; }
|
|
335
|
+
@container (min-width: 48.01rem) { :host([brand-size='display']) .row { justify-content: space-between; } :host([brand-size='display']) .row .columns { display: contents; } :host([brand-size='display']) .columns > div { flex: none; white-space: nowrap; } :host([brand-size='display']) .row impakt-button { inline-size: 170px; } }
|
|
378
336
|
ul { list-style: none; margin: 0; padding: 0; }
|
|
379
337
|
.log { margin-block-start: ${space(8)}; display: grid; gap: ${space(3)}; font-family: ${MONO}; font-size: ${fontSize("sm")}; }
|
|
380
338
|
.log li { display: flex; align-items: center; gap: ${space(3)}; opacity: 0.72; }
|
|
@@ -396,6 +354,8 @@ var ImpaktSiteFooter = class extends ImpaktElement {
|
|
|
396
354
|
.stripe { position: absolute; inset-inline: -100vmax; inset-block-end: 0; block-size: 6px; display: flex; }
|
|
397
355
|
.stripe span { flex: 1; }
|
|
398
356
|
@container (max-width: 48rem) { .top { grid-template-columns: 1fr; } .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } .row { flex-direction: column; } }
|
|
357
|
+
/* The G2 footer on a phone (15:1099, 96:2593): two 165px columns 20px apart, the second row 28px under the first. */
|
|
358
|
+
@container (max-width: 48rem) { :host([brand-size='display']) .columns { gap: 28px 20px; } }
|
|
399
359
|
@container (max-width: 40rem) { :host([columns-on-phone='hidden']) .columns { display: none; } }
|
|
400
360
|
@media (forced-colors: active) { :host { border-block-start: 1px solid CanvasText; } .log .dot { border: 1px solid CanvasText; } }
|
|
401
361
|
`
|
|
@@ -417,7 +377,7 @@ var ImpaktSiteFooter = class extends ImpaktElement {
|
|
|
417
377
|
<div class="columns" part="columns" style=${`--count:${Math.max(1, (this.columns ?? []).length)}`}>
|
|
418
378
|
${(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>`)}
|
|
419
379
|
</div>
|
|
420
|
-
${this.actionText ? html`<impakt-button variant="outline" icon-after="arrow-right" href=${this.actionHref || nothing} part="action">${this.actionText}</impakt-button>` : nothing}
|
|
380
|
+
${this.actionText ? html`<impakt-button variant="outline" icon-after="arrow-right" ?spread=${this.brandSize === "display"} href=${this.actionHref || nothing} part="action">${this.actionText}</impakt-button>` : nothing}
|
|
421
381
|
</div>
|
|
422
382
|
</div>
|
|
423
383
|
${this.tagline ? 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>` : this.legal ? html`<p class="legal" part="legal">${this.legal}</p>` : nothing}
|
|
@@ -426,12 +386,10 @@ var ImpaktSiteFooter = class extends ImpaktElement {
|
|
|
426
386
|
}
|
|
427
387
|
};
|
|
428
388
|
customElements.define("impakt-site-header", ImpaktSiteHeader);
|
|
429
|
-
customElements.define("impakt-wordmark", ImpaktWordmark);
|
|
430
389
|
customElements.define("impakt-site-footer", ImpaktSiteFooter);
|
|
431
390
|
|
|
432
391
|
export {
|
|
433
392
|
ImpaktSiteHeader,
|
|
434
|
-
ImpaktWordmark,
|
|
435
393
|
ImpaktSiteFooter
|
|
436
394
|
};
|
|
437
|
-
//# sourceMappingURL=chunk-
|
|
395
|
+
//# sourceMappingURL=chunk-VOONXP5H.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/site.ts"],"sourcesContent":["/**\n * A site's own header and footer, drawn as one piece each, for the page's\n * header and footer.\n *\n * The chip that sits beside the site's name is a product component, `impakt-chip`,\n * and comes from `@atomic-ui/ui`.\n *\n * The page gives them their landmarks, so neither draws a `<header>` or\n * `<footer>` of its own: a second banner would be one a screen reader\n * 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, R, focusRing, fontSize, fontWeight, linkCurrent, say, space, t, token, type, toneOf, type NavLink, type Tone } from '@atomic-ui/ui';\nimport { accent, accentOn, accentOnInk, ink, inkLine, inkMuted } from './g2-shared';\n\n// The base, the tokens and the nav and button these draw come from @atomic-ui/ui, which defines its elements on import.\n\n/** A link in the site header. In the canvas look, `menuLabel` is what the phone menu calls it, such as \"Home\" for the \"home.canvas\" tab. */\nexport type SiteHeaderLink = NavLink & { menuLabel?: string };\n\n/** White, the words on the canvas menu's fixed ink (21:1688). */\nconst onInk = token('color.ink-on', '#FFFFFF');\n\n/** The footer stripe's colours, left to right. */\n/** The stripe's segments take the brand's chart colours in order. */\nconst STRIPE = [0, 1, 2, 3, 4];\n\n/** Code-like labels: a branch, a hash, a commit message. */\nconst MONO = t.fontMono;\n\n// Quieter words are faded to 0.72, no further: that keeps them at 4.5:1 on the page and card colours (1.4.3).\n\n/**\n * The site header: the brand, the main links and one call to action, with an\n * optional chip beside the brand and a status before the action.\n *\n * The links fold behind a Menu button when they do not fit, as `impakt-nav`\n * does. The chip and the status are labels, not controls, and they are left\n * out on a phone so the brand, the menu and the action keep the row.\n *\n * **Build your own.** Place components in its three slots, start, middle and\n * end, and each slot that holds something replaces what the props draw there:\n * a wordmark and chips at the start, a nav in the middle, a status and a\n * button at the end, in any order. Give a component `hideOn: 'phone'` to leave\n * it out on a phone, so the phone's header is built from the same pieces.\n *\n * **A header for a studio's canvas.** `mark` draws a 28px ink square with a\n * letter in it before the name, `context` a path after it (\"/ home.canvas\"),\n * and `status-at=\"start\"` moves the status chip, a square with a dot and a\n * word such as \"Live\", up beside them. `nav-look=\"tabs\"` draws the links as\n * file tabs. `presence` draws a few small overlapping avatars of the people in\n * the file before the action; each is named for a screen reader.\n *\n * **The G2 canvas header, whole.** `look=\"canvas\"` draws the G2 top bar (`9:264`, `14:715`) and its\n * phone menu (`21:1688`) from the props alone, so a site needs no markup of its own: the mark and\n * the name in Label S, the \"/\" and the file name, the Live chip with its soft edge and ink dot, the\n * links as file tabs, who is in the file and the action. The Live chip stays at every width; the\n * file name and the people leave on a narrower screen. When the tabs no longer fit, they and the\n * action give their place to a filled \"Menu\" button with a two-line glyph, which opens the\n * whole-screen ink menu as a popover, so the browser opens and closes it with no script: the name\n * and a white \"Close\", the links in display type with their numbers and \"Current · 01\" in the\n * accent, and a foot with the call in the accent, a short note and an email address\n * (`menu-action-text`, `menu-note`, `menu-email`), or whatever is placed in the `menu-foot` slot.\n * The menu stays ink in both themes. A link's `menuLabel` names it in the menu.\n *\n * @category layout\n * @icon header\n * @slot start - The brand: a wordmark or logo, and any chips beside it.\n * @slot middle - The links, usually one nav.\n * @slot presence - Avatars of the people in the file, before the action. Replaces what `presence` draws.\n * @slot end - A status and the call to action.\n * @slot menu-foot - With `look=\"canvas\"`: the foot of the phone menu, in place of the call, the note and the email address the props draw.\n * @csspart menu-button - With `look=\"canvas\"`: the filled Menu button.\n * @csspart menu - With `look=\"canvas\"`: the whole-screen menu.\n * @csspart menu-link - With `look=\"canvas\"`: a link in the menu.\n * @csspart menu-foot - With `look=\"canvas\"`: the menu's foot.\n * @fires {CustomEvent<null>} impakt-action - When the call to action is pressed.\n */\nexport class ImpaktSiteHeader extends ImpaktElement {\n static properties = {\n brand: { type: String },\n logoSrc: { type: String, attribute: 'logo-src' },\n logoAlt: { type: String, attribute: 'logo-alt' },\n home: { type: String },\n badge: { type: String },\n meta: { type: String },\n links: { type: Array },\n label: { type: String },\n menuText: { type: String, attribute: 'menu-text' },\n status: { type: String },\n statusMeta: { type: String, attribute: 'status-meta' },\n statusTone: { type: String, attribute: 'status-tone' },\n actionText: { type: String, attribute: 'action-text' },\n actionHref: { type: String, attribute: 'action-href' },\n fold: { type: String, reflect: true },\n mark: { type: String },\n context: { type: String },\n statusAt: { type: String, reflect: true, attribute: 'status-at' },\n navLook: { type: String, attribute: 'nav-look' },\n current: { type: String },\n presence: { type: Array },\n look: { type: String, reflect: true },\n menuActionText: { type: String, attribute: 'menu-action-text' },\n menuActionHref: { type: String, attribute: 'menu-action-href' },\n menuNote: { type: String, attribute: 'menu-note' },\n menuEmail: { type: String, attribute: 'menu-email' },\n currentText: { type: String, attribute: 'current-text' },\n closeText: { type: String, attribute: 'close-text' },\n };\n /** The site's name, set as a wordmark when there is no logo picture. */\n declare brand: string;\n /** A logo picture, used instead of the wordmark. */\n declare logoSrc: string;\n /** What the logo says. Leave empty to use the brand name. */\n declare logoAlt: string;\n /** Where the brand links to. */\n declare home: string;\n /** A short chip beside the brand, such as \"main\". */\n declare badge: string;\n /** A code-like line after the chip, such as a commit hash. */\n declare meta: string;\n declare links: SiteHeaderLink[];\n /** The name of the links' landmark. */\n declare label: string;\n /** The words on the button that opens the links on a narrow screen. */\n declare menuText: string;\n /** A status before the action, such as the stage the site is at. */\n declare status: string;\n /** A code-like line in the status, such as a hash. */\n declare statusMeta: string;\n declare statusTone: Tone;\n declare actionText: string;\n declare actionHref: string;\n /**\n * How the links fold on a narrow screen. `measure` folds them when they do not fit, which needs\n * script. `narrow` folds them at 40rem in CSS: the Menu button then opens a whole-screen menu\n * with no script, and the header's action moves into that menu. Use `narrow` on a page that may\n * be shown without script.\n */\n declare fold: 'measure' | 'narrow';\n /** A letter or two in a 28px ink square before the name, such as \"i\". Decoration: the name is what is read. */\n declare mark: string;\n /** A path after the name, such as \"home.canvas\", drawn as \"/ home.canvas\". */\n declare context: string;\n /** Where the status sits: `end`, before the action, or `start`, after the name. */\n declare statusAt: 'start' | 'end';\n /** How the links are drawn, passed to `impakt-nav` as its `look`, such as `tabs` for file tabs. */\n declare navLook: string;\n /** The href of the link to mark as the page you are on, passed to the nav; unset, the nav works it out from the address. */\n declare current: string;\n /** The people in the file, drawn as small overlapping avatars. `ink` fills one in ink, as the first of 9:285, and `accent` in the accent. */\n declare presence: Array<{ name: string; initials?: string; accent?: boolean; ink?: boolean }>;\n /** `canvas` is the whole G2 canvas header and its phone menu (`9:264`, `14:715`, `21:1688`). */\n declare look: 'default' | 'canvas';\n /** With `look=\"canvas\"`: the call at the foot of the phone menu, such as \"Book a 30-minute call\". The action's words when left empty. */\n declare menuActionText: string;\n /** Where that call goes. The action's href when left empty. */\n declare menuActionHref: string;\n /** With `look=\"canvas\"`: a short line in the menu's foot, such as \"UK · Cyprus\". */\n declare menuNote: string;\n /** With `look=\"canvas\"`: an email address in the menu's foot, as a mail link. */\n declare menuEmail: string;\n /** With `look=\"canvas\"`: the word before the current page's number in the menu, as in \"Current · 01\". */\n declare currentText: string;\n /** With `look=\"canvas\"`: the words on the button that closes the menu. */\n declare closeText: string;\n\n constructor() {\n super();\n this.brand = '';\n this.logoSrc = '';\n this.logoAlt = '';\n this.home = '/';\n this.badge = '';\n this.meta = '';\n this.links = [];\n this.label = 'Main';\n this.menuText = 'Menu';\n this.status = '';\n this.statusMeta = '';\n this.statusTone = 'success';\n this.actionText = '';\n this.actionHref = '';\n this.fold = 'measure';\n this.mark = '';\n this.context = '';\n this.statusAt = 'end';\n this.navLook = '';\n this.current = '';\n this.presence = [];\n this.look = 'default';\n this.menuActionText = '';\n this.menuActionHref = '';\n this.menuNote = '';\n this.menuEmail = '';\n this.currentText = 'Current';\n this.closeText = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n :host { display: block; container-type: inline-size; }\n /* With a mark, the name is set small beside it, as in the canvas header. */\n .brand.marked { gap: ${space(3)}; font-size: ${fontSize('md')}; letter-spacing: -0.01em; }\n .mark { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; flex: none; background: ${t.text}; color: ${t.surfaceCard}; font-size: ${fontSize('sm')}; font-weight: ${fontWeight('medium')}; }\n .context { font-size: ${fontSize('sm')}; white-space: nowrap; }\n .context .slash { margin-inline-end: ${space(2)}; opacity: 0.72; }\n .presence { display: flex; }\n .presence .avatar { display: inline-grid; place-items: center; inline-size: 22px; block-size: 22px; box-sizing: border-box; margin-inline-start: -6px; border-radius: 50%; border: ${t.borderThin} solid ${t.text}; background: ${t.surfaceCard}; color: ${t.text}; font-family: ${MONO}; font-size: 0.625rem; line-height: 1; }\n .presence .avatar:first-child { margin-inline-start: 0; }\n .presence .avatar.accent { background: ${token('color.accent.default', '#ffd43b')}; color: ${token('color.accent.on', '#111111')}; }\n .presence .avatar.ink { background: ${t.text}; color: ${t.surfaceCard}; }\n @media (forced-colors: active) { .presence .avatar.ink { forced-color-adjust: none; background: CanvasText; color: Canvas; } }\n .bar { display: flex; align-items: center; gap: ${space(6)}; }\n .start { display: flex; align-items: center; gap: ${space(3)}; flex: none; }\n .middle { flex: 1 1 8rem; min-inline-size: 0; display: flex; align-items: center; justify-content: center; }\n .middle ::slotted(*) { flex: 1 1 auto; min-inline-size: 0; }\n slot { display: contents; }\n .brand { display: inline-flex; align-items: center; min-block-size: ${t.targetMin}; color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-weight: ${fontWeight('semibold')}; ${type('2xl')} letter-spacing: -0.02em; line-height: 1; border-radius: ${t.radiusSm}; }\n .brand img { display: block; block-size: 32px; inline-size: auto; }\n .chip { display: inline-flex; align-items: center; gap: ${space(1)}; padding: 2px ${space(2)}; border-radius: ${t.radius}; background: color-mix(in srgb, currentColor 7%, transparent); font-family: ${MONO}; font-size: ${fontSize('xs')}; }\n .chip svg { inline-size: 12px; block-size: 12px; }\n .meta { font-family: ${MONO}; font-size: ${fontSize('xs')}; opacity: 0.72; }\n .middle impakt-nav { flex: 1 1 8rem; }\n /* File tabs sit in one box as wide as the tabs, centred between the name and the action. */\n :host([fold='narrow']) .middle impakt-nav[look='tabs'] { flex: 0 1 auto; }\n .end { display: flex; align-items: center; gap: ${space(3)}; flex: none; }\n .end:empty, .start:empty { display: none; }\n .status { display: inline-flex; align-items: center; gap: ${space(2)}; padding: ${space(1)} ${space(3)}; border: ${t.borderThin} solid ${t.border}; border-radius: var(--impakt-radius-pill, calc(var(--impakt-radius-md, 0.5rem) * 9999)); background: ${t.surfaceCard}; font-family: ${MONO}; font-size: ${fontSize('xs')}; white-space: nowrap; }\n /* Beside the name it is a small square chip: an ink outline, a dot, and the word in monospace capitals. */\n .start .status { padding: 2px ${space(2)}; border-color: ${t.text}; border-radius: ${t.radius}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; }\n .start .status .dot { inline-size: 6px; block-size: 6px; }\n .status .dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--tone); }\n .status .hash { opacity: 0.72; }\n @container (max-width: 22rem) { :host(:not([fold='narrow']):not([look='canvas'])) .bar { flex-wrap: wrap; row-gap: ${space(2)}; } :host(:not([fold='narrow']):not([look='canvas'])) .end { flex: 1 1 100%; } }\n @container (max-width: 56rem) { .chip, .meta, .status, .context, .presence { display: none; } .bar { gap: ${space(3)}; } }\n /* With no script the links cannot fold behind a Menu button. On a narrow screen they take a\n line of their own under the name and the action, and wrap there. */\n @container (max-width: 40rem) {\n :host(:not(:defined):not([fold='narrow']):not([look='canvas'])) .bar { flex-wrap: wrap; row-gap: ${space(1)}; }\n :host(:not(:defined):not([fold='narrow']):not([look='canvas'])) .start { flex: 1 1 auto; }\n /* Its row may be narrower than the links, which then wrap: the max-content floor below is for the measured header only. */\n :host(:not(:defined):not([fold='narrow']):not([look='canvas'])) .middle { order: 3; flex: 1 1 100%; justify-content: flex-start; min-inline-size: 0; }\n /* fold=\"narrow\": the links are behind the Menu button, which sits at the end, and the action moves into the menu. */\n :host([fold='narrow']) .middle { justify-content: flex-end; }\n /*\n * The measured links get only the room left beside the brand and the end slot, whatever the end slot holds, so\n * they fold behind the Menu button when they do not fit there (#55). A floor at the links' own width would give\n * them the room they ask for and push the end slot off the screen instead. Once folded, the Menu button keeps\n * its whole width, so it never spills over the brand.\n */\n :host(:not([fold='narrow'])) .middle { justify-content: flex-end; min-inline-size: 0; }\n :host(:not([fold='narrow'])) .middle:has(impakt-nav[folded]) { min-inline-size: max-content; }\n :host(:not([fold='narrow'])) .middle ::slotted(impakt-nav[folded]) { flex: none; min-inline-size: max-content; }\n :host([fold='narrow']) .end > slot > impakt-button { display: none; }\n }\n /*\n * look=\"canvas\": the G2 top bar (9:264, 14:715). The mark and the name in Label S, 14px medium; the \"/\" in the subtle\n * text and the file name in the muted; the Live chip with a soft edge, a 3px corner and an ink dot, in G2 Mono S.\n */\n .menu-button, .sheet { display: none; }\n /* The bar keeps the frame's 16px gutters of its own, and the tab track hugs its tabs, centred between the name and the end. */\n :host([look='canvas']) .bar { min-block-size: 56px; padding-inline: 16px; }\n :host([look='canvas']) .middle impakt-nav { flex: 0 1 auto; }\n :host([look='canvas']) .end { gap: 16px; }\n /* The people of 9:285: 22px avatars 4px over each other, their letters in G2 Mono S. */\n :host([look='canvas']) .presence .avatar { margin-inline-start: -4px; font-size: 0.6875rem; letter-spacing: 0.06em; text-indent: 0.06em; }\n :host([look='canvas']) .presence .avatar:first-child { margin-inline-start: 0; }\n :host([look='canvas']) .start { gap: 10px; }\n :host([look='canvas']) .brand.marked { gap: 10px; font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight('medium')}; line-height: 1.2; letter-spacing: 0; }\n :host([look='canvas']) .mark { font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight('medium')}; line-height: 1.2; }\n :host([look='canvas']) .context { font-family: ${t.fontBody}; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }\n :host([look='canvas']) .context .slash { margin-inline-end: 10px; opacity: 1; color: ${token('color.text.subtle', 'currentColor')}; }\n :host([look='canvas']) .start .status { display: inline-flex; gap: 6px; padding: 3px 7px; background: ${t.surfaceCard}; border: 1px solid ${token('color.line.soft', '#CFCCC5')}; border-radius: 3px; color: ${t.textMuted}; font-family: ${MONO}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; }\n :host([look='canvas']) .start .status .dot { inline-size: 6px; block-size: 6px; background: ${t.text}; }\n /* The filled Menu button of 14:715: \"Menu\" and a two-line glyph after it. */\n :host([look='canvas']) .menu-button { align-items: center; gap: 10px; padding: 9px 14px; border: 0; border-radius: 0; background: ${t.text}; color: ${t.surfaceCard}; font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight('medium')}; line-height: 1.2; cursor: pointer; }\n .glyph { display: inline-block; inline-size: 14px; block-size: 6px; box-sizing: border-box; border-block: 1.5px solid currentColor; }\n /*\n * The tabs, the file name, the people and the action need about 70rem in one row. Narrower, the file name and the\n * people leave first, as decoration; at 60rem and under the tabs and the action give their place to the Menu button.\n */\n @container (max-width: 70rem) { :host([look='canvas']) :is(.context, .presence) { display: none; } }\n @container (max-width: 60rem) {\n :host([look='canvas']) .middle, :host([look='canvas']) .end > slot > impakt-button.act { display: none; }\n :host([look='canvas']) .bar { justify-content: space-between; }\n :host([look='canvas']) .menu-button { display: inline-flex; }\n }\n /* The open menu (21:1688): ink in both themes, the whole screen, opened by the browser as a popover. */\n .sheet:popover-open { display: flex; flex-direction: column; position: fixed; inset: 0; box-sizing: border-box; inline-size: 100%; block-size: 100%; max-inline-size: none; max-block-size: none; margin: 0; padding: 0; border: 0; overflow: auto; overscroll-behavior: contain; background: ${ink}; color: ${onInk}; }\n .menu-bar { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; box-sizing: border-box; min-block-size: 56px; padding: 0 ${space(4)}; border-block-end: 1px solid ${inkLine}; }\n .menu-bar .brand.marked { gap: 10px; font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight('medium')}; line-height: 1.2; letter-spacing: 0; }\n .menu-bar .mark { background: ${onInk}; color: ${ink}; font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight('medium')}; }\n .close { display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px; border: 0; border-radius: 0; background: ${onInk}; color: ${ink}; font-family: ${t.fontBody}; font-size: 0.875rem; font-weight: ${fontWeight('medium')}; line-height: 1.2; cursor: pointer; }\n .menu-nav { flex: 1; padding: ${space(8)} 20px 0; }\n .menu-nav ol { list-style: none; margin: 0; padding: 0; }\n .menu-nav li { border-block-end: 1px solid ${inkLine}; }\n .menu-nav a { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding-block: 18px; color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 13.4vw, 3.25rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.05em; }\n .menu-nav a:hover .words { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }\n .menu-nav .number { flex: none; font-family: ${MONO}; font-size: 0.8125rem; font-weight: ${fontWeight('regular')}; line-height: 1.5; letter-spacing: 0; color: ${inkMuted}; }\n /* The page you are on is in the accent, and its number says \"Current\", so it is not told by colour alone. */\n .menu-nav a[aria-current], .menu-nav a[aria-current] .number { color: ${accentOnInk}; }\n .menu-foot { display: flex; flex-direction: column; align-items: flex-start; gap: ${space(4)}; padding: ${space(8)} 20px calc(${space(8)} + env(safe-area-inset-bottom)); }\n .menu-foot:empty { display: none; }\n .call { display: flex; align-items: center; justify-content: space-between; gap: ${space(3)}; align-self: stretch; box-sizing: border-box; min-block-size: 47px; padding: 0 20px; background: ${accent}; color: ${accentOn}; text-decoration: none; font-family: ${t.fontBody}; font-size: 1rem; font-weight: ${fontWeight('medium')}; line-height: 1.2; }\n .call:hover .words { text-decoration: underline; text-underline-offset: 0.2em; }\n /* The call's arrow slides forward when it is pointed at or focused (impkt-web#51). */\n .call .go { display: inline-block; transition: translate ${R.arrowDuration} ${R.arrowEasing}; }\n .call:is(:hover, :focus-visible) .go { translate: ${R.arrowDistance} 0; }\n @media (prefers-reduced-motion: reduce) { .call .go { transition: none; } }\n .note { margin: 0; font-family: ${MONO}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${inkMuted}; }\n .mail { display: inline-flex; align-items: center; min-block-size: 24px; color: inherit; font-family: ${t.fontBody}; font-size: 1rem; line-height: 1.45; text-decoration: none; }\n .mail:hover { text-decoration: underline; text-underline-offset: 0.2em; }\n /* What is slotted at the foot is read on ink too. */\n .menu-foot ::slotted(*) { --impakt-color-text-default: ${onInk}; --impakt-color-text-heading: ${onInk}; --impakt-color-text-muted: ${inkMuted}; --impakt-color-text-link: ${onInk}; --impakt-color-text-link-hover: ${onInk}; color: ${onInk}; }\n @media (forced-colors: active) {\n :host([look='canvas']) .menu-button, .close, .call { border: 1px solid ButtonText; }\n .sheet:popover-open { border: 1px solid CanvasText; }\n :host([look='canvas']) .start .status .dot { background: CanvasText; }\n }\n `,\n ];\n\n private act(): void {\n this.dispatchEvent(new CustomEvent('impakt-action', { bubbles: true, composed: true }));\n }\n\n /** The brand link: the mark and the name, or the logo. */\n private renderBrand(): TemplateResult | typeof nothing {\n if (!this.brand && !this.logoSrc) return nothing;\n const wordmark = this.logoSrc ? html`<img src=${this.logoSrc} alt=${this.logoAlt || this.brand} />` : html`${this.brand}`;\n return html`<a class=${this.mark ? 'brand marked' : 'brand'} href=${this.home || '/'} part=\"brand\">${this.mark ? html`<span class=\"mark\" part=\"mark\" aria-hidden=\"true\">${this.mark}</span>` : nothing}${wordmark}</a>`;\n }\n\n /**\n * look=\"canvas\": the filled Menu button and the whole-screen menu (14:715, 21:1688). They are tied by\n * `popovertarget`, so the browser opens and closes the menu, moves on to it with Tab, closes it on Escape and\n * tells a screen reader whether it is open, with no script.\n */\n private renderMenu(): TemplateResult {\n const panel = this.id_('menu');\n const callText = this.menuActionText || this.actionText;\n const callHref = this.menuActionHref || this.actionHref;\n return html`<button class=\"menu-button\" type=\"button\" part=\"menu-button\" popovertarget=${panel}>${this.menuText}<span class=\"glyph\" aria-hidden=\"true\"></span></button>\n <div id=${panel} class=\"sheet\" popover=\"auto\" part=\"menu\" role=\"dialog\" aria-label=${this.menuText}>\n <div class=\"menu-bar\">\n ${this.renderBrand()}\n <button class=\"close\" type=\"button\" popovertarget=${panel} popovertargetaction=\"hide\">${this.closeText || say('Close')}<svg viewBox=\"0 0 10 10\" width=\"10\" height=\"10\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.2\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M1 1l8 8M9 1 1 9\" /></svg></button>\n </div>\n <nav class=\"menu-nav\" aria-label=${this.label || nothing}>\n <ol role=\"list\">\n ${(this.links ?? []).map((link, index) => {\n const here = linkCurrent(link.href, this.current);\n const number = String(index + 1).padStart(2, '0');\n return html`<li>\n <a href=${link.href} part=\"menu-link\" aria-current=${here === 'page' ? 'page' : here === 'section' ? 'true' : nothing}\n ><span class=\"words\">${link.menuLabel || link.label}</span><span class=\"number\" aria-hidden=\"true\">${here && this.currentText ? `${this.currentText} · ${number}` : number}</span></a\n >\n </li>`;\n })}\n </ol>\n </nav>\n <div class=\"menu-foot\" part=\"menu-foot\"><slot name=\"menu-foot\">${callText ? html`<a class=\"call\" href=${callHref || nothing}><span class=\"words\">${callText}</span><span class=\"go\" aria-hidden=\"true\">→</span></a>` : nothing}${this.menuNote ? html`<p class=\"note\">${this.menuNote}</p>` : nothing}${this.menuEmail ? html`<a class=\"mail\" href=${`mailto:${this.menuEmail}`}>${this.menuEmail}</a>` : nothing}</slot></div>\n </div>`;\n }\n\n render(): TemplateResult {\n const canvas = this.look === 'canvas';\n const statusAt = canvas ? 'start' : this.statusAt;\n const status = this.status\n ? html`<span class=\"status\" part=\"status\" style=${`--tone:${toneOf(this.statusTone, 0)}`}><span class=\"dot\" aria-hidden=\"true\"></span>${this.status}${this.statusMeta ? html` <span class=\"hash\">${this.statusMeta}</span>` : nothing}</span>`\n : nothing;\n const presence = this.presence ?? [];\n // In the canvas look the links are file tabs, folded by the header itself, so the nav never measures or folds them.\n const fold = canvas ? 'narrow' : this.fold;\n const navLook = this.navLook || (canvas ? 'tabs' : '');\n // Each region shows what is placed in its slot, or, when nothing is, what the props describe.\n return html`<div class=\"bar\" part=\"bar\">\n <div class=\"start\"><slot name=\"start\">\n ${this.renderBrand()}\n ${this.context ? html`<span class=\"context\" part=\"context\"><span class=\"slash\" aria-hidden=\"true\">/</span>${this.context}</span>` : nothing}\n ${statusAt === 'start' ? status : nothing}\n ${this.badge ? html`<span class=\"chip\" part=\"badge\"><svg viewBox=\"0 0 14 14\" aria-hidden=\"true\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"><circle cx=\"3.5\" cy=\"3\" r=\"1.5\"/><circle cx=\"3.5\" cy=\"11\" r=\"1.5\"/><circle cx=\"10.5\" cy=\"4.5\" r=\"1.5\"/><path d=\"M3.5 4.5v5M10.5 6c0 2.5-3 2.5-6 4\"/></svg>${this.badge}</span>` : nothing}\n ${this.meta ? html`<span class=\"meta\" part=\"meta\">${this.meta}</span>` : nothing}\n </slot></div>\n <div class=\"middle\"><slot name=\"middle\">${(this.links ?? []).length ? html`<impakt-nav align=\"center\" size=\"sm\" fold=${fold} look=${navLook || nothing} .current=${this.current} .links=${this.links} .label=${this.label} .menuText=${this.menuText} .actionText=${fold === 'narrow' && !canvas ? this.actionText : ''} .actionHref=${this.actionHref}></impakt-nav>` : nothing}</slot></div>\n <div class=\"end\"><slot name=\"presence\">${\n presence.length\n ? html`<span class=\"presence\" part=\"presence\">${presence.map(\n (person) =>\n html`<span class=${person.ink ? 'avatar ink' : person.accent ? 'avatar accent' : 'avatar'} role=\"img\" aria-label=${person.name}>${person.initials ?? person.name.slice(0, 1).toUpperCase()}</span>`,\n )}</span>`\n : nothing\n }</slot><slot name=\"end\">\n ${statusAt === 'start' ? nothing : status}\n ${this.actionText ? html`<impakt-button class=\"act\" variant=\"primary\" size=\"sm\" icon-after=\"arrow-right\" href=${this.actionHref || nothing} @click=${this.act}>${this.actionText}</impakt-button>` : nothing}\n </slot>${canvas ? this.renderMenu() : nothing}</div>\n </div>`;\n }\n}\n\n/** 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 /*\n * The G2 footer's link row (10:729, 96:2492): each column as wide as its words, and the columns and the action spread\n * across the row with equal space between them, so on a 1080px column they start at 0, 201, 499 and 682 and the\n * action ends at the row's end; the action is the frame's 170px button with its arrow at the far end (#88).\n */\n /* Each column in the frame (96:2493): the heading in G2 Mono S, then the links in Body M, 23px lines 8px apart, so four links are 139px. */\n :host([brand-size='display']) .h { margin-block-end: ${space(2)}; font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.06em; }\n :host([brand-size='display']) .columns ul { gap: ${space(2)}; }\n :host([brand-size='display']) .columns :is(li, a) { font-size: 1rem; line-height: 1.45; font-weight: ${fontWeight('regular')}; }\n @container (min-width: 48.01rem) { :host([brand-size='display']) .row { justify-content: space-between; } :host([brand-size='display']) .row .columns { display: contents; } :host([brand-size='display']) .columns > div { flex: none; white-space: nowrap; } :host([brand-size='display']) .row impakt-button { inline-size: 170px; } }\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 /* The G2 footer on a phone (15:1099, 96:2593): two 165px columns 20px apart, the second row 28px under the first. */\n @container (max-width: 48rem) { :host([brand-size='display']) .columns { gap: 28px 20px; } }\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\" ?spread=${this.brandSize === 'display'} 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-site-footer', ImpaktSiteFooter);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-site-header': ImpaktSiteHeader;\n 'impakt-site-footer': ImpaktSiteFooter;\n }\n}\n"],"mappings":";;;;;;;;;;AAWA,SAAS,KAAK,MAAM,eAAoC;AAExD,SAAS,eAAe,GAAG,WAAW,UAAU,YAAY,aAAa,KAAK,OAAO,GAAG,OAAO,MAAM,cAAuC;AAS5I,IAAM,QAAQ,MAAM,gBAAgB,SAAS;AAI7C,IAAM,SAAS,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;AAG7B,IAAM,OAAO,EAAE;AAkDR,IAAM,mBAAN,cAA+B,cAAc;AAAA,EAClD;AAAA,SAAO,aAAa;AAAA,MAClB,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,SAAS,EAAE,MAAM,QAAQ,WAAW,WAAW;AAAA,MAC/C,SAAS,EAAE,MAAM,QAAQ,WAAW,WAAW;AAAA,MAC/C,MAAM,EAAE,MAAM,OAAO;AAAA,MACrB,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,MAAM,EAAE,MAAM,OAAO;AAAA,MACrB,OAAO,EAAE,MAAM,MAAM;AAAA,MACrB,OAAO,EAAE,MAAM,OAAO;AAAA,MACtB,UAAU,EAAE,MAAM,QAAQ,WAAW,YAAY;AAAA,MACjD,QAAQ,EAAE,MAAM,OAAO;AAAA,MACvB,YAAY,EAAE,MAAM,QAAQ,WAAW,cAAc;AAAA,MACrD,YAAY,EA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