@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,174 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { ImpktElement } from '../base/ImpktElement';
|
|
3
|
+
/**
|
|
4
|
+
* A line between two parts of a page.
|
|
5
|
+
*
|
|
6
|
+
* It is decoration, so a screen reader passes over it. Where the change of
|
|
7
|
+
* subject matters, a heading says so better.
|
|
8
|
+
*
|
|
9
|
+
* @category layout
|
|
10
|
+
* @icon divider
|
|
11
|
+
*/
|
|
12
|
+
export declare class ImpktDivider extends ImpktElement {
|
|
13
|
+
static properties: {
|
|
14
|
+
spacing: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
reflect: boolean;
|
|
17
|
+
};
|
|
18
|
+
tone: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
reflect: boolean;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
/** Space above and below the line. */
|
|
24
|
+
spacing: 'sm' | 'md' | 'lg' | 'xl';
|
|
25
|
+
tone: 'subtle' | 'strong';
|
|
26
|
+
constructor();
|
|
27
|
+
static styles: import("lit").CSSResult[];
|
|
28
|
+
render(): TemplateResult;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Empty space, from the spacing scale, for the rare place where the gaps of the
|
|
32
|
+
* containers around it are not enough.
|
|
33
|
+
*
|
|
34
|
+
* @category layout
|
|
35
|
+
* @icon spacer
|
|
36
|
+
*/
|
|
37
|
+
export declare class ImpktSpacer extends ImpktElement {
|
|
38
|
+
static properties: {
|
|
39
|
+
size: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
reflect: boolean;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
size: 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
45
|
+
constructor();
|
|
46
|
+
static styles: import("lit").CSSResult[];
|
|
47
|
+
render(): TemplateResult;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Words a screen reader says that are not shown: "(opens a map)" after a link
|
|
51
|
+
* whose purpose is clear on screen from where it sits.
|
|
52
|
+
*
|
|
53
|
+
* @category typography
|
|
54
|
+
* @icon hidden
|
|
55
|
+
* @slot - The words to say.
|
|
56
|
+
*/
|
|
57
|
+
export declare class ImpktVisuallyHidden extends ImpktElement {
|
|
58
|
+
static styles: import("lit").CSSResult[];
|
|
59
|
+
render(): TemplateResult;
|
|
60
|
+
}
|
|
61
|
+
/** One tab and what it shows. */
|
|
62
|
+
export interface TabItem {
|
|
63
|
+
id: string;
|
|
64
|
+
label: string;
|
|
65
|
+
body: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Panels of content behind a row of tabs, one shown at a time: the floor plans
|
|
69
|
+
* of three house types, or what is included and what costs extra.
|
|
70
|
+
*
|
|
71
|
+
* It follows the ARIA tabs pattern. The tabs are one stop in the tab order,
|
|
72
|
+
* the arrow keys, Home and End move between them, and each panel is labelled
|
|
73
|
+
* by its tab. Use an accordion instead when someone may want to compare panels.
|
|
74
|
+
*
|
|
75
|
+
* @category content
|
|
76
|
+
* @icon tabs
|
|
77
|
+
* @fires impkt-change - When another tab is chosen.
|
|
78
|
+
*/
|
|
79
|
+
export declare class ImpktTabs extends ImpktElement {
|
|
80
|
+
static properties: {
|
|
81
|
+
items: {
|
|
82
|
+
type: ArrayConstructor;
|
|
83
|
+
};
|
|
84
|
+
selected: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
reflect: boolean;
|
|
87
|
+
};
|
|
88
|
+
label: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
items: TabItem[];
|
|
93
|
+
/** The id of the tab shown first. The first tab when it is empty. */
|
|
94
|
+
selected: string;
|
|
95
|
+
/** What the set of tabs is about, for a screen reader. */
|
|
96
|
+
label: string;
|
|
97
|
+
constructor();
|
|
98
|
+
static styles: import("lit").CSSResult[];
|
|
99
|
+
private current;
|
|
100
|
+
private choose;
|
|
101
|
+
private onKey;
|
|
102
|
+
render(): TemplateResult;
|
|
103
|
+
}
|
|
104
|
+
/** One card in a row of them. */
|
|
105
|
+
export interface CardItem {
|
|
106
|
+
id?: string;
|
|
107
|
+
heading: string;
|
|
108
|
+
text?: string;
|
|
109
|
+
imageSrc?: string;
|
|
110
|
+
imageAlt?: string;
|
|
111
|
+
href?: string;
|
|
112
|
+
badge?: string;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* A row of cards, each a picture, a heading, a line of text and a link: the
|
|
116
|
+
* developments on a developments page, or the house types at one of them.
|
|
117
|
+
*
|
|
118
|
+
* **The whole card is the link's target, and the heading is its name.** The
|
|
119
|
+
* link is on the heading, so a screen reader hears "Larkfield Meadows, link"
|
|
120
|
+
* once rather than the whole card read out as one long link, and a pointer
|
|
121
|
+
* can still press anywhere on the card.
|
|
122
|
+
*
|
|
123
|
+
* @category content
|
|
124
|
+
* @icon cards
|
|
125
|
+
*/
|
|
126
|
+
export declare class ImpktCardGrid extends ImpktElement {
|
|
127
|
+
static properties: {
|
|
128
|
+
items: {
|
|
129
|
+
type: ArrayConstructor;
|
|
130
|
+
};
|
|
131
|
+
columns: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
reflect: boolean;
|
|
134
|
+
};
|
|
135
|
+
headingLevel: {
|
|
136
|
+
type: NumberConstructor;
|
|
137
|
+
attribute: string;
|
|
138
|
+
};
|
|
139
|
+
ratio: {
|
|
140
|
+
type: StringConstructor;
|
|
141
|
+
reflect: boolean;
|
|
142
|
+
};
|
|
143
|
+
spaceAbove: {
|
|
144
|
+
type: StringConstructor;
|
|
145
|
+
reflect: boolean;
|
|
146
|
+
attribute: string;
|
|
147
|
+
};
|
|
148
|
+
spaceBelow: {
|
|
149
|
+
type: StringConstructor;
|
|
150
|
+
reflect: boolean;
|
|
151
|
+
attribute: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
items: CardItem[];
|
|
155
|
+
columns: 'two' | 'three' | 'four';
|
|
156
|
+
/** The level of each card's heading. One below the heading above the cards. */
|
|
157
|
+
headingLevel: 2 | 3 | 4;
|
|
158
|
+
/** The shape of each card's picture. */
|
|
159
|
+
ratio: '16:9' | '4:3' | '3:2' | '1:1';
|
|
160
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
161
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
162
|
+
constructor();
|
|
163
|
+
static styles: import("lit").CSSResult[];
|
|
164
|
+
render(): TemplateResult;
|
|
165
|
+
}
|
|
166
|
+
declare global {
|
|
167
|
+
interface HTMLElementTagNameMap {
|
|
168
|
+
'impkt-divider': ImpktDivider;
|
|
169
|
+
'impkt-spacer': ImpktSpacer;
|
|
170
|
+
'impkt-visually-hidden': ImpktVisuallyHidden;
|
|
171
|
+
'impkt-tabs': ImpktTabs;
|
|
172
|
+
'impkt-card-grid': ImpktCardGrid;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ImpktCardGrid,
|
|
3
|
+
ImpktDivider,
|
|
4
|
+
ImpktSpacer,
|
|
5
|
+
ImpktTabs,
|
|
6
|
+
ImpktVisuallyHidden
|
|
7
|
+
} from "../chunk-LLRJU7XE.js";
|
|
8
|
+
import "../chunk-CFGLOYWW.js";
|
|
9
|
+
import "../chunk-5NUF7ZQA.js";
|
|
10
|
+
export {
|
|
11
|
+
ImpktCardGrid,
|
|
12
|
+
ImpktDivider,
|
|
13
|
+
ImpktSpacer,
|
|
14
|
+
ImpktTabs,
|
|
15
|
+
ImpktVisuallyHidden
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=blocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -18,6 +18,10 @@ import { ImpktElement } from '../base/ImpktElement';
|
|
|
18
18
|
* submit a form. The native element already has all of that, correctly, in
|
|
19
19
|
* every browser and every assistive technology.
|
|
20
20
|
|
|
21
|
+
*
|
|
22
|
+
* **A button that goes somewhere is a link.** With `href` set it renders an
|
|
23
|
+
* `<a>` styled as a button, so it opens in a new tab, shows its address and is
|
|
24
|
+
* announced as a link, which is what it is.
|
|
21
25
|
*
|
|
22
26
|
* @category action
|
|
23
27
|
* @icon button
|
|
@@ -50,6 +54,21 @@ export declare class ImpktButton extends ImpktElement {
|
|
|
50
54
|
type: BooleanConstructor;
|
|
51
55
|
reflect: boolean;
|
|
52
56
|
};
|
|
57
|
+
size: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
reflect: boolean;
|
|
60
|
+
};
|
|
61
|
+
iconBefore: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
attribute: string;
|
|
64
|
+
};
|
|
65
|
+
iconAfter: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
attribute: string;
|
|
68
|
+
};
|
|
69
|
+
href: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
};
|
|
53
72
|
};
|
|
54
73
|
variant: 'primary' | 'secondary' | 'ghost';
|
|
55
74
|
type: 'button' | 'submit' | 'reset';
|
|
@@ -58,6 +77,13 @@ export declare class ImpktButton extends ImpktElement {
|
|
|
58
77
|
/** Announced when the button becomes busy. Says what is happening, not that something is. */
|
|
59
78
|
busyLabel: string;
|
|
60
79
|
full: boolean;
|
|
80
|
+
size: 'sm' | 'md' | 'lg';
|
|
81
|
+
/** An icon before the words, such as phone or calendar. */
|
|
82
|
+
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';
|
|
83
|
+
/** An icon after the words, such as arrow-right. */
|
|
84
|
+
iconAfter: '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';
|
|
85
|
+
/** Where the button goes, when it opens a page rather than doing something here. */
|
|
86
|
+
href: string;
|
|
61
87
|
private internals;
|
|
62
88
|
constructor();
|
|
63
89
|
static styles: import("lit").CSSResult[];
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { ImpktElement } from '../base/ImpktElement';
|
|
3
|
+
/**
|
|
4
|
+
* Fields that belong together under one question: the lines of an address,
|
|
5
|
+
* or a name in two parts.
|
|
6
|
+
*
|
|
7
|
+
* **The question is the group's name.** It is a `fieldset` with a `legend`, so
|
|
8
|
+
* a screen reader says "Your address, group" on the way in, and each field
|
|
9
|
+
* inside is heard as part of it (1.3.1, 3.3.2). An error for the group as a
|
|
10
|
+
* whole, such as "Enter a full address", is tied to it the same way.
|
|
11
|
+
*
|
|
12
|
+
* @category form
|
|
13
|
+
* @icon fieldset
|
|
14
|
+
* @slot - The fields in the group.
|
|
15
|
+
*/
|
|
16
|
+
export declare class ImpktFieldset extends ImpktElement {
|
|
17
|
+
static properties: {
|
|
18
|
+
legend: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
};
|
|
21
|
+
description: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
};
|
|
24
|
+
error: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
reflect: boolean;
|
|
27
|
+
};
|
|
28
|
+
size: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
reflect: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
/** The question the fields answer together. */
|
|
34
|
+
legend: string;
|
|
35
|
+
/** A hint for the whole group, under the question. */
|
|
36
|
+
description: string;
|
|
37
|
+
/** What is wrong with the group as a whole. */
|
|
38
|
+
error: string;
|
|
39
|
+
/** How large the question is. A page that asks only this question makes it the page's heading size. */
|
|
40
|
+
size: 'md' | 'lg' | 'xl';
|
|
41
|
+
constructor();
|
|
42
|
+
static styles: import("lit").CSSResult[];
|
|
43
|
+
render(): TemplateResult;
|
|
44
|
+
}
|
|
45
|
+
declare global {
|
|
46
|
+
interface HTMLElementTagNameMap {
|
|
47
|
+
'impkt-fieldset': ImpktFieldset;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -52,7 +52,7 @@ export declare class ImpktGrid extends ImpktElement {
|
|
|
52
52
|
/** How wide each column is against the others. Applies when it has as many parts as there are columns. */
|
|
53
53
|
widths: 'equal' | '2:1' | '1:2' | '3:1' | '1:3' | '1:2:1' | '2:1:1' | '1:1:2';
|
|
54
54
|
/** The space between columns, from the brand's gutters. */
|
|
55
|
-
gap: 'none' | 'sm' | 'md' | 'lg';
|
|
55
|
+
gap: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
56
56
|
/** The screens on which the columns stack, one above another, in column order. */
|
|
57
57
|
stackOn: 'phone' | 'tablet' | 'never';
|
|
58
58
|
/** How columns of different heights line up. */
|
package/dist/components/grid.js
CHANGED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { nothing, type TemplateResult } from 'lit';
|
|
2
|
+
import { ImpktElement } from '../base/ImpktElement';
|
|
3
|
+
/**
|
|
4
|
+
* The icons the library draws, each on a 24 by 24 grid in strokes of the
|
|
5
|
+
* current text colour. Kept to a set the components need and editors reach
|
|
6
|
+
* for, so an icon always matches the line weight of the ones beside it.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ICONS: {
|
|
9
|
+
readonly 'arrow-right': TemplateResult<2>;
|
|
10
|
+
readonly 'arrow-left': TemplateResult<2>;
|
|
11
|
+
readonly 'chevron-right': TemplateResult<2>;
|
|
12
|
+
readonly 'chevron-down': TemplateResult<2>;
|
|
13
|
+
readonly check: TemplateResult<2>;
|
|
14
|
+
readonly close: TemplateResult<2>;
|
|
15
|
+
readonly menu: TemplateResult<2>;
|
|
16
|
+
readonly plus: TemplateResult<2>;
|
|
17
|
+
readonly minus: TemplateResult<2>;
|
|
18
|
+
readonly search: TemplateResult<2>;
|
|
19
|
+
readonly external: TemplateResult<2>;
|
|
20
|
+
readonly download: TemplateResult<2>;
|
|
21
|
+
readonly home: TemplateResult<2>;
|
|
22
|
+
readonly phone: TemplateResult<2>;
|
|
23
|
+
readonly mail: TemplateResult<2>;
|
|
24
|
+
readonly 'map-pin': TemplateResult<2>;
|
|
25
|
+
readonly calendar: TemplateResult<2>;
|
|
26
|
+
readonly clock: TemplateResult<2>;
|
|
27
|
+
readonly user: TemplateResult<2>;
|
|
28
|
+
readonly star: TemplateResult<2>;
|
|
29
|
+
readonly heart: TemplateResult<2>;
|
|
30
|
+
readonly shield: TemplateResult<2>;
|
|
31
|
+
readonly leaf: TemplateResult<2>;
|
|
32
|
+
readonly sun: TemplateResult<2>;
|
|
33
|
+
readonly bolt: TemplateResult<2>;
|
|
34
|
+
readonly key: TemplateResult<2>;
|
|
35
|
+
readonly info: TemplateResult<2>;
|
|
36
|
+
readonly warning: TemplateResult<2>;
|
|
37
|
+
readonly document: TemplateResult<2>;
|
|
38
|
+
readonly pound: TemplateResult<2>;
|
|
39
|
+
readonly chat: TemplateResult<2>;
|
|
40
|
+
};
|
|
41
|
+
export type IconName = keyof typeof ICONS;
|
|
42
|
+
export declare const ICON_NAMES: IconName[];
|
|
43
|
+
/** An icon as markup, for components that draw one beside their own words. Always decorative. */
|
|
44
|
+
export declare function iconSvg(name: string | undefined, size?: string): TemplateResult | typeof nothing;
|
|
45
|
+
/**
|
|
46
|
+
* A small picture that stands for something: a phone beside a number, a tick
|
|
47
|
+
* beside a benefit.
|
|
48
|
+
*
|
|
49
|
+
* **An icon is decorative unless it is labelled.** With no `label` it is
|
|
50
|
+
* hidden from screen readers, because the words beside it already say what it
|
|
51
|
+
* means. Give it a label only when it stands alone and carries meaning (1.1.1).
|
|
52
|
+
*
|
|
53
|
+
* @category media
|
|
54
|
+
* @icon star
|
|
55
|
+
*/
|
|
56
|
+
export declare class ImpktIcon extends ImpktElement {
|
|
57
|
+
static properties: {
|
|
58
|
+
name: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
reflect: boolean;
|
|
61
|
+
};
|
|
62
|
+
label: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
};
|
|
65
|
+
size: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
reflect: boolean;
|
|
68
|
+
};
|
|
69
|
+
tone: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
reflect: boolean;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
/** Which icon. */
|
|
75
|
+
name: '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';
|
|
76
|
+
/** What the icon means, when it stands alone. Leave empty when words beside it say the same. */
|
|
77
|
+
label: string;
|
|
78
|
+
size: 'sm' | 'md' | 'lg' | 'xl';
|
|
79
|
+
/** The icon's colour. */
|
|
80
|
+
tone: 'inherit' | 'brand' | 'muted';
|
|
81
|
+
constructor();
|
|
82
|
+
static styles: import("lit").CSSResult[];
|
|
83
|
+
render(): TemplateResult;
|
|
84
|
+
}
|
|
85
|
+
declare global {
|
|
86
|
+
interface HTMLElementTagNameMap {
|
|
87
|
+
'impkt-icon': ImpktIcon;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -19,6 +19,18 @@ export declare class ImpktStack extends ImpktElement {
|
|
|
19
19
|
type: StringConstructor;
|
|
20
20
|
reflect: boolean;
|
|
21
21
|
};
|
|
22
|
+
align: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
reflect: boolean;
|
|
25
|
+
};
|
|
26
|
+
direction: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
reflect: boolean;
|
|
29
|
+
};
|
|
30
|
+
justify: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
reflect: boolean;
|
|
33
|
+
};
|
|
22
34
|
spaceAbove: {
|
|
23
35
|
type: StringConstructor;
|
|
24
36
|
reflect: boolean;
|
|
@@ -30,7 +42,13 @@ export declare class ImpktStack extends ImpktElement {
|
|
|
30
42
|
attribute: string;
|
|
31
43
|
};
|
|
32
44
|
};
|
|
33
|
-
gap: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
45
|
+
gap: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
46
|
+
/** How the items line up across the stack. */
|
|
47
|
+
align: 'stretch' | 'start' | 'center' | 'end';
|
|
48
|
+
/** Down the page, or along a row that wraps when it runs out of room, such as a row of buttons. */
|
|
49
|
+
direction: 'vertical' | 'horizontal';
|
|
50
|
+
/** Where the items sit along a row. */
|
|
51
|
+
justify: 'start' | 'center' | 'end' | 'between';
|
|
34
52
|
/** Space before the stack, from the spacing scale. */
|
|
35
53
|
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
36
54
|
/** Space after the stack, from the spacing scale. */
|
|
@@ -47,6 +65,26 @@ export declare class ImpktStack extends ImpktElement {
|
|
|
47
65
|
*/
|
|
48
66
|
export declare class ImpktCard extends ImpktElement {
|
|
49
67
|
static properties: {
|
|
68
|
+
tone: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
reflect: boolean;
|
|
71
|
+
};
|
|
72
|
+
padding: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
reflect: boolean;
|
|
75
|
+
};
|
|
76
|
+
imageSrc: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
attribute: string;
|
|
79
|
+
};
|
|
80
|
+
imageAlt: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
attribute: string;
|
|
83
|
+
};
|
|
84
|
+
ratio: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
reflect: boolean;
|
|
87
|
+
};
|
|
50
88
|
spaceAbove: {
|
|
51
89
|
type: StringConstructor;
|
|
52
90
|
reflect: boolean;
|
|
@@ -58,6 +96,16 @@ export declare class ImpktCard extends ImpktElement {
|
|
|
58
96
|
attribute: string;
|
|
59
97
|
};
|
|
60
98
|
};
|
|
99
|
+
/** The card's surface. Text on a brand card takes the brand's text colour. */
|
|
100
|
+
tone: 'default' | 'subtle' | 'brand' | 'outline' | 'plain';
|
|
101
|
+
/** Space inside the card. */
|
|
102
|
+
padding: 'none' | 'sm' | 'md' | 'lg';
|
|
103
|
+
/** A picture across the top of the card. */
|
|
104
|
+
imageSrc: string;
|
|
105
|
+
/** What the picture shows. Leave empty only when it is decoration. */
|
|
106
|
+
imageAlt: string;
|
|
107
|
+
/** The picture's shape. */
|
|
108
|
+
ratio: '16:9' | '4:3' | '3:2' | '1:1';
|
|
61
109
|
/** Space before the card, from the spacing scale. */
|
|
62
110
|
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
63
111
|
/** Space after the card, from the spacing scale. */
|
|
@@ -91,9 +139,19 @@ export declare class ImpktHeading extends ImpktElement {
|
|
|
91
139
|
type: StringConstructor;
|
|
92
140
|
reflect: boolean;
|
|
93
141
|
};
|
|
142
|
+
eyebrow: {
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
};
|
|
145
|
+
align: {
|
|
146
|
+
type: StringConstructor;
|
|
147
|
+
reflect: boolean;
|
|
148
|
+
};
|
|
94
149
|
};
|
|
95
150
|
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
96
151
|
size: '3xl' | '2xl' | 'xl' | 'lg' | 'md';
|
|
152
|
+
/** A short label above the heading, such as "Why Larkfield". Part of the heading, read before it. */
|
|
153
|
+
eyebrow: string;
|
|
154
|
+
align: 'start' | 'center';
|
|
97
155
|
constructor();
|
|
98
156
|
static styles: import("lit").CSSResult[];
|
|
99
157
|
render(): TemplateResult;
|
|
@@ -114,9 +172,14 @@ export declare class ImpktText extends ImpktElement {
|
|
|
114
172
|
type: StringConstructor;
|
|
115
173
|
reflect: boolean;
|
|
116
174
|
};
|
|
175
|
+
align: {
|
|
176
|
+
type: StringConstructor;
|
|
177
|
+
reflect: boolean;
|
|
178
|
+
};
|
|
117
179
|
};
|
|
118
|
-
size: 'sm' | 'md' | 'lg';
|
|
180
|
+
size: 'sm' | 'md' | 'lg' | 'xl';
|
|
119
181
|
tone: 'default' | 'muted';
|
|
182
|
+
align: 'start' | 'center';
|
|
120
183
|
constructor();
|
|
121
184
|
static styles: import("lit").CSSResult[];
|
|
122
185
|
render(): TemplateResult;
|
|
@@ -31,10 +31,21 @@ export declare class ImpktLink extends ImpktElement {
|
|
|
31
31
|
type: StringConstructor;
|
|
32
32
|
attribute: string;
|
|
33
33
|
};
|
|
34
|
+
variant: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
reflect: boolean;
|
|
37
|
+
};
|
|
38
|
+
icon: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
};
|
|
34
41
|
};
|
|
35
42
|
href: string;
|
|
36
43
|
external: boolean;
|
|
37
44
|
externalText: string;
|
|
45
|
+
/** In a sentence, or on its own line as a call to action, bolder and with an arrow. */
|
|
46
|
+
variant: 'inline' | 'standalone';
|
|
47
|
+
/** An icon after the words. A standalone link has an arrow unless it says otherwise. */
|
|
48
|
+
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';
|
|
38
49
|
constructor();
|
|
39
50
|
static styles: import("lit").CSSResult[];
|
|
40
51
|
render(): TemplateResult;
|