@atomic-ui/blocks 0.10.0 → 0.12.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 (84) hide show
  1. package/custom-elements.json +3157 -97
  2. package/dist/chunk-2URXTXNQ.js +296 -0
  3. package/dist/chunk-2URXTXNQ.js.map +1 -0
  4. package/dist/chunk-7X4WGV6K.js +97 -0
  5. package/dist/chunk-7X4WGV6K.js.map +1 -0
  6. package/dist/{chunk-QGVIJNTD.js → chunk-CCFBROX3.js} +127 -41
  7. package/dist/chunk-CCFBROX3.js.map +1 -0
  8. package/dist/{chunk-NLHFBIGQ.js → chunk-EYP5LWUR.js} +28 -10
  9. package/dist/chunk-EYP5LWUR.js.map +1 -0
  10. package/dist/chunk-GRKPKJZH.js +275 -0
  11. package/dist/chunk-GRKPKJZH.js.map +1 -0
  12. package/dist/{chunk-OR4U4UJQ.js → chunk-MX7FU5JE.js} +69 -1
  13. package/dist/chunk-MX7FU5JE.js.map +1 -0
  14. package/dist/{chunk-UVHQY3QJ.js → chunk-NHWD2LUR.js} +2 -2
  15. package/dist/chunk-NHWD2LUR.js.map +1 -0
  16. package/dist/{chunk-FLOKZ7O3.js → chunk-PIUPEB4I.js} +44 -11
  17. package/dist/chunk-PIUPEB4I.js.map +1 -0
  18. package/dist/{chunk-HNCJLMQB.js → chunk-R7SSIE2E.js} +26 -8
  19. package/dist/chunk-R7SSIE2E.js.map +1 -0
  20. package/dist/{chunk-LJ6AQO26.js → chunk-SYTQIQT2.js} +73 -18
  21. package/dist/chunk-SYTQIQT2.js.map +1 -0
  22. package/dist/chunk-WGDMORWT.js +48 -0
  23. package/dist/chunk-WGDMORWT.js.map +1 -0
  24. package/dist/{chunk-PALYJCLC.js → chunk-XB6FD4SF.js} +3 -3
  25. package/dist/chunk-XB6FD4SF.js.map +1 -0
  26. package/dist/chunk-XNRFZCNB.js +499 -0
  27. package/dist/chunk-XNRFZCNB.js.map +1 -0
  28. package/dist/{chunk-CC2U2L2H.js → chunk-YXMXLVK7.js} +3 -3
  29. package/dist/chunk-YXMXLVK7.js.map +1 -0
  30. package/dist/{chunk-YC6KXE6O.js → chunk-ZD75GU6J.js} +7 -4
  31. package/dist/chunk-ZD75GU6J.js.map +1 -0
  32. package/dist/{chunk-TT2PTEQO.js → chunk-ZODL5HD4.js} +64 -17
  33. package/dist/chunk-ZODL5HD4.js.map +1 -0
  34. package/dist/components/card-grid.js +1 -1
  35. package/dist/components/changelog.d.ts +24 -0
  36. package/dist/components/changelog.js +2 -2
  37. package/dist/components/estimator.d.ts +25 -0
  38. package/dist/components/estimator.js +1 -1
  39. package/dist/components/g2-case.d.ts +225 -0
  40. package/dist/components/g2-case.js +16 -0
  41. package/dist/components/g2-case.js.map +1 -0
  42. package/dist/components/g2-shared.d.ts +28 -0
  43. package/dist/components/g2-shared.js +35 -0
  44. package/dist/components/g2-shared.js.map +1 -0
  45. package/dist/components/g2-site.d.ts +493 -0
  46. package/dist/components/g2-site.js +26 -0
  47. package/dist/components/g2-site.js.map +1 -0
  48. package/dist/components/g2-tools.d.ts +77 -0
  49. package/dist/components/g2-tools.js +8 -0
  50. package/dist/components/g2-tools.js.map +1 -0
  51. package/dist/components/journey.d.ts +79 -9
  52. package/dist/components/journey.js +1 -1
  53. package/dist/components/marketing.d.ts +23 -0
  54. package/dist/components/marketing.js +1 -1
  55. package/dist/components/organisms.d.ts +23 -2
  56. package/dist/components/organisms.js +1 -1
  57. package/dist/components/property.js +1 -1
  58. package/dist/components/scene.js +1 -1
  59. package/dist/components/scrubber.js +1 -1
  60. package/dist/components/selling.d.ts +42 -1
  61. package/dist/components/selling.js +1 -1
  62. package/dist/components/site.d.ts +78 -0
  63. package/dist/components/site.js +1 -1
  64. package/dist/components/studio.d.ts +87 -6
  65. package/dist/components/studio.js +1 -1
  66. package/dist/index.d.ts +3 -0
  67. package/dist/index.js +81 -42
  68. package/dist/index.js.map +1 -1
  69. package/dist/standalone/atomic-ui-blocks.js +1373 -787
  70. package/dist/standalone/atomic-ui-blocks.js.map +4 -4
  71. package/package.json +3 -3
  72. package/dist/chunk-CC2U2L2H.js.map +0 -1
  73. package/dist/chunk-FLOKZ7O3.js.map +0 -1
  74. package/dist/chunk-HNCJLMQB.js.map +0 -1
  75. package/dist/chunk-LJ6AQO26.js.map +0 -1
  76. package/dist/chunk-NLHFBIGQ.js.map +0 -1
  77. package/dist/chunk-OR4U4UJQ.js.map +0 -1
  78. package/dist/chunk-PALYJCLC.js.map +0 -1
  79. package/dist/chunk-QGVIJNTD.js.map +0 -1
  80. package/dist/chunk-SOFMXF32.js +0 -142
  81. package/dist/chunk-SOFMXF32.js.map +0 -1
  82. package/dist/chunk-TT2PTEQO.js.map +0 -1
  83. package/dist/chunk-UVHQY3QJ.js.map +0 -1
  84. package/dist/chunk-YC6KXE6O.js.map +0 -1
@@ -4,8 +4,8 @@ import {
4
4
  ImpaktCheckList,
5
5
  ImpaktReleaseCard,
6
6
  ImpaktReleaseList
7
- } from "../chunk-FLOKZ7O3.js";
8
- import "../chunk-PALYJCLC.js";
7
+ } from "../chunk-PIUPEB4I.js";
8
+ import "../chunk-XB6FD4SF.js";
9
9
  export {
10
10
  ImpaktBranchList,
11
11
  ImpaktBranchTimeline,
@@ -94,6 +94,15 @@ export declare function phaseWeeks(phases: EstimatorPhase[], weeks: number): num
94
94
  * each part takes, the team and the way of working. The visitor can send the
95
95
  * estimate on to a contact page, where a message box can start with it.
96
96
  *
97
+ * **`layout="all"` asks every question at once.** Each is a numbered row of
98
+ * square chips (`impakt-chip-group`, radios for one answer and checkboxes for
99
+ * several) under a monospace label such as "01 · What are you building?", and
100
+ * the result sits beside them as an ink panel: the budget in the accent, the
101
+ * weeks to a first release, each part of the timeline as a row, a full-width
102
+ * button to send it and the suggested way of working. The note goes under the
103
+ * chips on a wide screen and under the panel on a phone, where the chips and
104
+ * the panel stack with no gap. The wizard stays the default.
105
+ *
97
106
  * @category form
98
107
  * @icon calculator
99
108
  * @fires {CustomEvent<EstimateResult>} impakt-estimate - When the estimate is sent on. The result is in detail.
@@ -158,6 +167,14 @@ export declare class ImpaktEstimator extends ImpaktElement {
158
167
  type: StringConstructor;
159
168
  attribute: string;
160
169
  };
170
+ layout: {
171
+ type: StringConstructor;
172
+ reflect: boolean;
173
+ };
174
+ wayLabel: {
175
+ type: StringConstructor;
176
+ attribute: string;
177
+ };
161
178
  headingLevel: {
162
179
  type: NumberConstructor;
163
180
  attribute: string;
@@ -204,6 +221,10 @@ export declare class ImpaktEstimator extends ImpaktElement {
204
221
  /** Where the estimate is sent on to. With none, there is no button to send it. */
205
222
  contactHref: string;
206
223
  sendLabel: string;
224
+ /** `wizard` asks one question at a time. `all` asks every question at once, with the result beside them as an ink panel. */
225
+ layout: 'wizard' | 'all';
226
+ /** With `all`: the words before the way of working under the panel, such as "Suggested way to work". */
227
+ wayLabel: string;
207
228
  /** The level of each question's heading. */
208
229
  headingLevel: number;
209
230
  spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
@@ -237,6 +258,10 @@ export declare class ImpaktEstimator extends ImpaktElement {
237
258
  private heading;
238
259
  private renderQuestion;
239
260
  private renderResult;
261
+ /** Every question at once, as rows of chips, with the result beside them in ink. */
262
+ private renderAll;
263
+ /** A row of chips changed: one answer, or the set of them. */
264
+ private chipsChanged;
240
265
  render(): TemplateResult;
241
266
  }
242
267
  declare global {
@@ -2,7 +2,7 @@ import {
2
2
  ImpaktEstimator,
3
3
  estimate,
4
4
  phaseWeeks
5
- } from "../chunk-OR4U4UJQ.js";
5
+ } from "../chunk-MX7FU5JE.js";
6
6
  export {
7
7
  ImpaktEstimator,
8
8
  estimate,
@@ -0,0 +1,225 @@
1
+ /**
2
+ * The G2 Noire blocks for a case study and the studio's process: the process
3
+ * line, the week strip, the "how might we" callout, the hypothesis card and the
4
+ * browser frame a product screenshot sits in.
5
+ */
6
+ import { type TemplateResult } from 'lit';
7
+ import { ImpaktElement } from '@atomic-ui/ui';
8
+ /** One point on the process line. */
9
+ export interface ProcessNode {
10
+ /** What happens here, such as "Discovery". */
11
+ label: string;
12
+ /** How far the line dips here: 0 on the main line, 1 a step below, 2 two steps. */
13
+ depth?: number;
14
+ /** The point the project is at now, filled in the accent. */
15
+ current?: boolean;
16
+ /** A flag above the point, such as "Build merged" or "v1.0 launch". */
17
+ flag?: string;
18
+ }
19
+ /**
20
+ * A project's process drawn as one main line that dips to a different depth
21
+ * for each phase, like a branch in version control: hollow rings for each
22
+ * point, the current one filled in the accent, a mono label by each (above a
23
+ * point on the main line, below one that dips) and accent flags such as
24
+ * "Build merged" and "v1.0 launch". A flag on the main line stands in for
25
+ * its point's label there.
26
+ *
27
+ * **The drawing is decoration; the list is the content.** A screen reader
28
+ * meets an ordered list of the points, in order, with their flags and the
29
+ * current one marked as the current step (1.1.1, 1.3.1). On a narrow column,
30
+ * measured against its own width, the same list is drawn as a vertical rail
31
+ * and the drawing is not shown, so nothing is lost at 320px (1.4.10).
32
+ *
33
+ * It is drawn for an ink band and takes the band's colours; outside one it
34
+ * draws its own ink panel. The current point keeps a ring in the band's text
35
+ * colour, so it is not told by its colour alone (1.4.1, 1.4.11).
36
+ *
37
+ * @category content
38
+ * @icon git-commit
39
+ */
40
+ export declare class ImpaktProcessLine extends ImpaktElement {
41
+ static properties: {
42
+ nodes: {
43
+ type: ArrayConstructor;
44
+ };
45
+ lineLabel: {
46
+ type: StringConstructor;
47
+ attribute: string;
48
+ };
49
+ label: {
50
+ type: StringConstructor;
51
+ };
52
+ };
53
+ /** The points, left to right. */
54
+ nodes: ProcessNode[];
55
+ /** A label at the start of the line, such as "main". */
56
+ lineLabel: string;
57
+ /** A name for the list, for a screen reader, such as "How a project runs". */
58
+ label: string;
59
+ constructor();
60
+ static styles: import("lit").CSSResult[];
61
+ render(): TemplateResult;
62
+ }
63
+ /** One day of the week strip. */
64
+ export interface WeekDay {
65
+ /** The day, such as "Mon". Set in mono capitals. */
66
+ day: string;
67
+ /** What happens, such as "Plan". */
68
+ heading: string;
69
+ /** A line about it. */
70
+ text?: string;
71
+ /** Pick this day out in the accent, such as the demo. */
72
+ highlight?: boolean;
73
+ }
74
+ /**
75
+ * A working week in five tiles, such as Mon Plan, Tue Make, Wed Review, Thu
76
+ * Make and Fri Demo: a mono day, a heading and a line, on tiles raised off an
77
+ * ink band, with one day picked out in the accent.
78
+ *
79
+ * A list, each heading at the level the page asks for (1.3.1). The accent day
80
+ * is also the only one with ink words, and its heading says what it is, so it
81
+ * is not told by colour alone (1.4.1). The tiles wrap on a narrow screen
82
+ * (1.4.10).
83
+ *
84
+ * @category content
85
+ * @icon calendar
86
+ */
87
+ export declare class ImpaktWeekStrip extends ImpaktElement {
88
+ static properties: {
89
+ days: {
90
+ type: ArrayConstructor;
91
+ };
92
+ headingLevel: {
93
+ type: NumberConstructor;
94
+ attribute: string;
95
+ };
96
+ label: {
97
+ type: StringConstructor;
98
+ };
99
+ };
100
+ days: WeekDay[];
101
+ headingLevel: number;
102
+ /** A name for the list, for a screen reader. Leave empty for none. */
103
+ label: string;
104
+ constructor();
105
+ static styles: import("lit").CSSResult[];
106
+ render(): TemplateResult;
107
+ }
108
+ /**
109
+ * A statement set apart on an ink panel, under a mono accent label: the "How
110
+ * might we" of a case study.
111
+ *
112
+ * The panel stays ink in both themes, so the accent label on it keeps its
113
+ * contrast (1.4.3). The label and statement are plain text, read in order.
114
+ *
115
+ * @category content
116
+ * @icon quote
117
+ * @slot - The statement, when it holds more than words. Replaces `text`.
118
+ */
119
+ export declare class ImpaktCallout extends ImpaktElement {
120
+ static properties: {
121
+ label: {
122
+ type: StringConstructor;
123
+ };
124
+ text: {
125
+ type: StringConstructor;
126
+ };
127
+ };
128
+ /** The label above, such as "How might we". */
129
+ label: string;
130
+ /** The statement. */
131
+ text: string;
132
+ constructor();
133
+ static styles: import("lit").CSSResult[];
134
+ render(): TemplateResult;
135
+ }
136
+ /**
137
+ * A hypothesis to test: its number such as "H1", how much it matters, a
138
+ * statement, and the metric that will tell, on a white card with an ink border.
139
+ * Lay six out two to a row.
140
+ *
141
+ * `impact` draws the tag: "High impact" on the accent, "Medium impact" and
142
+ * "Low impact" outlined in ink. The tag says the impact in words, so it is not
143
+ * told by its colour (1.4.1).
144
+ *
145
+ * @category content
146
+ * @icon flask
147
+ */
148
+ export declare class ImpaktHypothesisCard extends ImpaktElement {
149
+ static properties: {
150
+ number: {
151
+ type: StringConstructor;
152
+ };
153
+ statement: {
154
+ type: StringConstructor;
155
+ };
156
+ metric: {
157
+ type: StringConstructor;
158
+ };
159
+ impact: {
160
+ type: StringConstructor;
161
+ reflect: boolean;
162
+ };
163
+ impactLabel: {
164
+ type: StringConstructor;
165
+ attribute: string;
166
+ };
167
+ };
168
+ /** The hypothesis's number, such as "H1". */
169
+ number: string;
170
+ /** What the team believes, such as "A jobs board grouped by stage shows stuck cars faster than a shared spreadsheet." */
171
+ statement: string;
172
+ /** What will be measured, such as "Time a car waits unnoticed". */
173
+ metric: string;
174
+ /** How much it matters. Leave empty for no tag. */
175
+ impact: 'high' | 'medium' | 'low' | '';
176
+ /** The tag's words, in place of the impact's own. */
177
+ impactLabel: string;
178
+ constructor();
179
+ static styles: import("lit").CSSResult[];
180
+ render(): TemplateResult;
181
+ }
182
+ /**
183
+ * A window frame for a product screenshot on an ink band: a 40px bar with
184
+ * three dots, the first in the accent, and a mono caption, over a canvas that
185
+ * holds the picture. With no picture in it, the canvas shows a grid, as a
186
+ * placeholder.
187
+ *
188
+ * **The frame is decoration; the picture carries the words.** Give the image
189
+ * its own `alt`. The bar is hidden from a screen reader (1.1.1).
190
+ *
191
+ * @category media
192
+ * @icon browser
193
+ * @slot - The picture, such as an `<img>` with its `alt`.
194
+ */
195
+ export declare class ImpaktBrowserFrame extends ImpaktElement {
196
+ static properties: {
197
+ caption: {
198
+ type: StringConstructor;
199
+ };
200
+ ratio: {
201
+ type: StringConstructor;
202
+ };
203
+ filled: {
204
+ state: boolean;
205
+ };
206
+ };
207
+ /** The caption in the bar, such as "Harbour · Cover". It is decoration. */
208
+ caption: string;
209
+ /** The canvas's shape while it is empty, as a CSS aspect ratio. */
210
+ ratio: string;
211
+ protected filled: boolean;
212
+ constructor();
213
+ static styles: import("lit").CSSResult[];
214
+ render(): TemplateResult;
215
+ private onSlot;
216
+ }
217
+ declare global {
218
+ interface HTMLElementTagNameMap {
219
+ 'impakt-process-line': ImpaktProcessLine;
220
+ 'impakt-week-strip': ImpaktWeekStrip;
221
+ 'impakt-callout': ImpaktCallout;
222
+ 'impakt-hypothesis-card': ImpaktHypothesisCard;
223
+ 'impakt-browser-frame': ImpaktBrowserFrame;
224
+ }
225
+ }
@@ -0,0 +1,16 @@
1
+ import {
2
+ ImpaktBrowserFrame,
3
+ ImpaktCallout,
4
+ ImpaktHypothesisCard,
5
+ ImpaktProcessLine,
6
+ ImpaktWeekStrip
7
+ } from "../chunk-2URXTXNQ.js";
8
+ import "../chunk-WGDMORWT.js";
9
+ export {
10
+ ImpaktBrowserFrame,
11
+ ImpaktCallout,
12
+ ImpaktHypothesisCard,
13
+ ImpaktProcessLine,
14
+ ImpaktWeekStrip
15
+ };
16
+ //# sourceMappingURL=g2-case.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,28 @@
1
+ /** Ink, `#111111`. It does not flip in dark. */
2
+ export declare const ink: import("lit").CSSResult;
3
+ /** Paper, `#EFEFED`: text on ink. */
4
+ export declare const paper: import("lit").CSSResult;
5
+ /** A raised surface on ink, `#1C1C1C`. */
6
+ export declare const inkRaised: import("lit").CSSResult;
7
+ /** A line on ink, `#2E2E2E`. */
8
+ export declare const inkLine: import("lit").CSSResult;
9
+ /** Quiet text on ink, 7:1 on `#111111`. */
10
+ export declare const inkMuted: import("lit").CSSResult;
11
+ export declare const accent: import("lit").CSSResult;
12
+ export declare const accentOn: import("lit").CSSResult;
13
+ /** The band behind the block. */
14
+ export declare const band: import("lit").CSSResult;
15
+ /** Text on the band. */
16
+ export declare const bandOn: import("lit").CSSResult;
17
+ /** Quiet text on the band. */
18
+ export declare const bandMuted: import("lit").CSSResult;
19
+ /** A tile raised off the band: `#1C1C1C` on an ink band. */
20
+ export declare const bandRaised: import("lit").CSSResult;
21
+ /** A line on the band: `#2E2E2E` on an ink band. */
22
+ export declare const bandLine: import("lit").CSSResult;
23
+ /** Small uppercase mono, the G2 label: 11px, +6% tracking. */
24
+ export declare const monoLabel: import("lit").CSSResult;
25
+ /** The level a heading is given, kept between 1 and 6. */
26
+ export declare const levelOf: (n: number | undefined, fallback?: number) => number;
27
+ /** "1" → "01". */
28
+ export declare const pad: (n: number) => string;
@@ -0,0 +1,35 @@
1
+ import {
2
+ accent,
3
+ accentOn,
4
+ band,
5
+ bandLine,
6
+ bandMuted,
7
+ bandOn,
8
+ bandRaised,
9
+ ink,
10
+ inkLine,
11
+ inkMuted,
12
+ inkRaised,
13
+ levelOf,
14
+ monoLabel,
15
+ pad,
16
+ paper
17
+ } from "../chunk-WGDMORWT.js";
18
+ export {
19
+ accent,
20
+ accentOn,
21
+ band,
22
+ bandLine,
23
+ bandMuted,
24
+ bandOn,
25
+ bandRaised,
26
+ ink,
27
+ inkLine,
28
+ inkMuted,
29
+ inkRaised,
30
+ levelOf,
31
+ monoLabel,
32
+ pad,
33
+ paper
34
+ };
35
+ //# sourceMappingURL=g2-shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}