@atomic-ui/ui 0.1.3 → 0.1.5
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 +18 -6
- package/dist/base/FieldElement.d.ts +7 -0
- package/dist/{chunk-A4CJ2F3J.js → chunk-4AJPS5AU.js} +8 -4
- package/dist/chunk-4AJPS5AU.js.map +1 -0
- package/dist/{chunk-QYHWR6C5.js → chunk-4JKUAA6K.js} +8 -4
- package/dist/chunk-4JKUAA6K.js.map +1 -0
- package/dist/{chunk-TIKX5POO.js → chunk-57P4WO4Y.js} +32 -12
- package/dist/chunk-57P4WO4Y.js.map +1 -0
- package/dist/{chunk-OBCSDZHP.js → chunk-5RVMMKMO.js} +2 -2
- package/dist/{chunk-DIZCGSJA.js → chunk-6GKI67P7.js} +14 -2
- package/dist/chunk-6GKI67P7.js.map +1 -0
- package/dist/chunk-AXQ5YBN2.js +236 -0
- package/dist/chunk-AXQ5YBN2.js.map +1 -0
- package/dist/chunk-CFGLOYWW.js +85 -0
- package/dist/chunk-CFGLOYWW.js.map +1 -0
- package/dist/{chunk-ZXCSQ6MK.js → chunk-DI2CJ3MZ.js} +9 -1
- package/dist/chunk-DI2CJ3MZ.js.map +1 -0
- package/dist/{chunk-LFOWTFMR.js → chunk-DR3SJ7ZV.js} +2 -2
- package/dist/chunk-G6UVYMA6.js +56 -0
- package/dist/chunk-G6UVYMA6.js.map +1 -0
- package/dist/{chunk-CGMDIZPO.js → chunk-H6L3FSQY.js} +2 -2
- package/dist/{chunk-4KFHQBH2.js → chunk-JPEWRJSQ.js} +16 -3
- package/dist/chunk-JPEWRJSQ.js.map +1 -0
- package/dist/{chunk-PDXOPY22.js → chunk-KWURASAB.js} +2 -2
- package/dist/chunk-LLRJU7XE.js +195 -0
- package/dist/chunk-LLRJU7XE.js.map +1 -0
- package/dist/{chunk-4Y3HJBJY.js → chunk-OFAVRPRK.js} +2 -1
- package/dist/chunk-OFAVRPRK.js.map +1 -0
- package/dist/{chunk-GGODB3GY.js → chunk-QELX47AP.js} +70 -8
- package/dist/chunk-QELX47AP.js.map +1 -0
- package/dist/chunk-QH46SOPJ.js +134 -0
- package/dist/chunk-QH46SOPJ.js.map +1 -0
- package/dist/chunk-U2S7OESF.js +135 -0
- package/dist/chunk-U2S7OESF.js.map +1 -0
- package/dist/{chunk-MAMBT7BZ.js → chunk-ZDYTNFQI.js} +8 -4
- package/dist/chunk-ZDYTNFQI.js.map +1 -0
- package/dist/components/blocks.d.ts +174 -0
- package/dist/components/blocks.js +17 -0
- package/dist/components/blocks.js.map +1 -0
- package/dist/components/button.d.ts +26 -0
- package/dist/components/button.js +2 -1
- package/dist/components/checkbox-group.js +2 -2
- package/dist/components/checkbox.js +2 -2
- package/dist/components/date-input.js +2 -2
- package/dist/components/fieldset.d.ts +49 -0
- package/dist/components/fieldset.js +8 -0
- package/dist/components/fieldset.js.map +1 -0
- package/dist/components/grid.d.ts +1 -1
- package/dist/components/grid.js +1 -1
- package/dist/components/icon.d.ts +89 -0
- package/dist/components/icon.js +14 -0
- package/dist/components/icon.js.map +1 -0
- package/dist/components/layout.d.ts +65 -2
- package/dist/components/layout.js +1 -1
- package/dist/components/link.d.ts +11 -0
- package/dist/components/link.js +2 -1
- package/dist/components/marketing.d.ts +257 -0
- package/dist/components/marketing.js +17 -0
- package/dist/components/marketing.js.map +1 -0
- package/dist/components/media.d.ts +12 -0
- package/dist/components/media.js +1 -1
- package/dist/components/navigation.d.ts +91 -0
- package/dist/components/navigation.js +11 -0
- package/dist/components/navigation.js.map +1 -0
- package/dist/components/page.d.ts +119 -0
- package/dist/components/page.js +10 -0
- package/dist/components/page.js.map +1 -0
- package/dist/components/radio-group.js +2 -2
- package/dist/components/select.d.ts +6 -0
- package/dist/components/select.js +2 -2
- package/dist/components/text-input.d.ts +6 -0
- package/dist/components/text-input.js +2 -2
- package/dist/components/textarea.d.ts +6 -0
- package/dist/components/textarea.js +2 -2
- package/dist/index.d.ts +6 -0
- package/dist/index.js +82 -32
- package/package.json +2 -2
- package/dist/chunk-4KFHQBH2.js.map +0 -1
- package/dist/chunk-4Y3HJBJY.js.map +0 -1
- package/dist/chunk-A4CJ2F3J.js.map +0 -1
- package/dist/chunk-DIZCGSJA.js.map +0 -1
- package/dist/chunk-GGODB3GY.js.map +0 -1
- package/dist/chunk-MAMBT7BZ.js.map +0 -1
- package/dist/chunk-QYHWR6C5.js.map +0 -1
- package/dist/chunk-TIKX5POO.js.map +0 -1
- package/dist/chunk-ZXCSQ6MK.js.map +0 -1
- /package/dist/{chunk-OBCSDZHP.js.map → chunk-5RVMMKMO.js.map} +0 -0
- /package/dist/{chunk-LFOWTFMR.js.map → chunk-DR3SJ7ZV.js.map} +0 -0
- /package/dist/{chunk-CGMDIZPO.js.map → chunk-H6L3FSQY.js.map} +0 -0
- /package/dist/{chunk-PDXOPY22.js.map → chunk-KWURASAB.js.map} +0 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { ImpktElement } from '../base/ImpktElement';
|
|
3
|
+
/**
|
|
4
|
+
* The opening of a page: a short label, a big heading, a line of text, the
|
|
5
|
+
* page's main actions and, beside them, a picture.
|
|
6
|
+
*
|
|
7
|
+
* Put the buttons in the `actions` slot. The picture goes beside the words on
|
|
8
|
+
* a wide screen and below them on a phone, so the heading is always the first
|
|
9
|
+
* thing read.
|
|
10
|
+
*
|
|
11
|
+
* @category layout
|
|
12
|
+
* @icon hero
|
|
13
|
+
* @role heading
|
|
14
|
+
* @slot actions - The page's main buttons and links.
|
|
15
|
+
*/
|
|
16
|
+
export declare class ImpktHero extends ImpktElement {
|
|
17
|
+
static properties: {
|
|
18
|
+
eyebrow: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
};
|
|
21
|
+
heading: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
};
|
|
24
|
+
lead: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
};
|
|
27
|
+
level: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
reflect: boolean;
|
|
30
|
+
};
|
|
31
|
+
imageSrc: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
attribute: string;
|
|
34
|
+
};
|
|
35
|
+
imageAlt: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
attribute: string;
|
|
38
|
+
};
|
|
39
|
+
align: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
reflect: boolean;
|
|
42
|
+
};
|
|
43
|
+
spaceAbove: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
reflect: boolean;
|
|
46
|
+
attribute: string;
|
|
47
|
+
};
|
|
48
|
+
spaceBelow: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
reflect: boolean;
|
|
51
|
+
attribute: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
/** A short label above the heading, such as the name of the development. */
|
|
55
|
+
eyebrow: string;
|
|
56
|
+
heading: string;
|
|
57
|
+
/** A sentence or two under the heading. */
|
|
58
|
+
lead: string;
|
|
59
|
+
/** The heading's level in the page. A page's hero is usually its only level 1. */
|
|
60
|
+
level: 1 | 2;
|
|
61
|
+
imageSrc: string;
|
|
62
|
+
/** What the picture shows. Leave empty only when it is decoration. */
|
|
63
|
+
imageAlt: string;
|
|
64
|
+
/** Where the words sit. Centred heroes have no picture beside them. */
|
|
65
|
+
align: 'start' | 'center';
|
|
66
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
67
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
68
|
+
constructor();
|
|
69
|
+
static styles: import("lit").CSSResult[];
|
|
70
|
+
render(): TemplateResult;
|
|
71
|
+
}
|
|
72
|
+
/** One benefit or feature in a list of them. */
|
|
73
|
+
export interface FeatureItem {
|
|
74
|
+
id?: string;
|
|
75
|
+
icon?: string;
|
|
76
|
+
heading: string;
|
|
77
|
+
text?: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Benefits or features side by side, each with an icon, a short heading and a
|
|
81
|
+
* line of text: "Ten years of cover", "Lower bills from day one".
|
|
82
|
+
*
|
|
83
|
+
* The icons are decoration, because each heading already says what it is.
|
|
84
|
+
* The items are a list, so a screen reader says how many there are.
|
|
85
|
+
*
|
|
86
|
+
* @category content
|
|
87
|
+
* @icon features
|
|
88
|
+
*/
|
|
89
|
+
export declare class ImpktFeatureList extends ImpktElement {
|
|
90
|
+
static properties: {
|
|
91
|
+
items: {
|
|
92
|
+
type: ArrayConstructor;
|
|
93
|
+
};
|
|
94
|
+
columns: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
reflect: boolean;
|
|
97
|
+
};
|
|
98
|
+
headingLevel: {
|
|
99
|
+
type: NumberConstructor;
|
|
100
|
+
attribute: string;
|
|
101
|
+
};
|
|
102
|
+
layout: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
reflect: boolean;
|
|
105
|
+
};
|
|
106
|
+
spaceAbove: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
reflect: boolean;
|
|
109
|
+
attribute: string;
|
|
110
|
+
};
|
|
111
|
+
spaceBelow: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
reflect: boolean;
|
|
114
|
+
attribute: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
items: FeatureItem[];
|
|
118
|
+
columns: 'two' | 'three' | 'four';
|
|
119
|
+
/** The level of each item's heading. One below the heading above the list. */
|
|
120
|
+
headingLevel: 2 | 3 | 4;
|
|
121
|
+
/** Icons above the words, or beside them. */
|
|
122
|
+
layout: 'stacked' | 'inline';
|
|
123
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
124
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
125
|
+
constructor();
|
|
126
|
+
static styles: import("lit").CSSResult[];
|
|
127
|
+
render(): TemplateResult;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Something a customer said, and who said it.
|
|
131
|
+
*
|
|
132
|
+
* It is a `blockquote` with a `figcaption`, so the words and the person are
|
|
133
|
+
* tied together for a screen reader as well as on the screen.
|
|
134
|
+
*
|
|
135
|
+
* @category content
|
|
136
|
+
* @icon quote
|
|
137
|
+
*/
|
|
138
|
+
export declare class ImpktQuote extends ImpktElement {
|
|
139
|
+
static properties: {
|
|
140
|
+
quote: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
};
|
|
143
|
+
person: {
|
|
144
|
+
type: StringConstructor;
|
|
145
|
+
};
|
|
146
|
+
about: {
|
|
147
|
+
type: StringConstructor;
|
|
148
|
+
};
|
|
149
|
+
imageSrc: {
|
|
150
|
+
type: StringConstructor;
|
|
151
|
+
attribute: string;
|
|
152
|
+
};
|
|
153
|
+
size: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
reflect: boolean;
|
|
156
|
+
};
|
|
157
|
+
align: {
|
|
158
|
+
type: StringConstructor;
|
|
159
|
+
reflect: boolean;
|
|
160
|
+
};
|
|
161
|
+
spaceAbove: {
|
|
162
|
+
type: StringConstructor;
|
|
163
|
+
reflect: boolean;
|
|
164
|
+
attribute: string;
|
|
165
|
+
};
|
|
166
|
+
spaceBelow: {
|
|
167
|
+
type: StringConstructor;
|
|
168
|
+
reflect: boolean;
|
|
169
|
+
attribute: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
/** The words they said, without quotation marks. */
|
|
173
|
+
quote: string;
|
|
174
|
+
/** Who said it. */
|
|
175
|
+
person: string;
|
|
176
|
+
/** Who they are, such as "Bought at Larkfield Meadows, 2025". */
|
|
177
|
+
about: string;
|
|
178
|
+
/** A photo of them. It is decoration, because their name is beside it. */
|
|
179
|
+
imageSrc: string;
|
|
180
|
+
size: 'md' | 'lg';
|
|
181
|
+
align: 'start' | 'center';
|
|
182
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
183
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
184
|
+
constructor();
|
|
185
|
+
static styles: import("lit").CSSResult[];
|
|
186
|
+
render(): TemplateResult;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* A number that makes a point, with what it counts beneath it: "36 years",
|
|
190
|
+
* "Building in Kent since 1987".
|
|
191
|
+
*
|
|
192
|
+
* @category content
|
|
193
|
+
* @icon stat
|
|
194
|
+
*/
|
|
195
|
+
export declare class ImpktStat extends ImpktElement {
|
|
196
|
+
static properties: {
|
|
197
|
+
figure: {
|
|
198
|
+
type: StringConstructor;
|
|
199
|
+
};
|
|
200
|
+
label: {
|
|
201
|
+
type: StringConstructor;
|
|
202
|
+
};
|
|
203
|
+
note: {
|
|
204
|
+
type: StringConstructor;
|
|
205
|
+
};
|
|
206
|
+
align: {
|
|
207
|
+
type: StringConstructor;
|
|
208
|
+
reflect: boolean;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
/** The number, written as it should appear, such as "36" or "£280k". */
|
|
212
|
+
figure: string;
|
|
213
|
+
/** What the number counts. */
|
|
214
|
+
label: string;
|
|
215
|
+
/** A line more, if the label needs it. */
|
|
216
|
+
note: string;
|
|
217
|
+
align: 'start' | 'center';
|
|
218
|
+
constructor();
|
|
219
|
+
static styles: import("lit").CSSResult[];
|
|
220
|
+
render(): TemplateResult;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* A short label on something: "New", "Selling fast", "2 left".
|
|
224
|
+
*
|
|
225
|
+
* The tone colours it, and the words carry the meaning, so it reads the same
|
|
226
|
+
* without the colour (1.4.1).
|
|
227
|
+
*
|
|
228
|
+
* @category feedback
|
|
229
|
+
* @icon badge
|
|
230
|
+
* @slot - The badge's words.
|
|
231
|
+
*/
|
|
232
|
+
export declare class ImpktBadge extends ImpktElement {
|
|
233
|
+
static properties: {
|
|
234
|
+
tone: {
|
|
235
|
+
type: StringConstructor;
|
|
236
|
+
reflect: boolean;
|
|
237
|
+
};
|
|
238
|
+
icon: {
|
|
239
|
+
type: StringConstructor;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
tone: 'neutral' | 'brand' | 'success' | 'warning' | 'danger' | 'info';
|
|
243
|
+
/** An icon before the words. */
|
|
244
|
+
icon: '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';
|
|
245
|
+
constructor();
|
|
246
|
+
static styles: import("lit").CSSResult[];
|
|
247
|
+
render(): TemplateResult;
|
|
248
|
+
}
|
|
249
|
+
declare global {
|
|
250
|
+
interface HTMLElementTagNameMap {
|
|
251
|
+
'impkt-hero': ImpktHero;
|
|
252
|
+
'impkt-feature-list': ImpktFeatureList;
|
|
253
|
+
'impkt-quote': ImpktQuote;
|
|
254
|
+
'impkt-stat': ImpktStat;
|
|
255
|
+
'impkt-badge': ImpktBadge;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ImpktBadge,
|
|
3
|
+
ImpktFeatureList,
|
|
4
|
+
ImpktHero,
|
|
5
|
+
ImpktQuote,
|
|
6
|
+
ImpktStat
|
|
7
|
+
} from "../chunk-AXQ5YBN2.js";
|
|
8
|
+
import "../chunk-CFGLOYWW.js";
|
|
9
|
+
import "../chunk-5NUF7ZQA.js";
|
|
10
|
+
export {
|
|
11
|
+
ImpktBadge,
|
|
12
|
+
ImpktFeatureList,
|
|
13
|
+
ImpktHero,
|
|
14
|
+
ImpktQuote,
|
|
15
|
+
ImpktStat
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=marketing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -48,6 +48,14 @@ export declare class ImpktImage extends ImpktElement {
|
|
|
48
48
|
loading: {
|
|
49
49
|
type: StringConstructor;
|
|
50
50
|
};
|
|
51
|
+
ratio: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
reflect: boolean;
|
|
54
|
+
};
|
|
55
|
+
rounded: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
reflect: boolean;
|
|
58
|
+
};
|
|
51
59
|
};
|
|
52
60
|
src: string;
|
|
53
61
|
alt: string;
|
|
@@ -67,6 +75,10 @@ export declare class ImpktImage extends ImpktElement {
|
|
|
67
75
|
focalX: number;
|
|
68
76
|
focalY: number;
|
|
69
77
|
loading: 'lazy' | 'eager';
|
|
78
|
+
/** The picture's shape. It is cropped to fit, keeping the focal point in view. */
|
|
79
|
+
ratio: 'natural' | '16:9' | '4:3' | '3:2' | '1:1';
|
|
80
|
+
/** How round the corners are. */
|
|
81
|
+
rounded: 'none' | 'sm' | 'lg' | 'full';
|
|
70
82
|
constructor();
|
|
71
83
|
static styles: import("lit").CSSResult[];
|
|
72
84
|
render(): TemplateResult;
|
package/dist/components/media.js
CHANGED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { ImpktElement } from '../base/ImpktElement';
|
|
3
|
+
/** One link in a navigation or a trail. */
|
|
4
|
+
export interface NavLink {
|
|
5
|
+
label: string;
|
|
6
|
+
href: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The site's main navigation: a row of links that folds into a Menu button on
|
|
10
|
+
* a narrow screen.
|
|
11
|
+
*
|
|
12
|
+
* **The page you are on is marked in words as well as colour.** Its link
|
|
13
|
+
* carries `aria-current="page"`, which a screen reader announces, and an
|
|
14
|
+
* underline, so it does not rely on colour alone (1.4.1).
|
|
15
|
+
*
|
|
16
|
+
* **The menu is a disclosure, not a pop-up.** The Menu button says whether the
|
|
17
|
+
* list is open (`aria-expanded`), the links follow it in the reading order, and
|
|
18
|
+
* Escape closes it and returns focus to the button.
|
|
19
|
+
*
|
|
20
|
+
* @category action
|
|
21
|
+
* @icon menu
|
|
22
|
+
*/
|
|
23
|
+
export declare class ImpktNav extends ImpktElement {
|
|
24
|
+
static properties: {
|
|
25
|
+
links: {
|
|
26
|
+
type: ArrayConstructor;
|
|
27
|
+
};
|
|
28
|
+
label: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
};
|
|
31
|
+
menuText: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
attribute: string;
|
|
34
|
+
};
|
|
35
|
+
align: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
reflect: boolean;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
/** The links, in order. */
|
|
41
|
+
links: NavLink[];
|
|
42
|
+
/** What the navigation is called for a screen reader, such as "Main". */
|
|
43
|
+
label: string;
|
|
44
|
+
/** The words on the button that opens the links on a narrow screen. */
|
|
45
|
+
menuText: string;
|
|
46
|
+
/** Where the links sit along the row. */
|
|
47
|
+
align: 'start' | 'center' | 'end';
|
|
48
|
+
/** Whether the menu is open on a narrow screen. Not a setting: it is the visitor's. */
|
|
49
|
+
private menuOpen;
|
|
50
|
+
private get open();
|
|
51
|
+
private set open(value);
|
|
52
|
+
constructor();
|
|
53
|
+
static styles: import("lit").CSSResult[];
|
|
54
|
+
private toggle;
|
|
55
|
+
private onKey;
|
|
56
|
+
render(): TemplateResult;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Where the page sits in the site, as a trail of links back to the top: Home,
|
|
60
|
+
* then Developments, then this page.
|
|
61
|
+
*
|
|
62
|
+
* The last item is the page itself. It is not a link, and it carries
|
|
63
|
+
* `aria-current="page"`. The separators are drawn, not written, so a screen
|
|
64
|
+
* reader reads the trail as a list rather than a string of slashes.
|
|
65
|
+
*
|
|
66
|
+
* @category action
|
|
67
|
+
* @icon breadcrumbs
|
|
68
|
+
*/
|
|
69
|
+
export declare class ImpktBreadcrumbs extends ImpktElement {
|
|
70
|
+
static properties: {
|
|
71
|
+
items: {
|
|
72
|
+
type: ArrayConstructor;
|
|
73
|
+
};
|
|
74
|
+
label: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
/** The trail, from the top of the site down to this page. */
|
|
79
|
+
items: NavLink[];
|
|
80
|
+
/** What the trail is called for a screen reader. */
|
|
81
|
+
label: string;
|
|
82
|
+
constructor();
|
|
83
|
+
static styles: import("lit").CSSResult[];
|
|
84
|
+
render(): TemplateResult;
|
|
85
|
+
}
|
|
86
|
+
declare global {
|
|
87
|
+
interface HTMLElementTagNameMap {
|
|
88
|
+
'impkt-nav': ImpktNav;
|
|
89
|
+
'impkt-breadcrumbs': ImpktBreadcrumbs;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { ImpktElement } from '../base/ImpktElement';
|
|
3
|
+
/**
|
|
4
|
+
* The frame every page sits in: a header, the page's own content, and a
|
|
5
|
+
* footer, each kept to the brand's page width with the brand's side margins.
|
|
6
|
+
*
|
|
7
|
+
* A layout puts this at its root, with the site's header and footer in their
|
|
8
|
+
* slots and the page content in the middle, so an app draws the same frame the
|
|
9
|
+
* CMS shows. Without it, a page runs edge to edge.
|
|
10
|
+
*
|
|
11
|
+
* **It gives the page its landmarks.** The header, main content and footer are
|
|
12
|
+
* `header`, `main` and `footer` elements, so a screen reader can jump between
|
|
13
|
+
* them (1.3.1), and the first thing in the page is a "Skip to content" link
|
|
14
|
+
* that appears when it has focus (2.4.1).
|
|
15
|
+
*
|
|
16
|
+
* @category layout
|
|
17
|
+
* @icon layout
|
|
18
|
+
* @slot header - The site's header: its logo, navigation and a call to action.
|
|
19
|
+
* @slot - The page's own content.
|
|
20
|
+
* @slot footer - The site's footer.
|
|
21
|
+
*/
|
|
22
|
+
export declare class ImpktPage extends ImpktElement {
|
|
23
|
+
static properties: {
|
|
24
|
+
width: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
reflect: boolean;
|
|
27
|
+
};
|
|
28
|
+
stickyHeader: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
reflect: boolean;
|
|
31
|
+
attribute: string;
|
|
32
|
+
};
|
|
33
|
+
skipText: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
attribute: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
/** How wide the content runs. Standard is the brand's page width. */
|
|
39
|
+
width: 'narrow' | 'standard' | 'wide';
|
|
40
|
+
/** Keep the header at the top of the screen while the page scrolls. */
|
|
41
|
+
stickyHeader: boolean;
|
|
42
|
+
/** The words of the link that skips past the header to the content. */
|
|
43
|
+
skipText: string;
|
|
44
|
+
constructor();
|
|
45
|
+
static styles: import("lit").CSSResult[];
|
|
46
|
+
private hasSlot;
|
|
47
|
+
private skip;
|
|
48
|
+
render(): TemplateResult;
|
|
49
|
+
connectedCallback(): void;
|
|
50
|
+
disconnectedCallback(): void;
|
|
51
|
+
private observer?;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* A band across the whole width of the page, with its own background, and its
|
|
55
|
+
* content kept to the page width inside it: a coloured strip of features, a
|
|
56
|
+
* quote on a tinted background, a call to action at the foot of a page.
|
|
57
|
+
*
|
|
58
|
+
* Inside a Page it reaches the edges of the screen whatever the page width is,
|
|
59
|
+
* so a page can alternate bands without any of them knowing the frame. Set
|
|
60
|
+
* `bleed` off to keep the band to the page width, as a panel.
|
|
61
|
+
*
|
|
62
|
+
* @category layout
|
|
63
|
+
* @icon section
|
|
64
|
+
* @slot - The section's content.
|
|
65
|
+
*/
|
|
66
|
+
export declare class ImpktSection extends ImpktElement {
|
|
67
|
+
static properties: {
|
|
68
|
+
tone: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
reflect: boolean;
|
|
71
|
+
};
|
|
72
|
+
padding: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
reflect: boolean;
|
|
75
|
+
};
|
|
76
|
+
width: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
reflect: boolean;
|
|
79
|
+
};
|
|
80
|
+
bleed: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
reflect: boolean;
|
|
83
|
+
};
|
|
84
|
+
label: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
};
|
|
87
|
+
spaceAbove: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
reflect: boolean;
|
|
90
|
+
attribute: string;
|
|
91
|
+
};
|
|
92
|
+
spaceBelow: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
reflect: boolean;
|
|
95
|
+
attribute: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
/** The band's background. Text on it takes the matching colour, so it stays readable. */
|
|
99
|
+
tone: 'none' | 'subtle' | 'inset' | 'brand' | 'card';
|
|
100
|
+
/** Space inside the band, above and below its content. */
|
|
101
|
+
padding: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
102
|
+
/** How wide the content inside runs. */
|
|
103
|
+
width: 'narrow' | 'standard' | 'wide';
|
|
104
|
+
/** Run the background to the edges of the screen. */
|
|
105
|
+
bleed: boolean;
|
|
106
|
+
/** A name for the section, so a screen reader can find it in the page's regions. Leave empty for none. */
|
|
107
|
+
label: string;
|
|
108
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
109
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
110
|
+
constructor();
|
|
111
|
+
static styles: import("lit").CSSResult[];
|
|
112
|
+
render(): TemplateResult;
|
|
113
|
+
}
|
|
114
|
+
declare global {
|
|
115
|
+
interface HTMLElementTagNameMap {
|
|
116
|
+
'impkt-page': ImpktPage;
|
|
117
|
+
'impkt-section': ImpktSection;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -22,6 +22,10 @@ export interface SelectOption {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare class ImpktSelect extends FieldElement {
|
|
24
24
|
static properties: {
|
|
25
|
+
width: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
reflect: boolean;
|
|
28
|
+
};
|
|
25
29
|
options: {
|
|
26
30
|
type: ArrayConstructor;
|
|
27
31
|
};
|
|
@@ -62,6 +66,8 @@ export declare class ImpktSelect extends FieldElement {
|
|
|
62
66
|
};
|
|
63
67
|
options: SelectOption[];
|
|
64
68
|
placeholder: string;
|
|
69
|
+
/** How wide the box is, to suit the answer. Full width on a phone whatever this says. */
|
|
70
|
+
width: 'full' | 'lg' | 'md' | 'sm' | 'xs';
|
|
65
71
|
constructor();
|
|
66
72
|
static styles: import("lit").CSSResult[];
|
|
67
73
|
protected renderControl(): TemplateResult;
|
|
@@ -15,6 +15,10 @@ import { FieldElement } from '../base/FieldElement';
|
|
|
15
15
|
*/
|
|
16
16
|
export declare class ImpktTextInput extends FieldElement {
|
|
17
17
|
static properties: {
|
|
18
|
+
width: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
reflect: boolean;
|
|
21
|
+
};
|
|
18
22
|
type: {
|
|
19
23
|
type: StringConstructor;
|
|
20
24
|
};
|
|
@@ -68,6 +72,8 @@ export declare class ImpktTextInput extends FieldElement {
|
|
|
68
72
|
autocomplete: string;
|
|
69
73
|
inputmode: string;
|
|
70
74
|
maxlength: number | undefined;
|
|
75
|
+
/** How wide the box is, to suit the answer. Full width on a phone whatever this says. */
|
|
76
|
+
width: 'full' | 'lg' | 'md' | 'sm' | 'xs';
|
|
71
77
|
constructor();
|
|
72
78
|
static styles: import("lit").CSSResult[];
|
|
73
79
|
protected renderControl(): TemplateResult;
|
|
@@ -7,6 +7,10 @@ import { FieldElement } from '../base/FieldElement';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class ImpktTextarea extends FieldElement {
|
|
9
9
|
static properties: {
|
|
10
|
+
width: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
reflect: boolean;
|
|
13
|
+
};
|
|
10
14
|
rows: {
|
|
11
15
|
type: NumberConstructor;
|
|
12
16
|
};
|
|
@@ -47,6 +51,8 @@ export declare class ImpktTextarea extends FieldElement {
|
|
|
47
51
|
};
|
|
48
52
|
rows: number;
|
|
49
53
|
maxlength: number | undefined;
|
|
54
|
+
/** How wide the box is, to suit the answer. Full width on a phone whatever this says. */
|
|
55
|
+
width: 'full' | 'lg' | 'md' | 'sm' | 'xs';
|
|
50
56
|
constructor();
|
|
51
57
|
static styles: import("lit").CSSResult[];
|
|
52
58
|
protected renderControl(): TemplateResult;
|
package/dist/index.d.ts
CHANGED
|
@@ -29,3 +29,9 @@ export { FieldElement } from './base/FieldElement';
|
|
|
29
29
|
export { token, space, fontSize, lineHeight, fontWeight, t } from './base/tokens';
|
|
30
30
|
export { ImpktGrid } from './components/grid';
|
|
31
31
|
export { ImpktHelp, type HelpKind } from './components/help';
|
|
32
|
+
export { ImpktPage, ImpktSection } from './components/page';
|
|
33
|
+
export { ImpktIcon, ICONS, ICON_NAMES, iconSvg, type IconName } from './components/icon';
|
|
34
|
+
export { ImpktNav, ImpktBreadcrumbs, type NavLink } from './components/navigation';
|
|
35
|
+
export { ImpktHero, ImpktFeatureList, ImpktQuote, ImpktStat, ImpktBadge, type FeatureItem } from './components/marketing';
|
|
36
|
+
export { ImpktDivider, ImpktSpacer, ImpktVisuallyHidden, ImpktTabs, ImpktCardGrid, type TabItem, type CardItem } from './components/blocks';
|
|
37
|
+
export { ImpktFieldset } from './components/fieldset';
|