@atomic-ui/ui 0.1.7 → 0.3.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 +82 -95
- package/custom-elements.json +25364 -0
- package/dist/base/FieldElement.d.ts +11 -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/scroll-lock.d.ts +2 -0
- package/dist/base/styles.d.ts +25 -6
- package/dist/base/tokens.d.ts +5 -1
- package/dist/chunk-2YRTFWW2.js +26 -0
- package/dist/chunk-2YRTFWW2.js.map +1 -0
- package/dist/{chunk-X7IPZPTG.js → chunk-37PA72FC.js} +34 -19
- package/dist/chunk-37PA72FC.js.map +1 -0
- package/dist/chunk-3IGNZTJU.js +14 -0
- package/dist/chunk-3IGNZTJU.js.map +1 -0
- package/dist/{chunk-NTNXHLTM.js → chunk-3KO55PZK.js} +47 -2
- package/dist/chunk-3KO55PZK.js.map +1 -0
- package/dist/chunk-3RE4H2XO.js +53 -0
- package/dist/chunk-3RE4H2XO.js.map +1 -0
- package/dist/{chunk-5EA4IDUD.js → chunk-46BYUQ5A.js} +2 -2
- package/dist/{chunk-WECSVHIM.js → chunk-4OYHT4BN.js} +7 -3
- package/dist/chunk-4OYHT4BN.js.map +1 -0
- package/dist/{chunk-4HU4Y23Q.js → chunk-55DK75QF.js} +6 -4
- package/dist/chunk-55DK75QF.js.map +1 -0
- package/dist/{chunk-XVKEM5JY.js → chunk-5QSTXIPG.js} +2 -2
- package/dist/{chunk-QCNT7D5V.js → chunk-7P4Z4CLK.js} +63 -20
- package/dist/chunk-7P4Z4CLK.js.map +1 -0
- package/dist/{chunk-GSCVG2ER.js → chunk-APJ5JGRW.js} +3 -3
- package/dist/chunk-AUVIOU5G.js +522 -0
- package/dist/chunk-AUVIOU5G.js.map +1 -0
- package/dist/{chunk-6ICOJPMD.js → chunk-CUUBAETM.js} +4 -3
- package/dist/chunk-CUUBAETM.js.map +1 -0
- package/dist/{chunk-NQKYHILD.js → chunk-DAH7RLW3.js} +3 -3
- package/dist/{chunk-OB7LC6NJ.js → chunk-DJEZW7AC.js} +2 -2
- package/dist/{chunk-XJP45LFA.js → chunk-DKZ425AM.js} +15 -5
- package/dist/chunk-DKZ425AM.js.map +1 -0
- package/dist/{chunk-GO2IBRFP.js → chunk-F4YQWKK2.js} +7 -4
- package/dist/chunk-F4YQWKK2.js.map +1 -0
- package/dist/chunk-FVCM4WHD.js +328 -0
- package/dist/chunk-FVCM4WHD.js.map +1 -0
- package/dist/chunk-GBRML4RF.js +264 -0
- package/dist/chunk-GBRML4RF.js.map +1 -0
- package/dist/{chunk-ZQJD4YEJ.js → chunk-HXINWP3V.js} +42 -13
- package/dist/chunk-HXINWP3V.js.map +1 -0
- package/dist/{chunk-T6L3USBZ.js → chunk-IOBSIAHB.js} +23 -11
- package/dist/chunk-IOBSIAHB.js.map +1 -0
- package/dist/{chunk-7Y6UCSUS.js → chunk-IZOTGWWI.js} +5 -5
- package/dist/chunk-IZOTGWWI.js.map +1 -0
- package/dist/{chunk-MLVUMCQ2.js → chunk-J2FACXYI.js} +14 -5
- package/dist/chunk-J2FACXYI.js.map +1 -0
- package/dist/{chunk-VTFCTWSX.js → chunk-KKJEEKL2.js} +33 -7
- package/dist/chunk-KKJEEKL2.js.map +1 -0
- package/dist/{chunk-HWWA27DN.js → chunk-KMCGX76Y.js} +2 -2
- package/dist/{chunk-2YQA3VBY.js → chunk-NKMVICB5.js} +4 -2
- package/dist/chunk-NKMVICB5.js.map +1 -0
- package/dist/{chunk-ZBLTU67D.js → chunk-OFLMG6RN.js} +15 -11
- package/dist/chunk-OFLMG6RN.js.map +1 -0
- package/dist/{chunk-CMAU4DSB.js → chunk-P6GDMZK4.js} +5 -5
- package/dist/chunk-P6GDMZK4.js.map +1 -0
- package/dist/{chunk-MOEMFL4K.js → chunk-PO6FCAIS.js} +5 -5
- package/dist/chunk-PO6FCAIS.js.map +1 -0
- package/dist/chunk-PWLZFGS3.js +494 -0
- package/dist/chunk-PWLZFGS3.js.map +1 -0
- package/dist/chunk-QJIB36DM.js +249 -0
- package/dist/chunk-QJIB36DM.js.map +1 -0
- package/dist/{chunk-TPF4MOMF.js → chunk-R7FKGFW6.js} +7 -4
- package/dist/chunk-R7FKGFW6.js.map +1 -0
- package/dist/{chunk-ZGAOMRYD.js → chunk-RWWRTURA.js} +3 -3
- package/dist/{chunk-QDNI54ON.js → chunk-RYBY35QE.js} +10 -8
- package/dist/chunk-RYBY35QE.js.map +1 -0
- package/dist/chunk-S7F5VKWU.js +453 -0
- package/dist/chunk-S7F5VKWU.js.map +1 -0
- package/dist/chunk-T5W3FDSF.js +396 -0
- package/dist/chunk-T5W3FDSF.js.map +1 -0
- package/dist/{chunk-BTGCUONV.js → chunk-TCXKZDMR.js} +2 -2
- package/dist/{chunk-C36CZRHK.js → chunk-WGPB3QQU.js} +43 -13
- package/dist/chunk-WGPB3QQU.js.map +1 -0
- package/dist/{chunk-G6OVKNL7.js → chunk-XPCU4KUY.js} +5 -4
- package/dist/chunk-XPCU4KUY.js.map +1 -0
- package/dist/chunk-YRYZUYY7.js +236 -0
- package/dist/chunk-YRYZUYY7.js.map +1 -0
- package/dist/{chunk-7BIQ3K6H.js → chunk-ZOTAAYO5.js} +12 -2
- package/dist/chunk-ZOTAAYO5.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 +28 -12
- package/dist/components/app-ui.js +6 -4
- package/dist/components/blocks.d.ts +28 -2
- 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.d.ts +15 -0
- package/dist/components/dialog.js +3 -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 +447 -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.d.ts +1 -1
- 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 +13 -1
- 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.d.ts +1 -1
- 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 +409 -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.d.ts +94 -2
- package/dist/components/table.js +4 -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 +10 -2
- package/dist/index.js +135 -55
- package/dist/standalone/atomic-ui.js +3134 -0
- package/dist/standalone/atomic-ui.js.map +7 -0
- package/dist/standalone/index.html +174 -0
- package/package.json +26 -7
- package/scripts/copy-to-product.mjs +52 -0
- package/specimen/index.html +174 -0
- package/dist/chunk-2YQA3VBY.js.map +0 -1
- package/dist/chunk-4HU4Y23Q.js.map +0 -1
- package/dist/chunk-6ICOJPMD.js.map +0 -1
- package/dist/chunk-7BIQ3K6H.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-GO2IBRFP.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-VTFCTWSX.js.map +0 -1
- package/dist/chunk-VWNBB7FW.js +0 -104
- package/dist/chunk-VWNBB7FW.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-ZQJD4YEJ.js.map +0 -1
- /package/dist/{chunk-5EA4IDUD.js.map → chunk-46BYUQ5A.js.map} +0 -0
- /package/dist/{chunk-XVKEM5JY.js.map → chunk-5QSTXIPG.js.map} +0 -0
- /package/dist/{chunk-GSCVG2ER.js.map → chunk-APJ5JGRW.js.map} +0 -0
- /package/dist/{chunk-NQKYHILD.js.map → chunk-DAH7RLW3.js.map} +0 -0
- /package/dist/{chunk-OB7LC6NJ.js.map → chunk-DJEZW7AC.js.map} +0 -0
- /package/dist/{chunk-HWWA27DN.js.map → chunk-KMCGX76Y.js.map} +0 -0
- /package/dist/{chunk-ZGAOMRYD.js.map → chunk-RWWRTURA.js.map} +0 -0
- /package/dist/{chunk-BTGCUONV.js.map → chunk-TCXKZDMR.js.map} +0 -0
|
@@ -0,0 +1,447 @@
|
|
|
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
|
+
* @fires {CustomEvent<{ postcode: string }>} impkt-lookup - When a postcode is searched for. The postcode is in detail.postcode.
|
|
36
|
+
* @category form
|
|
37
|
+
* @icon home
|
|
38
|
+
*/
|
|
39
|
+
export declare class ImpktAddressLookup extends FieldElement {
|
|
40
|
+
static properties: {
|
|
41
|
+
postcodeLabel: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
attribute: string;
|
|
44
|
+
};
|
|
45
|
+
findText: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
attribute: string;
|
|
48
|
+
};
|
|
49
|
+
chooseLabel: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
attribute: string;
|
|
52
|
+
};
|
|
53
|
+
manualText: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
attribute: string;
|
|
56
|
+
};
|
|
57
|
+
notFoundText: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
attribute: string;
|
|
60
|
+
};
|
|
61
|
+
lookupUrl: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
attribute: string;
|
|
64
|
+
};
|
|
65
|
+
addresses: {
|
|
66
|
+
type: ArrayConstructor;
|
|
67
|
+
};
|
|
68
|
+
label: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
};
|
|
71
|
+
name: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
};
|
|
74
|
+
value: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
};
|
|
77
|
+
description: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
};
|
|
80
|
+
error: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
};
|
|
83
|
+
required: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
reflect: boolean;
|
|
86
|
+
};
|
|
87
|
+
disabled: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
reflect: boolean;
|
|
90
|
+
};
|
|
91
|
+
readonly: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
reflect: boolean;
|
|
94
|
+
};
|
|
95
|
+
requiredText: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
attribute: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
postcodeLabel: string;
|
|
101
|
+
findText: string;
|
|
102
|
+
chooseLabel: string;
|
|
103
|
+
manualText: string;
|
|
104
|
+
notFoundText: string;
|
|
105
|
+
/** An address that returns `[{ id, line }]` for `?postcode=`. Optional. */
|
|
106
|
+
lookupUrl: string;
|
|
107
|
+
addresses: AddressItem[];
|
|
108
|
+
manual: boolean;
|
|
109
|
+
postcode: string;
|
|
110
|
+
searched: boolean;
|
|
111
|
+
busy: boolean;
|
|
112
|
+
constructor();
|
|
113
|
+
static styles: import("lit").CSSResult[];
|
|
114
|
+
private find;
|
|
115
|
+
private manualLine;
|
|
116
|
+
protected renderControl(): TemplateResult;
|
|
117
|
+
updated(changed: Map<string, unknown>): void;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Every mistake on the page, listed at the top, each linking to its field.
|
|
121
|
+
*
|
|
122
|
+
* It takes focus when it appears, so someone using a screen reader hears what
|
|
123
|
+
* is wrong straight away rather than finding out field by field. It draws
|
|
124
|
+
* nothing while there are no mistakes. Each link moves focus to its field, which
|
|
125
|
+
* may be a field inside another component, such as `#postcode` for an
|
|
126
|
+
* `impkt-text-input` with that id.
|
|
127
|
+
*
|
|
128
|
+
* @category feedback
|
|
129
|
+
* @icon alert
|
|
130
|
+
*/
|
|
131
|
+
export declare class ImpktErrorSummary extends ImpktElement {
|
|
132
|
+
static properties: {
|
|
133
|
+
heading: {
|
|
134
|
+
type: StringConstructor;
|
|
135
|
+
};
|
|
136
|
+
items: {
|
|
137
|
+
type: ArrayConstructor;
|
|
138
|
+
};
|
|
139
|
+
spaceAbove: {
|
|
140
|
+
type: StringConstructor;
|
|
141
|
+
reflect: boolean;
|
|
142
|
+
attribute: string;
|
|
143
|
+
};
|
|
144
|
+
spaceBelow: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
reflect: boolean;
|
|
147
|
+
attribute: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
heading: string;
|
|
151
|
+
items: ErrorItem[];
|
|
152
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
153
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
154
|
+
constructor();
|
|
155
|
+
static styles: import("lit").CSSResult[];
|
|
156
|
+
private go;
|
|
157
|
+
updated(changed: Map<string, unknown>): void;
|
|
158
|
+
render(): TemplateResult | typeof nothing;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Add one or more files, such as proof of identity or photos for a claim.
|
|
162
|
+
*
|
|
163
|
+
* A file can be chosen or dropped on the box. Each one is checked for type and
|
|
164
|
+
* size here and listed with a Remove button; the upload itself is the app's,
|
|
165
|
+
* which gets the files on `impkt-files`. The answer is the file names.
|
|
166
|
+
*
|
|
167
|
+
* The file input itself takes focus, so Tab reaches it and Enter or Space opens
|
|
168
|
+
* the file chooser; the visible button is its label and draws its focus ring.
|
|
169
|
+
* A file that is added or removed is said to a screen reader, and a file that
|
|
170
|
+
* does not fit marks the box and says why.
|
|
171
|
+
*
|
|
172
|
+
* @fires {CustomEvent<{ files: File[] }>} impkt-files - When the files change. The files are in detail.files.
|
|
173
|
+
*
|
|
174
|
+
* @category form
|
|
175
|
+
* @icon upload
|
|
176
|
+
*/
|
|
177
|
+
export declare class ImpktFileUpload extends FieldElement {
|
|
178
|
+
static properties: {
|
|
179
|
+
accept: {
|
|
180
|
+
type: StringConstructor;
|
|
181
|
+
};
|
|
182
|
+
manyFiles: {
|
|
183
|
+
type: BooleanConstructor;
|
|
184
|
+
attribute: string;
|
|
185
|
+
};
|
|
186
|
+
maxSizeMb: {
|
|
187
|
+
type: NumberConstructor;
|
|
188
|
+
attribute: string;
|
|
189
|
+
};
|
|
190
|
+
chooseText: {
|
|
191
|
+
type: StringConstructor;
|
|
192
|
+
attribute: string;
|
|
193
|
+
};
|
|
194
|
+
dropText: {
|
|
195
|
+
type: StringConstructor;
|
|
196
|
+
attribute: string;
|
|
197
|
+
};
|
|
198
|
+
label: {
|
|
199
|
+
type: StringConstructor;
|
|
200
|
+
};
|
|
201
|
+
name: {
|
|
202
|
+
type: StringConstructor;
|
|
203
|
+
};
|
|
204
|
+
value: {
|
|
205
|
+
type: StringConstructor;
|
|
206
|
+
};
|
|
207
|
+
description: {
|
|
208
|
+
type: StringConstructor;
|
|
209
|
+
};
|
|
210
|
+
error: {
|
|
211
|
+
type: StringConstructor;
|
|
212
|
+
};
|
|
213
|
+
required: {
|
|
214
|
+
type: BooleanConstructor;
|
|
215
|
+
reflect: boolean;
|
|
216
|
+
};
|
|
217
|
+
disabled: {
|
|
218
|
+
type: BooleanConstructor;
|
|
219
|
+
reflect: boolean;
|
|
220
|
+
};
|
|
221
|
+
readonly: {
|
|
222
|
+
type: BooleanConstructor;
|
|
223
|
+
reflect: boolean;
|
|
224
|
+
};
|
|
225
|
+
requiredText: {
|
|
226
|
+
type: StringConstructor;
|
|
227
|
+
attribute: string;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
/** File types allowed, such as `.pdf,.jpg,.png`. Empty allows any. */
|
|
231
|
+
accept: string;
|
|
232
|
+
/** Let more than one file be added. */
|
|
233
|
+
manyFiles: boolean;
|
|
234
|
+
maxSizeMb: number;
|
|
235
|
+
chooseText: string;
|
|
236
|
+
dropText: string;
|
|
237
|
+
files: File[];
|
|
238
|
+
over: boolean;
|
|
239
|
+
protected said: string;
|
|
240
|
+
constructor();
|
|
241
|
+
static styles: import("lit").CSSResult[];
|
|
242
|
+
private fits;
|
|
243
|
+
/** Adds files, keeping only those that pass, and says why any did not. */
|
|
244
|
+
add(list: FileList | File[]): void;
|
|
245
|
+
private removeFile;
|
|
246
|
+
updated(changed: Map<string, unknown>): void;
|
|
247
|
+
private sync;
|
|
248
|
+
protected renderControl(): TemplateResult;
|
|
249
|
+
}
|
|
250
|
+
/** "250000" → "250,000". Anything not a number is left as typed. */
|
|
251
|
+
export declare function groupDigits(value: string): string;
|
|
252
|
+
/**
|
|
253
|
+
* An amount of money, with the currency sign in front and commas as it is
|
|
254
|
+
* read back, so £250,000 is not mistaken for £25,000.
|
|
255
|
+
*
|
|
256
|
+
* The answer is the plain number, such as `250000`.
|
|
257
|
+
*
|
|
258
|
+
* @category form
|
|
259
|
+
* @icon pound
|
|
260
|
+
*/
|
|
261
|
+
export declare class ImpktMoneyInput extends FieldElement {
|
|
262
|
+
static properties: {
|
|
263
|
+
currency: {
|
|
264
|
+
type: StringConstructor;
|
|
265
|
+
};
|
|
266
|
+
lowest: {
|
|
267
|
+
type: NumberConstructor;
|
|
268
|
+
};
|
|
269
|
+
highest: {
|
|
270
|
+
type: NumberConstructor;
|
|
271
|
+
};
|
|
272
|
+
pence: {
|
|
273
|
+
type: BooleanConstructor;
|
|
274
|
+
};
|
|
275
|
+
width: {
|
|
276
|
+
type: StringConstructor;
|
|
277
|
+
reflect: boolean;
|
|
278
|
+
};
|
|
279
|
+
label: {
|
|
280
|
+
type: StringConstructor;
|
|
281
|
+
};
|
|
282
|
+
name: {
|
|
283
|
+
type: StringConstructor;
|
|
284
|
+
};
|
|
285
|
+
value: {
|
|
286
|
+
type: StringConstructor;
|
|
287
|
+
};
|
|
288
|
+
description: {
|
|
289
|
+
type: StringConstructor;
|
|
290
|
+
};
|
|
291
|
+
error: {
|
|
292
|
+
type: StringConstructor;
|
|
293
|
+
};
|
|
294
|
+
required: {
|
|
295
|
+
type: BooleanConstructor;
|
|
296
|
+
reflect: boolean;
|
|
297
|
+
};
|
|
298
|
+
disabled: {
|
|
299
|
+
type: BooleanConstructor;
|
|
300
|
+
reflect: boolean;
|
|
301
|
+
};
|
|
302
|
+
readonly: {
|
|
303
|
+
type: BooleanConstructor;
|
|
304
|
+
reflect: boolean;
|
|
305
|
+
};
|
|
306
|
+
requiredText: {
|
|
307
|
+
type: StringConstructor;
|
|
308
|
+
attribute: string;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
currency: string;
|
|
312
|
+
lowest: number | undefined;
|
|
313
|
+
highest: number | undefined;
|
|
314
|
+
/** Allow pence. Off for amounts like a house price. */
|
|
315
|
+
pence: boolean;
|
|
316
|
+
width: 'full' | 'lg' | 'md' | 'sm' | 'xs';
|
|
317
|
+
shown: string;
|
|
318
|
+
constructor();
|
|
319
|
+
static styles: import("lit").CSSResult[];
|
|
320
|
+
willUpdate(changed: Map<string, unknown>): void;
|
|
321
|
+
private typed;
|
|
322
|
+
private check;
|
|
323
|
+
/** The currency sign describes the field too, so a screen reader hears that the amount is in pounds. */
|
|
324
|
+
protected get describedBy(): string | typeof nothing;
|
|
325
|
+
protected renderControl(): TemplateResult;
|
|
326
|
+
updated(changed: Map<string, unknown>): void;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Choose a number by sliding, with the value read out beside the label, such
|
|
330
|
+
* as a deposit or how many years. It is a native range control, so arrow keys,
|
|
331
|
+
* a finger and a screen reader all work.
|
|
332
|
+
*
|
|
333
|
+
* @category form
|
|
334
|
+
* @icon sliders
|
|
335
|
+
*/
|
|
336
|
+
export declare class ImpktRangeInput extends FieldElement {
|
|
337
|
+
static properties: {
|
|
338
|
+
lowest: {
|
|
339
|
+
type: NumberConstructor;
|
|
340
|
+
};
|
|
341
|
+
highest: {
|
|
342
|
+
type: NumberConstructor;
|
|
343
|
+
};
|
|
344
|
+
step: {
|
|
345
|
+
type: NumberConstructor;
|
|
346
|
+
};
|
|
347
|
+
currency: {
|
|
348
|
+
type: StringConstructor;
|
|
349
|
+
};
|
|
350
|
+
unit: {
|
|
351
|
+
type: StringConstructor;
|
|
352
|
+
};
|
|
353
|
+
label: {
|
|
354
|
+
type: StringConstructor;
|
|
355
|
+
};
|
|
356
|
+
name: {
|
|
357
|
+
type: StringConstructor;
|
|
358
|
+
};
|
|
359
|
+
value: {
|
|
360
|
+
type: StringConstructor;
|
|
361
|
+
};
|
|
362
|
+
description: {
|
|
363
|
+
type: StringConstructor;
|
|
364
|
+
};
|
|
365
|
+
error: {
|
|
366
|
+
type: StringConstructor;
|
|
367
|
+
};
|
|
368
|
+
required: {
|
|
369
|
+
type: BooleanConstructor;
|
|
370
|
+
reflect: boolean;
|
|
371
|
+
};
|
|
372
|
+
disabled: {
|
|
373
|
+
type: BooleanConstructor;
|
|
374
|
+
reflect: boolean;
|
|
375
|
+
};
|
|
376
|
+
readonly: {
|
|
377
|
+
type: BooleanConstructor;
|
|
378
|
+
reflect: boolean;
|
|
379
|
+
};
|
|
380
|
+
requiredText: {
|
|
381
|
+
type: StringConstructor;
|
|
382
|
+
attribute: string;
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
lowest: number;
|
|
386
|
+
highest: number;
|
|
387
|
+
step: number;
|
|
388
|
+
/** Show the value as money in this currency, such as GBP. Empty shows a plain number. */
|
|
389
|
+
currency: string;
|
|
390
|
+
/** A word after the value, such as `years`. */
|
|
391
|
+
unit: string;
|
|
392
|
+
constructor();
|
|
393
|
+
static styles: import("lit").CSSResult[];
|
|
394
|
+
/** The value as the customer reads it, such as £25,000 or 25 years. */
|
|
395
|
+
shownAs(n: number): string;
|
|
396
|
+
render(): TemplateResult;
|
|
397
|
+
protected renderControl(): TemplateResult;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* The parts of a long application, each with whether it is done, so someone
|
|
401
|
+
* can leave and come back to where they were.
|
|
402
|
+
*
|
|
403
|
+
* @category content
|
|
404
|
+
* @icon list
|
|
405
|
+
*/
|
|
406
|
+
export declare class ImpktTaskList extends ImpktElement {
|
|
407
|
+
static properties: {
|
|
408
|
+
heading: {
|
|
409
|
+
type: StringConstructor;
|
|
410
|
+
};
|
|
411
|
+
items: {
|
|
412
|
+
type: ArrayConstructor;
|
|
413
|
+
};
|
|
414
|
+
headingLevel: {
|
|
415
|
+
type: NumberConstructor;
|
|
416
|
+
attribute: string;
|
|
417
|
+
};
|
|
418
|
+
spaceAbove: {
|
|
419
|
+
type: StringConstructor;
|
|
420
|
+
reflect: boolean;
|
|
421
|
+
attribute: string;
|
|
422
|
+
};
|
|
423
|
+
spaceBelow: {
|
|
424
|
+
type: StringConstructor;
|
|
425
|
+
reflect: boolean;
|
|
426
|
+
attribute: string;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
heading: string;
|
|
430
|
+
items: TaskItem[];
|
|
431
|
+
headingLevel: 2 | 3;
|
|
432
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
433
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
434
|
+
constructor();
|
|
435
|
+
static styles: import("lit").CSSResult[];
|
|
436
|
+
render(): TemplateResult;
|
|
437
|
+
}
|
|
438
|
+
declare global {
|
|
439
|
+
interface HTMLElementTagNameMap {
|
|
440
|
+
'impkt-address-lookup': ImpktAddressLookup;
|
|
441
|
+
'impkt-error-summary': ImpktErrorSummary;
|
|
442
|
+
'impkt-file-upload': ImpktFileUpload;
|
|
443
|
+
'impkt-money-input': ImpktMoneyInput;
|
|
444
|
+
'impkt-range-input': ImpktRangeInput;
|
|
445
|
+
'impkt-task-list': ImpktTaskList;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ImpktAddressLookup,
|
|
3
|
+
ImpktErrorSummary,
|
|
4
|
+
ImpktFileUpload,
|
|
5
|
+
ImpktMoneyInput,
|
|
6
|
+
ImpktRangeInput,
|
|
7
|
+
ImpktTaskList,
|
|
8
|
+
groupDigits
|
|
9
|
+
} from "../chunk-AUVIOU5G.js";
|
|
10
|
+
import "../chunk-3IGNZTJU.js";
|
|
11
|
+
import "../chunk-ZOTAAYO5.js";
|
|
12
|
+
import "../chunk-3KO55PZK.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":[]}
|
|
@@ -318,7 +318,7 @@ export interface SearchField {
|
|
|
318
318
|
*
|
|
319
319
|
* @category form
|
|
320
320
|
* @icon search
|
|
321
|
-
* @fires impkt-submit - When the search is run. The choices are in detail.values.
|
|
321
|
+
* @fires {CustomEvent<{ values: Record<string, string> }>} impkt-submit - When the search is run. The choices are in detail.values.
|
|
322
322
|
*/
|
|
323
323
|
export declare class ImpktSearchBar extends ImpktElement {
|
|
324
324
|
static properties: {
|
|
@@ -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-IZOTGWWI.js";
|
|
10
|
+
import "../chunk-NKMVICB5.js";
|
|
11
|
+
import "../chunk-3KO55PZK.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