@atomic-ui/blocks 0.13.2 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/README.md +15 -15
  2. package/custom-elements.json +2961 -9573
  3. package/dist/{chunk-B6I3GVJ5.js → chunk-3G3NP4UC.js} +9 -4
  4. package/dist/chunk-3G3NP4UC.js.map +1 -0
  5. package/dist/{chunk-H262HKSL.js → chunk-7OFH762N.js} +53 -23
  6. package/dist/chunk-7OFH762N.js.map +1 -0
  7. package/dist/{chunk-WTVF3JRL.js → chunk-GDATDR2Q.js} +24 -7
  8. package/dist/chunk-GDATDR2Q.js.map +1 -0
  9. package/dist/chunk-GQ2I44OU.js +226 -0
  10. package/dist/chunk-GQ2I44OU.js.map +1 -0
  11. package/dist/chunk-HISF6RYK.js +199 -0
  12. package/dist/chunk-HISF6RYK.js.map +1 -0
  13. package/dist/{chunk-53V2GY6L.js → chunk-LJGOTYDJ.js} +76 -69
  14. package/dist/chunk-LJGOTYDJ.js.map +1 -0
  15. package/dist/{chunk-WIVKJL64.js → chunk-OBBPBN4S.js} +73 -164
  16. package/dist/chunk-OBBPBN4S.js.map +1 -0
  17. package/dist/chunk-OHXEZPBB.js +109 -0
  18. package/dist/chunk-OHXEZPBB.js.map +1 -0
  19. package/dist/{chunk-FNGN2F6Y.js → chunk-VOONXP5H.js} +30 -59
  20. package/dist/chunk-VOONXP5H.js.map +1 -0
  21. package/dist/chunk-XSKGWT2D.js +84 -0
  22. package/dist/chunk-XSKGWT2D.js.map +1 -0
  23. package/dist/components/changelog.d.ts +0 -288
  24. package/dist/components/changelog.js +3 -12
  25. package/dist/components/estimator.js +1 -1
  26. package/dist/components/g2-case.d.ts +8 -1
  27. package/dist/components/g2-case.js +1 -1
  28. package/dist/components/g2-site.d.ts +49 -41
  29. package/dist/components/g2-site.js +1 -3
  30. package/dist/components/journey.d.ts +13 -2
  31. package/dist/components/journey.js +1 -1
  32. package/dist/components/marketing.d.ts +0 -283
  33. package/dist/components/marketing.js +3 -13
  34. package/dist/components/organisms.d.ts +0 -489
  35. package/dist/components/organisms.js +3 -19
  36. package/dist/components/selling.d.ts +0 -255
  37. package/dist/components/selling.js +3 -15
  38. package/dist/components/site.d.ts +8 -53
  39. package/dist/components/site.js +3 -5
  40. package/dist/components/studio.d.ts +42 -98
  41. package/dist/components/studio.js +1 -3
  42. package/dist/index.d.ts +9 -13
  43. package/dist/index.js +25 -103
  44. package/dist/index.js.map +1 -1
  45. package/dist/standalone/atomic-ui-blocks.js +832 -1622
  46. package/dist/standalone/atomic-ui-blocks.js.map +4 -4
  47. package/dist/standalone/index.html +18 -26
  48. package/package.json +3 -3
  49. package/specimen/index.html +18 -26
  50. package/dist/chunk-53V2GY6L.js.map +0 -1
  51. package/dist/chunk-B6I3GVJ5.js.map +0 -1
  52. package/dist/chunk-FNGN2F6Y.js.map +0 -1
  53. package/dist/chunk-H262HKSL.js.map +0 -1
  54. package/dist/chunk-IT2NA25D.js +0 -571
  55. package/dist/chunk-IT2NA25D.js.map +0 -1
  56. package/dist/chunk-MMADM6OW.js +0 -782
  57. package/dist/chunk-MMADM6OW.js.map +0 -1
  58. package/dist/chunk-NHWD2LUR.js +0 -255
  59. package/dist/chunk-NHWD2LUR.js.map +0 -1
  60. package/dist/chunk-R7SSIE2E.js +0 -362
  61. package/dist/chunk-R7SSIE2E.js.map +0 -1
  62. package/dist/chunk-WIVKJL64.js.map +0 -1
  63. package/dist/chunk-WTVF3JRL.js.map +0 -1
  64. package/dist/chunk-XB6FD4SF.js +0 -438
  65. package/dist/chunk-XB6FD4SF.js.map +0 -1
  66. package/dist/chunk-YXMXLVK7.js +0 -230
  67. package/dist/chunk-YXMXLVK7.js.map +0 -1
  68. package/dist/chunk-ZD75GU6J.js +0 -75
  69. package/dist/chunk-ZD75GU6J.js.map +0 -1
  70. package/dist/chunk-ZODL5HD4.js +0 -535
  71. package/dist/chunk-ZODL5HD4.js.map +0 -1
  72. package/dist/components/card-grid.d.ts +0 -72
  73. package/dist/components/card-grid.js +0 -7
  74. package/dist/components/card-grid.js.map +0 -1
  75. package/dist/components/property.d.ts +0 -389
  76. package/dist/components/property.js +0 -17
  77. package/dist/components/property.js.map +0 -1
  78. package/dist/components/scene.d.ts +0 -138
  79. package/dist/components/scene.js +0 -7
  80. package/dist/components/scene.js.map +0 -1
  81. package/dist/components/scrubber.d.ts +0 -86
  82. package/dist/components/scrubber.js +0 -7
  83. package/dist/components/scrubber.js.map +0 -1
@@ -2,6 +2,7 @@
2
2
  import { css, html, nothing, unsafeCSS } from "lit";
3
3
  import {
4
4
  ImpaktElement,
5
+ R,
5
6
  pageLocale,
6
7
  say,
7
8
  focusRing,
@@ -142,6 +143,10 @@ var ImpaktEstimator = class extends ImpaktElement {
142
143
  button, .send { ${targetSize} display: inline-flex; align-items: center; justify-content: center; gap: ${space(2)}; padding: ${space(2.5)} ${space(5)}; border-radius: ${t.radiusLg}; font: inherit; font-weight: ${fontWeight("semibold")}; cursor: pointer; text-decoration: none; border: ${t.borderThin} solid transparent; }
143
144
  .primary, .send { background: ${t.brand}; color: ${t.onBrand}; }
144
145
  .primary:hover, .send:hover { background: ${t.brandHover}; }
146
+ /* The arrow slides forward when its button or link is pointed at or focused (impkt-web#51), 4px for Impakt and not at all for a brand that derives it. */
147
+ .go { display: inline-block; flex: none; transition: translate ${R.arrowDuration} ${R.arrowEasing}; }
148
+ :is(a, button):is(:hover, :focus-visible) .go { translate: ${R.arrowDistance} 0; }
149
+ @media (prefers-reduced-motion: reduce) { .go { transition: none; } }
145
150
  .secondary { background: transparent; color: ${t.text}; border-color: ${t.borderStrong}; }
146
151
  .secondary:hover { background: ${t.surfaceSubtle}; }
147
152
 
@@ -417,7 +422,7 @@ var ImpaktEstimator = class extends ImpaktElement {
417
422
  ${r.way ? html`<div><dt class="mono">${say("Way of working")}</dt><dd>${r.way}</dd></div>` : nothing}
418
423
  </dl>
419
424
  <div class="actions">
420
- ${this.contactHref ? html`<a class="send" href=${this.contactHref} @click=${(e) => this.send(e)}>${this.sendLabel} <span aria-hidden="true">→</span></a>` : nothing}
425
+ ${this.contactHref ? html`<a class="send" href=${this.contactHref} @click=${(e) => this.send(e)}>${this.sendLabel} <span class="go" aria-hidden="true">→</span></a>` : nothing}
421
426
  <button type="button" class="secondary" @click=${() => this.copy()}>${say("Copy summary")}</button>
422
427
  <button type="button" class="secondary" @click=${() => {
423
428
  this.reset();
@@ -432,7 +437,7 @@ var ImpaktEstimator = class extends ImpaktElement {
432
437
  renderAll(r) {
433
438
  const qs = this.questions ?? [];
434
439
  const weeks = phaseWeeks(this.phases ?? [], r.weeks);
435
- const arrow = html`<svg viewBox="0 0 20 12" width="20" height="12" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true" focusable="false"><path d="M0 6h18M13 1l5 5-5 5" /></svg>`;
440
+ const arrow = html`<svg class="go" viewBox="0 0 20 12" width="20" height="12" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true" focusable="false"><path d="M0 6h18M13 1l5 5-5 5" /></svg>`;
436
441
  return html`<div class="all">
437
442
  <div class="questions" part="questions">
438
443
  ${qs.map((q, i) => {
@@ -483,7 +488,7 @@ var ImpaktEstimator = class extends ImpaktElement {
483
488
  ${this.renderResult(r)}
484
489
  ${done ? nothing : html`<div class="nav">
485
490
  ${this.at > 0 ? html`<button type="button" class="secondary" @click=${() => this.go(this.at - 1)}>${say("Back")}</button>` : nothing}
486
- <button type="button" class="primary" @click=${() => this.go(this.at + 1)}>${this.at === total - 1 ? say("See my estimate") : say("Next")} <span aria-hidden="true">→</span></button>
491
+ <button type="button" class="primary" @click=${() => this.go(this.at + 1)}>${this.at === total - 1 ? say("See my estimate") : say("Next")} <span class="go" aria-hidden="true">→</span></button>
487
492
  </div>`}
488
493
  </div>
489
494
  <aside class="panel" part="panel" style=${`--s:${scale}`}>
@@ -503,4 +508,4 @@ export {
503
508
  phaseWeeks,
504
509
  ImpaktEstimator
505
510
  };
506
- //# sourceMappingURL=chunk-B6I3GVJ5.js.map
511
+ //# sourceMappingURL=chunk-3G3NP4UC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/estimator.ts"],"sourcesContent":["/**\n * A cost estimator: a few questions, one at a time, with a budget beside them\n * that moves as the answers change, and then a result with a timeline, a team\n * and a way of working.\n *\n * Every number is content. Each choice says what it adds to the cost and the\n * weeks, or what it multiplies them by, and the bands say how big a team a\n * cost needs. The arithmetic lives here, in code, because a binding never\n * computes (ADR 0003): a studio changes its rates in the CMS, not the rules.\n */\nimport { css, html, nothing, unsafeCSS, type TemplateResult } from 'lit';\nimport {\n ImpaktElement,\n R,\n pageLocale,\n say,\n focusRing,\n targetSize,\n visuallyHidden,\n fontSize,\n fontWeight,\n space,\n spaceAround,\n t,\n token,\n type,\n toneOf,\n} from '@atomic-ui/ui';\n\n/** One answer to a question, and what it does to the estimate. */\nexport interface EstimatorChoice {\n id: string;\n label: string;\n /** A line under the label, such as \"iPhone and Android\". */\n hint?: string;\n /** Added to the cost, counted in units (see `unit`). */\n cost?: number;\n /** Added to the weeks. */\n weeks?: number;\n /** Multiplies the cost, such as 1.35 for a more polished first version. */\n costFactor?: number;\n /** Multiplies the weeks. */\n weeksFactor?: number;\n /** Engineers added to the team, such as one more to go faster. */\n engineers?: number;\n /** Shown beside the budget when it is picked. */\n tip?: string;\n /** How the summary names it, such as \"a SaaS platform\" or \"payments\". The label when left out. */\n phrase?: string;\n}\n\n/** One question. */\nexport interface EstimatorQuestion {\n id: string;\n heading: string;\n hint?: string;\n /** `one` picks one card, `many` picks any number, and `scale` is a slider across the choices in order. */\n kind: 'one' | 'many' | 'scale';\n choices: EstimatorChoice[];\n /** The choices picked at the start. A `one` or `scale` question takes the first id; with none, its first choice. */\n start?: string[];\n /** A short name for the question in the summary that is sent on, such as \"Polish\". Left out of it when there is none. */\n short?: string;\n /** For a `many` question, whether the summary lists what was picked, as in \"with payments and AI features\". Yes when left out. */\n inSummary?: boolean;\n}\n\n/** A band of cost: the first band whose `below` the cost is under applies, or the last one. */\nexport interface EstimatorBand {\n below?: number;\n /** For a team band, how many engineers. */\n engineers?: number;\n /** For a way-of-working band, what it is called. */\n text?: string;\n}\n\n/** One part of the timeline. The part with no share takes the weeks the others leave. */\nexport interface EstimatorPhase {\n label: string;\n /** Its share of the weeks, such as 0.1. At least one week either way. */\n share?: number;\n}\n\n/** What an estimate came to, as the `impakt-estimate` event carries it. */\nexport interface EstimateResult {\n low: number;\n high: number;\n weeks: number;\n engineers: number;\n way: string;\n summary: string;\n /** The ids picked for each question. */\n answers: Record<string, string[]>;\n}\n\nconst sum = (xs: number[]) => xs.reduce((a, b) => a + b, 0);\nconst bandFor = (bands: EstimatorBand[], cost: number): EstimatorBand | undefined =>\n bands.find((b) => typeof b.below === 'number' && cost < b.below) ?? bands.at(-1);\n\n/** The arithmetic, apart from the element so it can be checked on its own. */\nexport function estimate(\n questions: EstimatorQuestion[],\n answers: Record<string, string[]>,\n rules: { low: number; high: number; minWeeks: number; teams: EstimatorBand[]; ways: EstimatorBand[] },\n): { cost: number; low: number; high: number; weeks: number; engineers: number; way: string } {\n const chosen = questions.flatMap((q) => (answers[q.id] ?? []).flatMap((id) => q.choices.filter((c) => c.id === id)));\n let cost = sum(chosen.map((c) => c.cost ?? 0));\n let weeks = sum(chosen.map((c) => c.weeks ?? 0));\n for (const c of chosen) {\n cost *= c.costFactor ?? 1;\n weeks *= c.weeksFactor ?? 1;\n }\n const engineers = (bandFor(rules.teams, cost)?.engineers ?? 1) + sum(chosen.map((c) => c.engineers ?? 0));\n return {\n cost,\n low: Math.round(cost * rules.low),\n high: Math.round(cost * rules.high),\n weeks: Math.max(rules.minWeeks, Math.round(weeks)),\n engineers,\n way: bandFor(rules.ways, cost)?.text ?? '',\n };\n}\n\n/** The weeks each part of the timeline takes, adding up to the whole. */\nexport function phaseWeeks(phases: EstimatorPhase[], weeks: number): number[] {\n const fixed = phases.map((p) => (typeof p.share === 'number' ? Math.max(1, Math.round(weeks * p.share)) : 0));\n const rest = Math.max(1, weeks - sum(fixed));\n return phases.map((p, i) => (typeof p.share === 'number' ? fixed[i]! : rest));\n}\n\n/**\n * Asks a few questions one at a time and keeps a budget beside them that moves\n * with every answer, then shows the estimate: the range, the weeks, how long\n * each part takes, the team and the way of working. The visitor can send the\n * estimate on to a contact page, where a message box can start with it.\n *\n * **`layout=\"all\"` asks every question at once.** Each is a numbered row of\n * square chips (`impakt-chip-group`, radios for one answer and checkboxes for\n * several) under a monospace label such as \"01 · What are you building?\", and\n * the result sits beside them as an ink panel: the budget in the accent, the\n * weeks to a first release, each part of the timeline as a row, a full-width\n * button to send it and the suggested way of working. The note goes under the\n * chips on a wide screen and under the panel on a phone, where the chips and\n * the panel stack with no gap. The wizard stays the default.\n *\n * @category form\n * @icon calculator\n * @fires {CustomEvent<EstimateResult>} impakt-estimate - When the estimate is sent on. The result is in detail.\n */\nexport class ImpaktEstimator extends ImpaktElement {\n static properties = {\n questions: { type: Array },\n teams: { type: Array },\n ways: { type: Array },\n phases: { type: Array },\n low: { type: Number },\n high: { type: Number },\n minWeeks: { type: Number, attribute: 'min-weeks' },\n currency: { type: String },\n unit: { type: Number },\n intro: { type: String },\n budgetLabel: { type: String, attribute: 'budget-label' },\n resultHeading: { type: String, attribute: 'result-heading' },\n teamText: { type: String, attribute: 'team-text' },\n teamTextOne: { type: String, attribute: 'team-text-one' },\n note: { type: String },\n contactHref: { type: String, attribute: 'contact-href' },\n sendLabel: { type: String, attribute: 'send-label' },\n layout: { type: String, reflect: true },\n wayLabel: { type: String, attribute: 'way-label' },\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\n /** The questions, in the order they are asked. */\n declare questions: EstimatorQuestion[];\n /** How many engineers each band of cost needs. */\n declare teams: EstimatorBand[];\n /** The way of working for each band of cost. */\n declare ways: EstimatorBand[];\n /** The parts of the timeline, in order. */\n declare phases: EstimatorPhase[];\n /** The low end of the range, as a share of the cost. */\n declare low: number;\n /** The high end of the range, as a share of the cost. */\n declare high: number;\n /** The fewest weeks an estimate says. */\n declare minWeeks: number;\n /** The currency the cost is in, such as GBP. */\n declare currency: string;\n /** What one unit of cost is worth, such as 1000 when the costs are in thousands. */\n declare unit: number;\n /** Beside the budget before anything is picked, such as \"Start by telling us what you are building.\" */\n declare intro: string;\n declare budgetLabel: string;\n declare resultHeading: string;\n /** The team, with {n} for the number of engineers. */\n declare teamText: string;\n /** The team when it has one engineer. */\n declare teamTextOne: string;\n /** A line under the result, such as how accurate it is. */\n declare note: string;\n /** Where the estimate is sent on to. With none, there is no button to send it. */\n declare contactHref: string;\n declare sendLabel: string;\n /** `wizard` asks one question at a time. `all` asks every question at once, with the result beside them as an ink panel. */\n declare layout: 'wizard' | 'all';\n /** With `all`: the words before the way of working under the panel, such as \"Suggested way to work\". */\n declare wayLabel: string;\n /** The level of each question's heading. */\n declare headingLevel: number;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n private at = 0;\n private answers: Record<string, string[]> = {};\n private tip = '';\n private copied = '';\n private started = false;\n\n constructor() {\n super();\n this.questions = [];\n this.teams = [];\n this.ways = [];\n this.phases = [];\n this.low = 0.85;\n this.high = 1.25;\n this.minWeeks = 1;\n this.currency = 'GBP';\n this.unit = 1;\n this.intro = '';\n this.budgetLabel = 'Indicative budget';\n this.resultHeading = 'Your estimate';\n this.teamText = '{n} engineers';\n this.teamTextOne = '1 engineer';\n this.note = '';\n this.contactHref = '';\n this.sendLabel = 'Send this to us';\n this.layout = 'wizard';\n this.wayLabel = '';\n this.headingLevel = 2;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n focusRing,\n css`\n :host { display: block; container-type: inline-size; }\n [hidden] { display: none !important; }\n .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: ${space(10)}; align-items: start; }\n .mono { font-family: ${t.fontMono}; font-size: ${fontSize('xs')}; letter-spacing: 0.04em; text-transform: uppercase; color: ${t.textMuted}; margin: 0; }\n .sr-only { ${visuallyHidden} }\n\n .progress { display: grid; gap: ${space(2)}; margin-block-end: ${space(6)}; }\n .bar { block-size: 4px; border-radius: 2px; background: color-mix(in srgb, currentColor 12%, transparent); overflow: hidden; }\n .bar i { display: block; block-size: 100%; background: ${t.brand}; transition: inline-size 300ms ease; }\n\n fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }\n legend { padding: 0; margin-block-end: ${space(2)}; }\n .q { margin: 0; font-family: ${t.fontHeading}; font-weight: ${fontWeight('bold')}; ${type('3xl')} letter-spacing: ${t.trackingTight}; color: ${t.textHeading}; outline: none; }\n .hint { margin: 0 0 ${space(6)}; color: ${t.textMuted}; }\n\n .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${space(3)}; }\n .choices.many { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n .choice { position: relative; display: grid; gap: ${space(1)}; align-content: start; padding: ${space(4)}; border: ${t.borderThin} solid ${t.border}; border-radius: ${t.radiusLg}; background: ${t.surfaceCard}; cursor: pointer; transition: border-color 120ms ease, background 120ms ease; }\n .choice:hover { border-color: ${t.borderStrong}; }\n .choice input { ${visuallyHidden} }\n .choice:has(input:checked) { border-color: ${t.brand}; box-shadow: inset 0 0 0 1px ${t.brand}; background: ${t.brandSubtle}; }\n .choice:has(input:focus-visible) { box-shadow: ${t.focusShadow}; }\n .many .choice { padding: ${space(3)}; }\n .label { font-weight: ${fontWeight('semibold')}; }\n .small { ${type('sm')} color: ${t.textMuted}; }\n /* A tick for a picked feature, drawn in the corner. */\n .many .choice:has(input:checked)::after { content: '✓'; position: absolute; inset-block-start: ${space(2)}; inset-inline-end: ${space(3)}; color: ${t.brand}; font-weight: ${fontWeight('bold')}; }\n\n .scale { display: grid; gap: ${space(3)}; }\n .scale input { inline-size: 100%; accent-color: ${t.brand}; ${targetSize} }\n .ticks { display: flex; justify-content: space-between; ${type('sm')} color: ${t.textMuted}; }\n .ticks span[aria-current] { color: ${t.text}; font-weight: ${fontWeight('semibold')}; }\n .now { margin: 0; }\n\n .nav { display: flex; gap: ${space(3)}; margin-block-start: ${space(8)}; }\n button, .send { ${targetSize} display: inline-flex; align-items: center; justify-content: center; gap: ${space(2)}; padding: ${space(2.5)} ${space(5)}; border-radius: ${t.radiusLg}; font: inherit; font-weight: ${fontWeight('semibold')}; cursor: pointer; text-decoration: none; border: ${t.borderThin} solid transparent; }\n .primary, .send { background: ${t.brand}; color: ${t.onBrand}; }\n .primary:hover, .send:hover { background: ${t.brandHover}; }\n /* The arrow slides forward when its button or link is pointed at or focused (impkt-web#51), 4px for Impakt and not at all for a brand that derives it. */\n .go { display: inline-block; flex: none; transition: translate ${R.arrowDuration} ${R.arrowEasing}; }\n :is(a, button):is(:hover, :focus-visible) .go { translate: ${R.arrowDistance} 0; }\n @media (prefers-reduced-motion: reduce) { .go { transition: none; } }\n .secondary { background: transparent; color: ${t.text}; border-color: ${t.borderStrong}; }\n .secondary:hover { background: ${t.surfaceSubtle}; }\n\n .panel { position: sticky; inset-block-start: ${space(6)}; overflow: hidden; isolation: isolate; padding: ${space(8)}; border-radius: ${t.radiusXl}; background: ${t.surfaceCard}; box-shadow: ${t.shadowMd}; display: grid; gap: ${space(2)}; }\n /* The glow behind the budget grows as the product does. */\n .glow { position: absolute; z-index: -1; inset-block-start: -40%; inset-inline-end: -30%; inline-size: 120%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, ${unsafeCSS(toneOf(1, 0))} 45%, transparent), color-mix(in srgb, ${unsafeCSS(toneOf(2, 1))} 25%, transparent) 45%, transparent 70%); transform: scale(var(--s, 0.7)); transform-origin: 70% 30%; transition: transform 500ms cubic-bezier(.2, .8, .2, 1); pointer-events: none; }\n .range { margin: 0; font-family: ${t.fontHeading}; font-weight: ${fontWeight('bold')}; font-size: ${fontSize('5xl')}; line-height: 1; letter-spacing: ${t.trackingTight}; color: ${t.textHeading}; }\n .weeks { margin: 0; ${type('lg')} }\n .tip { margin: ${space(4)} 0 0; padding-block-start: ${space(4)}; border-block-start: 1px solid color-mix(in srgb, currentColor 15%, transparent); color: ${t.textMuted}; }\n\n .result { display: grid; gap: ${space(6)}; }\n .summary { margin: 0; ${type('xl')} text-wrap: pretty; }\n .phases { display: flex; gap: 3px; block-size: 14px; border-radius: 7px; overflow: hidden; }\n .phases i { display: block; }\n .legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: ${space(2)} ${space(5)}; }\n .legend li { display: inline-flex; align-items: center; gap: ${space(2)}; }\n .legend li::before { content: ''; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--c); }\n dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${space(4)}; }\n dt { margin: 0 0 ${space(1)}; }\n dd { margin: 0; font-weight: ${fontWeight('semibold')}; }\n .actions { display: flex; flex-wrap: wrap; gap: ${space(3)}; }\n .note { margin: 0; ${type('sm')} color: ${t.textMuted}; }\n .status { margin: 0; ${type('sm')} }\n\n @container (max-width: 48rem) {\n .wrap { grid-template-columns: minmax(0, 1fr); gap: ${space(8)}; }\n /* Not sticky once the panel is under the questions, but still the glow's containing block, so the panel clips it\n and it never widens the page (1.4.10). */\n .panel { position: relative; inset-block-start: auto; }\n .choices.many { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n }\n @container (max-width: 30rem) {\n .choices { grid-template-columns: minmax(0, 1fr); }\n .range { font-size: ${fontSize('4xl')}; }\n }\n /*\n * layout=\"all\": every question at once, and the result as an ink panel beside them, as the Estimator component\n * (10:544) draws them: the options 642px wide and the budget 430px, 10px apart. The options are 32px inside with\n * their parts 16px apart; the budget is 32px inside with its parts 14px apart, its lines 12px under their rules.\n */\n .all { --accent: ${token('color.accent.default', '#ffd43b')}; --on-accent: ${token('color.accent.on', '#111111')}; --gap: 14px; display: grid; grid-template-columns: minmax(0, 642fr) minmax(0, 430fr); grid-template-areas: 'questions panel' 'note panel'; grid-template-rows: auto 1fr; column-gap: ${space(2.5)}; align-items: stretch; }\n .all .questions { grid-area: questions; display: grid; align-content: start; gap: ${space(4)}; padding: ${space(8)} ${space(8)} 0; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-block-end: 0; }\n .all .questions impakt-chip-group { margin: 0; --impakt-chip-group-gap: ${space(2)}; }\n .all .questions impakt-chip-group::part(label) { margin-block-end: ${space(4)}; line-height: 1.4; }\n .all .foot { grid-area: note; padding: ${space(4)} ${space(8)} ${space(8)}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-block-start: 0; }\n /* The note in G2 Body S, 14px at 1.4. */\n .all .note { font-size: 0.875rem; line-height: 1.4; }\n .all .ink { grid-area: panel; display: flex; flex-direction: column; gap: var(--gap); padding: ${space(8)}; background: ${t.text}; color: ${t.surfaceCard}; --muted: color-mix(in srgb, ${t.surfaceCard} 72%, ${t.text}); --line: color-mix(in srgb, ${t.surfaceCard} 18%, ${t.text}); }\n .all .ink .mono { color: var(--muted); font-size: 0.6875rem; font-weight: ${fontWeight('medium')}; line-height: 1.4; letter-spacing: 0.06em; }\n /* The accent on ink only where the theme says the pair reads; in dark the panel turns to paper and the range keeps its words. Display M: 52px at 1.04 on the 1080px estimator, 40px tall on a phone. */\n .all .ink .range { color: var(--impakt-color-accent-on-ink, var(--impakt-site-menu-current, currentColor)); font-size: clamp(2.25rem, 11cqi, 3.25rem); font-weight: ${fontWeight('semibold')}; line-height: 1.04; letter-spacing: -0.04em; }\n .all .ink .weeks { font-size: 1rem; line-height: 1.45; }\n .all .rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); }\n .all .rows li { display: flex; justify-content: space-between; align-items: baseline; gap: ${space(4)}; padding-block-start: ${space(3)}; border-block-start: ${t.borderThin} solid var(--line); font-size: 0.875rem; line-height: 1.4; }\n .all .rows .length { font-family: ${t.fontMono}; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); white-space: nowrap; }\n .all .cta { ${targetSize} display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; box-sizing: border-box; min-block-size: 47px; padding: 14px ${space(5)}; font-size: 1rem; line-height: 1.2; font-weight: ${fontWeight('medium')}; color: var(--on-accent); background: var(--accent); text-decoration: none; }\n .all .cta:hover { background: color-mix(in srgb, var(--accent) 88%, #ffffff); }\n .all .cta:focus-visible { outline: none; box-shadow: 0 0 0 2px ${t.text}, 0 0 0 4px ${t.surfaceCard}; }\n .all .way { margin: 0; font-size: 0.875rem; line-height: 1.4; color: var(--muted); }\n /* On a phone (15:943, 15:974): the options 20px inside with their parts 14px apart, the budget 24 by 20 inside with its parts 12px apart, its lines 11px under their rules, and the note under the budget's action. */\n @container (max-width: 48rem) {\n .all { --gap: 12px; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'questions' 'panel'; grid-template-rows: auto; column-gap: 0; }\n .all .questions { gap: 14px; padding: ${space(5)}; border-block-end: ${t.borderThin} solid ${t.text}; }\n .all .questions impakt-chip-group::part(label) { margin-block-start: 0; margin-block-end: 14px; }\n .all .foot { display: none; }\n .all .ink { padding: ${space(6)} ${space(5)}; }\n .all .rows li { padding-block-start: 11px; }\n }\n .all .ink .note { display: none; color: var(--muted); }\n @container (max-width: 48rem) { .all .ink .note { display: block; } }\n @media (forced-colors: active) {\n .all .ink { border: 1px solid CanvasText; }\n .all .cta { border: 1px solid ButtonText; }\n .choice:has(input:checked) { outline: 3px solid Highlight; }\n .bar i, .phases i, .legend li::before { background: CanvasText !important; }\n .glow { display: none; }\n }\n `,\n ];\n\n /** The answers each question starts with. */\n private reset(): void {\n this.answers = Object.fromEntries(\n (this.questions ?? []).map((q) => {\n const ids = (q.start ?? []).filter((id) => q.choices.some((c) => c.id === id));\n if (q.kind === 'many') return [q.id, ids];\n return [q.id, [ids[0] ?? q.choices[0]?.id].filter((x): x is string => Boolean(x))];\n }),\n );\n this.at = 0;\n this.tip = '';\n this.copied = '';\n }\n\n protected willUpdate(changed: Map<string, unknown>): void {\n if (changed.has('questions') || !this.started) {\n this.reset();\n this.started = true;\n }\n }\n\n private get rules() {\n return { low: this.low, high: this.high, minWeeks: this.minWeeks, teams: this.teams ?? [], ways: this.ways ?? [] };\n }\n\n private money(n: number): string {\n try {\n return new Intl.NumberFormat(pageLocale(this), {\n style: 'currency',\n currency: this.currency || 'GBP',\n notation: 'compact',\n maximumFractionDigits: 0,\n }).format(n * (this.unit || 1));\n } catch {\n return String(n * (this.unit || 1));\n }\n }\n\n private listOf(words: string[]): string {\n try {\n return new Intl.ListFormat(pageLocale(this), { type: 'conjunction' }).format(words);\n } catch {\n return words.join(', ');\n }\n }\n\n private weeksWord(n: number): string {\n return n === 1 ? say('{n} week', { n }) : say('{n} weeks', { n });\n }\n\n /** The largest the budget can be, so the glow is full size at it. */\n private get most(): number {\n const qs = this.questions ?? [];\n const answers = Object.fromEntries(\n qs.map((q) => {\n if (q.kind === 'many') return [q.id, q.choices.map((c) => c.id)];\n const best = [...q.choices].sort((a, b) => (b.cost ?? 0) * (b.costFactor ?? 1) - (a.cost ?? 0) * (a.costFactor ?? 1))[0];\n return [q.id, best ? [best.id] : []];\n }),\n );\n return estimate(qs, answers, this.rules).high || 1;\n }\n\n private summaryOf(r: ReturnType<typeof estimate>): string {\n const qs = this.questions ?? [];\n const one = qs.find((q) => q.kind === 'one');\n const thing = one ? one.choices.find((c) => c.id === this.answers[one.id]?.[0]) : undefined;\n const many = qs\n .filter((q) => q.kind === 'many' && q.inSummary !== false)\n .flatMap((q) =>\n (this.answers[q.id] ?? []).map((id) => {\n const c = q.choices.find((x) => x.id === id);\n return c ? c.phrase || c.label : id;\n }),\n );\n const name = thing ? thing.phrase || thing.label : '';\n const first = !name\n ? ''\n : many.length\n ? say('You are building {thing} with {list}.', { thing: name, list: this.listOf(many) })\n : say('You are building {thing}.', { thing: name });\n const rest = say('Expect {range} and about {weeks} to a first release.', { range: this.rangeOf(r), weeks: this.weeksWord(r.weeks) });\n return first ? `${first} ${rest}` : rest;\n }\n\n private rangeOf(r: { low: number; high: number }): string {\n return say('{low} to {high}', { low: this.money(r.low), high: this.money(r.high) });\n }\n private teamOf(n: number): string {\n return n === 1 ? this.teamTextOne : this.teamText.replace('{n}', String(n));\n }\n\n private pick(q: EstimatorQuestion, choice: EstimatorChoice, on: boolean): void {\n const now = this.answers[q.id] ?? [];\n this.answers = {\n ...this.answers,\n [q.id]: q.kind === 'many' ? (on ? [...now.filter((id) => id !== choice.id), choice.id] : now.filter((id) => id !== choice.id)) : [choice.id],\n };\n if (on && choice.tip) this.tip = choice.tip;\n this.requestUpdate();\n }\n\n private go(to: number): void {\n const last = (this.questions ?? []).length;\n this.at = Math.max(0, Math.min(last, to));\n this.copied = '';\n this.requestUpdate();\n void this.updateComplete.then(() => (this.renderRoot.querySelector('.current .q') as HTMLElement | null)?.focus({ preventScroll: true }));\n }\n\n private result(): EstimateResult {\n const r = estimate(this.questions ?? [], this.answers, this.rules);\n return {\n low: r.low * (this.unit || 1),\n high: r.high * (this.unit || 1),\n weeks: r.weeks,\n engineers: r.engineers,\n way: r.way,\n summary: this.textOf(r),\n answers: this.answers,\n };\n }\n\n /** The estimate as words to send or copy. */\n private textOf(r: ReturnType<typeof estimate>): string {\n const parts = [this.summaryOf(r), `${this.teamOf(r.engineers)}.`];\n if (r.way) parts.push(`${r.way}.`);\n const picked = (this.questions ?? [])\n .filter((q) => q.short && q.kind !== 'many')\n .map((q) => {\n const c = q.choices.find((x) => x.id === this.answers[q.id]?.[0]);\n return c ? `${q.short}: ${c.label}.` : '';\n })\n .filter(Boolean);\n const many = (this.questions ?? [])\n .filter((q) => q.short && q.kind === 'many' && q.inSummary === false)\n .map((q) => {\n const labels = (this.answers[q.id] ?? []).map((id) => q.choices.find((x) => x.id === id)?.label ?? id);\n return labels.length ? `${q.short}: ${this.listOf(labels)}.` : '';\n })\n .filter(Boolean);\n return [...parts, ...many, ...picked].join(' ');\n }\n\n private send(e: Event): void {\n const result = this.result();\n try {\n sessionStorage.setItem('impakt.estimate', result.summary);\n } catch {\n /* storage can be blocked; the link still goes */\n }\n const go = this.dispatchEvent(new CustomEvent('impakt-estimate', { detail: result, bubbles: true, composed: true, cancelable: true }));\n if (!go) e.preventDefault();\n }\n\n private async copy(): Promise<void> {\n const text = this.result().summary;\n try {\n await navigator.clipboard.writeText(text);\n this.copied = say('Summary copied.');\n } catch {\n this.copied = say('Copying is blocked here. Select the summary above instead.');\n }\n this.requestUpdate();\n }\n\n private heading(text: string): TemplateResult {\n const l = Math.min(Math.max(this.headingLevel || 2, 2), 6);\n return html`<div class=\"q\" role=\"heading\" aria-level=${l} tabindex=\"-1\">${text}</div>`;\n }\n\n private renderQuestion(q: EstimatorQuestion, i: number): TemplateResult {\n const picked = this.answers[q.id] ?? [];\n const current = i === this.at;\n if (q.kind === 'scale') {\n const index = Math.max(\n 0,\n q.choices.findIndex((c) => c.id === picked[0]),\n );\n const chosen = q.choices[index];\n return html`<fieldset class=${current ? 'current' : ''} ?hidden=${!current}>\n <legend>${this.heading(q.heading)}</legend>\n ${q.hint ? html`<p class=\"hint\">${q.hint}</p>` : nothing}\n <div class=\"scale\">\n <input type=\"range\" min=\"0\" max=${Math.max(0, q.choices.length - 1)} step=\"1\" .value=${String(index)} aria-label=${q.heading} aria-valuetext=${chosen?.label ?? ''}\n @input=${(e: Event) => {\n const c = q.choices[Number((e.target as HTMLInputElement).value)];\n if (c) this.pick(q, c, true);\n }}>\n <div class=\"ticks\" aria-hidden=\"true\">${q.choices.map((c, k) => html`<span aria-current=${k === index ? 'true' : nothing}>${c.label}</span>`)}</div>\n ${chosen?.hint ? html`<p class=\"now\">${chosen.hint}</p>` : nothing}\n </div>\n </fieldset>`;\n }\n const many = q.kind === 'many';\n return html`<fieldset class=${current ? 'current' : ''} ?hidden=${!current}>\n <legend>${this.heading(q.heading)}</legend>\n ${q.hint ? html`<p class=\"hint\">${q.hint}</p>` : nothing}\n <div class=\"choices ${many ? 'many' : ''}\">\n ${q.choices.map(\n (c) => html`<label class=\"choice\">\n <input type=${many ? 'checkbox' : 'radio'} name=${`${this.uid}-${q.id}`} value=${c.id} .checked=${picked.includes(c.id)}\n @change=${(e: Event) => this.pick(q, c, (e.target as HTMLInputElement).checked)}>\n <span class=\"label\">${c.label}</span>\n ${c.hint ? html`<span class=\"small\">${c.hint}</span>` : nothing}\n </label>`,\n )}\n </div>\n </fieldset>`;\n }\n\n private renderResult(r: ReturnType<typeof estimate>): TemplateResult {\n const weeks = phaseWeeks(this.phases ?? [], r.weeks);\n const current = this.at === (this.questions ?? []).length;\n return html`<div class=\"result ${current ? 'current' : ''}\" ?hidden=${!current}>\n ${this.heading(this.resultHeading)}\n <p class=\"summary\">${this.summaryOf(r)}</p>\n ${\n (this.phases ?? []).length\n ? html`\n <div class=\"phases\" aria-hidden=\"true\">${(this.phases ?? []).map((_, i) => html`<i style=${`flex-grow:${weeks[i]};background:${toneOf(undefined, i)}`}></i>`)}</div>\n <ul class=\"legend\">${(this.phases ?? []).map((p, i) => html`<li style=${`--c:${toneOf(undefined, i)}`}>${p.label} <b>${this.weeksWord(weeks[i]!)}</b></li>`)}</ul>`\n : nothing\n }\n <dl>\n <div><dt class=\"mono\">${say('Your team')}</dt><dd>${this.teamOf(r.engineers)}</dd></div>\n ${r.way ? html`<div><dt class=\"mono\">${say('Way of working')}</dt><dd>${r.way}</dd></div>` : nothing}\n </dl>\n <div class=\"actions\">\n ${this.contactHref ? html`<a class=\"send\" href=${this.contactHref} @click=${(e: Event) => this.send(e)}>${this.sendLabel} <span class=\"go\" aria-hidden=\"true\">→</span></a>` : nothing}\n <button type=\"button\" class=\"secondary\" @click=${() => this.copy()}>${say('Copy summary')}</button>\n <button type=\"button\" class=\"secondary\" @click=${() => {\n this.reset();\n this.go(0);\n }}>${say('Start again')}</button>\n </div>\n <p class=\"status\" role=\"status\">${this.copied}</p>\n ${this.note ? html`<p class=\"note\">${this.note}</p>` : nothing}\n </div>`;\n }\n\n /** Every question at once, as rows of chips, with the result beside them in ink. */\n private renderAll(r: ReturnType<typeof estimate>): TemplateResult {\n const qs = this.questions ?? [];\n const weeks = phaseWeeks(this.phases ?? [], r.weeks);\n const arrow = html`<svg class=\"go\" viewBox=\"0 0 20 12\" width=\"20\" height=\"12\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M0 6h18M13 1l5 5-5 5\" /></svg>`;\n return html`<div class=\"all\">\n <div class=\"questions\" part=\"questions\">\n ${qs.map((q, i) => {\n const picked = this.answers[q.id] ?? [];\n const many = q.kind === 'many';\n const options = q.choices.map((c) => ({ value: c.id, label: c.label }));\n return html`<impakt-chip-group look=\"site\" part=\"question\" .label=${`${String(i + 1).padStart(2, '0')} · ${q.heading}`} .description=${q.hint ?? ''}\n .options=${options} ?multiple=${many} .values=${many ? picked : []} .value=${many ? '' : (picked[0] ?? '')}\n @impakt-change=${(e: CustomEvent<{ value: string }>) => this.chipsChanged(q, e)}></impakt-chip-group>`;\n })}\n </div>\n <aside class=\"ink\" part=\"panel\">\n <p class=\"mono\">${this.budgetLabel}</p>\n <p class=\"range\" aria-live=\"polite\" aria-atomic=\"true\">${this.rangeOf(r)}</p>\n <p class=\"weeks\">${say('About {weeks} to a first release', { weeks: this.weeksWord(r.weeks) })}</p>\n ${\n (this.phases ?? []).length\n ? html`<ul class=\"rows\" role=\"list\">${(this.phases ?? []).map((phase, i) => html`<li><span>${phase.label}</span><span class=\"length\">${this.weeksWord(weeks[i]!)}</span></li>`)}</ul>`\n : nothing\n }\n ${this.contactHref ? html`<a class=\"cta\" href=${this.contactHref} part=\"send\" @click=${(e: Event) => this.send(e)}><span>${this.sendLabel}</span>${arrow}</a>` : nothing}\n ${r.way ? html`<p class=\"way\">${this.wayLabel || say('Way of working')}: ${r.way}</p>` : nothing}\n ${this.note ? html`<p class=\"note\">${this.note}</p>` : nothing}\n </aside>\n ${this.note ? html`<div class=\"foot\"><p class=\"note\">${this.note}</p></div>` : nothing}\n </div>`;\n }\n\n /** A row of chips changed: one answer, or the set of them. */\n private chipsChanged(q: EstimatorQuestion, e: CustomEvent<{ value: string }>): void {\n const group = e.target as HTMLElement & { values?: string[] };\n const ids = q.kind === 'many' ? [...(group.values ?? [])] : [e.detail?.value].filter((x): x is string => Boolean(x));\n this.answers = { ...this.answers, [q.id]: ids };\n const last = ids.at(-1);\n const tip = q.choices.find((c) => c.id === last)?.tip;\n if (tip) this.tip = tip;\n this.requestUpdate();\n }\n\n render(): TemplateResult {\n const qs = this.questions ?? [];\n if (this.layout === 'all') return this.renderAll(estimate(qs, this.answers, this.rules));\n const total = qs.length;\n const r = estimate(qs, this.answers, this.rules);\n const done = this.at >= total;\n const scale = (0.6 + Math.min(1, r.high / this.most) * 1.1).toFixed(2);\n return html`<div class=\"wrap\">\n <div>\n <div class=\"progress\">\n <p class=\"mono\">${done ? this.resultHeading : say('Step {step} of {steps}', { step: this.at + 1, steps: total })}</p>\n <div class=\"bar\" aria-hidden=\"true\"><i style=${`inline-size:${total ? (done ? 100 : ((this.at + 1) / (total + 1)) * 100) : 0}%`}></i></div>\n </div>\n ${qs.map((q, i) => this.renderQuestion(q, i))}\n ${this.renderResult(r)}\n ${\n done\n ? nothing\n : html`<div class=\"nav\">\n ${this.at > 0 ? html`<button type=\"button\" class=\"secondary\" @click=${() => this.go(this.at - 1)}>${say('Back')}</button>` : nothing}\n <button type=\"button\" class=\"primary\" @click=${() => this.go(this.at + 1)}>${this.at === total - 1 ? say('See my estimate') : say('Next')} <span class=\"go\" aria-hidden=\"true\">→</span></button>\n </div>`\n }\n </div>\n <aside class=\"panel\" part=\"panel\" style=${`--s:${scale}`}>\n <div class=\"glow\" aria-hidden=\"true\"></div>\n <p class=\"mono\">${this.budgetLabel}</p>\n <p class=\"range\" aria-live=\"polite\" aria-atomic=\"true\">${this.rangeOf(r)}</p>\n <p class=\"weeks\">${say('About {weeks} to a first release', { weeks: this.weeksWord(r.weeks) })}</p>\n <p class=\"tip\" aria-live=\"polite\">${this.tip || this.intro}</p>\n </aside>\n </div>`;\n }\n}\n\ncustomElements.define('impakt-estimator', ImpaktEstimator);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-estimator': ImpaktEstimator;\n }\n}\n"],"mappings":";AAUA,SAAS,KAAK,MAAM,SAAS,iBAAsC;AACnE;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,EACA;AAAA,OACK;AAoEP,IAAM,MAAM,CAAC,OAAiB,GAAG,OAAO,CAAC,GAAG,MAAM,IAAI,GAAG,CAAC;AAC1D,IAAM,UAAU,CAAC,OAAwB,SACvC,MAAM,KAAK,CAAC,MAAM,OAAO,EAAE,UAAU,YAAY,OAAO,EAAE,KAAK,KAAK,MAAM,GAAG,EAAE;AAG1E,SAAS,SACd,WACA,SACA,OAC4F;AAC5F,QAAM,SAAS,UAAU,QAAQ,CAAC,OAAO,QAAQ,EAAE,EAAE,KAAK,CAAC,GAAG,QAAQ,CAAC,OAAO,EAAE,QAAQ,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;AACnH,MAAI,OAAO,IAAI,OAAO,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAC7C,MAAI,QAAQ,IAAI,OAAO,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAC/C,aAAW,KAAK,QAAQ;AACtB,YAAQ,EAAE,cAAc;AACxB,aAAS,EAAE,eAAe;AAAA,EAC5B;AACA,QAAM,aAAa,QAAQ,MAAM,OAAO,IAAI,GAAG,aAAa,KAAK,IAAI,OAAO,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AACxG,SAAO;AAAA,I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DACjE,eAAe,QAAS,OAAO,OAAQ,KAAK,KAAK,MAAM,QAAQ,KAAM,MAAO,CAAC,GAAG;AAAA;AAAA,UAE/H,GAAG,IAAI,CAAC,GAAG,MAAM,KAAK,eAAe,GAAG,CAAC,CAAC,CAAC;AAAA,UAC3C,KAAK,aAAa,CAAC,CAAC;AAAA,UAEpB,OACI,UACA;AAAA,YACF,KAAK,KAAK,IAAI,sDAAsD,MAAM,KAAK,GAAG,KAAK,KAAK,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,cAAc,OAAO;AAAA,yDACrF,MAAM,KAAK,GAAG,KAAK,KAAK,CAAC,CAAC,IAAI,KAAK,OAAO,QAAQ,IAAI,IAAI,iBAAiB,IAAI,IAAI,MAAM,CAAC;AAAA,eAE3I;AAAA;AAAA,gDAEwC,OAAO,KAAK,EAAE;AAAA;AAAA,0BAEpC,KAAK,WAAW;AAAA,iEACuB,KAAK,QAAQ,CAAC,CAAC;AAAA,2BACrD,IAAI,oCAAoC,EAAE,OAAO,KAAK,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC;AAAA,4CAC1D,KAAK,OAAO,KAAK,KAAK;AAAA;AAAA;AAAA,EAGhE;AACF;AAEA,eAAe,OAAO,oBAAoB,eAAe;","names":[]}
@@ -16,7 +16,7 @@ import {
16
16
 
17
17
  // packages/blocks/src/components/g2-case.ts
18
18
  import { css, html, nothing, svg } from "lit";
19
- import { ImpaktElement, fontWeight, say, space, t, visuallyHidden } from "@atomic-ui/ui";
19
+ import { ImpaktElement, R, fontWeight, revealAt, revealStyles, say, space, t, visuallyHidden } from "@atomic-ui/ui";
20
20
  var STEP = 40;
21
21
  var TOP = 40;
22
22
  var ImpaktProcessLine = class extends ImpaktElement {
@@ -71,7 +71,16 @@ var ImpaktProcessLine = class extends ImpaktElement {
71
71
  li::after { background: CanvasText; }
72
72
  .flag { border: 1px solid CanvasText; }
73
73
  }
74
- `
74
+ /* 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. */
75
+ :host([data-motion]) .visual svg { animation: ik-line-draw ${R.line} ${R.shape} ${revealAt(0)} both; }
76
+ :host([data-motion]) .lineLabel { animation: ik-reveal-type ${R.type} ${R.arrive} ${revealAt(0)} both; }
77
+ :host([data-motion]) .ring { animation: ik-reveal-mark ${R.mark} ${R.arrive} ${revealAt()} both; }
78
+ :host([data-motion]) :is(.vlabel, .visual .flag) { animation: ik-reveal-fade ${R.mark} ${R.arrive} ${revealAt()} both; }
79
+ :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; }
80
+ @keyframes ik-line-draw { from { clip-path: inset(-12px 100% -12px -12px); } to { clip-path: inset(-12px -12px -12px -12px); } }
81
+ @keyframes ik-line-fill { from { background: ${band}; } }
82
+ `,
83
+ revealStyles
75
84
  ];
76
85
  }
77
86
  render() {
@@ -82,23 +91,42 @@ var ImpaktProcessLine = class extends ImpaktElement {
82
91
  const maxDepth = Math.max(...nodes.map(depthOf));
83
92
  const height = Math.round(TOP + maxDepth * STEP + 55);
84
93
  const xs = nodes.map((node, i) => {
85
- const at = Number(node.at);
86
- return node.at != null && Number.isFinite(at) ? Math.max(0, Math.min(1, at)) : (i + 0.5) / n;
94
+ const at2 = Number(node.at);
95
+ return node.at != null && Number.isFinite(at2) ? Math.max(0, Math.min(1, at2)) : (i + 0.5) / n;
87
96
  });
88
97
  const pts = nodes.map((node, i) => ({ x: xs[i] * 1e3, y: TOP + depthOf(node) * STEP }));
98
+ const run = pts.map((p, i) => {
99
+ let k = 1;
100
+ for (let j = i - 1; j >= 0 && pts[j].y === p.y; j--) k++;
101
+ for (let j = i + 1; j < n && pts[j].y === p.y; j++) k++;
102
+ return k;
103
+ });
104
+ const BEND = 40 / 1080 * 1e3;
105
+ const at = (x) => Math.round(x * 100) / 100;
106
+ const bend = (fromX, fromY, toX, toY) => {
107
+ const mid = at((fromX + toX) / 2);
108
+ return ` L${at(fromX)} ${fromY} C${mid} ${fromY} ${mid} ${toY} ${at(toX)} ${toY}`;
109
+ };
89
110
  let d = `M0 ${pts[0].y} L${pts[0].x} ${pts[0].y}`;
90
111
  for (let i = 1; i < n; i++) {
91
112
  const a = pts[i - 1];
92
113
  const b = pts[i];
93
- const curve = (from, to) => {
94
- const mid = (from.x + to.x) / 2;
95
- return ` C${mid} ${from.y} ${mid} ${to.y} ${to.x} ${to.y}`;
96
- };
97
- if (a.y === b.y) d += ` L${b.x} ${b.y}`;
98
- else if (a.y > TOP && b.y > TOP) {
99
- const peak = { x: (a.x + b.x) / 2, y: TOP };
100
- d += curve(a, peak) + curve(peak, b);
101
- } else d += curve(a, b);
114
+ const gap = b.x - a.x;
115
+ if (a.y === b.y) {
116
+ d += ` L${b.x} ${b.y}`;
117
+ continue;
118
+ }
119
+ if (a.y > TOP && b.y > TOP) {
120
+ const w2 = Math.min(BEND, gap / 2);
121
+ d += bend(a.x, a.y, a.x + w2, TOP) + bend(b.x - w2, TOP, b.x, b.y);
122
+ continue;
123
+ }
124
+ const w = Math.min(BEND, gap);
125
+ const down = b.y > a.y;
126
+ const lone = down ? run[i] === 1 : run[i - 1] === 1;
127
+ const atStart = down ? !lone : lone;
128
+ d += atStart ? bend(a.x, a.y, a.x + w, b.y) : bend(b.x - w, a.y, b.x, b.y);
129
+ d += ` L${b.x} ${b.y}`;
102
130
  }
103
131
  d += ` L1000 ${pts[n - 1].y}`;
104
132
  const pct = (i) => `${xs[i] * 100}%`;
@@ -108,17 +136,17 @@ var ImpaktProcessLine = class extends ImpaktElement {
108
136
  return placed ? `calc(${near * 100}cqi + 0.25rem)` : `calc(${100 / n}cqi - 0.5rem)`;
109
137
  };
110
138
  const listed = nodes.filter((node) => node.label || node.flag);
111
- return html`<div class="visual" part="drawing" aria-hidden="true" style="block-size:${height}px">
139
+ return html`<div class="visual" part="drawing" aria-hidden="true" style="block-size:${height}px;--n:${n}">
112
140
  <svg viewBox="0 0 1000 ${height}" preserveAspectRatio="none" focusable="false">${svg`<path d=${d} />`}</svg>
113
141
  ${this.lineLabel ? html`<span class="lineLabel" style="inset-block-start:${TOP - 66}px">${this.lineLabel}</span>` : nothing}
114
142
  ${nodes.map((node, i) => {
115
143
  const y = pts[i].y;
116
144
  const onMain = depthOf(node) === 0;
117
- const style = (edge) => `inset-inline-start:${pct(i)};${edge};--slot:${slot(i)}`;
145
+ const style = (edge) => `inset-inline-start:${pct(i)};${edge};--slot:${slot(i)};--i:${i}`;
118
146
  const label = !node.label ? nothing : onMain ? node.flag ? nothing : html`<span class="vlabel" style=${style(`inset-block-end:${height - y + 12}px`)}>${node.label}</span>` : html`<span class="vlabel" style=${style(`inset-block-start:${y + 14}px`)}>${node.label}</span>`;
119
- return html`<span class="ring${node.current ? " current" : ""}${node.flag ? " flagged" : ""}" style="inset-inline-start:${pct(i)};inset-block-start:${y}px"></span>
147
+ 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>
120
148
  ${label}
121
- ${node.flag ? html`<span class="flag" style="inset-inline-start:${pct(i)};inset-block-start:${y - 15}px">${node.flag}</span>` : nothing}`;
149
+ ${node.flag ? html`<span class="flag" style="inset-inline-start:${pct(i)};inset-block-start:${y - 15}px;--i:${i}">${node.flag}</span>` : nothing}`;
122
150
  })}
123
151
  </div>
124
152
  <ol part="list" role="list" aria-label=${this.label || nothing}>
@@ -191,9 +219,10 @@ var ImpaktCallout = class extends ImpaktElement {
191
219
  ...ImpaktElement.styles,
192
220
  css`
193
221
  :host { display: block; }
194
- .panel { padding: ${space(8)} ${space(8)} ${space(10)}; background: ${ink}; color: ${paper}; border: 1px solid ${ink}; }
195
- .label { margin: 0 0 ${space(4)}; ${monoLabel}; font-weight: ${fontWeight("medium")}; color: ${accentOnInk}; }
196
- .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; }
222
+ /* 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. */
223
+ .panel { padding: calc(${space(8)} - 1px); background: ${ink}; color: ${paper}; border: 1px solid ${ink}; }
224
+ .label { margin: 0 0 12px; ${monoLabel}; font-weight: ${fontWeight("medium")}; color: ${accentOnInk}; }
225
+ .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; }
197
226
  @media (prefers-color-scheme: dark) { .panel { border-color: ${inkLine}; } }
198
227
  @media (max-width: 30rem) { .panel { padding: ${space(6)}; } }
199
228
  @media (forced-colors: active) { .panel { border-color: CanvasText; } }
@@ -230,12 +259,13 @@ var ImpaktHypothesisCard = class extends ImpaktElement {
230
259
  ...ImpaktElement.styles,
231
260
  css`
232
261
  :host { display: block; block-size: 100%; }
233
- 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}; }
262
+ /* The hypothesis of 21:1417: 24px inside, its parts 14px apart, the statement 20px on 1.2, so a two-line card is 164px. */
263
+ 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}; }
234
264
  .top { display: flex; justify-content: space-between; align-items: center; gap: ${space(2)}; flex-wrap: wrap; min-block-size: 22px; }
235
265
  .number { font-family: ${t.fontMono}; font-size: 0.75rem; letter-spacing: 0.06em; }
236
266
  .impact { margin: 0; padding: 3px 7px; ${monoLabel}; font-weight: ${fontWeight("medium")}; border: 1px solid ${t.text}; color: ${t.text}; }
237
267
  :host([impact='high']) .impact { background: ${accent}; color: ${accentOn}; border-color: ${accentOn}; }
238
- .statement { margin: 0; font-family: ${t.fontHeading}; font-size: 1.25rem; line-height: 1.35; letter-spacing: -0.01em; }
268
+ .statement { margin: 0; font-family: ${t.fontHeading}; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }
239
269
  .metric { margin: 0; ${monoLabel}; color: ${t.textMuted}; }
240
270
  @media (forced-colors: active) { article, .impact { border-color: CanvasText; } }
241
271
  `
@@ -313,4 +343,4 @@ export {
313
343
  ImpaktHypothesisCard,
314
344
  ImpaktBrowserFrame
315
345
  };
316
- //# sourceMappingURL=chunk-H262HKSL.js.map
346
+ //# sourceMappingURL=chunk-7OFH762N.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, 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,cAA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Weight, 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
- .window { inset-inline: 3.57cqi; inset-block: 7.14cqi 3.57cqi; padding: 4.5cqi 5cqi; 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: minmax(0, 1fr) 44px minmax(0, 1fr); }
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
- .window .comment { font-style: italic; }
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: 3ch 0; justify-content: flex-start; font-family: ${t.fontMono}; font-size: inherit; font-weight: ${fontWeight("regular")}; color: var(--impakt-journey-code-words, var(--ik-ink-inverse, ${t.surfaceCard})); }
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(26.79cqi - 22px); justify-content: flex-start; padding-inline: calc(8.57cqi + 3ch) 8.57cqi; font-family: ${t.fontMono}; font-size: clamp(0.5rem, 2.32cqi, 0.8125rem); font-weight: ${fontWeight("regular")}; }
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
- .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)); }
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-WTVF3JRL.js.map
494
+ //# sourceMappingURL=chunk-GDATDR2Q.js.map