@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
|
@@ -0,0 +1,130 @@
|
|
|
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
|
+
/**
|
|
50
|
+
* The header floats when the page opens on a full-picture hero, sitting on the
|
|
51
|
+
* picture itself, so nothing has to be set for it. It stays an ordinary bar
|
|
52
|
+
* while editing, where the blocks are kept inside the page's box.
|
|
53
|
+
*/
|
|
54
|
+
private place;
|
|
55
|
+
/** Whether nothing a reader would notice comes before this block, other than an announcement. */
|
|
56
|
+
private opensOn;
|
|
57
|
+
connectedCallback(): void;
|
|
58
|
+
disconnectedCallback(): void;
|
|
59
|
+
protected firstUpdated(): void;
|
|
60
|
+
private observer?;
|
|
61
|
+
private watcher?;
|
|
62
|
+
private resize?;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* A band across the whole width of the page, with its own background, and its
|
|
66
|
+
* content kept to the page width inside it: a coloured strip of features, a
|
|
67
|
+
* quote on a tinted background, a call to action at the foot of a page.
|
|
68
|
+
*
|
|
69
|
+
* Inside a Page it reaches the edges of the screen whatever the page width is,
|
|
70
|
+
* so a page can alternate bands without any of them knowing the frame. Set
|
|
71
|
+
* `bleed` off to keep the band to the page width, as a panel.
|
|
72
|
+
*
|
|
73
|
+
* @category layout
|
|
74
|
+
* @icon section
|
|
75
|
+
* @slot - The section's content.
|
|
76
|
+
*/
|
|
77
|
+
export declare class ImpktSection extends ImpktElement {
|
|
78
|
+
static properties: {
|
|
79
|
+
tone: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
reflect: boolean;
|
|
82
|
+
};
|
|
83
|
+
padding: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
reflect: boolean;
|
|
86
|
+
};
|
|
87
|
+
width: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
reflect: boolean;
|
|
90
|
+
};
|
|
91
|
+
bleed: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
reflect: boolean;
|
|
94
|
+
};
|
|
95
|
+
label: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
};
|
|
98
|
+
spaceAbove: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
reflect: boolean;
|
|
101
|
+
attribute: string;
|
|
102
|
+
};
|
|
103
|
+
spaceBelow: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
reflect: boolean;
|
|
106
|
+
attribute: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
/** The band's background. Text on it takes the matching colour, so it stays readable. */
|
|
110
|
+
tone: 'none' | 'subtle' | 'inset' | 'brand' | 'card';
|
|
111
|
+
/** Space inside the band, above and below its content. */
|
|
112
|
+
padding: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
113
|
+
/** How wide the content inside runs. */
|
|
114
|
+
width: 'narrow' | 'standard' | 'wide';
|
|
115
|
+
/** Run the background to the edges of the screen. */
|
|
116
|
+
bleed: boolean;
|
|
117
|
+
/** A name for the section, so a screen reader can find it in the page's regions. Leave empty for none. */
|
|
118
|
+
label: string;
|
|
119
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
120
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
121
|
+
constructor();
|
|
122
|
+
static styles: import("lit").CSSResult[];
|
|
123
|
+
render(): TemplateResult;
|
|
124
|
+
}
|
|
125
|
+
declare global {
|
|
126
|
+
interface HTMLElementTagNameMap {
|
|
127
|
+
'impkt-page': ImpktPage;
|
|
128
|
+
'impkt-section': ImpktSection;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -35,6 +35,9 @@ export declare class ImpktPrice extends ImpktElement {
|
|
|
35
35
|
locale: {
|
|
36
36
|
type: StringConstructor;
|
|
37
37
|
};
|
|
38
|
+
prefix: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
};
|
|
38
41
|
period: {
|
|
39
42
|
type: StringConstructor;
|
|
40
43
|
};
|
|
@@ -50,6 +53,8 @@ export declare class ImpktPrice extends ImpktElement {
|
|
|
50
53
|
amount: number | undefined;
|
|
51
54
|
currency: string;
|
|
52
55
|
locale: string;
|
|
56
|
+
/** "From", "Guide". Read before the amount. */
|
|
57
|
+
prefix: string;
|
|
53
58
|
/** "a month", "a year". Read after the amount. */
|
|
54
59
|
period: string;
|
|
55
60
|
size: 'md' | 'lg' | 'xl';
|
package/dist/components/price.js
CHANGED
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { ImpktElement } from '../base/ImpktElement';
|
|
3
|
+
export interface SitePlot {
|
|
4
|
+
id?: string;
|
|
5
|
+
/** What is printed on the pin, such as 14. */
|
|
6
|
+
number: string;
|
|
7
|
+
/** The house type, such as The Hawthorn. */
|
|
8
|
+
name?: string;
|
|
9
|
+
status: 'available' | 'reserved' | 'sold';
|
|
10
|
+
price?: string;
|
|
11
|
+
beds?: string;
|
|
12
|
+
/** How far across the plan the pin sits, from 0 to 100. */
|
|
13
|
+
x: number | string;
|
|
14
|
+
/** How far down the plan the pin sits, from 0 to 100. */
|
|
15
|
+
y: number | string;
|
|
16
|
+
href?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A drawing of the development with a pin on every plot. Choose a pin to see
|
|
20
|
+
* whether it is available, what it costs and where to go next.
|
|
21
|
+
*
|
|
22
|
+
* Every pin is a button named in full, such as "Plot 14, The Hawthorn,
|
|
23
|
+
* Available, £385,000". Status is shown by the pin's shape as well as its
|
|
24
|
+
* colour, so it does not rely on colour alone (1.4.1).
|
|
25
|
+
*
|
|
26
|
+
* @category content
|
|
27
|
+
* @icon map
|
|
28
|
+
* @fires impkt-select - When a plot is chosen. The plot is in detail.plot.
|
|
29
|
+
*/
|
|
30
|
+
export declare class ImpktSitePlan extends ImpktElement {
|
|
31
|
+
static properties: {
|
|
32
|
+
imageSrc: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
attribute: string;
|
|
35
|
+
};
|
|
36
|
+
imageAlt: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
attribute: string;
|
|
39
|
+
};
|
|
40
|
+
plots: {
|
|
41
|
+
type: ArrayConstructor;
|
|
42
|
+
};
|
|
43
|
+
hint: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
};
|
|
46
|
+
selectedPlot: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
attribute: string;
|
|
49
|
+
};
|
|
50
|
+
panel: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
reflect: boolean;
|
|
53
|
+
};
|
|
54
|
+
plotWord: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
attribute: string;
|
|
57
|
+
};
|
|
58
|
+
actionText: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
attribute: string;
|
|
61
|
+
};
|
|
62
|
+
availableText: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
attribute: string;
|
|
65
|
+
};
|
|
66
|
+
reservedText: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
attribute: string;
|
|
69
|
+
};
|
|
70
|
+
soldText: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
attribute: string;
|
|
73
|
+
};
|
|
74
|
+
spaceAbove: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
reflect: boolean;
|
|
77
|
+
attribute: string;
|
|
78
|
+
};
|
|
79
|
+
spaceBelow: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
reflect: boolean;
|
|
82
|
+
attribute: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
imageSrc: string;
|
|
86
|
+
imageAlt: string;
|
|
87
|
+
plots: SitePlot[];
|
|
88
|
+
/** The number of the plot shown first. */
|
|
89
|
+
selectedPlot: string;
|
|
90
|
+
/** The details beside the plan, or floating over it. */
|
|
91
|
+
panel: 'beside' | 'over';
|
|
92
|
+
/** What is said before a plot is chosen. */
|
|
93
|
+
hint: string;
|
|
94
|
+
plotWord: string;
|
|
95
|
+
actionText: string;
|
|
96
|
+
availableText: string;
|
|
97
|
+
reservedText: string;
|
|
98
|
+
soldText: string;
|
|
99
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
100
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
101
|
+
private chosen;
|
|
102
|
+
constructor();
|
|
103
|
+
static styles: import("lit").CSSResult[];
|
|
104
|
+
willUpdate(changed: Map<string, unknown>): void;
|
|
105
|
+
private word;
|
|
106
|
+
private choose;
|
|
107
|
+
private renderPanel;
|
|
108
|
+
render(): TemplateResult;
|
|
109
|
+
}
|
|
110
|
+
/** The monthly repayment on a loan. A rate of nothing is the loan split evenly. */
|
|
111
|
+
export declare function monthlyPayment(loan: number, annualRate: number, years: number): number;
|
|
112
|
+
/**
|
|
113
|
+
* What a home would cost each month, worked out as the sliders move.
|
|
114
|
+
*
|
|
115
|
+
* The result is an estimate and the warning under it is on by default, because
|
|
116
|
+
* UK rules expect it wherever repayments are shown. Change the words for other
|
|
117
|
+
* markets, but check with whoever signs off your financial promotions first.
|
|
118
|
+
*
|
|
119
|
+
* @category form
|
|
120
|
+
* @icon pound
|
|
121
|
+
*/
|
|
122
|
+
export declare class ImpktMortgageCalculator extends ImpktElement {
|
|
123
|
+
static properties: {
|
|
124
|
+
heading: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
};
|
|
127
|
+
price: {
|
|
128
|
+
type: NumberConstructor;
|
|
129
|
+
};
|
|
130
|
+
depositPercent: {
|
|
131
|
+
type: NumberConstructor;
|
|
132
|
+
attribute: string;
|
|
133
|
+
};
|
|
134
|
+
rate: {
|
|
135
|
+
type: NumberConstructor;
|
|
136
|
+
};
|
|
137
|
+
years: {
|
|
138
|
+
type: NumberConstructor;
|
|
139
|
+
};
|
|
140
|
+
currency: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
};
|
|
143
|
+
smallPrint: {
|
|
144
|
+
type: StringConstructor;
|
|
145
|
+
attribute: string;
|
|
146
|
+
};
|
|
147
|
+
headingLevel: {
|
|
148
|
+
type: NumberConstructor;
|
|
149
|
+
attribute: string;
|
|
150
|
+
};
|
|
151
|
+
spaceAbove: {
|
|
152
|
+
type: StringConstructor;
|
|
153
|
+
reflect: boolean;
|
|
154
|
+
attribute: string;
|
|
155
|
+
};
|
|
156
|
+
spaceBelow: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
reflect: boolean;
|
|
159
|
+
attribute: string;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
heading: string;
|
|
163
|
+
price: number;
|
|
164
|
+
depositPercent: number;
|
|
165
|
+
rate: number;
|
|
166
|
+
years: number;
|
|
167
|
+
/** The three-letter currency code, such as GBP. */
|
|
168
|
+
currency: string;
|
|
169
|
+
smallPrint: string;
|
|
170
|
+
headingLevel: 2 | 3;
|
|
171
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
172
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
173
|
+
constructor();
|
|
174
|
+
static styles: import("lit").CSSResult[];
|
|
175
|
+
private money;
|
|
176
|
+
private field;
|
|
177
|
+
render(): TemplateResult;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Two pictures of one place with a handle to drag between them: a bare plot
|
|
181
|
+
* and the finished street, a shell and the fitted kitchen.
|
|
182
|
+
*
|
|
183
|
+
* The handle is a native range control, so it works with a finger, a mouse and
|
|
184
|
+
* the arrow keys, and a screen reader hears how far across it is. Both pictures
|
|
185
|
+
* need descriptions, because they are the content.
|
|
186
|
+
*
|
|
187
|
+
* @category content
|
|
188
|
+
* @icon image
|
|
189
|
+
*/
|
|
190
|
+
export declare class ImpktBeforeAfter extends ImpktElement {
|
|
191
|
+
static properties: {
|
|
192
|
+
beforeSrc: {
|
|
193
|
+
type: StringConstructor;
|
|
194
|
+
attribute: string;
|
|
195
|
+
};
|
|
196
|
+
beforeAlt: {
|
|
197
|
+
type: StringConstructor;
|
|
198
|
+
attribute: string;
|
|
199
|
+
};
|
|
200
|
+
afterSrc: {
|
|
201
|
+
type: StringConstructor;
|
|
202
|
+
attribute: string;
|
|
203
|
+
};
|
|
204
|
+
afterAlt: {
|
|
205
|
+
type: StringConstructor;
|
|
206
|
+
attribute: string;
|
|
207
|
+
};
|
|
208
|
+
beforeLabel: {
|
|
209
|
+
type: StringConstructor;
|
|
210
|
+
attribute: string;
|
|
211
|
+
};
|
|
212
|
+
afterLabel: {
|
|
213
|
+
type: StringConstructor;
|
|
214
|
+
attribute: string;
|
|
215
|
+
};
|
|
216
|
+
label: {
|
|
217
|
+
type: StringConstructor;
|
|
218
|
+
};
|
|
219
|
+
position: {
|
|
220
|
+
type: NumberConstructor;
|
|
221
|
+
};
|
|
222
|
+
spaceAbove: {
|
|
223
|
+
type: StringConstructor;
|
|
224
|
+
reflect: boolean;
|
|
225
|
+
attribute: string;
|
|
226
|
+
};
|
|
227
|
+
spaceBelow: {
|
|
228
|
+
type: StringConstructor;
|
|
229
|
+
reflect: boolean;
|
|
230
|
+
attribute: string;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
beforeSrc: string;
|
|
234
|
+
beforeAlt: string;
|
|
235
|
+
afterSrc: string;
|
|
236
|
+
afterAlt: string;
|
|
237
|
+
beforeLabel: string;
|
|
238
|
+
afterLabel: string;
|
|
239
|
+
/** The name of the handle for a screen reader. */
|
|
240
|
+
label: string;
|
|
241
|
+
/** How far across the handle starts, from 0 to 100. */
|
|
242
|
+
position: number;
|
|
243
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
244
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
245
|
+
constructor();
|
|
246
|
+
static styles: import("lit").CSSResult[];
|
|
247
|
+
render(): TemplateResult;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* A bar fixed to the bottom of the screen that keeps the one thing to do in
|
|
251
|
+
* reach, such as booking a viewing.
|
|
252
|
+
*
|
|
253
|
+
* It appears once the visitor has scrolled, keeps a space for itself at the end
|
|
254
|
+
* of the page, and tells the browser to scroll focused controls clear of it so
|
|
255
|
+
* it never covers what the keyboard is on (2.4.11).
|
|
256
|
+
*
|
|
257
|
+
* @category navigation
|
|
258
|
+
* @icon bar
|
|
259
|
+
* @slot actions - The button or link to keep in reach.
|
|
260
|
+
*/
|
|
261
|
+
export declare class ImpktStickyBar extends ImpktElement {
|
|
262
|
+
static properties: {
|
|
263
|
+
label: {
|
|
264
|
+
type: StringConstructor;
|
|
265
|
+
};
|
|
266
|
+
heading: {
|
|
267
|
+
type: StringConstructor;
|
|
268
|
+
};
|
|
269
|
+
lead: {
|
|
270
|
+
type: StringConstructor;
|
|
271
|
+
};
|
|
272
|
+
showOn: {
|
|
273
|
+
type: StringConstructor;
|
|
274
|
+
reflect: boolean;
|
|
275
|
+
attribute: string;
|
|
276
|
+
};
|
|
277
|
+
revealAfter: {
|
|
278
|
+
type: NumberConstructor;
|
|
279
|
+
attribute: string;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
/** The name of this region for a screen reader. */
|
|
283
|
+
label: string;
|
|
284
|
+
heading: string;
|
|
285
|
+
lead: string;
|
|
286
|
+
showOn: 'phones' | 'all';
|
|
287
|
+
/** How many pixels the visitor scrolls before it appears. */
|
|
288
|
+
revealAfter: number;
|
|
289
|
+
private shown;
|
|
290
|
+
constructor();
|
|
291
|
+
static styles: import("lit").CSSResult[];
|
|
292
|
+
private check;
|
|
293
|
+
/** Leaves room for the bar when the browser scrolls something into view. */
|
|
294
|
+
private clearance;
|
|
295
|
+
connectedCallback(): void;
|
|
296
|
+
disconnectedCallback(): void;
|
|
297
|
+
render(): TemplateResult;
|
|
298
|
+
}
|
|
299
|
+
export interface NearbyItem {
|
|
300
|
+
id?: string;
|
|
301
|
+
place: string;
|
|
302
|
+
/** How far, in words: 8 minutes by train. */
|
|
303
|
+
distance: string;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Where a place is and how to get there: a map picture, the address, opening
|
|
307
|
+
* hours, travel times and a link for directions.
|
|
308
|
+
*
|
|
309
|
+
* The map is a picture you supply, not an embedded map. An embed loads a third
|
|
310
|
+
* party's cookies before the visitor has agreed to anything.
|
|
311
|
+
*
|
|
312
|
+
* @category content
|
|
313
|
+
* @icon map-pin
|
|
314
|
+
* @role heading
|
|
315
|
+
*/
|
|
316
|
+
export declare class ImpktLocationCard extends ImpktElement {
|
|
317
|
+
static properties: {
|
|
318
|
+
heading: {
|
|
319
|
+
type: StringConstructor;
|
|
320
|
+
};
|
|
321
|
+
address: {
|
|
322
|
+
type: StringConstructor;
|
|
323
|
+
};
|
|
324
|
+
hours: {
|
|
325
|
+
type: StringConstructor;
|
|
326
|
+
};
|
|
327
|
+
phone: {
|
|
328
|
+
type: StringConstructor;
|
|
329
|
+
};
|
|
330
|
+
mapSrc: {
|
|
331
|
+
type: StringConstructor;
|
|
332
|
+
attribute: string;
|
|
333
|
+
};
|
|
334
|
+
mapAlt: {
|
|
335
|
+
type: StringConstructor;
|
|
336
|
+
attribute: string;
|
|
337
|
+
};
|
|
338
|
+
directionsText: {
|
|
339
|
+
type: StringConstructor;
|
|
340
|
+
attribute: string;
|
|
341
|
+
};
|
|
342
|
+
directionsHref: {
|
|
343
|
+
type: StringConstructor;
|
|
344
|
+
attribute: string;
|
|
345
|
+
};
|
|
346
|
+
nearby: {
|
|
347
|
+
type: ArrayConstructor;
|
|
348
|
+
};
|
|
349
|
+
headingLevel: {
|
|
350
|
+
type: NumberConstructor;
|
|
351
|
+
attribute: string;
|
|
352
|
+
};
|
|
353
|
+
spaceAbove: {
|
|
354
|
+
type: StringConstructor;
|
|
355
|
+
reflect: boolean;
|
|
356
|
+
attribute: string;
|
|
357
|
+
};
|
|
358
|
+
spaceBelow: {
|
|
359
|
+
type: StringConstructor;
|
|
360
|
+
reflect: boolean;
|
|
361
|
+
attribute: string;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
heading: string;
|
|
365
|
+
address: string;
|
|
366
|
+
hours: string;
|
|
367
|
+
phone: string;
|
|
368
|
+
mapSrc: string;
|
|
369
|
+
mapAlt: string;
|
|
370
|
+
directionsText: string;
|
|
371
|
+
/** Leave empty and the link searches a map for the address. */
|
|
372
|
+
directionsHref: string;
|
|
373
|
+
nearby: NearbyItem[];
|
|
374
|
+
headingLevel: 2 | 3;
|
|
375
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
376
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
377
|
+
constructor();
|
|
378
|
+
static styles: import("lit").CSSResult[];
|
|
379
|
+
render(): TemplateResult;
|
|
380
|
+
}
|
|
381
|
+
declare global {
|
|
382
|
+
interface HTMLElementTagNameMap {
|
|
383
|
+
'impkt-site-plan': ImpktSitePlan;
|
|
384
|
+
'impkt-mortgage-calculator': ImpktMortgageCalculator;
|
|
385
|
+
'impkt-before-after': ImpktBeforeAfter;
|
|
386
|
+
'impkt-sticky-bar': ImpktStickyBar;
|
|
387
|
+
'impkt-location-card': ImpktLocationCard;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ImpktBeforeAfter,
|
|
3
|
+
ImpktLocationCard,
|
|
4
|
+
ImpktMortgageCalculator,
|
|
5
|
+
ImpktSitePlan,
|
|
6
|
+
ImpktStickyBar,
|
|
7
|
+
monthlyPayment
|
|
8
|
+
} from "../chunk-ZBLTU67D.js";
|
|
9
|
+
import "../chunk-2YQA3VBY.js";
|
|
10
|
+
import "../chunk-NTNXHLTM.js";
|
|
11
|
+
export {
|
|
12
|
+
ImpktBeforeAfter,
|
|
13
|
+
ImpktLocationCard,
|
|
14
|
+
ImpktMortgageCalculator,
|
|
15
|
+
ImpktSitePlan,
|
|
16
|
+
ImpktStickyBar,
|
|
17
|
+
monthlyPayment
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=property.js.map
|
|
@@ -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;
|
package/dist/components/table.js
CHANGED
|
@@ -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;
|