@atomic-ui/blocks 0.12.0 → 0.12.1

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.
@@ -42,7 +42,8 @@ var ImpaktProcessLine = class extends ImpaktElement {
42
42
  .visual path { fill: none; stroke: ${bandOn}; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
43
43
  .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%); }
44
44
  .ring.current { inline-size: 12px; block-size: 12px; background: ${accent}; }
45
- .vlabel { position: absolute; transform: translateX(-50%); ${monoLabel}; color: ${bandMuted}; white-space: nowrap; }
45
+ /* Each label keeps to the space between its point and the next, wrapping rather than running into its neighbour. */
46
+ .vlabel { position: absolute; transform: translateX(-50%); ${monoLabel}; color: ${bandMuted}; inline-size: max-content; max-inline-size: var(--slot); text-align: center; text-wrap: balance; }
46
47
  .lineLabel { position: absolute; inset-inline-start: 0; ${monoLabel}; color: ${bandMuted}; }
47
48
  .flag { display: inline-block; padding: 4px 8px; ${monoLabel}; font-weight: ${fontWeight("medium")}; background: ${accent}; color: ${accentOn}; white-space: nowrap; }
48
49
  .visual .flag { position: absolute; transform: translate(-50%, -100%); }
@@ -89,13 +90,13 @@ var ImpaktProcessLine = class extends ImpaktElement {
89
90
  }
90
91
  d += ` L1000 ${pts[n - 1].y}`;
91
92
  const pct = (i) => `${(i + 0.5) / n * 100}%`;
92
- return html`<div class="visual" part="drawing" aria-hidden="true" style="block-size:${height}px">
93
+ return html`<div class="visual" part="drawing" aria-hidden="true" style="block-size:${height}px;--slot:calc(${100 / n}% - 0.5rem)">
93
94
  <svg viewBox="0 0 1000 ${height}" preserveAspectRatio="none" focusable="false">${svg`<path d=${d} />`}</svg>
94
95
  ${this.lineLabel ? html`<span class="lineLabel" style="inset-block-start:${TOP - 64}px">${this.lineLabel}</span>` : nothing}
95
96
  ${nodes.map((node, i) => {
96
97
  const y = pts[i].y;
97
98
  const onMain = depthOf(node) === 0;
98
- const label = onMain ? node.flag ? nothing : html`<span class="vlabel" style="inset-inline-start:${pct(i)};inset-block-start:${y - 30}px">${node.label}</span>` : html`<span class="vlabel" style="inset-inline-start:${pct(i)};inset-block-start:${y + 14}px">${node.label}</span>`;
99
+ const label = onMain ? node.flag ? nothing : html`<span class="vlabel" style="inset-inline-start:${pct(i)};inset-block-end:${height - y + 12}px">${node.label}</span>` : html`<span class="vlabel" style="inset-inline-start:${pct(i)};inset-block-start:${y + 14}px">${node.label}</span>`;
99
100
  return html`<span class="ring ${node.current ? "current" : ""}" style="inset-inline-start:${pct(i)};inset-block-start:${y}px"></span>
100
101
  ${label}
101
102
  ${node.flag ? html`<span class="flag" style="inset-inline-start:${pct(i)};inset-block-start:${y - 12}px">${node.flag}</span>` : nothing}`;
@@ -293,4 +294,4 @@ export {
293
294
  ImpaktHypothesisCard,
294
295
  ImpaktBrowserFrame
295
296
  };
296
- //# sourceMappingURL=chunk-2URXTXNQ.js.map
297
+ //# sourceMappingURL=chunk-I2DL3DRU.js.map
@@ -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, fontWeight, say, space, t, visuallyHidden } from '@atomic-ui/ui';\nimport { accent, accentOn, 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 /** What happens here, such as \"Discovery\". */\n label: string;\n /** How far the line dips here: 0 on the main line, 1 a step below, 2 two steps. */\n depth?: number;\n /** The point the project is at now, filled in the accent. */\n current?: boolean;\n /** A flag above the point, such as \"Build merged\" or \"v1.0 launch\". */\n flag?: string;\n}\n\nconst STEP = 40;\nconst TOP = 72;\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 filled in the accent, 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.\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; outside one it\n * draws its own ink panel. 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 * @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 :host { display: block; container-type: inline-size; background: ${band}; color: ${bandOn}; }\n .visual { display: none; position: relative; }\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 .ring.current { inline-size: 12px; block-size: 12px; background: ${accent}; }\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, li[aria-current]::before { background: Highlight; }\n li::after { background: CanvasText; }\n .flag { border: 1px solid CanvasText; }\n }\n `,\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 const height = TOP + maxDepth * STEP + 44;\n const pts = nodes.map((node, i) => ({ x: ((i + 0.5) / n) * 1000, y: TOP + depthOf(node) * STEP }));\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 if (a.y === b.y) d += ` L${b.x} ${b.y}`;\n else {\n const mid = (a.x + b.x) / 2;\n d += ` C${mid} ${a.y} ${mid} ${b.y} ${b.x} ${b.y}`;\n }\n }\n d += ` L1000 ${pts[n - 1]!.y}`;\n const pct = (i: number) => `${((i + 0.5) / n) * 100}%`;\n return html`<div class=\"visual\" part=\"drawing\" aria-hidden=\"true\" style=\"block-size:${height}px;--slot:calc(${100 / n}% - 0.5rem)\">\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 - 64}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 label = onMain\n ? node.flag\n ? nothing\n : html`<span class=\"vlabel\" style=\"inset-inline-start:${pct(i)};inset-block-end:${height - y + 12}px\">${node.label}</span>`\n : html`<span class=\"vlabel\" style=\"inset-inline-start:${pct(i)};inset-block-start:${y + 14}px\">${node.label}</span>`;\n return html`<span class=\"ring ${node.current ? 'current' : ''}\" style=\"inset-inline-start:${pct(i)};inset-block-start:${y}px\"></span>\n ${label}\n ${node.flag ? html`<span class=\"flag\" style=\"inset-inline-start:${pct(i)};inset-block-start:${y - 12}px\">${node.flag}</span>` : nothing}`;\n })}\n </div>\n <ol part=\"list\" role=\"list\" aria-label=${this.label || nothing}>\n ${nodes.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 .panel { padding: ${space(8)} ${space(8)} ${space(10)}; background: ${ink}; color: ${paper}; border: 1px solid ${ink}; }\n .label { margin: 0 0 ${space(4)}; ${monoLabel}; font-weight: ${fontWeight('medium')}; color: ${accent}; }\n .text { margin: 0; max-inline-size: 26em; font-family: ${t.fontHeading}; font-size: clamp(1.5rem, 1rem + 2vw, 2rem); font-weight: ${fontWeight('semibold')}; line-height: 1.2; letter-spacing: -0.02em; }\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 article { box-sizing: border-box; block-size: 100%; display: grid; align-content: start; gap: ${space(4)}; 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.35; 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,YAAY,KAAK,OAAO,GAAG,sBAAsB;AAezE,IAAM,OAAO;AACb,IAAM,MAAM;AAuBL,IAAM,oBAAN,cAAgC,cAAc;AAAA,EACnD;AAAA,SAAO,aAAa;AAAA,MAClB,OAAO,EAAE,MAAM,MAAM;AAAA,MACrB,WAAW,EAAE,MAAM,QAAQ,WAAW,aAAa;AAAA,MACnD,OAAO,EAAE,MAAM,OAAO;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A,MACtB,QAAQ,EAAE,OAAO,KAAK;AAAA,IACxB;AAAA;AAAA,EAOA,cAAc;AACZ,UAAM;AACN,SAAK,UAAU;AACf,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":[]}
@@ -277,7 +277,9 @@ var ImpaktBranchList = class extends ImpaktElement {
277
277
  :host([look='mono']) .end { font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; }
278
278
  /* The trunk runs on into its end dot, which sits on the trunk; the words line up with the rows' words. */
279
279
  :host([look='mono']) .end::before { flex: none; inline-size: 8px; block-size: 8px; margin-inline: 7.5px calc(96px - 15.5px - ${space(3)}); }
280
- :host([look='mono']) .end::after { content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 11px; inline-size: 1px; block-size: calc(${space(4)} + (100% - ${space(4)}) / 2); background: var(--trunk); }
280
+ :host([look='mono']) .end::after { content: ''; position: absolute; inset-block-start: -${space(10)}; inset-inline-start: 11px; inline-size: 1px; block-size: calc(${space(14)} + (100% - ${space(4)}) / 2); background: var(--trunk); }
281
+ /* The last branch rejoins the trunk at the foot of the list, not past it, so nothing runs beyond the end dot. */
282
+ :host([look='mono']) li:last-child .graph svg { block-size: calc(100% + ${space(6)}); }
281
283
  @container (max-width: 44rem) {
282
284
  /* Set on the list, since a container query cannot restyle the container itself. */
283
285
  :host([look='mono']) ul { --gx: 35px; }
@@ -545,4 +547,4 @@ export {
545
547
  ImpaktCheckList,
546
548
  ImpaktBranchTimeline
547
549
  };
548
- //# sourceMappingURL=chunk-PIUPEB4I.js.map
550
+ //# sourceMappingURL=chunk-VXQS5TAN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/changelog.ts"],"sourcesContent":["/**\n * Blocks that tell how software was made, in the language software is made\n * in: a release with what it added and removed, services as branches that\n * merge into one product, checks that passed, and a project drawn as a commit\n * graph. They came from building the Impakt site's Commit design in Strata, and\n * they are written for any studio, agency or product team that wants to show\n * its work this way.\n *\n * Every colour is a brand token. A lane's colour is a tone (brand, accent or\n * a status colour), never a hex value, so a partner's brand restyles them.\n */\nimport { css, html, nothing, svg, type TemplateResult } from 'lit';\nimport {\n say,\n ImpaktElement,\n focusRing,\n visuallyHidden,\n fontSize,\n fontWeight,\n space,\n spaceAround,\n t,\n token,\n type,\n iconSvg,\n toneOf,\n TONE,\n type Tone,\n} from '@atomic-ui/ui';\nimport './property';\n\n// The tones (`Tone`, `TONE`, `toneOf`) are shared with `impakt-chip`, so they live in @atomic-ui/ui.\n\n/**\n * Marks an element `shown` once a quarter of it is on screen, so it can draw\n * itself in (the Commit motion spec's branch draw, graph draw and checks run).\n * Where nothing can watch, it is shown at once; what draws in is decided by\n * CSS under `prefers-reduced-motion: no-preference`, so reduced motion never waits.\n */\nfunction revealOnView(el: HTMLElement, onShow?: () => void): () => void {\n const show = () => {\n el.setAttribute('shown', '');\n onShow?.();\n };\n if (typeof IntersectionObserver !== 'function') {\n show();\n return () => undefined;\n }\n const io = new IntersectionObserver(\n (entries) => {\n if (entries.some((e) => e.isIntersecting)) {\n show();\n io.disconnect();\n }\n },\n { threshold: 0.25 },\n );\n io.observe(el);\n return () => io.disconnect();\n}\nconst reduced = () => typeof matchMedia === 'function' && matchMedia('(prefers-reduced-motion: reduce)').matches;\n\n/** Code-like labels: a branch name, a version, a hash. The brand has no code face, so the system's is used. */\nconst mono = css`.mono { font-family: ${t.fontMono}; font-size: ${fontSize('xs')}; letter-spacing: 0.04em; }`;\n\nconst heading = (level: number, text: string | TemplateResult, cls: string): TemplateResult => {\n const l = Math.min(Math.max(level || 3, 2), 6);\n switch (l) {\n case 2:\n return html`<h2 class=${cls}>${text}</h2>`;\n case 4:\n return html`<h4 class=${cls}>${text}</h4>`;\n case 5:\n return html`<h5 class=${cls}>${text}</h5>`;\n case 6:\n return html`<h6 class=${cls}>${text}</h6>`;\n default:\n return html`<h3 class=${cls}>${text}</h3>`;\n }\n};\n\nconst words = css`\n .h { margin: 0; color: var(--impakt-heading, ${t.textHeading}); font-family: ${t.fontHeading}; font-weight: ${fontWeight('bold')}; letter-spacing: ${t.trackingTight}; text-wrap: balance; }\n .body { margin: 0; color: inherit; opacity: 0.8; text-wrap: pretty; }\n .meta { margin: 0; color: inherit; opacity: 0.72; text-transform: uppercase; }\n .sr-only { ${visuallyHidden} }\n`;\n\n// ── Release card ─────────────────────────────────────────────────────────\n\n/** One line of what a release changed. */\nexport interface DiffLine {\n id?: string;\n /** Added, taken away, or kept as it was. */\n change: 'added' | 'removed' | 'same';\n text: string;\n}\n\n/**\n * A piece of work told as a release: what it looked like when it started and\n * what shipped, a version line, and a short diff of what it added and took\n * away.\n *\n * With both pictures it is a before-and-after comparison a visitor drags; with\n * one it is a picture. The diff is a list, each line saying \"Added\" or\n * \"Removed\" for a screen reader, since the + and − are only drawn.\n *\n * @category content\n * @icon git-commit\n */\nexport class ImpaktReleaseCard extends ImpaktElement {\n static properties = {\n label: { type: String },\n heading: { type: String },\n text: { type: String },\n beforeSrc: { type: String, attribute: 'before-src' },\n beforeAlt: { type: String, attribute: 'before-alt' },\n afterSrc: { type: String, attribute: 'after-src' },\n afterAlt: { type: String, attribute: 'after-alt' },\n items: { type: Array },\n href: { type: String },\n headingLevel: { type: Number, attribute: 'heading-level' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n /** A line above the heading, such as \"v1.0 · Legal tech · Property\". */\n declare label: string;\n declare heading: string;\n declare text: string;\n /** What it started as: a sketch or a wireframe. */\n declare beforeSrc: string;\n declare beforeAlt: string;\n /** What shipped. */\n declare afterSrc: string;\n declare afterAlt: string;\n /** What the release added, took away or kept. */\n declare items: DiffLine[];\n /** Where the heading links to, such as the case study. */\n declare href: string;\n declare headingLevel: 2 | 3 | 4;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.label = '';\n this.heading = '';\n this.text = '';\n this.beforeSrc = '';\n this.beforeAlt = '';\n this.afterSrc = '';\n this.afterAlt = '';\n this.items = [];\n this.href = '';\n this.headingLevel = 3;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n mono,\n words,\n css`\n :host { display: block; }\n article { display: flex; flex-direction: column; gap: ${space(3)}; }\n .media { border-radius: ${t.radiusXl}; overflow: clip; background: ${t.surfaceInset}; }\n .media img { display: block; inline-size: 100%; aspect-ratio: 5 / 3; object-fit: cover; }\n impakt-before-after { display: block; }\n .h { font-size: ${fontSize('3xl')}; }\n .h a { color: inherit; text-decoration: none; }\n .h a:hover { text-decoration: underline; text-underline-offset: 0.15em; }\n .h a:focus-visible { outline: none; box-shadow: ${t.focusShadow}; border-radius: ${t.radiusSm}; }\n ul { list-style: none; margin: ${space(1)} 0 0; padding: 0; display: grid; gap: ${space(1)}; }\n li { display: grid; grid-template-columns: 1.25em minmax(0, 1fr); gap: ${space(2)}; padding: ${space(1)} ${space(3)}; border-radius: ${t.radius}; }\n li[data-change='added'] { background: ${t.successSubtle}; color: ${t.successText}; }\n li[data-change='removed'] { background: ${t.dangerSubtle}; color: ${t.dangerText}; }\n li[data-change='same'] { color: ${t.textMuted}; }\n .sign { font-weight: ${fontWeight('bold')}; }\n `,\n ];\n\n private raf = 0;\n\n /** Sweep the seam, as Commit's release wipe does: off the screenshot on hover, back on leaving. */\n private wipe(to: number): void {\n const ba = this.renderRoot.querySelector('impakt-before-after') as (HTMLElement & { position: number }) | null;\n if (!ba) return;\n cancelAnimationFrame(this.raf);\n if (reduced()) {\n ba.position = to;\n return;\n }\n const from = ba.position ?? SEAM;\n const start = performance.now();\n // cubic-bezier(.65, 0, .35, 1), near enough: an ease-in-out.\n const ease = (k: number) => (k < 0.5 ? 4 * k * k * k : 1 - Math.pow(-2 * k + 2, 3) / 2);\n const step = (now: number) => {\n const k = Math.min(1, (now - start) / 450);\n ba.position = from + (to - from) * ease(k);\n if (k < 1) this.raf = requestAnimationFrame(step);\n };\n this.raf = requestAnimationFrame(step);\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n cancelAnimationFrame(this.raf);\n }\n\n render(): TemplateResult {\n const both = this.beforeSrc && this.afterSrc;\n const title = this.href ? html`<a href=${this.href}>${this.heading}</a>` : this.heading;\n const SIGN = { added: '+', removed: '−', same: ' ' } as const;\n const SAID = { added: say('Added'), removed: say('Removed'), same: say('Kept') } as const;\n return html`<article part=\"card\">\n ${\n both\n ? html`<div class=\"media\" @pointerenter=${(e: PointerEvent) => e.pointerType === 'mouse' && this.wipe(0)} @pointerleave=${(e: PointerEvent) => e.pointerType === 'mouse' && this.wipe(SEAM)}><impakt-before-after .position=${SEAM} .beforeSrc=${this.beforeSrc} .beforeAlt=${this.beforeAlt} .afterSrc=${this.afterSrc} .afterAlt=${this.afterAlt} .beforeLabel=${say('Before')} .afterLabel=${say('Shipped')} .label=${say('Compare {name} before and after', { name: this.heading })}></impakt-before-after></div>`\n : this.afterSrc || this.beforeSrc\n ? html`<div class=\"media\"><img src=${this.afterSrc || this.beforeSrc} alt=${this.afterSrc ? this.afterAlt : this.beforeAlt} loading=\"lazy\" /></div>`\n : nothing\n }\n ${this.label ? html`<p class=\"meta mono\">${this.label}</p>` : nothing}\n ${this.heading ? headingWith(this.headingLevel, title) : nothing}\n ${this.text ? html`<p class=\"body\">${this.text}</p>` : nothing}\n ${(this.items ?? []).length ? html`<ul class=\"mono\" part=\"diff\">${this.items.map((line) => html`<li data-change=${line.change}><span class=\"sign\" aria-hidden=\"true\">${SIGN[line.change] ?? ' '}</span><span><span class=\"sr-only\">${SAID[line.change] ?? ''}: </span>${line.text}</span></li>`)}</ul>` : nothing}\n </article>`;\n }\n}\n\n// ── Release list ─────────────────────────────────────────────────────────\n\n/**\n * One release in a list: a release card's props. `title` is read when there is\n * no `heading`, because that is what a collection's entry carries (ADR 0028).\n */\nexport interface ReleaseItem {\n label?: string;\n heading?: string;\n title?: string;\n text?: string;\n beforeSrc?: string;\n beforeAlt?: string;\n afterSrc?: string;\n afterAlt?: string;\n items?: DiffLine[];\n href?: string;\n}\n\n/**\n * Releases side by side, two to a row: a changelog of case studies.\n *\n * Bind `items` to a collection's entries and the list follows them: a new case\n * study appears here when it is published. The release for the page being\n * read is left out, so a case study's \"more work\" does not offer itself.\n *\n * @category content\n * @icon git-commit\n */\nexport class ImpaktReleaseList extends ImpaktElement {\n static properties = {\n items: { type: Array },\n columns: { type: String, reflect: true },\n headingLevel: { type: Number, attribute: 'heading-level' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n declare items: ReleaseItem[];\n /** Releases in a row on a wide screen. One on a phone. */\n declare columns: 'one' | 'two' | 'three';\n declare headingLevel: 2 | 3 | 4;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.items = [];\n this.columns = 'two';\n this.headingLevel = 3;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host { display: block; container-type: inline-size; }\n ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${space(12)} ${space(10)}; }\n :host([columns='one']) ul { grid-template-columns: minmax(0, 1fr); }\n :host([columns='three']) ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n @container (max-width: 44rem) { ul, :host([columns='three']) ul { grid-template-columns: minmax(0, 1fr); } }\n `,\n ];\n\n render(): TemplateResult {\n const here = typeof location === 'undefined' ? '' : location.pathname.replace(/\\/$/, '');\n const shown = (this.items ?? []).filter((item) => !item.href || item.href.replace(/\\/$/, '') !== here);\n return html`<ul part=\"list\">${shown.map((item) => {\n const heading = item.heading ?? item.title ?? '';\n return html`<li><impakt-release-card\n .label=${item.label ?? ''} .heading=${heading} .text=${item.text ?? ''} .href=${item.href ?? ''}\n .beforeSrc=${item.beforeSrc ?? ''} .beforeAlt=${item.beforeAlt || say('{name} as a wireframe', { name: heading })}\n .afterSrc=${item.afterSrc ?? ''} .afterAlt=${item.afterAlt || say('{name} as it shipped', { name: heading })}\n .items=${item.items ?? []} .headingLevel=${this.headingLevel}></impakt-release-card></li>`;\n })}</ul>`;\n }\n}\n\n/** Where the seam rests: the wireframe covers the left of the screenshot until it is pointed at. */\nconst SEAM = 42;\n\n/** A heading holding a template, such as a link. */\nfunction headingWith(level: number, content: TemplateResult | string): TemplateResult {\n const l = Math.min(Math.max(level || 3, 2), 6);\n if (l === 2) return html`<h2 class=\"h\">${content}</h2>`;\n if (l === 4) return html`<h4 class=\"h\">${content}</h4>`;\n if (l === 5) return html`<h5 class=\"h\">${content}</h5>`;\n if (l === 6) return html`<h6 class=\"h\">${content}</h6>`;\n return html`<h3 class=\"h\">${content}</h3>`;\n}\n\n// ── Branch list ──────────────────────────────────────────────────────────\n\n/** One branch: a service, a team, a line of work. */\nexport interface Branch {\n id?: string;\n /** A short code-like name, such as \"feature/mobile-apps\". */\n path?: string;\n heading: string;\n text?: string;\n /** A few words below the text, such as the tools it uses. */\n tags?: string[];\n tone?: Tone;\n /** Where the heading links to, such as the service's own page. */\n href?: string;\n}\n\n/**\n * Several lines of work that come together into one: each item branches off a\n * main line on the left and merges back into it, and the line ends in what\n * they make together.\n *\n * The lines are drawn; the items are a list with headings, so a screen reader\n * reads the work, not the drawing.\n *\n * `look=\"mono\"` draws it in thin ink lines with no chart colours: hollow\n * rings for the branches, one filled with the accent for the `current` item,\n * a hairline under each row, the paths in monospace capitals, and the main\n * line ending in a small ink dot beside the `trunk` words. The tags are left\n * out on a phone in that look. Which item is current is also said in words to\n * a screen reader, so it never rests on the colour alone (1.4.1).\n *\n * @category content\n * @icon git-merge\n */\nexport class ImpaktBranchList extends ImpaktElement {\n static properties = {\n items: { type: Array },\n trunk: { type: String },\n look: { type: String, reflect: true },\n current: { type: Number },\n currentText: { type: String, attribute: 'current-text' },\n headingLevel: { type: Number, attribute: 'heading-level' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n declare items: Branch[];\n /** What the main line ends in, such as \"main ← one team owns the result\". */\n declare trunk: string;\n /** `tones` draws each branch in a chart colour. `mono` draws thin ink lines with hollow rings, as the Noire site does. */\n declare look: 'tones' | 'mono';\n /** The index of the item to mark as current, from 0: its ring is filled with the accent. -1 for none. */\n declare current: number;\n /** What a screen reader hears after the current item's heading, such as \"current\". Set it with `current`, so the mark is not colour alone. */\n declare currentText: string;\n declare headingLevel: 2 | 3 | 4;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.items = [];\n this.trunk = '';\n this.look = 'tones';\n this.current = -1;\n this.currentText = '';\n this.headingLevel = 3;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n mono,\n words,\n css`\n :host { display: block; container-type: inline-size; --trunk: color-mix(in srgb, currentColor 70%, transparent); }\n ul { list-style: none; margin: 0; padding: 0; position: relative; }\n ul::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 11px; inline-size: 3px; border-radius: 3px; background: var(--trunk); }\n li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); padding-block: ${space(6)}; }\n .graph { position: relative; }\n .graph svg { position: absolute; inset-block-start: -${space(6)}; inset-inline-start: 0; inline-size: 96px; block-size: calc(100% + ${space(12)}); overflow: visible; }\n .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: ${space(4)} ${space(10)}; align-items: start; }\n .path { margin: 0 0 ${space(2)}; opacity: 0.72; }\n .h { font-size: ${fontSize('3xl')}; line-height: 1.05; }\n .h a { color: inherit; text-decoration: none; }\n .h a:hover { text-decoration: underline; text-underline-offset: 0.15em; }\n .h a:focus-visible { outline: none; box-shadow: ${t.focusShadow}; border-radius: ${t.radiusSm}; }\n .detail { display: flex; flex-direction: column; gap: ${space(3)}; padding-block-start: ${space(1)}; }\n .tags { margin: 0; opacity: 0.7; text-transform: uppercase; }\n .end { position: relative; display: flex; align-items: center; gap: ${space(3)}; padding-block-start: ${space(4)}; }\n .end::before { content: ''; inline-size: 16px; block-size: 16px; margin-inline-start: 5px; border-radius: 50%; background: currentColor; }\n @container (max-width: 44rem) {\n li { grid-template-columns: 56px minmax(0, 1fr); }\n .graph svg { inline-size: 56px; }\n .row { grid-template-columns: minmax(0, 1fr); }\n .h { font-size: ${fontSize('2xl')}; }\n }\n /* The mono look: thin ink lines, hollow rings, a hairline under each row and monospace capitals. */\n :host([look='mono']) { --trunk: currentColor; --gx: 60px; }\n :host([look='mono']) ul::before { inline-size: 1px; border-radius: 0; }\n :host([look='mono']) .graph svg path { stroke-width: 1.5; }\n :host([look='mono']) .ring { position: absolute; inset-inline-start: calc(var(--gx) - 5px); inset-block-start: calc(-1 * ${space(6)} + 0.43 * (100% + 2 * ${space(6)}) - 5px); inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1px solid currentColor; background: ${t.surfaceCard}; }\n :host([look='mono']) .ring.current { background: ${token('color.accent.default', '#ffd43b')}; }\n :host([look='mono']) .text { padding-block-end: ${space(6)}; border-block-end: ${t.borderThin} solid ${t.rule}; }\n :host([look='mono']) li { padding-block-end: 0; }\n :host([look='mono']) .path { font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; opacity: 1; color: ${t.textMuted}; }\n :host([look='mono']) .h { font-size: clamp(1.5rem, 4cqi, 2rem); font-weight: ${fontWeight('semibold')}; letter-spacing: -0.03em; }\n :host([look='mono']) .tags { font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; opacity: 1; color: ${t.textMuted}; }\n :host([look='mono']) .body { color: ${t.textMuted}; opacity: 1; }\n :host([look='mono']) .end { font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; }\n /* The trunk runs on into its end dot, which sits on the trunk; the words line up with the rows' words. */\n :host([look='mono']) .end::before { flex: none; inline-size: 8px; block-size: 8px; margin-inline: 7.5px calc(96px - 15.5px - ${space(3)}); }\n :host([look='mono']) .end::after { content: ''; position: absolute; inset-block-start: -${space(10)}; inset-inline-start: 11px; inline-size: 1px; block-size: calc(${space(14)} + (100% - ${space(4)}) / 2); background: var(--trunk); }\n /* The last branch rejoins the trunk at the foot of the list, not past it, so nothing runs beyond the end dot. */\n :host([look='mono']) li:last-child .graph svg { block-size: calc(100% + ${space(6)}); }\n @container (max-width: 44rem) {\n /* Set on the list, since a container query cannot restyle the container itself. */\n :host([look='mono']) ul { --gx: 35px; }\n :host([look='mono']) .tags { display: none; }\n :host([look='mono']) .end::before { margin-inline-end: calc(56px - 15.5px - ${space(3)}); }\n }\n @media (forced-colors: active) { :host([look='mono']) .ring.current { background: Highlight; } }\n /* Branch draw: each branch opens down from the trunk, 120 ms after the one above, then its dot pops. */\n @media (prefers-reduced-motion: no-preference) {\n .graph svg { clip-path: inset(0 0 100% 0); transition: clip-path 700ms cubic-bezier(.25, 1, .5, 1) calc(var(--i, 0) * 120ms); }\n .graph circle, .ring { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform 200ms ease-out calc(var(--i, 0) * 120ms + 500ms); }\n :host([shown]) .graph svg { clip-path: inset(0); }\n :host([shown]) .graph circle, :host([shown]) .ring { transform: scale(1); }\n }\n `,\n ];\n\n private unwatch: () => void = () => undefined;\n connectedCallback(): void {\n super.connectedCallback();\n this.unwatch = revealOnView(this);\n }\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.unwatch();\n }\n\n render(): TemplateResult {\n // Each branch leaves the trunk, swings out to its dot level with the\n // heading, and returns: drawn in a 96-wide box, scaled down on phones.\n // The mono look draws its rings in HTML, so they stay round however tall the row is.\n const mono = this.look === 'mono';\n const branch = (colour: string) => svg`<svg viewBox=\"0 0 96 200\" preserveAspectRatio=\"none\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"M12 0 C12 40 60 30 60 70 L60 120 C60 160 12 160 12 200\" fill=\"none\" stroke=${colour} stroke-width=\"3\" vector-effect=\"non-scaling-stroke\" />\n ${mono ? nothing : svg`<circle cx=\"60\" cy=\"86\" r=\"8\" fill=${colour} />`}\n </svg>`;\n return html`<ul part=\"list\">${(this.items ?? []).map((item, i) => {\n const current = i === this.current;\n const words = html`${item.heading}${current && this.currentText ? html`<span class=\"sr-only\"> (${this.currentText})</span>` : nothing}`;\n return html`<li part=\"item\" style=${`--i:${i}`}>\n <div class=\"graph\">${branch(mono ? 'currentColor' : toneOf(item.tone, i))}${mono ? html`<span class=${current ? 'ring current' : 'ring'} aria-hidden=\"true\"></span>` : nothing}</div>\n <div class=\"text\">\n ${item.path ? html`<p class=\"path mono\">${item.path}</p>` : nothing}\n <div class=\"row\">\n ${heading(this.headingLevel, item.href ? html`<a href=${item.href}>${words}</a>` : words, 'h')}\n <div class=\"detail\">\n ${item.text ? html`<p class=\"body\">${item.text}</p>` : nothing}\n ${item.tags?.length ? html`<p class=\"tags mono\">${item.tags.join(' · ')}</p>` : nothing}\n </div>\n </div>\n </div>\n </li>`;\n })}</ul>\n ${this.trunk ? html`<p class=\"end mono\" part=\"trunk\">${this.trunk}</p>` : nothing}`;\n }\n}\n\n// ── Check list ───────────────────────────────────────────────────────────\n\n/** One check that passed: a figure and what it measures. */\nexport interface CheckItem {\n id?: string;\n figure: string;\n label: string;\n /** A word at the end of the row, such as \"passed\". */\n status?: string;\n}\n\n/**\n * Proof as a list of passing checks: a large figure, what it measures, and its\n * status, each row ticked. It reads its colours from the band it sits on, so\n * it works on a dark section as well as a light one.\n *\n * @category content\n * @icon list-check\n */\nexport class ImpaktCheckList extends ImpaktElement {\n static properties = {\n items: { type: Array },\n summary: { type: String },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n declare items: CheckItem[];\n /** A line above the list, such as \"All 4 checks passed\". */\n declare summary: string;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.items = [];\n this.summary = '';\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n mono,\n words,\n css`\n :host { display: block; container-type: inline-size; }\n .summary { display: inline-flex; align-items: center; gap: ${space(2)}; margin: 0 0 ${space(6)}; padding: ${space(1)} ${space(3)}; border-radius: ${t.radiusXl}; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); }\n .summary::before { content: ''; inline-size: 8px; block-size: 8px; border-radius: 50%; background: ${t.success}; }\n /* The rows share one grid, so the figure column fits the widest figure and every row lines up. */\n ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 32px max-content minmax(0, 1fr) auto; column-gap: ${space(6)}; }\n li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding-block: ${space(5)}; border-block-end: 1px solid color-mix(in srgb, currentColor 18%, transparent); }\n /* Checks run: each tick pops in, 150 ms after the one above. */\n @media (prefers-reduced-motion: no-preference) {\n .tick { transform: scale(0); transition: transform 600ms cubic-bezier(.34, 1.56, .64, 1) calc(var(--i, 0) * 150ms); }\n :host([shown]) .tick { transform: scale(1); }\n }\n .sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n /* A passed check is a filled disc with a tick cut out of it, as a CI run shows one. */\n .tick { display: inline-flex; align-items: center; justify-content: center; inline-size: 26px; block-size: 26px; border-radius: 50%; background: ${t.success}; color: var(--impakt-color-status-success-on, #fff); }\n .figure { margin: 0; font-family: ${t.fontHeading}; font-weight: ${fontWeight('bold')}; font-size: ${fontSize('5xl')}; line-height: 1; letter-spacing: ${t.trackingTight}; white-space: nowrap; }\n .label { margin: 0; ${type('xl')} }\n .status { margin: 0; opacity: 0.72; }\n @container (max-width: 40rem) {\n ul { grid-template-columns: 28px minmax(0, 1fr); }\n li { row-gap: ${space(1)}; }\n .label, .status { grid-column: 2; }\n .figure { font-size: ${fontSize('4xl')}; }\n }\n `,\n ];\n\n private unwatch: () => void = () => undefined;\n /** How far each figure has counted up, from 0 to 1, while the checks run. */\n private counted: number[] | null = null;\n connectedCallback(): void {\n super.connectedCallback();\n this.unwatch = revealOnView(this, () => this.run());\n }\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.unwatch();\n }\n\n /** Checks run: each figure counts up over 1200 ms, 150 ms after the one above. */\n private run(): void {\n if (reduced()) return;\n const items = this.items ?? [];\n const start = performance.now();\n const step = (now: number) => {\n this.counted = items.map((_, i) => Math.min(1, Math.max(0, (now - start - i * 150) / 1200)));\n this.requestUpdate();\n if (this.counted.some((k) => k < 1)) requestAnimationFrame(step);\n else this.counted = null;\n };\n requestAnimationFrame(step);\n }\n\n render(): TemplateResult {\n // While counting, the drawn figure is hidden from screen readers and the final one is read instead.\n const shownFigure = (figure: string, i: number) => {\n const k = this.counted?.[i];\n const m = /^(\\d+)(.*)$/.exec(figure);\n if (k === undefined || k >= 1 || !m) return html`${figure}`;\n const eased = 1 - Math.pow(1 - k, 3);\n return html`<span aria-hidden=\"true\">${Math.round(Number(m[1]) * eased)}${m[2]}</span><span class=\"sr-only\">${figure}</span>`;\n };\n return html`${this.summary ? html`<p class=\"summary mono\" part=\"summary\">${this.summary}</p>` : nothing}\n <ul part=\"list\">${(this.items ?? []).map(\n (item, i) => html`<li part=\"item\" style=${`--i:${i}`}>\n <span class=\"tick\" aria-hidden=\"true\">${iconSvg('check', '16px')}</span>\n <p class=\"figure\">${shownFigure(item.figure, i)}</p>\n <p class=\"label\">${item.label}</p>\n ${item.status ? html`<p class=\"status mono\">${item.status}</p>` : html`<span></span>`}\n </li>`,\n )}</ul>`;\n }\n}\n\n// ── Branch timeline ──────────────────────────────────────────────────────\n\n/** One stretch of work, drawn as a branch off the main line. */\nexport interface TimelineLane {\n id?: string;\n label: string;\n /** Where it starts and ends, in the timeline's units (weeks, say). */\n from: number;\n to: number;\n tone?: Tone;\n}\n\n/** A moment on a lane, such as a demo. */\nexport interface TimelineMark {\n id?: string;\n label: string;\n at: number;\n}\n\n/**\n * A project drawn as a commit graph: a main line along a scale of weeks, each\n * phase branching off it and merging back, moments marked on the way, and a\n * release tag where it ships.\n *\n * It is a picture, so it carries a text alternative that says the same in\n * words: each phase and when it runs. The steps that explain the phases go\n * beside it as their own block.\n *\n * @category content\n * @icon git-branch\n */\nexport class ImpaktBranchTimeline extends ImpaktElement {\n static properties = {\n lanes: { type: Array },\n marks: { type: Array },\n span: { type: Number },\n unit: { type: String },\n every: { type: Number },\n release: { type: String },\n releaseAt: { type: Number, attribute: 'release-at' },\n label: { type: String },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n declare lanes: TimelineLane[];\n declare marks: TimelineMark[];\n /** How long the whole timeline is, in its units. */\n declare span: number;\n /** The unit's short name on the scale, such as \"wk\". */\n declare unit: string;\n /** How often the scale is labelled. */\n declare every: number;\n /** The tag where it ships, such as \"v1.0 · launch\". */\n declare release: string;\n declare releaseAt: number;\n /** What the picture shows, for a screen reader. */\n declare label: string;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.lanes = [];\n this.marks = [];\n this.span = 20;\n this.unit = '';\n this.every = 2;\n this.release = '';\n this.releaseAt = 0;\n this.label = '';\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n spaceAround,\n mono,\n words,\n css`\n :host { display: block; }\n /* On a narrow screen the graph scrolls sideways, so the scroller takes focus and the arrow keys move it (2.1.1). */\n figure { margin: 0; overflow-x: auto; border-radius: ${t.radiusSm}; }\n svg { display: block; inline-size: 100%; min-inline-size: 640px; block-size: auto; overflow: visible; }\n text { font-family: ${t.fontMono}; font-size: 12px; fill: currentColor; }\n .faint { opacity: 0.5; }\n /* A lane's label keeps a band of the page colour around it, so a line crossing it stays legible. */\n .halo { paint-order: stroke; stroke: var(--impakt-color-surface-card, #fff); stroke-width: 5px; stroke-linejoin: round; }\n /* Graph draw: the graph opens left to right, so each demo appears as the line reaches it. */\n @media (prefers-reduced-motion: no-preference) {\n svg { clip-path: inset(0 100% 0 0); transition: clip-path 1400ms cubic-bezier(.25, 1, .5, 1); }\n :host([shown]) svg { clip-path: inset(0 -40px 0 0); }\n }\n `,\n ];\n\n private unwatch: () => void = () => undefined;\n connectedCallback(): void {\n super.connectedCallback();\n this.unwatch = revealOnView(this);\n }\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.unwatch();\n }\n\n render(): TemplateResult {\n const W = 1200;\n const left = 24;\n const right = W - 60;\n const span = this.span > 0 ? this.span : 20;\n const x = (v: number) => left + (Math.min(Math.max(v, 0), span) / span) * (right - left);\n const lanes = this.lanes ?? [];\n const rowH = 52;\n const H = 40 + (lanes.length + 1) * rowH + 40;\n const mainY = 40;\n const laneY = (i: number) => mainY + (i + 1) * rowH;\n const ticks: number[] = [];\n for (let v = 0; v <= span; v += Math.max(1, this.every || 2)) ticks.push(v);\n const laneOf = (at: number) => lanes.findIndex((l) => at >= l.from && at <= l.to);\n // A lane's label goes under it, out of the way of the curves, unless its marks are labelled there.\n const marked = (i: number) => (this.marks ?? []).some((m) => laneOf(m.at) === i);\n const unit = this.unit || say('wk');\n const label = this.label || say('Project timeline');\n const described = lanes.map((l) => `${l.label}: ${say('{unit} {from} to {to}', { unit, from: l.from, to: l.to })}`).join('; ');\n return html`<figure part=\"figure\" tabindex=\"0\">\n <svg viewBox=\"0 0 ${W} ${H}\" role=\"img\" aria-label=${`${label}. ${described}${this.release ? `. ${say('{name} at {unit} {at}', { name: this.release, unit, at: this.releaseAt })}` : ''}`}>\n <line x1=${left} y1=${mainY} x2=${right + 40} y2=${mainY} stroke=\"currentColor\" stroke-width=\"3\" stroke-linecap=\"round\" />\n <path d=\"M${right + 28} ${mainY - 7} L${right + 40} ${mainY} L${right + 28} ${mainY + 7}\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3\" />\n ${lanes.map((l, i) => {\n const c = toneOf(l.tone, i);\n const y = laneY(i);\n const a = x(l.from);\n const b = x(l.to);\n const bend = Math.min(36, (b - a) / 3);\n return svg`<g>\n <path d=\"M${a} ${mainY} C${a} ${(mainY + y) / 2} ${a + bend} ${y} ${a + bend * 1.6} ${y} L${b - bend * 1.6} ${y} C${b - bend} ${y} ${b} ${(mainY + y) / 2} ${b} ${mainY}\" fill=\"none\" stroke=${c} stroke-width=\"3\" />\n <circle cx=${a} cy=${mainY} r=\"7\" fill=${c} />\n <text x=${a + bend * 1.6} y=${marked(i) ? y - 10 : y + 20} class=\"halo\" style=${`fill:${c}`}>${l.label}</text>\n </g>`;\n })}\n ${(this.marks ?? []).map((m) => {\n const i = laneOf(m.at);\n const y = i >= 0 ? laneY(i) : mainY;\n const c = i >= 0 ? toneOf(lanes[i]!.tone, i) : 'currentColor';\n return svg`<g><circle cx=${x(m.at)} cy=${y} r=\"6\" fill=\"var(--impakt-color-surface-card, #fff)\" stroke=${c} stroke-width=\"3\" /><text x=${x(m.at)} y=${y + 22} text-anchor=\"middle\" class=\"faint\">${m.label}</text></g>`;\n })}\n ${\n this.release\n ? svg`<g>\n <circle cx=${x(this.releaseAt)} cy=${mainY} r=\"10\" fill=${TONE.success} />\n <rect x=${x(this.releaseAt) - 8} y=${mainY - 36} rx=\"4\" width=${this.release.length * 7.6 + 16} height=\"22\" fill=${TONE.success} />\n <text x=${x(this.releaseAt)} y=${mainY - 21} style=\"fill:var(--impakt-color-surface-card, #fff)\">${this.release}</text>\n </g>`\n : nothing\n }\n ${ticks.map((v) => svg`<text x=${x(v)} y=${H - 10} text-anchor=\"middle\" class=\"faint\">${unit} ${v}</text>`)}\n </svg>\n </figure>`;\n }\n}\n\ncustomElements.define('impakt-release-card', ImpaktReleaseCard);\ncustomElements.define('impakt-release-list', ImpaktReleaseList);\ncustomElements.define('impakt-branch-list', ImpaktBranchList);\ncustomElements.define('impakt-check-list', ImpaktCheckList);\ncustomElements.define('impakt-branch-timeline', ImpaktBranchTimeline);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-release-card': ImpaktReleaseCard;\n 'impakt-release-list': ImpaktReleaseList;\n 'impakt-branch-list': ImpaktBranchList;\n 'impakt-check-list': ImpaktCheckList;\n 'impakt-branch-timeline': ImpaktBranchTimeline;\n }\n}\n"],"mappings":";AAWA,SAAS,KAAK,MAAM,SAAS,WAAgC;AAC7D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAWP,SAAS,aAAa,IAAiB,QAAiC;AACtE,QAAM,OAAO,MAAM;AACjB,OAAG,aAAa,SAAS,EAAE;AAC3B,aAAS;AAAA,EACX;AACA,MAAI,OAAO,yBAAyB,YAAY;AAC9C,SAAK;AACL,WAAO,MAAM;AAAA,EACf;AACA,QAAM,KAAK,IAAI;AAAA,IACb,CAAC,YAAY;AACX,UAAI,QAAQ,KAAK,CAAC,MAAM,EAAE,cAAc,GAAG;AACzC,aAAK;AACL,WAAG,WAAW;AAAA,MAChB;AAAA,IACF;AAAA,IACA,EAAE,WAAW,KAAK;AAAA,EACpB;AACA,KAAG,QAAQ,EAAE;AACb,SAAO,MAAM,GAAG,WAAW;AAC7B;AACA,IAAM,UAAU,MAAM,OAAO,eAAe,cAAc,WAAW,kCAAkC,EAAE;AAGzG,IAAM,OAAO,2BAA2B,EAAE,QAAQ,gBAAgB,SAAS,IAAI,CAAC;AAEhF,IAAM,UAAU,CAAC,OAAe,MAA+B,QAAgC;AAC7F,QAAM,IAAI,KAAK,IAAI,KAAK,IAAI,SAAS,GAAG,CAAC,GAAG,CAAC;AAC7C,UAAQ,GAAG;AAAA,IACT,KAAK;AACH,aAAO,iBAAiB,GAAG,IAAI,IAAI;AAAA,IACrC,KAAK;AACH,aAAO,iBAAiB,GAAG,IAAI,IAAI;AAAA,IACrC,KAAK;AACH,a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AAQ,SAAS,MAAM,EAAE,qBAAqB,KAAK,OAAO;AAAA,oBACrH,EAAE,KAAK,SAAS,CAAC,MAAM,QAAQ,EAAE,wDAAwD,KAAK,OAAO;AAAA,gBAE3G,OACN;AAAA,UACE,MAAM,IAAI,CAAC,MAAM,cAAc,EAAE,CAAC,CAAC,MAAM,IAAI,EAAE,uCAAuC,IAAI,IAAI,CAAC,SAAS,CAAC;AAAA;AAAA;AAAA,EAGjH;AACF;AAEA,eAAe,OAAO,uBAAuB,iBAAiB;AAC9D,eAAe,OAAO,uBAAuB,iBAAiB;AAC9D,eAAe,OAAO,sBAAsB,gBAAgB;AAC5D,eAAe,OAAO,qBAAqB,eAAe;AAC1D,eAAe,OAAO,0BAA0B,oBAAoB;","names":["heading","mono","words"]}
@@ -4,7 +4,7 @@ import {
4
4
  ImpaktCheckList,
5
5
  ImpaktReleaseCard,
6
6
  ImpaktReleaseList
7
- } from "../chunk-PIUPEB4I.js";
7
+ } from "../chunk-VXQS5TAN.js";
8
8
  import "../chunk-XB6FD4SF.js";
9
9
  export {
10
10
  ImpaktBranchList,
@@ -4,7 +4,7 @@ import {
4
4
  ImpaktHypothesisCard,
5
5
  ImpaktProcessLine,
6
6
  ImpaktWeekStrip
7
- } from "../chunk-2URXTXNQ.js";
7
+ } from "../chunk-I2DL3DRU.js";
8
8
  import "../chunk-WGDMORWT.js";
9
9
  export {
10
10
  ImpaktBrowserFrame,
package/dist/index.js CHANGED
@@ -61,7 +61,7 @@ import {
61
61
  ImpaktCheckList,
62
62
  ImpaktReleaseCard,
63
63
  ImpaktReleaseList
64
- } from "./chunk-PIUPEB4I.js";
64
+ } from "./chunk-VXQS5TAN.js";
65
65
  import {
66
66
  ImpaktBeforeAfter,
67
67
  ImpaktLocationCard,
@@ -81,7 +81,7 @@ import {
81
81
  ImpaktHypothesisCard,
82
82
  ImpaktProcessLine,
83
83
  ImpaktWeekStrip
84
- } from "./chunk-2URXTXNQ.js";
84
+ } from "./chunk-I2DL3DRU.js";
85
85
  import {
86
86
  ImpaktColumnList,
87
87
  ImpaktCursor,