@atomic-ui/blocks 0.0.0-stage → 0.7.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 (61) hide show
  1. package/README.md +77 -2
  2. package/custom-elements.json +8688 -0
  3. package/dist/chunk-4JW2CHWS.js +708 -0
  4. package/dist/chunk-4JW2CHWS.js.map +1 -0
  5. package/dist/chunk-AFN7IAG2.js +379 -0
  6. package/dist/chunk-AFN7IAG2.js.map +1 -0
  7. package/dist/chunk-F4BTXUYP.js +65 -0
  8. package/dist/chunk-F4BTXUYP.js.map +1 -0
  9. package/dist/chunk-MYTYMOH6.js +193 -0
  10. package/dist/chunk-MYTYMOH6.js.map +1 -0
  11. package/dist/chunk-OTOFULMT.js +465 -0
  12. package/dist/chunk-OTOFULMT.js.map +1 -0
  13. package/dist/chunk-PORKVHAX.js +255 -0
  14. package/dist/chunk-PORKVHAX.js.map +1 -0
  15. package/dist/chunk-T7U4OPTW.js +413 -0
  16. package/dist/chunk-T7U4OPTW.js.map +1 -0
  17. package/dist/chunk-WHENVU5E.js +318 -0
  18. package/dist/chunk-WHENVU5E.js.map +1 -0
  19. package/dist/chunk-XHFUTZGU.js +228 -0
  20. package/dist/chunk-XHFUTZGU.js.map +1 -0
  21. package/dist/chunk-XJMKAK2I.js +442 -0
  22. package/dist/chunk-XJMKAK2I.js.map +1 -0
  23. package/dist/components/card-grid.d.ts +72 -0
  24. package/dist/components/card-grid.js +7 -0
  25. package/dist/components/card-grid.js.map +1 -0
  26. package/dist/components/changelog.d.ts +373 -0
  27. package/dist/components/changelog.js +16 -0
  28. package/dist/components/changelog.js.map +1 -0
  29. package/dist/components/estimator.d.ts +246 -0
  30. package/dist/components/estimator.js +11 -0
  31. package/dist/components/estimator.js.map +1 -0
  32. package/dist/components/marketing.d.ts +342 -0
  33. package/dist/components/marketing.js +17 -0
  34. package/dist/components/marketing.js.map +1 -0
  35. package/dist/components/organisms.d.ts +559 -0
  36. package/dist/components/organisms.js +23 -0
  37. package/dist/components/organisms.js.map +1 -0
  38. package/dist/components/property.d.ts +389 -0
  39. package/dist/components/property.js +17 -0
  40. package/dist/components/property.js.map +1 -0
  41. package/dist/components/scene.d.ts +138 -0
  42. package/dist/components/scene.js +7 -0
  43. package/dist/components/scene.js.map +1 -0
  44. package/dist/components/scrubber.d.ts +86 -0
  45. package/dist/components/scrubber.js +7 -0
  46. package/dist/components/scrubber.js.map +1 -0
  47. package/dist/components/selling.d.ts +409 -0
  48. package/dist/components/selling.js +23 -0
  49. package/dist/components/selling.js.map +1 -0
  50. package/dist/components/site.d.ts +235 -0
  51. package/dist/components/site.js +11 -0
  52. package/dist/components/site.js.map +1 -0
  53. package/dist/index.d.ts +21 -0
  54. package/dist/index.js +114 -0
  55. package/dist/index.js.map +1 -0
  56. package/dist/standalone/atomic-ui-blocks.js +1229 -0
  57. package/dist/standalone/atomic-ui-blocks.js.map +7 -0
  58. package/dist/standalone/index.html +78 -0
  59. package/package.json +64 -3
  60. package/scripts/copy-to-product.mjs +59 -0
  61. package/specimen/index.html +78 -0
@@ -0,0 +1,72 @@
1
+ /**
2
+ * A row of linked cards.
3
+ */
4
+ import { type TemplateResult } from 'lit';
5
+ import { ImpaktElement } from '@atomic-ui/ui';
6
+ /** One card in a row of them. */
7
+ export interface CardItem {
8
+ id?: string;
9
+ heading: string;
10
+ text?: string;
11
+ imageSrc?: string;
12
+ imageAlt?: string;
13
+ href?: string;
14
+ badge?: string;
15
+ }
16
+ /**
17
+ * A row of cards, each a picture, a heading, a line of text and a link: the
18
+ * developments on a developments page, or the house types at one of them.
19
+ *
20
+ * **The whole card is the link's target, and the heading is its name.** The
21
+ * link is on the heading, so a screen reader hears "Larkfield Meadows, link"
22
+ * once rather than the whole card read out as one long link, and a pointer
23
+ * can still press anywhere on the card.
24
+ *
25
+ * @category content
26
+ * @icon cards
27
+ */
28
+ export declare class ImpaktCardGrid extends ImpaktElement {
29
+ static properties: {
30
+ items: {
31
+ type: ArrayConstructor;
32
+ };
33
+ columns: {
34
+ type: StringConstructor;
35
+ reflect: boolean;
36
+ };
37
+ headingLevel: {
38
+ type: NumberConstructor;
39
+ attribute: string;
40
+ };
41
+ ratio: {
42
+ type: StringConstructor;
43
+ reflect: boolean;
44
+ };
45
+ spaceAbove: {
46
+ type: StringConstructor;
47
+ reflect: boolean;
48
+ attribute: string;
49
+ };
50
+ spaceBelow: {
51
+ type: StringConstructor;
52
+ reflect: boolean;
53
+ attribute: string;
54
+ };
55
+ };
56
+ items: CardItem[];
57
+ columns: 'two' | 'three' | 'four';
58
+ /** The level of each card's heading. One below the heading above the cards. */
59
+ headingLevel: 2 | 3 | 4;
60
+ /** The shape of each card's picture. */
61
+ ratio: '16:9' | '4:3' | '3:2' | '1:1';
62
+ spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
63
+ spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
64
+ constructor();
65
+ static styles: import("lit").CSSResult[];
66
+ render(): TemplateResult;
67
+ }
68
+ declare global {
69
+ interface HTMLElementTagNameMap {
70
+ 'impakt-card-grid': ImpaktCardGrid;
71
+ }
72
+ }
@@ -0,0 +1,7 @@
1
+ import {
2
+ ImpaktCardGrid
3
+ } from "../chunk-F4BTXUYP.js";
4
+ export {
5
+ ImpaktCardGrid
6
+ };
7
+ //# sourceMappingURL=card-grid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,373 @@
1
+ /**
2
+ * Blocks that tell how software was made, in the language software is made
3
+ * in: a release with what it added and removed, services as branches that
4
+ * merge into one product, checks that passed, and a project drawn as a commit
5
+ * graph. They came from building the Impakt site's Commit design in Strata, and
6
+ * they are written for any studio, agency or product team that wants to show
7
+ * its work this way.
8
+ *
9
+ * Every colour is a brand token. A lane's colour is a tone (brand, accent or
10
+ * a status colour), never a hex value, so a partner's brand restyles them.
11
+ */
12
+ import { type TemplateResult } from 'lit';
13
+ import { ImpaktElement, type Tone } from '@atomic-ui/ui';
14
+ import './property';
15
+ /** One line of what a release changed. */
16
+ export interface DiffLine {
17
+ id?: string;
18
+ /** Added, taken away, or kept as it was. */
19
+ change: 'added' | 'removed' | 'same';
20
+ text: string;
21
+ }
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
+ /** One branch: a service, a team, a line of work. */
168
+ export interface Branch {
169
+ id?: string;
170
+ /** A short code-like name, such as "feature/mobile-apps". */
171
+ path?: string;
172
+ heading: string;
173
+ text?: string;
174
+ /** A few words below the text, such as the tools it uses. */
175
+ tags?: string[];
176
+ tone?: Tone;
177
+ /** Where the heading links to, such as the service's own page. */
178
+ href?: string;
179
+ }
180
+ /**
181
+ * Several lines of work that come together into one: each item branches off a
182
+ * main line on the left and merges back into it, and the line ends in what
183
+ * they make together.
184
+ *
185
+ * The lines are drawn; the items are a list with headings, so a screen reader
186
+ * reads the work, not the drawing.
187
+ *
188
+ * @category content
189
+ * @icon git-merge
190
+ */
191
+ export declare class ImpaktBranchList extends ImpaktElement {
192
+ static properties: {
193
+ items: {
194
+ type: ArrayConstructor;
195
+ };
196
+ trunk: {
197
+ type: StringConstructor;
198
+ };
199
+ headingLevel: {
200
+ type: NumberConstructor;
201
+ attribute: string;
202
+ };
203
+ spaceAbove: {
204
+ type: StringConstructor;
205
+ reflect: boolean;
206
+ attribute: string;
207
+ };
208
+ spaceBelow: {
209
+ type: StringConstructor;
210
+ reflect: boolean;
211
+ attribute: string;
212
+ };
213
+ };
214
+ items: Branch[];
215
+ /** What the main line ends in, such as "main ← one team owns the result". */
216
+ trunk: string;
217
+ headingLevel: 2 | 3 | 4;
218
+ spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
219
+ spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
220
+ constructor();
221
+ static styles: import("lit").CSSResult[];
222
+ private unwatch;
223
+ connectedCallback(): void;
224
+ disconnectedCallback(): void;
225
+ render(): TemplateResult;
226
+ }
227
+ /** One check that passed: a figure and what it measures. */
228
+ export interface CheckItem {
229
+ id?: string;
230
+ figure: string;
231
+ label: string;
232
+ /** A word at the end of the row, such as "passed". */
233
+ status?: string;
234
+ }
235
+ /**
236
+ * Proof as a list of passing checks: a large figure, what it measures, and its
237
+ * status, each row ticked. It reads its colours from the band it sits on, so
238
+ * it works on a dark section as well as a light one.
239
+ *
240
+ * @category content
241
+ * @icon list-check
242
+ */
243
+ export declare class ImpaktCheckList extends ImpaktElement {
244
+ static properties: {
245
+ items: {
246
+ type: ArrayConstructor;
247
+ };
248
+ summary: {
249
+ type: StringConstructor;
250
+ };
251
+ spaceAbove: {
252
+ type: StringConstructor;
253
+ reflect: boolean;
254
+ attribute: string;
255
+ };
256
+ spaceBelow: {
257
+ type: StringConstructor;
258
+ reflect: boolean;
259
+ attribute: string;
260
+ };
261
+ };
262
+ items: CheckItem[];
263
+ /** A line above the list, such as "All 4 checks passed". */
264
+ summary: string;
265
+ spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
266
+ spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
267
+ constructor();
268
+ static styles: import("lit").CSSResult[];
269
+ private unwatch;
270
+ /** How far each figure has counted up, from 0 to 1, while the checks run. */
271
+ private counted;
272
+ connectedCallback(): void;
273
+ disconnectedCallback(): void;
274
+ /** Checks run: each figure counts up over 1200 ms, 150 ms after the one above. */
275
+ private run;
276
+ render(): TemplateResult;
277
+ }
278
+ /** One stretch of work, drawn as a branch off the main line. */
279
+ export interface TimelineLane {
280
+ id?: string;
281
+ label: string;
282
+ /** Where it starts and ends, in the timeline's units (weeks, say). */
283
+ from: number;
284
+ to: number;
285
+ tone?: Tone;
286
+ }
287
+ /** A moment on a lane, such as a demo. */
288
+ export interface TimelineMark {
289
+ id?: string;
290
+ label: string;
291
+ at: number;
292
+ }
293
+ /**
294
+ * A project drawn as a commit graph: a main line along a scale of weeks, each
295
+ * phase branching off it and merging back, moments marked on the way, and a
296
+ * release tag where it ships.
297
+ *
298
+ * It is a picture, so it carries a text alternative that says the same in
299
+ * words: each phase and when it runs. The steps that explain the phases go
300
+ * beside it as their own block.
301
+ *
302
+ * @category content
303
+ * @icon git-branch
304
+ */
305
+ export declare class ImpaktBranchTimeline extends ImpaktElement {
306
+ static properties: {
307
+ lanes: {
308
+ type: ArrayConstructor;
309
+ };
310
+ marks: {
311
+ type: ArrayConstructor;
312
+ };
313
+ span: {
314
+ type: NumberConstructor;
315
+ };
316
+ unit: {
317
+ type: StringConstructor;
318
+ };
319
+ every: {
320
+ type: NumberConstructor;
321
+ };
322
+ release: {
323
+ type: StringConstructor;
324
+ };
325
+ releaseAt: {
326
+ type: NumberConstructor;
327
+ attribute: string;
328
+ };
329
+ label: {
330
+ type: StringConstructor;
331
+ };
332
+ spaceAbove: {
333
+ type: StringConstructor;
334
+ reflect: boolean;
335
+ attribute: string;
336
+ };
337
+ spaceBelow: {
338
+ type: StringConstructor;
339
+ reflect: boolean;
340
+ attribute: string;
341
+ };
342
+ };
343
+ lanes: TimelineLane[];
344
+ marks: TimelineMark[];
345
+ /** How long the whole timeline is, in its units. */
346
+ span: number;
347
+ /** The unit's short name on the scale, such as "wk". */
348
+ unit: string;
349
+ /** How often the scale is labelled. */
350
+ every: number;
351
+ /** The tag where it ships, such as "v1.0 · launch". */
352
+ release: string;
353
+ releaseAt: number;
354
+ /** What the picture shows, for a screen reader. */
355
+ label: string;
356
+ spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
357
+ spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
358
+ constructor();
359
+ static styles: import("lit").CSSResult[];
360
+ private unwatch;
361
+ connectedCallback(): void;
362
+ disconnectedCallback(): void;
363
+ render(): TemplateResult;
364
+ }
365
+ declare global {
366
+ interface HTMLElementTagNameMap {
367
+ 'impakt-release-card': ImpaktReleaseCard;
368
+ 'impakt-release-list': ImpaktReleaseList;
369
+ 'impakt-branch-list': ImpaktBranchList;
370
+ 'impakt-check-list': ImpaktCheckList;
371
+ 'impakt-branch-timeline': ImpaktBranchTimeline;
372
+ }
373
+ }
@@ -0,0 +1,16 @@
1
+ import {
2
+ ImpaktBranchList,
3
+ ImpaktBranchTimeline,
4
+ ImpaktCheckList,
5
+ ImpaktReleaseCard,
6
+ ImpaktReleaseList
7
+ } from "../chunk-OTOFULMT.js";
8
+ import "../chunk-T7U4OPTW.js";
9
+ export {
10
+ ImpaktBranchList,
11
+ ImpaktBranchTimeline,
12
+ ImpaktCheckList,
13
+ ImpaktReleaseCard,
14
+ ImpaktReleaseList
15
+ };
16
+ //# sourceMappingURL=changelog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}