@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.
@@ -1,4 +1,4 @@
1
- /* @atomic-ui/blocks version 0.12.0, standalone. Load atomic-ui.js from @atomic-ui/ui first, from the same folder. */
1
+ /* @atomic-ui/blocks version 0.12.1, standalone. Load atomic-ui.js from @atomic-ui/ui first, from the same folder. */
2
2
  import"./atomic-ui.js";import{css as et,html as N,nothing as ie}from"./atomic-ui.js";import{ImpaktElement as ve,fontSize as Ye,fontWeight as Ce,lineHeight as Yt,space as y,spaceAround as ei,t as w,token as Mr,type as Ue,iconSvg as Gt}from"./atomic-ui.js";var ha=(s,t,e)=>N`<div class=${e} role="heading" aria-level=${s}>${t}</div>`,Ha=et`
3
3
  .h { margin: 0; color: ${w.textHeading}; font-family: ${w.fontHeading}; font-weight: ${Ce("bold")}; line-height: ${Yt("tight")}; }
4
4
  .eyebrow { margin: 0; color: var(--impakt-eyebrow, var(--impakt-color-text-eyebrow, ${w.brand})); ${Ue("sm")} font-size: var(--impakt-font-size-eyebrow, var(--impakt-font-size-sm, 0.875rem)); font-family: ${w.fontEyebrow}; font-weight: var(--impakt-font-weight-eyebrow, ${Ce("semibold")}); letter-spacing: ${w.trackingWide}; text-transform: uppercase; }
@@ -1548,14 +1548,14 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1548
1548
  </li>`)}
1549
1549
  </ul>`:null}
1550
1550
  </div>
1551
- `}};customElements.define("impakt-scrubber",Fi);import{css as lt,html as C,nothing as ge,svg as kt}from"./atomic-ui.js";import{say as Se,ImpaktElement as Re,focusRing as is,visuallyHidden as as,fontSize as wt,fontWeight as Xi,space as E,spaceAround as jt,t as B,token as rs,type as ss,iconSvg as ns,toneOf as Ea,TONE as gr}from"./atomic-ui.js";function Ba(s,t){let e=()=>{s.setAttribute("shown",""),t?.()};if(typeof IntersectionObserver!="function")return e(),()=>{};let i=new IntersectionObserver(a=>{a.some(r=>r.isIntersecting)&&(e(),i.disconnect())},{threshold:.25});return i.observe(s),()=>i.disconnect()}var br=()=>typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches,Vi=lt`.mono { font-family: ${B.fontMono}; font-size: ${wt("xs")}; letter-spacing: 0.04em; }`,os=(s,t,e)=>{switch(Math.min(Math.max(s||3,2),6)){case 2:return C`<h2 class=${e}>${t}</h2>`;case 4:return C`<h4 class=${e}>${t}</h4>`;case 5:return C`<h5 class=${e}>${t}</h5>`;case 6:return C`<h6 class=${e}>${t}</h6>`;default:return C`<h3 class=${e}>${t}</h3>`}},Ji=lt`
1551
+ `}};customElements.define("impakt-scrubber",Fi);import{css as lt,html as C,nothing as ge,svg as kt}from"./atomic-ui.js";import{say as Se,ImpaktElement as Re,focusRing as is,visuallyHidden as as,fontSize as wt,fontWeight as Xi,space as L,spaceAround as jt,t as B,token as rs,type as ss,iconSvg as ns,toneOf as Ea,TONE as gr}from"./atomic-ui.js";function Ba(s,t){let e=()=>{s.setAttribute("shown",""),t?.()};if(typeof IntersectionObserver!="function")return e(),()=>{};let i=new IntersectionObserver(a=>{a.some(r=>r.isIntersecting)&&(e(),i.disconnect())},{threshold:.25});return i.observe(s),()=>i.disconnect()}var br=()=>typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches,Vi=lt`.mono { font-family: ${B.fontMono}; font-size: ${wt("xs")}; letter-spacing: 0.04em; }`,os=(s,t,e)=>{switch(Math.min(Math.max(s||3,2),6)){case 2:return C`<h2 class=${e}>${t}</h2>`;case 4:return C`<h4 class=${e}>${t}</h4>`;case 5:return C`<h5 class=${e}>${t}</h5>`;case 6:return C`<h6 class=${e}>${t}</h6>`;default:return C`<h3 class=${e}>${t}</h3>`}},Ji=lt`
1552
1552
  .h { margin: 0; color: var(--impakt-heading, ${B.textHeading}); font-family: ${B.fontHeading}; font-weight: ${Xi("bold")}; letter-spacing: ${B.trackingTight}; text-wrap: balance; }
1553
1553
  .body { margin: 0; color: inherit; opacity: 0.8; text-wrap: pretty; }
1554
1554
  .meta { margin: 0; color: inherit; opacity: 0.72; text-transform: uppercase; }
1555
1555
  .sr-only { ${as} }
1556
1556
  `,Di=class extends Re{constructor(){super();this.raf=0;this.label="",this.heading="",this.text="",this.beforeSrc="",this.beforeAlt="",this.afterSrc="",this.afterAlt="",this.items=[],this.href="",this.headingLevel=3,this.spaceAbove="none",this.spaceBelow="none"}static{this.properties={label:{type:String},heading:{type:String},text:{type:String},beforeSrc:{type:String,attribute:"before-src"},beforeAlt:{type:String,attribute:"before-alt"},afterSrc:{type:String,attribute:"after-src"},afterAlt:{type:String,attribute:"after-alt"},items:{type:Array},href:{type:String},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}static{this.styles=[...Re.styles,jt,Vi,Ji,lt`
1557
1557
  :host { display: block; }
1558
- article { display: flex; flex-direction: column; gap: ${E(3)}; }
1558
+ article { display: flex; flex-direction: column; gap: ${L(3)}; }
1559
1559
  .media { border-radius: ${B.radiusXl}; overflow: clip; background: ${B.surfaceInset}; }
1560
1560
  .media img { display: block; inline-size: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
1561
1561
  impakt-before-after { display: block; }
@@ -1563,8 +1563,8 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1563
1563
  .h a { color: inherit; text-decoration: none; }
1564
1564
  .h a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
1565
1565
  .h a:focus-visible { outline: none; box-shadow: ${B.focusShadow}; border-radius: ${B.radiusSm}; }
1566
- ul { list-style: none; margin: ${E(1)} 0 0; padding: 0; display: grid; gap: ${E(1)}; }
1567
- li { display: grid; grid-template-columns: 1.25em minmax(0, 1fr); gap: ${E(2)}; padding: ${E(1)} ${E(3)}; border-radius: ${B.radius}; }
1566
+ ul { list-style: none; margin: ${L(1)} 0 0; padding: 0; display: grid; gap: ${L(1)}; }
1567
+ li { display: grid; grid-template-columns: 1.25em minmax(0, 1fr); gap: ${L(2)}; padding: ${L(1)} ${L(3)}; border-radius: ${B.radius}; }
1568
1568
  li[data-change='added'] { background: ${B.successSubtle}; color: ${B.successText}; }
1569
1569
  li[data-change='removed'] { background: ${B.dangerSubtle}; color: ${B.dangerText}; }
1570
1570
  li[data-change='same'] { color: ${B.textMuted}; }
@@ -1577,7 +1577,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1577
1577
  ${(this.items??[]).length?C`<ul class="mono" part="diff">${this.items.map(n=>C`<li data-change=${n.change}><span class="sign" aria-hidden="true">${a[n.change]??" "}</span><span><span class="sr-only">${r[n.change]??""}: </span>${n.text}</span></li>`)}</ul>`:ge}
1578
1578
  </article>`}},_i=class extends Re{static{this.properties={items:{type:Array},columns:{type:String,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.items=[],this.columns="two",this.headingLevel=3,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...Re.styles,jt,lt`
1579
1579
  :host { display: block; container-type: inline-size; }
1580
- ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${E(12)} ${E(10)}; }
1580
+ ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${L(12)} ${L(10)}; }
1581
1581
  :host([columns='one']) ul { grid-template-columns: minmax(0, 1fr); }
1582
1582
  :host([columns='three']) ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
1583
1583
  @container (max-width: 44rem) { ul, :host([columns='three']) ul { grid-template-columns: minmax(0, 1fr); } }
@@ -1589,18 +1589,18 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1589
1589
  :host { display: block; container-type: inline-size; --trunk: color-mix(in srgb, currentColor 70%, transparent); }
1590
1590
  ul { list-style: none; margin: 0; padding: 0; position: relative; }
1591
1591
  ul::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 11px; inline-size: 3px; border-radius: 3px; background: var(--trunk); }
1592
- li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); padding-block: ${E(6)}; }
1592
+ li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); padding-block: ${L(6)}; }
1593
1593
  .graph { position: relative; }
1594
- .graph svg { position: absolute; inset-block-start: -${E(6)}; inset-inline-start: 0; inline-size: 96px; block-size: calc(100% + ${E(12)}); overflow: visible; }
1595
- .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: ${E(4)} ${E(10)}; align-items: start; }
1596
- .path { margin: 0 0 ${E(2)}; opacity: 0.72; }
1594
+ .graph svg { position: absolute; inset-block-start: -${L(6)}; inset-inline-start: 0; inline-size: 96px; block-size: calc(100% + ${L(12)}); overflow: visible; }
1595
+ .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: ${L(4)} ${L(10)}; align-items: start; }
1596
+ .path { margin: 0 0 ${L(2)}; opacity: 0.72; }
1597
1597
  .h { font-size: ${wt("3xl")}; line-height: 1.05; }
1598
1598
  .h a { color: inherit; text-decoration: none; }
1599
1599
  .h a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
1600
1600
  .h a:focus-visible { outline: none; box-shadow: ${B.focusShadow}; border-radius: ${B.radiusSm}; }
1601
- .detail { display: flex; flex-direction: column; gap: ${E(3)}; padding-block-start: ${E(1)}; }
1601
+ .detail { display: flex; flex-direction: column; gap: ${L(3)}; padding-block-start: ${L(1)}; }
1602
1602
  .tags { margin: 0; opacity: 0.7; text-transform: uppercase; }
1603
- .end { position: relative; display: flex; align-items: center; gap: ${E(3)}; padding-block-start: ${E(4)}; }
1603
+ .end { position: relative; display: flex; align-items: center; gap: ${L(3)}; padding-block-start: ${L(4)}; }
1604
1604
  .end::before { content: ''; inline-size: 16px; block-size: 16px; margin-inline-start: 5px; border-radius: 50%; background: currentColor; }
1605
1605
  @container (max-width: 44rem) {
1606
1606
  li { grid-template-columns: 56px minmax(0, 1fr); }
@@ -1612,9 +1612,9 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1612
1612
  :host([look='mono']) { --trunk: currentColor; --gx: 60px; }
1613
1613
  :host([look='mono']) ul::before { inline-size: 1px; border-radius: 0; }
1614
1614
  :host([look='mono']) .graph svg path { stroke-width: 1.5; }
1615
- :host([look='mono']) .ring { position: absolute; inset-inline-start: calc(var(--gx) - 5px); inset-block-start: calc(-1 * ${E(6)} + 0.43 * (100% + 2 * ${E(6)}) - 5px); inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1px solid currentColor; background: ${B.surfaceCard}; }
1615
+ :host([look='mono']) .ring { position: absolute; inset-inline-start: calc(var(--gx) - 5px); inset-block-start: calc(-1 * ${L(6)} + 0.43 * (100% + 2 * ${L(6)}) - 5px); inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1px solid currentColor; background: ${B.surfaceCard}; }
1616
1616
  :host([look='mono']) .ring.current { background: ${rs("color.accent.default","#ffd43b")}; }
1617
- :host([look='mono']) .text { padding-block-end: ${E(6)}; border-block-end: ${B.borderThin} solid ${B.rule}; }
1617
+ :host([look='mono']) .text { padding-block-end: ${L(6)}; border-block-end: ${B.borderThin} solid ${B.rule}; }
1618
1618
  :host([look='mono']) li { padding-block-end: 0; }
1619
1619
  :host([look='mono']) .path { font-size: 0.6875rem; letter-spacing: ${B.trackingWide}; text-transform: uppercase; opacity: 1; color: ${B.textMuted}; }
1620
1620
  :host([look='mono']) .h { font-size: clamp(1.5rem, 4cqi, 2rem); font-weight: ${Xi("semibold")}; letter-spacing: -0.03em; }
@@ -1622,13 +1622,15 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1622
1622
  :host([look='mono']) .body { color: ${B.textMuted}; opacity: 1; }
1623
1623
  :host([look='mono']) .end { font-size: 0.6875rem; letter-spacing: ${B.trackingWide}; text-transform: uppercase; }
1624
1624
  /* The trunk runs on into its end dot, which sits on the trunk; the words line up with the rows' words. */
1625
- :host([look='mono']) .end::before { flex: none; inline-size: 8px; block-size: 8px; margin-inline: 7.5px calc(96px - 15.5px - ${E(3)}); }
1626
- :host([look='mono']) .end::after { content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 11px; inline-size: 1px; block-size: calc(${E(4)} + (100% - ${E(4)}) / 2); background: var(--trunk); }
1625
+ :host([look='mono']) .end::before { flex: none; inline-size: 8px; block-size: 8px; margin-inline: 7.5px calc(96px - 15.5px - ${L(3)}); }
1626
+ :host([look='mono']) .end::after { content: ''; position: absolute; inset-block-start: -${L(10)}; inset-inline-start: 11px; inline-size: 1px; block-size: calc(${L(14)} + (100% - ${L(4)}) / 2); background: var(--trunk); }
1627
+ /* The last branch rejoins the trunk at the foot of the list, not past it, so nothing runs beyond the end dot. */
1628
+ :host([look='mono']) li:last-child .graph svg { block-size: calc(100% + ${L(6)}); }
1627
1629
  @container (max-width: 44rem) {
1628
1630
  /* Set on the list, since a container query cannot restyle the container itself. */
1629
1631
  :host([look='mono']) ul { --gx: 35px; }
1630
1632
  :host([look='mono']) .tags { display: none; }
1631
- :host([look='mono']) .end::before { margin-inline-end: calc(56px - 15.5px - ${E(3)}); }
1633
+ :host([look='mono']) .end::before { margin-inline-end: calc(56px - 15.5px - ${L(3)}); }
1632
1634
  }
1633
1635
  @media (forced-colors: active) { :host([look='mono']) .ring.current { background: Highlight; } }
1634
1636
  /* Branch draw: each branch opens down from the trunk, 120 ms after the one above, then its dot pops. */
@@ -1656,11 +1658,11 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1656
1658
  </li>`})}</ul>
1657
1659
  ${this.trunk?C`<p class="end mono" part="trunk">${this.trunk}</p>`:ge}`}},Yi=class extends Re{constructor(){super();this.unwatch=()=>{};this.counted=null;this.items=[],this.summary="",this.spaceAbove="none",this.spaceBelow="none"}static{this.properties={items:{type:Array},summary:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}static{this.styles=[...Re.styles,jt,Vi,Ji,lt`
1658
1660
  :host { display: block; container-type: inline-size; }
1659
- .summary { display: inline-flex; align-items: center; gap: ${E(2)}; margin: 0 0 ${E(6)}; padding: ${E(1)} ${E(3)}; border-radius: ${B.radiusXl}; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
1661
+ .summary { display: inline-flex; align-items: center; gap: ${L(2)}; margin: 0 0 ${L(6)}; padding: ${L(1)} ${L(3)}; border-radius: ${B.radiusXl}; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
1660
1662
  .summary::before { content: ''; inline-size: 8px; block-size: 8px; border-radius: 50%; background: ${B.success}; }
1661
1663
  /* The rows share one grid, so the figure column fits the widest figure and every row lines up. */
1662
- ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 32px max-content minmax(0, 1fr) auto; column-gap: ${E(6)}; }
1663
- li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding-block: ${E(5)}; border-block-end: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
1664
+ ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 32px max-content minmax(0, 1fr) auto; column-gap: ${L(6)}; }
1665
+ li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding-block: ${L(5)}; border-block-end: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
1664
1666
  /* Checks run: each tick pops in, 150 ms after the one above. */
1665
1667
  @media (prefers-reduced-motion: no-preference) {
1666
1668
  .tick { transform: scale(0); transition: transform 600ms cubic-bezier(.34, 1.56, .64, 1) calc(var(--i, 0) * 150ms); }
@@ -1674,7 +1676,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1674
1676
  .status { margin: 0; opacity: 0.72; }
1675
1677
  @container (max-width: 40rem) {
1676
1678
  ul { grid-template-columns: 28px minmax(0, 1fr); }
1677
- li { row-gap: ${E(1)}; }
1679
+ li { row-gap: ${L(1)}; }
1678
1680
  .label, .status { grid-column: 2; }
1679
1681
  .figure { font-size: ${wt("4xl")}; }
1680
1682
  }
@@ -1715,7 +1717,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1715
1717
  </g>`:ge}
1716
1718
  ${de.map(H=>kt`<text x=${n(H)} y=${m-10} text-anchor="middle" class="faint">${ma} ${H}</text>`)}
1717
1719
  </svg>
1718
- </figure>`}};customElements.define("impakt-release-card",Di);customElements.define("impakt-release-list",_i);customElements.define("impakt-branch-list",Ui);customElements.define("impakt-check-list",Yi);customElements.define("impakt-branch-timeline",Gi);import{css as De,html as S,nothing as Q}from"./atomic-ui.js";import{ImpaktElement as te,focusRing as ds,fontWeight as Fe,say as xr,space as L,spaceAround as ps,t as T}from"./atomic-ui.js";import{css as cs,unsafeCSS as qt}from"./atomic-ui.js";import{token as ct}from"./atomic-ui.js";var xe=ct("color.ink","#111111"),qe=ct("color.paper","#EFEFED"),fr=ct("color.ink-raised","#1C1C1C"),dt=ct("color.ink-line","#2E2E2E"),Pt=ct("color.ink-muted","#A8A8A6"),ae=ct("color.accent.default","#FFD43B"),ye=ct("color.accent.on","#111111"),Ot=qt("var(--impakt-band, var(--impakt-color-ink, #111111))"),ze=qt("var(--impakt-band-on, var(--impakt-color-paper, #EFEFED))"),Pe=qt("var(--impakt-band-muted, var(--impakt-color-ink-muted, #A8A8A6))"),Wt=qt("var(--impakt-color-band-raised, color-mix(in srgb, var(--impakt-band-on, #EFEFED) 6%, var(--impakt-band, var(--impakt-color-ink, #111111))))"),Oe=qt("var(--impakt-color-band-line, color-mix(in srgb, var(--impakt-band-on, #EFEFED) 16%, var(--impakt-band, var(--impakt-color-ink, #111111))))"),V=cs`
1720
+ </figure>`}};customElements.define("impakt-release-card",Di);customElements.define("impakt-release-list",_i);customElements.define("impakt-branch-list",Ui);customElements.define("impakt-check-list",Yi);customElements.define("impakt-branch-timeline",Gi);import{css as De,html as S,nothing as Q}from"./atomic-ui.js";import{ImpaktElement as te,focusRing as ds,fontWeight as Fe,say as xr,space as E,spaceAround as ps,t as T}from"./atomic-ui.js";import{css as cs,unsafeCSS as qt}from"./atomic-ui.js";import{token as ct}from"./atomic-ui.js";var xe=ct("color.ink","#111111"),qe=ct("color.paper","#EFEFED"),fr=ct("color.ink-raised","#1C1C1C"),dt=ct("color.ink-line","#2E2E2E"),Pt=ct("color.ink-muted","#A8A8A6"),ae=ct("color.accent.default","#FFD43B"),ye=ct("color.accent.on","#111111"),Ot=qt("var(--impakt-band, var(--impakt-color-ink, #111111))"),ze=qt("var(--impakt-band-on, var(--impakt-color-paper, #EFEFED))"),Pe=qt("var(--impakt-band-muted, var(--impakt-color-ink-muted, #A8A8A6))"),Wt=qt("var(--impakt-color-band-raised, color-mix(in srgb, var(--impakt-band-on, #EFEFED) 6%, var(--impakt-band, var(--impakt-color-ink, #111111))))"),Oe=qt("var(--impakt-color-band-line, color-mix(in srgb, var(--impakt-band-on, #EFEFED) 16%, var(--impakt-band, var(--impakt-color-ink, #111111))))"),V=cs`
1719
1721
  font-family: var(--impakt-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
1720
1722
  font-size: 0.6875rem;
1721
1723
  font-weight: 400;
@@ -1735,15 +1737,15 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1735
1737
  >${e?S`<span class="index" part="index">${e}</span>`:Q}${i?S`<span class="phase" part="phase">${i}</span>`:Q}${a?S`<span class="label" part="label">${a}</span>`:Q}</span
1736
1738
  >`}},Ki=class extends te{static{this.properties={label:{type:String},heading:{type:String},lead:{type:String},size:{type:String,reflect:!0},level:{type:Number,reflect:!0},leadPosition:{type:String,reflect:!0,attribute:"lead-position"},stage:{type:String},stageOnInk:{type:Boolean,attribute:"stage-on-ink"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.label="",this.heading="",this.lead="",this.size="m",this.level=2,this.leadPosition="below",this.stage="",this.stageOnInk=!1,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...te.styles,ps,De`
1737
1739
  :host { display: block; container-type: inline-size; color: ${T.text}; }
1738
- .top { display: flex; align-items: center; justify-content: space-between; gap: ${L(4)}; min-block-size: 29px; }
1740
+ .top { display: flex; align-items: center; justify-content: space-between; gap: ${E(4)}; min-block-size: 29px; }
1739
1741
  .label { margin: 0; font-family: ${T.fontMono}; font-size: 0.875rem; line-height: 1.4; color: ${T.textMuted}; }
1740
- .body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: ${L(10)}; row-gap: ${L(6)}; align-items: end; margin-block-start: ${L(6)}; }
1742
+ .body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: ${E(10)}; row-gap: ${E(6)}; align-items: end; margin-block-start: ${E(6)}; }
1741
1743
  .heading { margin: 0; font-family: ${T.fontHeading}; font-weight: ${Fe("semibold")}; color: var(--impakt-color-text-heading, ${T.text}); text-wrap: balance; overflow-wrap: anywhere; }
1742
1744
  :host([size='m']) .heading { font-size: clamp(2.25rem, 1.2rem + 4cqi, 3.25rem); line-height: 1; letter-spacing: -0.04em; max-inline-size: 11.5em; }
1743
1745
  :host([size='l']) .heading { font-size: clamp(2.5rem, 1.2rem + 5cqi, 4rem); line-height: 1; letter-spacing: -0.04em; max-inline-size: 11.5em; }
1744
1746
  :host([size='xl']) .heading { font-size: clamp(3rem, 0.8rem + 10cqi, 7.5rem); line-height: 0.95; letter-spacing: -0.05em; }
1745
- .lead { margin: ${L(5)} 0 0; max-inline-size: 36rem; font-size: 1rem; line-height: 1.55; color: ${T.textMuted}; }
1746
- .side { display: grid; gap: ${L(6)}; justify-items: end; }
1747
+ .lead { margin: ${E(5)} 0 0; max-inline-size: 36rem; font-size: 1rem; line-height: 1.55; color: ${T.textMuted}; }
1748
+ .side { display: grid; gap: ${E(6)}; justify-items: end; }
1747
1749
  /* Beside a picture in the aside, such as the journey button, the heading sits level with the middle of it. */
1748
1750
  .body.aside { align-items: center; }
1749
1751
  .side .lead { margin: 0; max-inline-size: 340px; inline-size: 340px; }
@@ -1765,19 +1767,19 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1765
1767
  </div>
1766
1768
  </header>`}hasSlot(t){let e=this.children;return e?Array.from(e).some(i=>i.getAttribute("slot")===t):!1}},Zi=class extends te{static{this.properties={number:{type:String},heading:{type:String},text:{type:String},tags:{type:String},href:{type:String},linkText:{type:String,attribute:"link-text"},headingLevel:{type:Number,attribute:"heading-level"},featured:{type:Boolean,reflect:!0}}}constructor(){super(),this.featured=!1,this.number="",this.heading="",this.text="",this.tags="",this.href="",this.linkText="Learn more",this.headingLevel=3}static{this.styles=[...te.styles,De`
1767
1769
  :host { display: block; block-size: 100%; }
1768
- article { position: relative; box-sizing: border-box; block-size: 100%; min-block-size: 330px; display: flex; flex-direction: column; justify-content: space-between; gap: ${L(6)}; padding: ${L(6)}; background: ${T.surfaceCard}; color: ${T.text}; border: 1px solid ${T.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }
1770
+ article { position: relative; box-sizing: border-box; block-size: 100%; min-block-size: 330px; display: flex; flex-direction: column; justify-content: space-between; gap: ${E(6)}; padding: ${E(6)}; background: ${T.surfaceCard}; color: ${T.text}; border: 1px solid ${T.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }
1769
1771
  .top { display: flex; align-items: center; justify-content: space-between; }
1770
1772
  .number { font-family: ${T.fontMono}; font-size: 0.75rem; letter-spacing: 0.06em; }
1771
1773
  .dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: currentColor; }
1772
- .foot { display: grid; gap: ${L(3)}; }
1774
+ .foot { display: grid; gap: ${E(3)}; }
1773
1775
  .heading { margin: 0; font-family: ${T.fontHeading}; font-size: 1.5rem; font-weight: ${Fe("semibold")}; line-height: 1.15; letter-spacing: -0.02em; }
1774
1776
  .heading a { color: inherit; text-decoration: none; }
1775
1777
  .heading a::after { content: ''; position: absolute; inset: 0; }
1776
1778
  .heading a:focus-visible { outline: none; }
1777
1779
  .heading a:focus-visible::after { box-shadow: ${T.focusShadow}; }
1778
1780
  .text { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: ${T.textMuted}; }
1779
- .tags { margin: ${L(1)} 0 0; ${V}; color: ${T.textMuted}; }
1780
- .more { margin-block-start: ${L(2)}; ${V}; font-weight: ${Fe("medium")}; }
1781
+ .tags { margin: ${E(1)} 0 0; ${V}; color: ${T.textMuted}; }
1782
+ .more { margin-block-start: ${E(2)}; ${V}; font-weight: ${Fe("medium")}; }
1781
1783
  article:has(a):hover, article:focus-within, :host([featured]) article { background: ${xe}; color: ${qe}; border-color: ${xe}; }
1782
1784
  article:has(a):hover :is(.text, .tags), article:focus-within :is(.text, .tags), :host([featured]) :is(.text, .tags) { color: ${Pt}; }
1783
1785
  article:has(a):hover :is(.dot, .more), article:focus-within :is(.dot, .more), :host([featured]) :is(.dot, .more) { color: ${ae}; }
@@ -1813,7 +1815,7 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1813
1815
  ${this.name?S`<span class="name" part="name">${this.name}</span>`:Q}
1814
1816
  </span>`}},ta=class extends te{static{this.properties={text:{type:String},arrow:{type:String,reflect:!0},decorative:{type:Boolean,reflect:!0}}}constructor(){super(),this.text="",this.arrow="none",this.decorative=!1}static{this.styles=[...te.styles,De`
1815
1817
  :host { display: inline-block; max-inline-size: 18rem; }
1816
- .note { display: inline-flex; align-items: center; gap: ${L(2)}; }
1818
+ .note { display: inline-flex; align-items: center; gap: ${E(2)}; }
1817
1819
  :host(:is([arrow='down'], [arrow='up'])) .note { flex-direction: column; align-items: flex-start; }
1818
1820
  :host(:is([arrow='left'], [arrow='up'])) svg { order: -1; }
1819
1821
  p { margin: 0; font-family: var(--impakt-font-family-hand, ${T.fontBody}); font-size: 1.25rem; line-height: 1.2; color: ${T.textMuted}; }
@@ -1824,12 +1826,12 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1824
1826
  @media (forced-colors: active) { p, svg { color: CanvasText; } }
1825
1827
  `]}render(){let t=this.arrow&&this.arrow!=="none"?S`<svg viewBox="0 0 40 24" width="40" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M2 16c8-10 20-12 34-6M30 4l6 6-7 4" /></svg>`:Q;return S`<div class="note" part="note" aria-hidden=${this.decorative?"true":Q}><p part="text"><slot>${this.text}</slot></p>${t}</div>`}},ia=class extends te{static{this.properties={items:{type:Array},layout:{type:String,reflect:!0},size:{type:String,reflect:!0},label:{type:String}}}constructor(){super(),this.items=[],this.layout="columns",this.size="md",this.label=""}static{this.styles=[...te.styles,ds,De`
1826
1828
  :host { display: block; color: ${T.text}; }
1827
- dl { margin: 0; display: grid; gap: ${L(5)}; }
1828
- :host([layout='columns']) dl { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); column-gap: ${L(5)}; row-gap: ${L(6)}; }
1829
- :host([layout='columns']) .fact { border-block-start: 1px solid ${T.text}; padding-block-start: ${L(4)}; }
1829
+ dl { margin: 0; display: grid; gap: ${E(5)}; }
1830
+ :host([layout='columns']) dl { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); column-gap: ${E(5)}; row-gap: ${E(6)}; }
1831
+ :host([layout='columns']) .fact { border-block-start: 1px solid ${T.text}; padding-block-start: ${E(4)}; }
1830
1832
  dt { ${V}; color: ${T.textMuted}; }
1831
- dd { margin: ${L(2)} 0 0; font-family: ${T.fontBody}; line-height: 1.3; overflow-wrap: anywhere; }
1832
- :host([layout='columns']) dd { margin-block-start: ${L(3)}; }
1833
+ dd { margin: ${E(2)} 0 0; font-family: ${T.fontBody}; line-height: 1.3; overflow-wrap: anywhere; }
1834
+ :host([layout='columns']) dd { margin-block-start: ${E(3)}; }
1833
1835
  .sm { font-size: 1rem; }
1834
1836
  .md { font-size: 1.125rem; }
1835
1837
  .lg { font-size: 1.5rem; letter-spacing: -0.01em; }
@@ -1845,12 +1847,12 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1845
1847
  </dl>`:S``}},aa=class extends te{static{this.properties={items:{type:Array},start:{type:Number},headingLevel:{type:Number,attribute:"heading-level"},label:{type:String}}}constructor(){super(),this.items=[],this.start=1,this.headingLevel=3,this.label=""}static{this.styles=[...te.styles,De`
1846
1848
  :host { display: block; container-type: inline-size; color: ${T.text}; }
1847
1849
  ol { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid ${T.text}; }
1848
- li { display: grid; grid-template-columns: 60px minmax(0, 520fr) minmax(0, 420fr); column-gap: ${L(10)}; align-items: center; padding-block: ${L(6)}; border-block-end: 1px solid ${T.rule}; }
1850
+ li { display: grid; grid-template-columns: 60px minmax(0, 520fr) minmax(0, 420fr); column-gap: ${E(10)}; align-items: center; padding-block: ${E(6)}; border-block-end: 1px solid ${T.rule}; }
1849
1851
  .n { font-family: ${T.fontMono}; font-size: 0.75rem; letter-spacing: 0.06em; color: ${T.textMuted}; }
1850
1852
  .heading { margin: 0; font-family: ${T.fontHeading}; font-size: clamp(1.5rem, 1rem + 2cqi, 2rem); font-weight: ${Fe("semibold")}; line-height: 1.15; letter-spacing: -0.025em; }
1851
1853
  .text { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: ${T.textMuted}; }
1852
1854
  @container (max-width: 47.99rem) {
1853
- li { grid-template-columns: minmax(0, 1fr); row-gap: ${L(2)}; }
1855
+ li { grid-template-columns: minmax(0, 1fr); row-gap: ${E(2)}; }
1854
1856
  }
1855
1857
  @media (forced-colors: active) { ol { border-color: CanvasText; } li { border-color: CanvasText; } }
1856
1858
  `]}render(){if(!this.items.length)return S``;let t=We(this.headingLevel),e=Number.isFinite(Number(this.start))?Number(this.start):1;return S`<ol part="list" role="list" start=${e} aria-label=${this.label||Q}>
@@ -1861,10 +1863,10 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1861
1863
  </li>`)}
1862
1864
  </ol>`}},ra=class extends te{static{this.properties={columns:{type:Array},headingLevel:{type:Number,attribute:"heading-level"}}}constructor(){super(),this.columns=[],this.headingLevel=3}static{this.styles=[...te.styles,De`
1863
1865
  :host { display: block; color: ${T.text}; }
1864
- .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: ${L(8)} ${L(5)}; }
1865
- section { border-block-start: 1px solid ${T.text}; padding-block-start: ${L(4)}; }
1866
+ .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: ${E(8)} ${E(5)}; }
1867
+ section { border-block-start: 1px solid ${T.text}; padding-block-start: ${E(4)}; }
1866
1868
  .heading { margin: 0; ${V}; color: ${T.textMuted}; }
1867
- ul { margin: ${L(3)} 0 0; padding: 0; list-style: none; display: grid; gap: ${L(2)}; }
1869
+ ul { margin: ${E(3)} 0 0; padding: 0; list-style: none; display: grid; gap: ${E(2)}; }
1868
1870
  li { font-family: ${T.fontHeading}; font-size: 1.5rem; font-weight: ${Fe("semibold")}; line-height: 1.2; letter-spacing: -0.02em; }
1869
1871
  @media (forced-colors: active) { section { border-color: CanvasText; } }
1870
1872
  `]}render(){if(!this.columns.length)return S``;let t=We(this.headingLevel);return S`<div class="grid" part="grid">
@@ -1874,14 +1876,14 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1874
1876
  </section>`)}
1875
1877
  </div>`}},sa=class extends te{static{this.properties={hours:{type:String},name:{type:String},region:{type:String},text:{type:String},tag:{type:String},headingLevel:{type:Number,attribute:"heading-level"}}}constructor(){super(),this.hours="",this.name="",this.region="",this.text="",this.tag="",this.headingLevel=3}static{this.styles=[...te.styles,De`
1876
1878
  :host { display: block; block-size: 100%; container-type: inline-size; }
1877
- article { box-sizing: border-box; block-size: 100%; display: grid; align-content: start; gap: ${L(2)}; padding: ${L(8)}; background: ${T.surfaceCard}; color: ${T.text}; border: 1px solid ${T.text}; }
1878
- .top { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: center; gap: ${L(2)}; }
1879
+ article { box-sizing: border-box; block-size: 100%; display: grid; align-content: start; gap: ${E(2)}; padding: ${E(8)}; background: ${T.surfaceCard}; color: ${T.text}; border: 1px solid ${T.text}; }
1880
+ .top { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: center; gap: ${E(2)}; }
1879
1881
  .hours { margin: 0; ${V}; color: ${T.textMuted}; }
1880
1882
  .tag { margin: 0; padding: 3px 6px; ${V}; font-weight: ${Fe("medium")}; background: ${ae}; color: ${ye}; }
1881
- .name { margin: ${L(2)} 0 0; font-family: ${T.fontHeading}; font-size: clamp(2.5rem, 1rem + 10cqi, 4rem); font-weight: ${Fe("semibold")}; line-height: 1; letter-spacing: -0.04em; overflow-wrap: anywhere; }
1882
- .region { margin: ${L(2)} 0 0; font-size: 1rem; line-height: 1.4; }
1883
- .text { margin: ${L(2)} 0 0; font-size: 0.9375rem; line-height: 1.5; color: ${T.textMuted}; }
1884
- @container (max-width: 22rem) { article { padding: ${L(5)}; } }
1883
+ .name { margin: ${E(2)} 0 0; font-family: ${T.fontHeading}; font-size: clamp(2.5rem, 1rem + 10cqi, 4rem); font-weight: ${Fe("semibold")}; line-height: 1; letter-spacing: -0.04em; overflow-wrap: anywhere; }
1884
+ .region { margin: ${E(2)} 0 0; font-size: 1rem; line-height: 1.4; }
1885
+ .text { margin: ${E(2)} 0 0; font-size: 0.9375rem; line-height: 1.5; color: ${T.textMuted}; }
1886
+ @container (max-width: 22rem) { article { padding: ${E(5)}; } }
1885
1887
  @media (forced-colors: active) { article { border-color: CanvasText; } .tag { border: 1px solid CanvasText; } }
1886
1888
  `]}render(){let t=We(this.headingLevel);return S`<article part="card">
1887
1889
  ${this.hours||this.tag?S`<div class="top">${this.hours?S`<p class="hours" part="hours">${this.hours}</p>`:S`<span></span>`}${this.tag?S`<p class="tag" part="tag">${this.tag}</p>`:Q}</div>`:Q}
@@ -1895,7 +1897,8 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1895
1897
  .visual path { fill: none; stroke: ${ze}; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
1896
1898
  .ring { position: absolute; inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid ${ze}; background: ${Ot}; transform: translate(-50%, -50%); }
1897
1899
  .ring.current { inline-size: 12px; block-size: 12px; background: ${ae}; }
1898
- .vlabel { position: absolute; transform: translateX(-50%); ${V}; color: ${Pe}; white-space: nowrap; }
1900
+ /* Each label keeps to the space between its point and the next, wrapping rather than running into its neighbour. */
1901
+ .vlabel { position: absolute; transform: translateX(-50%); ${V}; color: ${Pe}; inline-size: max-content; max-inline-size: var(--slot); text-align: center; text-wrap: balance; }
1899
1902
  .lineLabel { position: absolute; inset-inline-start: 0; ${V}; color: ${Pe}; }
1900
1903
  .flag { display: inline-block; padding: 4px 8px; ${V}; font-weight: ${Ft("medium")}; background: ${ae}; color: ${ye}; white-space: nowrap; }
1901
1904
  .visual .flag { position: absolute; transform: translate(-50%, -100%); }
@@ -1919,10 +1922,10 @@ Saturday, 10am to 2pm`,this.email="",this.callbackHeading="Or we can call you",t
1919
1922
  li::after { background: CanvasText; }
1920
1923
  .flag { border: 1px solid CanvasText; }
1921
1924
  }
1922
- `]}render(){let t=this.nodes??[];if(!t.length)return U``;let e=t.length,i=m=>Math.max(0,Math.min(4,Number(m.depth)||0)),a=Math.max(...t.map(i)),r=Ra+a*vr+44,n=t.map((m,h)=>({x:(h+.5)/e*1e3,y:Ra+i(m)*vr})),c=`M0 ${n[0].y} L${n[0].x} ${n[0].y}`;for(let m=1;m<e;m++){let h=n[m-1],I=n[m];if(h.y===I.y)c+=` L${I.x} ${I.y}`;else{let de=(h.x+I.x)/2;c+=` C${de} ${h.y} ${de} ${I.y} ${I.x} ${I.y}`}}c+=` L1000 ${n[e-1].y}`;let f=m=>`${(m+.5)/e*100}%`;return U`<div class="visual" part="drawing" aria-hidden="true" style="block-size:${r}px">
1925
+ `]}render(){let t=this.nodes??[];if(!t.length)return U``;let e=t.length,i=m=>Math.max(0,Math.min(4,Number(m.depth)||0)),a=Math.max(...t.map(i)),r=Ra+a*vr+44,n=t.map((m,h)=>({x:(h+.5)/e*1e3,y:Ra+i(m)*vr})),c=`M0 ${n[0].y} L${n[0].x} ${n[0].y}`;for(let m=1;m<e;m++){let h=n[m-1],I=n[m];if(h.y===I.y)c+=` L${I.x} ${I.y}`;else{let de=(h.x+I.x)/2;c+=` C${de} ${h.y} ${de} ${I.y} ${I.x} ${I.y}`}}c+=` L1000 ${n[e-1].y}`;let f=m=>`${(m+.5)/e*100}%`;return U`<div class="visual" part="drawing" aria-hidden="true" style="block-size:${r}px;--slot:calc(${100/e}% - 0.5rem)">
1923
1926
  <svg viewBox="0 0 1000 ${r}" preserveAspectRatio="none" focusable="false">${ms`<path d=${c} />`}</svg>
1924
1927
  ${this.lineLabel?U`<span class="lineLabel" style="inset-block-start:${Ra-64}px">${this.lineLabel}</span>`:be}
1925
- ${t.map((m,h)=>{let I=n[h].y,mt=i(m)===0?m.flag?be:U`<span class="vlabel" style="inset-inline-start:${f(h)};inset-block-start:${I-30}px">${m.label}</span>`:U`<span class="vlabel" style="inset-inline-start:${f(h)};inset-block-start:${I+14}px">${m.label}</span>`;return U`<span class="ring ${m.current?"current":""}" style="inset-inline-start:${f(h)};inset-block-start:${I}px"></span>
1928
+ ${t.map((m,h)=>{let I=n[h].y,mt=i(m)===0?m.flag?be:U`<span class="vlabel" style="inset-inline-start:${f(h)};inset-block-end:${r-I+12}px">${m.label}</span>`:U`<span class="vlabel" style="inset-inline-start:${f(h)};inset-block-start:${I+14}px">${m.label}</span>`;return U`<span class="ring ${m.current?"current":""}" style="inset-inline-start:${f(h)};inset-block-start:${I}px"></span>
1926
1929
  ${mt}
1927
1930
  ${m.flag?U`<span class="flag" style="inset-inline-start:${f(h)};inset-block-start:${I-12}px">${m.flag}</span>`:be}`})}
1928
1931
  </div>