@atomic-ui/ui 0.1.5 → 0.2.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 +17 -3
- package/custom-elements.json +24569 -0
- package/dist/base/ImpktElement.d.ts +14 -0
- package/dist/base/locale.d.ts +8 -0
- package/dist/base/say.d.ts +1 -0
- package/dist/base/styles.d.ts +1 -1
- package/dist/base/tokens.d.ts +28 -2
- package/dist/{chunk-KWURASAB.js → chunk-26O27BQS.js} +3 -3
- package/dist/chunk-2CFVV2NZ.js +494 -0
- package/dist/chunk-2CFVV2NZ.js.map +1 -0
- package/dist/chunk-3IGNZTJU.js +14 -0
- package/dist/chunk-3IGNZTJU.js.map +1 -0
- package/dist/{chunk-DR3SJ7ZV.js → chunk-3IQ73WNW.js} +3 -3
- package/dist/{chunk-AXQ5YBN2.js → chunk-4X723QBD.js} +135 -10
- package/dist/chunk-4X723QBD.js.map +1 -0
- package/dist/{chunk-OFAVRPRK.js → chunk-6YYAOKNI.js} +2 -2
- package/dist/chunk-6YYAOKNI.js.map +1 -0
- package/dist/{chunk-DI2CJ3MZ.js → chunk-7AJN2TIS.js} +2 -2
- package/dist/chunk-7BSZPUE3.js +53 -0
- package/dist/chunk-7BSZPUE3.js.map +1 -0
- package/dist/{chunk-IBTOZOGI.js → chunk-7OXTZJR4.js} +2 -2
- package/dist/chunk-7XEPNEVQ.js +264 -0
- package/dist/chunk-7XEPNEVQ.js.map +1 -0
- package/dist/{chunk-5NUF7ZQA.js → chunk-D6C7XEY4.js} +64 -3
- package/dist/chunk-D6C7XEY4.js.map +1 -0
- package/dist/{chunk-4JKUAA6K.js → chunk-E2VBUWJ4.js} +53 -14
- package/dist/chunk-E2VBUWJ4.js.map +1 -0
- package/dist/{chunk-57P4WO4Y.js → chunk-E3XJK7MY.js} +38 -23
- package/dist/chunk-E3XJK7MY.js.map +1 -0
- package/dist/{chunk-6UDDZQDK.js → chunk-EDSZI227.js} +3 -3
- package/dist/chunk-EDSZI227.js.map +1 -0
- package/dist/{chunk-3OSL2HMN.js → chunk-FFCIY7NM.js} +9 -6
- package/dist/chunk-FFCIY7NM.js.map +1 -0
- package/dist/{chunk-4AJPS5AU.js → chunk-FJRHZA3C.js} +16 -6
- package/dist/chunk-FJRHZA3C.js.map +1 -0
- package/dist/{chunk-JPEWRJSQ.js → chunk-GQDUHZE3.js} +3 -3
- package/dist/chunk-HYPPG4NF.js +553 -0
- package/dist/chunk-HYPPG4NF.js.map +1 -0
- package/dist/chunk-J4JULXUG.js +249 -0
- package/dist/chunk-J4JULXUG.js.map +1 -0
- package/dist/{chunk-CFGLOYWW.js → chunk-KFD4O7VA.js} +4 -2
- package/dist/chunk-KFD4O7VA.js.map +1 -0
- package/dist/{chunk-LLRJU7XE.js → chunk-MVEFM5QI.js} +6 -6
- package/dist/chunk-MVEFM5QI.js.map +1 -0
- package/dist/{chunk-6GKI67P7.js → chunk-NCASAXQT.js} +7 -3
- package/dist/chunk-NCASAXQT.js.map +1 -0
- package/dist/{chunk-H6L3FSQY.js → chunk-NKTMMJYD.js} +7 -6
- package/dist/chunk-NKTMMJYD.js.map +1 -0
- package/dist/{chunk-QELX47AP.js → chunk-OB7WULFK.js} +50 -27
- package/dist/chunk-OB7WULFK.js.map +1 -0
- package/dist/chunk-OHDPGIJ3.js +428 -0
- package/dist/chunk-OHDPGIJ3.js.map +1 -0
- package/dist/{chunk-TZD7IVVQ.js → chunk-OLLZFNO6.js} +13 -5
- package/dist/chunk-OLLZFNO6.js.map +1 -0
- package/dist/{chunk-5RVMMKMO.js → chunk-OMJMUFOW.js} +3 -3
- package/dist/{chunk-U2S7OESF.js → chunk-QB2KMV6S.js} +56 -15
- package/dist/chunk-QB2KMV6S.js.map +1 -0
- package/dist/{chunk-QH46SOPJ.js → chunk-R67PDFKE.js} +54 -11
- package/dist/chunk-R67PDFKE.js.map +1 -0
- package/dist/chunk-RZSZQMSE.js +236 -0
- package/dist/chunk-RZSZQMSE.js.map +1 -0
- package/dist/{chunk-6MLXFFH4.js → chunk-TGT7J4EG.js} +3 -3
- package/dist/chunk-TGT7J4EG.js.map +1 -0
- package/dist/{chunk-S3EQO33M.js → chunk-UCHJCUYI.js} +6 -4
- package/dist/chunk-UCHJCUYI.js.map +1 -0
- package/dist/chunk-UHLRXI6J.js +453 -0
- package/dist/chunk-UHLRXI6J.js.map +1 -0
- package/dist/chunk-UNVL3CNM.js +725 -0
- package/dist/chunk-UNVL3CNM.js.map +1 -0
- package/dist/{chunk-2RBYVWZT.js → chunk-WDDWWCHN.js} +5 -3
- package/dist/chunk-WDDWWCHN.js.map +1 -0
- package/dist/chunk-WFKSOM6O.js +498 -0
- package/dist/chunk-WFKSOM6O.js.map +1 -0
- package/dist/{chunk-HWNY6U5F.js → chunk-XEJMFFIM.js} +4 -3
- package/dist/chunk-XEJMFFIM.js.map +1 -0
- package/dist/{chunk-ZDYTNFQI.js → chunk-XJXCTGDR.js} +16 -6
- package/dist/chunk-XJXCTGDR.js.map +1 -0
- package/dist/{chunk-G6UVYMA6.js → chunk-YD6IZ2C5.js} +2 -2
- package/dist/chunk-YK5QI57J.js +396 -0
- package/dist/chunk-YK5QI57J.js.map +1 -0
- package/dist/components/accordion.js +2 -2
- package/dist/components/alert.js +2 -2
- package/dist/components/app-ui.d.ts +421 -0
- package/dist/components/app-ui.js +27 -0
- package/dist/components/app-ui.js.map +1 -0
- package/dist/components/blocks.d.ts +2 -2
- package/dist/components/blocks.js +3 -3
- package/dist/components/button.d.ts +14 -0
- package/dist/components/button.js +3 -3
- package/dist/components/changelog.d.ts +386 -0
- package/dist/components/changelog.js +25 -0
- package/dist/components/changelog.js.map +1 -0
- package/dist/components/checkbox-group.js +3 -3
- package/dist/components/checkbox.js +3 -3
- package/dist/components/date-input.js +3 -3
- package/dist/components/dialog.js +2 -2
- package/dist/components/estimator.d.ts +246 -0
- package/dist/components/estimator.js +16 -0
- package/dist/components/estimator.js.map +1 -0
- package/dist/components/fieldset.js +2 -2
- package/dist/components/grid.d.ts +2 -2
- package/dist/components/grid.js +2 -2
- package/dist/components/help.js +2 -2
- package/dist/components/icon.d.ts +2 -0
- package/dist/components/icon.js +2 -2
- package/dist/components/journey.d.ts +433 -0
- package/dist/components/journey.js +22 -0
- package/dist/components/journey.js.map +1 -0
- package/dist/components/layout.d.ts +34 -5
- package/dist/components/layout.js +2 -2
- package/dist/components/link.js +3 -3
- package/dist/components/list.d.ts +50 -0
- package/dist/components/list.js +8 -0
- package/dist/components/list.js.map +1 -0
- package/dist/components/marketing.d.ts +119 -6
- package/dist/components/marketing.js +7 -3
- package/dist/components/media.d.ts +10 -0
- package/dist/components/media.js +2 -2
- package/dist/components/navigation.d.ts +25 -2
- package/dist/components/navigation.js +3 -3
- package/dist/components/organisms.d.ts +559 -0
- package/dist/components/organisms.js +25 -0
- package/dist/components/organisms.js.map +1 -0
- package/dist/components/page.d.ts +14 -3
- package/dist/components/page.js +2 -2
- package/dist/components/price.d.ts +6 -1
- package/dist/components/price.js +3 -2
- package/dist/components/progress.js +2 -2
- package/dist/components/property.d.ts +389 -0
- package/dist/components/property.js +20 -0
- package/dist/components/property.js.map +1 -0
- package/dist/components/radio-group.js +3 -3
- package/dist/components/scene.d.ts +138 -0
- package/dist/components/scene.js +8 -0
- package/dist/components/scene.js.map +1 -0
- package/dist/components/scrubber.d.ts +86 -0
- package/dist/components/scrubber.js +8 -0
- package/dist/components/scrubber.js.map +1 -0
- package/dist/components/select.js +3 -3
- package/dist/components/selling.d.ts +407 -0
- package/dist/components/selling.js +25 -0
- package/dist/components/selling.js.map +1 -0
- package/dist/components/site.d.ts +283 -0
- package/dist/components/site.js +20 -0
- package/dist/components/site.js.map +1 -0
- package/dist/components/summary-list.js +2 -2
- package/dist/components/table.js +2 -2
- package/dist/components/text-input.js +3 -3
- package/dist/components/textarea.d.ts +13 -0
- package/dist/components/textarea.js +3 -3
- package/dist/index.d.ts +13 -2
- package/dist/index.js +180 -47
- package/package.json +11 -4
- package/dist/chunk-2RBYVWZT.js.map +0 -1
- package/dist/chunk-3OSL2HMN.js.map +0 -1
- package/dist/chunk-4AJPS5AU.js.map +0 -1
- package/dist/chunk-4JKUAA6K.js.map +0 -1
- package/dist/chunk-57P4WO4Y.js.map +0 -1
- package/dist/chunk-5NUF7ZQA.js.map +0 -1
- package/dist/chunk-6GKI67P7.js.map +0 -1
- package/dist/chunk-6MLXFFH4.js.map +0 -1
- package/dist/chunk-6UDDZQDK.js.map +0 -1
- package/dist/chunk-AXQ5YBN2.js.map +0 -1
- package/dist/chunk-CFGLOYWW.js.map +0 -1
- package/dist/chunk-H6L3FSQY.js.map +0 -1
- package/dist/chunk-HWNY6U5F.js.map +0 -1
- package/dist/chunk-LLRJU7XE.js.map +0 -1
- package/dist/chunk-OFAVRPRK.js.map +0 -1
- package/dist/chunk-QELX47AP.js.map +0 -1
- package/dist/chunk-QH46SOPJ.js.map +0 -1
- package/dist/chunk-S3EQO33M.js.map +0 -1
- package/dist/chunk-TZD7IVVQ.js.map +0 -1
- package/dist/chunk-U2S7OESF.js.map +0 -1
- package/dist/chunk-ZDYTNFQI.js.map +0 -1
- /package/dist/{chunk-KWURASAB.js.map → chunk-26O27BQS.js.map} +0 -0
- /package/dist/{chunk-DR3SJ7ZV.js.map → chunk-3IQ73WNW.js.map} +0 -0
- /package/dist/{chunk-DI2CJ3MZ.js.map → chunk-7AJN2TIS.js.map} +0 -0
- /package/dist/{chunk-IBTOZOGI.js.map → chunk-7OXTZJR4.js.map} +0 -0
- /package/dist/{chunk-JPEWRJSQ.js.map → chunk-GQDUHZE3.js.map} +0 -0
- /package/dist/{chunk-5RVMMKMO.js.map → chunk-OMJMUFOW.js.map} +0 -0
- /package/dist/{chunk-G6UVYMA6.js.map → chunk-YD6IZ2C5.js.map} +0 -0
|
@@ -0,0 +1,559 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { ImpktElement } from '../base/ImpktElement';
|
|
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 ImpktCarousel extends ImpktElement {
|
|
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 ImpktGallery extends ImpktElement {
|
|
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 ImpktLogoCloud extends ImpktElement {
|
|
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
|
+
/** One step in a process. */
|
|
210
|
+
export interface StepItem {
|
|
211
|
+
id?: string;
|
|
212
|
+
heading: string;
|
|
213
|
+
text?: string;
|
|
214
|
+
/** A short line above the heading, such as how long the step takes. */
|
|
215
|
+
meta?: string;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* A process, in order, joined by a line: how buying a home works, what happens
|
|
219
|
+
* after you apply.
|
|
220
|
+
*
|
|
221
|
+
* It is an ordered list, so a screen reader says the number and how many there
|
|
222
|
+
* are. The numbers are drawn from the list, not typed in.
|
|
223
|
+
*
|
|
224
|
+
* @category content
|
|
225
|
+
* @icon steps
|
|
226
|
+
*/
|
|
227
|
+
export declare class ImpktSteps extends ImpktElement {
|
|
228
|
+
static properties: {
|
|
229
|
+
items: {
|
|
230
|
+
type: ArrayConstructor;
|
|
231
|
+
};
|
|
232
|
+
orientation: {
|
|
233
|
+
type: StringConstructor;
|
|
234
|
+
reflect: boolean;
|
|
235
|
+
};
|
|
236
|
+
look: {
|
|
237
|
+
type: StringConstructor;
|
|
238
|
+
reflect: boolean;
|
|
239
|
+
};
|
|
240
|
+
headingLevel: {
|
|
241
|
+
type: NumberConstructor;
|
|
242
|
+
attribute: string;
|
|
243
|
+
};
|
|
244
|
+
spaceAbove: {
|
|
245
|
+
type: StringConstructor;
|
|
246
|
+
reflect: boolean;
|
|
247
|
+
attribute: string;
|
|
248
|
+
};
|
|
249
|
+
spaceBelow: {
|
|
250
|
+
type: StringConstructor;
|
|
251
|
+
reflect: boolean;
|
|
252
|
+
attribute: string;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
items: StepItem[];
|
|
256
|
+
/** Across the page, or down it. Across becomes down on a narrow screen. */
|
|
257
|
+
orientation: 'horizontal' | 'vertical';
|
|
258
|
+
/**
|
|
259
|
+
* `numbered` joins numbered circles with a line. `ruled` gives each step a
|
|
260
|
+
* coloured rule along its top, in the brand's chart colours, as a project
|
|
261
|
+
* plan's phases are drawn. The steps are an ordered list either way.
|
|
262
|
+
*/
|
|
263
|
+
look: 'numbered' | 'ruled';
|
|
264
|
+
/** The level of each step's heading. One below the heading above the steps. */
|
|
265
|
+
headingLevel: 2 | 3 | 4;
|
|
266
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
267
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
268
|
+
constructor();
|
|
269
|
+
static styles: import("lit").CSSResult[];
|
|
270
|
+
render(): TemplateResult;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* A picture beside words, the working section of a marketing page: a heading,
|
|
274
|
+
* a line of text, a short list of points and an action.
|
|
275
|
+
*
|
|
276
|
+
* On a phone the words come first, whichever side the picture is on, so the
|
|
277
|
+
* reading order never depends on the layout.
|
|
278
|
+
*
|
|
279
|
+
* @category layout
|
|
280
|
+
* @icon split
|
|
281
|
+
* @role heading
|
|
282
|
+
* @slot actions - Buttons and links under the words.
|
|
283
|
+
*/
|
|
284
|
+
export declare class ImpktMediaSplit extends ImpktElement {
|
|
285
|
+
static properties: {
|
|
286
|
+
eyebrow: {
|
|
287
|
+
type: StringConstructor;
|
|
288
|
+
};
|
|
289
|
+
heading: {
|
|
290
|
+
type: StringConstructor;
|
|
291
|
+
};
|
|
292
|
+
lead: {
|
|
293
|
+
type: StringConstructor;
|
|
294
|
+
};
|
|
295
|
+
points: {
|
|
296
|
+
type: ArrayConstructor;
|
|
297
|
+
};
|
|
298
|
+
level: {
|
|
299
|
+
type: NumberConstructor;
|
|
300
|
+
reflect: boolean;
|
|
301
|
+
};
|
|
302
|
+
imageSrc: {
|
|
303
|
+
type: StringConstructor;
|
|
304
|
+
attribute: string;
|
|
305
|
+
};
|
|
306
|
+
imageAlt: {
|
|
307
|
+
type: StringConstructor;
|
|
308
|
+
attribute: string;
|
|
309
|
+
};
|
|
310
|
+
imageSide: {
|
|
311
|
+
type: StringConstructor;
|
|
312
|
+
reflect: boolean;
|
|
313
|
+
attribute: string;
|
|
314
|
+
};
|
|
315
|
+
insetSrc: {
|
|
316
|
+
type: StringConstructor;
|
|
317
|
+
attribute: string;
|
|
318
|
+
};
|
|
319
|
+
insetAlt: {
|
|
320
|
+
type: StringConstructor;
|
|
321
|
+
attribute: string;
|
|
322
|
+
};
|
|
323
|
+
ratio: {
|
|
324
|
+
type: StringConstructor;
|
|
325
|
+
reflect: boolean;
|
|
326
|
+
};
|
|
327
|
+
spaceAbove: {
|
|
328
|
+
type: StringConstructor;
|
|
329
|
+
reflect: boolean;
|
|
330
|
+
attribute: string;
|
|
331
|
+
};
|
|
332
|
+
spaceBelow: {
|
|
333
|
+
type: StringConstructor;
|
|
334
|
+
reflect: boolean;
|
|
335
|
+
attribute: string;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
eyebrow: string;
|
|
339
|
+
heading: string;
|
|
340
|
+
/** A sentence or two under the heading. */
|
|
341
|
+
lead: string;
|
|
342
|
+
/** Short points, each drawn with a tick. */
|
|
343
|
+
points: string[];
|
|
344
|
+
/** The heading's level in the page. */
|
|
345
|
+
level: 2 | 3;
|
|
346
|
+
imageSrc: string;
|
|
347
|
+
/** What the picture shows. Leave empty only when it is decoration. */
|
|
348
|
+
imageAlt: string;
|
|
349
|
+
/** A smaller picture overlapping the corner of the main one. */
|
|
350
|
+
insetSrc: string;
|
|
351
|
+
insetAlt: string;
|
|
352
|
+
/** Which side the picture sits on, on a wide screen. */
|
|
353
|
+
imageSide: 'start' | 'end';
|
|
354
|
+
/** The picture's shape. */
|
|
355
|
+
ratio: '4:3' | '1:1' | '3:2' | '16:9';
|
|
356
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
357
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
358
|
+
constructor();
|
|
359
|
+
static styles: import("lit").CSSResult[];
|
|
360
|
+
render(): TemplateResult;
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* The closing push of a page: a rounded panel with a heading, a line of text
|
|
364
|
+
* and the page's main action, set apart from everything above it.
|
|
365
|
+
*
|
|
366
|
+
* @category layout
|
|
367
|
+
* @icon banner
|
|
368
|
+
* @slot actions - The buttons.
|
|
369
|
+
*/
|
|
370
|
+
export declare class ImpktCtaBanner extends ImpktElement {
|
|
371
|
+
static properties: {
|
|
372
|
+
heading: {
|
|
373
|
+
type: StringConstructor;
|
|
374
|
+
};
|
|
375
|
+
lead: {
|
|
376
|
+
type: StringConstructor;
|
|
377
|
+
};
|
|
378
|
+
tone: {
|
|
379
|
+
type: StringConstructor;
|
|
380
|
+
reflect: boolean;
|
|
381
|
+
};
|
|
382
|
+
align: {
|
|
383
|
+
type: StringConstructor;
|
|
384
|
+
reflect: boolean;
|
|
385
|
+
};
|
|
386
|
+
imageSrc: {
|
|
387
|
+
type: StringConstructor;
|
|
388
|
+
attribute: string;
|
|
389
|
+
};
|
|
390
|
+
imageAlt: {
|
|
391
|
+
type: StringConstructor;
|
|
392
|
+
attribute: string;
|
|
393
|
+
};
|
|
394
|
+
headingLevel: {
|
|
395
|
+
type: NumberConstructor;
|
|
396
|
+
attribute: string;
|
|
397
|
+
};
|
|
398
|
+
spaceAbove: {
|
|
399
|
+
type: StringConstructor;
|
|
400
|
+
reflect: boolean;
|
|
401
|
+
attribute: string;
|
|
402
|
+
};
|
|
403
|
+
spaceBelow: {
|
|
404
|
+
type: StringConstructor;
|
|
405
|
+
reflect: boolean;
|
|
406
|
+
attribute: string;
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
heading: string;
|
|
410
|
+
lead: string;
|
|
411
|
+
/** The panel's colour. */
|
|
412
|
+
tone: 'brand' | 'subtle' | 'card';
|
|
413
|
+
/** Words beside the action, centred above it, or above it on the left. */
|
|
414
|
+
align: 'split' | 'center' | 'stacked';
|
|
415
|
+
/** A photo behind the words, with a scrim so they stay readable. */
|
|
416
|
+
imageSrc: string;
|
|
417
|
+
imageAlt: string;
|
|
418
|
+
headingLevel: 2 | 3;
|
|
419
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
420
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
421
|
+
constructor();
|
|
422
|
+
static styles: import("lit").CSSResult[];
|
|
423
|
+
render(): TemplateResult;
|
|
424
|
+
}
|
|
425
|
+
/** One review. */
|
|
426
|
+
export interface ReviewItem {
|
|
427
|
+
id?: string;
|
|
428
|
+
quote: string;
|
|
429
|
+
person: string;
|
|
430
|
+
about?: string;
|
|
431
|
+
rating?: number;
|
|
432
|
+
avatarSrc?: string;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* What customers say, in cards, with their rating and a face or their
|
|
436
|
+
* initials, and a summary line above them.
|
|
437
|
+
*
|
|
438
|
+
* A rating is said in words as well as drawn in stars.
|
|
439
|
+
*
|
|
440
|
+
* @category content
|
|
441
|
+
* @icon reviews
|
|
442
|
+
*/
|
|
443
|
+
export declare class ImpktReviews extends ImpktElement {
|
|
444
|
+
static properties: {
|
|
445
|
+
summary: {
|
|
446
|
+
type: StringConstructor;
|
|
447
|
+
};
|
|
448
|
+
rating: {
|
|
449
|
+
type: NumberConstructor;
|
|
450
|
+
};
|
|
451
|
+
items: {
|
|
452
|
+
type: ArrayConstructor;
|
|
453
|
+
};
|
|
454
|
+
columns: {
|
|
455
|
+
type: StringConstructor;
|
|
456
|
+
reflect: boolean;
|
|
457
|
+
};
|
|
458
|
+
spaceAbove: {
|
|
459
|
+
type: StringConstructor;
|
|
460
|
+
reflect: boolean;
|
|
461
|
+
attribute: string;
|
|
462
|
+
};
|
|
463
|
+
spaceBelow: {
|
|
464
|
+
type: StringConstructor;
|
|
465
|
+
reflect: boolean;
|
|
466
|
+
attribute: string;
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
/** A line above the reviews, such as "4.8 from 312 buyers". */
|
|
470
|
+
summary: string;
|
|
471
|
+
/** The overall rating out of 5, drawn beside the summary. */
|
|
472
|
+
rating: number | undefined;
|
|
473
|
+
items: ReviewItem[];
|
|
474
|
+
columns: 'two' | 'three';
|
|
475
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
476
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
477
|
+
constructor();
|
|
478
|
+
static styles: import("lit").CSSResult[];
|
|
479
|
+
render(): TemplateResult;
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* An email sign-up in one line: release dates, price lists, launch news.
|
|
483
|
+
*
|
|
484
|
+
* The field has a real label, the browser checks the address, and what happens
|
|
485
|
+
* with the address is said beside the button. The app receives the address and
|
|
486
|
+
* says when it is done.
|
|
487
|
+
*
|
|
488
|
+
* @category form
|
|
489
|
+
* @icon mail
|
|
490
|
+
* @fires impkt-submit - When a valid address is sent. The address is in detail.email.
|
|
491
|
+
*/
|
|
492
|
+
export declare class ImpktNewsletter extends ImpktElement {
|
|
493
|
+
static properties: {
|
|
494
|
+
heading: {
|
|
495
|
+
type: StringConstructor;
|
|
496
|
+
};
|
|
497
|
+
lead: {
|
|
498
|
+
type: StringConstructor;
|
|
499
|
+
};
|
|
500
|
+
label: {
|
|
501
|
+
type: StringConstructor;
|
|
502
|
+
};
|
|
503
|
+
buttonText: {
|
|
504
|
+
type: StringConstructor;
|
|
505
|
+
attribute: string;
|
|
506
|
+
};
|
|
507
|
+
smallPrint: {
|
|
508
|
+
type: StringConstructor;
|
|
509
|
+
attribute: string;
|
|
510
|
+
};
|
|
511
|
+
doneText: {
|
|
512
|
+
type: StringConstructor;
|
|
513
|
+
attribute: string;
|
|
514
|
+
};
|
|
515
|
+
headingLevel: {
|
|
516
|
+
type: NumberConstructor;
|
|
517
|
+
attribute: string;
|
|
518
|
+
};
|
|
519
|
+
spaceAbove: {
|
|
520
|
+
type: StringConstructor;
|
|
521
|
+
reflect: boolean;
|
|
522
|
+
attribute: string;
|
|
523
|
+
};
|
|
524
|
+
spaceBelow: {
|
|
525
|
+
type: StringConstructor;
|
|
526
|
+
reflect: boolean;
|
|
527
|
+
attribute: string;
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
heading: string;
|
|
531
|
+
lead: string;
|
|
532
|
+
/** The field's label. */
|
|
533
|
+
label: string;
|
|
534
|
+
buttonText: string;
|
|
535
|
+
/** What happens with the address, such as how to stop the emails. */
|
|
536
|
+
smallPrint: string;
|
|
537
|
+
/** What is said once the address is sent. */
|
|
538
|
+
doneText: string;
|
|
539
|
+
headingLevel: 2 | 3;
|
|
540
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
541
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
542
|
+
private done;
|
|
543
|
+
constructor();
|
|
544
|
+
static styles: import("lit").CSSResult[];
|
|
545
|
+
private submit;
|
|
546
|
+
render(): TemplateResult;
|
|
547
|
+
}
|
|
548
|
+
declare global {
|
|
549
|
+
interface HTMLElementTagNameMap {
|
|
550
|
+
'impkt-carousel': ImpktCarousel;
|
|
551
|
+
'impkt-gallery': ImpktGallery;
|
|
552
|
+
'impkt-logo-cloud': ImpktLogoCloud;
|
|
553
|
+
'impkt-steps': ImpktSteps;
|
|
554
|
+
'impkt-media-split': ImpktMediaSplit;
|
|
555
|
+
'impkt-cta-banner': ImpktCtaBanner;
|
|
556
|
+
'impkt-reviews': ImpktReviews;
|
|
557
|
+
'impkt-newsletter': ImpktNewsletter;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ImpktCarousel,
|
|
3
|
+
ImpktCtaBanner,
|
|
4
|
+
ImpktGallery,
|
|
5
|
+
ImpktLogoCloud,
|
|
6
|
+
ImpktMediaSplit,
|
|
7
|
+
ImpktNewsletter,
|
|
8
|
+
ImpktReviews,
|
|
9
|
+
ImpktSteps,
|
|
10
|
+
gallerySpan
|
|
11
|
+
} from "../chunk-UNVL3CNM.js";
|
|
12
|
+
import "../chunk-KFD4O7VA.js";
|
|
13
|
+
import "../chunk-D6C7XEY4.js";
|
|
14
|
+
export {
|
|
15
|
+
ImpktCarousel,
|
|
16
|
+
ImpktCtaBanner,
|
|
17
|
+
ImpktGallery,
|
|
18
|
+
ImpktLogoCloud,
|
|
19
|
+
ImpktMediaSplit,
|
|
20
|
+
ImpktNewsletter,
|
|
21
|
+
ImpktReviews,
|
|
22
|
+
ImpktSteps,
|
|
23
|
+
gallerySpan
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=organisms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -46,9 +46,20 @@ export declare class ImpktPage extends ImpktElement {
|
|
|
46
46
|
private hasSlot;
|
|
47
47
|
private skip;
|
|
48
48
|
render(): TemplateResult;
|
|
49
|
+
/**
|
|
50
|
+
* The header floats when the page opens on a full-picture hero, sitting on the
|
|
51
|
+
* picture itself, so nothing has to be set for it. It stays an ordinary bar
|
|
52
|
+
* while editing, where the blocks are kept inside the page's box.
|
|
53
|
+
*/
|
|
54
|
+
private place;
|
|
55
|
+
/** Whether nothing a reader would notice comes before this block, other than an announcement. */
|
|
56
|
+
private opensOn;
|
|
49
57
|
connectedCallback(): void;
|
|
50
58
|
disconnectedCallback(): void;
|
|
59
|
+
protected firstUpdated(): void;
|
|
51
60
|
private observer?;
|
|
61
|
+
private watcher?;
|
|
62
|
+
private resize?;
|
|
52
63
|
}
|
|
53
64
|
/**
|
|
54
65
|
* A band across the whole width of the page, with its own background, and its
|
|
@@ -98,15 +109,15 @@ export declare class ImpktSection extends ImpktElement {
|
|
|
98
109
|
/** The band's background. Text on it takes the matching colour, so it stays readable. */
|
|
99
110
|
tone: 'none' | 'subtle' | 'inset' | 'brand' | 'card';
|
|
100
111
|
/** Space inside the band, above and below its content. */
|
|
101
|
-
padding: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
112
|
+
padding: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
102
113
|
/** How wide the content inside runs. */
|
|
103
114
|
width: 'narrow' | 'standard' | 'wide';
|
|
104
115
|
/** Run the background to the edges of the screen. */
|
|
105
116
|
bleed: boolean;
|
|
106
117
|
/** A name for the section, so a screen reader can find it in the page's regions. Leave empty for none. */
|
|
107
118
|
label: string;
|
|
108
|
-
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
109
|
-
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
119
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
120
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
110
121
|
constructor();
|
|
111
122
|
static styles: import("lit").CSSResult[];
|
|
112
123
|
render(): TemplateResult;
|
package/dist/components/page.js
CHANGED
|
@@ -5,7 +5,7 @@ import { ImpktElement } from '../base/ImpktElement';
|
|
|
5
5
|
*
|
|
6
6
|
* This component exists because of a decision taken in the content model: a
|
|
7
7
|
* binding names a source and cannot compute
|
|
8
|
-
* ([ADR 0003](
|
|
8
|
+
* ([ADR 0003](https://github.com/matthill8286/strata/blob/main/docs/decisions/0003-binding-expressions.md)). The
|
|
9
9
|
* consequence is that formatting lives here, where the locale and the currency
|
|
10
10
|
* are known, rather than in authored content — so there is one place that
|
|
11
11
|
* decides what "£24.99" looks like, and nobody writes a format string into a
|
|
@@ -35,6 +35,9 @@ export declare class ImpktPrice extends ImpktElement {
|
|
|
35
35
|
locale: {
|
|
36
36
|
type: StringConstructor;
|
|
37
37
|
};
|
|
38
|
+
prefix: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
};
|
|
38
41
|
period: {
|
|
39
42
|
type: StringConstructor;
|
|
40
43
|
};
|
|
@@ -50,6 +53,8 @@ export declare class ImpktPrice extends ImpktElement {
|
|
|
50
53
|
amount: number | undefined;
|
|
51
54
|
currency: string;
|
|
52
55
|
locale: string;
|
|
56
|
+
/** "From", "Guide". Read before the amount. */
|
|
57
|
+
prefix: string;
|
|
53
58
|
/** "a month", "a year". Read after the amount. */
|
|
54
59
|
period: string;
|
|
55
60
|
size: 'md' | 'lg' | 'xl';
|
package/dist/components/price.js
CHANGED