@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.
- package/README.md +15 -15
- package/custom-elements.json +2961 -9573
- package/dist/{chunk-B6I3GVJ5.js → chunk-3G3NP4UC.js} +9 -4
- package/dist/chunk-3G3NP4UC.js.map +1 -0
- package/dist/{chunk-H262HKSL.js → chunk-7OFH762N.js} +53 -23
- package/dist/chunk-7OFH762N.js.map +1 -0
- package/dist/{chunk-WTVF3JRL.js → chunk-GDATDR2Q.js} +24 -7
- package/dist/chunk-GDATDR2Q.js.map +1 -0
- package/dist/chunk-GQ2I44OU.js +226 -0
- package/dist/chunk-GQ2I44OU.js.map +1 -0
- package/dist/chunk-HISF6RYK.js +199 -0
- package/dist/chunk-HISF6RYK.js.map +1 -0
- package/dist/{chunk-53V2GY6L.js → chunk-LJGOTYDJ.js} +76 -69
- package/dist/chunk-LJGOTYDJ.js.map +1 -0
- package/dist/{chunk-WIVKJL64.js → chunk-OBBPBN4S.js} +73 -164
- package/dist/chunk-OBBPBN4S.js.map +1 -0
- package/dist/chunk-OHXEZPBB.js +109 -0
- package/dist/chunk-OHXEZPBB.js.map +1 -0
- package/dist/{chunk-FNGN2F6Y.js → chunk-VOONXP5H.js} +30 -59
- package/dist/chunk-VOONXP5H.js.map +1 -0
- package/dist/chunk-XSKGWT2D.js +84 -0
- package/dist/chunk-XSKGWT2D.js.map +1 -0
- package/dist/components/changelog.d.ts +0 -288
- package/dist/components/changelog.js +3 -12
- package/dist/components/estimator.js +1 -1
- package/dist/components/g2-case.d.ts +8 -1
- package/dist/components/g2-case.js +1 -1
- package/dist/components/g2-site.d.ts +49 -41
- package/dist/components/g2-site.js +1 -3
- package/dist/components/journey.d.ts +13 -2
- package/dist/components/journey.js +1 -1
- package/dist/components/marketing.d.ts +0 -283
- package/dist/components/marketing.js +3 -13
- package/dist/components/organisms.d.ts +0 -489
- package/dist/components/organisms.js +3 -19
- package/dist/components/selling.d.ts +0 -255
- package/dist/components/selling.js +3 -15
- package/dist/components/site.d.ts +8 -53
- package/dist/components/site.js +3 -5
- package/dist/components/studio.d.ts +42 -98
- package/dist/components/studio.js +1 -3
- package/dist/index.d.ts +9 -13
- package/dist/index.js +25 -103
- package/dist/index.js.map +1 -1
- package/dist/standalone/atomic-ui-blocks.js +832 -1622
- package/dist/standalone/atomic-ui-blocks.js.map +4 -4
- package/dist/standalone/index.html +18 -26
- package/package.json +3 -3
- package/specimen/index.html +18 -26
- package/dist/chunk-53V2GY6L.js.map +0 -1
- package/dist/chunk-B6I3GVJ5.js.map +0 -1
- package/dist/chunk-FNGN2F6Y.js.map +0 -1
- package/dist/chunk-H262HKSL.js.map +0 -1
- package/dist/chunk-IT2NA25D.js +0 -571
- package/dist/chunk-IT2NA25D.js.map +0 -1
- package/dist/chunk-MMADM6OW.js +0 -782
- package/dist/chunk-MMADM6OW.js.map +0 -1
- package/dist/chunk-NHWD2LUR.js +0 -255
- package/dist/chunk-NHWD2LUR.js.map +0 -1
- package/dist/chunk-R7SSIE2E.js +0 -362
- package/dist/chunk-R7SSIE2E.js.map +0 -1
- package/dist/chunk-WIVKJL64.js.map +0 -1
- package/dist/chunk-WTVF3JRL.js.map +0 -1
- package/dist/chunk-XB6FD4SF.js +0 -438
- package/dist/chunk-XB6FD4SF.js.map +0 -1
- package/dist/chunk-YXMXLVK7.js +0 -230
- package/dist/chunk-YXMXLVK7.js.map +0 -1
- package/dist/chunk-ZD75GU6J.js +0 -75
- package/dist/chunk-ZD75GU6J.js.map +0 -1
- package/dist/chunk-ZODL5HD4.js +0 -535
- package/dist/chunk-ZODL5HD4.js.map +0 -1
- package/dist/components/card-grid.d.ts +0 -72
- package/dist/components/card-grid.js +0 -7
- package/dist/components/card-grid.js.map +0 -1
- package/dist/components/property.d.ts +0 -389
- package/dist/components/property.js +0 -17
- package/dist/components/property.js.map +0 -1
- package/dist/components/scene.d.ts +0 -138
- package/dist/components/scene.js +0 -7
- package/dist/components/scene.js.map +0 -1
- package/dist/components/scrubber.d.ts +0 -86
- package/dist/components/scrubber.js +0 -7
- package/dist/components/scrubber.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/g2-site.ts"],"sourcesContent":["/**\n * The G2 Noire site blocks: the stage tag and section head every section starts\n * with, the service card, the cursors on the hero, the facts,\n * numbered and column lists, and the office card.\n */\nimport { css, html, nothing, type TemplateResult } from 'lit';\nimport { ImpaktElement, R, focusRing, fontWeight, revealAt, revealStyles, say, space, spaceAround, t, token } from '@atomic-ui/ui';\nimport { accent, accentOn, accentOnInk, ink, inkLine, inkMuted, inkRaised, levelOf, monoLabel, pad, paper } from './g2-shared';\n\n/** The five stages of a project, as the stage tags name them. */\nexport type StageName = 'note' | 'wireframe' | 'component' | 'code' | 'live';\n\n/** Each stage's number, phase and name, in English; `say` puts them in the page's language. */\nexport const STAGE_WORDS: Record<StageName, readonly [string, string, string]> = {\n note: ['01', 'Discover', 'Note'],\n wireframe: ['02', 'Design low-fi', 'Wireframe'],\n component: ['03', 'Design hi-fi', 'Component'],\n code: ['04', 'Build', 'Code'],\n live: ['05', 'Launch', 'Live'],\n};\n\n/**\n * A small square mono tag that says which stage of a project a section shows,\n * such as \"01 Discover Note\": the number in the accent, the phase in paper and\n * the stage's name quieter, on ink.\n *\n * Set `stage` for one of the five stages, or `index`, `phase` and `label` for\n * your own words; each one set wins over the stage's. The tag is drawn on the\n * raised ink with a hairline round it, on paper and on an ink band alike, as\n * the Stage tag component (`8:320`) is; `on-ink` is kept for pages that set it\n * and draws the same tag.\n *\n * **It is decoration.** The section's heading says what the section is, so the\n * tag is hidden from a screen reader unless `announce` is set (1.3.1). The tag\n * stays ink in both themes, so the yellow on it stays readable (1.4.3).\n *\n * For a brand with the reveal set on, it types its words in once as its\n * section arrives (impkt-web#51); with no script and with reduced motion it is\n * simply there.\n *\n * @category content\n * @icon tag\n */\nexport class ImpaktStageTag extends ImpaktElement {\n static properties = {\n stage: { type: String, reflect: true },\n index: { type: String },\n phase: { type: String },\n label: { type: String },\n onInk: { type: Boolean, reflect: true, attribute: 'on-ink' },\n announce: { type: Boolean },\n };\n /** One of the five stages, which fills in the words. Leave empty to give them yourself. */\n declare stage: StageName | '';\n /** The number, such as \"01\". */\n declare index: string;\n /** The phase, such as \"Discover\". */\n declare phase: string;\n /** The stage's name, such as \"Note\". */\n declare label: string;\n /** Kept for pages that set it: the tag is raised off the ink with a line round it on every band. */\n declare onInk: boolean;\n /** Let a screen reader read the tag. Leave off when the heading beside it says the same. */\n declare announce: boolean;\n\n constructor() {\n super();\n this.stage = '';\n this.index = '';\n this.phase = '';\n this.label = '';\n this.onInk = false;\n this.announce = false;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: inline-block; vertical-align: middle; }\n /* The Stage tag component (8:320): G2 Mono S, 11px medium capitals at 0.06em, 10px apart, 6 by 10 inside, on the raised ink with a hairline. Its corner is a brand shape, 3px for Impakt. */\n .tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px; background: ${inkRaised}; border: 1px solid ${inkLine}; border-radius: ${token('stage-tag.radius', '0px')}; ${monoLabel}; font-weight: ${fontWeight('medium')}; white-space: nowrap; }\n .index { color: ${accentOnInk}; }\n .phase { color: ${paper}; }\n .label { color: ${inkMuted}; }\n @media (forced-colors: active) { .tag { border-color: CanvasText; } .index, .phase, .label { color: CanvasText; } }\n /* Labels type in (impkt-web#51): the tag types its words in from the left in 240ms as its section arrives. All of them are in the page from the start. */\n :host([data-motion]) .tag { animation: ik-reveal-type ${R.type} ${R.arrive} ${revealAt(0)} both; }\n `,\n revealStyles,\n ];\n\n render(): TemplateResult {\n const words = this.stage && this.stage in STAGE_WORDS ? STAGE_WORDS[this.stage] : undefined;\n const index = this.index || words?.[0] || '';\n const phase = this.phase || (words ? say(words[1]) : '');\n const label = this.label || (words ? say(words[2]) : '');\n if (!index && !phase && !label) return html``;\n return html`<span class=\"tag\" part=\"tag\" aria-hidden=${this.announce ? nothing : 'true'}\n >${index ? html`<span class=\"index\" part=\"index\">${index}</span>` : nothing}${phase ? html`<span class=\"phase\" part=\"phase\">${phase}</span>` : nothing}${\n label ? html`<span class=\"label\" part=\"label\">${label}</span>` : nothing\n }</span\n >`;\n }\n}\n\n/**\n * The head of a section: a mono label such as \"# Services\" with an optional\n * stage tag on the right, then a display heading and a lead.\n *\n * `size` sets the heading: `xl` (120px) for a page's hero, `l` (64px), and `m`\n * (52px) for a section. In a narrow column `l` is the brand's phone size, 36px\n * for Impakt. Give the heading as `heading`, or in the `heading` slot\n * when part of it is picked out with `impakt-highlight` or an accent word. The\n * lead goes under the heading, or with `lead-position=\"side\"` at the foot of a\n * 340px column on the right. The `aside` slot holds a picture on the right,\n * such as a journey object at 448 by 288, with the heading and lead level with\n * its middle. A page drawn on the server sets `aside` when it fills the slot,\n * since the head cannot see its children there; in a browser the head sets it\n * itself.\n *\n * **One heading, at the level the page needs.** `level` is 1 for a page's hero\n * and 2 for a section (1.3.1, 2.4.6). The \"#\" before the label is decoration.\n *\n * For a brand with the reveal set on, the label types itself in once as the\n * section arrives, and a stage tag beside it does the same (impkt-web#51); the\n * heading and the lead never move.\n *\n * **It stacks in a narrow column**, measured against its own width: the label\n * row, the heading, the lead and the aside, in reading order (1.4.10). It takes\n * its colours from the band it is on, so it reads on paper, ink and accent.\n *\n * @category layout\n * @icon heading\n * @role heading\n * @slot heading - The heading, when it holds more than words, such as an `impakt-highlight`. Replaces `heading`.\n * @slot lead - The lead, when it holds more than words. Replaces `lead`.\n * @slot tag - Something on the right of the label row, in place of the stage tag.\n * @slot aside - A picture on the right of the heading, such as a journey object.\n */\nexport class ImpaktSectionHead extends ImpaktElement {\n static properties = {\n label: { type: String },\n heading: { type: String },\n lead: { type: String },\n size: { type: String, reflect: true },\n level: { type: Number, reflect: true },\n leadPosition: { type: String, reflect: true, attribute: 'lead-position' },\n stage: { type: String },\n stageOnInk: { type: Boolean, attribute: 'stage-on-ink' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n aside: { type: Boolean, reflect: true },\n };\n /** The mono label above the heading, such as \"Services\". A \"#\" is drawn before it. */\n declare label: string;\n declare heading: string;\n /** A sentence or two about the section. */\n declare lead: string;\n /** How large the heading is: `xl` 120px, `l` 64px, `m` 52px. */\n declare size: 'xl' | 'l' | 'm';\n /** The heading's level: 1 for a page's hero, 2 for a section. */\n declare level: 1 | 2;\n /** Where the lead goes: under the heading, or at the foot of a column on the right. */\n declare leadPosition: 'below' | 'side';\n /** A stage tag on the right of the label row. Leave empty for none. */\n declare stage: StageName | '';\n /** Draw the stage tag for an ink band. */\n declare stageOnInk: boolean;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n /** The `aside` slot is filled. Set it on a page drawn on the server; in a browser the head sets it when the slot changes. */\n declare aside: boolean;\n\n constructor() {\n super();\n this.aside = false;\n this.label = '';\n this.heading = '';\n this.lead = '';\n this.size = 'm';\n this.level = 2;\n this.leadPosition = 'below';\n this.stage = '';\n this.stageOnInk = false;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n css`\n :host { display: block; container-type: inline-size; color: ${t.text}; }\n /* The label row is the label's own 20px (12:712, 10:642), or the stage tag's 29px beside it (9:296). */\n .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: ${space(2)} ${space(4)}; }\n .top.tagged { min-block-size: 29px; }\n /* The label row in G2 Mono M: IBM Plex Mono 13px at 1.5 (14:728). */\n .label { margin: 0; font-family: ${t.fontMono}; font-size: var(--impakt-type-mono-m-size, 0.8125rem); line-height: var(--impakt-type-mono-m-line-height, 1.5); color: ${t.textMuted}; }\n .body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: ${space(10)}; row-gap: ${space(6)}; align-items: end; margin-block-start: ${space(6)}; }\n .heading { margin: 0; font-family: ${t.fontHeading}; font-weight: ${fontWeight('semibold')}; color: var(--impakt-color-text-heading, ${t.text}); text-wrap: balance; overflow-wrap: anywhere; }\n :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; }\n /* Display L sets a section title 680px wide at 64px, with a side lead or without (21:1080, 20:1160, 34:644). */\n :host([size='l']) .heading { font-size: clamp(2.5rem, 1.2rem + 5cqi, 4rem); line-height: 1; letter-spacing: -0.04em; max-inline-size: 10.625em; }\n /* Display XL: 120px on a 1080px column and 52px on a 350px phone column, line height 1 and -5% (9:303, 14:734). */\n :host([size='xl']) .heading { font-size: clamp(3.25rem, 1.2128rem + 9.315cqi, 7.5rem); line-height: var(--impakt-type-display-xl-line-height, 1); letter-spacing: var(--impakt-type-display-xl-tracking, -0.05em); }\n /* The lead in G2 Body M, 16px at 1.45, 24px under the heading and at most 480px wide (9:385). */\n .lead { margin: ${space(6)} 0 0; max-inline-size: 30rem; font-size: 1rem; line-height: 1.45; color: ${t.textMuted}; }\n .side { display: grid; gap: ${space(6)}; justify-items: end; }\n /* Beside a picture in the aside, such as the journey button, the heading sits level with the middle of it. */\n :host([aside]) .body, .body.aside { align-items: center; }\n .side .lead { margin: 0; max-inline-size: 340px; inline-size: 340px; }\n .side:not(:has(.lead)) { align-self: center; }\n ::slotted([slot='aside']) { display: block; max-inline-size: 100%; }\n @container (max-width: 47.99rem) {\n /* On a phone the heading is 20px under the label row and the lead 16px under the heading (14:984, 14:804). */\n .body { grid-template-columns: minmax(0, 1fr); row-gap: 0; margin-block-start: ${space(5)}; }\n /* A row with a stage tag in it keeps 24px under it, as the 53px label row of 15:1058 does. */\n .top.tagged + .body { margin-block-start: ${space(6)}; }\n /* Display L in a narrow column is the brand's phone size: Impakt sets Mobile Display L, 36px on 1.04 (92:2191, 90:1297, 94:2538); another brand keeps the fluid size. */\n :host([size='l']) .heading { font-size: ${token('section-head.l.phone-size', 'clamp(2.5rem, 1.2rem + 5cqi, 4rem)')}; line-height: ${token('section-head.l.phone-line-height', '1')}; }\n .main .lead { margin-block-start: ${space(4)}; }\n /* The side column takes room only for what it shows: a side lead 16px under the heading (14:986), an aside 24px under what is above it. An empty one, or an aside hidden on a phone, leaves no gap (15:1017, 15:1039, 15:940). */\n .side { justify-items: stretch; gap: 0; }\n .side .lead { inline-size: auto; max-inline-size: none; margin-block-start: ${space(4)}; }\n ::slotted([slot='aside']) { margin-block-start: ${space(6)}; }\n }\n /* Labels type in (impkt-web#51): the mono label types in as the section arrives. The heading and the lead, which are read, never move. */\n :host([data-motion]) .label { animation: ik-reveal-type ${R.type} ${R.arrive} ${revealAt(0)} both; }\n `,\n revealStyles,\n ];\n\n render(): TemplateResult {\n const lead = html`<p class=\"lead\" part=\"lead\"><slot name=\"lead\">${this.lead}</slot></p>`;\n const showLead = Boolean(this.lead) || this.hasSlot('lead');\n const inner = html`<slot name=\"heading\">${this.heading}</slot>`;\n const heading = Number(this.level) === 1 ? html`<h1 class=\"heading\" part=\"heading\">${inner}</h1>` : html`<h2 class=\"heading\" part=\"heading\">${inner}</h2>`;\n const side = this.leadPosition === 'side';\n return html`<header part=\"head\">\n <div class=${this.stage || this.hasSlot('tag') ? 'top tagged' : 'top'}>\n ${this.label ? html`<p class=\"label\" part=\"label\"><span aria-hidden=\"true\"># </span>${this.label}</p>` : html`<span></span>`}\n <slot name=\"tag\" @slotchange=${() => this.requestUpdate()}>${this.stage ? html`<impakt-stage-tag stage=${this.stage} ?on-ink=${this.stageOnInk}></impakt-stage-tag>` : nothing}</slot>\n </div>\n <div class=${this.hasSlot('aside') ? 'body aside' : 'body'}>\n <div class=\"main\">${heading}${showLead && !side ? lead : nothing}</div>\n <div class=\"side\">${showLead && side ? lead : nothing}<slot name=\"aside\" @slotchange=${this.asideChanged}></slot></div>\n </div>\n </header>`;\n }\n\n /** The aside slot filled or emptied: keep `aside` in step, so the heading sits level with it. */\n private asideChanged(event: Event): void {\n this.aside = (event.target as HTMLSlotElement).assignedElements().length > 0;\n }\n\n /** Whether a child is in the named slot. On a server, where there are no children, only the attribute counts. */\n private hasSlot(name: string): boolean {\n const children = (this as unknown as { children?: HTMLCollection }).children;\n if (!children) return false;\n return Array.from(children).some((c) => c.getAttribute('slot') === name);\n }\n}\n\n/**\n * A service on the services grid: a number and a dot at the top, then at the\n * foot its name, a line about it, mono tags such as \"React Native · Expo\" and\n * \"Learn more\".\n *\n * **The card is one link.** The link is on the service's name, a heading, and\n * stretched over the card (2.4.4, 2.5.8). The number, dot and \"Learn more\"\n * line are decoration. Pointing at the card and focusing it look the same: it\n * turns to ink with paper words and the dot and \"Learn more\" in the accent,\n * which holds 4.5:1 on ink, and the focus ring is drawn round it (2.4.7).\n * For a brand with the reveal set on (impkt-web#51) the ink wipes in from the\n * left in 180ms and the arrow slides 4px forward, on hover or focus only; the\n * card drops 12px into place, once, as it is reached.\n *\n * `featured` draws a card inked all the time, as it is when pointed at, for\n * the one service a page picks out or a sheet that shows the state.\n *\n * Put cards in a four-column grid with a 10px gap. On a phone the words sit at\n * the top and the card is as tall as they are.\n *\n * `size=\"compact\"` draws the card as tall as its words on a wide page too, the\n * name straight under the number, as the route frames' cards are (193px with\n * tags, `90:1141`; 173px with a line and \"Learn more\", `96:2454`). On a phone\n * the name sits 28px under the number (`90:1335`, `96:2557`).\n *\n * `look=\"tile\"` draws the route frames' numbered Tile (`92:1978`, `94:1785`;\n * on a phone `92:2240`, `94:2065`): as tall as its words, the number in small\n * mono capitals in the muted colour with no dot, and the name, line, tags and\n * link 10px under it and each other. The padding is 24px, and 20px on a phone.\n * A one-line name with a two-line line is 153px wide and 145px on a phone. It\n * inks on hover and focus only, and drops into place like the card.\n *\n * @category content\n * @icon card\n */\nexport class ImpaktServiceCard extends ImpaktElement {\n static properties = {\n number: { type: String },\n heading: { type: String },\n text: { type: String },\n tags: { type: String },\n href: { type: String },\n linkText: { type: String, attribute: 'link-text' },\n headingLevel: { type: Number, attribute: 'heading-level' },\n featured: { type: Boolean, reflect: true },\n size: { type: String, reflect: true },\n look: { type: String, reflect: true },\n };\n /** The number at the top, such as \"01\". */\n declare number: string;\n /** The service's name. */\n declare heading: string;\n /** A line about it. */\n declare text: string;\n /** What it uses or includes, such as \"React Native · Expo · Store launch\". Set in mono capitals. */\n declare tags: string;\n /** Where the card goes. Leave empty for a card that goes nowhere. */\n declare href: string;\n /** The line at the foot of a card that goes somewhere. */\n declare linkText: string;\n declare headingLevel: number;\n /** Draw the card inked, as when it is pointed at. */\n declare featured: boolean;\n /** `default` is at least 330px tall with the name at the foot; `compact` is as tall as its words, the name under the number. */\n declare size: 'default' | 'compact';\n /** `card` is the Service card (`8:358`); `tile` is the route frames' numbered Tile, with a small mono number, no dot and 10px between its lines. */\n declare look: 'card' | 'tile';\n\n constructor() {\n super();\n this.featured = false;\n this.size = 'default';\n this.look = 'card';\n this.number = '';\n this.heading = '';\n this.text = '';\n this.tags = '';\n this.href = '';\n this.linkText = 'Learn more';\n this.headingLevel = 3;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; block-size: 100%; }\n article { position: relative; isolation: isolate; box-sizing: border-box; block-size: 100%; min-block-size: 330px; display: flex; flex-direction: column; justify-content: space-between; gap: ${space(6)}; padding: ${space(6)}; background: ${t.surfaceCard}; color: ${t.text}; border: 1px solid ${t.text}; transition: color ${R.wipeDuration} ${R.wipeEasing}, border-color ${R.wipeDuration} ${R.wipeEasing}; }\n /* The ink a card turns to, a layer of its own: a brand that derives the reveal set fades it in whole, as before; Impakt wipes it in from the left in 180ms (impkt-web#51). */\n article::before { content: ''; position: absolute; inset: 0; z-index: -1; background: ${ink}; opacity: calc(1 - ${R.wipeFrom}); transform: scaleX(${R.wipeFrom}); transform-origin: left center; transition: transform ${R.wipeDuration} ${R.wipeEasing}, opacity ${R.wipeDuration} ${R.wipeEasing}; pointer-events: none; }\n article:has(a):hover::before, article:focus-within::before { opacity: 1; transform: none; }\n .go { display: inline-block; transition: translate ${R.arrowDuration} ${R.arrowEasing}; }\n article:has(a):hover .go, article:focus-within .go { translate: ${R.arrowDistance} 0; }\n /* Drop (impkt-web#51): the card drops 12px into place as its row is reached, after the one before it, and the line under it settles. */\n :host([data-motion]) article { animation: ik-reveal-drop ${R.drop} ${R.arrive} ${revealAt(0)} both, ik-reveal-settle ${R.drop} ${R.arrive} ${revealAt(0)} both; }\n .top { display: flex; align-items: center; justify-content: space-between; }\n /* The Service card component (8:358): the number in G2 Mono M, 13px with no tracking; the name, line, tags and link 10px apart. */\n .number { font-family: ${t.fontMono}; font-size: 0.8125rem; line-height: 1.5; letter-spacing: 0; }\n .dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: currentColor; }\n .foot { display: grid; gap: ${space(2.5)}; }\n /* The frame sets whole-pixel lines (8:344): the name 28px at 24, the line 20px at 14 and the tags 15px at 11. */\n .heading { margin: 0; font-family: ${t.fontHeading}; font-size: 1.5rem; font-weight: ${fontWeight('semibold')}; line-height: 1.75rem; letter-spacing: -0.025em; }\n .heading a { color: inherit; text-decoration: none; }\n .heading a::after { content: ''; position: absolute; inset: 0; }\n .heading a:focus-visible { outline: none; }\n .heading a:focus-visible::after { box-shadow: ${t.focusShadow}; }\n .text { margin: 0; font-size: 0.875rem; line-height: 1.25rem; color: ${t.textMuted}; }\n .tags { margin: 0; ${monoLabel}; line-height: 0.9375rem; font-weight: ${fontWeight('medium')}; color: ${t.textMuted}; }\n .more { ${monoLabel}; font-weight: ${fontWeight('medium')}; }\n article:has(a):hover, article:focus-within { color: ${paper}; border-color: ${ink}; }\n :host([featured]) article { background: ${ink}; color: ${paper}; border-color: ${ink}; }\n article:has(a):hover :is(.text, .tags), article:focus-within :is(.text, .tags), :host([featured]) :is(.text, .tags) { color: ${inkMuted}; }\n article:has(a):hover :is(.dot, .more), article:focus-within :is(.dot, .more), :host([featured]) :is(.dot, .more) { color: ${accentOnInk}; }\n @media (max-width: 47.99rem) { article { min-block-size: 0; justify-content: flex-start; } }\n /* Compact (90:1141, 96:2454): as tall as its words, the name straight under the number; on a phone 28px under it (90:1335, 96:2557). */\n :host([size='compact']) article { min-block-size: 0; justify-content: flex-start; gap: 0; }\n @media (max-width: 47.99rem) { :host([size='compact']) article { gap: ${space(7)}; } }\n /* Tile (92:1978, 94:1785): as tall as its words, 24px in, every line 10px apart; the number in G2 Mono S, 11px medium capitals on 1.4 in the muted colour, with no dot. On a phone 20px in (92:2240, 94:2065). */\n :host([look='tile']) article { min-block-size: 0; justify-content: flex-start; gap: ${space(2.5)}; padding: ${space(6)}; }\n :host([look='tile']) .number { ${monoLabel}; font-weight: ${fontWeight('medium')}; color: ${t.textMuted}; }\n :host([look='tile']) article:has(a):hover .number, :host([look='tile']) article:focus-within .number, :host([look='tile'][featured]) .number { color: ${inkMuted}; }\n @media (max-width: 47.99rem) { :host([look='tile']) article { gap: ${space(2.5)}; padding: ${space(5)}; } }\n @media (prefers-reduced-motion: reduce) { article, article::before, .go { transition: none; } }\n @media (forced-colors: active) { article { border-color: CanvasText; } .dot { background: CanvasText; } article::before { display: none; } }\n `,\n revealStyles,\n ];\n\n render(): TemplateResult {\n const level = levelOf(this.headingLevel);\n return html`<article part=\"card\">\n <div class=\"top\" aria-hidden=\"true\">\n <span class=\"number\" part=\"number\">${this.number}</span>\n ${this.look === 'tile' ? nothing : html`<span class=\"dot\" part=\"dot\"></span>`}\n </div>\n <div class=\"foot\">\n <div class=\"heading\" part=\"heading\" role=\"heading\" aria-level=${level}>\n ${this.href ? html`<a href=${this.href} part=\"link\">${this.heading}</a>` : this.heading}\n </div>\n ${this.text ? html`<p class=\"text\" part=\"text\">${this.text}</p>` : nothing}\n ${this.tags ? html`<p class=\"tags\" part=\"tags\">${this.tags}</p>` : nothing}\n ${this.href && this.linkText ? html`<span class=\"more\" part=\"more\" aria-hidden=\"true\">${this.linkText} <span class=\"go\">→</span></span>` : nothing}\n </div>\n </article>`;\n }\n}\n\n/**\n * A pointer with a name beside it, as if someone were working on the page with\n * you: the cursors round a hero's heading.\n *\n * The name is on ink, outlined, or on the accent. With `drift` it moves a few\n * pixels to and fro, slowly; it stays still for anyone who asks for less\n * motion (2.3.3), and it never moves more than 5 seconds without a way to stop\n * it mattering, because it carries nothing (2.2.2).\n *\n * **It is decoration**, hidden from a screen reader (1.3.1).\n *\n * @category media\n * @icon pointer\n */\nexport class ImpaktCursor extends ImpaktElement {\n static properties = {\n name: { type: String },\n variant: { type: String, reflect: true },\n drift: { type: Boolean, reflect: true },\n };\n /** The name beside the pointer, such as \"Client\". */\n declare name: string;\n /** How the name is drawn: on ink, outlined, or on the accent. */\n declare variant: 'ink' | 'outline' | 'accent';\n /** Move slowly to and fro. Still for anyone who asks for less motion. */\n declare drift: boolean;\n\n constructor() {\n super();\n this.name = '';\n this.variant = 'ink';\n this.drift = false;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: inline-block; position: relative; pointer-events: none; }\n .cursor { display: inline-flex; align-items: flex-start; }\n svg { display: block; flex: none; }\n .arrow { fill: ${ink}; stroke: ${paper}; }\n .name { margin: 16px 0 0 -2px; padding: 4px 7px; ${monoLabel}; font-weight: ${fontWeight('medium')}; white-space: nowrap; background: ${ink}; color: ${paper}; border: 1px solid ${ink}; }\n :host([variant='outline']) .name { background: ${t.surfaceCard}; color: ${t.text}; border-color: ${t.text}; }\n :host([variant='accent']) .name { background: ${accent}; color: ${accentOn}; border-color: ${accentOn}; }\n :host([drift]) .cursor { animation: drift 7s ease-in-out infinite alternate; }\n @keyframes drift { 0% { transform: translate(0, 0); } 50% { transform: translate(6px, -3px); } 100% { transform: translate(-3px, 4px); } }\n @media (prefers-reduced-motion: reduce) { :host([drift]) .cursor { animation: none; } }\n @media (forced-colors: active) { .arrow { fill: CanvasText; stroke: Canvas; } .name { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n return html`<span class=\"cursor\" part=\"cursor\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 16 22\" width=\"16\" height=\"22\" focusable=\"false\"><path class=\"arrow\" d=\"M1.5 1.5v16.2l4.3-4.1 3 6.6 2.6-1.2-3-6.5h6z\" stroke-width=\"1.25\" stroke-linejoin=\"round\" /></svg>\n ${this.name ? html`<span class=\"name\" part=\"name\">${this.name}</span>` : nothing}\n </span>`;\n }\n}\n\n/** One fact: a label and its value. */\nexport interface FactItem {\n /** What it is, such as \"Client\". Set in mono capitals. */\n label: string;\n /** The fact, such as \"Vehicle importer · UK → Cyprus\". */\n value: string;\n /** Make the value a link, such as `mailto:` for an email address. */\n href?: string;\n /** This value's size, in place of the block's. */\n size?: 'sm' | 'md' | 'lg' | 'xl';\n}\n\n/**\n * A few facts, each a mono label over its value: a case study's client, role,\n * platform and stack in four columns under an ink rule, or contact details\n * stacked with the email set large.\n *\n * A description list, so each value is read with its label (1.3.1). Columns\n * wrap to fit their width, so they stack on a phone (1.4.10).\n *\n * @category content\n * @icon list\n */\nexport class ImpaktFacts extends ImpaktElement {\n static properties = {\n items: { type: Array },\n layout: { type: String, reflect: true },\n size: { type: String, reflect: true },\n label: { type: String },\n };\n /** The facts, in order. */\n declare items: FactItem[];\n /** Side by side under a rule each, or stacked. */\n declare layout: 'columns' | 'stacked';\n /** The values' size: `sm` 16px on 1.45, the G2 facts' Body M and the default (21:1336, 34:627), `md` 18px, `lg` 24px, `xl` 32px. An item can set its own. */\n declare size: 'sm' | 'md' | 'lg' | 'xl';\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.items = [];\n this.layout = 'columns';\n this.size = 'sm';\n this.label = '';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n focusRing,\n css`\n :host { display: block; color: ${t.text}; }\n /* Stacked, as the contact page's direct line (20:1163): 28px apart, each value 8px under its label. */\n dl { margin: 0; display: grid; gap: 28px; }\n /* In columns (21:1336, 34:627): each under an ink rule, the label 14px under it and the value 8px under the label, so a row of one line is 61px. */\n :host([layout='columns']) dl { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); column-gap: ${space(5)}; row-gap: ${space(6)}; }\n :host([layout='columns']) .fact { border-block-start: 1px solid ${t.text}; padding-block-start: 14px; }\n dt { ${monoLabel}; color: ${t.textMuted}; }\n dd { margin: ${space(2)} 0 0; font-family: ${t.fontBody}; line-height: 1.3; overflow-wrap: anywhere; }\n .sm { font-size: 1rem; line-height: 1.45; }\n .md { font-size: 1.125rem; }\n .lg { font-size: 1.5rem; letter-spacing: -0.01em; }\n .xl { font-size: clamp(1.5rem, 1rem + 2vw, 2rem); letter-spacing: -0.02em; }\n a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }\n a:hover { text-decoration-thickness: 2px; }\n /* Stacked, a value that is a link stands alone, so it is not underlined until it is pointed at or focused (20:1163). */\n :host([layout='stacked']) a { text-decoration: none; }\n :host([layout='stacked']) a:is(:hover, :focus-visible) { text-decoration: underline; text-decoration-thickness: 2px; }\n @media (forced-colors: active) { :host([layout='columns']) .fact { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n if (!this.items.length) return html``;\n return html`<dl part=\"list\" aria-label=${this.label || nothing}>\n ${this.items.map(\n (item) => html`<div class=\"fact\" part=\"fact\">\n <dt part=\"label\">${item.label}</dt>\n <dd part=\"value\" class=${item.size ?? this.size}>${item.href ? html`<a href=${item.href}>${item.value}</a>` : item.value}</dd>\n </div>`,\n )}\n </dl>`;\n }\n}\n\n/** One row of a numbered list. */\nexport interface NumberedItem {\n heading: string;\n text?: string;\n}\n\n/**\n * A numbered list under an ink rule, each row split by a hairline: the number,\n * a heading and a line of quieter text in three columns. \"Three rules we don't\n * break\", the steps of a project, a tool's features.\n *\n * The columns are 60px, then the heading and the text 40px apart, split 520\n * to 420 as on a case study (`21:1389`). `split=\"text\"` gives the text the\n * wider share, 460 to 480, as the tools pages do (`34:714`).\n *\n * An ordered list, so a screen reader says how many rows there are and which\n * one this is, and the drawn numbers are hidden from it (1.3.1). Each heading\n * is at the level the page asks for. It stacks in a narrow column, measured\n * against its own width (1.4.10), and takes its colours from its band.\n *\n * @category content\n * @icon list-ordered\n */\nexport class ImpaktNumberedList extends ImpaktElement {\n static properties = {\n items: { type: Array },\n start: { type: Number },\n headingLevel: { type: Number, attribute: 'heading-level' },\n label: { type: String },\n split: { type: String, reflect: true },\n };\n declare items: NumberedItem[];\n /** How the heading and the text share the row: `heading` 520 to 420 (`21:1389`), `text` 460 to 480 (`34:714`). */\n declare split: 'heading' | 'text';\n /** The number the first row is given. */\n declare start: number;\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.items = [];\n this.start = 1;\n this.headingLevel = 3;\n this.label = '';\n this.split = 'heading';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; container-type: inline-size; color: ${t.text}; }\n ol { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid ${t.text}; }\n /* The Item of 21:1389 and 34:714: 24px above and below, the number in G2 Mono M, the heading in Display S at 1.1 and the text in Body M, so a row of one line is 84px. */\n li { display: grid; grid-template-columns: 60px minmax(0, 520fr) minmax(0, 420fr); column-gap: ${space(10)}; align-items: center; padding-block: ${space(6)}; border-block-end: 1px solid ${t.rule}; }\n :host([split='text']) li { grid-template-columns: 60px minmax(0, 460fr) minmax(0, 480fr); }\n .n { font-family: ${t.fontMono}; font-size: var(--impakt-type-mono-m-size, 0.8125rem); line-height: var(--impakt-type-mono-m-line-height, 1.5); color: ${t.textMuted}; }\n .heading { margin: 0; font-family: ${t.fontHeading}; font-size: clamp(1.5rem, 1rem + 2cqi, 2rem); font-weight: ${fontWeight('semibold')}; line-height: 1.1; letter-spacing: -0.03em; }\n .text { margin: 0; font-size: 1rem; line-height: 1.45; color: ${t.textMuted}; }\n @container (max-width: 47.99rem) {\n li { grid-template-columns: minmax(0, 1fr); row-gap: ${space(2)}; }\n }\n @media (forced-colors: active) { ol { border-color: CanvasText; } li { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n if (!this.items.length) return html``;\n const level = levelOf(this.headingLevel);\n const start = Number.isFinite(Number(this.start)) ? Number(this.start) : 1;\n return html`<ol part=\"list\" role=\"list\" start=${start} aria-label=${this.label || nothing}>\n ${this.items.map(\n (item, i) => html`<li part=\"item\">\n <span class=\"n\" aria-hidden=\"true\">${pad(start + i)}</span>\n <div class=\"heading\" role=\"heading\" aria-level=${level} part=\"heading\">${item.heading}</div>\n ${item.text ? html`<p class=\"text\" part=\"text\">${item.text}</p>` : html`<span></span>`}\n </li>`,\n )}\n </ol>`;\n }\n}\n\n/** One column of a column list. */\nexport interface ColumnListColumn {\n /** The column's heading, such as \"Design\". Set in mono capitals. */\n heading: string;\n /** What is in it, each a line set large. */\n items: string[];\n}\n\n/**\n * What a studio does, in four columns: each under an ink rule, with a mono\n * heading such as \"Engineering\" and a stack of what it covers set large. The\n * items are words, not links.\n *\n * Each column's heading is a heading at the level the page asks for, and its\n * items a list (1.3.1). The columns wrap to fit their width (1.4.10).\n *\n * @category content\n * @icon columns\n */\nexport class ImpaktColumnList extends ImpaktElement {\n static properties = {\n columns: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n };\n declare columns: ColumnListColumn[];\n declare headingLevel: number;\n\n constructor() {\n super();\n this.columns = [];\n this.headingLevel = 3;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; color: ${t.text}; }\n .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: ${space(8)} ${space(5)}; }\n section { border-block-start: 1px solid ${t.text}; padding-block-start: ${space(4)}; }\n .heading { margin: 0; ${monoLabel}; color: ${t.textMuted}; }\n ul { margin: ${space(3)} 0 0; padding: 0; list-style: none; display: grid; gap: ${space(2)}; }\n li { font-family: ${t.fontHeading}; font-size: 1.5rem; font-weight: ${fontWeight('semibold')}; line-height: 1.2; letter-spacing: -0.02em; }\n @media (forced-colors: active) { section { border-color: CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n if (!this.columns.length) return html``;\n const level = levelOf(this.headingLevel);\n return html`<div class=\"grid\" part=\"grid\">\n ${this.columns.map(\n (col) => html`<section part=\"column\">\n <div class=\"heading\" role=\"heading\" aria-level=${level} part=\"heading\">${col.heading}</div>\n <ul role=\"list\" part=\"list\">${(col.items ?? []).map((item) => html`<li part=\"item\">${item}</li>`)}</ul>\n </section>`,\n )}\n </div>`;\n }\n}\n\n/**\n * An office: a mono line with its time zone and hours, its name set large, the\n * region under it and a line about it, on a white card with an ink border. An\n * accent tag at the top right can say how its hours meet another office's,\n * such as \"+2h · same working day\".\n *\n * The name is a heading at the level the page asks for (1.3.1). The tag is\n * text and is read; on a narrow card it moves above the name (1.4.10).\n *\n * @category content\n * @icon map-pin\n */\nexport class ImpaktOfficeCard extends ImpaktElement {\n static properties = {\n hours: { type: String },\n name: { type: String },\n region: { type: String },\n text: { type: String },\n tag: { type: String },\n headingLevel: { type: Number, attribute: 'heading-level' },\n };\n /** The time zone and hours, such as \"GMT · Mon–Fri 9–18\". */\n declare hours: string;\n /** The office, such as \"UK\". */\n declare name: string;\n /** Where it is, such as \"United Kingdom\". */\n declare region: string;\n /** A line about it. */\n declare text: string;\n /** An accent tag at the top right, such as \"+2h · same working day\". Leave empty for none. */\n declare tag: string;\n declare headingLevel: number;\n\n constructor() {\n super();\n this.hours = '';\n this.name = '';\n this.region = '';\n this.text = '';\n this.tag = '';\n this.headingLevel = 3;\n }\n\n static styles = [\n ...ImpaktElement.styles,\n css`\n :host { display: block; block-size: 100%; container-type: inline-size; }\n /* The office of 21:1201: 32px inside and its parts 12px apart, the region in Label L (16px on 1.2) and the line in Body M (16px on 1.45). */\n article { box-sizing: border-box; block-size: 100%; display: grid; align-content: start; gap: 12px; padding: ${space(8)}; background: ${t.surfaceCard}; color: ${t.text}; border: 1px solid ${t.text}; }\n .top { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: center; gap: ${space(2)}; }\n .hours { margin: 0; ${monoLabel}; color: ${t.textMuted}; }\n .tag { margin: 0; padding: 3px 6px; ${monoLabel}; font-weight: ${fontWeight('medium')}; background: ${accent}; color: ${accentOn}; }\n .name { margin: 0; font-family: ${t.fontHeading}; font-size: clamp(2.5rem, 1rem + 10cqi, 4rem); font-weight: ${fontWeight('semibold')}; line-height: 1; letter-spacing: -0.04em; overflow-wrap: anywhere; }\n .region { margin: 0; font-size: 1rem; line-height: 1.2; }\n .text { margin: 0; font-size: 1rem; line-height: 1.45; color: ${t.textMuted}; }\n @container (max-width: 22rem) { article { padding: ${space(5)}; } }\n @media (forced-colors: active) { article { border-color: CanvasText; } .tag { border: 1px solid CanvasText; } }\n `,\n ];\n\n render(): TemplateResult {\n const level = levelOf(this.headingLevel);\n return html`<article part=\"card\">\n ${\n this.hours || this.tag\n ? html`<div class=\"top\">${this.hours ? html`<p class=\"hours\" part=\"hours\">${this.hours}</p>` : html`<span></span>`}${this.tag ? html`<p class=\"tag\" part=\"tag\">${this.tag}</p>` : nothing}</div>`\n : nothing\n }\n <div class=\"name\" role=\"heading\" aria-level=${level} part=\"name\">${this.name}</div>\n ${this.region ? html`<p class=\"region\" part=\"region\">${this.region}</p>` : nothing}\n ${this.text ? html`<p class=\"text\" part=\"text\">${this.text}</p>` : nothing}\n </article>`;\n }\n}\n\ncustomElements.define('impakt-stage-tag', ImpaktStageTag);\ncustomElements.define('impakt-section-head', ImpaktSectionHead);\ncustomElements.define('impakt-service-card', ImpaktServiceCard);\ncustomElements.define('impakt-cursor', ImpaktCursor);\ncustomElements.define('impakt-facts', ImpaktFacts);\ncustomElements.define('impakt-numbered-list', ImpaktNumberedList);\ncustomElements.define('impakt-column-list', ImpaktColumnList);\ncustomElements.define('impakt-office-card', ImpaktOfficeCard);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-stage-tag': ImpaktStageTag;\n 'impakt-section-head': ImpaktSectionHead;\n 'impakt-service-card': ImpaktServiceCard;\n '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;AAAA,EAEA,SAAyB;AACvB,UAAM,QAAQ,QAAQ,KAAK,YAAY;AACvC,WAAO;AAAA,QAEH,KAAK,SAAS,KAAK,MACf,wBAAwB,KAAK,QAAQ,qCAAqC,KAAK,KAAK,SAAS,mBAAmB,GAAG,KAAK,MAAM,iCAAiC,KAAK,GAAG,SAAS,OAAO,WACvL,OACN;AAAA,oDAC8C,KAAK,gBAAgB,KAAK,IAAI;AAAA,QAC1E,KAAK,SAAS,uCAAuC,KAAK,MAAM,SAAS,OAAO;AAAA,QAChF,KAAK,OAAO,mCAAmC,KAAK,IAAI,SAAS,OAAO;AAAA;AAAA,EAE9E;AACF;AAEA,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,uBAAuB,iBAAiB;AAC9D,eAAe,OAAO,uBAAuB,iBAAiB;AAC9D,eAAe,OAAO,iBAAiB,YAAY;AACnD,eAAe,OAAO,gBAAgB,WAAW;AACjD,eAAe,OAAO,wBAAwB,kBAAkB;AAChE,eAAe,OAAO,sBAAsB,gBAAgB;AAC5D,eAAe,OAAO,sBAAsB,gBAAgB;","names":[]}
|
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
// packages/blocks/src/components/studio.ts
|
|
2
2
|
import { css, html, nothing } from "lit";
|
|
3
|
-
import {
|
|
4
|
-
ImpaktElement,
|
|
5
|
-
focusRing,
|
|
6
|
-
fontSize,
|
|
7
|
-
fontWeight,
|
|
8
|
-
lineHeight,
|
|
9
|
-
lockScroll,
|
|
10
|
-
space,
|
|
11
|
-
spaceAround,
|
|
12
|
-
t,
|
|
13
|
-
token,
|
|
14
|
-
unlockScroll
|
|
15
|
-
} from "@atomic-ui/ui";
|
|
3
|
+
import { ImpaktElement, focusRing, fontSize, fontWeight, lineHeight, space, spaceAround, t, token, R, revealAt, revealStyles } from "@atomic-ui/ui";
|
|
16
4
|
var arrow = html`<svg viewBox="0 0 22 22" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true" focusable="false">
|
|
17
5
|
<path d="M5 17 17 5M8 5h9v9" />
|
|
18
6
|
</svg>`;
|
|
@@ -52,9 +40,20 @@ var ImpaktWorkList = class extends ImpaktElement {
|
|
|
52
40
|
/* The Project row component (8:339): 22px above and below a 72px name, the number in a 54px column, 24px apart. */
|
|
53
41
|
li, .columns { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 22px; align-items: center; column-gap: ${space(6)}; padding: 22px ${space(8)}; }
|
|
54
42
|
.texts li, .texts.columns { grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr) auto 22px; }
|
|
55
|
-
li { position: relative; border-block-end: ${t.borderThin} solid ${t.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }
|
|
56
|
-
|
|
57
|
-
.
|
|
43
|
+
li { position: relative; isolation: isolate; border-block-end: ${t.borderThin} solid ${t.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }
|
|
44
|
+
/* The ink a row turns to, a layer of its own: a brand that derives the reveal set fades it in whole, as before; Impakt wipes it in from the left in 180ms (impkt-web#51). */
|
|
45
|
+
li::before { content: ''; position: absolute; inset: 0; z-index: -1; background: ${t.text}; opacity: calc(1 - ${R.wipeFrom}); transform: scaleX(${R.wipeFrom}); transform-origin: left center; transition: transform ${R.wipeDuration} ${R.wipeEasing}, opacity ${R.wipeDuration} ${R.wipeEasing}; pointer-events: none; }
|
|
46
|
+
li:has(a):hover::before, li:has(a:focus-visible)::before { opacity: 1; transform: none; }
|
|
47
|
+
li :is(.name, .number, .meta, .text, .price, .arrow) { transition: color ${R.wipeDuration} ${R.wipeEasing}; }
|
|
48
|
+
.arrow svg { transition: translate ${R.arrowDuration} ${R.arrowEasing}; }
|
|
49
|
+
/* The row's arrow points up and along, so it slides that way, 4px in all. */
|
|
50
|
+
li:has(a):hover .arrow svg, li:has(a:focus-visible) .arrow svg { translate: calc(0.7071 * ${R.arrowDistance}) calc(-0.7071 * ${R.arrowDistance}); }
|
|
51
|
+
/* Drop (impkt-web#51): the rows drop 12px into place one after another as the list is reached, and the line under each settles. */
|
|
52
|
+
:host([data-motion]) li { animation: ik-reveal-drop ${R.drop} ${R.arrive} ${revealAt()} both, ik-reveal-settle ${R.drop} ${R.arrive} ${revealAt()} both; }
|
|
53
|
+
:host([data-motion]) .columns { animation: ik-reveal-type ${R.type} ${R.arrive} ${revealAt(0)} both; }
|
|
54
|
+
/* The column names (20:998): G2 Mono S on its 1.4 line, 12px over the rule, and the last name ends over the arrow's column. */
|
|
55
|
+
.columns { padding-block: 0 ${space(3)}; border-block-end: ${t.borderThin} solid ${t.text}; font-family: ${t.fontMono}; font-size: 0.6875rem; line-height: 1.4; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }
|
|
56
|
+
.columns .last { grid-column: -3 / -1; text-align: end; }
|
|
58
57
|
.number { font-family: ${t.fontMono}; font-size: 0.8125rem; line-height: 1.5; font-variant-numeric: tabular-nums; color: ${t.textMuted}; }
|
|
59
58
|
/* Display Row: 72px on a 1080px list and 40px on a 350px phone list (8:329, 14:947). */
|
|
60
59
|
.name { font-family: ${t.fontHeading}; font-size: clamp(2rem, 1.541rem + 4.384cqi, 4.5rem); font-weight: ${fontWeight("semibold")}; line-height: 1; letter-spacing: -0.05em; color: ${t.text}; overflow-wrap: anywhere; }
|
|
@@ -75,7 +74,7 @@ var ImpaktWorkList = class extends ImpaktElement {
|
|
|
75
74
|
li:not(:has(a)) .badge { color: ${t.text}; background: transparent; }
|
|
76
75
|
.arrow { display: flex; color: ${t.text}; }
|
|
77
76
|
/* Pointed at, focused or featured, the row turns to ink. The card colour on the text colour is a pair every brand already holds at 4.5:1. */
|
|
78
|
-
li
|
|
77
|
+
li.featured { background: ${t.text}; }
|
|
79
78
|
li:has(a):hover .name, li:has(a:focus-visible) .name, li.featured .name { color: ${t.surfaceCard}; }
|
|
80
79
|
li:has(a):hover :is(.number, .meta, .text, .price), li:has(a:focus-visible) :is(.number, .meta, .text, .price), li.featured :is(.number, .meta, .text, .price) { color: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); }
|
|
81
80
|
li:has(a):hover .badge, li:has(a:focus-visible) .badge { color: ${t.text}; background: ${t.surfaceCard}; border-color: ${t.surfaceCard}; }
|
|
@@ -96,13 +95,15 @@ var ImpaktWorkList = class extends ImpaktElement {
|
|
|
96
95
|
.arrow svg { inline-size: 18px; block-size: 18px; }
|
|
97
96
|
.columns { display: none; }
|
|
98
97
|
}
|
|
99
|
-
@media (prefers-reduced-motion: reduce) { li { transition: none; } .preview { display: none; } }
|
|
98
|
+
@media (prefers-reduced-motion: reduce) { li, li::before, li *, .arrow svg { transition: none; } .preview { display: none; } }
|
|
100
99
|
@media (forced-colors: active) {
|
|
100
|
+
li::before { display: none; }
|
|
101
101
|
li:has(a):hover, li:has(a:focus-visible), li.featured { background: Canvas; outline: 2px solid Highlight; outline-offset: -2px; }
|
|
102
102
|
li:has(a):hover :is(.name, .number, .meta, .arrow, .text, .price), li:has(a:focus-visible) :is(.name, .number, .meta, .arrow, .text, .price), li.featured :is(.name, .number, .meta, .arrow, .text, .price) { color: CanvasText; }
|
|
103
103
|
.badge, li.featured .badge { color: CanvasText; background: Canvas; border-color: CanvasText; }
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
`,
|
|
106
|
+
revealStyles
|
|
106
107
|
];
|
|
107
108
|
}
|
|
108
109
|
/** Show a row's preview beside a mouse pointer. Touch and reduced motion get none. */
|
|
@@ -130,7 +131,7 @@ var ImpaktWorkList = class extends ImpaktElement {
|
|
|
130
131
|
${items.map((item, index) => {
|
|
131
132
|
const number = String(this.start + index).padStart(2, "0");
|
|
132
133
|
const side = item.badge || item.price || item.meta;
|
|
133
|
-
return html`<li part="row" class=${item.featured ? "featured" : ""} @pointermove=${(event) => this.point(event, item)}>
|
|
134
|
+
return html`<li part="row" class=${item.featured ? "featured" : ""} style=${`--i:${index}`} @pointermove=${(event) => this.point(event, item)}>
|
|
134
135
|
<span class="number" aria-hidden="true">${number}</span>
|
|
135
136
|
<div class="name" part="name" role="heading" aria-level=${this.headingLevel}>
|
|
136
137
|
${item.href ? html`<a href=${item.href} part="link">${item.name}</a>` : item.name}
|
|
@@ -175,8 +176,11 @@ var ImpaktStatRow = class extends ImpaktElement {
|
|
|
175
176
|
ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: ${space(6)}; }
|
|
176
177
|
li { border-block-start: ${t.borderThin} solid ${t.rule}; padding-block-start: ${space(5)}; }
|
|
177
178
|
p { margin: 0; display: flex; flex-direction: column; gap: ${space(2)}; }
|
|
178
|
-
.value { font-family: ${t.fontHeading}; font-size: clamp(2.5rem, 6cqi, 3.25rem); font-weight: ${fontWeight("semibold")}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; }
|
|
179
|
-
|
|
179
|
+
.value { font-family: ${t.fontHeading}; font-size: clamp(2.5rem, 6cqi, 3.25rem); font-weight: ${fontWeight("semibold")}; line-height: 1; letter-spacing: -0.04em; color: ${t.textHeading}; font-variant-numeric: tabular-nums; }
|
|
180
|
+
/* The label's lines are whole pixels, 20px at 14, as the frame sets them, so a two-line stat is 121px (9:362). */
|
|
181
|
+
.label { font-size: ${fontSize("sm")}; line-height: 1.25rem; color: ${t.textMuted}; }
|
|
182
|
+
/* The Stat component (8:324) sets its label 230px wide under Impakt, so "of row counts matched in the restore drill" takes two lines and its stat is 121px (94:1716); another brand runs it the stat's width. */
|
|
183
|
+
.label { max-inline-size: ${token("stat-row.label.width", "none")}; }
|
|
180
184
|
/* On a phone (14:783): two across, 20px apart with 16px between the rows; 14px over the 40px figure, 6px under it and 8px under the label. */
|
|
181
185
|
@container impakt-stat-row (max-width: 40rem) {
|
|
182
186
|
ul { gap: ${space(4)} ${space(5)}; }
|
|
@@ -185,14 +189,15 @@ var ImpaktStatRow = class extends ImpaktElement {
|
|
|
185
189
|
}
|
|
186
190
|
/* The note is meta: monospace capitals at 11px. */
|
|
187
191
|
.note { font-family: ${t.fontMono}; font-size: 0.6875rem; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }
|
|
188
|
-
|
|
192
|
+
`,
|
|
193
|
+
revealStyles
|
|
189
194
|
];
|
|
190
195
|
}
|
|
191
196
|
render() {
|
|
192
197
|
return html`<ul role="list" part="list" aria-label=${this.label || nothing}>
|
|
193
198
|
${this.items.map(
|
|
194
|
-
(item) => html`<li part="stat">
|
|
195
|
-
<p><span class="value" part="value">${item.figure}</span> <span class="label" part="label">${item.label}</span>${item.note ? html` <span class="note">${item.note}</span>` : nothing}</p>
|
|
199
|
+
(item, i) => html`<li part="stat" style=${`--i:${i}`}>
|
|
200
|
+
<p><span class="value" part="value" data-ik-count>${item.figure}</span> <span class="label" part="label">${item.label}</span>${item.note ? html` <span class="note">${item.note}</span>` : nothing}</p>
|
|
196
201
|
</li>`
|
|
197
202
|
)}
|
|
198
203
|
</ul>`;
|
|
@@ -237,7 +242,12 @@ var ImpaktFaq = class extends ImpaktElement {
|
|
|
237
242
|
/* The questions sit between 1px ink rules, the first one included, each a row about 92px tall set at heading size S. */
|
|
238
243
|
impakt-accordion { border-block-start: ${t.borderThin} solid ${t.text}; }
|
|
239
244
|
impakt-accordion::part(item) { border-block-end: ${t.borderThin} solid ${t.text}; }
|
|
240
|
-
|
|
245
|
+
/* The FAQ item (10:670, 21:1220): 92px with its rule, the question in Heading S (24px on 1.15 at -2.5%) centred beside the "+". Impakt keeps 24px on a phone (92:2191); another brand's question runs from 20px in a narrow column (faq.question.size). */
|
|
246
|
+
impakt-accordion::part(header) { box-sizing: border-box; min-block-size: 91px; align-items: center; padding-block: ${space(5)}; font-family: ${t.fontHeading}; font-size: ${token("faq.question.size", "clamp(1.25rem, 3.2cqi, 1.5rem)")}; font-weight: ${fontWeight("semibold")}; line-height: 1.15; letter-spacing: -0.025em; }
|
|
247
|
+
/* The "+" sits on the question's first line, or under Impakt in the middle of the row, as the FAQ item does (8:359, 92:2191). */
|
|
248
|
+
impakt-accordion { --ik-accordion-marker-align: ${token("faq.marker.align", "flex-start")}; --ik-accordion-marker-first-line: ${token("faq.marker.first-line", "1")}; }
|
|
249
|
+
/* On a phone a one-line row is as tall as the "+" line under Impakt, 76px with its rule (92:2402); another brand keeps 92px. */
|
|
250
|
+
@container impakt-faq (max-width: 47.99rem) { impakt-accordion::part(header) { min-block-size: ${token("faq.question.phone-min-height", "91px")}; } }
|
|
241
251
|
impakt-accordion::part(panel) { max-inline-size: 44rem; color: ${t.textMuted}; line-height: ${lineHeight("normal")}; }
|
|
242
252
|
@media (forced-colors: active) { impakt-accordion, impakt-accordion::part(item) { border-color: CanvasText; } }
|
|
243
253
|
`
|
|
@@ -251,132 +261,12 @@ var ImpaktFaq = class extends ImpaktElement {
|
|
|
251
261
|
${this.heading ? html`<div id=${headingId} class="heading" part="heading" role="heading" aria-level=${level}>${this.heading}</div>` : nothing}
|
|
252
262
|
${this.lead ? html`<p class="lead" part="lead">${this.lead}</p>` : nothing}
|
|
253
263
|
</div>` : nothing;
|
|
254
|
-
const accordion = html`<impakt-accordion part="questions" marker="plus" .items=${this.items} .headingLevel=${level + 1} .open=${this.open} .multiple=${this.multiple}>
|
|
264
|
+
const accordion = html`<impakt-accordion part="questions" exportparts="item, head, header, panel" marker="plus" .items=${this.items} .headingLevel=${level + 1} .open=${this.open} .multiple=${this.multiple}>
|
|
255
265
|
${this.items.map((item) => html`<slot name=${`panel-${item.id}`} slot=${`panel-${item.id}`}>${item.body}</slot>`)}
|
|
256
266
|
</impakt-accordion>`;
|
|
257
267
|
return this.heading ? html`<section aria-labelledby=${headingId}>${head}${accordion}</section>` : html`<div>${head}${accordion}</div>`;
|
|
258
268
|
}
|
|
259
269
|
};
|
|
260
|
-
var ImpaktSiteMenu = class extends ImpaktElement {
|
|
261
|
-
constructor() {
|
|
262
|
-
super();
|
|
263
|
-
this.hasFooter = false;
|
|
264
|
-
this.open = false;
|
|
265
|
-
this.links = [];
|
|
266
|
-
this.current = "";
|
|
267
|
-
this.brand = "";
|
|
268
|
-
this.mark = "";
|
|
269
|
-
this.home = "/";
|
|
270
|
-
this.label = "Menu";
|
|
271
|
-
this.closeText = "Close";
|
|
272
|
-
this.currentText = "";
|
|
273
|
-
}
|
|
274
|
-
static {
|
|
275
|
-
this.properties = {
|
|
276
|
-
open: { type: Boolean, reflect: true },
|
|
277
|
-
links: { type: Array },
|
|
278
|
-
current: { type: String },
|
|
279
|
-
brand: { type: String },
|
|
280
|
-
mark: { type: String },
|
|
281
|
-
home: { type: String },
|
|
282
|
-
label: { type: String },
|
|
283
|
-
closeText: { type: String, attribute: "close-text" },
|
|
284
|
-
currentText: { type: String, attribute: "current-text" }
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
static {
|
|
288
|
-
this.styles = [
|
|
289
|
-
...ImpaktElement.styles,
|
|
290
|
-
focusRing,
|
|
291
|
-
css`
|
|
292
|
-
/* The ink colours are taken on the host, because the dialog repaints the text colour for what is inside it. */
|
|
293
|
-
:host { --impakt-menu: ${t.text}; --impakt-menu-on: ${t.surfaceCard}; --impakt-menu-muted: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); --impakt-menu-rule: color-mix(in srgb, ${t.surfaceCard} 18%, ${t.text}); }
|
|
294
|
-
dialog { box-sizing: border-box; display: none; flex-direction: column; inline-size: 100vw; max-inline-size: 100vw; block-size: 100dvh; max-block-size: 100dvh; margin: 0; padding: 0; border: 0; overflow: auto; background: var(--impakt-menu); color: var(--impakt-menu-on); }
|
|
295
|
-
dialog[open] { display: flex; }
|
|
296
|
-
dialog::backdrop { background: var(--impakt-menu); }
|
|
297
|
-
.bar { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding: ${space(2)} ${space(4)}; border-block-end: ${t.borderThin} solid var(--impakt-menu-rule); }
|
|
298
|
-
.brand { color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: ${fontSize("md")}; font-weight: ${fontWeight("semibold")}; border-radius: ${t.radiusSm}; }
|
|
299
|
-
.brand.marked { display: inline-flex; align-items: center; gap: ${space(3)}; min-block-size: 44px; font-weight: ${fontWeight("medium")}; }
|
|
300
|
-
.mark { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; flex: none; background: var(--impakt-menu-on); color: var(--impakt-menu); font-size: ${fontSize("sm")}; }
|
|
301
|
-
.close { display: inline-flex; align-items: center; gap: ${space(2)}; min-block-size: 44px; padding: 0 ${space(4)}; font: inherit; font-size: ${fontSize("sm")}; font-weight: ${fontWeight("medium")}; color: var(--impakt-menu); background: var(--impakt-menu-on); border: 0; border-radius: ${t.radius}; cursor: pointer; }
|
|
302
|
-
nav { flex: 1; padding: ${space(6)} ${space(5)} 0; }
|
|
303
|
-
ol { list-style: none; margin: 0; padding: 0; }
|
|
304
|
-
li { border-block-end: ${t.borderThin} solid var(--impakt-menu-rule); }
|
|
305
|
-
li a { display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding-block: ${space(4)}; color: inherit; text-decoration: none; font-family: ${t.fontHeading}; font-size: clamp(2.25rem, 12vw, 3.5rem); font-weight: ${fontWeight("semibold")}; line-height: 1; letter-spacing: -0.05em; }
|
|
306
|
-
li a:hover .words { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
|
|
307
|
-
.number { font-family: ${t.fontMono}; font-size: ${fontSize("sm")}; font-weight: ${fontWeight("regular")}; letter-spacing: 0; color: var(--impakt-menu-muted); }
|
|
308
|
-
/*
|
|
309
|
-
* The current page is marked with a square. Its colour stays the menu's own text colour unless a brand sets
|
|
310
|
-
* --impakt-site-menu-current, because an accent is only readable on ink when the brand's ink is dark (1.4.3).
|
|
311
|
-
*/
|
|
312
|
-
a[aria-current] { color: var(--impakt-site-menu-current, var(--impakt-menu-on)); }
|
|
313
|
-
a[aria-current] .number { color: var(--impakt-site-menu-current, var(--impakt-menu-on)); }
|
|
314
|
-
a[aria-current]:not(.worded) .words::before { content: ''; display: inline-block; inline-size: 0.28em; block-size: 0.28em; margin-inline-end: 0.22em; vertical-align: 0.18em; background: currentColor; }
|
|
315
|
-
.foot { display: flex; flex-direction: column; gap: ${space(4)}; padding: ${space(8)} ${space(5)} calc(${space(8)} + env(safe-area-inset-bottom)); }
|
|
316
|
-
.foot[hidden] { display: none; }
|
|
317
|
-
/* What is slotted at the foot is read on ink too. */
|
|
318
|
-
::slotted(*) { --impakt-color-text-default: var(--impakt-menu-on); --impakt-color-text-heading: var(--impakt-menu-on); --impakt-color-text-muted: var(--impakt-menu-muted); --impakt-color-text-link: var(--impakt-menu-on); --impakt-color-text-link-hover: var(--impakt-menu-on); color: var(--impakt-menu-on); }
|
|
319
|
-
@media (forced-colors: active) { dialog { border: 1px solid CanvasText; } .close { border: 1px solid ButtonText; } }
|
|
320
|
-
`
|
|
321
|
-
];
|
|
322
|
-
}
|
|
323
|
-
get dialog() {
|
|
324
|
-
return this.renderRoot.querySelector("dialog");
|
|
325
|
-
}
|
|
326
|
-
updated(changed) {
|
|
327
|
-
if (!changed.has("open")) return;
|
|
328
|
-
const dialog = this.dialog;
|
|
329
|
-
if (!dialog) return;
|
|
330
|
-
if (this.open) {
|
|
331
|
-
if (typeof dialog.showModal === "function") dialog.showModal();
|
|
332
|
-
else dialog.setAttribute("open", "");
|
|
333
|
-
lockScroll(this);
|
|
334
|
-
} else {
|
|
335
|
-
if (typeof dialog.close === "function" && dialog.open) dialog.close();
|
|
336
|
-
else dialog.removeAttribute("open");
|
|
337
|
-
unlockScroll(this);
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
disconnectedCallback() {
|
|
341
|
-
super.disconnectedCallback();
|
|
342
|
-
unlockScroll(this);
|
|
343
|
-
}
|
|
344
|
-
close() {
|
|
345
|
-
if (!this.open) return;
|
|
346
|
-
this.open = false;
|
|
347
|
-
this.dispatchEvent(new CustomEvent("impakt-close", { bubbles: true, composed: true }));
|
|
348
|
-
}
|
|
349
|
-
footerChanged(event) {
|
|
350
|
-
this.hasFooter = event.target.assignedNodes().length > 0;
|
|
351
|
-
this.requestUpdate();
|
|
352
|
-
}
|
|
353
|
-
render() {
|
|
354
|
-
return html`<dialog part="dialog" aria-label=${this.label} @cancel=${() => this.close()} @close=${() => this.close()}>
|
|
355
|
-
<div class="bar" part="bar">
|
|
356
|
-
${this.brand ? html`<a class=${this.mark ? "brand marked" : "brand"} href=${this.home || "/"} part="brand">${this.mark ? html`<span class="mark" part="mark" aria-hidden="true">${this.mark}</span>` : nothing}${this.brand}</a>` : html`<span></span>`}
|
|
357
|
-
<button class="close" type="button" part="close" @click=${() => this.close()}>
|
|
358
|
-
<span>${this.closeText}</span>
|
|
359
|
-
<svg viewBox="0 0 12 12" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true" focusable="false"><path d="M1 1l10 10M11 1 1 11" /></svg>
|
|
360
|
-
</button>
|
|
361
|
-
</div>
|
|
362
|
-
<nav aria-label=${this.label} part="nav">
|
|
363
|
-
<ol role="list">
|
|
364
|
-
${(this.links ?? []).map((link, index) => {
|
|
365
|
-
const current = !!this.current && link.href === this.current;
|
|
366
|
-
const number = String(index + 1).padStart(2, "0");
|
|
367
|
-
const worded = current && !!this.currentText;
|
|
368
|
-
return html`<li>
|
|
369
|
-
<a href=${link.href} class=${worded ? "worded" : ""} aria-current=${current ? "page" : nothing} part="link" @click=${() => this.close()}>
|
|
370
|
-
<span class="words">${link.label}</span><span class="number" aria-hidden="true">${worded ? `${this.currentText} \xB7 ${number}` : number}</span>
|
|
371
|
-
</a>
|
|
372
|
-
</li>`;
|
|
373
|
-
})}
|
|
374
|
-
</ol>
|
|
375
|
-
</nav>
|
|
376
|
-
<div class="foot" part="footer" ?hidden=${!this.hasFooter}><slot name="footer" @slotchange=${this.footerChanged}></slot></div>
|
|
377
|
-
</dialog>`;
|
|
378
|
-
}
|
|
379
|
-
};
|
|
380
270
|
var ImpaktOffer = class extends ImpaktElement {
|
|
381
271
|
static {
|
|
382
272
|
this.properties = {
|
|
@@ -482,6 +372,10 @@ var ImpaktPostCard = class extends ImpaktElement {
|
|
|
482
372
|
article:has(a):hover .heading { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
|
|
483
373
|
.text { margin: 0; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }
|
|
484
374
|
.more { font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight("medium")}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.text}; }
|
|
375
|
+
/* The link's arrow slides forward when the card is pointed at or focused (impkt-web#51). */
|
|
376
|
+
.go { display: inline-block; transition: translate ${R.arrowDuration} ${R.arrowEasing}; }
|
|
377
|
+
article:has(a):hover .go, article:focus-within .go { translate: ${R.arrowDistance} 0; }
|
|
378
|
+
@media (prefers-reduced-motion: reduce) { .go { transition: none; } }
|
|
485
379
|
/* On a phone (15:1020): 20px inside and 12px apart. */
|
|
486
380
|
@media (max-width: 47.99rem) { article { gap: ${space(3)}; padding: ${space(5)}; } }
|
|
487
381
|
@media (forced-colors: active) { article { border-color: CanvasText; } }
|
|
@@ -494,7 +388,7 @@ var ImpaktPostCard = class extends ImpaktElement {
|
|
|
494
388
|
${this.meta ? html`<p class="meta" part="meta">${this.meta}</p>` : nothing}
|
|
495
389
|
<div class="heading" part="heading" role="heading" aria-level=${level}>${this.href ? html`<a href=${this.href} part="link">${this.heading}</a>` : this.heading}</div>
|
|
496
390
|
${this.text ? html`<p class="text" part="text">${this.text}</p>` : nothing}
|
|
497
|
-
${this.linkText && this.href ? html`<span class="more" aria-hidden="true">${this.linkText}
|
|
391
|
+
${this.linkText && this.href ? html`<span class="more" aria-hidden="true">${this.linkText} <span class="go">→</span></span>` : nothing}
|
|
498
392
|
</article>`;
|
|
499
393
|
}
|
|
500
394
|
};
|
|
@@ -503,12 +397,14 @@ var ImpaktHighlight = class extends ImpaktElement {
|
|
|
503
397
|
this.properties = {
|
|
504
398
|
label: { type: String },
|
|
505
399
|
cursor: { type: String },
|
|
506
|
-
hideLabelOn: { type: String, reflect: true, attribute: "hide-label-on" }
|
|
400
|
+
hideLabelOn: { type: String, reflect: true, attribute: "hide-label-on" },
|
|
401
|
+
labelPhone: { type: String, attribute: "label-phone" }
|
|
507
402
|
};
|
|
508
403
|
}
|
|
509
404
|
constructor() {
|
|
510
405
|
super();
|
|
511
406
|
this.label = "";
|
|
407
|
+
this.labelPhone = "";
|
|
512
408
|
this.cursor = null;
|
|
513
409
|
this.hideLabelOn = "";
|
|
514
410
|
}
|
|
@@ -521,26 +417,41 @@ var ImpaktHighlight = class extends ImpaktElement {
|
|
|
521
417
|
* (12px at 120px) and from 2px under the top of the line to 4px over its foot, so the words keep their place in the
|
|
522
418
|
* heading. Its four 8px handles sit on its corners with the same line.
|
|
523
419
|
*/
|
|
524
|
-
:host { --x: 0.1em; --top: 0.0167em; --foot: 0.033em; display: inline-block; position: relative; isolation: isolate; color: ${token("color.accent.on", "#1a1a1a")}; }
|
|
525
|
-
.box { position: absolute; z-index: -1; inset: var(--top) calc(-1 * var(--x)) var(--foot); box-sizing: border-box; background: ${token("color.accent.default", "#ffd43b")}; border: 1.5px solid ${token("color.accent.on", "#1a1a1a")}; }
|
|
420
|
+
:host { --x: 0.1em; --trail: var(--impakt-highlight-trail, 0.05em); --top: 0.0167em; --foot: 0.033em; display: inline-block; position: relative; isolation: isolate; margin-inline-end: calc(var(--x) + var(--trail) + 0.05em); color: ${token("color.accent.on", "#1a1a1a")}; }
|
|
421
|
+
.box { position: absolute; z-index: -1; inset: var(--top) calc(-1 * var(--x) - var(--trail)) var(--foot) calc(-1 * var(--x)); box-sizing: border-box; background: ${token("color.accent.default", "#ffd43b")}; border: 1.5px solid ${token("color.accent.on", "#1a1a1a")}; }
|
|
526
422
|
.handle { position: absolute; inline-size: 8px; block-size: 8px; box-sizing: border-box; background: ${t.surfaceCard}; border: 1.5px solid ${token("color.accent.on", "#1a1a1a")}; }
|
|
527
|
-
.handle
|
|
528
|
-
.handle
|
|
529
|
-
.handle
|
|
530
|
-
.handle
|
|
531
|
-
/*
|
|
532
|
-
|
|
533
|
-
|
|
423
|
+
.handle.h1 { inset-block-start: calc(var(--top) - 4px); inset-inline-start: calc(-1 * var(--x) - 4px); }
|
|
424
|
+
.handle.h2 { inset-block-start: calc(var(--top) - 4px); inset-inline-end: calc(-1 * var(--x) - var(--trail) - 4px); }
|
|
425
|
+
.handle.h3 { inset-block-end: calc(var(--foot) - 4px); inset-inline-start: calc(-1 * var(--x) - 4px); }
|
|
426
|
+
.handle.h4 { inset-block-end: calc(var(--foot) - 4px); inset-inline-end: calc(-1 * var(--x) - var(--trail) - 4px); }
|
|
427
|
+
/*
|
|
428
|
+
* The label is meta: monospace capitals at 11px, square, 8px under the box and level with its edge (9:311). It is
|
|
429
|
+
* placed by a holder in the heading's own size, so the box's em measures are the heading's, not the label's.
|
|
430
|
+
*/
|
|
431
|
+
.label-at { position: absolute; inset-block-start: calc(100% - var(--foot) + 8px); inset-inline-start: calc(-1 * var(--x)); line-height: 0; }
|
|
432
|
+
.label { display: block; padding: 3px 7px; white-space: nowrap; font-family: ${t.fontMono}; font-size: 0.6875rem; font-weight: ${fontWeight("medium")}; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.surfaceCard}; background: ${t.text}; border-radius: ${t.radiusSm}; }
|
|
433
|
+
/* A phone tag, such as "Design" under "Design · H1 / 120" (90:1297, 92:2191, 96:2290), stands in for the label on a phone. */
|
|
434
|
+
.label.phone { display: none; }
|
|
435
|
+
@media (max-width: 40rem) { .label.phone { display: block; } .label.wide:has(+ .label.phone) { display: none; } :host([hide-label-on='phone']) .label-at { display: none; } }
|
|
534
436
|
/* The pointer sits by the bottom-right handle, 16px up from the box's foot, with its name tag 16px along and 18px down (9:313, 9:315). */
|
|
535
|
-
.cursor { position: absolute; inset-block-start: calc(100% - var(--foot) - 16px); inset-inline-start: calc(100% + var(--x) - 4px); display: flex; align-items: flex-start; pointer-events: none; line-height: 1; }
|
|
437
|
+
.cursor { position: absolute; inset-block-start: calc(100% - var(--foot) - 16px); inset-inline-start: calc(100% + var(--x) + var(--trail) - 4px); display: flex; align-items: flex-start; pointer-events: none; line-height: 1; }
|
|
536
438
|
.cursor svg { display: block; flex: none; color: ${t.text}; stroke: ${t.surfaceCard}; }
|
|
537
439
|
.tag { margin-block-start: 18px; padding: 3px 6px; white-space: nowrap; font-family: ${t.fontMono}; font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: ${t.surfaceCard}; background: ${t.text}; }
|
|
538
440
|
@media (forced-colors: active) { :host { forced-color-adjust: none; color: HighlightText; } .box { background: Highlight; border-color: HighlightText; } .handle { border-color: HighlightText; background: Canvas; } .label, .tag { background: CanvasText; color: Canvas; } .cursor svg { color: CanvasText; } }
|
|
539
|
-
|
|
441
|
+
/* Selection draw (impkt-web#51): the frame is dragged out from its top-left corner over the words, then its handles appear; the size label counts up as it does. Until the frame is there the words keep the page's text colour. */
|
|
442
|
+
.label { --ik-count-duration: ${R.select}; }
|
|
443
|
+
:host([data-motion]) { animation: ik-highlight-words ${R.select} ${R.shape} ${revealAt(0)} both; }
|
|
444
|
+
:host([data-motion]) .box { animation: ik-highlight-draw ${R.select} ${R.shape} ${revealAt(0)} both; }
|
|
445
|
+
:host([data-motion]) :is(.label, .cursor) { animation: ik-reveal-fade ${R.mark} ${R.arrive} ${revealAt(0)} both; }
|
|
446
|
+
:host([data-motion]) .handle { animation: ik-reveal-mark ${R.mark} ${R.arrive} ${revealAt(0, "var(--impakt-motion-reveal-select-duration, 260ms)")} both; }
|
|
447
|
+
@keyframes ik-highlight-draw { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }
|
|
448
|
+
@keyframes ik-highlight-words { from { color: ${t.text}; } }
|
|
449
|
+
`,
|
|
450
|
+
revealStyles
|
|
540
451
|
];
|
|
541
452
|
}
|
|
542
453
|
render() {
|
|
543
|
-
return html`<span class="box" part="box" aria-hidden="true"></span><slot></slot><span class="handle" aria-hidden="true"></span><span class="handle" aria-hidden="true"></span><span class="handle" aria-hidden="true"></span><span class="handle" aria-hidden="true"></span>${this.label ? html`<span class="label" part="label" aria-hidden="true">${this.label}</span>` : nothing}${this.cursor != null ? html`<span class="cursor" part="cursor" aria-hidden="true"
|
|
454
|
+
return html`<span class="box" part="box" aria-hidden="true"></span><slot></slot><span class="handle h1" aria-hidden="true"></span><span class="handle h2" aria-hidden="true"></span><span class="handle h3" aria-hidden="true"></span><span class="handle h4" aria-hidden="true"></span>${this.label || this.labelPhone ? html`<span class="label-at" aria-hidden="true">${this.label ? html`<span class="label wide" part="label" aria-hidden="true" data-ik-count="text">${this.label}</span>` : nothing}${this.labelPhone ? html`<span class="label phone" part="label label-phone" aria-hidden="true" data-ik-count="text">${this.labelPhone}</span>` : nothing}</span>` : nothing}${this.cursor != null ? html`<span class="cursor" part="cursor" aria-hidden="true"
|
|
544
455
|
><svg viewBox="0 0 16 20" width="16" height="20" focusable="false"><path d="M1 1v16l4.2-4 2.9 6.2 2.6-1.2-2.9-6.1H14Z" fill="currentColor" stroke-width="1.2" stroke-linejoin="round" /></svg
|
|
545
456
|
>${this.cursor ? html`<span class="tag">${this.cursor}</span>` : nothing}</span
|
|
546
457
|
>` : nothing}`;
|
|
@@ -549,7 +460,6 @@ var ImpaktHighlight = class extends ImpaktElement {
|
|
|
549
460
|
customElements.define("impakt-work-list", ImpaktWorkList);
|
|
550
461
|
customElements.define("impakt-stat-row", ImpaktStatRow);
|
|
551
462
|
customElements.define("impakt-faq", ImpaktFaq);
|
|
552
|
-
customElements.define("impakt-site-menu", ImpaktSiteMenu);
|
|
553
463
|
customElements.define("impakt-offer", ImpaktOffer);
|
|
554
464
|
customElements.define("impakt-post-card", ImpaktPostCard);
|
|
555
465
|
customElements.define("impakt-highlight", ImpaktHighlight);
|
|
@@ -558,9 +468,8 @@ export {
|
|
|
558
468
|
ImpaktWorkList,
|
|
559
469
|
ImpaktStatRow,
|
|
560
470
|
ImpaktFaq,
|
|
561
|
-
ImpaktSiteMenu,
|
|
562
471
|
ImpaktOffer,
|
|
563
472
|
ImpaktPostCard,
|
|
564
473
|
ImpaktHighlight
|
|
565
474
|
};
|
|
566
|
-
//# sourceMappingURL=chunk-
|
|
475
|
+
//# sourceMappingURL=chunk-OBBPBN4S.js.map
|