@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,84 @@
|
|
|
1
|
+
// packages/blocks/src/components/marketing.ts
|
|
2
|
+
import { css, html, nothing } from "lit";
|
|
3
|
+
import { ImpaktElement, fontSize, fontWeight, lineHeight, space, spaceAround, t, token, type, iconSvg } from "@atomic-ui/ui";
|
|
4
|
+
var heading = (level, text, cls) => html`<div class=${cls} role="heading" aria-level=${level}>${text}</div>`;
|
|
5
|
+
var headingStyles = css`
|
|
6
|
+
.h { margin: 0; color: ${t.textHeading}; font-family: ${t.fontHeading}; font-weight: ${fontWeight("bold")}; line-height: ${lineHeight("tight")}; }
|
|
7
|
+
.eyebrow { margin: 0; color: var(--impakt-eyebrow, var(--impakt-color-text-eyebrow, ${t.brand})); ${type("sm")} font-size: var(--impakt-font-size-eyebrow, var(--impakt-font-size-sm, 0.875rem)); font-family: ${t.fontEyebrow}; font-weight: var(--impakt-font-weight-eyebrow, ${fontWeight("semibold")}); letter-spacing: ${t.trackingWide}; text-transform: uppercase; }
|
|
8
|
+
.body { margin: 0; line-height: ${lineHeight("normal")}; max-inline-size: 65ch; }
|
|
9
|
+
`;
|
|
10
|
+
var ImpaktFeatureList = class extends ImpaktElement {
|
|
11
|
+
static {
|
|
12
|
+
this.properties = {
|
|
13
|
+
items: { type: Array },
|
|
14
|
+
columns: { type: String, reflect: true },
|
|
15
|
+
headingLevel: { type: Number, attribute: "heading-level" },
|
|
16
|
+
layout: { type: String, reflect: true },
|
|
17
|
+
look: { type: String, reflect: true },
|
|
18
|
+
spaceAbove: { type: String, reflect: true, attribute: "space-above" },
|
|
19
|
+
spaceBelow: { type: String, reflect: true, attribute: "space-below" }
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
this.items = [];
|
|
25
|
+
this.columns = "three";
|
|
26
|
+
this.headingLevel = 3;
|
|
27
|
+
this.layout = "stacked";
|
|
28
|
+
this.look = "icons";
|
|
29
|
+
this.spaceAbove = "none";
|
|
30
|
+
this.spaceBelow = "none";
|
|
31
|
+
}
|
|
32
|
+
static {
|
|
33
|
+
this.styles = [
|
|
34
|
+
...ImpaktElement.styles,
|
|
35
|
+
spaceAround,
|
|
36
|
+
headingStyles,
|
|
37
|
+
css`
|
|
38
|
+
:host { display: block; container-type: inline-size; }
|
|
39
|
+
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${space(8)} ${space(6)}; grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
40
|
+
:host([columns='two']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
41
|
+
:host([columns='four']) ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
42
|
+
li { display: flex; flex-direction: column; gap: ${space(2)}; }
|
|
43
|
+
:host([layout='inline']) li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: ${space(4)}; align-items: start; }
|
|
44
|
+
:host([layout='inline']) .words { display: flex; flex-direction: column; gap: ${space(1)}; }
|
|
45
|
+
.icon { display: inline-flex; align-items: center; justify-content: center; inline-size: 48px; block-size: 48px; border-radius: ${t.radiusLg}; background: ${t.brandSubtle}; color: ${t.brand}; margin-block-end: ${space(2)}; }
|
|
46
|
+
:host([layout='inline']) .icon { margin: 0; }
|
|
47
|
+
.h { font-size: ${fontSize("lg")}; }
|
|
48
|
+
.body { color: ${t.text}; }
|
|
49
|
+
/* Ruled: a 1px ink rule above each item, no icon, the heading at 24px and the words muted. */
|
|
50
|
+
:host([look='ruled']) li { gap: ${space(3)}; padding-block-start: ${space(5)}; border-block-start: ${t.borderThin} solid ${t.text}; }
|
|
51
|
+
:host(:is([look='ruled'], [look='numbered'])) .icon { display: none; }
|
|
52
|
+
:host(:is([look='ruled'], [look='numbered'])) .h { font-size: clamp(1.25rem, 3cqi, 1.5rem); font-weight: ${fontWeight("semibold")}; letter-spacing: -0.02em; line-height: 1.2; }
|
|
53
|
+
:host(:is([look='ruled'], [look='numbered'])) .body { color: ${t.textMuted}; }
|
|
54
|
+
:host(:is([look='ruled'], [look='numbered'])) .words { display: flex; flex-direction: column; gap: ${space(3)}; }
|
|
55
|
+
/* Numbered: a card with a 1px ink border, its number at the top left and a status dot at the top right. */
|
|
56
|
+
:host([look='numbered']) ul { gap: ${space(3)}; }
|
|
57
|
+
:host([look='numbered']) li { gap: ${space(4)}; padding: ${space(6)}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusSm}; }
|
|
58
|
+
.top { display: flex; align-items: center; justify-content: space-between; font-family: ${t.fontMono}; font-size: ${fontSize("sm")}; color: ${t.text}; }
|
|
59
|
+
.dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: ${t.text}; }
|
|
60
|
+
.dot.attention { background: ${token("color.accent.default", "#ffd43b")}; box-shadow: inset 0 0 0 1px ${t.text}; }
|
|
61
|
+
.sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
62
|
+
@media (forced-colors: active) { .dot { background: CanvasText; } .dot.attention { background: Highlight; } :host([look='numbered']) li { border-color: CanvasText; } }
|
|
63
|
+
@container (max-width: 48rem) { ul, :host([columns='four']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
64
|
+
@container (max-width: 32rem) { ul, :host([columns='two']) ul, :host([columns='four']) ul { grid-template-columns: minmax(0, 1fr); } }
|
|
65
|
+
`
|
|
66
|
+
];
|
|
67
|
+
}
|
|
68
|
+
render() {
|
|
69
|
+
const numbered = this.look === "numbered";
|
|
70
|
+
return html`<ul part="list">${(this.items ?? []).map(
|
|
71
|
+
(item, index) => html`<li part="item">
|
|
72
|
+
${numbered ? html`<div class="top" aria-hidden="true"><span>${String(index + 1).padStart(2, "0")}</span><span class=${item.attention ? "dot attention" : "dot"}></span></div>` : nothing}
|
|
73
|
+
${item.icon && this.look !== "ruled" && !numbered ? html`<span class="icon">${iconSvg(item.icon, "24px")}</span>` : nothing}
|
|
74
|
+
<div class="words">${heading(this.headingLevel, html`${item.heading}${numbered && item.attention ? html`<span class="sr"> (${item.attention})</span>` : nothing}`, "h")}${item.text ? html`<p class="body">${item.text}</p>` : nothing}</div>
|
|
75
|
+
</li>`
|
|
76
|
+
)}</ul>`;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
customElements.define("impakt-feature-list", ImpaktFeatureList);
|
|
80
|
+
|
|
81
|
+
export {
|
|
82
|
+
ImpaktFeatureList
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=chunk-XSKGWT2D.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/marketing.ts"],"sourcesContent":["import { css, html, nothing, type TemplateResult } from 'lit';\nimport { ImpaktElement, fontSize, fontWeight, lineHeight, space, spaceAround, t, token, type, iconSvg } from '@atomic-ui/ui';\n\n/** A heading at a level the author chose, drawn at a size the component chose. */\nconst heading = (level: number, text: string | TemplateResult, cls: string): TemplateResult =>\n html`<div class=${cls} role=\"heading\" aria-level=${level}>${text}</div>`;\n\nconst headingStyles = css`\n .h { margin: 0; color: ${t.textHeading}; font-family: ${t.fontHeading}; font-weight: ${fontWeight('bold')}; line-height: ${lineHeight('tight')}; }\n .eyebrow { margin: 0; color: var(--impakt-eyebrow, var(--impakt-color-text-eyebrow, ${t.brand})); ${type('sm')} font-size: var(--impakt-font-size-eyebrow, var(--impakt-font-size-sm, 0.875rem)); font-family: ${t.fontEyebrow}; font-weight: var(--impakt-font-weight-eyebrow, ${fontWeight('semibold')}); letter-spacing: ${t.trackingWide}; text-transform: uppercase; }\n .body { margin: 0; line-height: ${lineHeight('normal')}; max-inline-size: 65ch; }\n`;\n\n/** One benefit or feature in a list of them. */\nexport interface FeatureItem {\n id?: string;\n icon?: string;\n heading: string;\n text?: string;\n /**\n * With `look=\"numbered\"`: a word or two read with the item when it is the\n * one that needs attention, such as \"Needs your attention\". Its dot then\n * turns to the accent; the word is what carries it to a screen reader.\n */\n attention?: string;\n}\n\n/**\n * Benefits or features side by side, each with an icon, a short heading and a\n * line of text: \"Ten years of cover\", \"Lower bills from day one\".\n *\n * The icons are decoration, because each heading already says what it is.\n * The items are a list, so a screen reader says how many there are.\n *\n * `look=\"ruled\"` draws each item under a 1px ink rule with no icon, the\n * heading at 24px and the text muted. `look=\"numbered\"` draws each as a card\n * with a 1px ink border, its number in monospace at the top left and a status\n * dot at the top right: ink, or the accent for the one item given\n * `attention`. The numbers and dots are decoration.\n *\n * @category content\n * @icon features\n */\nexport class ImpaktFeatureList extends ImpaktElement {\n static properties = {\n items: { type: Array },\n columns: { type: String, reflect: true },\n headingLevel: { type: Number, attribute: 'heading-level' },\n layout: { type: String, reflect: true },\n look: { type: String, reflect: true },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n declare items: FeatureItem[];\n declare columns: 'two' | 'three' | 'four';\n /** The level of each item's heading. One below the heading above the list. */\n declare headingLevel: 2 | 3 | 4;\n /** Icons above the words, or beside them. */\n declare layout: 'stacked' | 'inline';\n /** `icons` draws each item's icon. `ruled` sets each under a 1px ink rule. `numbered` sets each in a bordered card with its number and a status dot. */\n declare look: 'icons' | 'ruled' | 'numbered';\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.items = [];\n this.columns = 'three';\n this.headingLevel = 3;\n this.layout = 'stacked';\n this.look = 'icons';\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n headingStyles,\n css`\n :host { display: block; container-type: inline-size; }\n ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${space(8)} ${space(6)}; grid-template-columns: repeat(3, minmax(0, 1fr)); }\n :host([columns='two']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n :host([columns='four']) ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }\n li { display: flex; flex-direction: column; gap: ${space(2)}; }\n :host([layout='inline']) li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: ${space(4)}; align-items: start; }\n :host([layout='inline']) .words { display: flex; flex-direction: column; gap: ${space(1)}; }\n .icon { display: inline-flex; align-items: center; justify-content: center; inline-size: 48px; block-size: 48px; border-radius: ${t.radiusLg}; background: ${t.brandSubtle}; color: ${t.brand}; margin-block-end: ${space(2)}; }\n :host([layout='inline']) .icon { margin: 0; }\n .h { font-size: ${fontSize('lg')}; }\n .body { color: ${t.text}; }\n /* Ruled: a 1px ink rule above each item, no icon, the heading at 24px and the words muted. */\n :host([look='ruled']) li { gap: ${space(3)}; padding-block-start: ${space(5)}; border-block-start: ${t.borderThin} solid ${t.text}; }\n :host(:is([look='ruled'], [look='numbered'])) .icon { display: none; }\n :host(:is([look='ruled'], [look='numbered'])) .h { font-size: clamp(1.25rem, 3cqi, 1.5rem); font-weight: ${fontWeight('semibold')}; letter-spacing: -0.02em; line-height: 1.2; }\n :host(:is([look='ruled'], [look='numbered'])) .body { color: ${t.textMuted}; }\n :host(:is([look='ruled'], [look='numbered'])) .words { display: flex; flex-direction: column; gap: ${space(3)}; }\n /* Numbered: a card with a 1px ink border, its number at the top left and a status dot at the top right. */\n :host([look='numbered']) ul { gap: ${space(3)}; }\n :host([look='numbered']) li { gap: ${space(4)}; padding: ${space(6)}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusSm}; }\n .top { display: flex; align-items: center; justify-content: space-between; font-family: ${t.fontMono}; font-size: ${fontSize('sm')}; color: ${t.text}; }\n .dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: ${t.text}; }\n .dot.attention { background: ${token('color.accent.default', '#ffd43b')}; box-shadow: inset 0 0 0 1px ${t.text}; }\n .sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n @media (forced-colors: active) { .dot { background: CanvasText; } .dot.attention { background: Highlight; } :host([look='numbered']) li { border-color: CanvasText; } }\n @container (max-width: 48rem) { ul, :host([columns='four']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }\n @container (max-width: 32rem) { ul, :host([columns='two']) ul, :host([columns='four']) ul { grid-template-columns: minmax(0, 1fr); } }\n `,\n ];\n\n render(): TemplateResult {\n const numbered = this.look === 'numbered';\n return html`<ul part=\"list\">${(this.items ?? []).map(\n (item, index) => html`<li part=\"item\">\n ${numbered ? html`<div class=\"top\" aria-hidden=\"true\"><span>${String(index + 1).padStart(2, '0')}</span><span class=${item.attention ? 'dot attention' : 'dot'}></span></div>` : nothing}\n ${item.icon && this.look !== 'ruled' && !numbered ? html`<span class=\"icon\">${iconSvg(item.icon, '24px')}</span>` : nothing}\n <div class=\"words\">${heading(this.headingLevel, html`${item.heading}${numbered && item.attention ? html`<span class=\"sr\"> (${item.attention})</span>` : nothing}`, 'h')}${item.text ? html`<p class=\"body\">${item.text}</p>` : nothing}</div>\n </li>`,\n )}</ul>`;\n }\n}\ncustomElements.define('impakt-feature-list', ImpaktFeatureList);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-feature-list': ImpaktFeatureList;\n }\n}\n"],"mappings":"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","names":[]}
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { type TemplateResult } from 'lit';
|
|
13
13
|
import { ImpaktElement, type Tone } from '@atomic-ui/ui';
|
|
14
|
-
import './property';
|
|
15
14
|
/** One line of what a release changed. */
|
|
16
15
|
export interface DiffLine {
|
|
17
16
|
id?: string;
|
|
@@ -19,151 +18,6 @@ export interface DiffLine {
|
|
|
19
18
|
change: 'added' | 'removed' | 'same';
|
|
20
19
|
text: string;
|
|
21
20
|
}
|
|
22
|
-
/**
|
|
23
|
-
* A piece of work told as a release: what it looked like when it started and
|
|
24
|
-
* what shipped, a version line, and a short diff of what it added and took
|
|
25
|
-
* away.
|
|
26
|
-
*
|
|
27
|
-
* With both pictures it is a before-and-after comparison a visitor drags; with
|
|
28
|
-
* one it is a picture. The diff is a list, each line saying "Added" or
|
|
29
|
-
* "Removed" for a screen reader, since the + and − are only drawn.
|
|
30
|
-
*
|
|
31
|
-
* @category content
|
|
32
|
-
* @icon git-commit
|
|
33
|
-
*/
|
|
34
|
-
export declare class ImpaktReleaseCard extends ImpaktElement {
|
|
35
|
-
static properties: {
|
|
36
|
-
label: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
};
|
|
39
|
-
heading: {
|
|
40
|
-
type: StringConstructor;
|
|
41
|
-
};
|
|
42
|
-
text: {
|
|
43
|
-
type: StringConstructor;
|
|
44
|
-
};
|
|
45
|
-
beforeSrc: {
|
|
46
|
-
type: StringConstructor;
|
|
47
|
-
attribute: string;
|
|
48
|
-
};
|
|
49
|
-
beforeAlt: {
|
|
50
|
-
type: StringConstructor;
|
|
51
|
-
attribute: string;
|
|
52
|
-
};
|
|
53
|
-
afterSrc: {
|
|
54
|
-
type: StringConstructor;
|
|
55
|
-
attribute: string;
|
|
56
|
-
};
|
|
57
|
-
afterAlt: {
|
|
58
|
-
type: StringConstructor;
|
|
59
|
-
attribute: string;
|
|
60
|
-
};
|
|
61
|
-
items: {
|
|
62
|
-
type: ArrayConstructor;
|
|
63
|
-
};
|
|
64
|
-
href: {
|
|
65
|
-
type: StringConstructor;
|
|
66
|
-
};
|
|
67
|
-
headingLevel: {
|
|
68
|
-
type: NumberConstructor;
|
|
69
|
-
attribute: string;
|
|
70
|
-
};
|
|
71
|
-
spaceAbove: {
|
|
72
|
-
type: StringConstructor;
|
|
73
|
-
reflect: boolean;
|
|
74
|
-
attribute: string;
|
|
75
|
-
};
|
|
76
|
-
spaceBelow: {
|
|
77
|
-
type: StringConstructor;
|
|
78
|
-
reflect: boolean;
|
|
79
|
-
attribute: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
/** A line above the heading, such as "v1.0 · Legal tech · Property". */
|
|
83
|
-
label: string;
|
|
84
|
-
heading: string;
|
|
85
|
-
text: string;
|
|
86
|
-
/** What it started as: a sketch or a wireframe. */
|
|
87
|
-
beforeSrc: string;
|
|
88
|
-
beforeAlt: string;
|
|
89
|
-
/** What shipped. */
|
|
90
|
-
afterSrc: string;
|
|
91
|
-
afterAlt: string;
|
|
92
|
-
/** What the release added, took away or kept. */
|
|
93
|
-
items: DiffLine[];
|
|
94
|
-
/** Where the heading links to, such as the case study. */
|
|
95
|
-
href: string;
|
|
96
|
-
headingLevel: 2 | 3 | 4;
|
|
97
|
-
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
98
|
-
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
99
|
-
constructor();
|
|
100
|
-
static styles: import("lit").CSSResult[];
|
|
101
|
-
private raf;
|
|
102
|
-
/** Sweep the seam, as Commit's release wipe does: off the screenshot on hover, back on leaving. */
|
|
103
|
-
private wipe;
|
|
104
|
-
disconnectedCallback(): void;
|
|
105
|
-
render(): TemplateResult;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* One release in a list: a release card's props. `title` is read when there is
|
|
109
|
-
* no `heading`, because that is what a collection's entry carries (ADR 0028).
|
|
110
|
-
*/
|
|
111
|
-
export interface ReleaseItem {
|
|
112
|
-
label?: string;
|
|
113
|
-
heading?: string;
|
|
114
|
-
title?: string;
|
|
115
|
-
text?: string;
|
|
116
|
-
beforeSrc?: string;
|
|
117
|
-
beforeAlt?: string;
|
|
118
|
-
afterSrc?: string;
|
|
119
|
-
afterAlt?: string;
|
|
120
|
-
items?: DiffLine[];
|
|
121
|
-
href?: string;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Releases side by side, two to a row: a changelog of case studies.
|
|
125
|
-
*
|
|
126
|
-
* Bind `items` to a collection's entries and the list follows them: a new case
|
|
127
|
-
* study appears here when it is published. The release for the page being
|
|
128
|
-
* read is left out, so a case study's "more work" does not offer itself.
|
|
129
|
-
*
|
|
130
|
-
* @category content
|
|
131
|
-
* @icon git-commit
|
|
132
|
-
*/
|
|
133
|
-
export declare class ImpaktReleaseList extends ImpaktElement {
|
|
134
|
-
static properties: {
|
|
135
|
-
items: {
|
|
136
|
-
type: ArrayConstructor;
|
|
137
|
-
};
|
|
138
|
-
columns: {
|
|
139
|
-
type: StringConstructor;
|
|
140
|
-
reflect: boolean;
|
|
141
|
-
};
|
|
142
|
-
headingLevel: {
|
|
143
|
-
type: NumberConstructor;
|
|
144
|
-
attribute: string;
|
|
145
|
-
};
|
|
146
|
-
spaceAbove: {
|
|
147
|
-
type: StringConstructor;
|
|
148
|
-
reflect: boolean;
|
|
149
|
-
attribute: string;
|
|
150
|
-
};
|
|
151
|
-
spaceBelow: {
|
|
152
|
-
type: StringConstructor;
|
|
153
|
-
reflect: boolean;
|
|
154
|
-
attribute: string;
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
items: ReleaseItem[];
|
|
158
|
-
/** Releases in a row on a wide screen. One on a phone. */
|
|
159
|
-
columns: 'one' | 'two' | 'three';
|
|
160
|
-
headingLevel: 2 | 3 | 4;
|
|
161
|
-
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
162
|
-
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
163
|
-
constructor();
|
|
164
|
-
static styles: import("lit").CSSResult[];
|
|
165
|
-
render(): TemplateResult;
|
|
166
|
-
}
|
|
167
21
|
/** One branch: a service, a team, a line of work. */
|
|
168
22
|
export interface Branch {
|
|
169
23
|
id?: string;
|
|
@@ -248,150 +102,8 @@ export declare class ImpaktBranchList extends ImpaktElement {
|
|
|
248
102
|
disconnectedCallback(): void;
|
|
249
103
|
render(): TemplateResult;
|
|
250
104
|
}
|
|
251
|
-
/** One check that passed: a figure and what it measures. */
|
|
252
|
-
export interface CheckItem {
|
|
253
|
-
id?: string;
|
|
254
|
-
figure: string;
|
|
255
|
-
label: string;
|
|
256
|
-
/** A word at the end of the row, such as "passed". */
|
|
257
|
-
status?: string;
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* Proof as a list of passing checks: a large figure, what it measures, and its
|
|
261
|
-
* status, each row ticked. It reads its colours from the band it sits on, so
|
|
262
|
-
* it works on a dark section as well as a light one.
|
|
263
|
-
*
|
|
264
|
-
* @category content
|
|
265
|
-
* @icon list-check
|
|
266
|
-
*/
|
|
267
|
-
export declare class ImpaktCheckList extends ImpaktElement {
|
|
268
|
-
static properties: {
|
|
269
|
-
items: {
|
|
270
|
-
type: ArrayConstructor;
|
|
271
|
-
};
|
|
272
|
-
summary: {
|
|
273
|
-
type: StringConstructor;
|
|
274
|
-
};
|
|
275
|
-
spaceAbove: {
|
|
276
|
-
type: StringConstructor;
|
|
277
|
-
reflect: boolean;
|
|
278
|
-
attribute: string;
|
|
279
|
-
};
|
|
280
|
-
spaceBelow: {
|
|
281
|
-
type: StringConstructor;
|
|
282
|
-
reflect: boolean;
|
|
283
|
-
attribute: string;
|
|
284
|
-
};
|
|
285
|
-
};
|
|
286
|
-
items: CheckItem[];
|
|
287
|
-
/** A line above the list, such as "All 4 checks passed". */
|
|
288
|
-
summary: string;
|
|
289
|
-
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
290
|
-
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
291
|
-
constructor();
|
|
292
|
-
static styles: import("lit").CSSResult[];
|
|
293
|
-
private unwatch;
|
|
294
|
-
/** How far each figure has counted up, from 0 to 1, while the checks run. */
|
|
295
|
-
private counted;
|
|
296
|
-
connectedCallback(): void;
|
|
297
|
-
disconnectedCallback(): void;
|
|
298
|
-
/** Checks run: each figure counts up over 1200 ms, 150 ms after the one above. */
|
|
299
|
-
private run;
|
|
300
|
-
render(): TemplateResult;
|
|
301
|
-
}
|
|
302
|
-
/** One stretch of work, drawn as a branch off the main line. */
|
|
303
|
-
export interface TimelineLane {
|
|
304
|
-
id?: string;
|
|
305
|
-
label: string;
|
|
306
|
-
/** Where it starts and ends, in the timeline's units (weeks, say). */
|
|
307
|
-
from: number;
|
|
308
|
-
to: number;
|
|
309
|
-
tone?: Tone;
|
|
310
|
-
}
|
|
311
|
-
/** A moment on a lane, such as a demo. */
|
|
312
|
-
export interface TimelineMark {
|
|
313
|
-
id?: string;
|
|
314
|
-
label: string;
|
|
315
|
-
at: number;
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* A project drawn as a commit graph: a main line along a scale of weeks, each
|
|
319
|
-
* phase branching off it and merging back, moments marked on the way, and a
|
|
320
|
-
* release tag where it ships.
|
|
321
|
-
*
|
|
322
|
-
* It is a picture, so it carries a text alternative that says the same in
|
|
323
|
-
* words: each phase and when it runs. The steps that explain the phases go
|
|
324
|
-
* beside it as their own block.
|
|
325
|
-
*
|
|
326
|
-
* @category content
|
|
327
|
-
* @icon git-branch
|
|
328
|
-
*/
|
|
329
|
-
export declare class ImpaktBranchTimeline extends ImpaktElement {
|
|
330
|
-
static properties: {
|
|
331
|
-
lanes: {
|
|
332
|
-
type: ArrayConstructor;
|
|
333
|
-
};
|
|
334
|
-
marks: {
|
|
335
|
-
type: ArrayConstructor;
|
|
336
|
-
};
|
|
337
|
-
span: {
|
|
338
|
-
type: NumberConstructor;
|
|
339
|
-
};
|
|
340
|
-
unit: {
|
|
341
|
-
type: StringConstructor;
|
|
342
|
-
};
|
|
343
|
-
every: {
|
|
344
|
-
type: NumberConstructor;
|
|
345
|
-
};
|
|
346
|
-
release: {
|
|
347
|
-
type: StringConstructor;
|
|
348
|
-
};
|
|
349
|
-
releaseAt: {
|
|
350
|
-
type: NumberConstructor;
|
|
351
|
-
attribute: string;
|
|
352
|
-
};
|
|
353
|
-
label: {
|
|
354
|
-
type: StringConstructor;
|
|
355
|
-
};
|
|
356
|
-
spaceAbove: {
|
|
357
|
-
type: StringConstructor;
|
|
358
|
-
reflect: boolean;
|
|
359
|
-
attribute: string;
|
|
360
|
-
};
|
|
361
|
-
spaceBelow: {
|
|
362
|
-
type: StringConstructor;
|
|
363
|
-
reflect: boolean;
|
|
364
|
-
attribute: string;
|
|
365
|
-
};
|
|
366
|
-
};
|
|
367
|
-
lanes: TimelineLane[];
|
|
368
|
-
marks: TimelineMark[];
|
|
369
|
-
/** How long the whole timeline is, in its units. */
|
|
370
|
-
span: number;
|
|
371
|
-
/** The unit's short name on the scale, such as "wk". */
|
|
372
|
-
unit: string;
|
|
373
|
-
/** How often the scale is labelled. */
|
|
374
|
-
every: number;
|
|
375
|
-
/** The tag where it ships, such as "v1.0 · launch". */
|
|
376
|
-
release: string;
|
|
377
|
-
releaseAt: number;
|
|
378
|
-
/** What the picture shows, for a screen reader. */
|
|
379
|
-
label: string;
|
|
380
|
-
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
381
|
-
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
382
|
-
constructor();
|
|
383
|
-
static styles: import("lit").CSSResult[];
|
|
384
|
-
private unwatch;
|
|
385
|
-
connectedCallback(): void;
|
|
386
|
-
disconnectedCallback(): void;
|
|
387
|
-
render(): TemplateResult;
|
|
388
|
-
}
|
|
389
105
|
declare global {
|
|
390
106
|
interface HTMLElementTagNameMap {
|
|
391
|
-
'impakt-release-card': ImpaktReleaseCard;
|
|
392
|
-
'impakt-release-list': ImpaktReleaseList;
|
|
393
107
|
'impakt-branch-list': ImpaktBranchList;
|
|
394
|
-
'impakt-check-list': ImpaktCheckList;
|
|
395
|
-
'impakt-branch-timeline': ImpaktBranchTimeline;
|
|
396
108
|
}
|
|
397
109
|
}
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
ImpaktBranchList
|
|
3
|
-
|
|
4
|
-
ImpaktCheckList,
|
|
5
|
-
ImpaktReleaseCard,
|
|
6
|
-
ImpaktReleaseList
|
|
7
|
-
} from "../chunk-IT2NA25D.js";
|
|
8
|
-
import "../chunk-XB6FD4SF.js";
|
|
2
|
+
ImpaktBranchList
|
|
3
|
+
} from "../chunk-HISF6RYK.js";
|
|
9
4
|
export {
|
|
10
|
-
ImpaktBranchList
|
|
11
|
-
ImpaktBranchTimeline,
|
|
12
|
-
ImpaktCheckList,
|
|
13
|
-
ImpaktReleaseCard,
|
|
14
|
-
ImpaktReleaseList
|
|
5
|
+
ImpaktBranchList
|
|
15
6
|
};
|
|
16
7
|
//# sourceMappingURL=changelog.js.map
|
|
@@ -35,7 +35,8 @@ export interface ProcessNode {
|
|
|
35
35
|
* "Build merged" and "v1.0 launch". A flag on the main line stands in for
|
|
36
36
|
* its point's label there. Between two points that dip to different depths
|
|
37
37
|
* the line comes back up to the main line, so each phase is its own valley,
|
|
38
|
-
* as in the Sprint progress component (`10:483`)
|
|
38
|
+
* as in the Sprint progress component (`10:483`): each valley has a flat
|
|
39
|
+
* floor, joined to the main line by short, steep bends.
|
|
39
40
|
*
|
|
40
41
|
* **The drawing is decoration; the list is the content.** A screen reader
|
|
41
42
|
* meets an ordered list of the points, in order, with their flags and the
|
|
@@ -49,6 +50,12 @@ export interface ProcessNode {
|
|
|
49
50
|
* leave a point's label empty for one with no words. The current point keeps a ring in the band's text
|
|
50
51
|
* colour, so it is not told by its colour alone (1.4.1, 1.4.11).
|
|
51
52
|
*
|
|
53
|
+
* **It draws itself once** (impkt-web#51), for a brand with the reveal set on:
|
|
54
|
+
* as it reaches the middle of the screen the line strokes on from left to
|
|
55
|
+
* right in 640ms, the points and their words appear in order 60ms apart, and
|
|
56
|
+
* the flagged points fill with the accent last. The list a screen reader meets
|
|
57
|
+
* never moves. With no script and with reduced motion it is drawn as it ends.
|
|
58
|
+
*
|
|
52
59
|
* @category content
|
|
53
60
|
* @icon git-commit
|
|
54
61
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The G2 Noire site blocks: the stage tag and section head every section starts
|
|
3
|
-
* with, the service card, the cursors
|
|
3
|
+
* with, the service card, the cursors on the hero, the facts,
|
|
4
4
|
* numbered and column lists, and the office card.
|
|
5
5
|
*/
|
|
6
6
|
import { type TemplateResult } from 'lit';
|
|
@@ -24,6 +24,10 @@ export declare const STAGE_WORDS: Record<StageName, readonly [string, string, st
|
|
|
24
24
|
* tag is hidden from a screen reader unless `announce` is set (1.3.1). The tag
|
|
25
25
|
* stays ink in both themes, so the yellow on it stays readable (1.4.3).
|
|
26
26
|
*
|
|
27
|
+
* For a brand with the reveal set on, it types its words in once as its
|
|
28
|
+
* section arrives (impkt-web#51); with no script and with reduced motion it is
|
|
29
|
+
* simply there.
|
|
30
|
+
*
|
|
27
31
|
* @category content
|
|
28
32
|
* @icon tag
|
|
29
33
|
*/
|
|
@@ -72,7 +76,8 @@ export declare class ImpaktStageTag extends ImpaktElement {
|
|
|
72
76
|
* stage tag on the right, then a display heading and a lead.
|
|
73
77
|
*
|
|
74
78
|
* `size` sets the heading: `xl` (120px) for a page's hero, `l` (64px), and `m`
|
|
75
|
-
* (52px) for a section.
|
|
79
|
+
* (52px) for a section. In a narrow column `l` is the brand's phone size, 36px
|
|
80
|
+
* for Impakt. Give the heading as `heading`, or in the `heading` slot
|
|
76
81
|
* when part of it is picked out with `impakt-highlight` or an accent word. The
|
|
77
82
|
* lead goes under the heading, or with `lead-position="side"` at the foot of a
|
|
78
83
|
* 340px column on the right. The `aside` slot holds a picture on the right,
|
|
@@ -84,6 +89,10 @@ export declare class ImpaktStageTag extends ImpaktElement {
|
|
|
84
89
|
* **One heading, at the level the page needs.** `level` is 1 for a page's hero
|
|
85
90
|
* and 2 for a section (1.3.1, 2.4.6). The "#" before the label is decoration.
|
|
86
91
|
*
|
|
92
|
+
* For a brand with the reveal set on, the label types itself in once as the
|
|
93
|
+
* section arrives, and a stage tag beside it does the same (impkt-web#51); the
|
|
94
|
+
* heading and the lead never move.
|
|
95
|
+
*
|
|
87
96
|
* **It stacks in a narrow column**, measured against its own width: the label
|
|
88
97
|
* row, the heading, the lead and the aside, in reading order (1.4.10). It takes
|
|
89
98
|
* its colours from the band it is on, so it reads on paper, ink and accent.
|
|
@@ -179,6 +188,9 @@ export declare class ImpaktSectionHead extends ImpaktElement {
|
|
|
179
188
|
* line are decoration. Pointing at the card and focusing it look the same: it
|
|
180
189
|
* turns to ink with paper words and the dot and "Learn more" in the accent,
|
|
181
190
|
* which holds 4.5:1 on ink, and the focus ring is drawn round it (2.4.7).
|
|
191
|
+
* For a brand with the reveal set on (impkt-web#51) the ink wipes in from the
|
|
192
|
+
* left in 180ms and the arrow slides 4px forward, on hover or focus only; the
|
|
193
|
+
* card drops 12px into place, once, as it is reached.
|
|
182
194
|
*
|
|
183
195
|
* `featured` draws a card inked all the time, as it is when pointed at, for
|
|
184
196
|
* the one service a page picks out or a sheet that shows the state.
|
|
@@ -186,6 +198,18 @@ export declare class ImpaktSectionHead extends ImpaktElement {
|
|
|
186
198
|
* Put cards in a four-column grid with a 10px gap. On a phone the words sit at
|
|
187
199
|
* the top and the card is as tall as they are.
|
|
188
200
|
*
|
|
201
|
+
* `size="compact"` draws the card as tall as its words on a wide page too, the
|
|
202
|
+
* name straight under the number, as the route frames' cards are (193px with
|
|
203
|
+
* tags, `90:1141`; 173px with a line and "Learn more", `96:2454`). On a phone
|
|
204
|
+
* the name sits 28px under the number (`90:1335`, `96:2557`).
|
|
205
|
+
*
|
|
206
|
+
* `look="tile"` draws the route frames' numbered Tile (`92:1978`, `94:1785`;
|
|
207
|
+
* on a phone `92:2240`, `94:2065`): as tall as its words, the number in small
|
|
208
|
+
* mono capitals in the muted colour with no dot, and the name, line, tags and
|
|
209
|
+
* link 10px under it and each other. The padding is 24px, and 20px on a phone.
|
|
210
|
+
* A one-line name with a two-line line is 153px wide and 145px on a phone. It
|
|
211
|
+
* inks on hover and focus only, and drops into place like the card.
|
|
212
|
+
*
|
|
189
213
|
* @category content
|
|
190
214
|
* @icon card
|
|
191
215
|
*/
|
|
@@ -218,6 +242,14 @@ export declare class ImpaktServiceCard extends ImpaktElement {
|
|
|
218
242
|
type: BooleanConstructor;
|
|
219
243
|
reflect: boolean;
|
|
220
244
|
};
|
|
245
|
+
size: {
|
|
246
|
+
type: StringConstructor;
|
|
247
|
+
reflect: boolean;
|
|
248
|
+
};
|
|
249
|
+
look: {
|
|
250
|
+
type: StringConstructor;
|
|
251
|
+
reflect: boolean;
|
|
252
|
+
};
|
|
221
253
|
};
|
|
222
254
|
/** The number at the top, such as "01". */
|
|
223
255
|
number: string;
|
|
@@ -234,6 +266,10 @@ export declare class ImpaktServiceCard extends ImpaktElement {
|
|
|
234
266
|
headingLevel: number;
|
|
235
267
|
/** Draw the card inked, as when it is pointed at. */
|
|
236
268
|
featured: boolean;
|
|
269
|
+
/** `default` is at least 330px tall with the name at the foot; `compact` is as tall as its words, the name under the number. */
|
|
270
|
+
size: 'default' | 'compact';
|
|
271
|
+
/** `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. */
|
|
272
|
+
look: 'card' | 'tile';
|
|
237
273
|
constructor();
|
|
238
274
|
static styles: import("lit").CSSResult[];
|
|
239
275
|
render(): TemplateResult;
|
|
@@ -276,43 +312,6 @@ export declare class ImpaktCursor extends ImpaktElement {
|
|
|
276
312
|
static styles: import("lit").CSSResult[];
|
|
277
313
|
render(): TemplateResult;
|
|
278
314
|
}
|
|
279
|
-
/**
|
|
280
|
-
* A short note in handwriting, with an arrow if it points at something, such
|
|
281
|
-
* as "keep scrolling, this note becomes the real button."
|
|
282
|
-
*
|
|
283
|
-
* The face is `--impakt-font-family-hand` (Kalam in the G2 designs), and the
|
|
284
|
-
* body face until a brand sets it. The note is real text and is read, unless
|
|
285
|
-
* `decorative` is set because it repeats something said elsewhere (1.3.1).
|
|
286
|
-
* The arrow is always decoration.
|
|
287
|
-
*
|
|
288
|
-
* @category content
|
|
289
|
-
* @icon pen
|
|
290
|
-
* @slot - The note, when it holds more than words. Replaces `text`.
|
|
291
|
-
*/
|
|
292
|
-
export declare class ImpaktHandNote extends ImpaktElement {
|
|
293
|
-
static properties: {
|
|
294
|
-
text: {
|
|
295
|
-
type: StringConstructor;
|
|
296
|
-
};
|
|
297
|
-
arrow: {
|
|
298
|
-
type: StringConstructor;
|
|
299
|
-
reflect: boolean;
|
|
300
|
-
};
|
|
301
|
-
decorative: {
|
|
302
|
-
type: BooleanConstructor;
|
|
303
|
-
reflect: boolean;
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
/** The note. */
|
|
307
|
-
text: string;
|
|
308
|
-
/** Where an arrow points from the note. */
|
|
309
|
-
arrow: 'none' | 'left' | 'right' | 'down' | 'up';
|
|
310
|
-
/** Hide the note from a screen reader, when it repeats something said elsewhere. */
|
|
311
|
-
decorative: boolean;
|
|
312
|
-
constructor();
|
|
313
|
-
static styles: import("lit").CSSResult[];
|
|
314
|
-
render(): TemplateResult;
|
|
315
|
-
}
|
|
316
315
|
/** One fact: a label and its value. */
|
|
317
316
|
export interface FactItem {
|
|
318
317
|
/** What it is, such as "Client". Set in mono capitals. */
|
|
@@ -356,7 +355,7 @@ export declare class ImpaktFacts extends ImpaktElement {
|
|
|
356
355
|
items: FactItem[];
|
|
357
356
|
/** Side by side under a rule each, or stacked. */
|
|
358
357
|
layout: 'columns' | 'stacked';
|
|
359
|
-
/** The values' size: `sm` 16px, `md` 18px, `lg` 24px, `xl` 32px. An item can set its own. */
|
|
358
|
+
/** 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. */
|
|
360
359
|
size: 'sm' | 'md' | 'lg' | 'xl';
|
|
361
360
|
/** A name for the list, for a screen reader. Leave empty for none. */
|
|
362
361
|
label: string;
|
|
@@ -374,6 +373,10 @@ export interface NumberedItem {
|
|
|
374
373
|
* a heading and a line of quieter text in three columns. "Three rules we don't
|
|
375
374
|
* break", the steps of a project, a tool's features.
|
|
376
375
|
*
|
|
376
|
+
* The columns are 60px, then the heading and the text 40px apart, split 520
|
|
377
|
+
* to 420 as on a case study (`21:1389`). `split="text"` gives the text the
|
|
378
|
+
* wider share, 460 to 480, as the tools pages do (`34:714`).
|
|
379
|
+
*
|
|
377
380
|
* An ordered list, so a screen reader says how many rows there are and which
|
|
378
381
|
* one this is, and the drawn numbers are hidden from it (1.3.1). Each heading
|
|
379
382
|
* is at the level the page asks for. It stacks in a narrow column, measured
|
|
@@ -397,8 +400,14 @@ export declare class ImpaktNumberedList extends ImpaktElement {
|
|
|
397
400
|
label: {
|
|
398
401
|
type: StringConstructor;
|
|
399
402
|
};
|
|
403
|
+
split: {
|
|
404
|
+
type: StringConstructor;
|
|
405
|
+
reflect: boolean;
|
|
406
|
+
};
|
|
400
407
|
};
|
|
401
408
|
items: NumberedItem[];
|
|
409
|
+
/** How the heading and the text share the row: `heading` 520 to 420 (`21:1389`), `text` 460 to 480 (`34:714`). */
|
|
410
|
+
split: 'heading' | 'text';
|
|
402
411
|
/** The number the first row is given. */
|
|
403
412
|
start: number;
|
|
404
413
|
headingLevel: number;
|
|
@@ -497,7 +506,6 @@ declare global {
|
|
|
497
506
|
'impakt-section-head': ImpaktSectionHead;
|
|
498
507
|
'impakt-service-card': ImpaktServiceCard;
|
|
499
508
|
'impakt-cursor': ImpaktCursor;
|
|
500
|
-
'impakt-hand-note': ImpaktHandNote;
|
|
501
509
|
'impakt-facts': ImpaktFacts;
|
|
502
510
|
'impakt-numbered-list': ImpaktNumberedList;
|
|
503
511
|
'impakt-column-list': ImpaktColumnList;
|