@atomic-ui/blocks 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +15 -15
  2. package/custom-elements.json +2978 -9654
  3. package/dist/chunk-GQ2I44OU.js +226 -0
  4. package/dist/chunk-GQ2I44OU.js.map +1 -0
  5. package/dist/chunk-HISF6RYK.js +199 -0
  6. package/dist/chunk-HISF6RYK.js.map +1 -0
  7. package/dist/{chunk-Q366ZM2X.js → chunk-LJGOTYDJ.js} +17 -41
  8. package/dist/chunk-LJGOTYDJ.js.map +1 -0
  9. package/dist/{chunk-BW5ZMKES.js → chunk-OBBPBN4S.js} +17 -144
  10. package/dist/chunk-OBBPBN4S.js.map +1 -0
  11. package/dist/chunk-OHXEZPBB.js +109 -0
  12. package/dist/chunk-OHXEZPBB.js.map +1 -0
  13. package/dist/{chunk-NZQZRBKV.js → chunk-VOONXP5H.js} +15 -57
  14. package/dist/chunk-VOONXP5H.js.map +1 -0
  15. package/dist/chunk-XSKGWT2D.js +84 -0
  16. package/dist/chunk-XSKGWT2D.js.map +1 -0
  17. package/dist/components/changelog.d.ts +0 -288
  18. package/dist/components/changelog.js +3 -12
  19. package/dist/components/g2-site.d.ts +27 -40
  20. package/dist/components/g2-site.js +1 -3
  21. package/dist/components/marketing.d.ts +0 -283
  22. package/dist/components/marketing.js +3 -13
  23. package/dist/components/organisms.d.ts +0 -489
  24. package/dist/components/organisms.js +3 -19
  25. package/dist/components/selling.d.ts +0 -255
  26. package/dist/components/selling.js +3 -15
  27. package/dist/components/site.d.ts +6 -52
  28. package/dist/components/site.js +3 -5
  29. package/dist/components/studio.d.ts +10 -95
  30. package/dist/components/studio.js +1 -3
  31. package/dist/index.d.ts +9 -13
  32. package/dist/index.js +23 -101
  33. package/dist/index.js.map +1 -1
  34. package/dist/standalone/atomic-ui-blocks.js +751 -1642
  35. package/dist/standalone/atomic-ui-blocks.js.map +4 -4
  36. package/dist/standalone/index.html +18 -26
  37. package/package.json +3 -3
  38. package/specimen/index.html +18 -26
  39. package/dist/chunk-BW5ZMKES.js.map +0 -1
  40. package/dist/chunk-GZTBAT6P.js +0 -574
  41. package/dist/chunk-GZTBAT6P.js.map +0 -1
  42. package/dist/chunk-NHWD2LUR.js +0 -255
  43. package/dist/chunk-NHWD2LUR.js.map +0 -1
  44. package/dist/chunk-NZQZRBKV.js.map +0 -1
  45. package/dist/chunk-Q366ZM2X.js.map +0 -1
  46. package/dist/chunk-R7SSIE2E.js +0 -362
  47. package/dist/chunk-R7SSIE2E.js.map +0 -1
  48. package/dist/chunk-XB6FD4SF.js +0 -438
  49. package/dist/chunk-XB6FD4SF.js.map +0 -1
  50. package/dist/chunk-YXMXLVK7.js +0 -230
  51. package/dist/chunk-YXMXLVK7.js.map +0 -1
  52. package/dist/chunk-ZD75GU6J.js +0 -75
  53. package/dist/chunk-ZD75GU6J.js.map +0 -1
  54. package/dist/chunk-ZM2HLQOG.js +0 -783
  55. package/dist/chunk-ZM2HLQOG.js.map +0 -1
  56. package/dist/chunk-ZODL5HD4.js +0 -535
  57. package/dist/chunk-ZODL5HD4.js.map +0 -1
  58. package/dist/components/card-grid.d.ts +0 -72
  59. package/dist/components/card-grid.js +0 -7
  60. package/dist/components/card-grid.js.map +0 -1
  61. package/dist/components/property.d.ts +0 -389
  62. package/dist/components/property.js +0 -17
  63. package/dist/components/property.js.map +0 -1
  64. package/dist/components/scene.d.ts +0 -138
  65. package/dist/components/scene.js +0 -7
  66. package/dist/components/scene.js.map +0 -1
  67. package/dist/components/scrubber.d.ts +0 -86
  68. package/dist/components/scrubber.js +0 -7
  69. 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":";AAAA,SAAS,KAAK,MAAM,eAAoC;AACxD,SAAS,eAAe,UAAU,YAAY,YAAY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,IAAI,GAAG,CAAC,GAAG,KAAK,OAAO,uBAAuB,KAAK,IAAI,SAAS,OAAO;AAAA;AAAA,IAExO,CAAC;AAAA,EACH;AACF;AACA,eAAe,OAAO,uBAAuB,iBAAiB;","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
- ImpaktBranchTimeline,
4
- ImpaktCheckList,
5
- ImpaktReleaseCard,
6
- ImpaktReleaseList
7
- } from "../chunk-GZTBAT6P.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
@@ -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 and hand notes on the hero, the facts,
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';
@@ -76,7 +76,8 @@ export declare class ImpaktStageTag extends ImpaktElement {
76
76
  * stage tag on the right, then a display heading and a lead.
77
77
  *
78
78
  * `size` sets the heading: `xl` (120px) for a page's hero, `l` (64px), and `m`
79
- * (52px) for a section. Give the heading as `heading`, or in the `heading` slot
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
80
81
  * when part of it is picked out with `impakt-highlight` or an accent word. The
81
82
  * lead goes under the heading, or with `lead-position="side"` at the foot of a
82
83
  * 340px column on the right. The `aside` slot holds a picture on the right,
@@ -197,6 +198,18 @@ export declare class ImpaktSectionHead extends ImpaktElement {
197
198
  * Put cards in a four-column grid with a 10px gap. On a phone the words sit at
198
199
  * the top and the card is as tall as they are.
199
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
+ *
200
213
  * @category content
201
214
  * @icon card
202
215
  */
@@ -229,6 +242,14 @@ export declare class ImpaktServiceCard extends ImpaktElement {
229
242
  type: BooleanConstructor;
230
243
  reflect: boolean;
231
244
  };
245
+ size: {
246
+ type: StringConstructor;
247
+ reflect: boolean;
248
+ };
249
+ look: {
250
+ type: StringConstructor;
251
+ reflect: boolean;
252
+ };
232
253
  };
233
254
  /** The number at the top, such as "01". */
234
255
  number: string;
@@ -245,6 +266,10 @@ export declare class ImpaktServiceCard extends ImpaktElement {
245
266
  headingLevel: number;
246
267
  /** Draw the card inked, as when it is pointed at. */
247
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';
248
273
  constructor();
249
274
  static styles: import("lit").CSSResult[];
250
275
  render(): TemplateResult;
@@ -287,43 +312,6 @@ export declare class ImpaktCursor extends ImpaktElement {
287
312
  static styles: import("lit").CSSResult[];
288
313
  render(): TemplateResult;
289
314
  }
290
- /**
291
- * A short note in handwriting, with an arrow if it points at something, such
292
- * as "keep scrolling, this note becomes the real button."
293
- *
294
- * The face is `--impakt-font-family-hand` (Kalam in the G2 designs), and the
295
- * body face until a brand sets it. The note is real text and is read, unless
296
- * `decorative` is set because it repeats something said elsewhere (1.3.1).
297
- * The arrow is always decoration.
298
- *
299
- * @category content
300
- * @icon pen
301
- * @slot - The note, when it holds more than words. Replaces `text`.
302
- */
303
- export declare class ImpaktHandNote extends ImpaktElement {
304
- static properties: {
305
- text: {
306
- type: StringConstructor;
307
- };
308
- arrow: {
309
- type: StringConstructor;
310
- reflect: boolean;
311
- };
312
- decorative: {
313
- type: BooleanConstructor;
314
- reflect: boolean;
315
- };
316
- };
317
- /** The note. */
318
- text: string;
319
- /** Where an arrow points from the note. */
320
- arrow: 'none' | 'left' | 'right' | 'down' | 'up';
321
- /** Hide the note from a screen reader, when it repeats something said elsewhere. */
322
- decorative: boolean;
323
- constructor();
324
- static styles: import("lit").CSSResult[];
325
- render(): TemplateResult;
326
- }
327
315
  /** One fact: a label and its value. */
328
316
  export interface FactItem {
329
317
  /** What it is, such as "Client". Set in mono capitals. */
@@ -518,7 +506,6 @@ declare global {
518
506
  'impakt-section-head': ImpaktSectionHead;
519
507
  'impakt-service-card': ImpaktServiceCard;
520
508
  'impakt-cursor': ImpaktCursor;
521
- 'impakt-hand-note': ImpaktHandNote;
522
509
  'impakt-facts': ImpaktFacts;
523
510
  'impakt-numbered-list': ImpaktNumberedList;
524
511
  'impakt-column-list': ImpaktColumnList;
@@ -2,20 +2,18 @@ import {
2
2
  ImpaktColumnList,
3
3
  ImpaktCursor,
4
4
  ImpaktFacts,
5
- ImpaktHandNote,
6
5
  ImpaktNumberedList,
7
6
  ImpaktOfficeCard,
8
7
  ImpaktSectionHead,
9
8
  ImpaktServiceCard,
10
9
  ImpaktStageTag,
11
10
  STAGE_WORDS
12
- } from "../chunk-Q366ZM2X.js";
11
+ } from "../chunk-LJGOTYDJ.js";
13
12
  import "../chunk-EGNQHWY6.js";
14
13
  export {
15
14
  ImpaktColumnList,
16
15
  ImpaktCursor,
17
16
  ImpaktFacts,
18
- ImpaktHandNote,
19
17
  ImpaktNumberedList,
20
18
  ImpaktOfficeCard,
21
19
  ImpaktSectionHead,