@atomic-ui/blocks 0.14.0 → 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 +2978 -9654
- 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-Q366ZM2X.js → chunk-LJGOTYDJ.js} +17 -41
- package/dist/chunk-LJGOTYDJ.js.map +1 -0
- package/dist/{chunk-BW5ZMKES.js → chunk-OBBPBN4S.js} +17 -144
- 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-NZQZRBKV.js → chunk-VOONXP5H.js} +15 -57
- 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/g2-site.d.ts +27 -40
- package/dist/components/g2-site.js +1 -3
- 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 +6 -52
- package/dist/components/site.js +3 -5
- package/dist/components/studio.d.ts +10 -95
- package/dist/components/studio.js +1 -3
- package/dist/index.d.ts +9 -13
- package/dist/index.js +23 -101
- package/dist/index.js.map +1 -1
- package/dist/standalone/atomic-ui-blocks.js +751 -1642
- 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-BW5ZMKES.js.map +0 -1
- package/dist/chunk-GZTBAT6P.js +0 -574
- package/dist/chunk-GZTBAT6P.js.map +0 -1
- package/dist/chunk-NHWD2LUR.js +0 -255
- package/dist/chunk-NHWD2LUR.js.map +0 -1
- package/dist/chunk-NZQZRBKV.js.map +0 -1
- package/dist/chunk-Q366ZM2X.js.map +0 -1
- package/dist/chunk-R7SSIE2E.js +0 -362
- package/dist/chunk-R7SSIE2E.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-ZM2HLQOG.js +0 -783
- package/dist/chunk-ZM2HLQOG.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';
|
|
@@ -241,51 +241,6 @@ export declare class ImpaktSiteHeader extends ImpaktElement {
|
|
|
241
241
|
private renderMenu;
|
|
242
242
|
render(): TemplateResult;
|
|
243
243
|
}
|
|
244
|
-
/**
|
|
245
|
-
* The site's name as a wordmark, or its logo, linking home: the start of a
|
|
246
|
-
* site header.
|
|
247
|
-
*
|
|
248
|
-
* @category layout
|
|
249
|
-
* @icon logo
|
|
250
|
-
*/
|
|
251
|
-
export declare class ImpaktWordmark extends ImpaktElement {
|
|
252
|
-
static properties: {
|
|
253
|
-
text: {
|
|
254
|
-
type: StringConstructor;
|
|
255
|
-
};
|
|
256
|
-
src: {
|
|
257
|
-
type: StringConstructor;
|
|
258
|
-
};
|
|
259
|
-
alt: {
|
|
260
|
-
type: StringConstructor;
|
|
261
|
-
};
|
|
262
|
-
href: {
|
|
263
|
-
type: StringConstructor;
|
|
264
|
-
};
|
|
265
|
-
size: {
|
|
266
|
-
type: StringConstructor;
|
|
267
|
-
reflect: boolean;
|
|
268
|
-
};
|
|
269
|
-
hideOn: {
|
|
270
|
-
type: StringConstructor;
|
|
271
|
-
reflect: boolean;
|
|
272
|
-
attribute: string;
|
|
273
|
-
};
|
|
274
|
-
};
|
|
275
|
-
/** The name, set in the heading face. */
|
|
276
|
-
text: string;
|
|
277
|
-
/** A logo picture, used instead of the name. */
|
|
278
|
-
src: string;
|
|
279
|
-
/** What the logo says. Leave empty to use the name. */
|
|
280
|
-
alt: string;
|
|
281
|
-
href: string;
|
|
282
|
-
/** Larger on a wide header, smaller on a phone's. */
|
|
283
|
-
size: 'sm' | 'md' | 'lg';
|
|
284
|
-
hideOn: 'never' | 'phone' | 'wide';
|
|
285
|
-
constructor();
|
|
286
|
-
static styles: import("lit").CSSResult[];
|
|
287
|
-
render(): TemplateResult;
|
|
288
|
-
}
|
|
289
244
|
/** One line of a footer's log: a code, what it says, and the colour of its dot. */
|
|
290
245
|
export interface FooterLogLine {
|
|
291
246
|
meta?: string;
|
|
@@ -390,7 +345,6 @@ export declare class ImpaktSiteFooter extends ImpaktElement {
|
|
|
390
345
|
declare global {
|
|
391
346
|
interface HTMLElementTagNameMap {
|
|
392
347
|
'impakt-site-header': ImpaktSiteHeader;
|
|
393
|
-
'impakt-wordmark': ImpaktWordmark;
|
|
394
348
|
'impakt-site-footer': ImpaktSiteFooter;
|
|
395
349
|
}
|
|
396
350
|
}
|
package/dist/components/site.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImpaktSiteFooter,
|
|
3
|
-
ImpaktSiteHeader
|
|
4
|
-
|
|
5
|
-
} from "../chunk-NZQZRBKV.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;
|
|
@@ -266,98 +266,6 @@ export declare class ImpaktFaq extends ImpaktElement {
|
|
|
266
266
|
static styles: import("lit").CSSResult[];
|
|
267
267
|
render(): TemplateResult;
|
|
268
268
|
}
|
|
269
|
-
/**
|
|
270
|
-
* A site's menu as a whole screen: a few large links, for a phone or for a
|
|
271
|
-
* site with only a handful of pages.
|
|
272
|
-
*
|
|
273
|
-
* **It is a native `<dialog>` opened with `showModal()`**, as the drawer is, so
|
|
274
|
-
* the focus trap, Escape, the inert page behind it and the return of focus to
|
|
275
|
-
* the button that opened it all come from the browser (2.1.2, 2.4.3). The page
|
|
276
|
-
* behind does not scroll while it is open. The button that opens it is the
|
|
277
|
-
* page's own; set `open` from it and listen for `impakt-close`.
|
|
278
|
-
*
|
|
279
|
-
* **The links are a navigation landmark with a name**, and the page the reader
|
|
280
|
-
* is on carries `aria-current="page"` and is marked with a square, so the mark
|
|
281
|
-
* does not depend on colour (1.4.1). Set `current-text`, such as "Current",
|
|
282
|
-
* and the words "Current · 01" stand in its number instead of the square. A
|
|
283
|
-
* brand whose ink is dark may also colour it, by setting
|
|
284
|
-
* `--impakt-site-menu-current`.
|
|
285
|
-
*
|
|
286
|
-
* The menu is drawn in ink: the text colour as the background with the card
|
|
287
|
-
* colour on it, a pair every brand already holds at 4.5:1. A component slotted
|
|
288
|
-
* at its foot takes the same colours through its tokens; a plain link there
|
|
289
|
-
* keeps the page's own link colour, so slot `impakt-link` instead.
|
|
290
|
-
*
|
|
291
|
-
* @category navigation
|
|
292
|
-
* @icon menu
|
|
293
|
-
* @slot footer - Under the links: a call to action, an email address.
|
|
294
|
-
* @fires {CustomEvent<null>} impakt-close - When the menu is closed, by its button, by Escape or by following a link.
|
|
295
|
-
*/
|
|
296
|
-
export declare class ImpaktSiteMenu extends ImpaktElement {
|
|
297
|
-
static properties: {
|
|
298
|
-
open: {
|
|
299
|
-
type: BooleanConstructor;
|
|
300
|
-
reflect: boolean;
|
|
301
|
-
};
|
|
302
|
-
links: {
|
|
303
|
-
type: ArrayConstructor;
|
|
304
|
-
};
|
|
305
|
-
current: {
|
|
306
|
-
type: StringConstructor;
|
|
307
|
-
};
|
|
308
|
-
brand: {
|
|
309
|
-
type: StringConstructor;
|
|
310
|
-
};
|
|
311
|
-
mark: {
|
|
312
|
-
type: StringConstructor;
|
|
313
|
-
};
|
|
314
|
-
home: {
|
|
315
|
-
type: StringConstructor;
|
|
316
|
-
};
|
|
317
|
-
label: {
|
|
318
|
-
type: StringConstructor;
|
|
319
|
-
};
|
|
320
|
-
closeText: {
|
|
321
|
-
type: StringConstructor;
|
|
322
|
-
attribute: string;
|
|
323
|
-
};
|
|
324
|
-
currentText: {
|
|
325
|
-
type: StringConstructor;
|
|
326
|
-
attribute: string;
|
|
327
|
-
};
|
|
328
|
-
};
|
|
329
|
-
/** Whether the menu is showing. */
|
|
330
|
-
open: boolean;
|
|
331
|
-
/** The pages, in order. */
|
|
332
|
-
links: NavLink[];
|
|
333
|
-
/** The `href` of the page the reader is on, so its link is marked. */
|
|
334
|
-
current: string;
|
|
335
|
-
/** The site's name, at the top. */
|
|
336
|
-
brand: string;
|
|
337
|
-
/** A letter in a small square before the name, such as "i", as the site header's canvas look draws it. */
|
|
338
|
-
mark: string;
|
|
339
|
-
/** Where the site's name goes. */
|
|
340
|
-
home: string;
|
|
341
|
-
/** The menu's name, read when it opens and as the name of its links. */
|
|
342
|
-
label: string;
|
|
343
|
-
/** The words on the button that closes it. */
|
|
344
|
-
closeText: string;
|
|
345
|
-
/**
|
|
346
|
-
* A word shown with the current page's number, such as "Current", so it
|
|
347
|
-
* reads "Current · 01". It then marks the page in place of the square.
|
|
348
|
-
* Leave empty for the square.
|
|
349
|
-
*/
|
|
350
|
-
currentText: string;
|
|
351
|
-
constructor();
|
|
352
|
-
static styles: import("lit").CSSResult[];
|
|
353
|
-
private hasFooter;
|
|
354
|
-
private get dialog();
|
|
355
|
-
updated(changed: Map<string, unknown>): void;
|
|
356
|
-
disconnectedCallback(): void;
|
|
357
|
-
private close;
|
|
358
|
-
private footerChanged;
|
|
359
|
-
render(): TemplateResult;
|
|
360
|
-
}
|
|
361
269
|
/**
|
|
362
270
|
* An offer, set out in two halves: what it is, with one action, and a short
|
|
363
271
|
* numbered list of what you get.
|
|
@@ -489,7 +397,9 @@ export declare class ImpaktPostCard extends ImpaktElement {
|
|
|
489
397
|
*
|
|
490
398
|
* `cursor` draws a pointer at the bottom-right handle, as if someone in the
|
|
491
399
|
* file had just picked the words; its value, if any, is the name tag beside
|
|
492
|
-
* 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
|
|
493
403
|
* crowd the line below.
|
|
494
404
|
*
|
|
495
405
|
* The box is drawn 0.1em outside the words at each side, as the Selection in
|
|
@@ -516,9 +426,15 @@ export declare class ImpaktHighlight extends ImpaktElement {
|
|
|
516
426
|
reflect: boolean;
|
|
517
427
|
attribute: string;
|
|
518
428
|
};
|
|
429
|
+
labelPhone: {
|
|
430
|
+
type: StringConstructor;
|
|
431
|
+
attribute: string;
|
|
432
|
+
};
|
|
519
433
|
};
|
|
520
434
|
/** A small tag under the words, such as "Design · H1 / 120". It is decoration and is not read. */
|
|
521
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;
|
|
522
438
|
/**
|
|
523
439
|
* Draw a pointer at the bottom-right handle. Its value is a name tag beside
|
|
524
440
|
* the pointer, such as "Maria"; an empty value draws the pointer alone. Leave
|
|
@@ -536,7 +452,6 @@ declare global {
|
|
|
536
452
|
'impakt-work-list': ImpaktWorkList;
|
|
537
453
|
'impakt-stat-row': ImpaktStatRow;
|
|
538
454
|
'impakt-faq': ImpaktFaq;
|
|
539
|
-
'impakt-site-menu': ImpaktSiteMenu;
|
|
540
455
|
'impakt-offer': ImpaktOffer;
|
|
541
456
|
'impakt-post-card': ImpaktPostCard;
|
|
542
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';
|