@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.
Files changed (83) hide show
  1. package/README.md +15 -15
  2. package/custom-elements.json +2961 -9573
  3. package/dist/{chunk-B6I3GVJ5.js → chunk-3G3NP4UC.js} +9 -4
  4. package/dist/chunk-3G3NP4UC.js.map +1 -0
  5. package/dist/{chunk-H262HKSL.js → chunk-7OFH762N.js} +53 -23
  6. package/dist/chunk-7OFH762N.js.map +1 -0
  7. package/dist/{chunk-WTVF3JRL.js → chunk-GDATDR2Q.js} +24 -7
  8. package/dist/chunk-GDATDR2Q.js.map +1 -0
  9. package/dist/chunk-GQ2I44OU.js +226 -0
  10. package/dist/chunk-GQ2I44OU.js.map +1 -0
  11. package/dist/chunk-HISF6RYK.js +199 -0
  12. package/dist/chunk-HISF6RYK.js.map +1 -0
  13. package/dist/{chunk-53V2GY6L.js → chunk-LJGOTYDJ.js} +76 -69
  14. package/dist/chunk-LJGOTYDJ.js.map +1 -0
  15. package/dist/{chunk-WIVKJL64.js → chunk-OBBPBN4S.js} +73 -164
  16. package/dist/chunk-OBBPBN4S.js.map +1 -0
  17. package/dist/chunk-OHXEZPBB.js +109 -0
  18. package/dist/chunk-OHXEZPBB.js.map +1 -0
  19. package/dist/{chunk-FNGN2F6Y.js → chunk-VOONXP5H.js} +30 -59
  20. package/dist/chunk-VOONXP5H.js.map +1 -0
  21. package/dist/chunk-XSKGWT2D.js +84 -0
  22. package/dist/chunk-XSKGWT2D.js.map +1 -0
  23. package/dist/components/changelog.d.ts +0 -288
  24. package/dist/components/changelog.js +3 -12
  25. package/dist/components/estimator.js +1 -1
  26. package/dist/components/g2-case.d.ts +8 -1
  27. package/dist/components/g2-case.js +1 -1
  28. package/dist/components/g2-site.d.ts +49 -41
  29. package/dist/components/g2-site.js +1 -3
  30. package/dist/components/journey.d.ts +13 -2
  31. package/dist/components/journey.js +1 -1
  32. package/dist/components/marketing.d.ts +0 -283
  33. package/dist/components/marketing.js +3 -13
  34. package/dist/components/organisms.d.ts +0 -489
  35. package/dist/components/organisms.js +3 -19
  36. package/dist/components/selling.d.ts +0 -255
  37. package/dist/components/selling.js +3 -15
  38. package/dist/components/site.d.ts +8 -53
  39. package/dist/components/site.js +3 -5
  40. package/dist/components/studio.d.ts +42 -98
  41. package/dist/components/studio.js +1 -3
  42. package/dist/index.d.ts +9 -13
  43. package/dist/index.js +25 -103
  44. package/dist/index.js.map +1 -1
  45. package/dist/standalone/atomic-ui-blocks.js +832 -1622
  46. package/dist/standalone/atomic-ui-blocks.js.map +4 -4
  47. package/dist/standalone/index.html +18 -26
  48. package/package.json +3 -3
  49. package/specimen/index.html +18 -26
  50. package/dist/chunk-53V2GY6L.js.map +0 -1
  51. package/dist/chunk-B6I3GVJ5.js.map +0 -1
  52. package/dist/chunk-FNGN2F6Y.js.map +0 -1
  53. package/dist/chunk-H262HKSL.js.map +0 -1
  54. package/dist/chunk-IT2NA25D.js +0 -571
  55. package/dist/chunk-IT2NA25D.js.map +0 -1
  56. package/dist/chunk-MMADM6OW.js +0 -782
  57. package/dist/chunk-MMADM6OW.js.map +0 -1
  58. package/dist/chunk-NHWD2LUR.js +0 -255
  59. package/dist/chunk-NHWD2LUR.js.map +0 -1
  60. package/dist/chunk-R7SSIE2E.js +0 -362
  61. package/dist/chunk-R7SSIE2E.js.map +0 -1
  62. package/dist/chunk-WIVKJL64.js.map +0 -1
  63. package/dist/chunk-WTVF3JRL.js.map +0 -1
  64. package/dist/chunk-XB6FD4SF.js +0 -438
  65. package/dist/chunk-XB6FD4SF.js.map +0 -1
  66. package/dist/chunk-YXMXLVK7.js +0 -230
  67. package/dist/chunk-YXMXLVK7.js.map +0 -1
  68. package/dist/chunk-ZD75GU6J.js +0 -75
  69. package/dist/chunk-ZD75GU6J.js.map +0 -1
  70. package/dist/chunk-ZODL5HD4.js +0 -535
  71. package/dist/chunk-ZODL5HD4.js.map +0 -1
  72. package/dist/components/card-grid.d.ts +0 -72
  73. package/dist/components/card-grid.js +0 -7
  74. package/dist/components/card-grid.js.map +0 -1
  75. package/dist/components/property.d.ts +0 -389
  76. package/dist/components/property.js +0 -17
  77. package/dist/components/property.js.map +0 -1
  78. package/dist/components/scene.d.ts +0 -138
  79. package/dist/components/scene.js +0 -7
  80. package/dist/components/scene.js.map +0 -1
  81. package/dist/components/scrubber.d.ts +0 -86
  82. package/dist/components/scrubber.js +0 -7
  83. package/dist/components/scrubber.js.map +0 -1
@@ -1,211 +1,5 @@
1
1
  import { type TemplateResult } from 'lit';
2
2
  import { ImpaktElement } from '@atomic-ui/ui';
3
- /**
4
- * Slides that move sideways: house types, reviews, the rooms of a show home.
5
- * Put anything in it, one child to a slide.
6
- *
7
- * It follows the ARIA carousel pattern. Each slide is named "2 of 6", a live
8
- * region says where you are, and it can be moved with the buttons, the dots,
9
- * the arrow keys, a swipe or a scroll.
10
- *
11
- * **It moves only when asked.** Autoplay is off by default. Turned on, it has a
12
- * Pause button, stops while pointed at or focused, and never runs for someone
13
- * who has asked for reduced motion (2.2.2).
14
- *
15
- * @category content
16
- * @icon carousel
17
- * @slot - The slides, one child to each.
18
- */
19
- export declare class ImpaktCarousel extends ImpaktElement {
20
- static properties: {
21
- label: {
22
- type: StringConstructor;
23
- };
24
- perView: {
25
- type: StringConstructor;
26
- reflect: boolean;
27
- attribute: string;
28
- };
29
- arrows: {
30
- type: StringConstructor;
31
- reflect: boolean;
32
- };
33
- autoplay: {
34
- type: BooleanConstructor;
35
- reflect: boolean;
36
- };
37
- seconds: {
38
- type: NumberConstructor;
39
- };
40
- spaceAbove: {
41
- type: StringConstructor;
42
- reflect: boolean;
43
- attribute: string;
44
- };
45
- spaceBelow: {
46
- type: StringConstructor;
47
- reflect: boolean;
48
- attribute: string;
49
- };
50
- };
51
- /** What the slides are, for a screen reader, such as "House types". */
52
- label: string;
53
- /** How many slides show at once on a wide screen. A tablet shows at most two, and a phone one. */
54
- perView: '1' | '2' | '3';
55
- /** Where the arrows sit: under the slides, or level with the heading above them. */
56
- arrows: 'below' | 'top';
57
- /** Move on by itself. People can pause it, and it never runs for those who ask for less motion. */
58
- autoplay: boolean;
59
- /** How long each slide stays, when it moves by itself. */
60
- seconds: number;
61
- spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
62
- spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
63
- private index;
64
- private count;
65
- /** How many slides fit right now, which the width decides. */
66
- private visible;
67
- /** Where a button or dot is taking the row. Until it arrives, the scroll position is not the truth. */
68
- private heading;
69
- private settle;
70
- private observer;
71
- private paused;
72
- private held;
73
- private timer;
74
- constructor();
75
- static styles: import("lit").CSSResult[];
76
- private get track();
77
- private get slides();
78
- /** The last slide that can sit at the start of the row. */
79
- private get last();
80
- /** Count what actually fits, and keep the row on a real stop when that changes. */
81
- private measure;
82
- private onSlots;
83
- private go;
84
- private onScroll;
85
- private onKey;
86
- private get canPlay();
87
- private restart;
88
- private hold;
89
- private togglePause;
90
- protected firstUpdated(): void;
91
- protected updated(changed: Map<string, unknown>): void;
92
- connectedCallback(): void;
93
- disconnectedCallback(): void;
94
- render(): TemplateResult;
95
- }
96
- /** One picture in a gallery. */
97
- export interface GalleryItem {
98
- id?: string;
99
- src: string;
100
- alt: string;
101
- caption?: string;
102
- }
103
- /**
104
- * How far a gallery picture stretches so that no row ends in a gap, on a wide
105
- * container and on a narrow one. The large first picture keeps its own size.
106
- */
107
- export declare function gallerySpan(index: number, count: number, layout: 'feature' | 'grid'): {
108
- wide: number;
109
- narrow: number;
110
- rows: number;
111
- };
112
- /**
113
- * A set of pictures, with the first shown large, that open full screen one at
114
- * a time: the rooms of a show home, or views of a development.
115
- *
116
- * Each picture is a button. The full-screen view is a real modal dialog, so
117
- * focus stays inside it, Escape closes it and focus returns to the picture that
118
- * opened it. The arrow keys move between pictures.
119
- *
120
- * @category media
121
- * @icon gallery
122
- */
123
- export declare class ImpaktGallery extends ImpaktElement {
124
- static properties: {
125
- items: {
126
- type: ArrayConstructor;
127
- };
128
- layout: {
129
- type: StringConstructor;
130
- reflect: boolean;
131
- };
132
- label: {
133
- type: StringConstructor;
134
- };
135
- spaceAbove: {
136
- type: StringConstructor;
137
- reflect: boolean;
138
- attribute: string;
139
- };
140
- spaceBelow: {
141
- type: StringConstructor;
142
- reflect: boolean;
143
- attribute: string;
144
- };
145
- };
146
- items: GalleryItem[];
147
- /** One large picture with smaller ones beside it, or an even grid. */
148
- layout: 'feature' | 'grid';
149
- /** What the pictures are of, for a screen reader. */
150
- label: string;
151
- spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
152
- spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
153
- private shown;
154
- private opener;
155
- constructor();
156
- static styles: import("lit").CSSResult[];
157
- private get dialog();
158
- private open;
159
- private close;
160
- private onClosed;
161
- private step;
162
- private onKey;
163
- render(): TemplateResult;
164
- }
165
- /** One accreditation or partner. */
166
- export interface LogoItem {
167
- id?: string;
168
- src: string;
169
- alt: string;
170
- href?: string;
171
- }
172
- /**
173
- * A row of logos that lends trust: accreditations, awards, lenders, partners.
174
- *
175
- * The logos are drawn quietly so they do not fight the page, and come to full
176
- * colour when pointed at. Each one is named by its alt text.
177
- *
178
- * @category content
179
- * @icon logos
180
- */
181
- export declare class ImpaktLogoCloud extends ImpaktElement {
182
- static properties: {
183
- heading: {
184
- type: StringConstructor;
185
- };
186
- items: {
187
- type: ArrayConstructor;
188
- };
189
- spaceAbove: {
190
- type: StringConstructor;
191
- reflect: boolean;
192
- attribute: string;
193
- };
194
- spaceBelow: {
195
- type: StringConstructor;
196
- reflect: boolean;
197
- attribute: string;
198
- };
199
- };
200
- /** A line above the logos, such as "Accredited by". */
201
- heading: string;
202
- items: LogoItem[];
203
- spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
204
- spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
205
- constructor();
206
- static styles: import("lit").CSSResult[];
207
- render(): TemplateResult;
208
- }
209
3
  /** One step in a process. */
210
4
  export interface StepItem {
211
5
  id?: string;
@@ -290,291 +84,8 @@ export declare class ImpaktSteps extends ImpaktElement {
290
84
  static styles: import("lit").CSSResult[];
291
85
  render(): TemplateResult;
292
86
  }
293
- /**
294
- * A picture beside words, the working section of a marketing page: a heading,
295
- * a line of text, a short list of points and an action.
296
- *
297
- * On a phone the words come first, whichever side the picture is on, so the
298
- * reading order never depends on the layout.
299
- *
300
- * @category layout
301
- * @icon split
302
- * @role heading
303
- * @slot actions - Buttons and links under the words.
304
- */
305
- export declare class ImpaktMediaSplit extends ImpaktElement {
306
- static properties: {
307
- eyebrow: {
308
- type: StringConstructor;
309
- };
310
- heading: {
311
- type: StringConstructor;
312
- };
313
- lead: {
314
- type: StringConstructor;
315
- };
316
- points: {
317
- type: ArrayConstructor;
318
- };
319
- level: {
320
- type: NumberConstructor;
321
- reflect: boolean;
322
- };
323
- imageSrc: {
324
- type: StringConstructor;
325
- attribute: string;
326
- };
327
- imageAlt: {
328
- type: StringConstructor;
329
- attribute: string;
330
- };
331
- imageSide: {
332
- type: StringConstructor;
333
- reflect: boolean;
334
- attribute: string;
335
- };
336
- insetSrc: {
337
- type: StringConstructor;
338
- attribute: string;
339
- };
340
- insetAlt: {
341
- type: StringConstructor;
342
- attribute: string;
343
- };
344
- ratio: {
345
- type: StringConstructor;
346
- reflect: boolean;
347
- };
348
- spaceAbove: {
349
- type: StringConstructor;
350
- reflect: boolean;
351
- attribute: string;
352
- };
353
- spaceBelow: {
354
- type: StringConstructor;
355
- reflect: boolean;
356
- attribute: string;
357
- };
358
- };
359
- eyebrow: string;
360
- heading: string;
361
- /** A sentence or two under the heading. */
362
- lead: string;
363
- /** Short points, each drawn with a tick. */
364
- points: string[];
365
- /** The heading's level in the page. */
366
- level: 2 | 3;
367
- imageSrc: string;
368
- /** What the picture shows. Leave empty only when it is decoration. */
369
- imageAlt: string;
370
- /** A smaller picture overlapping the corner of the main one. */
371
- insetSrc: string;
372
- insetAlt: string;
373
- /** Which side the picture sits on, on a wide screen. */
374
- imageSide: 'start' | 'end';
375
- /** The picture's shape. */
376
- ratio: '4:3' | '1:1' | '3:2' | '16:9';
377
- spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
378
- spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
379
- constructor();
380
- static styles: import("lit").CSSResult[];
381
- render(): TemplateResult;
382
- }
383
- /**
384
- * The closing push of a page: a rounded panel with a heading, a line of text
385
- * and the page's main action, set apart from everything above it.
386
- *
387
- * @category layout
388
- * @icon banner
389
- * @slot actions - The buttons.
390
- */
391
- export declare class ImpaktCtaBanner extends ImpaktElement {
392
- static properties: {
393
- heading: {
394
- type: StringConstructor;
395
- };
396
- lead: {
397
- type: StringConstructor;
398
- };
399
- tone: {
400
- type: StringConstructor;
401
- reflect: boolean;
402
- };
403
- align: {
404
- type: StringConstructor;
405
- reflect: boolean;
406
- };
407
- imageSrc: {
408
- type: StringConstructor;
409
- attribute: string;
410
- };
411
- imageAlt: {
412
- type: StringConstructor;
413
- attribute: string;
414
- };
415
- headingLevel: {
416
- type: NumberConstructor;
417
- attribute: string;
418
- };
419
- spaceAbove: {
420
- type: StringConstructor;
421
- reflect: boolean;
422
- attribute: string;
423
- };
424
- spaceBelow: {
425
- type: StringConstructor;
426
- reflect: boolean;
427
- attribute: string;
428
- };
429
- };
430
- heading: string;
431
- lead: string;
432
- /** The panel's colour. */
433
- tone: 'brand' | 'subtle' | 'card';
434
- /** Words beside the action, centred above it, or above it on the left. */
435
- align: 'split' | 'center' | 'stacked';
436
- /** A photo behind the words, with a scrim so they stay readable. */
437
- imageSrc: string;
438
- imageAlt: string;
439
- headingLevel: 2 | 3;
440
- spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
441
- spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
442
- constructor();
443
- static styles: import("lit").CSSResult[];
444
- render(): TemplateResult;
445
- }
446
- /** One review. */
447
- export interface ReviewItem {
448
- id?: string;
449
- quote: string;
450
- person: string;
451
- about?: string;
452
- rating?: number;
453
- avatarSrc?: string;
454
- }
455
- /**
456
- * What customers say, in cards, with their rating and a face or their
457
- * initials, and a summary line above them.
458
- *
459
- * A rating is said in words as well as drawn in stars.
460
- *
461
- * @category content
462
- * @icon reviews
463
- */
464
- export declare class ImpaktReviews extends ImpaktElement {
465
- static properties: {
466
- summary: {
467
- type: StringConstructor;
468
- };
469
- rating: {
470
- type: NumberConstructor;
471
- };
472
- items: {
473
- type: ArrayConstructor;
474
- };
475
- columns: {
476
- type: StringConstructor;
477
- reflect: boolean;
478
- };
479
- spaceAbove: {
480
- type: StringConstructor;
481
- reflect: boolean;
482
- attribute: string;
483
- };
484
- spaceBelow: {
485
- type: StringConstructor;
486
- reflect: boolean;
487
- attribute: string;
488
- };
489
- };
490
- /** A line above the reviews, such as "4.8 from 312 buyers". */
491
- summary: string;
492
- /** The overall rating out of 5, drawn beside the summary. */
493
- rating: number | undefined;
494
- items: ReviewItem[];
495
- columns: 'two' | 'three';
496
- spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
497
- spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
498
- constructor();
499
- static styles: import("lit").CSSResult[];
500
- render(): TemplateResult;
501
- }
502
- /**
503
- * An email sign-up in one line: release dates, price lists, launch news.
504
- *
505
- * The field has a real label, the browser checks the address, and what happens
506
- * with the address is said beside the button. The app receives the address and
507
- * says when it is done.
508
- *
509
- * @category form
510
- * @icon mail
511
- * @fires {CustomEvent<{ email: string }>} impakt-submit - When a valid address is sent. The address is in detail.email.
512
- */
513
- export declare class ImpaktNewsletter extends ImpaktElement {
514
- static properties: {
515
- heading: {
516
- type: StringConstructor;
517
- };
518
- lead: {
519
- type: StringConstructor;
520
- };
521
- label: {
522
- type: StringConstructor;
523
- };
524
- buttonText: {
525
- type: StringConstructor;
526
- attribute: string;
527
- };
528
- smallPrint: {
529
- type: StringConstructor;
530
- attribute: string;
531
- };
532
- doneText: {
533
- type: StringConstructor;
534
- attribute: string;
535
- };
536
- headingLevel: {
537
- type: NumberConstructor;
538
- attribute: string;
539
- };
540
- spaceAbove: {
541
- type: StringConstructor;
542
- reflect: boolean;
543
- attribute: string;
544
- };
545
- spaceBelow: {
546
- type: StringConstructor;
547
- reflect: boolean;
548
- attribute: string;
549
- };
550
- };
551
- heading: string;
552
- lead: string;
553
- /** The field's label. */
554
- label: string;
555
- buttonText: string;
556
- /** What happens with the address, such as how to stop the emails. */
557
- smallPrint: string;
558
- /** What is said once the address is sent. */
559
- doneText: string;
560
- headingLevel: 2 | 3;
561
- spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
562
- spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
563
- private done;
564
- constructor();
565
- static styles: import("lit").CSSResult[];
566
- private submit;
567
- render(): TemplateResult;
568
- }
569
87
  declare global {
570
88
  interface HTMLElementTagNameMap {
571
- 'impakt-carousel': ImpaktCarousel;
572
- 'impakt-gallery': ImpaktGallery;
573
- 'impakt-logo-cloud': ImpaktLogoCloud;
574
89
  'impakt-steps': ImpaktSteps;
575
- 'impakt-media-split': ImpaktMediaSplit;
576
- 'impakt-cta-banner': ImpaktCtaBanner;
577
- 'impakt-reviews': ImpaktReviews;
578
- 'impakt-newsletter': ImpaktNewsletter;
579
90
  }
580
91
  }
@@ -1,23 +1,7 @@
1
1
  import {
2
- ImpaktCarousel,
3
- ImpaktCtaBanner,
4
- ImpaktGallery,
5
- ImpaktLogoCloud,
6
- ImpaktMediaSplit,
7
- ImpaktNewsletter,
8
- ImpaktReviews,
9
- ImpaktSteps,
10
- gallerySpan
11
- } from "../chunk-MMADM6OW.js";
2
+ ImpaktSteps
3
+ } from "../chunk-OHXEZPBB.js";
12
4
  export {
13
- ImpaktCarousel,
14
- ImpaktCtaBanner,
15
- ImpaktGallery,
16
- ImpaktLogoCloud,
17
- ImpaktMediaSplit,
18
- ImpaktNewsletter,
19
- ImpaktReviews,
20
- ImpaktSteps,
21
- gallerySpan
5
+ ImpaktSteps
22
6
  };
23
7
  //# sourceMappingURL=organisms.js.map