@atomic-ui/blocks 0.13.0 → 0.13.2
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 +261 -18
- package/dist/{chunk-JIITZUGI.js → chunk-53V2GY6L.js} +30 -19
- package/dist/chunk-53V2GY6L.js.map +1 -0
- package/dist/{chunk-MX7FU5JE.js → chunk-B6I3GVJ5.js} +32 -19
- package/dist/chunk-B6I3GVJ5.js.map +1 -0
- package/dist/{chunk-KOYQRJKY.js → chunk-FNGN2F6Y.js} +145 -14
- package/dist/chunk-FNGN2F6Y.js.map +1 -0
- package/dist/{chunk-W3MK3EEO.js → chunk-H262HKSL.js} +37 -19
- package/dist/chunk-H262HKSL.js.map +1 -0
- package/dist/{chunk-VXQS5TAN.js → chunk-IT2NA25D.js} +44 -23
- package/dist/chunk-IT2NA25D.js.map +1 -0
- package/dist/{chunk-EYP5LWUR.js → chunk-MMADM6OW.js} +13 -3
- package/dist/chunk-MMADM6OW.js.map +1 -0
- package/dist/{chunk-CCFBROX3.js → chunk-WIVKJL64.js} +67 -34
- package/dist/chunk-WIVKJL64.js.map +1 -0
- package/dist/{chunk-X3U2SOVV.js → chunk-WTVF3JRL.js} +43 -27
- package/dist/chunk-WTVF3JRL.js.map +1 -0
- package/dist/components/changelog.js +1 -1
- package/dist/components/estimator.js +1 -1
- package/dist/components/g2-case.d.ts +21 -6
- package/dist/components/g2-case.js +1 -1
- package/dist/components/g2-site.d.ts +17 -4
- package/dist/components/g2-site.js +1 -1
- package/dist/components/journey.d.ts +13 -2
- package/dist/components/journey.js +1 -1
- package/dist/components/organisms.js +1 -1
- package/dist/components/site.d.ts +72 -1
- package/dist/components/site.js +2 -1
- package/dist/components/studio.d.ts +4 -0
- package/dist/components/studio.js +1 -1
- package/dist/index.js +8 -8
- package/dist/standalone/atomic-ui-blocks.js +1207 -1046
- package/dist/standalone/atomic-ui-blocks.js.map +4 -4
- package/package.json +3 -3
- package/dist/chunk-CCFBROX3.js.map +0 -1
- package/dist/chunk-EYP5LWUR.js.map +0 -1
- package/dist/chunk-JIITZUGI.js.map +0 -1
- package/dist/chunk-KOYQRJKY.js.map +0 -1
- package/dist/chunk-MX7FU5JE.js.map +0 -1
- package/dist/chunk-VXQS5TAN.js.map +0 -1
- package/dist/chunk-W3MK3EEO.js.map +0 -1
- package/dist/chunk-X3U2SOVV.js.map +0 -1
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { type TemplateResult } from 'lit';
|
|
13
13
|
import { ImpaktElement, type NavLink, type Tone } from '@atomic-ui/ui';
|
|
14
|
+
/** A link in the site header. In the canvas look, `menuLabel` is what the phone menu calls it, such as "Home" for the "home.canvas" tab. */
|
|
15
|
+
export type SiteHeaderLink = NavLink & {
|
|
16
|
+
menuLabel?: string;
|
|
17
|
+
};
|
|
14
18
|
/**
|
|
15
19
|
* The site header: the brand, the main links and one call to action, with an
|
|
16
20
|
* optional chip beside the brand and a status before the action.
|
|
@@ -32,12 +36,29 @@ import { ImpaktElement, type NavLink, type Tone } from '@atomic-ui/ui';
|
|
|
32
36
|
* file tabs. `presence` draws a few small overlapping avatars of the people in
|
|
33
37
|
* the file before the action; each is named for a screen reader.
|
|
34
38
|
*
|
|
39
|
+
* **The G2 canvas header, whole.** `look="canvas"` draws the G2 top bar (`9:264`, `14:715`) and its
|
|
40
|
+
* phone menu (`21:1688`) from the props alone, so a site needs no markup of its own: the mark and
|
|
41
|
+
* the name in Label S, the "/" and the file name, the Live chip with its soft edge and ink dot, the
|
|
42
|
+
* links as file tabs, who is in the file and the action. The Live chip stays at every width; the
|
|
43
|
+
* file name and the people leave on a narrower screen. When the tabs no longer fit, they and the
|
|
44
|
+
* action give their place to a filled "Menu" button with a two-line glyph, which opens the
|
|
45
|
+
* whole-screen ink menu as a popover, so the browser opens and closes it with no script: the name
|
|
46
|
+
* and a white "Close", the links in display type with their numbers and "Current · 01" in the
|
|
47
|
+
* accent, and a foot with the call in the accent, a short note and an email address
|
|
48
|
+
* (`menu-action-text`, `menu-note`, `menu-email`), or whatever is placed in the `menu-foot` slot.
|
|
49
|
+
* The menu stays ink in both themes. A link's `menuLabel` names it in the menu.
|
|
50
|
+
*
|
|
35
51
|
* @category layout
|
|
36
52
|
* @icon header
|
|
37
53
|
* @slot start - The brand: a wordmark or logo, and any chips beside it.
|
|
38
54
|
* @slot middle - The links, usually one nav.
|
|
39
55
|
* @slot presence - Avatars of the people in the file, before the action. Replaces what `presence` draws.
|
|
40
56
|
* @slot end - A status and the call to action.
|
|
57
|
+
* @slot menu-foot - With `look="canvas"`: the foot of the phone menu, in place of the call, the note and the email address the props draw.
|
|
58
|
+
* @csspart menu-button - With `look="canvas"`: the filled Menu button.
|
|
59
|
+
* @csspart menu - With `look="canvas"`: the whole-screen menu.
|
|
60
|
+
* @csspart menu-link - With `look="canvas"`: a link in the menu.
|
|
61
|
+
* @csspart menu-foot - With `look="canvas"`: the menu's foot.
|
|
41
62
|
* @fires {CustomEvent<null>} impakt-action - When the call to action is pressed.
|
|
42
63
|
*/
|
|
43
64
|
export declare class ImpaktSiteHeader extends ImpaktElement {
|
|
@@ -116,6 +137,34 @@ export declare class ImpaktSiteHeader extends ImpaktElement {
|
|
|
116
137
|
presence: {
|
|
117
138
|
type: ArrayConstructor;
|
|
118
139
|
};
|
|
140
|
+
look: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
reflect: boolean;
|
|
143
|
+
};
|
|
144
|
+
menuActionText: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
attribute: string;
|
|
147
|
+
};
|
|
148
|
+
menuActionHref: {
|
|
149
|
+
type: StringConstructor;
|
|
150
|
+
attribute: string;
|
|
151
|
+
};
|
|
152
|
+
menuNote: {
|
|
153
|
+
type: StringConstructor;
|
|
154
|
+
attribute: string;
|
|
155
|
+
};
|
|
156
|
+
menuEmail: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
attribute: string;
|
|
159
|
+
};
|
|
160
|
+
currentText: {
|
|
161
|
+
type: StringConstructor;
|
|
162
|
+
attribute: string;
|
|
163
|
+
};
|
|
164
|
+
closeText: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
attribute: string;
|
|
167
|
+
};
|
|
119
168
|
};
|
|
120
169
|
/** The site's name, set as a wordmark when there is no logo picture. */
|
|
121
170
|
brand: string;
|
|
@@ -129,7 +178,7 @@ export declare class ImpaktSiteHeader extends ImpaktElement {
|
|
|
129
178
|
badge: string;
|
|
130
179
|
/** A code-like line after the chip, such as a commit hash. */
|
|
131
180
|
meta: string;
|
|
132
|
-
links:
|
|
181
|
+
links: SiteHeaderLink[];
|
|
133
182
|
/** The name of the links' landmark. */
|
|
134
183
|
label: string;
|
|
135
184
|
/** The words on the button that opens the links on a narrow screen. */
|
|
@@ -164,9 +213,31 @@ export declare class ImpaktSiteHeader extends ImpaktElement {
|
|
|
164
213
|
initials?: string;
|
|
165
214
|
accent?: boolean;
|
|
166
215
|
}>;
|
|
216
|
+
/** `canvas` is the whole G2 canvas header and its phone menu (`9:264`, `14:715`, `21:1688`). */
|
|
217
|
+
look: 'default' | 'canvas';
|
|
218
|
+
/** With `look="canvas"`: the call at the foot of the phone menu, such as "Book a 30-minute call". The action's words when left empty. */
|
|
219
|
+
menuActionText: string;
|
|
220
|
+
/** Where that call goes. The action's href when left empty. */
|
|
221
|
+
menuActionHref: string;
|
|
222
|
+
/** With `look="canvas"`: a short line in the menu's foot, such as "UK · Cyprus". */
|
|
223
|
+
menuNote: string;
|
|
224
|
+
/** With `look="canvas"`: an email address in the menu's foot, as a mail link. */
|
|
225
|
+
menuEmail: string;
|
|
226
|
+
/** With `look="canvas"`: the word before the current page's number in the menu, as in "Current · 01". */
|
|
227
|
+
currentText: string;
|
|
228
|
+
/** With `look="canvas"`: the words on the button that closes the menu. */
|
|
229
|
+
closeText: string;
|
|
167
230
|
constructor();
|
|
168
231
|
static styles: import("lit").CSSResult[];
|
|
169
232
|
private act;
|
|
233
|
+
/** The brand link: the mark and the name, or the logo. */
|
|
234
|
+
private renderBrand;
|
|
235
|
+
/**
|
|
236
|
+
* look="canvas": the filled Menu button and the whole-screen menu (14:715, 21:1688). They are tied by
|
|
237
|
+
* `popovertarget`, so the browser opens and closes the menu, moves on to it with Tab, closes it on Escape and
|
|
238
|
+
* tells a screen reader whether it is open, with no script.
|
|
239
|
+
*/
|
|
240
|
+
private renderMenu;
|
|
170
241
|
render(): TemplateResult;
|
|
171
242
|
}
|
|
172
243
|
/**
|
package/dist/components/site.js
CHANGED
|
@@ -466,6 +466,10 @@ export declare class ImpaktPostCard extends ImpaktElement {
|
|
|
466
466
|
* it. `hide-label-on="phone"` leaves the label out on a phone, where it would
|
|
467
467
|
* crowd the line below.
|
|
468
468
|
*
|
|
469
|
+
* The box is drawn 0.1em outside the words at each side, as the Selection in
|
|
470
|
+
* the home frame is (`9:306`), so the words keep their place in the heading
|
|
471
|
+
* and the box hangs into the space round them.
|
|
472
|
+
*
|
|
469
473
|
* @category content
|
|
470
474
|
* @icon text
|
|
471
475
|
* @slot - The words to pick out.
|
package/dist/index.js
CHANGED
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
ImpaktSiteMenu,
|
|
7
7
|
ImpaktStatRow,
|
|
8
8
|
ImpaktWorkList
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WIVKJL64.js";
|
|
10
10
|
import {
|
|
11
11
|
ImpaktJourneyButton,
|
|
12
12
|
JOURNEY_STAGES
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WTVF3JRL.js";
|
|
14
14
|
import {
|
|
15
15
|
ImpaktAnnouncement,
|
|
16
16
|
ImpaktFeatureList,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
ImpaktReviews,
|
|
30
30
|
ImpaktSteps,
|
|
31
31
|
gallerySpan
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-MMADM6OW.js";
|
|
33
33
|
import {
|
|
34
34
|
ImpaktScene
|
|
35
35
|
} from "./chunk-NHWD2LUR.js";
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
ImpaktSiteFooter,
|
|
52
52
|
ImpaktSiteHeader,
|
|
53
53
|
ImpaktWordmark
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-FNGN2F6Y.js";
|
|
55
55
|
import {
|
|
56
56
|
ImpaktCardGrid
|
|
57
57
|
} from "./chunk-ZD75GU6J.js";
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
ImpaktCheckList,
|
|
62
62
|
ImpaktReleaseCard,
|
|
63
63
|
ImpaktReleaseList
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-IT2NA25D.js";
|
|
65
65
|
import {
|
|
66
66
|
ImpaktBeforeAfter,
|
|
67
67
|
ImpaktLocationCard,
|
|
@@ -74,14 +74,14 @@ import {
|
|
|
74
74
|
ImpaktEstimator,
|
|
75
75
|
estimate,
|
|
76
76
|
phaseWeeks
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-B6I3GVJ5.js";
|
|
78
78
|
import {
|
|
79
79
|
ImpaktBrowserFrame,
|
|
80
80
|
ImpaktCallout,
|
|
81
81
|
ImpaktHypothesisCard,
|
|
82
82
|
ImpaktProcessLine,
|
|
83
83
|
ImpaktWeekStrip
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-H262HKSL.js";
|
|
85
85
|
import {
|
|
86
86
|
ImpaktColumnList,
|
|
87
87
|
ImpaktCursor,
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
ImpaktServiceCard,
|
|
94
94
|
ImpaktStageTag,
|
|
95
95
|
STAGE_WORDS
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-53V2GY6L.js";
|
|
97
97
|
import {
|
|
98
98
|
ImpaktFlow
|
|
99
99
|
} from "./chunk-KDDXCGEZ.js";
|