@atomic-ui/blocks 0.0.0-stage → 0.7.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 +77 -2
- package/custom-elements.json +8688 -0
- package/dist/chunk-4JW2CHWS.js +708 -0
- package/dist/chunk-4JW2CHWS.js.map +1 -0
- package/dist/chunk-AFN7IAG2.js +379 -0
- package/dist/chunk-AFN7IAG2.js.map +1 -0
- package/dist/chunk-F4BTXUYP.js +65 -0
- package/dist/chunk-F4BTXUYP.js.map +1 -0
- package/dist/chunk-MYTYMOH6.js +193 -0
- package/dist/chunk-MYTYMOH6.js.map +1 -0
- package/dist/chunk-OTOFULMT.js +465 -0
- package/dist/chunk-OTOFULMT.js.map +1 -0
- package/dist/chunk-PORKVHAX.js +255 -0
- package/dist/chunk-PORKVHAX.js.map +1 -0
- package/dist/chunk-T7U4OPTW.js +413 -0
- package/dist/chunk-T7U4OPTW.js.map +1 -0
- package/dist/chunk-WHENVU5E.js +318 -0
- package/dist/chunk-WHENVU5E.js.map +1 -0
- package/dist/chunk-XHFUTZGU.js +228 -0
- package/dist/chunk-XHFUTZGU.js.map +1 -0
- package/dist/chunk-XJMKAK2I.js +442 -0
- package/dist/chunk-XJMKAK2I.js.map +1 -0
- package/dist/components/card-grid.d.ts +72 -0
- package/dist/components/card-grid.js +7 -0
- package/dist/components/card-grid.js.map +1 -0
- package/dist/components/changelog.d.ts +373 -0
- package/dist/components/changelog.js +16 -0
- package/dist/components/changelog.js.map +1 -0
- package/dist/components/estimator.d.ts +246 -0
- package/dist/components/estimator.js +11 -0
- package/dist/components/estimator.js.map +1 -0
- package/dist/components/marketing.d.ts +342 -0
- package/dist/components/marketing.js +17 -0
- package/dist/components/marketing.js.map +1 -0
- package/dist/components/organisms.d.ts +559 -0
- package/dist/components/organisms.js +23 -0
- package/dist/components/organisms.js.map +1 -0
- package/dist/components/property.d.ts +389 -0
- package/dist/components/property.js +17 -0
- package/dist/components/property.js.map +1 -0
- package/dist/components/scene.d.ts +138 -0
- package/dist/components/scene.js +7 -0
- package/dist/components/scene.js.map +1 -0
- package/dist/components/scrubber.d.ts +86 -0
- package/dist/components/scrubber.js +7 -0
- package/dist/components/scrubber.js.map +1 -0
- package/dist/components/selling.d.ts +409 -0
- package/dist/components/selling.js +23 -0
- package/dist/components/selling.js.map +1 -0
- package/dist/components/site.d.ts +235 -0
- package/dist/components/site.js +11 -0
- package/dist/components/site.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +114 -0
- package/dist/index.js.map +1 -0
- package/dist/standalone/atomic-ui-blocks.js +1229 -0
- package/dist/standalone/atomic-ui-blocks.js.map +7 -0
- package/dist/standalone/index.html +78 -0
- package/package.json +64 -3
- package/scripts/copy-to-product.mjs +59 -0
- package/specimen/index.html +78 -0
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A cost estimator: a few questions, one at a time, with a budget beside them
|
|
3
|
+
* that moves as the answers change, and then a result with a timeline, a team
|
|
4
|
+
* and a way of working.
|
|
5
|
+
*
|
|
6
|
+
* Every number is content. Each choice says what it adds to the cost and the
|
|
7
|
+
* weeks, or what it multiplies them by, and the bands say how big a team a
|
|
8
|
+
* cost needs. The arithmetic lives here, in code, because a binding never
|
|
9
|
+
* computes (ADR 0003): a studio changes its rates in the CMS, not the rules.
|
|
10
|
+
*/
|
|
11
|
+
import { type TemplateResult } from 'lit';
|
|
12
|
+
import { ImpaktElement } from '@atomic-ui/ui';
|
|
13
|
+
/** One answer to a question, and what it does to the estimate. */
|
|
14
|
+
export interface EstimatorChoice {
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
/** A line under the label, such as "iPhone and Android". */
|
|
18
|
+
hint?: string;
|
|
19
|
+
/** Added to the cost, counted in units (see `unit`). */
|
|
20
|
+
cost?: number;
|
|
21
|
+
/** Added to the weeks. */
|
|
22
|
+
weeks?: number;
|
|
23
|
+
/** Multiplies the cost, such as 1.35 for a more polished first version. */
|
|
24
|
+
costFactor?: number;
|
|
25
|
+
/** Multiplies the weeks. */
|
|
26
|
+
weeksFactor?: number;
|
|
27
|
+
/** Engineers added to the team, such as one more to go faster. */
|
|
28
|
+
engineers?: number;
|
|
29
|
+
/** Shown beside the budget when it is picked. */
|
|
30
|
+
tip?: string;
|
|
31
|
+
/** How the summary names it, such as "a SaaS platform" or "payments". The label when left out. */
|
|
32
|
+
phrase?: string;
|
|
33
|
+
}
|
|
34
|
+
/** One question. */
|
|
35
|
+
export interface EstimatorQuestion {
|
|
36
|
+
id: string;
|
|
37
|
+
heading: string;
|
|
38
|
+
hint?: string;
|
|
39
|
+
/** `one` picks one card, `many` picks any number, and `scale` is a slider across the choices in order. */
|
|
40
|
+
kind: 'one' | 'many' | 'scale';
|
|
41
|
+
choices: EstimatorChoice[];
|
|
42
|
+
/** The choices picked at the start. A `one` or `scale` question takes the first id; with none, its first choice. */
|
|
43
|
+
start?: string[];
|
|
44
|
+
/** A short name for the question in the summary that is sent on, such as "Polish". Left out of it when there is none. */
|
|
45
|
+
short?: string;
|
|
46
|
+
/** For a `many` question, whether the summary lists what was picked, as in "with payments and AI features". Yes when left out. */
|
|
47
|
+
inSummary?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/** A band of cost: the first band whose `below` the cost is under applies, or the last one. */
|
|
50
|
+
export interface EstimatorBand {
|
|
51
|
+
below?: number;
|
|
52
|
+
/** For a team band, how many engineers. */
|
|
53
|
+
engineers?: number;
|
|
54
|
+
/** For a way-of-working band, what it is called. */
|
|
55
|
+
text?: string;
|
|
56
|
+
}
|
|
57
|
+
/** One part of the timeline. The part with no share takes the weeks the others leave. */
|
|
58
|
+
export interface EstimatorPhase {
|
|
59
|
+
label: string;
|
|
60
|
+
/** Its share of the weeks, such as 0.1. At least one week either way. */
|
|
61
|
+
share?: number;
|
|
62
|
+
}
|
|
63
|
+
/** What an estimate came to, as the `impakt-estimate` event carries it. */
|
|
64
|
+
export interface EstimateResult {
|
|
65
|
+
low: number;
|
|
66
|
+
high: number;
|
|
67
|
+
weeks: number;
|
|
68
|
+
engineers: number;
|
|
69
|
+
way: string;
|
|
70
|
+
summary: string;
|
|
71
|
+
/** The ids picked for each question. */
|
|
72
|
+
answers: Record<string, string[]>;
|
|
73
|
+
}
|
|
74
|
+
/** The arithmetic, apart from the element so it can be checked on its own. */
|
|
75
|
+
export declare function estimate(questions: EstimatorQuestion[], answers: Record<string, string[]>, rules: {
|
|
76
|
+
low: number;
|
|
77
|
+
high: number;
|
|
78
|
+
minWeeks: number;
|
|
79
|
+
teams: EstimatorBand[];
|
|
80
|
+
ways: EstimatorBand[];
|
|
81
|
+
}): {
|
|
82
|
+
cost: number;
|
|
83
|
+
low: number;
|
|
84
|
+
high: number;
|
|
85
|
+
weeks: number;
|
|
86
|
+
engineers: number;
|
|
87
|
+
way: string;
|
|
88
|
+
};
|
|
89
|
+
/** The weeks each part of the timeline takes, adding up to the whole. */
|
|
90
|
+
export declare function phaseWeeks(phases: EstimatorPhase[], weeks: number): number[];
|
|
91
|
+
/**
|
|
92
|
+
* Asks a few questions one at a time and keeps a budget beside them that moves
|
|
93
|
+
* with every answer, then shows the estimate: the range, the weeks, how long
|
|
94
|
+
* each part takes, the team and the way of working. The visitor can send the
|
|
95
|
+
* estimate on to a contact page, where a message box can start with it.
|
|
96
|
+
*
|
|
97
|
+
* @category form
|
|
98
|
+
* @icon calculator
|
|
99
|
+
* @fires {CustomEvent<EstimateResult>} impakt-estimate - When the estimate is sent on. The result is in detail.
|
|
100
|
+
*/
|
|
101
|
+
export declare class ImpaktEstimator extends ImpaktElement {
|
|
102
|
+
static properties: {
|
|
103
|
+
questions: {
|
|
104
|
+
type: ArrayConstructor;
|
|
105
|
+
};
|
|
106
|
+
teams: {
|
|
107
|
+
type: ArrayConstructor;
|
|
108
|
+
};
|
|
109
|
+
ways: {
|
|
110
|
+
type: ArrayConstructor;
|
|
111
|
+
};
|
|
112
|
+
phases: {
|
|
113
|
+
type: ArrayConstructor;
|
|
114
|
+
};
|
|
115
|
+
low: {
|
|
116
|
+
type: NumberConstructor;
|
|
117
|
+
};
|
|
118
|
+
high: {
|
|
119
|
+
type: NumberConstructor;
|
|
120
|
+
};
|
|
121
|
+
minWeeks: {
|
|
122
|
+
type: NumberConstructor;
|
|
123
|
+
attribute: string;
|
|
124
|
+
};
|
|
125
|
+
currency: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
};
|
|
128
|
+
unit: {
|
|
129
|
+
type: NumberConstructor;
|
|
130
|
+
};
|
|
131
|
+
intro: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
};
|
|
134
|
+
budgetLabel: {
|
|
135
|
+
type: StringConstructor;
|
|
136
|
+
attribute: string;
|
|
137
|
+
};
|
|
138
|
+
resultHeading: {
|
|
139
|
+
type: StringConstructor;
|
|
140
|
+
attribute: string;
|
|
141
|
+
};
|
|
142
|
+
teamText: {
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
attribute: string;
|
|
145
|
+
};
|
|
146
|
+
teamTextOne: {
|
|
147
|
+
type: StringConstructor;
|
|
148
|
+
attribute: string;
|
|
149
|
+
};
|
|
150
|
+
note: {
|
|
151
|
+
type: StringConstructor;
|
|
152
|
+
};
|
|
153
|
+
contactHref: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
attribute: string;
|
|
156
|
+
};
|
|
157
|
+
sendLabel: {
|
|
158
|
+
type: StringConstructor;
|
|
159
|
+
attribute: string;
|
|
160
|
+
};
|
|
161
|
+
headingLevel: {
|
|
162
|
+
type: NumberConstructor;
|
|
163
|
+
attribute: string;
|
|
164
|
+
};
|
|
165
|
+
spaceAbove: {
|
|
166
|
+
type: StringConstructor;
|
|
167
|
+
reflect: boolean;
|
|
168
|
+
attribute: string;
|
|
169
|
+
};
|
|
170
|
+
spaceBelow: {
|
|
171
|
+
type: StringConstructor;
|
|
172
|
+
reflect: boolean;
|
|
173
|
+
attribute: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
/** The questions, in the order they are asked. */
|
|
177
|
+
questions: EstimatorQuestion[];
|
|
178
|
+
/** How many engineers each band of cost needs. */
|
|
179
|
+
teams: EstimatorBand[];
|
|
180
|
+
/** The way of working for each band of cost. */
|
|
181
|
+
ways: EstimatorBand[];
|
|
182
|
+
/** The parts of the timeline, in order. */
|
|
183
|
+
phases: EstimatorPhase[];
|
|
184
|
+
/** The low end of the range, as a share of the cost. */
|
|
185
|
+
low: number;
|
|
186
|
+
/** The high end of the range, as a share of the cost. */
|
|
187
|
+
high: number;
|
|
188
|
+
/** The fewest weeks an estimate says. */
|
|
189
|
+
minWeeks: number;
|
|
190
|
+
/** The currency the cost is in, such as GBP. */
|
|
191
|
+
currency: string;
|
|
192
|
+
/** What one unit of cost is worth, such as 1000 when the costs are in thousands. */
|
|
193
|
+
unit: number;
|
|
194
|
+
/** Beside the budget before anything is picked, such as "Start by telling us what you are building." */
|
|
195
|
+
intro: string;
|
|
196
|
+
budgetLabel: string;
|
|
197
|
+
resultHeading: string;
|
|
198
|
+
/** The team, with {n} for the number of engineers. */
|
|
199
|
+
teamText: string;
|
|
200
|
+
/** The team when it has one engineer. */
|
|
201
|
+
teamTextOne: string;
|
|
202
|
+
/** A line under the result, such as how accurate it is. */
|
|
203
|
+
note: string;
|
|
204
|
+
/** Where the estimate is sent on to. With none, there is no button to send it. */
|
|
205
|
+
contactHref: string;
|
|
206
|
+
sendLabel: string;
|
|
207
|
+
/** The level of each question's heading. */
|
|
208
|
+
headingLevel: number;
|
|
209
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
210
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
211
|
+
private at;
|
|
212
|
+
private answers;
|
|
213
|
+
private tip;
|
|
214
|
+
private copied;
|
|
215
|
+
private started;
|
|
216
|
+
constructor();
|
|
217
|
+
static styles: import("lit").CSSResult[];
|
|
218
|
+
/** The answers each question starts with. */
|
|
219
|
+
private reset;
|
|
220
|
+
protected willUpdate(changed: Map<string, unknown>): void;
|
|
221
|
+
private get rules();
|
|
222
|
+
private money;
|
|
223
|
+
private listOf;
|
|
224
|
+
private weeksWord;
|
|
225
|
+
/** The largest the budget can be, so the glow is full size at it. */
|
|
226
|
+
private get most();
|
|
227
|
+
private summaryOf;
|
|
228
|
+
private rangeOf;
|
|
229
|
+
private teamOf;
|
|
230
|
+
private pick;
|
|
231
|
+
private go;
|
|
232
|
+
private result;
|
|
233
|
+
/** The estimate as words to send or copy. */
|
|
234
|
+
private textOf;
|
|
235
|
+
private send;
|
|
236
|
+
private copy;
|
|
237
|
+
private heading;
|
|
238
|
+
private renderQuestion;
|
|
239
|
+
private renderResult;
|
|
240
|
+
render(): TemplateResult;
|
|
241
|
+
}
|
|
242
|
+
declare global {
|
|
243
|
+
interface HTMLElementTagNameMap {
|
|
244
|
+
'impakt-estimator': ImpaktEstimator;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { ImpaktElement } from '@atomic-ui/ui';
|
|
3
|
+
/**
|
|
4
|
+
* The opening of a page: a short label, a big heading, a line of text, the
|
|
5
|
+
* page's main actions and, beside them, a picture.
|
|
6
|
+
*
|
|
7
|
+
* Put the buttons in the `actions` slot. The picture goes beside the words on
|
|
8
|
+
* a wide screen and below them on a phone, so the heading is always the first
|
|
9
|
+
* thing read.
|
|
10
|
+
*
|
|
11
|
+
* @category layout
|
|
12
|
+
* @icon hero
|
|
13
|
+
* @role heading
|
|
14
|
+
* @slot actions - The page's main buttons and links.
|
|
15
|
+
* @slot search - A search bar across the bottom of a full-picture hero.
|
|
16
|
+
*/
|
|
17
|
+
export declare class ImpaktHero extends ImpaktElement {
|
|
18
|
+
static properties: {
|
|
19
|
+
eyebrow: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
};
|
|
22
|
+
heading: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
};
|
|
25
|
+
lead: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
};
|
|
28
|
+
level: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
reflect: boolean;
|
|
31
|
+
};
|
|
32
|
+
imageSrc: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
attribute: string;
|
|
35
|
+
};
|
|
36
|
+
imageAlt: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
attribute: string;
|
|
39
|
+
};
|
|
40
|
+
treatment: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
reflect: boolean;
|
|
43
|
+
};
|
|
44
|
+
ratingText: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
attribute: string;
|
|
47
|
+
};
|
|
48
|
+
eyebrowIcon: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
attribute: string;
|
|
51
|
+
};
|
|
52
|
+
align: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
reflect: boolean;
|
|
55
|
+
};
|
|
56
|
+
spaceAbove: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
reflect: boolean;
|
|
59
|
+
attribute: string;
|
|
60
|
+
};
|
|
61
|
+
spaceBelow: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
reflect: boolean;
|
|
64
|
+
attribute: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
/** A short label above the heading, such as the name of the development. */
|
|
68
|
+
eyebrow: string;
|
|
69
|
+
heading: string;
|
|
70
|
+
/** A sentence or two under the heading. */
|
|
71
|
+
lead: string;
|
|
72
|
+
/** The heading's level in the page. A page's hero is usually its only level 1. */
|
|
73
|
+
level: 1 | 2;
|
|
74
|
+
imageSrc: string;
|
|
75
|
+
/** What the picture shows. Leave empty only when it is decoration. */
|
|
76
|
+
imageAlt: string;
|
|
77
|
+
/** The picture beside the words, or filling the whole block with the words over it. */
|
|
78
|
+
treatment: 'split' | 'cover';
|
|
79
|
+
/** A short line of proof on the picture, such as "4.8 from 312 buyers". */
|
|
80
|
+
ratingText: string;
|
|
81
|
+
/** A small picture before the eyebrow on a full-picture hero. */
|
|
82
|
+
eyebrowIcon: 'none' | 'arrow-right' | 'arrow-left' | 'chevron-right' | 'chevron-down' | 'check' | 'close' | 'menu' | 'plus' | 'minus' | 'search' | 'external' | 'download' | 'home' | 'phone' | 'mail' | 'map-pin' | 'calendar' | 'clock' | 'user' | 'star' | 'heart' | 'shield' | 'leaf' | 'sun' | 'bolt' | 'key' | 'info' | 'warning' | 'document' | 'pound' | 'chat';
|
|
83
|
+
/** Where the words sit. Centred heroes have no picture beside them. */
|
|
84
|
+
align: 'start' | 'center';
|
|
85
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
86
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
87
|
+
constructor();
|
|
88
|
+
static styles: import("lit").CSSResult[];
|
|
89
|
+
render(): TemplateResult;
|
|
90
|
+
}
|
|
91
|
+
/** One benefit or feature in a list of them. */
|
|
92
|
+
export interface FeatureItem {
|
|
93
|
+
id?: string;
|
|
94
|
+
icon?: string;
|
|
95
|
+
heading: string;
|
|
96
|
+
text?: string;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Benefits or features side by side, each with an icon, a short heading and a
|
|
100
|
+
* line of text: "Ten years of cover", "Lower bills from day one".
|
|
101
|
+
*
|
|
102
|
+
* The icons are decoration, because each heading already says what it is.
|
|
103
|
+
* The items are a list, so a screen reader says how many there are.
|
|
104
|
+
*
|
|
105
|
+
* @category content
|
|
106
|
+
* @icon features
|
|
107
|
+
*/
|
|
108
|
+
export declare class ImpaktFeatureList extends ImpaktElement {
|
|
109
|
+
static properties: {
|
|
110
|
+
items: {
|
|
111
|
+
type: ArrayConstructor;
|
|
112
|
+
};
|
|
113
|
+
columns: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
reflect: boolean;
|
|
116
|
+
};
|
|
117
|
+
headingLevel: {
|
|
118
|
+
type: NumberConstructor;
|
|
119
|
+
attribute: string;
|
|
120
|
+
};
|
|
121
|
+
layout: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
reflect: boolean;
|
|
124
|
+
};
|
|
125
|
+
spaceAbove: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
reflect: boolean;
|
|
128
|
+
attribute: string;
|
|
129
|
+
};
|
|
130
|
+
spaceBelow: {
|
|
131
|
+
type: StringConstructor;
|
|
132
|
+
reflect: boolean;
|
|
133
|
+
attribute: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
items: FeatureItem[];
|
|
137
|
+
columns: 'two' | 'three' | 'four';
|
|
138
|
+
/** The level of each item's heading. One below the heading above the list. */
|
|
139
|
+
headingLevel: 2 | 3 | 4;
|
|
140
|
+
/** Icons above the words, or beside them. */
|
|
141
|
+
layout: 'stacked' | 'inline';
|
|
142
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
143
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
144
|
+
constructor();
|
|
145
|
+
static styles: import("lit").CSSResult[];
|
|
146
|
+
render(): TemplateResult;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Something a customer said, and who said it.
|
|
150
|
+
*
|
|
151
|
+
* It is a `blockquote` with a `figcaption`, so the words and the person are
|
|
152
|
+
* tied together for a screen reader as well as on the screen.
|
|
153
|
+
*
|
|
154
|
+
* @category content
|
|
155
|
+
* @icon quote
|
|
156
|
+
*/
|
|
157
|
+
export declare class ImpaktQuote extends ImpaktElement {
|
|
158
|
+
static properties: {
|
|
159
|
+
quote: {
|
|
160
|
+
type: StringConstructor;
|
|
161
|
+
};
|
|
162
|
+
person: {
|
|
163
|
+
type: StringConstructor;
|
|
164
|
+
};
|
|
165
|
+
about: {
|
|
166
|
+
type: StringConstructor;
|
|
167
|
+
};
|
|
168
|
+
imageSrc: {
|
|
169
|
+
type: StringConstructor;
|
|
170
|
+
attribute: string;
|
|
171
|
+
};
|
|
172
|
+
size: {
|
|
173
|
+
type: StringConstructor;
|
|
174
|
+
reflect: boolean;
|
|
175
|
+
};
|
|
176
|
+
align: {
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
reflect: boolean;
|
|
179
|
+
};
|
|
180
|
+
spaceAbove: {
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
reflect: boolean;
|
|
183
|
+
attribute: string;
|
|
184
|
+
};
|
|
185
|
+
spaceBelow: {
|
|
186
|
+
type: StringConstructor;
|
|
187
|
+
reflect: boolean;
|
|
188
|
+
attribute: string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
/** The words they said, without quotation marks. */
|
|
192
|
+
quote: string;
|
|
193
|
+
/** Who said it. */
|
|
194
|
+
person: string;
|
|
195
|
+
/** Who they are, such as "Bought at Larkfield Meadows, 2025". */
|
|
196
|
+
about: string;
|
|
197
|
+
/** A photo of them. It is decoration, because their name is beside it. */
|
|
198
|
+
imageSrc: string;
|
|
199
|
+
size: 'md' | 'lg';
|
|
200
|
+
align: 'start' | 'center';
|
|
201
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
202
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
203
|
+
constructor();
|
|
204
|
+
static styles: import("lit").CSSResult[];
|
|
205
|
+
render(): TemplateResult;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* A number that makes a point, with what it counts beneath it: "36 years",
|
|
209
|
+
* "Building in Kent since 1987".
|
|
210
|
+
*
|
|
211
|
+
* @category content
|
|
212
|
+
* @icon stat
|
|
213
|
+
*/
|
|
214
|
+
export declare class ImpaktStat extends ImpaktElement {
|
|
215
|
+
static properties: {
|
|
216
|
+
figure: {
|
|
217
|
+
type: StringConstructor;
|
|
218
|
+
};
|
|
219
|
+
label: {
|
|
220
|
+
type: StringConstructor;
|
|
221
|
+
};
|
|
222
|
+
note: {
|
|
223
|
+
type: StringConstructor;
|
|
224
|
+
};
|
|
225
|
+
size: {
|
|
226
|
+
type: StringConstructor;
|
|
227
|
+
reflect: boolean;
|
|
228
|
+
};
|
|
229
|
+
align: {
|
|
230
|
+
type: StringConstructor;
|
|
231
|
+
reflect: boolean;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
/** How large the number is drawn. */
|
|
235
|
+
size: 'md' | 'lg' | 'xl';
|
|
236
|
+
/** The number, written as it should appear, such as "36" or "£280k". */
|
|
237
|
+
figure: string;
|
|
238
|
+
/** What the number counts. */
|
|
239
|
+
label: string;
|
|
240
|
+
/** A line more, if the label needs it. */
|
|
241
|
+
note: string;
|
|
242
|
+
align: 'start' | 'center';
|
|
243
|
+
constructor();
|
|
244
|
+
static styles: import("lit").CSSResult[];
|
|
245
|
+
render(): TemplateResult;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* A thin line of news across the top of a page: a launch, a change to opening
|
|
249
|
+
* hours. Keep it to one short sentence.
|
|
250
|
+
*
|
|
251
|
+
* @category feedback
|
|
252
|
+
* @icon alert
|
|
253
|
+
*/
|
|
254
|
+
export declare class ImpaktAnnouncement extends ImpaktElement {
|
|
255
|
+
static properties: {
|
|
256
|
+
message: {
|
|
257
|
+
type: StringConstructor;
|
|
258
|
+
};
|
|
259
|
+
linkText: {
|
|
260
|
+
type: StringConstructor;
|
|
261
|
+
attribute: string;
|
|
262
|
+
};
|
|
263
|
+
href: {
|
|
264
|
+
type: StringConstructor;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
message: string;
|
|
268
|
+
linkText: string;
|
|
269
|
+
href: string;
|
|
270
|
+
constructor();
|
|
271
|
+
static styles: import("lit").CSSResult[];
|
|
272
|
+
render(): TemplateResult;
|
|
273
|
+
}
|
|
274
|
+
/** One choice in a search bar. */
|
|
275
|
+
export interface SearchField {
|
|
276
|
+
id?: string;
|
|
277
|
+
/** The name it sends, such as "bedrooms". */
|
|
278
|
+
name?: string;
|
|
279
|
+
label: string;
|
|
280
|
+
/** What it shows before anything is chosen. */
|
|
281
|
+
placeholder?: string;
|
|
282
|
+
/** The other choices, separated by commas. */
|
|
283
|
+
options?: string;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* A row of choices and one button that finds what fits: where, how many
|
|
287
|
+
* bedrooms, up to what budget.
|
|
288
|
+
*
|
|
289
|
+
* Each choice is a native select with a real label. It sends the visitor to
|
|
290
|
+
* `action` with their choices in the address, so it works as a plain link can.
|
|
291
|
+
*
|
|
292
|
+
* @category form
|
|
293
|
+
* @icon search
|
|
294
|
+
* @fires {CustomEvent<{ values: Record<string, string> }>} impakt-submit - When the search is run. The choices are in detail.values.
|
|
295
|
+
*/
|
|
296
|
+
export declare class ImpaktSearchBar extends ImpaktElement {
|
|
297
|
+
static properties: {
|
|
298
|
+
items: {
|
|
299
|
+
type: ArrayConstructor;
|
|
300
|
+
};
|
|
301
|
+
buttonText: {
|
|
302
|
+
type: StringConstructor;
|
|
303
|
+
attribute: string;
|
|
304
|
+
};
|
|
305
|
+
action: {
|
|
306
|
+
type: StringConstructor;
|
|
307
|
+
};
|
|
308
|
+
label: {
|
|
309
|
+
type: StringConstructor;
|
|
310
|
+
};
|
|
311
|
+
spaceAbove: {
|
|
312
|
+
type: StringConstructor;
|
|
313
|
+
reflect: boolean;
|
|
314
|
+
attribute: string;
|
|
315
|
+
};
|
|
316
|
+
spaceBelow: {
|
|
317
|
+
type: StringConstructor;
|
|
318
|
+
reflect: boolean;
|
|
319
|
+
attribute: string;
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
items: SearchField[];
|
|
323
|
+
buttonText: string;
|
|
324
|
+
/** Where the search goes. Leave empty to handle it in the app. */
|
|
325
|
+
action: string;
|
|
326
|
+
/** What the search is called for a screen reader. */
|
|
327
|
+
label: string;
|
|
328
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
329
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
330
|
+
constructor();
|
|
331
|
+
static styles: import("lit").CSSResult[];
|
|
332
|
+
private submit;
|
|
333
|
+
render(): TemplateResult;
|
|
334
|
+
}
|
|
335
|
+
declare global {
|
|
336
|
+
interface HTMLElementTagNameMap {
|
|
337
|
+
'impakt-hero': ImpaktHero;
|
|
338
|
+
'impakt-feature-list': ImpaktFeatureList;
|
|
339
|
+
'impakt-quote': ImpaktQuote;
|
|
340
|
+
'impakt-stat': ImpaktStat;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ImpaktAnnouncement,
|
|
3
|
+
ImpaktFeatureList,
|
|
4
|
+
ImpaktHero,
|
|
5
|
+
ImpaktQuote,
|
|
6
|
+
ImpaktSearchBar,
|
|
7
|
+
ImpaktStat
|
|
8
|
+
} from "../chunk-WHENVU5E.js";
|
|
9
|
+
export {
|
|
10
|
+
ImpaktAnnouncement,
|
|
11
|
+
ImpaktFeatureList,
|
|
12
|
+
ImpaktHero,
|
|
13
|
+
ImpaktQuote,
|
|
14
|
+
ImpaktSearchBar,
|
|
15
|
+
ImpaktStat
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=marketing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|