@atomic-ui/ui 0.1.4 → 0.1.7
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 +30 -6
- package/dist/base/FieldElement.d.ts +7 -0
- package/dist/base/tokens.d.ts +23 -1
- package/dist/chunk-2YQA3VBY.js +85 -0
- package/dist/chunk-2YQA3VBY.js.map +1 -0
- package/dist/{chunk-LFOWTFMR.js → chunk-4HU4Y23Q.js} +3 -3
- package/dist/chunk-5EA4IDUD.js +177 -0
- package/dist/chunk-5EA4IDUD.js.map +1 -0
- package/dist/{chunk-3OSL2HMN.js → chunk-6ICOJPMD.js} +7 -5
- package/dist/chunk-6ICOJPMD.js.map +1 -0
- package/dist/{chunk-ZXCSQ6MK.js → chunk-7BIQ3K6H.js} +10 -2
- package/dist/chunk-7BIQ3K6H.js.map +1 -0
- package/dist/chunk-7Y6UCSUS.js +361 -0
- package/dist/chunk-7Y6UCSUS.js.map +1 -0
- package/dist/chunk-BTGCUONV.js +56 -0
- package/dist/chunk-BTGCUONV.js.map +1 -0
- package/dist/{chunk-QYHWR6C5.js → chunk-C36CZRHK.js} +20 -7
- package/dist/chunk-C36CZRHK.js.map +1 -0
- package/dist/{chunk-MAMBT7BZ.js → chunk-CMAU4DSB.js} +21 -7
- package/dist/chunk-CMAU4DSB.js.map +1 -0
- package/dist/{chunk-HWNY6U5F.js → chunk-G6OVKNL7.js} +2 -2
- package/dist/{chunk-6UDDZQDK.js → chunk-GO2IBRFP.js} +3 -3
- package/dist/chunk-GO2IBRFP.js.map +1 -0
- package/dist/{chunk-PDXOPY22.js → chunk-GSCVG2ER.js} +3 -3
- package/dist/{chunk-IBTOZOGI.js → chunk-HWWA27DN.js} +2 -2
- package/dist/chunk-MLVUMCQ2.js +167 -0
- package/dist/chunk-MLVUMCQ2.js.map +1 -0
- package/dist/{chunk-A4CJ2F3J.js → chunk-MOEMFL4K.js} +21 -7
- package/dist/chunk-MOEMFL4K.js.map +1 -0
- package/dist/{chunk-OBCSDZHP.js → chunk-NQKYHILD.js} +3 -3
- package/dist/{chunk-5NUF7ZQA.js → chunk-NTNXHLTM.js} +24 -3
- package/dist/chunk-NTNXHLTM.js.map +1 -0
- package/dist/{chunk-4Y3HJBJY.js → chunk-OB7LC6NJ.js} +3 -2
- package/dist/chunk-OB7LC6NJ.js.map +1 -0
- package/dist/chunk-QCNT7D5V.js +549 -0
- package/dist/chunk-QCNT7D5V.js.map +1 -0
- package/dist/{chunk-CGMDIZPO.js → chunk-QDNI54ON.js} +3 -3
- package/dist/chunk-T6L3USBZ.js +245 -0
- package/dist/chunk-T6L3USBZ.js.map +1 -0
- package/dist/{chunk-TZD7IVVQ.js → chunk-TPF4MOMF.js} +8 -3
- package/dist/chunk-TPF4MOMF.js.map +1 -0
- package/dist/{chunk-S3EQO33M.js → chunk-VTFCTWSX.js} +6 -4
- package/dist/chunk-VTFCTWSX.js.map +1 -0
- package/dist/{chunk-2RBYVWZT.js → chunk-VWNBB7FW.js} +5 -3
- package/dist/chunk-VWNBB7FW.js.map +1 -0
- package/dist/{chunk-DIZCGSJA.js → chunk-WECSVHIM.js} +15 -3
- package/dist/chunk-WECSVHIM.js.map +1 -0
- package/dist/chunk-X7IPZPTG.js +710 -0
- package/dist/chunk-X7IPZPTG.js.map +1 -0
- package/dist/{chunk-TIKX5POO.js → chunk-XJP45LFA.js} +55 -28
- package/dist/chunk-XJP45LFA.js.map +1 -0
- package/dist/{chunk-6MLXFFH4.js → chunk-XVKEM5JY.js} +3 -3
- package/dist/chunk-XVKEM5JY.js.map +1 -0
- package/dist/chunk-ZBLTU67D.js +424 -0
- package/dist/chunk-ZBLTU67D.js.map +1 -0
- package/dist/{chunk-4KFHQBH2.js → chunk-ZGAOMRYD.js} +17 -4
- package/dist/chunk-ZGAOMRYD.js.map +1 -0
- package/dist/chunk-ZQJD4YEJ.js +195 -0
- package/dist/chunk-ZQJD4YEJ.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 +26 -0
- package/dist/components/app-ui.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 +33 -0
- package/dist/components/button.js +3 -2
- 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/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 +3 -3
- package/dist/components/grid.js +2 -2
- package/dist/components/help.js +2 -2
- 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 +75 -7
- package/dist/components/layout.js +2 -2
- package/dist/components/link.d.ts +11 -0
- package/dist/components/link.js +3 -2
- package/dist/components/marketing.d.ts +370 -0
- package/dist/components/marketing.js +21 -0
- package/dist/components/marketing.js.map +1 -0
- package/dist/components/media.d.ts +12 -0
- package/dist/components/media.js +2 -2
- package/dist/components/navigation.d.ts +98 -0
- package/dist/components/navigation.js +11 -0
- package/dist/components/navigation.js.map +1 -0
- package/dist/components/organisms.d.ts +547 -0
- package/dist/components/organisms.js +25 -0
- package/dist/components/organisms.js.map +1 -0
- package/dist/components/page.d.ts +130 -0
- package/dist/components/page.js +10 -0
- package/dist/components/page.js.map +1 -0
- package/dist/components/price.d.ts +5 -0
- package/dist/components/price.js +2 -2
- package/dist/components/progress.js +2 -2
- package/dist/components/property.d.ts +389 -0
- package/dist/components/property.js +19 -0
- package/dist/components/property.js.map +1 -0
- package/dist/components/radio-group.js +3 -3
- package/dist/components/select.d.ts +6 -0
- package/dist/components/select.js +3 -3
- package/dist/components/summary-list.js +2 -2
- package/dist/components/table.js +2 -2
- package/dist/components/text-input.d.ts +6 -0
- package/dist/components/text-input.js +3 -3
- package/dist/components/textarea.d.ts +6 -0
- package/dist/components/textarea.js +3 -3
- package/dist/index.d.ts +9 -0
- package/dist/index.js +140 -36
- package/package.json +2 -2
- package/dist/chunk-2RBYVWZT.js.map +0 -1
- package/dist/chunk-3OSL2HMN.js.map +0 -1
- package/dist/chunk-4KFHQBH2.js.map +0 -1
- package/dist/chunk-4Y3HJBJY.js.map +0 -1
- package/dist/chunk-5NUF7ZQA.js.map +0 -1
- package/dist/chunk-6MLXFFH4.js.map +0 -1
- package/dist/chunk-6UDDZQDK.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 +0 -172
- 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-S3EQO33M.js.map +0 -1
- package/dist/chunk-TIKX5POO.js.map +0 -1
- package/dist/chunk-TZD7IVVQ.js.map +0 -1
- package/dist/chunk-ZXCSQ6MK.js.map +0 -1
- /package/dist/{chunk-LFOWTFMR.js.map → chunk-4HU4Y23Q.js.map} +0 -0
- /package/dist/{chunk-HWNY6U5F.js.map → chunk-G6OVKNL7.js.map} +0 -0
- /package/dist/{chunk-PDXOPY22.js.map → chunk-GSCVG2ER.js.map} +0 -0
- /package/dist/{chunk-IBTOZOGI.js.map → chunk-HWWA27DN.js.map} +0 -0
- /package/dist/{chunk-OBCSDZHP.js.map → chunk-NQKYHILD.js.map} +0 -0
- /package/dist/{chunk-CGMDIZPO.js.map → chunk-QDNI54ON.js.map} +0 -0
|
@@ -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,11 +42,17 @@ 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
|
-
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
53
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
36
54
|
/** Space after the stack, from the spacing scale. */
|
|
37
|
-
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
55
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
38
56
|
constructor();
|
|
39
57
|
static styles: import("lit").CSSResult[];
|
|
40
58
|
render(): TemplateResult;
|
|
@@ -47,6 +65,29 @@ 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
|
+
};
|
|
88
|
+
badge: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
};
|
|
50
91
|
spaceAbove: {
|
|
51
92
|
type: StringConstructor;
|
|
52
93
|
reflect: boolean;
|
|
@@ -58,10 +99,22 @@ export declare class ImpktCard extends ImpktElement {
|
|
|
58
99
|
attribute: string;
|
|
59
100
|
};
|
|
60
101
|
};
|
|
102
|
+
/** The card's surface. Text on a brand card takes the brand's text colour. */
|
|
103
|
+
tone: 'default' | 'subtle' | 'brand' | 'outline' | 'plain';
|
|
104
|
+
/** Space inside the card. */
|
|
105
|
+
padding: 'none' | 'sm' | 'md' | 'lg';
|
|
106
|
+
/** A picture across the top of the card. */
|
|
107
|
+
imageSrc: string;
|
|
108
|
+
/** What the picture shows. Leave empty only when it is decoration. */
|
|
109
|
+
imageAlt: string;
|
|
110
|
+
/** A short label on the picture, such as "3 left". */
|
|
111
|
+
badge: string;
|
|
112
|
+
/** The picture's shape. */
|
|
113
|
+
ratio: '16:9' | '4:3' | '3:2' | '1:1';
|
|
61
114
|
/** Space before the card, from the spacing scale. */
|
|
62
|
-
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
115
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
63
116
|
/** Space after the card, from the spacing scale. */
|
|
64
|
-
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
117
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
65
118
|
constructor();
|
|
66
119
|
static styles: import("lit").CSSResult[];
|
|
67
120
|
render(): TemplateResult;
|
|
@@ -91,9 +144,19 @@ export declare class ImpktHeading extends ImpktElement {
|
|
|
91
144
|
type: StringConstructor;
|
|
92
145
|
reflect: boolean;
|
|
93
146
|
};
|
|
147
|
+
eyebrow: {
|
|
148
|
+
type: StringConstructor;
|
|
149
|
+
};
|
|
150
|
+
align: {
|
|
151
|
+
type: StringConstructor;
|
|
152
|
+
reflect: boolean;
|
|
153
|
+
};
|
|
94
154
|
};
|
|
95
155
|
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
96
|
-
size: '3xl' | '2xl' | 'xl' | 'lg' | 'md';
|
|
156
|
+
size: '5xl' | '4xl' | '3xl' | '2xl' | 'xl' | 'lg' | 'md' | 'sm';
|
|
157
|
+
/** A short label above the heading, such as "Why Larkfield". Part of the heading, read before it. */
|
|
158
|
+
eyebrow: string;
|
|
159
|
+
align: 'start' | 'center';
|
|
97
160
|
constructor();
|
|
98
161
|
static styles: import("lit").CSSResult[];
|
|
99
162
|
render(): TemplateResult;
|
|
@@ -114,9 +177,14 @@ export declare class ImpktText extends ImpktElement {
|
|
|
114
177
|
type: StringConstructor;
|
|
115
178
|
reflect: boolean;
|
|
116
179
|
};
|
|
180
|
+
align: {
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
reflect: boolean;
|
|
183
|
+
};
|
|
117
184
|
};
|
|
118
|
-
size: 'sm' | 'md' | 'lg';
|
|
185
|
+
size: 'sm' | 'md' | 'lg' | 'xl';
|
|
119
186
|
tone: 'default' | 'muted';
|
|
187
|
+
align: 'start' | 'center';
|
|
120
188
|
constructor();
|
|
121
189
|
static styles: import("lit").CSSResult[];
|
|
122
190
|
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;
|
package/dist/components/link.js
CHANGED
|
@@ -0,0 +1,370 @@
|
|
|
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
|
+
* @slot search - A search bar across the bottom of a full-picture hero.
|
|
16
|
+
*/
|
|
17
|
+
export declare class ImpktHero extends ImpktElement {
|
|
18
|
+
static properties: {
|
|
19
|
+
eyebrow: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
};
|
|
22
|
+
heading: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
};
|
|
25
|
+
lead: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
};
|
|
28
|
+
level: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
reflect: boolean;
|
|
31
|
+
};
|
|
32
|
+
imageSrc: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
attribute: string;
|
|
35
|
+
};
|
|
36
|
+
imageAlt: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
attribute: string;
|
|
39
|
+
};
|
|
40
|
+
treatment: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
reflect: boolean;
|
|
43
|
+
};
|
|
44
|
+
ratingText: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
attribute: string;
|
|
47
|
+
};
|
|
48
|
+
eyebrowIcon: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
attribute: string;
|
|
51
|
+
};
|
|
52
|
+
align: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
reflect: boolean;
|
|
55
|
+
};
|
|
56
|
+
spaceAbove: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
reflect: boolean;
|
|
59
|
+
attribute: string;
|
|
60
|
+
};
|
|
61
|
+
spaceBelow: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
reflect: boolean;
|
|
64
|
+
attribute: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
/** A short label above the heading, such as the name of the development. */
|
|
68
|
+
eyebrow: string;
|
|
69
|
+
heading: string;
|
|
70
|
+
/** A sentence or two under the heading. */
|
|
71
|
+
lead: string;
|
|
72
|
+
/** The heading's level in the page. A page's hero is usually its only level 1. */
|
|
73
|
+
level: 1 | 2;
|
|
74
|
+
imageSrc: string;
|
|
75
|
+
/** What the picture shows. Leave empty only when it is decoration. */
|
|
76
|
+
imageAlt: string;
|
|
77
|
+
/** The picture beside the words, or filling the whole block with the words over it. */
|
|
78
|
+
treatment: 'split' | 'cover';
|
|
79
|
+
/** A short line of proof on the picture, such as "4.8 from 312 buyers". */
|
|
80
|
+
ratingText: string;
|
|
81
|
+
/** A small picture before the eyebrow on a full-picture hero. */
|
|
82
|
+
eyebrowIcon: '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
|
+
/** Where the words sit. Centred heroes have no picture beside them. */
|
|
84
|
+
align: 'start' | 'center';
|
|
85
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
86
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
87
|
+
constructor();
|
|
88
|
+
static styles: import("lit").CSSResult[];
|
|
89
|
+
render(): TemplateResult;
|
|
90
|
+
}
|
|
91
|
+
/** One benefit or feature in a list of them. */
|
|
92
|
+
export interface FeatureItem {
|
|
93
|
+
id?: string;
|
|
94
|
+
icon?: string;
|
|
95
|
+
heading: string;
|
|
96
|
+
text?: string;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Benefits or features side by side, each with an icon, a short heading and a
|
|
100
|
+
* line of text: "Ten years of cover", "Lower bills from day one".
|
|
101
|
+
*
|
|
102
|
+
* The icons are decoration, because each heading already says what it is.
|
|
103
|
+
* The items are a list, so a screen reader says how many there are.
|
|
104
|
+
*
|
|
105
|
+
* @category content
|
|
106
|
+
* @icon features
|
|
107
|
+
*/
|
|
108
|
+
export declare class ImpktFeatureList extends ImpktElement {
|
|
109
|
+
static properties: {
|
|
110
|
+
items: {
|
|
111
|
+
type: ArrayConstructor;
|
|
112
|
+
};
|
|
113
|
+
columns: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
reflect: boolean;
|
|
116
|
+
};
|
|
117
|
+
headingLevel: {
|
|
118
|
+
type: NumberConstructor;
|
|
119
|
+
attribute: string;
|
|
120
|
+
};
|
|
121
|
+
layout: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
reflect: boolean;
|
|
124
|
+
};
|
|
125
|
+
spaceAbove: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
reflect: boolean;
|
|
128
|
+
attribute: string;
|
|
129
|
+
};
|
|
130
|
+
spaceBelow: {
|
|
131
|
+
type: StringConstructor;
|
|
132
|
+
reflect: boolean;
|
|
133
|
+
attribute: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
items: FeatureItem[];
|
|
137
|
+
columns: 'two' | 'three' | 'four';
|
|
138
|
+
/** The level of each item's heading. One below the heading above the list. */
|
|
139
|
+
headingLevel: 2 | 3 | 4;
|
|
140
|
+
/** Icons above the words, or beside them. */
|
|
141
|
+
layout: 'stacked' | 'inline';
|
|
142
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
143
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
144
|
+
constructor();
|
|
145
|
+
static styles: import("lit").CSSResult[];
|
|
146
|
+
render(): TemplateResult;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Something a customer said, and who said it.
|
|
150
|
+
*
|
|
151
|
+
* It is a `blockquote` with a `figcaption`, so the words and the person are
|
|
152
|
+
* tied together for a screen reader as well as on the screen.
|
|
153
|
+
*
|
|
154
|
+
* @category content
|
|
155
|
+
* @icon quote
|
|
156
|
+
*/
|
|
157
|
+
export declare class ImpktQuote extends ImpktElement {
|
|
158
|
+
static properties: {
|
|
159
|
+
quote: {
|
|
160
|
+
type: StringConstructor;
|
|
161
|
+
};
|
|
162
|
+
person: {
|
|
163
|
+
type: StringConstructor;
|
|
164
|
+
};
|
|
165
|
+
about: {
|
|
166
|
+
type: StringConstructor;
|
|
167
|
+
};
|
|
168
|
+
imageSrc: {
|
|
169
|
+
type: StringConstructor;
|
|
170
|
+
attribute: string;
|
|
171
|
+
};
|
|
172
|
+
size: {
|
|
173
|
+
type: StringConstructor;
|
|
174
|
+
reflect: boolean;
|
|
175
|
+
};
|
|
176
|
+
align: {
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
reflect: boolean;
|
|
179
|
+
};
|
|
180
|
+
spaceAbove: {
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
reflect: boolean;
|
|
183
|
+
attribute: string;
|
|
184
|
+
};
|
|
185
|
+
spaceBelow: {
|
|
186
|
+
type: StringConstructor;
|
|
187
|
+
reflect: boolean;
|
|
188
|
+
attribute: string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
/** The words they said, without quotation marks. */
|
|
192
|
+
quote: string;
|
|
193
|
+
/** Who said it. */
|
|
194
|
+
person: string;
|
|
195
|
+
/** Who they are, such as "Bought at Larkfield Meadows, 2025". */
|
|
196
|
+
about: string;
|
|
197
|
+
/** A photo of them. It is decoration, because their name is beside it. */
|
|
198
|
+
imageSrc: string;
|
|
199
|
+
size: 'md' | 'lg';
|
|
200
|
+
align: 'start' | 'center';
|
|
201
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
202
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
203
|
+
constructor();
|
|
204
|
+
static styles: import("lit").CSSResult[];
|
|
205
|
+
render(): TemplateResult;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* A number that makes a point, with what it counts beneath it: "36 years",
|
|
209
|
+
* "Building in Kent since 1987".
|
|
210
|
+
*
|
|
211
|
+
* @category content
|
|
212
|
+
* @icon stat
|
|
213
|
+
*/
|
|
214
|
+
export declare class ImpktStat extends ImpktElement {
|
|
215
|
+
static properties: {
|
|
216
|
+
figure: {
|
|
217
|
+
type: StringConstructor;
|
|
218
|
+
};
|
|
219
|
+
label: {
|
|
220
|
+
type: StringConstructor;
|
|
221
|
+
};
|
|
222
|
+
note: {
|
|
223
|
+
type: StringConstructor;
|
|
224
|
+
};
|
|
225
|
+
size: {
|
|
226
|
+
type: StringConstructor;
|
|
227
|
+
reflect: boolean;
|
|
228
|
+
};
|
|
229
|
+
align: {
|
|
230
|
+
type: StringConstructor;
|
|
231
|
+
reflect: boolean;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
/** How large the number is drawn. */
|
|
235
|
+
size: 'md' | 'lg' | 'xl';
|
|
236
|
+
/** The number, written as it should appear, such as "36" or "£280k". */
|
|
237
|
+
figure: string;
|
|
238
|
+
/** What the number counts. */
|
|
239
|
+
label: string;
|
|
240
|
+
/** A line more, if the label needs it. */
|
|
241
|
+
note: string;
|
|
242
|
+
align: 'start' | 'center';
|
|
243
|
+
constructor();
|
|
244
|
+
static styles: import("lit").CSSResult[];
|
|
245
|
+
render(): TemplateResult;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* A short label on something: "New", "Selling fast", "2 left".
|
|
249
|
+
*
|
|
250
|
+
* The tone colours it, and the words carry the meaning, so it reads the same
|
|
251
|
+
* without the colour (1.4.1).
|
|
252
|
+
*
|
|
253
|
+
* @category feedback
|
|
254
|
+
* @icon badge
|
|
255
|
+
* @slot - The badge's words.
|
|
256
|
+
*/
|
|
257
|
+
export declare class ImpktBadge extends ImpktElement {
|
|
258
|
+
static properties: {
|
|
259
|
+
tone: {
|
|
260
|
+
type: StringConstructor;
|
|
261
|
+
reflect: boolean;
|
|
262
|
+
};
|
|
263
|
+
icon: {
|
|
264
|
+
type: StringConstructor;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
tone: 'neutral' | 'brand' | 'success' | 'warning' | 'danger' | 'info';
|
|
268
|
+
/** An icon before the words. */
|
|
269
|
+
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';
|
|
270
|
+
constructor();
|
|
271
|
+
static styles: import("lit").CSSResult[];
|
|
272
|
+
render(): TemplateResult;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* A thin line of news across the top of a page: a launch, a change to opening
|
|
276
|
+
* hours. Keep it to one short sentence.
|
|
277
|
+
*
|
|
278
|
+
* @category feedback
|
|
279
|
+
* @icon alert
|
|
280
|
+
*/
|
|
281
|
+
export declare class ImpktAnnouncement extends ImpktElement {
|
|
282
|
+
static properties: {
|
|
283
|
+
message: {
|
|
284
|
+
type: StringConstructor;
|
|
285
|
+
};
|
|
286
|
+
linkText: {
|
|
287
|
+
type: StringConstructor;
|
|
288
|
+
attribute: string;
|
|
289
|
+
};
|
|
290
|
+
href: {
|
|
291
|
+
type: StringConstructor;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
message: string;
|
|
295
|
+
linkText: string;
|
|
296
|
+
href: string;
|
|
297
|
+
constructor();
|
|
298
|
+
static styles: import("lit").CSSResult[];
|
|
299
|
+
render(): TemplateResult;
|
|
300
|
+
}
|
|
301
|
+
/** One choice in a search bar. */
|
|
302
|
+
export interface SearchField {
|
|
303
|
+
id?: string;
|
|
304
|
+
/** The name it sends, such as "bedrooms". */
|
|
305
|
+
name?: string;
|
|
306
|
+
label: string;
|
|
307
|
+
/** What it shows before anything is chosen. */
|
|
308
|
+
placeholder?: string;
|
|
309
|
+
/** The other choices, separated by commas. */
|
|
310
|
+
options?: string;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* A row of choices and one button that finds what fits: where, how many
|
|
314
|
+
* bedrooms, up to what budget.
|
|
315
|
+
*
|
|
316
|
+
* Each choice is a native select with a real label. It sends the visitor to
|
|
317
|
+
* `action` with their choices in the address, so it works as a plain link can.
|
|
318
|
+
*
|
|
319
|
+
* @category form
|
|
320
|
+
* @icon search
|
|
321
|
+
* @fires impkt-submit - When the search is run. The choices are in detail.values.
|
|
322
|
+
*/
|
|
323
|
+
export declare class ImpktSearchBar extends ImpktElement {
|
|
324
|
+
static properties: {
|
|
325
|
+
items: {
|
|
326
|
+
type: ArrayConstructor;
|
|
327
|
+
};
|
|
328
|
+
buttonText: {
|
|
329
|
+
type: StringConstructor;
|
|
330
|
+
attribute: string;
|
|
331
|
+
};
|
|
332
|
+
action: {
|
|
333
|
+
type: StringConstructor;
|
|
334
|
+
};
|
|
335
|
+
label: {
|
|
336
|
+
type: StringConstructor;
|
|
337
|
+
};
|
|
338
|
+
spaceAbove: {
|
|
339
|
+
type: StringConstructor;
|
|
340
|
+
reflect: boolean;
|
|
341
|
+
attribute: string;
|
|
342
|
+
};
|
|
343
|
+
spaceBelow: {
|
|
344
|
+
type: StringConstructor;
|
|
345
|
+
reflect: boolean;
|
|
346
|
+
attribute: string;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
items: SearchField[];
|
|
350
|
+
buttonText: string;
|
|
351
|
+
/** Where the search goes. Leave empty to handle it in the app. */
|
|
352
|
+
action: string;
|
|
353
|
+
/** What the search is called for a screen reader. */
|
|
354
|
+
label: string;
|
|
355
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
356
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
357
|
+
constructor();
|
|
358
|
+
static styles: import("lit").CSSResult[];
|
|
359
|
+
private submit;
|
|
360
|
+
render(): TemplateResult;
|
|
361
|
+
}
|
|
362
|
+
declare global {
|
|
363
|
+
interface HTMLElementTagNameMap {
|
|
364
|
+
'impkt-hero': ImpktHero;
|
|
365
|
+
'impkt-feature-list': ImpktFeatureList;
|
|
366
|
+
'impkt-quote': ImpktQuote;
|
|
367
|
+
'impkt-stat': ImpktStat;
|
|
368
|
+
'impkt-badge': ImpktBadge;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ImpktAnnouncement,
|
|
3
|
+
ImpktBadge,
|
|
4
|
+
ImpktFeatureList,
|
|
5
|
+
ImpktHero,
|
|
6
|
+
ImpktQuote,
|
|
7
|
+
ImpktSearchBar,
|
|
8
|
+
ImpktStat
|
|
9
|
+
} from "../chunk-7Y6UCSUS.js";
|
|
10
|
+
import "../chunk-2YQA3VBY.js";
|
|
11
|
+
import "../chunk-NTNXHLTM.js";
|
|
12
|
+
export {
|
|
13
|
+
ImpktAnnouncement,
|
|
14
|
+
ImpktBadge,
|
|
15
|
+
ImpktFeatureList,
|
|
16
|
+
ImpktHero,
|
|
17
|
+
ImpktQuote,
|
|
18
|
+
ImpktSearchBar,
|
|
19
|
+
ImpktStat
|
|
20
|
+
};
|
|
21
|
+
//# 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