@atomic-ui/ui 0.1.7 → 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 +5 -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 +5 -1
- package/dist/{chunk-GSCVG2ER.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-4HU4Y23Q.js → chunk-3IQ73WNW.js} +3 -3
- package/dist/{chunk-7Y6UCSUS.js → chunk-4X723QBD.js} +4 -4
- package/dist/chunk-4X723QBD.js.map +1 -0
- package/dist/{chunk-OB7LC6NJ.js → chunk-6YYAOKNI.js} +2 -2
- package/dist/{chunk-7BIQ3K6H.js → chunk-7AJN2TIS.js} +2 -2
- package/dist/chunk-7BSZPUE3.js +53 -0
- package/dist/chunk-7BSZPUE3.js.map +1 -0
- package/dist/{chunk-HWWA27DN.js → chunk-7OXTZJR4.js} +2 -2
- package/dist/chunk-7XEPNEVQ.js +264 -0
- package/dist/chunk-7XEPNEVQ.js.map +1 -0
- package/dist/{chunk-NTNXHLTM.js → chunk-D6C7XEY4.js} +41 -1
- package/dist/chunk-D6C7XEY4.js.map +1 -0
- package/dist/{chunk-C36CZRHK.js → chunk-E2VBUWJ4.js} +43 -13
- package/dist/chunk-E2VBUWJ4.js.map +1 -0
- package/dist/{chunk-XJP45LFA.js → chunk-E3XJK7MY.js} +13 -5
- package/dist/chunk-E3XJK7MY.js.map +1 -0
- package/dist/{chunk-GO2IBRFP.js → chunk-EDSZI227.js} +2 -2
- package/dist/{chunk-6ICOJPMD.js → chunk-FFCIY7NM.js} +4 -3
- package/dist/chunk-FFCIY7NM.js.map +1 -0
- package/dist/{chunk-MOEMFL4K.js → chunk-FJRHZA3C.js} +5 -5
- package/dist/chunk-FJRHZA3C.js.map +1 -0
- package/dist/{chunk-ZGAOMRYD.js → chunk-GQDUHZE3.js} +3 -3
- package/dist/{chunk-QCNT7D5V.js → chunk-HYPPG4NF.js} +12 -8
- 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-2YQA3VBY.js → chunk-KFD4O7VA.js} +4 -2
- package/dist/chunk-KFD4O7VA.js.map +1 -0
- package/dist/{chunk-ZQJD4YEJ.js → chunk-MVEFM5QI.js} +3 -3
- package/dist/{chunk-WECSVHIM.js → chunk-NCASAXQT.js} +7 -3
- package/dist/chunk-NCASAXQT.js.map +1 -0
- package/dist/{chunk-QDNI54ON.js → chunk-NKTMMJYD.js} +7 -6
- package/dist/chunk-NKTMMJYD.js.map +1 -0
- package/dist/{chunk-T6L3USBZ.js → chunk-OB7WULFK.js} +23 -11
- package/dist/chunk-OB7WULFK.js.map +1 -0
- package/dist/{chunk-ZBLTU67D.js → chunk-OHDPGIJ3.js} +15 -11
- package/dist/chunk-OHDPGIJ3.js.map +1 -0
- package/dist/{chunk-TPF4MOMF.js → chunk-OLLZFNO6.js} +7 -4
- package/dist/chunk-OLLZFNO6.js.map +1 -0
- package/dist/{chunk-NQKYHILD.js → chunk-OMJMUFOW.js} +3 -3
- package/dist/{chunk-MLVUMCQ2.js → chunk-QB2KMV6S.js} +14 -5
- package/dist/chunk-QB2KMV6S.js.map +1 -0
- package/dist/{chunk-5EA4IDUD.js → chunk-R67PDFKE.js} +2 -2
- package/dist/chunk-RZSZQMSE.js +236 -0
- package/dist/chunk-RZSZQMSE.js.map +1 -0
- package/dist/{chunk-XVKEM5JY.js → chunk-TGT7J4EG.js} +2 -2
- package/dist/{chunk-VTFCTWSX.js → chunk-UCHJCUYI.js} +2 -2
- package/dist/chunk-UHLRXI6J.js +453 -0
- package/dist/chunk-UHLRXI6J.js.map +1 -0
- package/dist/{chunk-X7IPZPTG.js → chunk-UNVL3CNM.js} +34 -19
- package/dist/chunk-UNVL3CNM.js.map +1 -0
- package/dist/{chunk-VWNBB7FW.js → chunk-WDDWWCHN.js} +2 -2
- package/dist/chunk-WFKSOM6O.js +498 -0
- package/dist/chunk-WFKSOM6O.js.map +1 -0
- package/dist/{chunk-G6OVKNL7.js → chunk-XEJMFFIM.js} +4 -3
- package/dist/chunk-XEJMFFIM.js.map +1 -0
- package/dist/{chunk-CMAU4DSB.js → chunk-XJXCTGDR.js} +5 -5
- package/dist/chunk-XJXCTGDR.js.map +1 -0
- package/dist/{chunk-BTGCUONV.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.js +5 -4
- package/dist/components/blocks.js +3 -3
- package/dist/components/button.d.ts +7 -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.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 +24 -0
- 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.js +3 -3
- package/dist/components/media.d.ts +10 -0
- package/dist/components/media.js +2 -2
- package/dist/components/navigation.d.ts +16 -0
- package/dist/components/navigation.js +3 -3
- package/dist/components/organisms.d.ts +12 -0
- package/dist/components/organisms.js +3 -3
- package/dist/components/page.js +2 -2
- package/dist/components/price.d.ts +1 -1
- package/dist/components/price.js +3 -2
- package/dist/components/progress.js +2 -2
- package/dist/components/property.js +4 -3
- 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 +9 -1
- package/dist/index.js +134 -55
- package/package.json +11 -4
- package/dist/chunk-2YQA3VBY.js.map +0 -1
- package/dist/chunk-6ICOJPMD.js.map +0 -1
- package/dist/chunk-7Y6UCSUS.js.map +0 -1
- package/dist/chunk-C36CZRHK.js.map +0 -1
- package/dist/chunk-CMAU4DSB.js.map +0 -1
- package/dist/chunk-G6OVKNL7.js.map +0 -1
- package/dist/chunk-MLVUMCQ2.js.map +0 -1
- package/dist/chunk-MOEMFL4K.js.map +0 -1
- package/dist/chunk-NTNXHLTM.js.map +0 -1
- package/dist/chunk-QCNT7D5V.js.map +0 -1
- package/dist/chunk-QDNI54ON.js.map +0 -1
- package/dist/chunk-T6L3USBZ.js.map +0 -1
- package/dist/chunk-TPF4MOMF.js.map +0 -1
- package/dist/chunk-WECSVHIM.js.map +0 -1
- package/dist/chunk-X7IPZPTG.js.map +0 -1
- package/dist/chunk-XJP45LFA.js.map +0 -1
- package/dist/chunk-ZBLTU67D.js.map +0 -1
- /package/dist/{chunk-GSCVG2ER.js.map → chunk-26O27BQS.js.map} +0 -0
- /package/dist/{chunk-4HU4Y23Q.js.map → chunk-3IQ73WNW.js.map} +0 -0
- /package/dist/{chunk-OB7LC6NJ.js.map → chunk-6YYAOKNI.js.map} +0 -0
- /package/dist/{chunk-7BIQ3K6H.js.map → chunk-7AJN2TIS.js.map} +0 -0
- /package/dist/{chunk-HWWA27DN.js.map → chunk-7OXTZJR4.js.map} +0 -0
- /package/dist/{chunk-GO2IBRFP.js.map → chunk-EDSZI227.js.map} +0 -0
- /package/dist/{chunk-ZGAOMRYD.js.map → chunk-GQDUHZE3.js.map} +0 -0
- /package/dist/{chunk-ZQJD4YEJ.js.map → chunk-MVEFM5QI.js.map} +0 -0
- /package/dist/{chunk-NQKYHILD.js.map → chunk-OMJMUFOW.js.map} +0 -0
- /package/dist/{chunk-5EA4IDUD.js.map → chunk-R67PDFKE.js.map} +0 -0
- /package/dist/{chunk-XVKEM5JY.js.map → chunk-TGT7J4EG.js.map} +0 -0
- /package/dist/{chunk-VTFCTWSX.js.map → chunk-UCHJCUYI.js.map} +0 -0
- /package/dist/{chunk-VWNBB7FW.js.map → chunk-WDDWWCHN.js.map} +0 -0
- /package/dist/{chunk-BTGCUONV.js.map → chunk-YD6IZ2C5.js.map} +0 -0
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
import { nothing, type TemplateResult } from 'lit';
|
|
2
|
+
import { ImpktElement } from '../base/ImpktElement';
|
|
3
|
+
import { FieldElement } from '../base/FieldElement';
|
|
4
|
+
/** One address a postcode search found. */
|
|
5
|
+
export interface AddressItem {
|
|
6
|
+
id: string;
|
|
7
|
+
/** The address on one line, as the customer will recognise it. */
|
|
8
|
+
line: string;
|
|
9
|
+
}
|
|
10
|
+
/** One mistake on the page, and the field it is about. */
|
|
11
|
+
export interface ErrorItem {
|
|
12
|
+
id: string;
|
|
13
|
+
text: string;
|
|
14
|
+
/** The field to go to, such as `#postcode`. */
|
|
15
|
+
href: string;
|
|
16
|
+
}
|
|
17
|
+
/** One part of a long application. */
|
|
18
|
+
export interface TaskItem {
|
|
19
|
+
id: string;
|
|
20
|
+
title: string;
|
|
21
|
+
/** Where the part is filled in. Left out while it cannot be started. */
|
|
22
|
+
href?: string;
|
|
23
|
+
status: 'done' | 'in-progress' | 'not-started' | 'cannot-start';
|
|
24
|
+
/** A line under the title, such as how long it takes. */
|
|
25
|
+
hint?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Find an address from a postcode, then pick it from a list.
|
|
29
|
+
*
|
|
30
|
+
* The addresses come from the app. With `lookup-url` set, the component asks
|
|
31
|
+
* that address itself (`?postcode=…`, answering `[{ id, line }]`); otherwise
|
|
32
|
+
* it fires `impkt-lookup` with the postcode and the app sets `addresses`.
|
|
33
|
+
* There is always a way to type the address in, because no list is complete.
|
|
34
|
+
*
|
|
35
|
+
* @category form
|
|
36
|
+
* @icon home
|
|
37
|
+
*/
|
|
38
|
+
export declare class ImpktAddressLookup extends FieldElement {
|
|
39
|
+
static properties: {
|
|
40
|
+
postcodeLabel: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
attribute: string;
|
|
43
|
+
};
|
|
44
|
+
findText: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
attribute: string;
|
|
47
|
+
};
|
|
48
|
+
chooseLabel: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
attribute: string;
|
|
51
|
+
};
|
|
52
|
+
manualText: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
attribute: string;
|
|
55
|
+
};
|
|
56
|
+
notFoundText: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
attribute: string;
|
|
59
|
+
};
|
|
60
|
+
lookupUrl: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
attribute: string;
|
|
63
|
+
};
|
|
64
|
+
addresses: {
|
|
65
|
+
type: ArrayConstructor;
|
|
66
|
+
};
|
|
67
|
+
label: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
};
|
|
70
|
+
name: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
};
|
|
73
|
+
value: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
};
|
|
76
|
+
description: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
};
|
|
79
|
+
error: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
};
|
|
82
|
+
required: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
reflect: boolean;
|
|
85
|
+
};
|
|
86
|
+
disabled: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
reflect: boolean;
|
|
89
|
+
};
|
|
90
|
+
readonly: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
reflect: boolean;
|
|
93
|
+
};
|
|
94
|
+
requiredText: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
attribute: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
postcodeLabel: string;
|
|
100
|
+
findText: string;
|
|
101
|
+
chooseLabel: string;
|
|
102
|
+
manualText: string;
|
|
103
|
+
notFoundText: string;
|
|
104
|
+
/** An address that returns `[{ id, line }]` for `?postcode=`. Optional. */
|
|
105
|
+
lookupUrl: string;
|
|
106
|
+
addresses: AddressItem[];
|
|
107
|
+
manual: boolean;
|
|
108
|
+
postcode: string;
|
|
109
|
+
searched: boolean;
|
|
110
|
+
busy: boolean;
|
|
111
|
+
constructor();
|
|
112
|
+
static styles: import("lit").CSSResult[];
|
|
113
|
+
private find;
|
|
114
|
+
private manualLine;
|
|
115
|
+
protected renderControl(): TemplateResult;
|
|
116
|
+
updated(changed: Map<string, unknown>): void;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Every mistake on the page, listed at the top, each linking to its field.
|
|
120
|
+
*
|
|
121
|
+
* It takes focus when it appears, so someone using a screen reader hears what
|
|
122
|
+
* is wrong straight away rather than finding out field by field. It draws
|
|
123
|
+
* nothing while there are no mistakes.
|
|
124
|
+
*
|
|
125
|
+
* @category feedback
|
|
126
|
+
* @icon alert
|
|
127
|
+
*/
|
|
128
|
+
export declare class ImpktErrorSummary extends ImpktElement {
|
|
129
|
+
static properties: {
|
|
130
|
+
heading: {
|
|
131
|
+
type: StringConstructor;
|
|
132
|
+
};
|
|
133
|
+
items: {
|
|
134
|
+
type: ArrayConstructor;
|
|
135
|
+
};
|
|
136
|
+
spaceAbove: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
reflect: boolean;
|
|
139
|
+
attribute: string;
|
|
140
|
+
};
|
|
141
|
+
spaceBelow: {
|
|
142
|
+
type: StringConstructor;
|
|
143
|
+
reflect: boolean;
|
|
144
|
+
attribute: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
heading: string;
|
|
148
|
+
items: ErrorItem[];
|
|
149
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
150
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
151
|
+
constructor();
|
|
152
|
+
static styles: import("lit").CSSResult[];
|
|
153
|
+
private go;
|
|
154
|
+
updated(changed: Map<string, unknown>): void;
|
|
155
|
+
render(): TemplateResult | typeof nothing;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Add one or more files, such as proof of identity or photos for a claim.
|
|
159
|
+
*
|
|
160
|
+
* A file can be chosen or dropped on the box. Each one is checked for type and
|
|
161
|
+
* size here and listed with a Remove button; the upload itself is the app's,
|
|
162
|
+
* which gets the files on `impkt-files`. The answer is the file names.
|
|
163
|
+
*
|
|
164
|
+
* @category form
|
|
165
|
+
* @icon upload
|
|
166
|
+
*/
|
|
167
|
+
export declare class ImpktFileUpload extends FieldElement {
|
|
168
|
+
static properties: {
|
|
169
|
+
accept: {
|
|
170
|
+
type: StringConstructor;
|
|
171
|
+
};
|
|
172
|
+
manyFiles: {
|
|
173
|
+
type: BooleanConstructor;
|
|
174
|
+
attribute: string;
|
|
175
|
+
};
|
|
176
|
+
maxSizeMb: {
|
|
177
|
+
type: NumberConstructor;
|
|
178
|
+
attribute: string;
|
|
179
|
+
};
|
|
180
|
+
chooseText: {
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
attribute: string;
|
|
183
|
+
};
|
|
184
|
+
dropText: {
|
|
185
|
+
type: StringConstructor;
|
|
186
|
+
attribute: string;
|
|
187
|
+
};
|
|
188
|
+
label: {
|
|
189
|
+
type: StringConstructor;
|
|
190
|
+
};
|
|
191
|
+
name: {
|
|
192
|
+
type: StringConstructor;
|
|
193
|
+
};
|
|
194
|
+
value: {
|
|
195
|
+
type: StringConstructor;
|
|
196
|
+
};
|
|
197
|
+
description: {
|
|
198
|
+
type: StringConstructor;
|
|
199
|
+
};
|
|
200
|
+
error: {
|
|
201
|
+
type: StringConstructor;
|
|
202
|
+
};
|
|
203
|
+
required: {
|
|
204
|
+
type: BooleanConstructor;
|
|
205
|
+
reflect: boolean;
|
|
206
|
+
};
|
|
207
|
+
disabled: {
|
|
208
|
+
type: BooleanConstructor;
|
|
209
|
+
reflect: boolean;
|
|
210
|
+
};
|
|
211
|
+
readonly: {
|
|
212
|
+
type: BooleanConstructor;
|
|
213
|
+
reflect: boolean;
|
|
214
|
+
};
|
|
215
|
+
requiredText: {
|
|
216
|
+
type: StringConstructor;
|
|
217
|
+
attribute: string;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
/** File types allowed, such as `.pdf,.jpg,.png`. Empty allows any. */
|
|
221
|
+
accept: string;
|
|
222
|
+
/** Let more than one file be added. */
|
|
223
|
+
manyFiles: boolean;
|
|
224
|
+
maxSizeMb: number;
|
|
225
|
+
chooseText: string;
|
|
226
|
+
dropText: string;
|
|
227
|
+
files: File[];
|
|
228
|
+
over: boolean;
|
|
229
|
+
constructor();
|
|
230
|
+
static styles: import("lit").CSSResult[];
|
|
231
|
+
private fits;
|
|
232
|
+
/** Adds files, keeping only those that pass, and says why any did not. */
|
|
233
|
+
add(list: FileList | File[]): void;
|
|
234
|
+
private removeFile;
|
|
235
|
+
private sync;
|
|
236
|
+
protected renderControl(): TemplateResult;
|
|
237
|
+
}
|
|
238
|
+
/** "250000" → "250,000". Anything not a number is left as typed. */
|
|
239
|
+
export declare function groupDigits(value: string): string;
|
|
240
|
+
/**
|
|
241
|
+
* An amount of money, with the currency sign in front and commas as it is
|
|
242
|
+
* read back, so £250,000 is not mistaken for £25,000.
|
|
243
|
+
*
|
|
244
|
+
* The answer is the plain number, such as `250000`.
|
|
245
|
+
*
|
|
246
|
+
* @category form
|
|
247
|
+
* @icon pound
|
|
248
|
+
*/
|
|
249
|
+
export declare class ImpktMoneyInput extends FieldElement {
|
|
250
|
+
static properties: {
|
|
251
|
+
currency: {
|
|
252
|
+
type: StringConstructor;
|
|
253
|
+
};
|
|
254
|
+
lowest: {
|
|
255
|
+
type: NumberConstructor;
|
|
256
|
+
};
|
|
257
|
+
highest: {
|
|
258
|
+
type: NumberConstructor;
|
|
259
|
+
};
|
|
260
|
+
pence: {
|
|
261
|
+
type: BooleanConstructor;
|
|
262
|
+
};
|
|
263
|
+
width: {
|
|
264
|
+
type: StringConstructor;
|
|
265
|
+
reflect: boolean;
|
|
266
|
+
};
|
|
267
|
+
label: {
|
|
268
|
+
type: StringConstructor;
|
|
269
|
+
};
|
|
270
|
+
name: {
|
|
271
|
+
type: StringConstructor;
|
|
272
|
+
};
|
|
273
|
+
value: {
|
|
274
|
+
type: StringConstructor;
|
|
275
|
+
};
|
|
276
|
+
description: {
|
|
277
|
+
type: StringConstructor;
|
|
278
|
+
};
|
|
279
|
+
error: {
|
|
280
|
+
type: StringConstructor;
|
|
281
|
+
};
|
|
282
|
+
required: {
|
|
283
|
+
type: BooleanConstructor;
|
|
284
|
+
reflect: boolean;
|
|
285
|
+
};
|
|
286
|
+
disabled: {
|
|
287
|
+
type: BooleanConstructor;
|
|
288
|
+
reflect: boolean;
|
|
289
|
+
};
|
|
290
|
+
readonly: {
|
|
291
|
+
type: BooleanConstructor;
|
|
292
|
+
reflect: boolean;
|
|
293
|
+
};
|
|
294
|
+
requiredText: {
|
|
295
|
+
type: StringConstructor;
|
|
296
|
+
attribute: string;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
currency: string;
|
|
300
|
+
lowest: number | undefined;
|
|
301
|
+
highest: number | undefined;
|
|
302
|
+
/** Allow pence. Off for amounts like a house price. */
|
|
303
|
+
pence: boolean;
|
|
304
|
+
width: 'full' | 'lg' | 'md' | 'sm' | 'xs';
|
|
305
|
+
shown: string;
|
|
306
|
+
constructor();
|
|
307
|
+
static styles: import("lit").CSSResult[];
|
|
308
|
+
willUpdate(changed: Map<string, unknown>): void;
|
|
309
|
+
private typed;
|
|
310
|
+
private check;
|
|
311
|
+
protected renderControl(): TemplateResult;
|
|
312
|
+
updated(changed: Map<string, unknown>): void;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Choose a number by sliding, with the value read out beside the label, such
|
|
316
|
+
* as a deposit or how many years. It is a native range control, so arrow keys,
|
|
317
|
+
* a finger and a screen reader all work.
|
|
318
|
+
*
|
|
319
|
+
* @category form
|
|
320
|
+
* @icon sliders
|
|
321
|
+
*/
|
|
322
|
+
export declare class ImpktRangeInput extends FieldElement {
|
|
323
|
+
static properties: {
|
|
324
|
+
lowest: {
|
|
325
|
+
type: NumberConstructor;
|
|
326
|
+
};
|
|
327
|
+
highest: {
|
|
328
|
+
type: NumberConstructor;
|
|
329
|
+
};
|
|
330
|
+
step: {
|
|
331
|
+
type: NumberConstructor;
|
|
332
|
+
};
|
|
333
|
+
currency: {
|
|
334
|
+
type: StringConstructor;
|
|
335
|
+
};
|
|
336
|
+
unit: {
|
|
337
|
+
type: StringConstructor;
|
|
338
|
+
};
|
|
339
|
+
label: {
|
|
340
|
+
type: StringConstructor;
|
|
341
|
+
};
|
|
342
|
+
name: {
|
|
343
|
+
type: StringConstructor;
|
|
344
|
+
};
|
|
345
|
+
value: {
|
|
346
|
+
type: StringConstructor;
|
|
347
|
+
};
|
|
348
|
+
description: {
|
|
349
|
+
type: StringConstructor;
|
|
350
|
+
};
|
|
351
|
+
error: {
|
|
352
|
+
type: StringConstructor;
|
|
353
|
+
};
|
|
354
|
+
required: {
|
|
355
|
+
type: BooleanConstructor;
|
|
356
|
+
reflect: boolean;
|
|
357
|
+
};
|
|
358
|
+
disabled: {
|
|
359
|
+
type: BooleanConstructor;
|
|
360
|
+
reflect: boolean;
|
|
361
|
+
};
|
|
362
|
+
readonly: {
|
|
363
|
+
type: BooleanConstructor;
|
|
364
|
+
reflect: boolean;
|
|
365
|
+
};
|
|
366
|
+
requiredText: {
|
|
367
|
+
type: StringConstructor;
|
|
368
|
+
attribute: string;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
lowest: number;
|
|
372
|
+
highest: number;
|
|
373
|
+
step: number;
|
|
374
|
+
/** Show the value as money in this currency, such as GBP. Empty shows a plain number. */
|
|
375
|
+
currency: string;
|
|
376
|
+
/** A word after the value, such as `years`. */
|
|
377
|
+
unit: string;
|
|
378
|
+
constructor();
|
|
379
|
+
static styles: import("lit").CSSResult[];
|
|
380
|
+
/** The value as the customer reads it, such as £25,000 or 25 years. */
|
|
381
|
+
shownAs(n: number): string;
|
|
382
|
+
render(): TemplateResult;
|
|
383
|
+
protected renderControl(): TemplateResult;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* The parts of a long application, each with whether it is done, so someone
|
|
387
|
+
* can leave and come back to where they were.
|
|
388
|
+
*
|
|
389
|
+
* @category content
|
|
390
|
+
* @icon list
|
|
391
|
+
*/
|
|
392
|
+
export declare class ImpktTaskList extends ImpktElement {
|
|
393
|
+
static properties: {
|
|
394
|
+
heading: {
|
|
395
|
+
type: StringConstructor;
|
|
396
|
+
};
|
|
397
|
+
items: {
|
|
398
|
+
type: ArrayConstructor;
|
|
399
|
+
};
|
|
400
|
+
headingLevel: {
|
|
401
|
+
type: NumberConstructor;
|
|
402
|
+
attribute: string;
|
|
403
|
+
};
|
|
404
|
+
spaceAbove: {
|
|
405
|
+
type: StringConstructor;
|
|
406
|
+
reflect: boolean;
|
|
407
|
+
attribute: string;
|
|
408
|
+
};
|
|
409
|
+
spaceBelow: {
|
|
410
|
+
type: StringConstructor;
|
|
411
|
+
reflect: boolean;
|
|
412
|
+
attribute: string;
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
heading: string;
|
|
416
|
+
items: TaskItem[];
|
|
417
|
+
headingLevel: 2 | 3;
|
|
418
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
419
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
420
|
+
constructor();
|
|
421
|
+
static styles: import("lit").CSSResult[];
|
|
422
|
+
render(): TemplateResult;
|
|
423
|
+
}
|
|
424
|
+
declare global {
|
|
425
|
+
interface HTMLElementTagNameMap {
|
|
426
|
+
'impkt-address-lookup': ImpktAddressLookup;
|
|
427
|
+
'impkt-error-summary': ImpktErrorSummary;
|
|
428
|
+
'impkt-file-upload': ImpktFileUpload;
|
|
429
|
+
'impkt-money-input': ImpktMoneyInput;
|
|
430
|
+
'impkt-range-input': ImpktRangeInput;
|
|
431
|
+
'impkt-task-list': ImpktTaskList;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ImpktAddressLookup,
|
|
3
|
+
ImpktErrorSummary,
|
|
4
|
+
ImpktFileUpload,
|
|
5
|
+
ImpktMoneyInput,
|
|
6
|
+
ImpktRangeInput,
|
|
7
|
+
ImpktTaskList,
|
|
8
|
+
groupDigits
|
|
9
|
+
} from "../chunk-WFKSOM6O.js";
|
|
10
|
+
import "../chunk-3IGNZTJU.js";
|
|
11
|
+
import "../chunk-7AJN2TIS.js";
|
|
12
|
+
import "../chunk-D6C7XEY4.js";
|
|
13
|
+
export {
|
|
14
|
+
ImpktAddressLookup,
|
|
15
|
+
ImpktErrorSummary,
|
|
16
|
+
ImpktFileUpload,
|
|
17
|
+
ImpktMoneyInput,
|
|
18
|
+
ImpktRangeInput,
|
|
19
|
+
ImpktTaskList,
|
|
20
|
+
groupDigits
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=journey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -88,6 +88,10 @@ export declare class ImpktCard extends ImpktElement {
|
|
|
88
88
|
badge: {
|
|
89
89
|
type: StringConstructor;
|
|
90
90
|
};
|
|
91
|
+
raised: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
reflect: boolean;
|
|
94
|
+
};
|
|
91
95
|
spaceAbove: {
|
|
92
96
|
type: StringConstructor;
|
|
93
97
|
reflect: boolean;
|
|
@@ -111,6 +115,8 @@ export declare class ImpktCard extends ImpktElement {
|
|
|
111
115
|
badge: string;
|
|
112
116
|
/** The picture's shape. */
|
|
113
117
|
ratio: '16:9' | '4:3' | '3:2' | '1:1';
|
|
118
|
+
/** Lifted off the page with a soft shadow and no edge, as a form that floats beside its words is. */
|
|
119
|
+
raised: boolean;
|
|
114
120
|
/** Space before the card, from the spacing scale. */
|
|
115
121
|
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
116
122
|
/** Space after the card, from the spacing scale. */
|
|
@@ -146,17 +152,29 @@ export declare class ImpktHeading extends ImpktElement {
|
|
|
146
152
|
};
|
|
147
153
|
eyebrow: {
|
|
148
154
|
type: StringConstructor;
|
|
155
|
+
reflect: boolean;
|
|
149
156
|
};
|
|
150
157
|
align: {
|
|
151
158
|
type: StringConstructor;
|
|
152
159
|
reflect: boolean;
|
|
153
160
|
};
|
|
161
|
+
screenReaderOnly: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
reflect: boolean;
|
|
164
|
+
attribute: string;
|
|
165
|
+
};
|
|
154
166
|
};
|
|
155
167
|
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
156
168
|
size: '5xl' | '4xl' | '3xl' | '2xl' | 'xl' | 'lg' | 'md' | 'sm';
|
|
157
169
|
/** A short label above the heading, such as "Why Larkfield". Part of the heading, read before it. */
|
|
158
170
|
eyebrow: string;
|
|
159
171
|
align: 'start' | 'center';
|
|
172
|
+
/**
|
|
173
|
+
* Read by screen readers and search engines, but not drawn: for a heading
|
|
174
|
+
* whose words are already in a picture, such as a hero drawn as artwork.
|
|
175
|
+
* The page still has its heading; nobody sees it twice. An eyebrow still shows.
|
|
176
|
+
*/
|
|
177
|
+
screenReaderOnly: boolean;
|
|
160
178
|
constructor();
|
|
161
179
|
static styles: import("lit").CSSResult[];
|
|
162
180
|
render(): TemplateResult;
|
|
@@ -181,10 +199,16 @@ export declare class ImpktText extends ImpktElement {
|
|
|
181
199
|
type: StringConstructor;
|
|
182
200
|
reflect: boolean;
|
|
183
201
|
};
|
|
202
|
+
look: {
|
|
203
|
+
type: StringConstructor;
|
|
204
|
+
reflect: boolean;
|
|
205
|
+
};
|
|
184
206
|
};
|
|
185
207
|
size: 'sm' | 'md' | 'lg' | 'xl';
|
|
186
208
|
tone: 'default' | 'muted';
|
|
187
209
|
align: 'start' | 'center';
|
|
210
|
+
/** `code` sets the words in the brand's monospace face on a faint panel, for a line like "base: main ← compare: you/idea". */
|
|
211
|
+
look: 'prose' | 'code';
|
|
188
212
|
constructor();
|
|
189
213
|
static styles: import("lit").CSSResult[];
|
|
190
214
|
render(): TemplateResult;
|
package/dist/components/link.js
CHANGED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { ImpktElement } from '../base/ImpktElement';
|
|
3
|
+
/**
|
|
4
|
+
* A list of short points: what a phase delivers, what a plan includes, the
|
|
5
|
+
* steps of an argument in an article. A bullet, a tick or a number marks each
|
|
6
|
+
* one; the marks are drawn, so a screen reader hears a plain list.
|
|
7
|
+
*
|
|
8
|
+
* @category content
|
|
9
|
+
* @icon list
|
|
10
|
+
*/
|
|
11
|
+
export declare class ImpktList extends ImpktElement {
|
|
12
|
+
static properties: {
|
|
13
|
+
items: {
|
|
14
|
+
type: ArrayConstructor;
|
|
15
|
+
};
|
|
16
|
+
look: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
reflect: boolean;
|
|
19
|
+
};
|
|
20
|
+
size: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
reflect: boolean;
|
|
23
|
+
};
|
|
24
|
+
spaceAbove: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
reflect: boolean;
|
|
27
|
+
attribute: string;
|
|
28
|
+
};
|
|
29
|
+
spaceBelow: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
reflect: boolean;
|
|
32
|
+
attribute: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
/** The points, in order. */
|
|
36
|
+
items: string[];
|
|
37
|
+
/** `bullet` for points, `check` for what is included, `number` when the order matters. */
|
|
38
|
+
look: 'bullet' | 'check' | 'number';
|
|
39
|
+
size: 'sm' | 'md' | 'lg';
|
|
40
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
41
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
42
|
+
constructor();
|
|
43
|
+
static styles: import("lit").CSSResult[];
|
|
44
|
+
render(): TemplateResult;
|
|
45
|
+
}
|
|
46
|
+
declare global {
|
|
47
|
+
interface HTMLElementTagNameMap {
|
|
48
|
+
'impkt-list': ImpktList;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
ImpktQuote,
|
|
7
7
|
ImpktSearchBar,
|
|
8
8
|
ImpktStat
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-4X723QBD.js";
|
|
10
|
+
import "../chunk-KFD4O7VA.js";
|
|
11
|
+
import "../chunk-D6C7XEY4.js";
|
|
12
12
|
export {
|
|
13
13
|
ImpktAnnouncement,
|
|
14
14
|
ImpktBadge,
|
|
@@ -56,7 +56,17 @@ export declare class ImpktImage extends ImpktElement {
|
|
|
56
56
|
type: StringConstructor;
|
|
57
57
|
reflect: boolean;
|
|
58
58
|
};
|
|
59
|
+
hideOn: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
reflect: boolean;
|
|
62
|
+
attribute: string;
|
|
63
|
+
};
|
|
59
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* Leave it out on a phone, or on anything wider, for a picture drawn twice:
|
|
67
|
+
* once for a wide screen and once for a narrow one. Never both.
|
|
68
|
+
*/
|
|
69
|
+
hideOn: 'never' | 'phone' | 'wide';
|
|
60
70
|
src: string;
|
|
61
71
|
alt: string;
|
|
62
72
|
/**
|
package/dist/components/media.js
CHANGED
|
@@ -32,6 +32,15 @@ export declare class ImpktNav extends ImpktElement {
|
|
|
32
32
|
type: StringConstructor;
|
|
33
33
|
attribute: string;
|
|
34
34
|
};
|
|
35
|
+
menuLook: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
reflect: boolean;
|
|
38
|
+
attribute: string;
|
|
39
|
+
};
|
|
40
|
+
size: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
reflect: boolean;
|
|
43
|
+
};
|
|
35
44
|
align: {
|
|
36
45
|
type: StringConstructor;
|
|
37
46
|
reflect: boolean;
|
|
@@ -43,6 +52,13 @@ export declare class ImpktNav extends ImpktElement {
|
|
|
43
52
|
label: string;
|
|
44
53
|
/** The words on the button that opens the links on a narrow screen. */
|
|
45
54
|
menuText: string;
|
|
55
|
+
/**
|
|
56
|
+
* The Menu button: `button` with its words, or `icon`, a round button with
|
|
57
|
+
* only the icon, the words kept as its name for screen readers.
|
|
58
|
+
*/
|
|
59
|
+
menuLook: 'button' | 'icon';
|
|
60
|
+
/** `sm` sets the links a step smaller and closer, as a site header's are. */
|
|
61
|
+
size: 'md' | 'sm';
|
|
46
62
|
/** Where the links sit along the row. */
|
|
47
63
|
align: 'start' | 'center' | 'end';
|
|
48
64
|
/** Whether the menu is open on a narrow screen. Not a setting: it is the visitor's. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImpktBreadcrumbs,
|
|
3
3
|
ImpktNav
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-QB2KMV6S.js";
|
|
5
|
+
import "../chunk-KFD4O7VA.js";
|
|
6
|
+
import "../chunk-D6C7XEY4.js";
|
|
7
7
|
export {
|
|
8
8
|
ImpktBreadcrumbs,
|
|
9
9
|
ImpktNav
|