@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.
- package/custom-elements.json +3157 -97
- package/dist/chunk-2URXTXNQ.js +296 -0
- package/dist/chunk-2URXTXNQ.js.map +1 -0
- package/dist/chunk-7X4WGV6K.js +97 -0
- package/dist/chunk-7X4WGV6K.js.map +1 -0
- package/dist/{chunk-QGVIJNTD.js → chunk-CCFBROX3.js} +127 -41
- package/dist/chunk-CCFBROX3.js.map +1 -0
- package/dist/{chunk-NLHFBIGQ.js → chunk-EYP5LWUR.js} +28 -10
- package/dist/chunk-EYP5LWUR.js.map +1 -0
- package/dist/chunk-GRKPKJZH.js +275 -0
- package/dist/chunk-GRKPKJZH.js.map +1 -0
- package/dist/{chunk-OR4U4UJQ.js → chunk-MX7FU5JE.js} +69 -1
- package/dist/chunk-MX7FU5JE.js.map +1 -0
- package/dist/{chunk-UVHQY3QJ.js → chunk-NHWD2LUR.js} +2 -2
- package/dist/chunk-NHWD2LUR.js.map +1 -0
- package/dist/{chunk-FLOKZ7O3.js → chunk-PIUPEB4I.js} +44 -11
- package/dist/chunk-PIUPEB4I.js.map +1 -0
- package/dist/{chunk-HNCJLMQB.js → chunk-R7SSIE2E.js} +26 -8
- package/dist/chunk-R7SSIE2E.js.map +1 -0
- package/dist/{chunk-LJ6AQO26.js → chunk-SYTQIQT2.js} +73 -18
- package/dist/chunk-SYTQIQT2.js.map +1 -0
- package/dist/chunk-WGDMORWT.js +48 -0
- package/dist/chunk-WGDMORWT.js.map +1 -0
- package/dist/{chunk-PALYJCLC.js → chunk-XB6FD4SF.js} +3 -3
- package/dist/chunk-XB6FD4SF.js.map +1 -0
- package/dist/chunk-XNRFZCNB.js +499 -0
- package/dist/chunk-XNRFZCNB.js.map +1 -0
- package/dist/{chunk-CC2U2L2H.js → chunk-YXMXLVK7.js} +3 -3
- package/dist/chunk-YXMXLVK7.js.map +1 -0
- package/dist/{chunk-YC6KXE6O.js → chunk-ZD75GU6J.js} +7 -4
- package/dist/chunk-ZD75GU6J.js.map +1 -0
- package/dist/{chunk-TT2PTEQO.js → chunk-ZODL5HD4.js} +64 -17
- package/dist/chunk-ZODL5HD4.js.map +1 -0
- package/dist/components/card-grid.js +1 -1
- package/dist/components/changelog.d.ts +24 -0
- package/dist/components/changelog.js +2 -2
- package/dist/components/estimator.d.ts +25 -0
- package/dist/components/estimator.js +1 -1
- package/dist/components/g2-case.d.ts +225 -0
- package/dist/components/g2-case.js +16 -0
- package/dist/components/g2-case.js.map +1 -0
- package/dist/components/g2-shared.d.ts +28 -0
- package/dist/components/g2-shared.js +35 -0
- package/dist/components/g2-shared.js.map +1 -0
- package/dist/components/g2-site.d.ts +493 -0
- package/dist/components/g2-site.js +26 -0
- package/dist/components/g2-site.js.map +1 -0
- package/dist/components/g2-tools.d.ts +77 -0
- package/dist/components/g2-tools.js +8 -0
- package/dist/components/g2-tools.js.map +1 -0
- package/dist/components/journey.d.ts +79 -9
- package/dist/components/journey.js +1 -1
- package/dist/components/marketing.d.ts +23 -0
- package/dist/components/marketing.js +1 -1
- package/dist/components/organisms.d.ts +23 -2
- package/dist/components/organisms.js +1 -1
- package/dist/components/property.js +1 -1
- package/dist/components/scene.js +1 -1
- package/dist/components/scrubber.js +1 -1
- package/dist/components/selling.d.ts +42 -1
- package/dist/components/selling.js +1 -1
- package/dist/components/site.d.ts +78 -0
- package/dist/components/site.js +1 -1
- package/dist/components/studio.d.ts +87 -6
- package/dist/components/studio.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +81 -42
- package/dist/index.js.map +1 -1
- package/dist/standalone/atomic-ui-blocks.js +1373 -787
- package/dist/standalone/atomic-ui-blocks.js.map +4 -4
- package/package.json +3 -3
- package/dist/chunk-CC2U2L2H.js.map +0 -1
- package/dist/chunk-FLOKZ7O3.js.map +0 -1
- package/dist/chunk-HNCJLMQB.js.map +0 -1
- package/dist/chunk-LJ6AQO26.js.map +0 -1
- package/dist/chunk-NLHFBIGQ.js.map +0 -1
- package/dist/chunk-OR4U4UJQ.js.map +0 -1
- package/dist/chunk-PALYJCLC.js.map +0 -1
- package/dist/chunk-QGVIJNTD.js.map +0 -1
- package/dist/chunk-SOFMXF32.js +0 -142
- package/dist/chunk-SOFMXF32.js.map +0 -1
- package/dist/chunk-TT2PTEQO.js.map +0 -1
- package/dist/chunk-UVHQY3QJ.js.map +0 -1
- package/dist/chunk-YC6KXE6O.js.map +0 -1
|
@@ -24,17 +24,37 @@ export type JourneyStage = (typeof JOURNEY_STAGES)[number];
|
|
|
24
24
|
* and is hidden from a screen reader, so the page does not hold five links
|
|
25
25
|
* that say the same thing (2.4.4).
|
|
26
26
|
*
|
|
27
|
+
* **It keeps its shape as it scales.** The drawing is about 14 wide to 9
|
|
28
|
+
* tall at any width, 560 by 360 on a wide page and 347 by 223 on a phone, and
|
|
29
|
+
* everything in it is sized from its own width.
|
|
30
|
+
*
|
|
27
31
|
* **One button can follow the page.** Give `track` a selector for the page's
|
|
28
32
|
* sections, each carrying `data-journey-stage`, and the button takes the stage
|
|
29
|
-
* of whichever section is across the middle of the screen
|
|
30
|
-
* IntersectionObserver
|
|
33
|
+
* of whichever section is across the middle of the screen; an
|
|
34
|
+
* IntersectionObserver watches for that. Between two sections the move is
|
|
35
|
+
* scrubbed by the scroll: the next stage fades in as the next section rises,
|
|
36
|
+
* and is complete as it crosses the middle of the screen. The scroll is read
|
|
37
|
+
* at most once a frame, and only while a tracked section is on screen.
|
|
38
|
+
*
|
|
39
|
+
* **Each move has its own timing**, from the motion spec: flatten 640ms, ink
|
|
40
|
+
* in 560ms, compile 720ms, ship 600ms with an overshoot, lift 180ms on hover
|
|
41
|
+
* and press 140ms. Each is read from `--impakt-motion-journey-<move>-duration`
|
|
42
|
+
* and `-easing`. **Only transforms, opacity and colour move**, so a change of
|
|
43
|
+
* stage costs no layout. With reduced motion asked for, a stage cuts straight
|
|
44
|
+
* to the next, nothing is scrubbed, and pointing at the live button changes
|
|
45
|
+
* its colour only (2.3.3).
|
|
46
|
+
*
|
|
47
|
+
* **`annotations` draws the design notes around it**, as the site's motion
|
|
48
|
+
* frames show: the stage's caption above, a handwritten note in the margin at
|
|
49
|
+
* the note stage, the width and height marks at the wireframe and component,
|
|
50
|
+
* the spec tags under the component and a pointer at the live button. They
|
|
51
|
+
* are decoration and are hidden from a screen reader. Leave it off when the
|
|
52
|
+
* button is a plain call to action.
|
|
31
53
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* colour (1.4.3). A brand whose ink is dark may colour the words in the code
|
|
37
|
-
* window by setting `--impakt-journey-code-words`.
|
|
54
|
+
* The words on every fill are a pair the tokens already measured: the accent
|
|
55
|
+
* with its own text colour, and the text colour with the card colour (1.4.3).
|
|
56
|
+
* A brand whose ink is dark may colour the words in the code window by
|
|
57
|
+
* setting `--impakt-journey-code-words`.
|
|
38
58
|
*
|
|
39
59
|
* @category action
|
|
40
60
|
* @icon button
|
|
@@ -62,6 +82,28 @@ export declare class ImpaktJourneyButton extends ImpaktElement {
|
|
|
62
82
|
code: {
|
|
63
83
|
type: ArrayConstructor;
|
|
64
84
|
};
|
|
85
|
+
annotations: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
reflect: boolean;
|
|
88
|
+
};
|
|
89
|
+
captions: {
|
|
90
|
+
type: ArrayConstructor;
|
|
91
|
+
};
|
|
92
|
+
marginNote: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
attribute: string;
|
|
95
|
+
};
|
|
96
|
+
specs: {
|
|
97
|
+
type: ArrayConstructor;
|
|
98
|
+
};
|
|
99
|
+
markWidth: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
attribute: string;
|
|
102
|
+
};
|
|
103
|
+
markHeight: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
attribute: string;
|
|
106
|
+
};
|
|
65
107
|
};
|
|
66
108
|
/** What the button is drawn as. */
|
|
67
109
|
stage: JourneyStage;
|
|
@@ -80,15 +122,31 @@ export declare class ImpaktJourneyButton extends ImpaktElement {
|
|
|
80
122
|
/**
|
|
81
123
|
* Lines of code drawn around the words at the `code` stage, split where the
|
|
82
124
|
* words go: the lines before, then the lines after. They are decoration and
|
|
83
|
-
* are not read.
|
|
125
|
+
* are not read. A line that starts with `//` is drawn dimmer, as a comment.
|
|
126
|
+
* Left empty, plain bars are drawn instead.
|
|
84
127
|
*/
|
|
85
128
|
code: {
|
|
86
129
|
before?: string[];
|
|
87
130
|
after?: string[];
|
|
88
131
|
};
|
|
132
|
+
/** Draw the design notes around the button: captions, marks, spec tags, a margin note and a pointer. */
|
|
133
|
+
annotations: boolean;
|
|
134
|
+
/** With `annotations`: the caption above each stage, in order, such as "Note — Discover". Numbered for you. */
|
|
135
|
+
captions: string[];
|
|
136
|
+
/** With `annotations`: the handwritten note beside the sticky note. */
|
|
137
|
+
marginNote: string;
|
|
138
|
+
/** With `annotations`: the tags under the component, such as "Fill · Accent/Signal". */
|
|
139
|
+
specs: string[];
|
|
140
|
+
/** With `annotations`: the width written on the width mark, such as "400". */
|
|
141
|
+
markWidth: string;
|
|
142
|
+
/** With `annotations`: the height written on the height mark, such as "96". */
|
|
143
|
+
markHeight: string;
|
|
89
144
|
constructor();
|
|
90
145
|
static styles: import("lit").CSSResult[];
|
|
91
146
|
private observer?;
|
|
147
|
+
private sections;
|
|
148
|
+
private frame;
|
|
149
|
+
private readonly onScroll;
|
|
92
150
|
connectedCallback(): void;
|
|
93
151
|
disconnectedCallback(): void;
|
|
94
152
|
protected willUpdate(changed: Map<string, unknown>): void;
|
|
@@ -96,7 +154,19 @@ export declare class ImpaktJourneyButton extends ImpaktElement {
|
|
|
96
154
|
/** Follow the sections named by `track`: the one across the middle of the screen sets the stage. */
|
|
97
155
|
private watch;
|
|
98
156
|
private crossed;
|
|
157
|
+
private become;
|
|
158
|
+
/** Scrub between stages with the scroll, unless reduced motion is asked for. */
|
|
159
|
+
private startScrub;
|
|
160
|
+
private stopScrub;
|
|
161
|
+
/**
|
|
162
|
+
* The stage as a number. The section across the middle of the screen gives
|
|
163
|
+
* the whole part; how far the next section has risen toward the middle gives
|
|
164
|
+
* the rest, so the move is complete as the next section crosses it.
|
|
165
|
+
*/
|
|
166
|
+
private scrub;
|
|
99
167
|
private lines;
|
|
168
|
+
/** The design notes around the button. All decoration. */
|
|
169
|
+
private notes;
|
|
100
170
|
render(): TemplateResult;
|
|
101
171
|
}
|
|
102
172
|
declare global {
|
|
@@ -11,6 +11,11 @@ import { ImpaktElement } from '@atomic-ui/ui';
|
|
|
11
11
|
* @category layout
|
|
12
12
|
* @icon hero
|
|
13
13
|
* @role heading
|
|
14
|
+
* A heading with more than words in it, such as a word picked out with
|
|
15
|
+
* `impakt-highlight`, is slotted as `heading`; it stays the hero's heading at
|
|
16
|
+
* its `level`, and `heading` is then only the fallback.
|
|
17
|
+
*
|
|
18
|
+
* @slot heading - The heading's words, when they hold more than text, such as an `impakt-highlight`.
|
|
14
19
|
* @slot actions - The page's main buttons and links.
|
|
15
20
|
* @slot search - A search bar across the bottom of a full-picture hero.
|
|
16
21
|
*/
|
|
@@ -94,6 +99,12 @@ export interface FeatureItem {
|
|
|
94
99
|
icon?: string;
|
|
95
100
|
heading: string;
|
|
96
101
|
text?: string;
|
|
102
|
+
/**
|
|
103
|
+
* With `look="numbered"`: a word or two read with the item when it is the
|
|
104
|
+
* one that needs attention, such as "Needs your attention". Its dot then
|
|
105
|
+
* turns to the accent; the word is what carries it to a screen reader.
|
|
106
|
+
*/
|
|
107
|
+
attention?: string;
|
|
97
108
|
}
|
|
98
109
|
/**
|
|
99
110
|
* Benefits or features side by side, each with an icon, a short heading and a
|
|
@@ -102,6 +113,12 @@ export interface FeatureItem {
|
|
|
102
113
|
* The icons are decoration, because each heading already says what it is.
|
|
103
114
|
* The items are a list, so a screen reader says how many there are.
|
|
104
115
|
*
|
|
116
|
+
* `look="ruled"` draws each item under a 1px ink rule with no icon, the
|
|
117
|
+
* heading at 24px and the text muted. `look="numbered"` draws each as a card
|
|
118
|
+
* with a 1px ink border, its number in monospace at the top left and a status
|
|
119
|
+
* dot at the top right: ink, or the accent for the one item given
|
|
120
|
+
* `attention`. The numbers and dots are decoration.
|
|
121
|
+
*
|
|
105
122
|
* @category content
|
|
106
123
|
* @icon features
|
|
107
124
|
*/
|
|
@@ -122,6 +139,10 @@ export declare class ImpaktFeatureList extends ImpaktElement {
|
|
|
122
139
|
type: StringConstructor;
|
|
123
140
|
reflect: boolean;
|
|
124
141
|
};
|
|
142
|
+
look: {
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
reflect: boolean;
|
|
145
|
+
};
|
|
125
146
|
spaceAbove: {
|
|
126
147
|
type: StringConstructor;
|
|
127
148
|
reflect: boolean;
|
|
@@ -139,6 +160,8 @@ export declare class ImpaktFeatureList extends ImpaktElement {
|
|
|
139
160
|
headingLevel: 2 | 3 | 4;
|
|
140
161
|
/** Icons above the words, or beside them. */
|
|
141
162
|
layout: 'stacked' | 'inline';
|
|
163
|
+
/** `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. */
|
|
164
|
+
look: 'icons' | 'ruled' | 'numbered';
|
|
142
165
|
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
143
166
|
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
144
167
|
constructor();
|
|
@@ -237,6 +237,13 @@ export declare class ImpaktSteps extends ImpaktElement {
|
|
|
237
237
|
type: StringConstructor;
|
|
238
238
|
reflect: boolean;
|
|
239
239
|
};
|
|
240
|
+
tones: {
|
|
241
|
+
type: BooleanConstructor;
|
|
242
|
+
reflect: boolean;
|
|
243
|
+
};
|
|
244
|
+
current: {
|
|
245
|
+
type: NumberConstructor;
|
|
246
|
+
};
|
|
240
247
|
headingLevel: {
|
|
241
248
|
type: NumberConstructor;
|
|
242
249
|
attribute: string;
|
|
@@ -257,10 +264,24 @@ export declare class ImpaktSteps extends ImpaktElement {
|
|
|
257
264
|
orientation: 'horizontal' | 'vertical';
|
|
258
265
|
/**
|
|
259
266
|
* `numbered` joins numbered circles with a line. `ruled` gives each step a
|
|
260
|
-
*
|
|
261
|
-
*
|
|
267
|
+
* 1px rule along its top in the band's text colour, with its number and
|
|
268
|
+
* meta in monospace capitals ("01 · 1 TO 2 WEEKS"), as a project plan's
|
|
269
|
+
* phases are drawn; on a phone the steps hang off a rail down the left. The
|
|
270
|
+
* steps are an ordered list either way.
|
|
262
271
|
*/
|
|
263
272
|
look: 'numbered' | 'ruled';
|
|
273
|
+
/**
|
|
274
|
+
* With `ruled`: colour each step's rule in the brand's chart colours, and on
|
|
275
|
+
* a phone draw the steps as a coloured branch graph, for a brand that wants
|
|
276
|
+
* colour there.
|
|
277
|
+
*/
|
|
278
|
+
tones: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* The index of the step the project is at, from 0, or -1 for none. It is
|
|
281
|
+
* marked `aria-current="step"`, its rule is drawn heavier and its meta and
|
|
282
|
+
* rule take `--impakt-steps-current`, which a dark band sets to the accent.
|
|
283
|
+
*/
|
|
284
|
+
current: number;
|
|
264
285
|
/** The level of each step's heading. One below the heading above the steps. */
|
|
265
286
|
headingLevel: 2 | 3 | 4;
|
|
266
287
|
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
package/dist/components/scene.js
CHANGED
|
@@ -26,7 +26,14 @@ export interface PlanRow {
|
|
|
26
26
|
* include and a button under each.
|
|
27
27
|
*
|
|
28
28
|
* A tick is never colour alone: each one says "Included" or "Not included" to
|
|
29
|
-
* a screen reader
|
|
29
|
+
* a screen reader, and a line a plan does not have also says "· not included"
|
|
30
|
+
* in muted words on the screen. On a narrow screen the plans stack, each with
|
|
31
|
+
* its own list.
|
|
32
|
+
*
|
|
33
|
+
* Each plan is a card with a 1px border in the text colour and no shadow. The
|
|
34
|
+
* plan with a `badge` is filled with the text colour, its badge in monospace
|
|
35
|
+
* capitals and its price, ticks and button in the accent, a pair the tokens
|
|
36
|
+
* already hold at 4.5:1 on ink (1.4.3).
|
|
30
37
|
*
|
|
31
38
|
* @fires {CustomEvent<{ plan: PlanItem }>} impakt-select - When a plan is chosen. Cancel it to stay on the page.
|
|
32
39
|
* @category content
|
|
@@ -85,6 +92,13 @@ export declare function embedOf(src: string, locale?: string): string | null;
|
|
|
85
92
|
* the video site until someone chooses to watch. A video file plays in the
|
|
86
93
|
* browser's own player, with captions from `captions-src`.
|
|
87
94
|
*
|
|
95
|
+
* `look="window"` draws it in a window on an ink stage, as a product
|
|
96
|
+
* walkthrough is shown: a bar with three dots and a caption in monospace
|
|
97
|
+
* capitals, and an accent Play button with the video's length beside its
|
|
98
|
+
* words. The stage stays ink in both themes. `transcript` puts what the video
|
|
99
|
+
* shows on the page itself, in a section that opens under it, as an
|
|
100
|
+
* alternative to a link to it (1.2.1, 1.2.3).
|
|
101
|
+
*
|
|
88
102
|
* @category media
|
|
89
103
|
* @icon play
|
|
90
104
|
*/
|
|
@@ -117,6 +131,23 @@ export declare class ImpaktVideo extends ImpaktElement {
|
|
|
117
131
|
type: StringConstructor;
|
|
118
132
|
reflect: boolean;
|
|
119
133
|
};
|
|
134
|
+
look: {
|
|
135
|
+
type: StringConstructor;
|
|
136
|
+
reflect: boolean;
|
|
137
|
+
};
|
|
138
|
+
caption: {
|
|
139
|
+
type: StringConstructor;
|
|
140
|
+
};
|
|
141
|
+
duration: {
|
|
142
|
+
type: StringConstructor;
|
|
143
|
+
};
|
|
144
|
+
transcript: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
};
|
|
147
|
+
transcriptText: {
|
|
148
|
+
type: StringConstructor;
|
|
149
|
+
attribute: string;
|
|
150
|
+
};
|
|
120
151
|
spaceAbove: {
|
|
121
152
|
type: StringConstructor;
|
|
122
153
|
reflect: boolean;
|
|
@@ -138,6 +169,16 @@ export declare class ImpaktVideo extends ImpaktElement {
|
|
|
138
169
|
transcriptHref: string;
|
|
139
170
|
playText: string;
|
|
140
171
|
ratio: '16:9' | '4:3' | '1:1' | '9:16';
|
|
172
|
+
/** `plain` is the video alone. `window` draws it in a window with a bar and a caption, on an ink stage. */
|
|
173
|
+
look: 'plain' | 'window';
|
|
174
|
+
/** With `window`: the words in the window's bar, such as "Walkthrough video". Decoration: `label` is what is read. */
|
|
175
|
+
caption: string;
|
|
176
|
+
/** How long the video is, such as "2 min", shown beside the Play button's words and read with them. */
|
|
177
|
+
duration: string;
|
|
178
|
+
/** What the video shows, as words, shown in a section that opens under it. Blank lines start a new paragraph. */
|
|
179
|
+
transcript: string;
|
|
180
|
+
/** The words on the line that opens the transcript, such as "Read what the video shows". */
|
|
181
|
+
transcriptText: string;
|
|
141
182
|
playing: boolean;
|
|
142
183
|
spaceAbove: Space;
|
|
143
184
|
spaceBelow: Space;
|
|
@@ -25,10 +25,18 @@ import { ImpaktElement, type NavLink, type Tone } from '@atomic-ui/ui';
|
|
|
25
25
|
* button at the end, in any order. Give a component `hideOn: 'phone'` to leave
|
|
26
26
|
* it out on a phone, so the phone's header is built from the same pieces.
|
|
27
27
|
*
|
|
28
|
+
* **A header for a studio's canvas.** `mark` draws a 28px ink square with a
|
|
29
|
+
* letter in it before the name, `context` a path after it ("/ home.canvas"),
|
|
30
|
+
* and `status-at="start"` moves the status chip, a square with a dot and a
|
|
31
|
+
* word such as "Live", up beside them. `nav-look="tabs"` draws the links as
|
|
32
|
+
* file tabs. `presence` draws a few small overlapping avatars of the people in
|
|
33
|
+
* the file before the action; each is named for a screen reader.
|
|
34
|
+
*
|
|
28
35
|
* @category layout
|
|
29
36
|
* @icon header
|
|
30
37
|
* @slot start - The brand: a wordmark or logo, and any chips beside it.
|
|
31
38
|
* @slot middle - The links, usually one nav.
|
|
39
|
+
* @slot presence - Avatars of the people in the file, before the action. Replaces what `presence` draws.
|
|
32
40
|
* @slot end - A status and the call to action.
|
|
33
41
|
* @fires {CustomEvent<null>} impakt-action - When the call to action is pressed.
|
|
34
42
|
*/
|
|
@@ -83,6 +91,31 @@ export declare class ImpaktSiteHeader extends ImpaktElement {
|
|
|
83
91
|
type: StringConstructor;
|
|
84
92
|
attribute: string;
|
|
85
93
|
};
|
|
94
|
+
fold: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
reflect: boolean;
|
|
97
|
+
};
|
|
98
|
+
mark: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
};
|
|
101
|
+
context: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
};
|
|
104
|
+
statusAt: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
reflect: boolean;
|
|
107
|
+
attribute: string;
|
|
108
|
+
};
|
|
109
|
+
navLook: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
attribute: string;
|
|
112
|
+
};
|
|
113
|
+
current: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
};
|
|
116
|
+
presence: {
|
|
117
|
+
type: ArrayConstructor;
|
|
118
|
+
};
|
|
86
119
|
};
|
|
87
120
|
/** The site's name, set as a wordmark when there is no logo picture. */
|
|
88
121
|
brand: string;
|
|
@@ -108,6 +141,29 @@ export declare class ImpaktSiteHeader extends ImpaktElement {
|
|
|
108
141
|
statusTone: Tone;
|
|
109
142
|
actionText: string;
|
|
110
143
|
actionHref: string;
|
|
144
|
+
/**
|
|
145
|
+
* How the links fold on a narrow screen. `measure` folds them when they do not fit, which needs
|
|
146
|
+
* script. `narrow` folds them at 40rem in CSS: the Menu button then opens a whole-screen menu
|
|
147
|
+
* with no script, and the header's action moves into that menu. Use `narrow` on a page that may
|
|
148
|
+
* be shown without script.
|
|
149
|
+
*/
|
|
150
|
+
fold: 'measure' | 'narrow';
|
|
151
|
+
/** A letter or two in a 28px ink square before the name, such as "i". Decoration: the name is what is read. */
|
|
152
|
+
mark: string;
|
|
153
|
+
/** A path after the name, such as "home.canvas", drawn as "/ home.canvas". */
|
|
154
|
+
context: string;
|
|
155
|
+
/** Where the status sits: `end`, before the action, or `start`, after the name. */
|
|
156
|
+
statusAt: 'start' | 'end';
|
|
157
|
+
/** How the links are drawn, passed to `impakt-nav` as its `look`, such as `tabs` for file tabs. */
|
|
158
|
+
navLook: string;
|
|
159
|
+
/** The href of the link to mark as the page you are on, passed to the nav; unset, the nav works it out from the address. */
|
|
160
|
+
current: string;
|
|
161
|
+
/** The people in the file, drawn as small overlapping avatars. `accent` fills one in the accent. */
|
|
162
|
+
presence: Array<{
|
|
163
|
+
name: string;
|
|
164
|
+
initials?: string;
|
|
165
|
+
accent?: boolean;
|
|
166
|
+
}>;
|
|
111
167
|
constructor();
|
|
112
168
|
static styles: import("lit").CSSResult[];
|
|
113
169
|
private act;
|
|
@@ -177,6 +233,11 @@ export interface FooterColumn {
|
|
|
177
233
|
* Each column is a list under its own heading, so a screen reader can move
|
|
178
234
|
* from one to the next. The log is a list too; its dots are decoration.
|
|
179
235
|
*
|
|
236
|
+
* `action-text` and `action-href` put one outlined action at the end of the
|
|
237
|
+
* columns' row, such as "Back to top". `tagline` sets a short line at the
|
|
238
|
+
* other end of the legal line, such as "Pixel to production". On a phone the
|
|
239
|
+
* columns sit two by two.
|
|
240
|
+
*
|
|
180
241
|
* @category layout
|
|
181
242
|
* @icon footer
|
|
182
243
|
*/
|
|
@@ -212,6 +273,17 @@ export declare class ImpaktSiteFooter extends ImpaktElement {
|
|
|
212
273
|
type: NumberConstructor;
|
|
213
274
|
attribute: string;
|
|
214
275
|
};
|
|
276
|
+
actionText: {
|
|
277
|
+
type: StringConstructor;
|
|
278
|
+
attribute: string;
|
|
279
|
+
};
|
|
280
|
+
actionHref: {
|
|
281
|
+
type: StringConstructor;
|
|
282
|
+
attribute: string;
|
|
283
|
+
};
|
|
284
|
+
tagline: {
|
|
285
|
+
type: StringConstructor;
|
|
286
|
+
};
|
|
215
287
|
};
|
|
216
288
|
/** The site's name, set large. */
|
|
217
289
|
brand: string;
|
|
@@ -232,6 +304,12 @@ export declare class ImpaktSiteFooter extends ImpaktElement {
|
|
|
232
304
|
stripe: boolean;
|
|
233
305
|
/** The level of each column's heading. */
|
|
234
306
|
headingLevel: 2 | 3 | 4;
|
|
307
|
+
/** The words on an outlined action at the end of the columns' row, such as "Back to top". */
|
|
308
|
+
actionText: string;
|
|
309
|
+
/** Where that action goes, such as "#top". */
|
|
310
|
+
actionHref: string;
|
|
311
|
+
/** A short line at the end of the legal line, such as "Pixel to production". */
|
|
312
|
+
tagline: string;
|
|
235
313
|
constructor();
|
|
236
314
|
static styles: import("lit").CSSResult[];
|
|
237
315
|
private heading;
|