@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,421 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { FieldElement } from '../base/FieldElement';
|
|
3
|
+
import { ImpktElement } from '../base/ImpktElement';
|
|
4
|
+
/**
|
|
5
|
+
* A panel that slides in from the side: a basket, filters, a plot's details.
|
|
6
|
+
*
|
|
7
|
+
* It is a native `<dialog>` opened with `showModal()`, like the dialog, so the
|
|
8
|
+
* focus trap, Escape, the inert page behind it and the return of focus all come
|
|
9
|
+
* from the browser. The slide is a decoration and stops for anyone who has
|
|
10
|
+
* asked for reduced motion.
|
|
11
|
+
*
|
|
12
|
+
* @category feedback
|
|
13
|
+
* @icon drawer
|
|
14
|
+
* @slot - The body of the panel.
|
|
15
|
+
* @slot footer - Buttons pinned to the bottom of the panel.
|
|
16
|
+
* @fires impkt-close - When the panel is closed.
|
|
17
|
+
*/
|
|
18
|
+
export declare class ImpktDrawer extends ImpktElement {
|
|
19
|
+
static properties: {
|
|
20
|
+
open: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
reflect: boolean;
|
|
23
|
+
};
|
|
24
|
+
heading: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
};
|
|
27
|
+
side: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
reflect: boolean;
|
|
30
|
+
};
|
|
31
|
+
closeLabel: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
attribute: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
open: boolean;
|
|
37
|
+
heading: string;
|
|
38
|
+
side: 'left' | 'right';
|
|
39
|
+
closeLabel: string;
|
|
40
|
+
constructor();
|
|
41
|
+
static styles: import("lit").CSSResult[];
|
|
42
|
+
private hasFooter;
|
|
43
|
+
private get dialog();
|
|
44
|
+
updated(changed: Map<string, unknown>): void;
|
|
45
|
+
private close;
|
|
46
|
+
private footerChanged;
|
|
47
|
+
render(): TemplateResult;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A short message in the corner that goes away: "Viewing booked", "Saved".
|
|
51
|
+
*
|
|
52
|
+
* It says itself to a screen reader through a live region, and its timer stops
|
|
53
|
+
* while it is pointed at or focused. Set `duration` to 0 to keep it up until it
|
|
54
|
+
* is closed. Anything a person must act on belongs in an alert on the page.
|
|
55
|
+
*
|
|
56
|
+
* @category feedback
|
|
57
|
+
* @icon toast
|
|
58
|
+
* @fires impkt-close - When the message goes away.
|
|
59
|
+
* @fires impkt-action - When its button is pressed.
|
|
60
|
+
*/
|
|
61
|
+
export declare class ImpktToast extends ImpktElement {
|
|
62
|
+
static properties: {
|
|
63
|
+
open: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
reflect: boolean;
|
|
66
|
+
};
|
|
67
|
+
message: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
};
|
|
70
|
+
tone: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
reflect: boolean;
|
|
73
|
+
};
|
|
74
|
+
duration: {
|
|
75
|
+
type: NumberConstructor;
|
|
76
|
+
};
|
|
77
|
+
actionText: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
attribute: string;
|
|
80
|
+
};
|
|
81
|
+
closeLabel: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
attribute: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
open: boolean;
|
|
87
|
+
message: string;
|
|
88
|
+
tone: 'neutral' | 'success' | 'warning' | 'danger';
|
|
89
|
+
/** How long it stays. 0 keeps it up until it is closed. */
|
|
90
|
+
duration: number;
|
|
91
|
+
actionText: string;
|
|
92
|
+
closeLabel: string;
|
|
93
|
+
private timer;
|
|
94
|
+
constructor();
|
|
95
|
+
static styles: import("lit").CSSResult[];
|
|
96
|
+
disconnectedCallback(): void;
|
|
97
|
+
updated(changed: Map<string, unknown>): void;
|
|
98
|
+
private start;
|
|
99
|
+
private stop;
|
|
100
|
+
private close;
|
|
101
|
+
private action;
|
|
102
|
+
render(): TemplateResult;
|
|
103
|
+
}
|
|
104
|
+
export interface MenuItem {
|
|
105
|
+
id?: string;
|
|
106
|
+
text: string;
|
|
107
|
+
/** Where it goes. Without one it fires impkt-select with its value. */
|
|
108
|
+
href?: string;
|
|
109
|
+
value?: string;
|
|
110
|
+
icon?: string;
|
|
111
|
+
tone?: '' | 'danger';
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* A button that opens a short list of actions or links.
|
|
115
|
+
*
|
|
116
|
+
* It follows the ARIA menu button pattern: the arrow keys, Home and End move
|
|
117
|
+
* through it, Escape closes it and puts focus back on the button, and a click
|
|
118
|
+
* anywhere else closes it.
|
|
119
|
+
*
|
|
120
|
+
* @category navigation
|
|
121
|
+
* @icon menu
|
|
122
|
+
* @fires impkt-select - When an item without an address is chosen. The value is in detail.value.
|
|
123
|
+
*/
|
|
124
|
+
export declare class ImpktMenu extends ImpktElement {
|
|
125
|
+
static properties: {
|
|
126
|
+
label: {
|
|
127
|
+
type: StringConstructor;
|
|
128
|
+
};
|
|
129
|
+
icon: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
};
|
|
132
|
+
items: {
|
|
133
|
+
type: ArrayConstructor;
|
|
134
|
+
};
|
|
135
|
+
edge: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
reflect: boolean;
|
|
138
|
+
};
|
|
139
|
+
open: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
reflect: boolean;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
label: string;
|
|
145
|
+
icon: string;
|
|
146
|
+
items: MenuItem[];
|
|
147
|
+
/** Which edge of the button the list lines up with. */
|
|
148
|
+
edge: 'start' | 'end';
|
|
149
|
+
open: boolean;
|
|
150
|
+
constructor();
|
|
151
|
+
static styles: import("lit").CSSResult[];
|
|
152
|
+
private outside;
|
|
153
|
+
disconnectedCallback(): void;
|
|
154
|
+
private get entries();
|
|
155
|
+
private get trigger();
|
|
156
|
+
private toggle;
|
|
157
|
+
private triggerKey;
|
|
158
|
+
private listKey;
|
|
159
|
+
private choose;
|
|
160
|
+
render(): TemplateResult;
|
|
161
|
+
}
|
|
162
|
+
/** Which page numbers to show: the ends and the neighbours, with gaps between. */
|
|
163
|
+
export declare function pageWindow(page: number, pages: number): Array<number | 'gap'>;
|
|
164
|
+
/**
|
|
165
|
+
* Page numbers for a long list.
|
|
166
|
+
*
|
|
167
|
+
* Give it `href-pattern` and every number is a real link, with `{page}` swapped
|
|
168
|
+
* for the number. Without one the numbers are buttons and it fires
|
|
169
|
+
* `impkt-page`. On a narrow screen the numbers fold to "Page 2 of 9".
|
|
170
|
+
*
|
|
171
|
+
* @category navigation
|
|
172
|
+
* @icon pagination
|
|
173
|
+
* @fires impkt-page - When a page is chosen. The number is in detail.page.
|
|
174
|
+
*/
|
|
175
|
+
export declare class ImpktPagination extends ImpktElement {
|
|
176
|
+
static properties: {
|
|
177
|
+
page: {
|
|
178
|
+
type: NumberConstructor;
|
|
179
|
+
};
|
|
180
|
+
pages: {
|
|
181
|
+
type: NumberConstructor;
|
|
182
|
+
};
|
|
183
|
+
hrefPattern: {
|
|
184
|
+
type: StringConstructor;
|
|
185
|
+
attribute: string;
|
|
186
|
+
};
|
|
187
|
+
label: {
|
|
188
|
+
type: StringConstructor;
|
|
189
|
+
};
|
|
190
|
+
previousText: {
|
|
191
|
+
type: StringConstructor;
|
|
192
|
+
attribute: string;
|
|
193
|
+
};
|
|
194
|
+
nextText: {
|
|
195
|
+
type: StringConstructor;
|
|
196
|
+
attribute: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
page: number;
|
|
200
|
+
pages: number;
|
|
201
|
+
hrefPattern: string;
|
|
202
|
+
label: string;
|
|
203
|
+
previousText: string;
|
|
204
|
+
nextText: string;
|
|
205
|
+
constructor();
|
|
206
|
+
static styles: import("lit").CSSResult[];
|
|
207
|
+
private go;
|
|
208
|
+
private link;
|
|
209
|
+
private step;
|
|
210
|
+
render(): TemplateResult;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* A person's photo, or their initials when there is no photo or it fails.
|
|
214
|
+
*
|
|
215
|
+
* @category content
|
|
216
|
+
* @icon avatar
|
|
217
|
+
*/
|
|
218
|
+
export declare class ImpktAvatar extends ImpktElement {
|
|
219
|
+
static properties: {
|
|
220
|
+
fullName: {
|
|
221
|
+
type: StringConstructor;
|
|
222
|
+
attribute: string;
|
|
223
|
+
};
|
|
224
|
+
src: {
|
|
225
|
+
type: StringConstructor;
|
|
226
|
+
};
|
|
227
|
+
size: {
|
|
228
|
+
type: StringConstructor;
|
|
229
|
+
reflect: boolean;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
fullName: string;
|
|
233
|
+
src: string;
|
|
234
|
+
size: 'sm' | 'md' | 'lg' | 'xl';
|
|
235
|
+
private failed;
|
|
236
|
+
constructor();
|
|
237
|
+
static styles: import("lit").CSSResult[];
|
|
238
|
+
willUpdate(changed: Map<string, unknown>): void;
|
|
239
|
+
render(): TemplateResult;
|
|
240
|
+
}
|
|
241
|
+
export interface AvatarItem {
|
|
242
|
+
id?: string;
|
|
243
|
+
name: string;
|
|
244
|
+
src?: string;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* A few people overlapped in a row, with a count for the rest: the sales team,
|
|
248
|
+
* the neighbours who have already moved in.
|
|
249
|
+
*
|
|
250
|
+
* @category content
|
|
251
|
+
* @icon avatars
|
|
252
|
+
*/
|
|
253
|
+
export declare class ImpktAvatarGroup extends ImpktElement {
|
|
254
|
+
static properties: {
|
|
255
|
+
items: {
|
|
256
|
+
type: ArrayConstructor;
|
|
257
|
+
};
|
|
258
|
+
max: {
|
|
259
|
+
type: NumberConstructor;
|
|
260
|
+
};
|
|
261
|
+
size: {
|
|
262
|
+
type: StringConstructor;
|
|
263
|
+
reflect: boolean;
|
|
264
|
+
};
|
|
265
|
+
moreLabel: {
|
|
266
|
+
type: StringConstructor;
|
|
267
|
+
attribute: string;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
items: AvatarItem[];
|
|
271
|
+
max: number;
|
|
272
|
+
size: 'sm' | 'md' | 'lg';
|
|
273
|
+
/** How the people left out are described to a screen reader, after the number. */
|
|
274
|
+
moreLabel: string;
|
|
275
|
+
constructor();
|
|
276
|
+
static styles: import("lit").CSSResult[];
|
|
277
|
+
render(): TemplateResult;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* What a list says when it has nothing in it, and what to do about that.
|
|
281
|
+
*
|
|
282
|
+
* @category feedback
|
|
283
|
+
* @icon empty
|
|
284
|
+
* @role heading
|
|
285
|
+
* @slot actions - The next thing to do, usually one button.
|
|
286
|
+
*/
|
|
287
|
+
export declare class ImpktEmptyState extends ImpktElement {
|
|
288
|
+
static properties: {
|
|
289
|
+
icon: {
|
|
290
|
+
type: StringConstructor;
|
|
291
|
+
};
|
|
292
|
+
heading: {
|
|
293
|
+
type: StringConstructor;
|
|
294
|
+
};
|
|
295
|
+
lead: {
|
|
296
|
+
type: StringConstructor;
|
|
297
|
+
};
|
|
298
|
+
framed: {
|
|
299
|
+
type: BooleanConstructor;
|
|
300
|
+
reflect: boolean;
|
|
301
|
+
};
|
|
302
|
+
headingLevel: {
|
|
303
|
+
type: NumberConstructor;
|
|
304
|
+
attribute: string;
|
|
305
|
+
};
|
|
306
|
+
spaceAbove: {
|
|
307
|
+
type: StringConstructor;
|
|
308
|
+
reflect: boolean;
|
|
309
|
+
attribute: string;
|
|
310
|
+
};
|
|
311
|
+
spaceBelow: {
|
|
312
|
+
type: StringConstructor;
|
|
313
|
+
reflect: boolean;
|
|
314
|
+
attribute: string;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
icon: string;
|
|
318
|
+
heading: string;
|
|
319
|
+
lead: string;
|
|
320
|
+
/** Draws a dashed outline round it. */
|
|
321
|
+
framed: boolean;
|
|
322
|
+
headingLevel: 2 | 3 | 4;
|
|
323
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
324
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
325
|
+
constructor();
|
|
326
|
+
static styles: import("lit").CSSResult[];
|
|
327
|
+
render(): TemplateResult;
|
|
328
|
+
}
|
|
329
|
+
export interface SlotDay {
|
|
330
|
+
id?: string;
|
|
331
|
+
/** The day, as 2026-11-14. */
|
|
332
|
+
date: string;
|
|
333
|
+
/** The times on offer, separated by commas: 10:00, 11:30, 14:00. */
|
|
334
|
+
times: string;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Choose a day, then a time: a viewing, a call back, a site visit.
|
|
338
|
+
*
|
|
339
|
+
* Both rows are native radios under the styling, so the arrow keys and screen
|
|
340
|
+
* readers work as they do for any radio group. Its value is the day and time
|
|
341
|
+
* together, as 2026-11-14T10:00.
|
|
342
|
+
*
|
|
343
|
+
* @category form
|
|
344
|
+
* @icon calendar
|
|
345
|
+
*/
|
|
346
|
+
export declare class ImpktSlotPicker extends FieldElement {
|
|
347
|
+
static properties: {
|
|
348
|
+
days: {
|
|
349
|
+
type: ArrayConstructor;
|
|
350
|
+
};
|
|
351
|
+
dayLabel: {
|
|
352
|
+
type: StringConstructor;
|
|
353
|
+
attribute: string;
|
|
354
|
+
};
|
|
355
|
+
timeLabel: {
|
|
356
|
+
type: StringConstructor;
|
|
357
|
+
attribute: string;
|
|
358
|
+
};
|
|
359
|
+
emptyText: {
|
|
360
|
+
type: StringConstructor;
|
|
361
|
+
attribute: string;
|
|
362
|
+
};
|
|
363
|
+
label: {
|
|
364
|
+
type: StringConstructor;
|
|
365
|
+
};
|
|
366
|
+
name: {
|
|
367
|
+
type: StringConstructor;
|
|
368
|
+
};
|
|
369
|
+
value: {
|
|
370
|
+
type: StringConstructor;
|
|
371
|
+
};
|
|
372
|
+
description: {
|
|
373
|
+
type: StringConstructor;
|
|
374
|
+
};
|
|
375
|
+
error: {
|
|
376
|
+
type: StringConstructor;
|
|
377
|
+
};
|
|
378
|
+
required: {
|
|
379
|
+
type: BooleanConstructor;
|
|
380
|
+
reflect: boolean;
|
|
381
|
+
};
|
|
382
|
+
disabled: {
|
|
383
|
+
type: BooleanConstructor;
|
|
384
|
+
reflect: boolean;
|
|
385
|
+
};
|
|
386
|
+
readonly: {
|
|
387
|
+
type: BooleanConstructor;
|
|
388
|
+
reflect: boolean;
|
|
389
|
+
};
|
|
390
|
+
requiredText: {
|
|
391
|
+
type: StringConstructor;
|
|
392
|
+
attribute: string;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
days: SlotDay[];
|
|
396
|
+
dayLabel: string;
|
|
397
|
+
timeLabel: string;
|
|
398
|
+
/** What is said when no times are on offer. */
|
|
399
|
+
emptyText: string;
|
|
400
|
+
private day;
|
|
401
|
+
constructor();
|
|
402
|
+
static styles: import("lit").CSSResult[];
|
|
403
|
+
private get currentDay();
|
|
404
|
+
private chooseDay;
|
|
405
|
+
protected renderLabel(): TemplateResult;
|
|
406
|
+
protected renderControl(): TemplateResult;
|
|
407
|
+
render(): TemplateResult;
|
|
408
|
+
updated(changed: Map<string, unknown>): void;
|
|
409
|
+
}
|
|
410
|
+
declare global {
|
|
411
|
+
interface HTMLElementTagNameMap {
|
|
412
|
+
'impkt-drawer': ImpktDrawer;
|
|
413
|
+
'impkt-toast': ImpktToast;
|
|
414
|
+
'impkt-menu': ImpktMenu;
|
|
415
|
+
'impkt-pagination': ImpktPagination;
|
|
416
|
+
'impkt-avatar': ImpktAvatar;
|
|
417
|
+
'impkt-avatar-group': ImpktAvatarGroup;
|
|
418
|
+
'impkt-empty-state': ImpktEmptyState;
|
|
419
|
+
'impkt-slot-picker': ImpktSlotPicker;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ImpktAvatar,
|
|
3
|
+
ImpktAvatarGroup,
|
|
4
|
+
ImpktDrawer,
|
|
5
|
+
ImpktEmptyState,
|
|
6
|
+
ImpktMenu,
|
|
7
|
+
ImpktPagination,
|
|
8
|
+
ImpktSlotPicker,
|
|
9
|
+
ImpktToast,
|
|
10
|
+
pageWindow
|
|
11
|
+
} from "../chunk-HYPPG4NF.js";
|
|
12
|
+
import "../chunk-3IGNZTJU.js";
|
|
13
|
+
import "../chunk-KFD4O7VA.js";
|
|
14
|
+
import "../chunk-7AJN2TIS.js";
|
|
15
|
+
import "../chunk-D6C7XEY4.js";
|
|
16
|
+
export {
|
|
17
|
+
ImpktAvatar,
|
|
18
|
+
ImpktAvatarGroup,
|
|
19
|
+
ImpktDrawer,
|
|
20
|
+
ImpktEmptyState,
|
|
21
|
+
ImpktMenu,
|
|
22
|
+
ImpktPagination,
|
|
23
|
+
ImpktSlotPicker,
|
|
24
|
+
ImpktToast,
|
|
25
|
+
pageWindow
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=app-ui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -157,8 +157,8 @@ export declare class ImpktCardGrid extends ImpktElement {
|
|
|
157
157
|
headingLevel: 2 | 3 | 4;
|
|
158
158
|
/** The shape of each card's picture. */
|
|
159
159
|
ratio: '16:9' | '4:3' | '3:2' | '1:1';
|
|
160
|
-
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
161
|
-
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
160
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
161
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
162
162
|
constructor();
|
|
163
163
|
static styles: import("lit").CSSResult[];
|
|
164
164
|
render(): TemplateResult;
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
ImpktSpacer,
|
|
5
5
|
ImpktTabs,
|
|
6
6
|
ImpktVisuallyHidden
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-MVEFM5QI.js";
|
|
8
|
+
import "../chunk-KFD4O7VA.js";
|
|
9
|
+
import "../chunk-D6C7XEY4.js";
|
|
10
10
|
export {
|
|
11
11
|
ImpktCardGrid,
|
|
12
12
|
ImpktDivider,
|
|
@@ -31,6 +31,11 @@ import { ImpktElement } from '../base/ImpktElement';
|
|
|
31
31
|
export declare class ImpktButton extends ImpktElement {
|
|
32
32
|
static formAssociated: boolean;
|
|
33
33
|
static properties: {
|
|
34
|
+
hideOn: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
reflect: boolean;
|
|
37
|
+
attribute: string;
|
|
38
|
+
};
|
|
34
39
|
variant: {
|
|
35
40
|
type: StringConstructor;
|
|
36
41
|
reflect: boolean;
|
|
@@ -54,6 +59,11 @@ export declare class ImpktButton extends ImpktElement {
|
|
|
54
59
|
type: BooleanConstructor;
|
|
55
60
|
reflect: boolean;
|
|
56
61
|
};
|
|
62
|
+
fullOnPhone: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
attribute: string;
|
|
65
|
+
reflect: boolean;
|
|
66
|
+
};
|
|
57
67
|
size: {
|
|
58
68
|
type: StringConstructor;
|
|
59
69
|
reflect: boolean;
|
|
@@ -70,6 +80,8 @@ export declare class ImpktButton extends ImpktElement {
|
|
|
70
80
|
type: StringConstructor;
|
|
71
81
|
};
|
|
72
82
|
};
|
|
83
|
+
/** Leave it out on a phone, where a header has no room for it. */
|
|
84
|
+
hideOn: 'never' | 'phone';
|
|
73
85
|
variant: 'primary' | 'secondary' | 'ghost';
|
|
74
86
|
type: 'button' | 'submit' | 'reset';
|
|
75
87
|
disabled: boolean;
|
|
@@ -77,6 +89,8 @@ export declare class ImpktButton extends ImpktElement {
|
|
|
77
89
|
/** Announced when the button becomes busy. Says what is happening, not that something is. */
|
|
78
90
|
busyLabel: string;
|
|
79
91
|
full: boolean;
|
|
92
|
+
/** As wide as its space on a phone only, such as a form's send button. */
|
|
93
|
+
fullOnPhone: boolean;
|
|
80
94
|
size: 'sm' | 'md' | 'lg';
|
|
81
95
|
/** An icon before the words, such as phone or calendar. */
|
|
82
96
|
iconBefore: 'none' | 'arrow-right' | 'arrow-left' | 'chevron-right' | 'chevron-down' | 'check' | 'close' | 'menu' | 'plus' | 'minus' | 'search' | 'external' | 'download' | 'home' | 'phone' | 'mail' | 'map-pin' | 'calendar' | 'clock' | 'user' | 'star' | 'heart' | 'shield' | 'leaf' | 'sun' | 'bolt' | 'key' | 'info' | 'warning' | 'document' | 'pound' | 'chat';
|