@atomic-ui/blocks 0.13.2 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +82 -18
- package/dist/{chunk-B6I3GVJ5.js → chunk-3G3NP4UC.js} +9 -4
- package/dist/chunk-3G3NP4UC.js.map +1 -0
- package/dist/{chunk-H262HKSL.js → chunk-7OFH762N.js} +53 -23
- package/dist/chunk-7OFH762N.js.map +1 -0
- package/dist/{chunk-WIVKJL64.js → chunk-BW5ZMKES.js} +65 -29
- package/dist/chunk-BW5ZMKES.js.map +1 -0
- package/dist/{chunk-WTVF3JRL.js → chunk-GDATDR2Q.js} +24 -7
- package/dist/chunk-GDATDR2Q.js.map +1 -0
- package/dist/{chunk-IT2NA25D.js → chunk-GZTBAT6P.js} +6 -3
- package/dist/chunk-GZTBAT6P.js.map +1 -0
- package/dist/{chunk-FNGN2F6Y.js → chunk-NZQZRBKV.js} +17 -4
- package/dist/chunk-NZQZRBKV.js.map +1 -0
- package/dist/{chunk-53V2GY6L.js → chunk-Q366ZM2X.js} +60 -29
- package/dist/chunk-Q366ZM2X.js.map +1 -0
- package/dist/{chunk-MMADM6OW.js → chunk-ZM2HLQOG.js} +3 -2
- package/dist/{chunk-MMADM6OW.js.map → chunk-ZM2HLQOG.js.map} +1 -1
- package/dist/components/changelog.js +1 -1
- package/dist/components/estimator.js +1 -1
- package/dist/components/g2-case.d.ts +8 -1
- package/dist/components/g2-case.js +1 -1
- package/dist/components/g2-site.d.ts +22 -1
- package/dist/components/g2-site.js +1 -1
- package/dist/components/journey.d.ts +13 -2
- package/dist/components/journey.js +1 -1
- package/dist/components/organisms.js +1 -1
- package/dist/components/site.d.ts +2 -1
- package/dist/components/site.js +1 -1
- package/dist/components/studio.d.ts +32 -3
- package/dist/components/studio.js +1 -1
- package/dist/index.js +8 -8
- package/dist/standalone/atomic-ui-blocks.js +1173 -1072
- package/dist/standalone/atomic-ui-blocks.js.map +3 -3
- package/package.json +3 -3
- package/dist/chunk-53V2GY6L.js.map +0 -1
- package/dist/chunk-B6I3GVJ5.js.map +0 -1
- package/dist/chunk-FNGN2F6Y.js.map +0 -1
- package/dist/chunk-H262HKSL.js.map +0 -1
- package/dist/chunk-IT2NA25D.js.map +0 -1
- package/dist/chunk-WIVKJL64.js.map +0 -1
- package/dist/chunk-WTVF3JRL.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/g2-case.ts"],"sourcesContent":["/**\n * The G2 Noire blocks for a case study and the studio's process: the process\n * line, the week strip, the \"how might we\" callout, the hypothesis card and the\n * browser frame a product screenshot sits in.\n */\nimport { css, html, nothing, svg, type TemplateResult } from 'lit';\nimport { ImpaktElement, R, fontWeight, revealAt, revealStyles, say, space, t, visuallyHidden } from '@atomic-ui/ui';\nimport { accent, accentOn, accentOnInk, band, bandLine, bandMuted, bandOn, bandRaised, ink, inkLine, levelOf, monoLabel, paper } from './g2-shared';\n\n/** One point on the process line. */\nexport interface ProcessNode {\n /**\n * What happens here, such as \"Discovery\". Leave empty for a point with no\n * words, such as where the line comes back to the main line: it is drawn\n * and is not in the list a screen reader meets.\n */\n label: string;\n /** How far the line dips here: 0 on the main line, 1 a step below (40px), 2 two steps. A fraction falls between. */\n depth?: number;\n /** The point the project is at now, filled in the accent. */\n current?: boolean;\n /**\n * Where the point falls along the line, from 0 at its start to 1 at its\n * end, such as 0.25 for a quarter of the way. Points left without one are\n * spaced evenly, as every point is when none has one.\n */\n at?: number;\n /** A flag above the point, such as \"Build merged\" or \"v1.0 launch\". */\n flag?: string;\n}\n\nconst STEP = 40;\n/** The main line is 40px into the drawing, as in the Sprint progress component (`10:483`). */\nconst TOP = 40;\n\n/**\n * A project's process drawn as one main line that dips to a different depth\n * for each phase, like a branch in version control: hollow rings for each\n * point, the current one larger and filled in the accent and each flagged one\n * filled in the accent too, a mono label by each (above a\n * point on the main line, below one that dips) and accent flags such as\n * \"Build merged\" and \"v1.0 launch\". A flag on the main line stands in for\n * its point's label there. Between two points that dip to different depths\n * the line comes back up to the main line, so each phase is its own valley,\n * as in the Sprint progress component (`10:483`): each valley has a flat\n * floor, joined to the main line by short, steep bends.\n *\n * **The drawing is decoration; the list is the content.** A screen reader\n * meets an ordered list of the points, in order, with their flags and the\n * current one marked as the current step (1.1.1, 1.3.1). On a narrow column,\n * measured against its own width, the same list is drawn as a vertical rail\n * and the drawing is not shown, so nothing is lost at 320px (1.4.10).\n *\n * It is drawn for an ink band and takes the band's colours, and the band's\n * pattern, such as its column lines, shows through it; outside a band it draws\n * its own ink panel. Give a point `at` to place it where its phase falls, and\n * leave a point's label empty for one with no words. The current point keeps a ring in the band's text\n * colour, so it is not told by its colour alone (1.4.1, 1.4.11).\n *\n * **It draws itself once** (impkt-web#51), for a brand with the reveal set on:\n * as it reaches the middle of the screen the line strokes on from left to\n * right in 640ms, the points and their words appear in order 60ms apart, and\n * the flagged points fill with the accent last. The list a screen reader meets\n * never moves. With no script and with reduced motion it is drawn as it ends.\n *\n * @category content\n * @icon git-commit\n */\nexport class ImpaktProcessLine extends ImpaktElement {\n static properties = {\n nodes: { type: Array },\n lineLabel: { type: String, attribute: 'line-label' },\n label: { type: String },\n };\n /** The points, left to right. */\n declare nodes: ProcessNode[];\n /** A label at the start of the line, such as \"main\". */\n declare lineLabel: string;\n /** A name for the list, for a screen reader, such as \"How a project runs\". */\n declare label: string;\n\n constructor() {\n super();\n this.nodes = [];\n this.lineLabel = '';\n this.label = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n /* On a band, the band's own pattern shows through and the \"main\" label hangs above the drawing (10:483); outside one the line draws its own ink panel, with room in it for that label. */\n :host { display: block; container-type: inline-size; background: var(--impakt-band-panel, ${band}); color: ${bandOn}; }\n .visual { display: none; position: relative; margin-block-start: var(--impakt-band-panel-inset, 32px); }\n .visual svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; }\n .visual path { fill: none; stroke: ${bandOn}; stroke-width: 1.5; vector-effect: non-scaling-stroke; }\n .ring { position: absolute; inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid ${bandOn}; background: ${band}; transform: translate(-50%, -50%); }\n /* A flagged point is filled in the accent (10:483); the current one is filled and 2px larger, so it is not told by colour alone. */\n .ring.flagged, .ring.current { background: ${accent}; }\n .ring.current { inline-size: 12px; block-size: 12px; }\n /* Each label keeps to the space between its point and the next, wrapping rather than running into its neighbour. */\n .vlabel { position: absolute; transform: translateX(-50%); ${monoLabel}; color: ${bandMuted}; inline-size: max-content; max-inline-size: var(--slot); text-align: center; text-wrap: balance; }\n .lineLabel { position: absolute; inset-inline-start: 0; ${monoLabel}; color: ${bandMuted}; }\n .flag { display: inline-block; padding: 4px 8px; ${monoLabel}; font-weight: ${fontWeight('medium')}; background: ${accent}; color: ${accentOn}; white-space: nowrap; }\n .visual .flag { position: absolute; transform: translate(-50%, -100%); }\n\n ol { margin: 0; padding: ${space(6)} ${space(4)}; list-style: none; }\n li { position: relative; padding: 0 0 ${space(5)} 28px; }\n li::before { content: ''; position: absolute; inset-inline-start: 0; inset-block-start: 4px; inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid ${bandOn}; background: ${band}; }\n li[aria-current]::before { background: ${accent}; }\n li:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: 4.25px; inset-block-start: 14px; inset-block-end: -4px; inline-size: 1.5px; background: ${bandOn}; }\n .rlabel { ${monoLabel}; font-size: 0.75rem; color: ${bandOn}; }\n li .flag { margin-inline-start: ${space(2)}; }\n\n @container (min-width: 60rem) {\n .visual { display: block; }\n ol { ${visuallyHidden} }\n }\n @media (forced-colors: active) {\n .visual path { stroke: CanvasText; }\n .ring, li::before { border-color: CanvasText; background: Canvas; }\n .ring.current, .ring.flagged, li[aria-current]::before { background: Highlight; }\n li::after { background: CanvasText; }\n .flag { border: 1px solid CanvasText; }\n }\n /* Line draw (impkt-web#51): the line strokes on left to right, the points and their words appear in order, and the flagged points fill last. */\n :host([data-motion]) .visual svg { animation: ik-line-draw ${R.line} ${R.shape} ${revealAt(0)} both; }\n :host([data-motion]) .lineLabel { animation: ik-reveal-type ${R.type} ${R.arrive} ${revealAt(0)} both; }\n :host([data-motion]) .ring { animation: ik-reveal-mark ${R.mark} ${R.arrive} ${revealAt()} both; }\n :host([data-motion]) :is(.vlabel, .visual .flag) { animation: ik-reveal-fade ${R.mark} ${R.arrive} ${revealAt()} both; }\n :host([data-motion]) .ring.flagged { animation: ik-reveal-mark ${R.mark} ${R.arrive} ${revealAt()} both, ik-line-fill ${R.mark} ${R.arrive} calc(var(--ik-reveal-delay, 0ms) + max(var(--n, 0) * ${R.stagger}, ${R.line})) both; }\n @keyframes ik-line-draw { from { clip-path: inset(-12px 100% -12px -12px); } to { clip-path: inset(-12px -12px -12px -12px); } }\n @keyframes ik-line-fill { from { background: ${band}; } }\n `,\n revealStyles,\n ];\n\n render(): TemplateResult {\n const nodes = this.nodes ?? [];\n if (!nodes.length) return html``;\n const n = nodes.length;\n const depthOf = (node: ProcessNode) => Math.max(0, Math.min(4, Number(node.depth) || 0));\n const maxDepth = Math.max(...nodes.map(depthOf));\n // The lowest label hangs 14px under its point and is 15px tall; the drawing ends 26px under it, 170px for the frame's 75px dip.\n const height = Math.round(TOP + maxDepth * STEP + 55);\n // Where each point falls, from 0 to 1: its own `at`, or evenly spaced.\n const xs = nodes.map((node, i) => {\n const at = Number(node.at);\n return node.at != null && Number.isFinite(at) ? Math.max(0, Math.min(1, at)) : (i + 0.5) / n;\n });\n const pts = nodes.map((node, i) => ({ x: xs[i]! * 1000, y: TOP + depthOf(node) * STEP }));\n // How many points in a row share each point's depth: a valley of one point or of several.\n const run = pts.map((p, i) => {\n let k = 1;\n for (let j = i - 1; j >= 0 && pts[j]!.y === p.y; j--) k++;\n for (let j = i + 1; j < n && pts[j]!.y === p.y; j++) k++;\n return k;\n });\n // A bend is short and steep, 40px of the frame's 1080 (10:483): level at both ends, with its handles halfway along.\n const BEND = (40 / 1080) * 1000;\n const at = (x: number) => Math.round(x * 100) / 100;\n const bend = (fromX: number, fromY: number, toX: number, toY: number) => {\n const mid = at((fromX + toX) / 2);\n return ` L${at(fromX)} ${fromY} C${mid} ${fromY} ${mid} ${toY} ${at(toX)} ${toY}`;\n };\n let d = `M0 ${pts[0]!.y} L${pts[0]!.x} ${pts[0]!.y}`;\n for (let i = 1; i < n; i++) {\n const a = pts[i - 1]!;\n const b = pts[i]!;\n const gap = b.x - a.x;\n // Level points join with a straight line, so a phase of several points is one flat valley.\n if (a.y === b.y) {\n d += ` L${b.x} ${b.y}`;\n continue;\n }\n // Two points that dip to different depths are two valleys: the line bends up out of the first, runs along the\n // main line and bends down into the second (10:483).\n if (a.y > TOP && b.y > TOP) {\n const w = Math.min(BEND, gap / 2);\n d += bend(a.x, a.y, a.x + w, TOP) + bend(b.x - w, TOP, b.x, b.y);\n continue;\n }\n // Between the main line and a valley the bend sits next to a valley of one point, so that point is the foot of\n // the bend, and next to the main line's point for a valley of several, so their flat floor runs out past them.\n const w = Math.min(BEND, gap);\n const down = b.y > a.y;\n const lone = down ? run[i] === 1 : run[i - 1] === 1;\n const atStart = down ? !lone : lone;\n d += atStart ? bend(a.x, a.y, a.x + w, b.y) : bend(b.x - w, a.y, b.x, b.y);\n d += ` L${b.x} ${b.y}`;\n }\n d += ` L1000 ${pts[n - 1]!.y}`;\n const pct = (i: number) => `${xs[i]! * 100}%`;\n // Each label keeps to the room between its point and its nearest neighbour, wrapping rather than running into it.\n // Evenly spaced points keep a little air between their labels; placed points take the whole room, as the frame's do.\n const placed = nodes.some((node) => node.at != null);\n const slot = (i: number) => {\n const near = Math.min(i > 0 ? xs[i]! - xs[i - 1]! : 1, i < n - 1 ? xs[i + 1]! - xs[i]! : 1);\n return placed ? `calc(${near * 100}cqi + 0.25rem)` : `calc(${100 / n}cqi - 0.5rem)`;\n };\n const listed = nodes.filter((node) => node.label || node.flag);\n return html`<div class=\"visual\" part=\"drawing\" aria-hidden=\"true\" style=\"block-size:${height}px;--n:${n}\">\n <svg viewBox=\"0 0 1000 ${height}\" preserveAspectRatio=\"none\" focusable=\"false\">${svg`<path d=${d} />`}</svg>\n ${this.lineLabel ? html`<span class=\"lineLabel\" style=\"inset-block-start:${TOP - 66}px\">${this.lineLabel}</span>` : nothing}\n ${nodes.map((node, i) => {\n const y = pts[i]!.y;\n // On the main line the label sits above the point, clear of the curves that leave it; a\n // flag there stands in for it. Below the main line the label hangs under the point.\n const onMain = depthOf(node) === 0;\n const style = (edge: string) => `inset-inline-start:${pct(i)};${edge};--slot:${slot(i)};--i:${i}`;\n const label = !node.label\n ? nothing\n : onMain\n ? node.flag\n ? nothing\n : html`<span class=\"vlabel\" style=${style(`inset-block-end:${height - y + 12}px`)}>${node.label}</span>`\n : html`<span class=\"vlabel\" style=${style(`inset-block-start:${y + 14}px`)}>${node.label}</span>`;\n return html`<span class=\"ring${node.current ? ' current' : ''}${node.flag ? ' flagged' : ''}\" style=\"inset-inline-start:${pct(i)};inset-block-start:${y}px;--i:${i}\"></span>\n ${label}\n ${node.flag ? html`<span class=\"flag\" style=\"inset-inline-start:${pct(i)};inset-block-start:${y - 15}px;--i:${i}\">${node.flag}</span>` : nothing}`;\n })}\n </div>\n <ol part=\"list\" role=\"list\" aria-label=${this.label || nothing}>\n ${listed.map(\n (node) => html`<li part=\"item\" aria-current=${node.current ? 'step' : nothing}>\n <span class=\"rlabel\">${node.label}</span>${node.flag ? html`<span class=\"flag\">${node.flag}</span>` : nothing}\n </li>`,\n )}\n </ol>`;\n }\n}\n\n/** One day of the week strip. */\nexport interface WeekDay {\n /** The day, such as \"Mon\". Set in mono capitals. */\n day: string;\n /** What happens, such as \"Plan\". */\n heading: string;\n /** A line about it. */\n text?: string;\n /** Pick this day out in the accent, such as the demo. */\n highlight?: boolean;\n}\n\n/**\n * A working week in five tiles, such as Mon Plan, Tue Make, Wed Review, Thu\n * Make and Fri Demo: a mono day, a heading and a line, on tiles raised off an\n * ink band, with one day picked out in the accent.\n *\n * A list, each heading at the level the page asks for (1.3.1). The accent day\n * is also the only one with ink words, and its heading says what it is, so it\n * is not told by colour alone (1.4.1). The tiles wrap on a narrow screen\n * (1.4.10).\n *\n * @category content\n * @icon calendar\n */\nexport class ImpaktWeekStrip extends ImpaktElement {\n static properties = {\n days: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n label: { type: String },\n };\n declare days: WeekDay[];\n declare headingLevel: number;\n /** A name for the list, for a screen reader. Leave empty for none. */\n declare label: string;\n\n constructor() {\n super();\n this.days = [];\n this.headingLevel = 3;\n this.label = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; }\n ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: 10px; }\n li { box-sizing: border-box; min-block-size: 150px; padding: ${space(5)}; background: ${bandRaised}; border: 1px solid ${bandLine}; color: ${bandOn}; }\n li.highlight { background: ${accent}; border-color: ${accent}; color: ${accentOn}; }\n .day { margin: 0; ${monoLabel}; color: ${bandMuted}; }\n .heading { margin: ${space(2)} 0 0; font-family: ${t.fontHeading}; font-size: 2rem; font-weight: ${fontWeight('semibold')}; line-height: 1.1; letter-spacing: -0.03em; }\n .text { margin: ${space(3)} 0 0; font-size: 0.875rem; line-height: 1.45; color: ${bandMuted}; }\n li.highlight :is(.day, .text) { color: ${accentOn}; }\n @media (forced-colors: active) { li, li.highlight { border-color: CanvasText; } li.highlight { border-width: 3px; } }\n `,\n ];\n\n render(): TemplateResult {\n if (!this.days?.length) return html``;\n const level = levelOf(this.headingLevel);\n return html`<ol part=\"list\" role=\"list\" aria-label=${this.label || nothing}>\n ${this.days.map(\n (day) => html`<li part=\"day\" class=${day.highlight ? 'highlight' : ''}>\n <p class=\"day\">${day.day}</p>\n <div class=\"heading\" role=\"heading\" aria-level=${level}>${day.heading}</div>\n ${day.text ? html`<p class=\"text\">${day.text}</p>` : nothing}\n </li>`,\n )}\n </ol>`;\n }\n}\n\n/**\n * A statement set apart on an ink panel, under a mono accent label: the \"How\n * might we\" of a case study.\n *\n * The panel stays ink in both themes, so the accent label on it keeps its\n * contrast (1.4.3). The label and statement are plain text, read in order.\n *\n * @category content\n * @icon quote\n * @slot - The statement, when it holds more than words. Replaces `text`.\n */\nexport class ImpaktCallout extends ImpaktElement {\n static properties = {\n label: { type: String },\n text: { type: String },\n };\n /** The label above, such as \"How might we\". */\n declare label: string;\n /** The statement. */\n declare text: string;\n\n constructor() {\n super();\n this.label = '';\n this.text = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; }\n /* The \"How might we\" panel of 21:1381: 32px inside its edge, the label 12px over the question, and the question in Display S, 32px on 1.1 at -3%, at most 900px wide. */\n .panel { padding: calc(${space(8)} - 1px); background: ${ink}; color: ${paper}; border: 1px solid ${ink}; }\n .label { margin: 0 0 12px; ${monoLabel}; font-weight: ${fontWeight('medium')}; color: ${accentOnInk}; }\n .text { margin: 0; max-inline-size: 28.125em; font-family: ${t.fontHeading}; font-size: clamp(1.5rem, 1rem + 2vw, 2rem); font-weight: ${fontWeight('semibold')}; line-height: 1.1; letter-spacing: -0.03em; }\n @media (prefers-color-scheme: dark) { .panel { border-color: ${inkLine}; } }\n @media (max-width: 30rem) { .panel { padding: ${space(6)}; } }\n @media (forced-colors: active) { .panel { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n return html`<div class=\"panel\" part=\"panel\">\n ${this.label ? html`<p class=\"label\" part=\"label\">${this.label}</p>` : nothing}\n <p class=\"text\" part=\"text\"><slot>${this.text}</slot></p>\n </div>`;\n }\n}\n\n/**\n * A hypothesis to test: its number such as \"H1\", how much it matters, a\n * statement, and the metric that will tell, on a white card with an ink border.\n * Lay six out two to a row.\n *\n * `impact` draws the tag: \"High impact\" on the accent, \"Medium impact\" and\n * \"Low impact\" outlined in ink. The tag says the impact in words, so it is not\n * told by its colour (1.4.1).\n *\n * @category content\n * @icon flask\n */\nexport class ImpaktHypothesisCard extends ImpaktElement {\n static properties = {\n number: { type: String },\n statement: { type: String },\n metric: { type: String },\n impact: { type: String, reflect: true },\n impactLabel: { type: String, attribute: 'impact-label' },\n };\n /** The hypothesis's number, such as \"H1\". */\n declare number: string;\n /** What the team believes, such as \"A jobs board grouped by stage shows stuck cars faster than a shared spreadsheet.\" */\n declare statement: string;\n /** What will be measured, such as \"Time a car waits unnoticed\". */\n declare metric: string;\n /** How much it matters. Leave empty for no tag. */\n declare impact: 'high' | 'medium' | 'low' | '';\n /** The tag's words, in place of the impact's own. */\n declare impactLabel: string;\n\n constructor() {\n super();\n this.number = '';\n this.statement = '';\n this.metric = '';\n this.impact = '';\n this.impactLabel = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; block-size: 100%; }\n /* The hypothesis of 21:1417: 24px inside, its parts 14px apart, the statement 20px on 1.2, so a two-line card is 164px. */\n article { box-sizing: border-box; block-size: 100%; display: grid; align-content: start; gap: 14px; padding: ${space(6)}; background: ${t.surfaceCard}; color: ${t.text}; border: 1px solid ${t.text}; }\n .top { display: flex; justify-content: space-between; align-items: center; gap: ${space(2)}; flex-wrap: wrap; min-block-size: 22px; }\n .number { font-family: ${t.fontMono}; font-size: 0.75rem; letter-spacing: 0.06em; }\n .impact { margin: 0; padding: 3px 7px; ${monoLabel}; font-weight: ${fontWeight('medium')}; border: 1px solid ${t.text}; color: ${t.text}; }\n :host([impact='high']) .impact { background: ${accent}; color: ${accentOn}; border-color: ${accentOn}; }\n .statement { margin: 0; font-family: ${t.fontHeading}; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }\n .metric { margin: 0; ${monoLabel}; color: ${t.textMuted}; }\n @media (forced-colors: active) { article, .impact { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const words: Record<string, string> = { high: 'High impact', medium: 'Medium impact', low: 'Low impact' };\n const impact = this.impactLabel || (this.impact && words[this.impact] ? say(words[this.impact]!) : '');\n return html`<article part=\"card\">\n ${\n this.number || impact\n ? html`<div class=\"top\">\n <span class=\"number\" part=\"number\">${this.number}</span>\n ${impact ? html`<p class=\"impact\" part=\"impact\">${impact}</p>` : nothing}\n </div>`\n : nothing\n }\n ${this.statement ? html`<p class=\"statement\" part=\"statement\">${this.statement}</p>` : nothing}\n ${this.metric ? html`<p class=\"metric\" part=\"metric\">${say('Metric')} · ${this.metric}</p>` : nothing}\n </article>`;\n }\n}\n\n/**\n * A window frame for a product screenshot on an ink band: a 40px bar with\n * three dots, the first in the accent, and a mono caption, over a canvas that\n * holds the picture. With no picture in it, the canvas shows a grid, as a\n * placeholder.\n *\n * **The frame is decoration; the picture carries the words.** Give the image\n * its own `alt`. The bar is hidden from a screen reader (1.1.1).\n *\n * @category media\n * @icon browser\n * @slot - The picture, such as an `<img>` with its `alt`.\n */\nexport class ImpaktBrowserFrame extends ImpaktElement {\n static properties = {\n caption: { type: String },\n ratio: { type: String },\n filled: { state: true },\n };\n /** The caption in the bar, such as \"Harbour · Cover\". It is decoration. */\n declare caption: string;\n /** The canvas's shape while it is empty, as a CSS aspect ratio. */\n declare ratio: string;\n declare protected filled: boolean;\n\n constructor() {\n super();\n this.caption = '';\n this.ratio = '16 / 9';\n this.filled = false;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; }\n .frame { border: 1px solid ${bandLine}; background: ${band}; color: ${bandOn}; }\n .bar { display: flex; align-items: center; gap: 6px; block-size: 40px; padding-inline: ${space(3)}; background: ${bandRaised}; border-block-end: 1px solid ${bandLine}; overflow: hidden; }\n .dot { flex: none; inline-size: 8px; block-size: 8px; border-radius: 50%; background: ${bandLine}; }\n .dot:first-child { background: ${accent}; }\n .caption { margin-inline-start: ${space(1.5)}; ${monoLabel}; color: ${bandMuted}; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n .canvas { position: relative; }\n .canvas.empty { background-image: linear-gradient(to right, ${bandLine} 1px, transparent 1px), linear-gradient(to bottom, ${bandLine} 1px, transparent 1px); background-size: 28px 28px; }\n ::slotted(img), ::slotted(picture), ::slotted(video) { display: block; inline-size: 100%; block-size: auto; }\n @media (forced-colors: active) { .frame, .bar { border-color: CanvasText; } .dot { background: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n return html`<div class=\"frame\" part=\"frame\">\n <div class=\"bar\" part=\"bar\" aria-hidden=\"true\">\n <span class=\"dot\"></span><span class=\"dot\"></span><span class=\"dot\"></span>\n ${this.caption ? html`<span class=\"caption\" part=\"caption\">${this.caption}</span>` : nothing}\n </div>\n <div class=\"canvas ${this.filled ? '' : 'empty'}\" part=\"canvas\" style=${this.filled ? '' : `aspect-ratio: ${this.ratio || '16 / 9'}`}>\n <slot @slotchange=${this.onSlot}></slot>\n </div>\n </div>`;\n }\n\n private onSlot(e: Event): void {\n this.filled = (e.target as HTMLSlotElement).assignedElements().length > 0;\n }\n}\n\ncustomElements.define('impakt-process-line', ImpaktProcessLine);\ncustomElements.define('impakt-week-strip', ImpaktWeekStrip);\ncustomElements.define('impakt-callout', ImpaktCallout);\ncustomElements.define('impakt-hypothesis-card', ImpaktHypothesisCard);\ncustomElements.define('impakt-browser-frame', ImpaktBrowserFrame);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-process-line': ImpaktProcessLine;\n 'impakt-week-strip': ImpaktWeekStrip;\n 'impakt-callout': ImpaktCallout;\n 'impakt-hypothesis-card': ImpaktHypothesisCard;\n 'impakt-browser-frame': ImpaktBrowserFrame;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAKA,SAAS,KAAK,MAAM,SAAS,WAAgC;AAC7D,SAAS,eAAe,GAAG,YAAY,UAAU,cAAc,KAAK,OAAO,GAAG,sBAAsB;AAyBpG,IAAM,OAAO;AAEb,IAAM,MAAM;AAmCL,IAAM,oBAAN,cAAgC,cAAc;AAAA,EACnD;AAAA,SAAO,aAAa;AAAA,MAClB,OAAO,EAAE,MAAM,MAAM;AAAA,MACrB,WAAW,EA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,SAAK,QAAQ;AACb,SAAK,SAAS;AAAA,EAChB;AAAA,EAEA;AAAA,SAAO,SAAS;AAAA,MACd,GAAG,cAAc;AAAA,MACjB;AAAA;AAAA,mCAE+B,QAAQ,iBAAiB,IAAI,YAAY,MAAM;AAAA,+FACa,MAAM,CAAC,CAAC,iBAAiB,UAAU,iCAAiC,QAAQ;AAAA,8FAC7E,QAAQ;AAAA,uCAC/D,MAAM;AAAA,wCACL,MAAM,GAAG,CAAC,KAAK,SAAS,YAAY,SAAS;AAAA;AAAA,oEAEjB,QAAQ,sDAAsD,QAAQ;AAAA;AAAA;AAAA;AAAA,IAIxI;AAAA;AAAA,EAEA,SAAyB;AACvB,WAAO;AAAA;AAAA;AAAA,UAGD,KAAK,UAAU,4CAA4C,KAAK,OAAO,YAAY,OAAO;AAAA;AAAA,2BAEzE,KAAK,SAAS,KAAK,OAAO,yBAAyB,KAAK,SAAS,KAAK,iBAAiB,KAAK,SAAS,QAAQ,EAAE;AAAA,4BAC9G,KAAK,MAAM;AAAA;AAAA;AAAA,EAGrC;AAAA,EAEQ,OAAO,GAAgB;AAC7B,SAAK,SAAU,EAAE,OAA2B,iBAAiB,EAAE,SAAS;AAAA,EAC1E;AACF;AAEA,eAAe,OAAO,uBAAuB,iBAAiB;AAC9D,eAAe,OAAO,qBAAqB,eAAe;AAC1D,eAAe,OAAO,kBAAkB,aAAa;AACrD,eAAe,OAAO,0BAA0B,oBAAoB;AACpE,eAAe,OAAO,wBAAwB,kBAAkB;","names":["at","w"]}
|
|
@@ -11,7 +11,10 @@ import {
|
|
|
11
11
|
spaceAround,
|
|
12
12
|
t,
|
|
13
13
|
token,
|
|
14
|
-
unlockScroll
|
|
14
|
+
unlockScroll,
|
|
15
|
+
R,
|
|
16
|
+
revealAt,
|
|
17
|
+
revealStyles
|
|
15
18
|
} from "@atomic-ui/ui";
|
|
16
19
|
var arrow = html`<svg viewBox="0 0 22 22" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true" focusable="false">
|
|
17
20
|
<path d="M5 17 17 5M8 5h9v9" />
|
|
@@ -52,9 +55,20 @@ var ImpaktWorkList = class extends ImpaktElement {
|
|
|
52
55
|
/* The Project row component (8:339): 22px above and below a 72px name, the number in a 54px column, 24px apart. */
|
|
53
56
|
li, .columns { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 22px; align-items: center; column-gap: ${space(6)}; padding: 22px ${space(8)}; }
|
|
54
57
|
.texts li, .texts.columns { grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr) auto 22px; }
|
|
55
|
-
li { position: relative; border-block-end: ${t.borderThin} solid ${t.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }
|
|
56
|
-
|
|
57
|
-
.
|
|
58
|
+
li { position: relative; isolation: isolate; border-block-end: ${t.borderThin} solid ${t.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }
|
|
59
|
+
/* 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). */
|
|
60
|
+
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; }
|
|
61
|
+
li:has(a):hover::before, li:has(a:focus-visible)::before { opacity: 1; transform: none; }
|
|
62
|
+
li :is(.name, .number, .meta, .text, .price, .arrow) { transition: color ${R.wipeDuration} ${R.wipeEasing}; }
|
|
63
|
+
.arrow svg { transition: translate ${R.arrowDuration} ${R.arrowEasing}; }
|
|
64
|
+
/* The row's arrow points up and along, so it slides that way, 4px in all. */
|
|
65
|
+
li:has(a):hover .arrow svg, li:has(a:focus-visible) .arrow svg { translate: calc(0.7071 * ${R.arrowDistance}) calc(-0.7071 * ${R.arrowDistance}); }
|
|
66
|
+
/* Drop (impkt-web#51): the rows drop 12px into place one after another as the list is reached, and the line under each settles. */
|
|
67
|
+
:host([data-motion]) li { animation: ik-reveal-drop ${R.drop} ${R.arrive} ${revealAt()} both, ik-reveal-settle ${R.drop} ${R.arrive} ${revealAt()} both; }
|
|
68
|
+
:host([data-motion]) .columns { animation: ik-reveal-type ${R.type} ${R.arrive} ${revealAt(0)} both; }
|
|
69
|
+
/* 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. */
|
|
70
|
+
.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}; }
|
|
71
|
+
.columns .last { grid-column: -3 / -1; text-align: end; }
|
|
58
72
|
.number { font-family: ${t.fontMono}; font-size: 0.8125rem; line-height: 1.5; font-variant-numeric: tabular-nums; color: ${t.textMuted}; }
|
|
59
73
|
/* Display Row: 72px on a 1080px list and 40px on a 350px phone list (8:329, 14:947). */
|
|
60
74
|
.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; }
|
|
@@ -75,7 +89,7 @@ var ImpaktWorkList = class extends ImpaktElement {
|
|
|
75
89
|
li:not(:has(a)) .badge { color: ${t.text}; background: transparent; }
|
|
76
90
|
.arrow { display: flex; color: ${t.text}; }
|
|
77
91
|
/* 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. */
|
|
78
|
-
li
|
|
92
|
+
li.featured { background: ${t.text}; }
|
|
79
93
|
li:has(a):hover .name, li:has(a:focus-visible) .name, li.featured .name { color: ${t.surfaceCard}; }
|
|
80
94
|
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}); }
|
|
81
95
|
li:has(a):hover .badge, li:has(a:focus-visible) .badge { color: ${t.text}; background: ${t.surfaceCard}; border-color: ${t.surfaceCard}; }
|
|
@@ -96,13 +110,15 @@ var ImpaktWorkList = class extends ImpaktElement {
|
|
|
96
110
|
.arrow svg { inline-size: 18px; block-size: 18px; }
|
|
97
111
|
.columns { display: none; }
|
|
98
112
|
}
|
|
99
|
-
@media (prefers-reduced-motion: reduce) { li { transition: none; } .preview { display: none; } }
|
|
113
|
+
@media (prefers-reduced-motion: reduce) { li, li::before, li *, .arrow svg { transition: none; } .preview { display: none; } }
|
|
100
114
|
@media (forced-colors: active) {
|
|
115
|
+
li::before { display: none; }
|
|
101
116
|
li:has(a):hover, li:has(a:focus-visible), li.featured { background: Canvas; outline: 2px solid Highlight; outline-offset: -2px; }
|
|
102
117
|
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; }
|
|
103
118
|
.badge, li.featured .badge { color: CanvasText; background: Canvas; border-color: CanvasText; }
|
|
104
119
|
}
|
|
105
|
-
|
|
120
|
+
`,
|
|
121
|
+
revealStyles
|
|
106
122
|
];
|
|
107
123
|
}
|
|
108
124
|
/** Show a row's preview beside a mouse pointer. Touch and reduced motion get none. */
|
|
@@ -130,7 +146,7 @@ var ImpaktWorkList = class extends ImpaktElement {
|
|
|
130
146
|
${items.map((item, index) => {
|
|
131
147
|
const number = String(this.start + index).padStart(2, "0");
|
|
132
148
|
const side = item.badge || item.price || item.meta;
|
|
133
|
-
return html`<li part="row" class=${item.featured ? "featured" : ""} @pointermove=${(event) => this.point(event, item)}>
|
|
149
|
+
return html`<li part="row" class=${item.featured ? "featured" : ""} style=${`--i:${index}`} @pointermove=${(event) => this.point(event, item)}>
|
|
134
150
|
<span class="number" aria-hidden="true">${number}</span>
|
|
135
151
|
<div class="name" part="name" role="heading" aria-level=${this.headingLevel}>
|
|
136
152
|
${item.href ? html`<a href=${item.href} part="link">${item.name}</a>` : item.name}
|
|
@@ -175,8 +191,9 @@ var ImpaktStatRow = class extends ImpaktElement {
|
|
|
175
191
|
ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: ${space(6)}; }
|
|
176
192
|
li { border-block-start: ${t.borderThin} solid ${t.rule}; padding-block-start: ${space(5)}; }
|
|
177
193
|
p { margin: 0; display: flex; flex-direction: column; gap: ${space(2)}; }
|
|
178
|
-
.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}; }
|
|
179
|
-
|
|
194
|
+
.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; }
|
|
195
|
+
/* The label's lines are whole pixels, 20px at 14, as the frame sets them, so a two-line stat is 121px (9:362). */
|
|
196
|
+
.label { font-size: ${fontSize("sm")}; line-height: 1.25rem; color: ${t.textMuted}; }
|
|
180
197
|
/* 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. */
|
|
181
198
|
@container impakt-stat-row (max-width: 40rem) {
|
|
182
199
|
ul { gap: ${space(4)} ${space(5)}; }
|
|
@@ -185,14 +202,15 @@ var ImpaktStatRow = class extends ImpaktElement {
|
|
|
185
202
|
}
|
|
186
203
|
/* The note is meta: monospace capitals at 11px. */
|
|
187
204
|
.note { font-family: ${t.fontMono}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }
|
|
188
|
-
|
|
205
|
+
`,
|
|
206
|
+
revealStyles
|
|
189
207
|
];
|
|
190
208
|
}
|
|
191
209
|
render() {
|
|
192
210
|
return html`<ul role="list" part="list" aria-label=${this.label || nothing}>
|
|
193
211
|
${this.items.map(
|
|
194
|
-
(item) => html`<li part="stat">
|
|
195
|
-
<p><span class="value" part="value">${item.figure}</span> <span class="label" part="label">${item.label}</span>${item.note ? html` <span class="note">${item.note}</span>` : nothing}</p>
|
|
212
|
+
(item, i) => html`<li part="stat" style=${`--i:${i}`}>
|
|
213
|
+
<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>
|
|
196
214
|
</li>`
|
|
197
215
|
)}
|
|
198
216
|
</ul>`;
|
|
@@ -237,7 +255,8 @@ var ImpaktFaq = class extends ImpaktElement {
|
|
|
237
255
|
/* The questions sit between 1px ink rules, the first one included, each a row about 92px tall set at heading size S. */
|
|
238
256
|
impakt-accordion { border-block-start: ${t.borderThin} solid ${t.text}; }
|
|
239
257
|
impakt-accordion::part(item) { border-block-end: ${t.borderThin} solid ${t.text}; }
|
|
240
|
-
|
|
258
|
+
/* 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 "+". */
|
|
259
|
+
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: clamp(1.25rem, 3.2cqi, 1.5rem); font-weight: ${fontWeight("semibold")}; line-height: 1.15; letter-spacing: -0.025em; }
|
|
241
260
|
impakt-accordion::part(panel) { max-inline-size: 44rem; color: ${t.textMuted}; line-height: ${lineHeight("normal")}; }
|
|
242
261
|
@media (forced-colors: active) { impakt-accordion, impakt-accordion::part(item) { border-color: CanvasText; } }
|
|
243
262
|
`
|
|
@@ -251,7 +270,7 @@ var ImpaktFaq = class extends ImpaktElement {
|
|
|
251
270
|
${this.heading ? html`<div id=${headingId} class="heading" part="heading" role="heading" aria-level=${level}>${this.heading}</div>` : nothing}
|
|
252
271
|
${this.lead ? html`<p class="lead" part="lead">${this.lead}</p>` : nothing}
|
|
253
272
|
</div>` : nothing;
|
|
254
|
-
const accordion = html`<impakt-accordion part="questions" marker="plus" .items=${this.items} .headingLevel=${level + 1} .open=${this.open} .multiple=${this.multiple}>
|
|
273
|
+
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}>
|
|
255
274
|
${this.items.map((item) => html`<slot name=${`panel-${item.id}`} slot=${`panel-${item.id}`}>${item.body}</slot>`)}
|
|
256
275
|
</impakt-accordion>`;
|
|
257
276
|
return this.heading ? html`<section aria-labelledby=${headingId}>${head}${accordion}</section>` : html`<div>${head}${accordion}</div>`;
|
|
@@ -482,6 +501,10 @@ var ImpaktPostCard = class extends ImpaktElement {
|
|
|
482
501
|
article:has(a):hover .heading { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
|
|
483
502
|
.text { margin: 0; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }
|
|
484
503
|
.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}; }
|
|
504
|
+
/* The link's arrow slides forward when the card is pointed at or focused (impkt-web#51). */
|
|
505
|
+
.go { display: inline-block; transition: translate ${R.arrowDuration} ${R.arrowEasing}; }
|
|
506
|
+
article:has(a):hover .go, article:focus-within .go { translate: ${R.arrowDistance} 0; }
|
|
507
|
+
@media (prefers-reduced-motion: reduce) { .go { transition: none; } }
|
|
485
508
|
/* On a phone (15:1020): 20px inside and 12px apart. */
|
|
486
509
|
@media (max-width: 47.99rem) { article { gap: ${space(3)}; padding: ${space(5)}; } }
|
|
487
510
|
@media (forced-colors: active) { article { border-color: CanvasText; } }
|
|
@@ -494,7 +517,7 @@ var ImpaktPostCard = class extends ImpaktElement {
|
|
|
494
517
|
${this.meta ? html`<p class="meta" part="meta">${this.meta}</p>` : nothing}
|
|
495
518
|
<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>
|
|
496
519
|
${this.text ? html`<p class="text" part="text">${this.text}</p>` : nothing}
|
|
497
|
-
${this.linkText && this.href ? html`<span class="more" aria-hidden="true">${this.linkText}
|
|
520
|
+
${this.linkText && this.href ? html`<span class="more" aria-hidden="true">${this.linkText} <span class="go">→</span></span>` : nothing}
|
|
498
521
|
</article>`;
|
|
499
522
|
}
|
|
500
523
|
};
|
|
@@ -521,26 +544,39 @@ var ImpaktHighlight = class extends ImpaktElement {
|
|
|
521
544
|
* (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
|
|
522
545
|
* heading. Its four 8px handles sit on its corners with the same line.
|
|
523
546
|
*/
|
|
524
|
-
:host { --x: 0.1em; --top: 0.0167em; --foot: 0.033em; display: inline-block; position: relative; isolation: isolate; color: ${token("color.accent.on", "#1a1a1a")}; }
|
|
525
|
-
.box { position: absolute; z-index: -1; inset: var(--top) calc(-1 * var(--x)) var(--foot); box-sizing: border-box; background: ${token("color.accent.default", "#ffd43b")}; border: 1.5px solid ${token("color.accent.on", "#1a1a1a")}; }
|
|
547
|
+
: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")}; }
|
|
548
|
+
.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")}; }
|
|
526
549
|
.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")}; }
|
|
527
|
-
.handle
|
|
528
|
-
.handle
|
|
529
|
-
.handle
|
|
530
|
-
.handle
|
|
531
|
-
/*
|
|
532
|
-
|
|
533
|
-
|
|
550
|
+
.handle.h1 { inset-block-start: calc(var(--top) - 4px); inset-inline-start: calc(-1 * var(--x) - 4px); }
|
|
551
|
+
.handle.h2 { inset-block-start: calc(var(--top) - 4px); inset-inline-end: calc(-1 * var(--x) - var(--trail) - 4px); }
|
|
552
|
+
.handle.h3 { inset-block-end: calc(var(--foot) - 4px); inset-inline-start: calc(-1 * var(--x) - 4px); }
|
|
553
|
+
.handle.h4 { inset-block-end: calc(var(--foot) - 4px); inset-inline-end: calc(-1 * var(--x) - var(--trail) - 4px); }
|
|
554
|
+
/*
|
|
555
|
+
* The label is meta: monospace capitals at 11px, square, 8px under the box and level with its edge (9:311). It is
|
|
556
|
+
* placed by a holder in the heading's own size, so the box's em measures are the heading's, not the label's.
|
|
557
|
+
*/
|
|
558
|
+
.label-at { position: absolute; inset-block-start: calc(100% - var(--foot) + 8px); inset-inline-start: calc(-1 * var(--x)); line-height: 0; }
|
|
559
|
+
.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}; }
|
|
560
|
+
@media (max-width: 40rem) { :host([hide-label-on='phone']) .label-at { display: none; } }
|
|
534
561
|
/* 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). */
|
|
535
|
-
.cursor { position: absolute; inset-block-start: calc(100% - var(--foot) - 16px); inset-inline-start: calc(100% + var(--x) - 4px); display: flex; align-items: flex-start; pointer-events: none; line-height: 1; }
|
|
562
|
+
.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; }
|
|
536
563
|
.cursor svg { display: block; flex: none; color: ${t.text}; stroke: ${t.surfaceCard}; }
|
|
537
564
|
.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}; }
|
|
538
565
|
@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; } }
|
|
539
|
-
|
|
566
|
+
/* 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. */
|
|
567
|
+
.label { --ik-count-duration: ${R.select}; }
|
|
568
|
+
:host([data-motion]) { animation: ik-highlight-words ${R.select} ${R.shape} ${revealAt(0)} both; }
|
|
569
|
+
:host([data-motion]) .box { animation: ik-highlight-draw ${R.select} ${R.shape} ${revealAt(0)} both; }
|
|
570
|
+
:host([data-motion]) :is(.label, .cursor) { animation: ik-reveal-fade ${R.mark} ${R.arrive} ${revealAt(0)} both; }
|
|
571
|
+
:host([data-motion]) .handle { animation: ik-reveal-mark ${R.mark} ${R.arrive} ${revealAt(0, "var(--impakt-motion-reveal-select-duration, 260ms)")} both; }
|
|
572
|
+
@keyframes ik-highlight-draw { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }
|
|
573
|
+
@keyframes ik-highlight-words { from { color: ${t.text}; } }
|
|
574
|
+
`,
|
|
575
|
+
revealStyles
|
|
540
576
|
];
|
|
541
577
|
}
|
|
542
578
|
render() {
|
|
543
|
-
return html`<span class="box" part="box" aria-hidden="true"></span><slot></slot><span class="handle" aria-hidden="true"></span><span class="handle" aria-hidden="true"></span><span class="handle" aria-hidden="true"></span><span class="handle" aria-hidden="true"></span>${this.label ? html`<span class="label" part="label" aria-hidden="true">${this.label}</span>` : nothing}${this.cursor != null ? html`<span class="cursor" part="cursor" aria-hidden="true"
|
|
579
|
+
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>${this.label ? html`<span class="label-at" aria-hidden="true"><span class="label" part="label" aria-hidden="true" data-ik-count="text">${this.label}</span></span>` : nothing}${this.cursor != null ? html`<span class="cursor" part="cursor" aria-hidden="true"
|
|
544
580
|
><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
|
|
545
581
|
>${this.cursor ? html`<span class="tag">${this.cursor}</span>` : nothing}</span
|
|
546
582
|
>` : nothing}`;
|
|
@@ -563,4 +599,4 @@ export {
|
|
|
563
599
|
ImpaktPostCard,
|
|
564
600
|
ImpaktHighlight
|
|
565
601
|
};
|
|
566
|
-
//# sourceMappingURL=chunk-
|
|
602
|
+
//# sourceMappingURL=chunk-BW5ZMKES.js.map
|
|
@@ -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 {\n ImpaktElement,\n focusRing,\n fontSize,\n fontWeight,\n lineHeight,\n lockScroll,\n space,\n spaceAround,\n t,\n token,\n unlockScroll,\n R,\n revealAt,\n revealStyles,\n type NavLink,\n} from '@atomic-ui/ui';\n\n/** One project in a list of work. */\nexport interface WorkItem {\n id?: string;\n /** The project's name, set large. */\n name: string;\n /** What it is and who it is for, such as \"Web platform · Automotive\". */\n meta?: string;\n /** Where the row goes when it is pressed. Leave empty for a row that goes nowhere: it has no arrow and does not turn to ink. */\n href?: string;\n /** A sentence about it, in its own column, such as \"Audits a website against WCAG 2.2 and writes the fixes.\" */\n text?: string;\n /** A short status, set in capitals, such as \"Available now\" or \"Coming soon\". The word carries the status. */\n badge?: string;\n /** A price line under the badge, such as \"From £59 a month\". */\n price?: string;\n /** Keep the row in ink, with the badge and the arrow in the accent: the one item the page wants seen first. */\n featured?: boolean;\n /** A picture shown, tilted, beside the pointer while the row is pointed at. It is decoration and is not read. */\n preview?: string;\n /** A small caption on the preview card, such as \"Harbour · Cover · 4:3\". */\n previewLabel?: string;\n}\n\n/** The arrow at the end of a row that goes somewhere. Drawn, so no font has to hold the glyph. */\nconst arrow = html`<svg viewBox=\"0 0 22 22\" width=\"22\" height=\"22\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"M5 17 17 5M8 5h9v9\" />\n</svg>`;\n\n/**\n * A numbered list of projects, each name set large: the work on a studio's\n * home page, or the index on its work page.\n *\n * **Each row is one link.** The link sits on the project's name, which is a\n * heading, and is stretched over the row, so the whole row can be pressed\n * while a screen reader meets one link with one name (2.4.4, 2.5.8). The\n * number and the arrow are decoration and are hidden from it; the list itself\n * says how many projects there are and which one this is (1.3.1).\n *\n * **Pointing at a row and focusing it look the same.** The row turns to the\n * text colour with the card colour on it, a pair every brand's tokens already\n * hold at 4.5:1, so the state never depends on a colour of its own (1.4.3,\n * 1.4.11). The focus ring is still drawn over it (2.4.7).\n *\n * 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 /* 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 \"+\". */\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: clamp(1.25rem, 3.2cqi, 1.5rem); font-weight: ${fontWeight('semibold')}; line-height: 1.15; letter-spacing: -0.025em; }\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 * A site's menu as a whole screen: a few large links, for a phone or for a\n * site with only a handful of pages.\n *\n * **It is a native `<dialog>` opened with `showModal()`**, as the drawer is, so\n * the focus trap, Escape, the inert page behind it and the return of focus to\n * the button that opened it all come from the browser (2.1.2, 2.4.3). The page\n * behind does not scroll while it is open. The button that opens it is the\n * page's own; set `open` from it and listen for `impakt-close`.\n *\n * **The links are a navigation landmark with a name**, and the page the reader\n * is on carries `aria-current=\"page\"` and is marked with a square, so the mark\n * does not depend on colour (1.4.1). Set `current-text`, such as \"Current\",\n * and the words \"Current · 01\" stand in its number instead of the square. A\n * brand whose ink is dark may also colour it, by setting\n * `--impakt-site-menu-current`.\n *\n * The menu is drawn in ink: the text colour as the background with the card\n * colour on it, a pair every brand already holds at 4.5:1. A component slotted\n * at its foot takes the same colours through its tokens; a plain link there\n * keeps the page's own link colour, so slot `impakt-link` instead.\n *\n * @category navigation\n * @icon menu\n * @slot footer - Under the links: a call to action, an email address.\n * @fires {CustomEvent<null>} impakt-close - When the menu is closed, by its button, by Escape or by following a link.\n */\nexport class ImpaktSiteMenu extends ImpaktElement {\n static properties = {\n open: { type: Boolean, reflect: true },\n links: { type: Array },\n current: { type: String },\n brand: { type: String },\n mark: { type: String },\n home: { type: String },\n label: { type: String },\n closeText: { type: String, attribute: 'close-text' },\n currentText: { type: String, attribute: 'current-text' },\n };\n /** Whether the menu is showing. */\n declare open: boolean;\n /** The pages, in order. */\n declare links: NavLink[];\n /** The `href` of the page the reader is on, so its link is marked. */\n declare current: string;\n /** The site's name, at the top. */\n declare brand: string;\n /** A letter in a small square before the name, such as \"i\", as the site header's canvas look draws it. */\n declare mark: string;\n /** Where the site's name goes. */\n declare home: string;\n /** The menu's name, read when it opens and as the name of its links. */\n declare label: string;\n /** The words on the button that closes it. */\n declare closeText: string;\n /**\n * A word shown with the current page's number, such as \"Current\", so it\n * reads \"Current · 01\". It then marks the page in place of the square.\n * Leave empty for the square.\n */\n declare currentText: string;\n\n constructor() {\n super();\n this.open = false;\n this.links = [];\n this.current = '';\n this.brand = '';\n this.mark = '';\n this.home = '/';\n this.label = 'Menu';\n this.closeText = 'Close';\n this.currentText = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n /* The ink colours are taken on the host, because the dialog repaints the text colour for what is inside it. */\n :host { --impakt-menu: ${t.text}; --impakt-menu-on: ${t.surfaceCard}; --impakt-menu-muted: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); --impakt-menu-rule: color-mix(in srgb, ${t.surfaceCard} 18%, ${t.text}); }\n dialog { box-sizing: border-box; display: none; flex-direction: column; inline-size: 100vw; max-inline-size: 100vw; block-size: 100dvh; max-block-size: 100dvh; margin: 0; padding: 0; border: 0; overflow: auto; background: var(--impakt-menu); color: var(--impakt-menu-on); }\n dialog[open] { display: flex; }\n dialog::backdrop { background: var(--impakt-menu); }\n .bar { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding: ${space(2)} ${space(4)}; border-block-end: ${t.borderThin} solid var(--impakt-menu-rule); }\n .brand { color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: ${fontSize('md')}; font-weight: ${fontWeight('semibold')}; border-radius: ${t.radiusSm}; }\n .brand.marked { display: inline-flex; align-items: center; gap: ${space(3)}; min-block-size: 44px; font-weight: ${fontWeight('medium')}; }\n .mark { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; flex: none; background: var(--impakt-menu-on); color: var(--impakt-menu); font-size: ${fontSize('sm')}; }\n .close { display: inline-flex; align-items: center; gap: ${space(2)}; min-block-size: 44px; padding: 0 ${space(4)}; font: inherit; font-size: ${fontSize('sm')}; font-weight: ${fontWeight('medium')}; color: var(--impakt-menu); background: var(--impakt-menu-on); border: 0; border-radius: ${t.radius}; cursor: pointer; }\n nav { flex: 1; padding: ${space(6)} ${space(5)} 0; }\n ol { list-style: none; margin: 0; padding: 0; }\n li { border-block-end: ${t.borderThin} solid var(--impakt-menu-rule); }\n li a { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding-block: ${space(4)}; color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 12vw, 3.5rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.05em; }\n li a:hover .words { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }\n .number { font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; font-weight: ${fontWeight('regular')}; letter-spacing: 0; color: var(--impakt-menu-muted); }\n /*\n * The current page is marked with a square. Its colour stays the menu's own text colour unless a brand sets\n * --impakt-site-menu-current, because an accent is only readable on ink when the brand's ink is dark (1.4.3).\n */\n a[aria-current] { color: var(--impakt-site-menu-current, var(--impakt-menu-on)); }\n a[aria-current] .number { color: var(--impakt-site-menu-current, var(--impakt-menu-on)); }\n a[aria-current]:not(.worded) .words::before { content: ''; display: inline-block; inline-size: 0.28em; block-size: 0.28em; margin-inline-end: 0.22em; vertical-align: 0.18em; background: currentColor; }\n .foot { display: flex; flex-direction: column; gap: ${space(4)}; padding: ${space(8)} ${space(5)} calc(${space(8)} + env(safe-area-inset-bottom)); }\n .foot[hidden] { display: none; }\n /* What is slotted at the foot is read on ink too. */\n ::slotted(*) { --impakt-color-text-default: var(--impakt-menu-on); --impakt-color-text-heading: var(--impakt-menu-on); --impakt-color-text-muted: var(--impakt-menu-muted); --impakt-color-text-link: var(--impakt-menu-on); --impakt-color-text-link-hover: var(--impakt-menu-on); color: var(--impakt-menu-on); }\n @media (forced-colors: active) { dialog { border: 1px solid CanvasText; } .close { border: 1px solid ButtonText; } }\n `,\n ];\n\n private hasFooter = false;\n\n private get dialog(): HTMLDialogElement | null {\n return this.renderRoot.querySelector('dialog');\n }\n\n updated(changed: Map<string, unknown>): void {\n if (!changed.has('open')) return;\n const dialog = this.dialog;\n if (!dialog) return;\n if (this.open) {\n if (typeof dialog.showModal === 'function') dialog.showModal();\n else dialog.setAttribute('open', '');\n lockScroll(this);\n } else {\n if (typeof dialog.close === 'function' && dialog.open) dialog.close();\n else dialog.removeAttribute('open');\n unlockScroll(this);\n }\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n unlockScroll(this);\n }\n\n private close(): void {\n if (!this.open) return;\n this.open = false;\n this.dispatchEvent(new CustomEvent('impakt-close', { bubbles: true, composed: true }));\n }\n\n private footerChanged(event: Event): void {\n this.hasFooter = (event.target as HTMLSlotElement).assignedNodes().length > 0;\n this.requestUpdate();\n }\n\n render(): TemplateResult {\n return html`<dialog part=\"dialog\" aria-label=${this.label} @cancel=${() => this.close()} @close=${() => this.close()}>\n <div class=\"bar\" part=\"bar\">\n ${\n this.brand\n ? html`<a class=${this.mark ? 'brand marked' : 'brand'} href=${this.home || '/'} part=\"brand\">${this.mark ? html`<span class=\"mark\" part=\"mark\" aria-hidden=\"true\">${this.mark}</span>` : nothing}${this.brand}</a>`\n : html`<span></span>`\n }\n <button class=\"close\" type=\"button\" part=\"close\" @click=${() => this.close()}>\n <span>${this.closeText}</span>\n <svg viewBox=\"0 0 12 12\" width=\"12\" height=\"12\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M1 1l10 10M11 1 1 11\" /></svg>\n </button>\n </div>\n <nav aria-label=${this.label} part=\"nav\">\n <ol role=\"list\">\n ${(this.links ?? []).map((link, index) => {\n const current = !!this.current && link.href === this.current;\n const number = String(index + 1).padStart(2, '0');\n const worded = current && !!this.currentText;\n // Following a link closes the menu, so a link to a place on the same page does not leave it open over that place.\n return html`<li>\n <a href=${link.href} class=${worded ? 'worded' : ''} aria-current=${current ? 'page' : nothing} part=\"link\" @click=${() => this.close()}>\n <span class=\"words\">${link.label}</span><span class=\"number\" aria-hidden=\"true\">${worded ? `${this.currentText} · ${number}` : number}</span>\n </a>\n </li>`;\n })}\n </ol>\n </nav>\n <div class=\"foot\" part=\"footer\" ?hidden=${!this.hasFooter}><slot name=\"footer\" @slotchange=${this.footerChanged}></slot></div>\n </dialog>`;\n }\n}\n\n/**\n * An offer, set out in two halves: what it is, with one action, and a short\n * numbered list of what you get.\n *\n * It draws no background of its own. Put it in `impakt-section` with the\n * `accent` or `ink` tone and it takes that band's colours, so the words on it\n * are always the colour the tokens measured against the band (1.4.3).\n *\n * The points are an ordered list, so a screen reader says how many there are;\n * the numbers drawn beside them are decoration (1.3.1). The halves stack by\n * the block's own width, and on a narrow screen the action comes after the\n * points, so it is the last thing read before the next section (1.4.10).\n *\n * @category content\n * @icon megaphone\n * @slot actions - The action: one button.\n */\nexport class ImpaktOffer extends ImpaktElement {\n static properties = {\n eyebrow: { type: String },\n heading: { type: String },\n lead: { type: String },\n points: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** The small line above the heading, such as \"Free for founders and product owners\". */\n declare eyebrow: string;\n /** What is offered, such as \"Get a 48-hour product teardown.\" */\n declare heading: string;\n /** A sentence or two more. */\n declare lead: string;\n /** What you get, one short line each. */\n declare points: string[];\n declare headingLevel: number;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.eyebrow = '';\n this.heading = '';\n this.lead = '';\n this.points = [];\n this.headingLevel = 2;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host { display: block; container: impakt-offer / inline-size; }\n /* The Offer component (10:619): the copy 520px wide and the points 460px, 100px apart; the label, heading, lead and action 24px apart. */\n .offer { display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 460fr); grid-template-areas: 'copy points' 'actions points'; grid-template-rows: auto 1fr; column-gap: 100px; row-gap: ${space(6)}; align-items: start; }\n .copy { grid-area: copy; }\n .actions { grid-area: actions; }\n ol { grid-area: points; }\n .copy { display: flex; flex-direction: column; align-items: flex-start; gap: ${space(6)}; }\n /* The label in G2 Mono M, 13px at 1.5; the heading Display L, 64px on a 1080px offer and 36px on a phone; the lead G2 Body M, 16px at 1.45, 480px wide. */\n .eyebrow { margin: 0; font-family: ${t.fontEyebrow}; font-size: 0.8125rem; line-height: 1.5; color: var(--impakt-eyebrow, ${t.textMuted}); }\n .heading { max-inline-size: 8.125em; font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 1.411rem + 3.836cqi, 4rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; }\n .lead { margin: 0; max-inline-size: 30rem; font-size: ${fontSize('md')}; line-height: 1.45; color: ${t.text}; }\n ol { list-style: none; margin: 0; padding: 0; }\n /* Each point: a rule, 20px, the number in G2 Mono M and the words in G2 Label L, 20px at 1.2, 20px apart, then 20px. */\n li { display: flex; gap: ${space(5)}; padding-block: ${space(5)}; border-block-start: ${t.borderThin} solid ${t.text}; font-size: 1.25rem; font-weight: ${fontWeight('medium')}; line-height: 1.2; letter-spacing: -0.01em; color: ${t.text}; }\n .number { flex: none; font-family: ${t.fontMono}; font-size: 0.8125rem; font-weight: ${fontWeight('regular')}; line-height: 1.5; letter-spacing: 0; }\n /* On a phone (15:993): everything 20px apart; the points 14px above and below, the words 16px, 14px after the number. */\n @container impakt-offer (max-width: 44rem) {\n .offer { grid-template-columns: 1fr; grid-template-areas: 'copy' 'points' 'actions'; grid-template-rows: auto; row-gap: ${space(5)}; }\n .copy { gap: ${space(5)}; }\n .heading { line-height: 1.03; }\n li { gap: 14px; padding-block: 14px; font-size: 1rem; }\n }\n `,\n ];\n\n render(): TemplateResult {\n const level = Math.min(Math.max(this.headingLevel, 1), 6);\n return html`<div class=\"offer\" part=\"offer\">\n <div class=\"copy\">\n ${this.eyebrow ? html`<p class=\"eyebrow\" part=\"eyebrow\">${this.eyebrow}</p>` : nothing}\n ${this.heading ? html`<div class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>${this.heading}</div>` : nothing}\n ${this.lead ? html`<p class=\"lead\" part=\"lead\">${this.lead}</p>` : nothing}\n </div>\n <div class=\"actions\" part=\"actions\"><slot name=\"actions\"></slot></div>\n ${\n (this.points ?? []).length\n ? html`<ol role=\"list\" part=\"points\">\n ${this.points.map((point, index) => html`<li><span class=\"number\" aria-hidden=\"true\">${String(index + 1).padStart(2, '0')}</span><span>${point}</span></li>`)}\n </ol>`\n : nothing\n }\n </div>`;\n }\n}\n\n/**\n * A card for one article: what it is filed under, its title and a line about\n * it.\n *\n * **The card is one link.** The link sits on the title, which is a heading,\n * and is stretched over the card, so the whole card can be pressed while a\n * screen reader meets one link named by the title, not a \"Read more\" that says\n * nothing out of context (2.4.4). `link-text` adds a visible line such as\n * \"Read\"; it is decoration and is hidden from a screen reader, which already\n * has the title.\n *\n * @category content\n * @icon card\n */\nexport class ImpaktPostCard extends ImpaktElement {\n static properties = {\n heading: { type: String },\n text: { type: String },\n meta: { type: String },\n href: { type: String },\n linkText: { type: String, attribute: 'link-text' },\n headingLevel: { type: Number, attribute: 'heading-level' },\n };\n /** The article's title. */\n declare heading: string;\n /** A line about it. */\n declare text: string;\n /** What it is filed under and how long it is, such as \"Pricing · 7 min read\". */\n declare meta: string;\n /** Where the card goes. */\n declare href: string;\n /** A visible line at the foot of the card, such as \"Read\". Leave empty for none. */\n declare linkText: string;\n declare headingLevel: number;\n\n constructor() {\n super();\n this.heading = '';\n this.text = '';\n this.meta = '';\n this.href = '';\n this.linkText = '';\n this.headingLevel = 3;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n :host { display: block; block-size: 100%; }\n /* The Article component (10:648): 24px inside, the meta, title, line and link 14px apart. */\n article { position: relative; box-sizing: border-box; block-size: 100%; display: flex; flex-direction: column; gap: 14px; padding: ${space(6)}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; transition: background-color 140ms ease-out; }\n /* The meta and the link in G2 Mono S: 11px medium capitals at 0.06em. */\n .meta { margin: 0; font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.textMuted}; }\n .heading { font-family: ${t.fontHeading}; font-size: 1.5rem; font-weight: ${fontWeight('semibold')}; line-height: 1.15; letter-spacing: -0.025em; color: ${t.text}; }\n .heading a { color: inherit; text-decoration: none; }\n .heading a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }\n .heading a:focus-visible { outline: none; }\n .heading a:focus-visible::after { box-shadow: ${t.focusShadow}; }\n article:has(a):hover .heading { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }\n .text { margin: 0; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }\n .more { font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.text}; }\n /* 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. `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 };\n /** A small tag under the words, such as \"Design · H1 / 120\". It is decoration and is not read. */\n declare label: string;\n /**\n * Draw a pointer at the bottom-right handle. Its value is a name tag beside\n * the pointer, such as \"Maria\"; an empty value draws the pointer alone. Leave\n * the attribute off for no pointer. Decoration, not read.\n */\n declare cursor: string | null;\n /** Leave the label out on a phone (`phone`). */\n declare hideLabelOn: '' | 'phone';\n\n constructor() {\n super();\n this.label = '';\n this.cursor = null;\n this.hideLabelOn = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n /*\n * The Selection (9:306): the accent behind the words with a 1.5px ink line, drawn 0.1em outside them at the sides\n * (12px at 120px) and from 2px under the top of the line to 4px over its foot, so the words keep their place in the\n * heading. Its four 8px handles sit on its corners with the same line.\n */\n :host { --x: 0.1em; --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 @media (max-width: 40rem) { :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\n ? html`<span class=\"label-at\" aria-hidden=\"true\"><span class=\"label\" part=\"label\" aria-hidden=\"true\" data-ik-count=\"text\">${this.label}</span></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-site-menu', ImpaktSiteMenu);\ncustomElements.define('impakt-offer', ImpaktOffer);\ncustomElements.define('impakt-post-card', ImpaktPostCard);\ncustomElements.define('impakt-highlight', ImpaktHighlight);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-work-list': ImpaktWorkList;\n 'impakt-stat-row': ImpaktStatRow;\n 'impakt-faq': ImpaktFaq;\n 'impakt-site-menu': ImpaktSiteMenu;\n 'impakt-offer': ImpaktOffer;\n 'impakt-post-card': ImpaktPostCard;\n 'impakt-highlight': ImpaktHighlight;\n }\n}\n"],"mappings":";AAIA,SAAS,KAAK,MAAM,eAAoC;AACxD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AA0BP,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;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;AACtD,eAAe,OAAO,cAAc,SAAS;AAC7C,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,gBAAgB,WAAW;AACjD,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,oBAAoB,eAAe;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/blocks/src/components/journey.ts
|
|
2
2
|
import { css, html, nothing, unsafeCSS } from "lit";
|
|
3
|
-
import { ImpaktElement, focusRing, fontWeight, say, space, t, token } from "@atomic-ui/ui";
|
|
3
|
+
import { ImpaktElement, R, focusRing, fontWeight, say, space, t, token } from "@atomic-ui/ui";
|
|
4
4
|
var JOURNEY_STAGES = ["note", "wireframe", "component", "code", "live"];
|
|
5
5
|
var isStage = (value) => JOURNEY_STAGES.includes(value);
|
|
6
6
|
var indexOf = (stage) => JOURNEY_STAGES.indexOf(stage);
|
|
@@ -83,6 +83,7 @@ var ImpaktJourneyButton = class extends ImpaktElement {
|
|
|
83
83
|
this.annotations = false;
|
|
84
84
|
this.captions = [];
|
|
85
85
|
this.marginNote = "";
|
|
86
|
+
this.marginNoteShown = "";
|
|
86
87
|
this.specs = [];
|
|
87
88
|
this.markWidth = "320";
|
|
88
89
|
this.markHeight = "72";
|
|
@@ -99,6 +100,7 @@ var ImpaktJourneyButton = class extends ImpaktElement {
|
|
|
99
100
|
annotations: { type: Boolean, reflect: true },
|
|
100
101
|
captions: { type: Array },
|
|
101
102
|
marginNote: { type: String, attribute: "margin-note" },
|
|
103
|
+
marginNoteShown: { type: String, reflect: true, attribute: "margin-note-shown" },
|
|
102
104
|
specs: { type: Array },
|
|
103
105
|
markWidth: { type: String, attribute: "mark-width" },
|
|
104
106
|
markHeight: { type: String, attribute: "mark-height" },
|
|
@@ -143,11 +145,17 @@ var ImpaktJourneyButton = class extends ImpaktElement {
|
|
|
143
145
|
.shadow { box-shadow: 0 0.9rem 1.75rem rgb(0 0 0 / 0.22); }
|
|
144
146
|
/* The code window is the raised ink and its muted words, a pair the theme measures, so it stays a dark window on paper and on an ink band alike. */
|
|
145
147
|
/* The code window: 520 by 300 at 20, 40, with 6px corners (8:431). */
|
|
146
|
-
|
|
148
|
+
/*
|
|
149
|
+
* The code of 8:435: IBM Plex Mono 13px on 1.5, 44px from the window's top and 28px in, with the words on the sixth
|
|
150
|
+
* line, in the code, indented six places and followed by their arrow. Five lines go before them and the rest after;
|
|
151
|
+
* a shorter run sits up against the words, a longer one loses the lines furthest from them.
|
|
152
|
+
*/
|
|
153
|
+
.window { inset-inline: 3.57cqi; inset-block: 7.14cqi 3.57cqi; padding: 7.86cqi 5cqi 0; background: var(--impakt-color-surface-ink-raised, ${t.text}); border: ${t.borderThin} solid var(--impakt-color-line-inverse, transparent); border-radius: 6px; font-family: ${t.fontMono}; font-size: clamp(0.5rem, 2.32cqi, 0.8125rem); line-height: 1.5; color: var(--impakt-color-text-inverse-muted, color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text})); white-space: pre; overflow: hidden; display: grid; grid-template-rows: 7.5em 1.5em minmax(0, 1fr); }
|
|
147
154
|
/* On a small button the lines furthest from the words are cut off, so a line never runs under the words. */
|
|
148
155
|
.window .before { align-self: end; display: flex; flex-direction: column; justify-content: flex-end; max-block-size: 100%; overflow: hidden; }
|
|
149
156
|
.window .after { align-self: start; display: flex; flex-direction: column; max-block-size: 100%; overflow: hidden; }
|
|
150
|
-
|
|
157
|
+
/* As in 8:435 the code is in the window's bright words and a comment stays in its muted ones, a pair the theme measures at 4.5:1. */
|
|
158
|
+
.window :is(.before, .after) > span:not(.comment, .rule) { color: var(--ik-ink-inverse, ${t.surfaceCard}); }
|
|
151
159
|
.window .rule { display: block; block-size: 0.5em; margin-block: 0.55em; background: currentColor; opacity: 0.35; }
|
|
152
160
|
|
|
153
161
|
/*
|
|
@@ -171,8 +179,9 @@ var ImpaktJourneyButton = class extends ImpaktElement {
|
|
|
171
179
|
.note .said .text::after { content: ''; display: block; block-size: 0.28em; margin-block-start: 0.12em; inline-size: 92%; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6c30-4 60-5 98-3s66 3 98-1' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6c30-4 60-5 98-3s66 3 98-1' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
|
|
172
180
|
.note .said .arrow { align-self: flex-end; }
|
|
173
181
|
.wire .said { justify-content: center; font-family: ${t.fontMono}; font-size: clamp(0.5rem, 2.32cqi, 0.8125rem); font-weight: ${fontWeight("regular")}; color: ${t.textMuted}; }
|
|
174
|
-
.window .said { position: static; padding-inline:
|
|
182
|
+
.window .said { position: static; gap: 0; padding-inline: 6ch 0; justify-content: flex-start; font-family: ${t.fontMono}; font-size: inherit; font-weight: ${fontWeight("regular")}; line-height: inherit; color: var(--impakt-journey-code-words, var(--ik-ink-inverse, ${t.surfaceCard})); }
|
|
175
183
|
.window .said .arrow { display: none; }
|
|
184
|
+
.window .said::after { content: ' →'; white-space: pre; }
|
|
176
185
|
|
|
177
186
|
/*
|
|
178
187
|
* The link. One element at every stage, sized to the shape the stage draws, so the keyboard, a pointer and a
|
|
@@ -182,11 +191,14 @@ var ImpaktJourneyButton = class extends ImpaktElement {
|
|
|
182
191
|
.words { position: absolute; inset-inline-start: 21.43cqi; inline-size: 57.14cqi; inset-block-start: calc(25.71cqi + 6.43cqi - max(22px, 6.43cqi)); box-sizing: border-box; min-block-size: max(44px, 12.86cqi); display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding-inline: 5cqi; font-family: ${t.fontBody}; font-size: clamp(0.75rem, 3.04cqi, 1.0625rem); font-weight: ${fontWeight("medium")}; line-height: 1.2; color: transparent; text-decoration: none; }
|
|
183
192
|
:host([stage='note']) .words { inset-inline-start: 20.98cqi; inset-block-start: 7.11cqi; inline-size: 51.79cqi; min-block-size: 51.79cqi; align-items: flex-start; padding: 7.7cqi; font-family: var(--hand); font-size: clamp(1.125rem, 6.07cqi, 2.125rem); font-weight: ${fontWeight("bold")}; line-height: 1.1; transform: rotate(4deg); }
|
|
184
193
|
:host([stage='wireframe']) .words { justify-content: center; font-family: ${t.fontMono}; font-size: clamp(0.5rem, 2.32cqi, 0.8125rem); font-weight: ${fontWeight("regular")}; }
|
|
185
|
-
:host([stage='code']) .words { min-block-size: 44px; inset-block-start: calc(
|
|
194
|
+
:host([stage='code']) .words { min-block-size: 44px; inset-inline-start: 3.57cqi; inline-size: 92.86cqi; inset-block-start: calc(34.15cqi - 22px); justify-content: flex-start; padding-inline: calc(5cqi + 6ch) 5cqi; font-family: ${t.fontMono}; font-size: clamp(0.5rem, 2.32cqi, 0.8125rem); font-weight: ${fontWeight("regular")}; }
|
|
186
195
|
a.words:focus-visible { outline: none; box-shadow: ${t.focusShadow}; }
|
|
187
196
|
|
|
188
197
|
/* Live, it answers a pointer: the button lifts when pointed at and sits when pressed, and its fill deepens a little. */
|
|
189
|
-
|
|
198
|
+
/* The arrow leads (impkt-web#51): pointed at or focused, the live button's arrow slides 4px on first and the lift follows one stagger behind it, for a brand with the reveal set on. */
|
|
199
|
+
.solid { transition: background-color 180ms, translate var(--impakt-motion-journey-lift-duration, 180ms) var(--impakt-motion-journey-lift-easing, cubic-bezier(0.2, 0, 0, 1)) ${R.lead}; }
|
|
200
|
+
.solid .arrow { transition: translate ${R.arrowDuration} ${R.arrowEasing}; }
|
|
201
|
+
:host([stage='live']) .frame:has(a.words:is(:hover, :focus-visible)) .solid .arrow { translate: ${R.arrowDistance} 0; }
|
|
190
202
|
:host([stage='live']) .frame:has(a.words:hover) .solid { background: color-mix(in srgb, var(--impakt-journey-accent) 90%, ${t.text}); translate: 0 -2px; }
|
|
191
203
|
:host([stage='live']) .frame:has(a.words:active) .solid { translate: 0 1px; transition: background-color 140ms, translate var(--impakt-motion-journey-press-duration, 140ms) var(--impakt-motion-journey-press-easing, cubic-bezier(0.4, 0, 0.2, 1)); }
|
|
192
204
|
|
|
@@ -195,6 +207,10 @@ var ImpaktJourneyButton = class extends ImpaktElement {
|
|
|
195
207
|
.caption { inset-block-start: 0; inset-inline-start: 0; font-family: ${t.fontMono}; font-size: clamp(0.5rem, 1.96cqi, 0.6875rem); letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; white-space: nowrap; }
|
|
196
208
|
.caption span { position: absolute; inset-block-start: 0; inset-inline-start: 0; }
|
|
197
209
|
${unsafeCSS(JOURNEY_STAGES.map((_, k) => `.caption span:nth-child(${k + 1}) { opacity: ${w(k)}; }`).join("\n "))}
|
|
210
|
+
/* The handwritten margin note, which a brand may leave out: Impakt's design has dropped it (impkt-design-system#83). */
|
|
211
|
+
.margin { display: ${token("journey.margin-note", "block")}; }
|
|
212
|
+
:host([margin-note-shown='yes']) .margin { display: block; }
|
|
213
|
+
:host([margin-note-shown='no']) .margin { display: none; }
|
|
198
214
|
.margin { inset-inline-start: 76.96cqi; inset-block-start: 7.14cqi; inline-size: 21.43cqi; font-family: var(--hand); font-size: clamp(0.625rem, 3.57cqi, 1.25rem); line-height: 1.2; transform: rotate(4deg); opacity: ${unsafeCSS(w(0))}; }
|
|
199
215
|
/* The measures, as the redlines (8:401) draw them: the width 26px over the shell, the height 10px beside it. */
|
|
200
216
|
.width { inset-inline-start: 21.43cqi; inline-size: 57.14cqi; inset-block-start: 21.07cqi; block-size: 2.14cqi; border-inline: 1px solid currentColor; }
|
|
@@ -219,6 +235,7 @@ var ImpaktJourneyButton = class extends ImpaktElement {
|
|
|
219
235
|
@media (prefers-reduced-motion: reduce) {
|
|
220
236
|
:host { transition: none; }
|
|
221
237
|
.solid { transition: background-color 180ms; }
|
|
238
|
+
.solid .arrow { transition: none; }
|
|
222
239
|
:host([stage='live']) .frame:has(a.words:is(:hover, :active)) .solid { translate: none; }
|
|
223
240
|
}
|
|
224
241
|
@media (forced-colors: active) {
|
|
@@ -474,4 +491,4 @@ export {
|
|
|
474
491
|
cubicBezier,
|
|
475
492
|
ImpaktJourneyButton
|
|
476
493
|
};
|
|
477
|
-
//# sourceMappingURL=chunk-
|
|
494
|
+
//# sourceMappingURL=chunk-GDATDR2Q.js.map
|