@atomic-ui/blocks 0.13.2 → 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.
- package/README.md +15 -15
- package/custom-elements.json +2961 -9573
- package/dist/{chunk-B6I3GVJ5.js → chunk-3G3NP4UC.js} +9 -4
- package/dist/chunk-3G3NP4UC.js.map +1 -0
- package/dist/{chunk-H262HKSL.js → chunk-7OFH762N.js} +53 -23
- package/dist/chunk-7OFH762N.js.map +1 -0
- package/dist/{chunk-WTVF3JRL.js → chunk-GDATDR2Q.js} +24 -7
- package/dist/chunk-GDATDR2Q.js.map +1 -0
- package/dist/chunk-GQ2I44OU.js +226 -0
- package/dist/chunk-GQ2I44OU.js.map +1 -0
- package/dist/chunk-HISF6RYK.js +199 -0
- package/dist/chunk-HISF6RYK.js.map +1 -0
- package/dist/{chunk-53V2GY6L.js → chunk-LJGOTYDJ.js} +76 -69
- package/dist/chunk-LJGOTYDJ.js.map +1 -0
- package/dist/{chunk-WIVKJL64.js → chunk-OBBPBN4S.js} +73 -164
- package/dist/chunk-OBBPBN4S.js.map +1 -0
- package/dist/chunk-OHXEZPBB.js +109 -0
- package/dist/chunk-OHXEZPBB.js.map +1 -0
- package/dist/{chunk-FNGN2F6Y.js → chunk-VOONXP5H.js} +30 -59
- package/dist/chunk-VOONXP5H.js.map +1 -0
- package/dist/chunk-XSKGWT2D.js +84 -0
- package/dist/chunk-XSKGWT2D.js.map +1 -0
- package/dist/components/changelog.d.ts +0 -288
- package/dist/components/changelog.js +3 -12
- package/dist/components/estimator.js +1 -1
- package/dist/components/g2-case.d.ts +8 -1
- package/dist/components/g2-case.js +1 -1
- package/dist/components/g2-site.d.ts +49 -41
- package/dist/components/g2-site.js +1 -3
- package/dist/components/journey.d.ts +13 -2
- package/dist/components/journey.js +1 -1
- package/dist/components/marketing.d.ts +0 -283
- package/dist/components/marketing.js +3 -13
- package/dist/components/organisms.d.ts +0 -489
- package/dist/components/organisms.js +3 -19
- package/dist/components/selling.d.ts +0 -255
- package/dist/components/selling.js +3 -15
- package/dist/components/site.d.ts +8 -53
- package/dist/components/site.js +3 -5
- package/dist/components/studio.d.ts +42 -98
- package/dist/components/studio.js +1 -3
- package/dist/index.d.ts +9 -13
- package/dist/index.js +25 -103
- package/dist/index.js.map +1 -1
- package/dist/standalone/atomic-ui-blocks.js +832 -1622
- package/dist/standalone/atomic-ui-blocks.js.map +4 -4
- package/dist/standalone/index.html +18 -26
- package/package.json +3 -3
- package/specimen/index.html +18 -26
- package/dist/chunk-53V2GY6L.js.map +0 -1
- package/dist/chunk-B6I3GVJ5.js.map +0 -1
- package/dist/chunk-FNGN2F6Y.js.map +0 -1
- package/dist/chunk-H262HKSL.js.map +0 -1
- package/dist/chunk-IT2NA25D.js +0 -571
- package/dist/chunk-IT2NA25D.js.map +0 -1
- package/dist/chunk-MMADM6OW.js +0 -782
- package/dist/chunk-MMADM6OW.js.map +0 -1
- package/dist/chunk-NHWD2LUR.js +0 -255
- package/dist/chunk-NHWD2LUR.js.map +0 -1
- package/dist/chunk-R7SSIE2E.js +0 -362
- package/dist/chunk-R7SSIE2E.js.map +0 -1
- package/dist/chunk-WIVKJL64.js.map +0 -1
- package/dist/chunk-WTVF3JRL.js.map +0 -1
- package/dist/chunk-XB6FD4SF.js +0 -438
- package/dist/chunk-XB6FD4SF.js.map +0 -1
- package/dist/chunk-YXMXLVK7.js +0 -230
- package/dist/chunk-YXMXLVK7.js.map +0 -1
- package/dist/chunk-ZD75GU6J.js +0 -75
- package/dist/chunk-ZD75GU6J.js.map +0 -1
- package/dist/chunk-ZODL5HD4.js +0 -535
- package/dist/chunk-ZODL5HD4.js.map +0 -1
- package/dist/components/card-grid.d.ts +0 -72
- package/dist/components/card-grid.js +0 -7
- package/dist/components/card-grid.js.map +0 -1
- package/dist/components/property.d.ts +0 -389
- package/dist/components/property.js +0 -17
- package/dist/components/property.js.map +0 -1
- package/dist/components/scene.d.ts +0 -138
- package/dist/components/scene.js +0 -7
- package/dist/components/scene.js.map +0 -1
- package/dist/components/scrubber.d.ts +0 -86
- package/dist/components/scrubber.js +0 -7
- package/dist/components/scrubber.js.map +0 -1
|
@@ -186,265 +186,10 @@ export declare class ImpaktVideo extends ImpaktElement {
|
|
|
186
186
|
static styles: import("lit").CSSResult[];
|
|
187
187
|
render(): TemplateResult;
|
|
188
188
|
}
|
|
189
|
-
/**
|
|
190
|
-
* The warning and the regulator wording a financial page must carry, as a
|
|
191
|
-
* block of its own so it is never left off.
|
|
192
|
-
*
|
|
193
|
-
* Pick the kind to start from the usual words, or `custom` to write your own.
|
|
194
|
-
* Whatever it says, check it with whoever signs off your financial promotions.
|
|
195
|
-
*
|
|
196
|
-
* @category feedback
|
|
197
|
-
* @icon shield
|
|
198
|
-
*/
|
|
199
|
-
export declare class ImpaktRegulatoryNotice extends ImpaktElement {
|
|
200
|
-
static properties: {
|
|
201
|
-
kind: {
|
|
202
|
-
type: StringConstructor;
|
|
203
|
-
reflect: boolean;
|
|
204
|
-
};
|
|
205
|
-
heading: {
|
|
206
|
-
type: StringConstructor;
|
|
207
|
-
};
|
|
208
|
-
text: {
|
|
209
|
-
type: StringConstructor;
|
|
210
|
-
};
|
|
211
|
-
firm: {
|
|
212
|
-
type: StringConstructor;
|
|
213
|
-
};
|
|
214
|
-
spaceAbove: {
|
|
215
|
-
type: StringConstructor;
|
|
216
|
-
reflect: boolean;
|
|
217
|
-
attribute: string;
|
|
218
|
-
};
|
|
219
|
-
spaceBelow: {
|
|
220
|
-
type: StringConstructor;
|
|
221
|
-
reflect: boolean;
|
|
222
|
-
attribute: string;
|
|
223
|
-
};
|
|
224
|
-
};
|
|
225
|
-
kind: 'mortgage' | 'secured-loan' | 'investment' | 'insurance' | 'custom';
|
|
226
|
-
/** Leave empty to use the usual heading for the kind. */
|
|
227
|
-
heading: string;
|
|
228
|
-
/** Leave empty to use the usual warning for the kind. */
|
|
229
|
-
text: string;
|
|
230
|
-
/** Who you are and who regulates you, such as "Acme Ltd is authorised and regulated by the Financial Conduct Authority (FRN 123456)." */
|
|
231
|
-
firm: string;
|
|
232
|
-
spaceAbove: Space;
|
|
233
|
-
spaceBelow: Space;
|
|
234
|
-
constructor();
|
|
235
|
-
static styles: import("lit").CSSResult[];
|
|
236
|
-
render(): TemplateResult;
|
|
237
|
-
}
|
|
238
|
-
/** One band of a tax: everything above `from` and up to the next band's `from` is charged at `rate`. */
|
|
239
|
-
interface Band {
|
|
240
|
-
from: number;
|
|
241
|
-
rate: number;
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* Stamp Duty Land Tax for England and Northern Ireland, from 1 April 2025.
|
|
245
|
-
* Exported so the numbers can be checked, and changed in one place.
|
|
246
|
-
*/
|
|
247
|
-
export declare const SDLT: {
|
|
248
|
-
standard: Band[];
|
|
249
|
-
firstTime: Band[];
|
|
250
|
-
firstTimeLimit: number;
|
|
251
|
-
additionalSurcharge: number;
|
|
252
|
-
};
|
|
253
|
-
/** The stamp duty on a home, for a mover, a first-time buyer or a second home. */
|
|
254
|
-
export declare function stampDuty(price: number, buyer: 'mover' | 'first-time' | 'additional'): number;
|
|
255
|
-
/**
|
|
256
|
-
* How much stamp duty a home would cost, for a home mover, a first-time buyer
|
|
257
|
-
* or a second home, worked out as the price is typed.
|
|
258
|
-
*
|
|
259
|
-
* The rates are England and Northern Ireland's from 1 April 2025. Scotland and
|
|
260
|
-
* Wales have their own taxes, and rates change, so the small print says which
|
|
261
|
-
* rates these are and points to GOV.UK.
|
|
262
|
-
*
|
|
263
|
-
* @category form
|
|
264
|
-
* @icon pound
|
|
265
|
-
*/
|
|
266
|
-
export declare class ImpaktStampDutyCalculator extends ImpaktElement {
|
|
267
|
-
static properties: {
|
|
268
|
-
heading: {
|
|
269
|
-
type: StringConstructor;
|
|
270
|
-
};
|
|
271
|
-
price: {
|
|
272
|
-
type: NumberConstructor;
|
|
273
|
-
};
|
|
274
|
-
buyer: {
|
|
275
|
-
type: StringConstructor;
|
|
276
|
-
};
|
|
277
|
-
smallPrint: {
|
|
278
|
-
type: StringConstructor;
|
|
279
|
-
attribute: string;
|
|
280
|
-
};
|
|
281
|
-
headingLevel: {
|
|
282
|
-
type: NumberConstructor;
|
|
283
|
-
attribute: string;
|
|
284
|
-
};
|
|
285
|
-
spaceAbove: {
|
|
286
|
-
type: StringConstructor;
|
|
287
|
-
reflect: boolean;
|
|
288
|
-
attribute: string;
|
|
289
|
-
};
|
|
290
|
-
spaceBelow: {
|
|
291
|
-
type: StringConstructor;
|
|
292
|
-
reflect: boolean;
|
|
293
|
-
attribute: string;
|
|
294
|
-
};
|
|
295
|
-
};
|
|
296
|
-
heading: string;
|
|
297
|
-
price: number;
|
|
298
|
-
buyer: 'mover' | 'first-time' | 'additional';
|
|
299
|
-
smallPrint: string;
|
|
300
|
-
headingLevel: 2 | 3;
|
|
301
|
-
spaceAbove: Space;
|
|
302
|
-
spaceBelow: Space;
|
|
303
|
-
constructor();
|
|
304
|
-
static styles: import("lit").CSSResult[];
|
|
305
|
-
render(): TemplateResult;
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* Roughly how much someone could borrow, from what they earn, and the price
|
|
309
|
-
* of home that buys with their deposit.
|
|
310
|
-
*
|
|
311
|
-
* Lenders usually lend four to four and a half times income; the multiple is
|
|
312
|
-
* a setting. It is a guide, not an offer, and the small print says so.
|
|
313
|
-
*
|
|
314
|
-
* @category form
|
|
315
|
-
* @icon pound
|
|
316
|
-
*/
|
|
317
|
-
export declare class ImpaktAffordabilityCalculator extends ImpaktElement {
|
|
318
|
-
static properties: {
|
|
319
|
-
heading: {
|
|
320
|
-
type: StringConstructor;
|
|
321
|
-
};
|
|
322
|
-
income: {
|
|
323
|
-
type: NumberConstructor;
|
|
324
|
-
};
|
|
325
|
-
secondIncome: {
|
|
326
|
-
type: NumberConstructor;
|
|
327
|
-
attribute: string;
|
|
328
|
-
};
|
|
329
|
-
deposit: {
|
|
330
|
-
type: NumberConstructor;
|
|
331
|
-
};
|
|
332
|
-
timesIncome: {
|
|
333
|
-
type: NumberConstructor;
|
|
334
|
-
attribute: string;
|
|
335
|
-
};
|
|
336
|
-
smallPrint: {
|
|
337
|
-
type: StringConstructor;
|
|
338
|
-
attribute: string;
|
|
339
|
-
};
|
|
340
|
-
headingLevel: {
|
|
341
|
-
type: NumberConstructor;
|
|
342
|
-
attribute: string;
|
|
343
|
-
};
|
|
344
|
-
spaceAbove: {
|
|
345
|
-
type: StringConstructor;
|
|
346
|
-
reflect: boolean;
|
|
347
|
-
attribute: string;
|
|
348
|
-
};
|
|
349
|
-
spaceBelow: {
|
|
350
|
-
type: StringConstructor;
|
|
351
|
-
reflect: boolean;
|
|
352
|
-
attribute: string;
|
|
353
|
-
};
|
|
354
|
-
};
|
|
355
|
-
heading: string;
|
|
356
|
-
income: number;
|
|
357
|
-
secondIncome: number;
|
|
358
|
-
deposit: number;
|
|
359
|
-
/** How many times income a lender would lend, such as 4.5. */
|
|
360
|
-
timesIncome: number;
|
|
361
|
-
smallPrint: string;
|
|
362
|
-
headingLevel: 2 | 3;
|
|
363
|
-
spaceAbove: Space;
|
|
364
|
-
spaceBelow: Space;
|
|
365
|
-
constructor();
|
|
366
|
-
static styles: import("lit").CSSResult[];
|
|
367
|
-
private field;
|
|
368
|
-
render(): TemplateResult;
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* How to get in touch: a phone number, opening hours, an email address, and a
|
|
372
|
-
* short form to ask for a call back.
|
|
373
|
-
*
|
|
374
|
-
* The form fires `impakt-submit` with the name, phone number and best time; the
|
|
375
|
-
* app sends it on. Then the block thanks them in place.
|
|
376
|
-
*
|
|
377
|
-
* @fires {CustomEvent<{ name: string; phone: string; when: string }>} impakt-submit - When the form is sent.
|
|
378
|
-
* @category content
|
|
379
|
-
* @icon phone
|
|
380
|
-
*/
|
|
381
|
-
export declare class ImpaktContactBlock extends ImpaktElement {
|
|
382
|
-
static properties: {
|
|
383
|
-
heading: {
|
|
384
|
-
type: StringConstructor;
|
|
385
|
-
};
|
|
386
|
-
phone: {
|
|
387
|
-
type: StringConstructor;
|
|
388
|
-
};
|
|
389
|
-
hours: {
|
|
390
|
-
type: StringConstructor;
|
|
391
|
-
};
|
|
392
|
-
email: {
|
|
393
|
-
type: StringConstructor;
|
|
394
|
-
};
|
|
395
|
-
callbackHeading: {
|
|
396
|
-
type: StringConstructor;
|
|
397
|
-
attribute: string;
|
|
398
|
-
};
|
|
399
|
-
buttonText: {
|
|
400
|
-
type: StringConstructor;
|
|
401
|
-
attribute: string;
|
|
402
|
-
};
|
|
403
|
-
doneText: {
|
|
404
|
-
type: StringConstructor;
|
|
405
|
-
attribute: string;
|
|
406
|
-
};
|
|
407
|
-
headingLevel: {
|
|
408
|
-
type: NumberConstructor;
|
|
409
|
-
attribute: string;
|
|
410
|
-
};
|
|
411
|
-
spaceAbove: {
|
|
412
|
-
type: StringConstructor;
|
|
413
|
-
reflect: boolean;
|
|
414
|
-
attribute: string;
|
|
415
|
-
};
|
|
416
|
-
spaceBelow: {
|
|
417
|
-
type: StringConstructor;
|
|
418
|
-
reflect: boolean;
|
|
419
|
-
attribute: string;
|
|
420
|
-
};
|
|
421
|
-
};
|
|
422
|
-
heading: string;
|
|
423
|
-
phone: string;
|
|
424
|
-
/** One line a day or range, such as "Monday to Friday, 9am to 6pm". */
|
|
425
|
-
hours: string;
|
|
426
|
-
email: string;
|
|
427
|
-
/** Leave empty to show no call back form. */
|
|
428
|
-
callbackHeading: string;
|
|
429
|
-
buttonText: string;
|
|
430
|
-
doneText: string;
|
|
431
|
-
headingLevel: 2 | 3;
|
|
432
|
-
sent: boolean;
|
|
433
|
-
spaceAbove: Space;
|
|
434
|
-
spaceBelow: Space;
|
|
435
|
-
constructor();
|
|
436
|
-
static styles: import("lit").CSSResult[];
|
|
437
|
-
private submit;
|
|
438
|
-
render(): TemplateResult;
|
|
439
|
-
}
|
|
440
189
|
declare global {
|
|
441
190
|
interface HTMLElementTagNameMap {
|
|
442
191
|
'impakt-plan-comparison': ImpaktPlanComparison;
|
|
443
192
|
'impakt-video': ImpaktVideo;
|
|
444
|
-
'impakt-regulatory-notice': ImpaktRegulatoryNotice;
|
|
445
|
-
'impakt-stamp-duty-calculator': ImpaktStampDutyCalculator;
|
|
446
|
-
'impakt-affordability-calculator': ImpaktAffordabilityCalculator;
|
|
447
|
-
'impakt-contact-block': ImpaktContactBlock;
|
|
448
193
|
}
|
|
449
194
|
}
|
|
450
195
|
export {};
|
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
ImpaktAffordabilityCalculator,
|
|
3
|
-
ImpaktContactBlock,
|
|
4
2
|
ImpaktPlanComparison,
|
|
5
|
-
ImpaktRegulatoryNotice,
|
|
6
|
-
ImpaktStampDutyCalculator,
|
|
7
3
|
ImpaktVideo,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
stampDuty
|
|
11
|
-
} from "../chunk-ZODL5HD4.js";
|
|
4
|
+
embedOf
|
|
5
|
+
} from "../chunk-GQ2I44OU.js";
|
|
12
6
|
export {
|
|
13
|
-
ImpaktAffordabilityCalculator,
|
|
14
|
-
ImpaktContactBlock,
|
|
15
7
|
ImpaktPlanComparison,
|
|
16
|
-
ImpaktRegulatoryNotice,
|
|
17
|
-
ImpaktStampDutyCalculator,
|
|
18
8
|
ImpaktVideo,
|
|
19
|
-
|
|
20
|
-
embedOf,
|
|
21
|
-
stampDuty
|
|
9
|
+
embedOf
|
|
22
10
|
};
|
|
23
11
|
//# sourceMappingURL=selling.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A site's own header and footer, drawn as one piece each, for the
|
|
3
|
-
* header and footer
|
|
2
|
+
* A site's own header and footer, drawn as one piece each, for the page's
|
|
3
|
+
* header and footer.
|
|
4
4
|
*
|
|
5
|
-
* The chip that sits beside
|
|
5
|
+
* The chip that sits beside the site's name is a product component, `impakt-chip`,
|
|
6
6
|
* and comes from `@atomic-ui/ui`.
|
|
7
7
|
*
|
|
8
|
-
* The page
|
|
9
|
-
* `<
|
|
10
|
-
*
|
|
8
|
+
* The page gives them their landmarks, so neither draws a `<header>` or
|
|
9
|
+
* `<footer>` of its own: a second banner would be one a screen reader
|
|
10
|
+
* announces twice.
|
|
11
11
|
*/
|
|
12
12
|
import { type TemplateResult } from 'lit';
|
|
13
13
|
import { ImpaktElement, type NavLink, type Tone } from '@atomic-ui/ui';
|
|
@@ -207,11 +207,12 @@ export declare class ImpaktSiteHeader extends ImpaktElement {
|
|
|
207
207
|
navLook: string;
|
|
208
208
|
/** 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. */
|
|
209
209
|
current: string;
|
|
210
|
-
/** The people in the file, drawn as small overlapping avatars. `
|
|
210
|
+
/** The people in the file, drawn as small overlapping avatars. `ink` fills one in ink, as the first of 9:285, and `accent` in the accent. */
|
|
211
211
|
presence: Array<{
|
|
212
212
|
name: string;
|
|
213
213
|
initials?: string;
|
|
214
214
|
accent?: boolean;
|
|
215
|
+
ink?: boolean;
|
|
215
216
|
}>;
|
|
216
217
|
/** `canvas` is the whole G2 canvas header and its phone menu (`9:264`, `14:715`, `21:1688`). */
|
|
217
218
|
look: 'default' | 'canvas';
|
|
@@ -240,51 +241,6 @@ export declare class ImpaktSiteHeader extends ImpaktElement {
|
|
|
240
241
|
private renderMenu;
|
|
241
242
|
render(): TemplateResult;
|
|
242
243
|
}
|
|
243
|
-
/**
|
|
244
|
-
* The site's name as a wordmark, or its logo, linking home: the start of a
|
|
245
|
-
* site header.
|
|
246
|
-
*
|
|
247
|
-
* @category layout
|
|
248
|
-
* @icon logo
|
|
249
|
-
*/
|
|
250
|
-
export declare class ImpaktWordmark extends ImpaktElement {
|
|
251
|
-
static properties: {
|
|
252
|
-
text: {
|
|
253
|
-
type: StringConstructor;
|
|
254
|
-
};
|
|
255
|
-
src: {
|
|
256
|
-
type: StringConstructor;
|
|
257
|
-
};
|
|
258
|
-
alt: {
|
|
259
|
-
type: StringConstructor;
|
|
260
|
-
};
|
|
261
|
-
href: {
|
|
262
|
-
type: StringConstructor;
|
|
263
|
-
};
|
|
264
|
-
size: {
|
|
265
|
-
type: StringConstructor;
|
|
266
|
-
reflect: boolean;
|
|
267
|
-
};
|
|
268
|
-
hideOn: {
|
|
269
|
-
type: StringConstructor;
|
|
270
|
-
reflect: boolean;
|
|
271
|
-
attribute: string;
|
|
272
|
-
};
|
|
273
|
-
};
|
|
274
|
-
/** The name, set in the heading face. */
|
|
275
|
-
text: string;
|
|
276
|
-
/** A logo picture, used instead of the name. */
|
|
277
|
-
src: string;
|
|
278
|
-
/** What the logo says. Leave empty to use the name. */
|
|
279
|
-
alt: string;
|
|
280
|
-
href: string;
|
|
281
|
-
/** Larger on a wide header, smaller on a phone's. */
|
|
282
|
-
size: 'sm' | 'md' | 'lg';
|
|
283
|
-
hideOn: 'never' | 'phone' | 'wide';
|
|
284
|
-
constructor();
|
|
285
|
-
static styles: import("lit").CSSResult[];
|
|
286
|
-
render(): TemplateResult;
|
|
287
|
-
}
|
|
288
244
|
/** One line of a footer's log: a code, what it says, and the colour of its dot. */
|
|
289
245
|
export interface FooterLogLine {
|
|
290
246
|
meta?: string;
|
|
@@ -389,7 +345,6 @@ export declare class ImpaktSiteFooter extends ImpaktElement {
|
|
|
389
345
|
declare global {
|
|
390
346
|
interface HTMLElementTagNameMap {
|
|
391
347
|
'impakt-site-header': ImpaktSiteHeader;
|
|
392
|
-
'impakt-wordmark': ImpaktWordmark;
|
|
393
348
|
'impakt-site-footer': ImpaktSiteFooter;
|
|
394
349
|
}
|
|
395
350
|
}
|
package/dist/components/site.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImpaktSiteFooter,
|
|
3
|
-
ImpaktSiteHeader
|
|
4
|
-
|
|
5
|
-
} from "../chunk-FNGN2F6Y.js";
|
|
3
|
+
ImpaktSiteHeader
|
|
4
|
+
} from "../chunk-VOONXP5H.js";
|
|
6
5
|
import "../chunk-EGNQHWY6.js";
|
|
7
6
|
export {
|
|
8
7
|
ImpaktSiteFooter,
|
|
9
|
-
ImpaktSiteHeader
|
|
10
|
-
ImpaktWordmark
|
|
8
|
+
ImpaktSiteHeader
|
|
11
9
|
};
|
|
12
10
|
//# sourceMappingURL=site.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* row of figures, and the questions at the foot of a page.
|
|
4
4
|
*/
|
|
5
5
|
import { type TemplateResult } from 'lit';
|
|
6
|
-
import { ImpaktElement
|
|
6
|
+
import { ImpaktElement } from '@atomic-ui/ui';
|
|
7
7
|
/** One project in a list of work. */
|
|
8
8
|
export interface WorkItem {
|
|
9
9
|
id?: string;
|
|
@@ -41,6 +41,11 @@ export interface WorkItem {
|
|
|
41
41
|
* hold at 4.5:1, so the state never depends on a colour of its own (1.4.3,
|
|
42
42
|
* 1.4.11). The focus ring is still drawn over it (2.4.7).
|
|
43
43
|
*
|
|
44
|
+
* For a brand with the reveal set on (impkt-web#51) the ink wipes in from the
|
|
45
|
+
* left in 180ms and the arrow slides 4px on, on hover or focus only, and the
|
|
46
|
+
* rows drop into place one after another, once, as the list is reached. No row
|
|
47
|
+
* is inked until it is pointed at or focused, unless it is `featured`.
|
|
48
|
+
*
|
|
44
49
|
* The names shrink with the block's own width, not the window's, so the list
|
|
45
50
|
* reads the same in a narrow column as on a phone (1.4.10).
|
|
46
51
|
*
|
|
@@ -130,6 +135,11 @@ export interface StatRowItem {
|
|
|
130
135
|
* A row of figures under a rule, each with what it counts: "4 live products",
|
|
131
136
|
* "161 ms response time".
|
|
132
137
|
*
|
|
138
|
+
* For a brand with the reveal set on (impkt-web#51) each figure counts up
|
|
139
|
+
* once, over 900ms, as the row is reached. The count is drawn over the figure,
|
|
140
|
+
* so the real figure is the text a screen reader reads throughout; with no
|
|
141
|
+
* script and with reduced motion the figure is simply there.
|
|
142
|
+
*
|
|
133
143
|
* The figures are a list, so a screen reader says how many there are, and each
|
|
134
144
|
* is read as one phrase, "161 ms response time", not a bare number followed
|
|
135
145
|
* some way off by its label (1.3.1). The row wraps by its own width: four
|
|
@@ -186,10 +196,20 @@ export interface FaqItem {
|
|
|
186
196
|
* it, so a screen reader can jump straight to the questions (2.4.1).
|
|
187
197
|
*
|
|
188
198
|
* An answer that is more than words is slotted as `panel-<id>`, exactly as
|
|
189
|
-
* on the accordion, and is passed through to it.
|
|
199
|
+
* on the accordion, and is passed through to it. The accordion's parts are
|
|
200
|
+
* passed out too, as `item`, `head`, `header` and `panel`, so a page can style
|
|
201
|
+
* a row as it would on the accordion itself.
|
|
202
|
+
*
|
|
203
|
+
* Each row is 92px with its rule, the question centred beside its "+", as
|
|
204
|
+
* the FAQ item of `10:670` and `21:1220` is.
|
|
190
205
|
*
|
|
191
206
|
* @category content
|
|
192
207
|
* @icon accordion
|
|
208
|
+
* @csspart questions - The accordion that holds the questions.
|
|
209
|
+
* @csspart item - A question and its answer, passed out from the accordion.
|
|
210
|
+
* @csspart head - A question's row.
|
|
211
|
+
* @csspart header - The button that opens a question.
|
|
212
|
+
* @csspart panel - An answer.
|
|
193
213
|
*/
|
|
194
214
|
export declare class ImpaktFaq extends ImpaktElement {
|
|
195
215
|
static properties: {
|
|
@@ -246,98 +266,6 @@ export declare class ImpaktFaq extends ImpaktElement {
|
|
|
246
266
|
static styles: import("lit").CSSResult[];
|
|
247
267
|
render(): TemplateResult;
|
|
248
268
|
}
|
|
249
|
-
/**
|
|
250
|
-
* A site's menu as a whole screen: a few large links, for a phone or for a
|
|
251
|
-
* site with only a handful of pages.
|
|
252
|
-
*
|
|
253
|
-
* **It is a native `<dialog>` opened with `showModal()`**, as the drawer is, so
|
|
254
|
-
* the focus trap, Escape, the inert page behind it and the return of focus to
|
|
255
|
-
* the button that opened it all come from the browser (2.1.2, 2.4.3). The page
|
|
256
|
-
* behind does not scroll while it is open. The button that opens it is the
|
|
257
|
-
* page's own; set `open` from it and listen for `impakt-close`.
|
|
258
|
-
*
|
|
259
|
-
* **The links are a navigation landmark with a name**, and the page the reader
|
|
260
|
-
* is on carries `aria-current="page"` and is marked with a square, so the mark
|
|
261
|
-
* does not depend on colour (1.4.1). Set `current-text`, such as "Current",
|
|
262
|
-
* and the words "Current · 01" stand in its number instead of the square. A
|
|
263
|
-
* brand whose ink is dark may also colour it, by setting
|
|
264
|
-
* `--impakt-site-menu-current`.
|
|
265
|
-
*
|
|
266
|
-
* The menu is drawn in ink: the text colour as the background with the card
|
|
267
|
-
* colour on it, a pair every brand already holds at 4.5:1. A component slotted
|
|
268
|
-
* at its foot takes the same colours through its tokens; a plain link there
|
|
269
|
-
* keeps the page's own link colour, so slot `impakt-link` instead.
|
|
270
|
-
*
|
|
271
|
-
* @category navigation
|
|
272
|
-
* @icon menu
|
|
273
|
-
* @slot footer - Under the links: a call to action, an email address.
|
|
274
|
-
* @fires {CustomEvent<null>} impakt-close - When the menu is closed, by its button, by Escape or by following a link.
|
|
275
|
-
*/
|
|
276
|
-
export declare class ImpaktSiteMenu extends ImpaktElement {
|
|
277
|
-
static properties: {
|
|
278
|
-
open: {
|
|
279
|
-
type: BooleanConstructor;
|
|
280
|
-
reflect: boolean;
|
|
281
|
-
};
|
|
282
|
-
links: {
|
|
283
|
-
type: ArrayConstructor;
|
|
284
|
-
};
|
|
285
|
-
current: {
|
|
286
|
-
type: StringConstructor;
|
|
287
|
-
};
|
|
288
|
-
brand: {
|
|
289
|
-
type: StringConstructor;
|
|
290
|
-
};
|
|
291
|
-
mark: {
|
|
292
|
-
type: StringConstructor;
|
|
293
|
-
};
|
|
294
|
-
home: {
|
|
295
|
-
type: StringConstructor;
|
|
296
|
-
};
|
|
297
|
-
label: {
|
|
298
|
-
type: StringConstructor;
|
|
299
|
-
};
|
|
300
|
-
closeText: {
|
|
301
|
-
type: StringConstructor;
|
|
302
|
-
attribute: string;
|
|
303
|
-
};
|
|
304
|
-
currentText: {
|
|
305
|
-
type: StringConstructor;
|
|
306
|
-
attribute: string;
|
|
307
|
-
};
|
|
308
|
-
};
|
|
309
|
-
/** Whether the menu is showing. */
|
|
310
|
-
open: boolean;
|
|
311
|
-
/** The pages, in order. */
|
|
312
|
-
links: NavLink[];
|
|
313
|
-
/** The `href` of the page the reader is on, so its link is marked. */
|
|
314
|
-
current: string;
|
|
315
|
-
/** The site's name, at the top. */
|
|
316
|
-
brand: string;
|
|
317
|
-
/** A letter in a small square before the name, such as "i", as the site header's canvas look draws it. */
|
|
318
|
-
mark: string;
|
|
319
|
-
/** Where the site's name goes. */
|
|
320
|
-
home: string;
|
|
321
|
-
/** The menu's name, read when it opens and as the name of its links. */
|
|
322
|
-
label: string;
|
|
323
|
-
/** The words on the button that closes it. */
|
|
324
|
-
closeText: string;
|
|
325
|
-
/**
|
|
326
|
-
* A word shown with the current page's number, such as "Current", so it
|
|
327
|
-
* reads "Current · 01". It then marks the page in place of the square.
|
|
328
|
-
* Leave empty for the square.
|
|
329
|
-
*/
|
|
330
|
-
currentText: string;
|
|
331
|
-
constructor();
|
|
332
|
-
static styles: import("lit").CSSResult[];
|
|
333
|
-
private hasFooter;
|
|
334
|
-
private get dialog();
|
|
335
|
-
updated(changed: Map<string, unknown>): void;
|
|
336
|
-
disconnectedCallback(): void;
|
|
337
|
-
private close;
|
|
338
|
-
private footerChanged;
|
|
339
|
-
render(): TemplateResult;
|
|
340
|
-
}
|
|
341
269
|
/**
|
|
342
270
|
* An offer, set out in two halves: what it is, with one action, and a short
|
|
343
271
|
* numbered list of what you get.
|
|
@@ -459,16 +387,27 @@ export declare class ImpaktPostCard extends ImpaktElement {
|
|
|
459
387
|
* page, so they are read, found and translated as the rest of it is; the
|
|
460
388
|
* handles and the optional label are hidden from a screen reader (1.3.1).
|
|
461
389
|
* The words on the accent are the colour the tokens measured against it
|
|
462
|
-
* (1.4.3).
|
|
390
|
+
* (1.4.3).
|
|
391
|
+
*
|
|
392
|
+
* **It draws itself once** (impkt-web#51), for a brand with the reveal set on:
|
|
393
|
+
* when its section reaches the middle of the screen the frame is drawn round
|
|
394
|
+
* the words in 260ms, the 8px handles appear at its corners and the size in
|
|
395
|
+
* the label counts up to the real size. The words never move. With no script
|
|
396
|
+
* and with reduced motion it is drawn as it ends.
|
|
463
397
|
*
|
|
464
398
|
* `cursor` draws a pointer at the bottom-right handle, as if someone in the
|
|
465
399
|
* file had just picked the words; its value, if any, is the name tag beside
|
|
466
|
-
* it. `
|
|
400
|
+
* it. `label-phone` gives a shorter tag for a phone, such as "Design", as the
|
|
401
|
+
* phone frames draw it (`90:1297`, `92:2191`, `96:2290`).
|
|
402
|
+
* `hide-label-on="phone"` leaves the label out on a phone, where it would
|
|
467
403
|
* crowd the line below.
|
|
468
404
|
*
|
|
469
405
|
* The box is drawn 0.1em outside the words at each side, as the Selection in
|
|
470
406
|
* 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.
|
|
407
|
+
* and the box hangs into the space round them. At its end it also gives back
|
|
408
|
+
* the display type's -0.05em tracking after the last letter
|
|
409
|
+
* (`--impakt-highlight-trail`), and the word after it is pushed along by the
|
|
410
|
+
* overhang, so a space still follows the box (`9:302`, `21:1322`).
|
|
472
411
|
*
|
|
473
412
|
* @category content
|
|
474
413
|
* @icon text
|
|
@@ -487,9 +426,15 @@ export declare class ImpaktHighlight extends ImpaktElement {
|
|
|
487
426
|
reflect: boolean;
|
|
488
427
|
attribute: string;
|
|
489
428
|
};
|
|
429
|
+
labelPhone: {
|
|
430
|
+
type: StringConstructor;
|
|
431
|
+
attribute: string;
|
|
432
|
+
};
|
|
490
433
|
};
|
|
491
434
|
/** A small tag under the words, such as "Design · H1 / 120". It is decoration and is not read. */
|
|
492
435
|
label: string;
|
|
436
|
+
/** A shorter tag in its place on a phone, such as "Design". Leave empty to keep `label` there. */
|
|
437
|
+
labelPhone: string;
|
|
493
438
|
/**
|
|
494
439
|
* Draw a pointer at the bottom-right handle. Its value is a name tag beside
|
|
495
440
|
* the pointer, such as "Maria"; an empty value draws the pointer alone. Leave
|
|
@@ -507,7 +452,6 @@ declare global {
|
|
|
507
452
|
'impakt-work-list': ImpaktWorkList;
|
|
508
453
|
'impakt-stat-row': ImpaktStatRow;
|
|
509
454
|
'impakt-faq': ImpaktFaq;
|
|
510
|
-
'impakt-site-menu': ImpaktSiteMenu;
|
|
511
455
|
'impakt-offer': ImpaktOffer;
|
|
512
456
|
'impakt-post-card': ImpaktPostCard;
|
|
513
457
|
'impakt-highlight': ImpaktHighlight;
|
|
@@ -3,16 +3,14 @@ import {
|
|
|
3
3
|
ImpaktHighlight,
|
|
4
4
|
ImpaktOffer,
|
|
5
5
|
ImpaktPostCard,
|
|
6
|
-
ImpaktSiteMenu,
|
|
7
6
|
ImpaktStatRow,
|
|
8
7
|
ImpaktWorkList
|
|
9
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-OBBPBN4S.js";
|
|
10
9
|
export {
|
|
11
10
|
ImpaktFaq,
|
|
12
11
|
ImpaktHighlight,
|
|
13
12
|
ImpaktOffer,
|
|
14
13
|
ImpaktPostCard,
|
|
15
|
-
ImpaktSiteMenu,
|
|
16
14
|
ImpaktStatRow,
|
|
17
15
|
ImpaktWorkList
|
|
18
16
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @atomic-ui/blocks — the section blocks Impakt sites are built from:
|
|
3
|
-
*
|
|
2
|
+
* @atomic-ui/blocks — the section blocks Impakt sites are built from: the G2 site
|
|
3
|
+
* blocks, the case study blocks, the tools blocks and the site header and footer. Standard
|
|
4
4
|
* custom elements in Lit, styled only from design tokens, built to WCAG 2.2 AA.
|
|
5
5
|
*
|
|
6
6
|
* Importing this module defines every block. It imports `@atomic-ui/ui` first,
|
|
@@ -9,18 +9,14 @@
|
|
|
9
9
|
* base class, tokens and style fragments.
|
|
10
10
|
*/
|
|
11
11
|
import '@atomic-ui/ui';
|
|
12
|
-
export {
|
|
13
|
-
export { ImpaktCardGrid, type CardItem } from './components/card-grid';
|
|
12
|
+
export { ImpaktFeatureList, type FeatureItem } from './components/marketing';
|
|
14
13
|
export { ImpaktJourneyButton, JOURNEY_STAGES, type JourneyStage } from './components/journey';
|
|
15
|
-
export { ImpaktWorkList, ImpaktStatRow, ImpaktFaq,
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export { ImpaktPlanComparison, ImpaktVideo, ImpaktRegulatoryNotice, ImpaktStampDutyCalculator, ImpaktAffordabilityCalculator, ImpaktContactBlock, stampDuty, embedOf, SDLT, type PlanItem, type PlanRow, } from './components/selling';
|
|
14
|
+
export { ImpaktWorkList, ImpaktStatRow, ImpaktFaq, ImpaktOffer, ImpaktPostCard, ImpaktHighlight, type WorkItem, type StatRowItem, type FaqItem, } from './components/studio';
|
|
15
|
+
export { ImpaktSteps, type StepItem } from './components/organisms';
|
|
16
|
+
export { ImpaktPlanComparison, ImpaktVideo, embedOf, type PlanItem, type PlanRow } from './components/selling';
|
|
19
17
|
export { ImpaktEstimator, estimate, phaseWeeks, type EstimatorQuestion, type EstimatorChoice, type EstimatorBand, type EstimatorPhase, type EstimateResult, } from './components/estimator';
|
|
20
|
-
export { ImpaktSiteHeader, ImpaktSiteFooter,
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export { ImpaktReleaseCard, ImpaktReleaseList, ImpaktBranchList, ImpaktCheckList, ImpaktBranchTimeline, type DiffLine, type ReleaseItem, type Branch, type CheckItem, type TimelineLane, type TimelineMark, } from './components/changelog';
|
|
24
|
-
export { ImpaktStageTag, ImpaktSectionHead, ImpaktServiceCard, ImpaktCursor, ImpaktHandNote, ImpaktFacts, ImpaktNumberedList, ImpaktColumnList, ImpaktOfficeCard, STAGE_WORDS, type StageName, type FactItem, type NumberedItem, type ColumnListColumn, } from './components/g2-site';
|
|
18
|
+
export { ImpaktSiteHeader, ImpaktSiteFooter, type FooterLogLine, type FooterColumn } from './components/site';
|
|
19
|
+
export { ImpaktBranchList, type DiffLine, type Branch } from './components/changelog';
|
|
20
|
+
export { ImpaktStageTag, ImpaktSectionHead, ImpaktServiceCard, ImpaktCursor, ImpaktFacts, ImpaktNumberedList, ImpaktColumnList, ImpaktOfficeCard, STAGE_WORDS, type StageName, type FactItem, type NumberedItem, type ColumnListColumn, } from './components/g2-site';
|
|
25
21
|
export { ImpaktProcessLine, ImpaktWeekStrip, ImpaktCallout, ImpaktHypothesisCard, ImpaktBrowserFrame, type ProcessNode, type WeekDay, } from './components/g2-case';
|
|
26
22
|
export { ImpaktFlow, type FlowStep } from './components/g2-tools';
|