@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,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":[]}
|
|
@@ -50,9 +50,9 @@ export declare class ImpktStack extends ImpktElement {
|
|
|
50
50
|
/** Where the items sit along a row. */
|
|
51
51
|
justify: 'start' | 'center' | 'end' | 'between';
|
|
52
52
|
/** Space before the stack, from the spacing scale. */
|
|
53
|
-
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
53
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
54
54
|
/** Space after the stack, from the spacing scale. */
|
|
55
|
-
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
55
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
56
56
|
constructor();
|
|
57
57
|
static styles: import("lit").CSSResult[];
|
|
58
58
|
render(): TemplateResult;
|
|
@@ -85,6 +85,13 @@ export declare class ImpktCard extends ImpktElement {
|
|
|
85
85
|
type: StringConstructor;
|
|
86
86
|
reflect: boolean;
|
|
87
87
|
};
|
|
88
|
+
badge: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
};
|
|
91
|
+
raised: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
reflect: boolean;
|
|
94
|
+
};
|
|
88
95
|
spaceAbove: {
|
|
89
96
|
type: StringConstructor;
|
|
90
97
|
reflect: boolean;
|
|
@@ -104,12 +111,16 @@ export declare class ImpktCard extends ImpktElement {
|
|
|
104
111
|
imageSrc: string;
|
|
105
112
|
/** What the picture shows. Leave empty only when it is decoration. */
|
|
106
113
|
imageAlt: string;
|
|
114
|
+
/** A short label on the picture, such as "3 left". */
|
|
115
|
+
badge: string;
|
|
107
116
|
/** The picture's shape. */
|
|
108
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;
|
|
109
120
|
/** Space before the card, from the spacing scale. */
|
|
110
|
-
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
121
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
111
122
|
/** Space after the card, from the spacing scale. */
|
|
112
|
-
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
123
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
113
124
|
constructor();
|
|
114
125
|
static styles: import("lit").CSSResult[];
|
|
115
126
|
render(): TemplateResult;
|
|
@@ -141,17 +152,29 @@ export declare class ImpktHeading extends ImpktElement {
|
|
|
141
152
|
};
|
|
142
153
|
eyebrow: {
|
|
143
154
|
type: StringConstructor;
|
|
155
|
+
reflect: boolean;
|
|
144
156
|
};
|
|
145
157
|
align: {
|
|
146
158
|
type: StringConstructor;
|
|
147
159
|
reflect: boolean;
|
|
148
160
|
};
|
|
161
|
+
screenReaderOnly: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
reflect: boolean;
|
|
164
|
+
attribute: string;
|
|
165
|
+
};
|
|
149
166
|
};
|
|
150
167
|
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
151
|
-
size: '3xl' | '2xl' | 'xl' | 'lg' | 'md';
|
|
168
|
+
size: '5xl' | '4xl' | '3xl' | '2xl' | 'xl' | 'lg' | 'md' | 'sm';
|
|
152
169
|
/** A short label above the heading, such as "Why Larkfield". Part of the heading, read before it. */
|
|
153
170
|
eyebrow: string;
|
|
154
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;
|
|
155
178
|
constructor();
|
|
156
179
|
static styles: import("lit").CSSResult[];
|
|
157
180
|
render(): TemplateResult;
|
|
@@ -176,10 +199,16 @@ export declare class ImpktText extends ImpktElement {
|
|
|
176
199
|
type: StringConstructor;
|
|
177
200
|
reflect: boolean;
|
|
178
201
|
};
|
|
202
|
+
look: {
|
|
203
|
+
type: StringConstructor;
|
|
204
|
+
reflect: boolean;
|
|
205
|
+
};
|
|
179
206
|
};
|
|
180
207
|
size: 'sm' | 'md' | 'lg' | 'xl';
|
|
181
208
|
tone: 'default' | 'muted';
|
|
182
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';
|
|
183
212
|
constructor();
|
|
184
213
|
static styles: import("lit").CSSResult[];
|
|
185
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":[]}
|