@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,407 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { ImpktElement } from '../base/ImpktElement';
|
|
3
|
+
type Space = 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4
|
+
/** One plan in a comparison. */
|
|
5
|
+
export interface PlanItem {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
/** The price as shown, such as £12. */
|
|
9
|
+
price: string;
|
|
10
|
+
/** What the price is for, such as `a month`. */
|
|
11
|
+
period?: string;
|
|
12
|
+
note?: string;
|
|
13
|
+
/** The rows this plan has, by their words, separated by commas. */
|
|
14
|
+
includes: string;
|
|
15
|
+
href?: string;
|
|
16
|
+
/** A label such as `Most popular`, which also makes the plan stand out. */
|
|
17
|
+
badge?: string;
|
|
18
|
+
}
|
|
19
|
+
/** One line a comparison checks every plan against. */
|
|
20
|
+
export interface PlanRow {
|
|
21
|
+
id: string;
|
|
22
|
+
label: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Cover levels side by side, with a tick or a cross for each thing they
|
|
26
|
+
* include and a button under each.
|
|
27
|
+
*
|
|
28
|
+
* A tick is never colour alone: each one says "Included" or "Not included" to
|
|
29
|
+
* a screen reader. On a narrow screen the plans stack, each with its own list.
|
|
30
|
+
*
|
|
31
|
+
* @category content
|
|
32
|
+
* @icon table
|
|
33
|
+
*/
|
|
34
|
+
export declare class ImpktPlanComparison extends ImpktElement {
|
|
35
|
+
static properties: {
|
|
36
|
+
heading: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
};
|
|
39
|
+
plans: {
|
|
40
|
+
type: ArrayConstructor;
|
|
41
|
+
};
|
|
42
|
+
rows: {
|
|
43
|
+
type: ArrayConstructor;
|
|
44
|
+
};
|
|
45
|
+
buttonText: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
attribute: string;
|
|
48
|
+
};
|
|
49
|
+
headingLevel: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
attribute: string;
|
|
52
|
+
};
|
|
53
|
+
spaceAbove: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
reflect: boolean;
|
|
56
|
+
attribute: string;
|
|
57
|
+
};
|
|
58
|
+
spaceBelow: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
reflect: boolean;
|
|
61
|
+
attribute: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
heading: string;
|
|
65
|
+
plans: PlanItem[];
|
|
66
|
+
rows: PlanRow[];
|
|
67
|
+
buttonText: string;
|
|
68
|
+
headingLevel: 2 | 3;
|
|
69
|
+
spaceAbove: Space;
|
|
70
|
+
spaceBelow: Space;
|
|
71
|
+
constructor();
|
|
72
|
+
static styles: import("lit").CSSResult[];
|
|
73
|
+
private has;
|
|
74
|
+
private choose;
|
|
75
|
+
render(): TemplateResult;
|
|
76
|
+
}
|
|
77
|
+
/** A YouTube or Vimeo address as its privacy-friendly embed, or null for a plain video file. */
|
|
78
|
+
export declare function embedOf(src: string, locale?: string): string | null;
|
|
79
|
+
/**
|
|
80
|
+
* A video, with its title, captions and a transcript link.
|
|
81
|
+
*
|
|
82
|
+
* A YouTube or Vimeo video shows its poster and a Play button first, and only
|
|
83
|
+
* loads the player when pressed, so the page stays fast and nothing is sent to
|
|
84
|
+
* the video site until someone chooses to watch. A video file plays in the
|
|
85
|
+
* browser's own player, with captions from `captions-src`.
|
|
86
|
+
*
|
|
87
|
+
* @category media
|
|
88
|
+
* @icon play
|
|
89
|
+
*/
|
|
90
|
+
export declare class ImpktVideo extends ImpktElement {
|
|
91
|
+
static properties: {
|
|
92
|
+
videoSrc: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
attribute: string;
|
|
95
|
+
};
|
|
96
|
+
label: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
};
|
|
99
|
+
posterSrc: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
attribute: string;
|
|
102
|
+
};
|
|
103
|
+
captionsSrc: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
attribute: string;
|
|
106
|
+
};
|
|
107
|
+
transcriptHref: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
attribute: string;
|
|
110
|
+
};
|
|
111
|
+
playText: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
attribute: string;
|
|
114
|
+
};
|
|
115
|
+
ratio: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
reflect: boolean;
|
|
118
|
+
};
|
|
119
|
+
spaceAbove: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
reflect: boolean;
|
|
122
|
+
attribute: string;
|
|
123
|
+
};
|
|
124
|
+
spaceBelow: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
reflect: boolean;
|
|
127
|
+
attribute: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
/** A YouTube or Vimeo address, or a video file such as an .mp4. */
|
|
131
|
+
videoSrc: string;
|
|
132
|
+
/** What the video is, read out before it plays. */
|
|
133
|
+
label: string;
|
|
134
|
+
posterSrc: string;
|
|
135
|
+
/** A captions file in WebVTT, for a video file. */
|
|
136
|
+
captionsSrc: string;
|
|
137
|
+
transcriptHref: string;
|
|
138
|
+
playText: string;
|
|
139
|
+
ratio: '16:9' | '4:3' | '1:1' | '9:16';
|
|
140
|
+
playing: boolean;
|
|
141
|
+
spaceAbove: Space;
|
|
142
|
+
spaceBelow: Space;
|
|
143
|
+
constructor();
|
|
144
|
+
static styles: import("lit").CSSResult[];
|
|
145
|
+
render(): TemplateResult;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* The warning and the regulator wording a financial page must carry, as a
|
|
149
|
+
* block of its own so it is never left off.
|
|
150
|
+
*
|
|
151
|
+
* Pick the kind to start from the usual words, or `custom` to write your own.
|
|
152
|
+
* Whatever it says, check it with whoever signs off your financial promotions.
|
|
153
|
+
*
|
|
154
|
+
* @category feedback
|
|
155
|
+
* @icon shield
|
|
156
|
+
*/
|
|
157
|
+
export declare class ImpktRegulatoryNotice extends ImpktElement {
|
|
158
|
+
static properties: {
|
|
159
|
+
kind: {
|
|
160
|
+
type: StringConstructor;
|
|
161
|
+
reflect: boolean;
|
|
162
|
+
};
|
|
163
|
+
heading: {
|
|
164
|
+
type: StringConstructor;
|
|
165
|
+
};
|
|
166
|
+
text: {
|
|
167
|
+
type: StringConstructor;
|
|
168
|
+
};
|
|
169
|
+
firm: {
|
|
170
|
+
type: StringConstructor;
|
|
171
|
+
};
|
|
172
|
+
spaceAbove: {
|
|
173
|
+
type: StringConstructor;
|
|
174
|
+
reflect: boolean;
|
|
175
|
+
attribute: string;
|
|
176
|
+
};
|
|
177
|
+
spaceBelow: {
|
|
178
|
+
type: StringConstructor;
|
|
179
|
+
reflect: boolean;
|
|
180
|
+
attribute: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
kind: 'mortgage' | 'secured-loan' | 'investment' | 'insurance' | 'custom';
|
|
184
|
+
/** Leave empty to use the usual heading for the kind. */
|
|
185
|
+
heading: string;
|
|
186
|
+
/** Leave empty to use the usual warning for the kind. */
|
|
187
|
+
text: string;
|
|
188
|
+
/** Who you are and who regulates you, such as "Acme Ltd is authorised and regulated by the Financial Conduct Authority (FRN 123456)." */
|
|
189
|
+
firm: string;
|
|
190
|
+
spaceAbove: Space;
|
|
191
|
+
spaceBelow: Space;
|
|
192
|
+
constructor();
|
|
193
|
+
static styles: import("lit").CSSResult[];
|
|
194
|
+
render(): TemplateResult;
|
|
195
|
+
}
|
|
196
|
+
/** One band of a tax: everything above `from` and up to the next band's `from` is charged at `rate`. */
|
|
197
|
+
interface Band {
|
|
198
|
+
from: number;
|
|
199
|
+
rate: number;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Stamp Duty Land Tax for England and Northern Ireland, from 1 April 2025.
|
|
203
|
+
* Exported so the numbers can be checked, and changed in one place.
|
|
204
|
+
*/
|
|
205
|
+
export declare const SDLT: {
|
|
206
|
+
standard: Band[];
|
|
207
|
+
firstTime: Band[];
|
|
208
|
+
firstTimeLimit: number;
|
|
209
|
+
additionalSurcharge: number;
|
|
210
|
+
};
|
|
211
|
+
/** The stamp duty on a home, for a mover, a first-time buyer or a second home. */
|
|
212
|
+
export declare function stampDuty(price: number, buyer: 'mover' | 'first-time' | 'additional'): number;
|
|
213
|
+
/**
|
|
214
|
+
* How much stamp duty a home would cost, for a home mover, a first-time buyer
|
|
215
|
+
* or a second home, worked out as the price is typed.
|
|
216
|
+
*
|
|
217
|
+
* The rates are England and Northern Ireland's from 1 April 2025. Scotland and
|
|
218
|
+
* Wales have their own taxes, and rates change, so the small print says which
|
|
219
|
+
* rates these are and points to GOV.UK.
|
|
220
|
+
*
|
|
221
|
+
* @category form
|
|
222
|
+
* @icon pound
|
|
223
|
+
*/
|
|
224
|
+
export declare class ImpktStampDutyCalculator extends ImpktElement {
|
|
225
|
+
static properties: {
|
|
226
|
+
heading: {
|
|
227
|
+
type: StringConstructor;
|
|
228
|
+
};
|
|
229
|
+
price: {
|
|
230
|
+
type: NumberConstructor;
|
|
231
|
+
};
|
|
232
|
+
buyer: {
|
|
233
|
+
type: StringConstructor;
|
|
234
|
+
};
|
|
235
|
+
smallPrint: {
|
|
236
|
+
type: StringConstructor;
|
|
237
|
+
attribute: string;
|
|
238
|
+
};
|
|
239
|
+
headingLevel: {
|
|
240
|
+
type: NumberConstructor;
|
|
241
|
+
attribute: string;
|
|
242
|
+
};
|
|
243
|
+
spaceAbove: {
|
|
244
|
+
type: StringConstructor;
|
|
245
|
+
reflect: boolean;
|
|
246
|
+
attribute: string;
|
|
247
|
+
};
|
|
248
|
+
spaceBelow: {
|
|
249
|
+
type: StringConstructor;
|
|
250
|
+
reflect: boolean;
|
|
251
|
+
attribute: string;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
heading: string;
|
|
255
|
+
price: number;
|
|
256
|
+
buyer: 'mover' | 'first-time' | 'additional';
|
|
257
|
+
smallPrint: string;
|
|
258
|
+
headingLevel: 2 | 3;
|
|
259
|
+
spaceAbove: Space;
|
|
260
|
+
spaceBelow: Space;
|
|
261
|
+
constructor();
|
|
262
|
+
static styles: import("lit").CSSResult[];
|
|
263
|
+
render(): TemplateResult;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Roughly how much someone could borrow, from what they earn, and the price
|
|
267
|
+
* of home that buys with their deposit.
|
|
268
|
+
*
|
|
269
|
+
* Lenders usually lend four to four and a half times income; the multiple is
|
|
270
|
+
* a setting. It is a guide, not an offer, and the small print says so.
|
|
271
|
+
*
|
|
272
|
+
* @category form
|
|
273
|
+
* @icon pound
|
|
274
|
+
*/
|
|
275
|
+
export declare class ImpktAffordabilityCalculator extends ImpktElement {
|
|
276
|
+
static properties: {
|
|
277
|
+
heading: {
|
|
278
|
+
type: StringConstructor;
|
|
279
|
+
};
|
|
280
|
+
income: {
|
|
281
|
+
type: NumberConstructor;
|
|
282
|
+
};
|
|
283
|
+
secondIncome: {
|
|
284
|
+
type: NumberConstructor;
|
|
285
|
+
attribute: string;
|
|
286
|
+
};
|
|
287
|
+
deposit: {
|
|
288
|
+
type: NumberConstructor;
|
|
289
|
+
};
|
|
290
|
+
timesIncome: {
|
|
291
|
+
type: NumberConstructor;
|
|
292
|
+
attribute: string;
|
|
293
|
+
};
|
|
294
|
+
smallPrint: {
|
|
295
|
+
type: StringConstructor;
|
|
296
|
+
attribute: string;
|
|
297
|
+
};
|
|
298
|
+
headingLevel: {
|
|
299
|
+
type: NumberConstructor;
|
|
300
|
+
attribute: string;
|
|
301
|
+
};
|
|
302
|
+
spaceAbove: {
|
|
303
|
+
type: StringConstructor;
|
|
304
|
+
reflect: boolean;
|
|
305
|
+
attribute: string;
|
|
306
|
+
};
|
|
307
|
+
spaceBelow: {
|
|
308
|
+
type: StringConstructor;
|
|
309
|
+
reflect: boolean;
|
|
310
|
+
attribute: string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
heading: string;
|
|
314
|
+
income: number;
|
|
315
|
+
secondIncome: number;
|
|
316
|
+
deposit: number;
|
|
317
|
+
/** How many times income a lender would lend, such as 4.5. */
|
|
318
|
+
timesIncome: number;
|
|
319
|
+
smallPrint: string;
|
|
320
|
+
headingLevel: 2 | 3;
|
|
321
|
+
spaceAbove: Space;
|
|
322
|
+
spaceBelow: Space;
|
|
323
|
+
constructor();
|
|
324
|
+
static styles: import("lit").CSSResult[];
|
|
325
|
+
private field;
|
|
326
|
+
render(): TemplateResult;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* How to get in touch: a phone number, opening hours, an email address, and a
|
|
330
|
+
* short form to ask for a call back.
|
|
331
|
+
*
|
|
332
|
+
* The form fires `impkt-submit` with the name, phone number and best time; the
|
|
333
|
+
* app sends it on. Then the block thanks them in place.
|
|
334
|
+
*
|
|
335
|
+
* @category content
|
|
336
|
+
* @icon phone
|
|
337
|
+
*/
|
|
338
|
+
export declare class ImpktContactBlock extends ImpktElement {
|
|
339
|
+
static properties: {
|
|
340
|
+
heading: {
|
|
341
|
+
type: StringConstructor;
|
|
342
|
+
};
|
|
343
|
+
phone: {
|
|
344
|
+
type: StringConstructor;
|
|
345
|
+
};
|
|
346
|
+
hours: {
|
|
347
|
+
type: StringConstructor;
|
|
348
|
+
};
|
|
349
|
+
email: {
|
|
350
|
+
type: StringConstructor;
|
|
351
|
+
};
|
|
352
|
+
callbackHeading: {
|
|
353
|
+
type: StringConstructor;
|
|
354
|
+
attribute: string;
|
|
355
|
+
};
|
|
356
|
+
buttonText: {
|
|
357
|
+
type: StringConstructor;
|
|
358
|
+
attribute: string;
|
|
359
|
+
};
|
|
360
|
+
doneText: {
|
|
361
|
+
type: StringConstructor;
|
|
362
|
+
attribute: string;
|
|
363
|
+
};
|
|
364
|
+
headingLevel: {
|
|
365
|
+
type: NumberConstructor;
|
|
366
|
+
attribute: string;
|
|
367
|
+
};
|
|
368
|
+
spaceAbove: {
|
|
369
|
+
type: StringConstructor;
|
|
370
|
+
reflect: boolean;
|
|
371
|
+
attribute: string;
|
|
372
|
+
};
|
|
373
|
+
spaceBelow: {
|
|
374
|
+
type: StringConstructor;
|
|
375
|
+
reflect: boolean;
|
|
376
|
+
attribute: string;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
heading: string;
|
|
380
|
+
phone: string;
|
|
381
|
+
/** One line a day or range, such as "Monday to Friday, 9am to 6pm". */
|
|
382
|
+
hours: string;
|
|
383
|
+
email: string;
|
|
384
|
+
/** Leave empty to show no call back form. */
|
|
385
|
+
callbackHeading: string;
|
|
386
|
+
buttonText: string;
|
|
387
|
+
doneText: string;
|
|
388
|
+
headingLevel: 2 | 3;
|
|
389
|
+
sent: boolean;
|
|
390
|
+
spaceAbove: Space;
|
|
391
|
+
spaceBelow: Space;
|
|
392
|
+
constructor();
|
|
393
|
+
static styles: import("lit").CSSResult[];
|
|
394
|
+
private submit;
|
|
395
|
+
render(): TemplateResult;
|
|
396
|
+
}
|
|
397
|
+
declare global {
|
|
398
|
+
interface HTMLElementTagNameMap {
|
|
399
|
+
'impkt-plan-comparison': ImpktPlanComparison;
|
|
400
|
+
'impkt-video': ImpktVideo;
|
|
401
|
+
'impkt-regulatory-notice': ImpktRegulatoryNotice;
|
|
402
|
+
'impkt-stamp-duty-calculator': ImpktStampDutyCalculator;
|
|
403
|
+
'impkt-affordability-calculator': ImpktAffordabilityCalculator;
|
|
404
|
+
'impkt-contact-block': ImpktContactBlock;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ImpktAffordabilityCalculator,
|
|
3
|
+
ImpktContactBlock,
|
|
4
|
+
ImpktPlanComparison,
|
|
5
|
+
ImpktRegulatoryNotice,
|
|
6
|
+
ImpktStampDutyCalculator,
|
|
7
|
+
ImpktVideo,
|
|
8
|
+
SDLT,
|
|
9
|
+
embedOf,
|
|
10
|
+
stampDuty
|
|
11
|
+
} from "../chunk-UHLRXI6J.js";
|
|
12
|
+
import "../chunk-3IGNZTJU.js";
|
|
13
|
+
import "../chunk-D6C7XEY4.js";
|
|
14
|
+
export {
|
|
15
|
+
ImpktAffordabilityCalculator,
|
|
16
|
+
ImpktContactBlock,
|
|
17
|
+
ImpktPlanComparison,
|
|
18
|
+
ImpktRegulatoryNotice,
|
|
19
|
+
ImpktStampDutyCalculator,
|
|
20
|
+
ImpktVideo,
|
|
21
|
+
SDLT,
|
|
22
|
+
embedOf,
|
|
23
|
+
stampDuty
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=selling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A site's own header and footer, drawn as one piece each, for the layout's
|
|
3
|
+
* header and footer slots.
|
|
4
|
+
*
|
|
5
|
+
* The page frame (`impkt-page`) gives them their landmarks, so neither draws a
|
|
6
|
+
* `<header>` or `<footer>` of its own: a second banner would be one a screen
|
|
7
|
+
* reader announces twice.
|
|
8
|
+
*/
|
|
9
|
+
import { type TemplateResult } from 'lit';
|
|
10
|
+
import { ImpktElement } from '../base/ImpktElement';
|
|
11
|
+
import { type Tone } from './changelog';
|
|
12
|
+
import type { NavLink } from './navigation';
|
|
13
|
+
import './navigation';
|
|
14
|
+
import './button';
|
|
15
|
+
/**
|
|
16
|
+
* The site header: the brand, the main links and one call to action, with an
|
|
17
|
+
* optional chip beside the brand and a status before the action.
|
|
18
|
+
*
|
|
19
|
+
* The links fold behind a Menu button when they do not fit, as `impkt-nav`
|
|
20
|
+
* does. The chip and the status are labels, not controls, and they are left
|
|
21
|
+
* out on a phone so the brand, the menu and the action keep the row.
|
|
22
|
+
*
|
|
23
|
+
* **Build your own.** Place components in its three slots, start, middle and
|
|
24
|
+
* end, and each slot that holds something replaces what the props draw there:
|
|
25
|
+
* a wordmark and chips at the start, a nav in the middle, a status and a
|
|
26
|
+
* button at the end, in any order. Give a component `hideOn: 'phone'` to leave
|
|
27
|
+
* it out on a phone, so the phone's header is built from the same pieces.
|
|
28
|
+
*
|
|
29
|
+
* @category layout
|
|
30
|
+
* @icon header
|
|
31
|
+
* @slot start - The brand: a wordmark or logo, and any chips beside it.
|
|
32
|
+
* @slot middle - The links, usually one nav.
|
|
33
|
+
* @slot end - A status and the call to action.
|
|
34
|
+
* @fires impkt-action - When the call to action is pressed.
|
|
35
|
+
*/
|
|
36
|
+
export declare class ImpktSiteHeader extends ImpktElement {
|
|
37
|
+
static properties: {
|
|
38
|
+
brand: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
};
|
|
41
|
+
logoSrc: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
attribute: string;
|
|
44
|
+
};
|
|
45
|
+
logoAlt: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
attribute: string;
|
|
48
|
+
};
|
|
49
|
+
home: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
};
|
|
52
|
+
badge: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
};
|
|
55
|
+
meta: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
};
|
|
58
|
+
links: {
|
|
59
|
+
type: ArrayConstructor;
|
|
60
|
+
};
|
|
61
|
+
label: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
};
|
|
64
|
+
menuText: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
attribute: string;
|
|
67
|
+
};
|
|
68
|
+
status: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
};
|
|
71
|
+
statusMeta: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
attribute: string;
|
|
74
|
+
};
|
|
75
|
+
statusTone: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
attribute: string;
|
|
78
|
+
};
|
|
79
|
+
actionText: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
attribute: string;
|
|
82
|
+
};
|
|
83
|
+
actionHref: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
attribute: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
/** The site's name, set as a wordmark when there is no logo picture. */
|
|
89
|
+
brand: string;
|
|
90
|
+
/** A logo picture, used instead of the wordmark. */
|
|
91
|
+
logoSrc: string;
|
|
92
|
+
/** What the logo says. Leave empty to use the brand name. */
|
|
93
|
+
logoAlt: string;
|
|
94
|
+
/** Where the brand links to. */
|
|
95
|
+
home: string;
|
|
96
|
+
/** A short chip beside the brand, such as "main". */
|
|
97
|
+
badge: string;
|
|
98
|
+
/** A code-like line after the chip, such as a commit hash. */
|
|
99
|
+
meta: string;
|
|
100
|
+
links: NavLink[];
|
|
101
|
+
/** The name of the links' landmark. */
|
|
102
|
+
label: string;
|
|
103
|
+
/** The words on the button that opens the links on a narrow screen. */
|
|
104
|
+
menuText: string;
|
|
105
|
+
/** A status before the action, such as the stage the site is at. */
|
|
106
|
+
status: string;
|
|
107
|
+
/** A code-like line in the status, such as a hash. */
|
|
108
|
+
statusMeta: string;
|
|
109
|
+
statusTone: Tone;
|
|
110
|
+
actionText: string;
|
|
111
|
+
actionHref: string;
|
|
112
|
+
constructor();
|
|
113
|
+
static styles: import("lit").CSSResult[];
|
|
114
|
+
private act;
|
|
115
|
+
render(): TemplateResult;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* The site's name as a wordmark, or its logo, linking home: the start of a
|
|
119
|
+
* site header.
|
|
120
|
+
*
|
|
121
|
+
* @category layout
|
|
122
|
+
* @icon logo
|
|
123
|
+
*/
|
|
124
|
+
export declare class ImpktWordmark extends ImpktElement {
|
|
125
|
+
static properties: {
|
|
126
|
+
text: {
|
|
127
|
+
type: StringConstructor;
|
|
128
|
+
};
|
|
129
|
+
src: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
};
|
|
132
|
+
alt: {
|
|
133
|
+
type: StringConstructor;
|
|
134
|
+
};
|
|
135
|
+
href: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
};
|
|
138
|
+
size: {
|
|
139
|
+
type: StringConstructor;
|
|
140
|
+
reflect: boolean;
|
|
141
|
+
};
|
|
142
|
+
hideOn: {
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
reflect: boolean;
|
|
145
|
+
attribute: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
/** The name, set in the heading face. */
|
|
149
|
+
text: string;
|
|
150
|
+
/** A logo picture, used instead of the name. */
|
|
151
|
+
src: string;
|
|
152
|
+
/** What the logo says. Leave empty to use the name. */
|
|
153
|
+
alt: string;
|
|
154
|
+
href: string;
|
|
155
|
+
/** Larger on a wide header, smaller on a phone's. */
|
|
156
|
+
size: 'sm' | 'md' | 'lg';
|
|
157
|
+
hideOn: 'never' | 'phone' | 'wide';
|
|
158
|
+
constructor();
|
|
159
|
+
static styles: import("lit").CSSResult[];
|
|
160
|
+
render(): TemplateResult;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* A short label: a branch name with its icon, a status with its dot, or a
|
|
164
|
+
* code such as a commit hash. It says something; it does nothing.
|
|
165
|
+
*
|
|
166
|
+
* @category content
|
|
167
|
+
* @icon badge
|
|
168
|
+
*/
|
|
169
|
+
export declare class ImpktChip extends ImpktElement {
|
|
170
|
+
static properties: {
|
|
171
|
+
label: {
|
|
172
|
+
type: StringConstructor;
|
|
173
|
+
};
|
|
174
|
+
meta: {
|
|
175
|
+
type: StringConstructor;
|
|
176
|
+
};
|
|
177
|
+
icon: {
|
|
178
|
+
type: StringConstructor;
|
|
179
|
+
reflect: boolean;
|
|
180
|
+
};
|
|
181
|
+
tone: {
|
|
182
|
+
type: StringConstructor;
|
|
183
|
+
};
|
|
184
|
+
look: {
|
|
185
|
+
type: StringConstructor;
|
|
186
|
+
reflect: boolean;
|
|
187
|
+
};
|
|
188
|
+
hideOn: {
|
|
189
|
+
type: StringConstructor;
|
|
190
|
+
reflect: boolean;
|
|
191
|
+
attribute: string;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
label: string;
|
|
195
|
+
/** A code after the label, quieter, such as a hash. */
|
|
196
|
+
meta: string;
|
|
197
|
+
/** A coloured dot, a branch, or nothing before the label. */
|
|
198
|
+
icon: 'none' | 'dot' | 'branch';
|
|
199
|
+
/** The dot's colour: a named tone, or 1 to 5 for the brand's chart colours. */
|
|
200
|
+
tone: Tone;
|
|
201
|
+
/** `outlined` on the card colour, `filled` with a faint wash, or `plain` words in the code face. */
|
|
202
|
+
look: 'outlined' | 'filled' | 'plain';
|
|
203
|
+
hideOn: 'never' | 'phone' | 'wide';
|
|
204
|
+
constructor();
|
|
205
|
+
static styles: import("lit").CSSResult[];
|
|
206
|
+
render(): TemplateResult;
|
|
207
|
+
}
|
|
208
|
+
/** One line of a footer's log: a code, what it says, and the colour of its dot. */
|
|
209
|
+
export interface FooterLogLine {
|
|
210
|
+
meta?: string;
|
|
211
|
+
text: string;
|
|
212
|
+
tone?: Tone;
|
|
213
|
+
}
|
|
214
|
+
/** A column of footer links under a short heading. */
|
|
215
|
+
export interface FooterColumn {
|
|
216
|
+
heading: string;
|
|
217
|
+
links: NavLink[];
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* The site footer: the footer band with the brand set large, an optional log of
|
|
221
|
+
* lines beside it, columns of links, a legal line and a stripe of the brand's
|
|
222
|
+
* colours along the foot.
|
|
223
|
+
*
|
|
224
|
+
* Each column is a list under its own heading, so a screen reader can move
|
|
225
|
+
* from one to the next. The log is a list too; its dots are decoration.
|
|
226
|
+
*
|
|
227
|
+
* @category layout
|
|
228
|
+
* @icon footer
|
|
229
|
+
*/
|
|
230
|
+
export declare class ImpktSiteFooter extends ImpktElement {
|
|
231
|
+
static properties: {
|
|
232
|
+
brand: {
|
|
233
|
+
type: StringConstructor;
|
|
234
|
+
};
|
|
235
|
+
log: {
|
|
236
|
+
type: ArrayConstructor;
|
|
237
|
+
};
|
|
238
|
+
columns: {
|
|
239
|
+
type: ArrayConstructor;
|
|
240
|
+
};
|
|
241
|
+
columnsOnPhone: {
|
|
242
|
+
type: StringConstructor;
|
|
243
|
+
attribute: string;
|
|
244
|
+
reflect: boolean;
|
|
245
|
+
};
|
|
246
|
+
legal: {
|
|
247
|
+
type: StringConstructor;
|
|
248
|
+
};
|
|
249
|
+
stripe: {
|
|
250
|
+
type: BooleanConstructor;
|
|
251
|
+
reflect: boolean;
|
|
252
|
+
};
|
|
253
|
+
headingLevel: {
|
|
254
|
+
type: NumberConstructor;
|
|
255
|
+
attribute: string;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
/** The site's name, set large. */
|
|
259
|
+
brand: string;
|
|
260
|
+
/** Lines set in code type under the brand, newest first. The first is bright. */
|
|
261
|
+
log: FooterLogLine[];
|
|
262
|
+
columns: FooterColumn[];
|
|
263
|
+
/** `hidden` leaves the link columns out on a phone, so the footer there is the name, the lines and the legal line. */
|
|
264
|
+
columnsOnPhone: 'shown' | 'hidden';
|
|
265
|
+
/** The line at the foot, such as the copyright. */
|
|
266
|
+
legal: string;
|
|
267
|
+
/** A stripe of the brand's colours along the bottom edge. */
|
|
268
|
+
stripe: boolean;
|
|
269
|
+
/** The level of each column's heading. */
|
|
270
|
+
headingLevel: 2 | 3 | 4;
|
|
271
|
+
constructor();
|
|
272
|
+
static styles: import("lit").CSSResult[];
|
|
273
|
+
private heading;
|
|
274
|
+
render(): TemplateResult;
|
|
275
|
+
}
|
|
276
|
+
declare global {
|
|
277
|
+
interface HTMLElementTagNameMap {
|
|
278
|
+
'impkt-site-header': ImpktSiteHeader;
|
|
279
|
+
'impkt-wordmark': ImpktWordmark;
|
|
280
|
+
'impkt-chip': ImpktChip;
|
|
281
|
+
'impkt-site-footer': ImpktSiteFooter;
|
|
282
|
+
}
|
|
283
|
+
}
|