@atomic-ui/ui 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -3
- package/custom-elements.json +24569 -0
- package/dist/base/ImpktElement.d.ts +14 -0
- package/dist/base/locale.d.ts +8 -0
- package/dist/base/say.d.ts +1 -0
- package/dist/base/styles.d.ts +1 -1
- package/dist/base/tokens.d.ts +28 -2
- package/dist/{chunk-KWURASAB.js → chunk-26O27BQS.js} +3 -3
- package/dist/chunk-2CFVV2NZ.js +494 -0
- package/dist/chunk-2CFVV2NZ.js.map +1 -0
- package/dist/chunk-3IGNZTJU.js +14 -0
- package/dist/chunk-3IGNZTJU.js.map +1 -0
- package/dist/{chunk-DR3SJ7ZV.js → chunk-3IQ73WNW.js} +3 -3
- package/dist/{chunk-AXQ5YBN2.js → chunk-4X723QBD.js} +135 -10
- package/dist/chunk-4X723QBD.js.map +1 -0
- package/dist/{chunk-OFAVRPRK.js → chunk-6YYAOKNI.js} +2 -2
- package/dist/chunk-6YYAOKNI.js.map +1 -0
- package/dist/{chunk-DI2CJ3MZ.js → chunk-7AJN2TIS.js} +2 -2
- package/dist/chunk-7BSZPUE3.js +53 -0
- package/dist/chunk-7BSZPUE3.js.map +1 -0
- package/dist/{chunk-IBTOZOGI.js → chunk-7OXTZJR4.js} +2 -2
- package/dist/chunk-7XEPNEVQ.js +264 -0
- package/dist/chunk-7XEPNEVQ.js.map +1 -0
- package/dist/{chunk-5NUF7ZQA.js → chunk-D6C7XEY4.js} +64 -3
- package/dist/chunk-D6C7XEY4.js.map +1 -0
- package/dist/{chunk-4JKUAA6K.js → chunk-E2VBUWJ4.js} +53 -14
- package/dist/chunk-E2VBUWJ4.js.map +1 -0
- package/dist/{chunk-57P4WO4Y.js → chunk-E3XJK7MY.js} +38 -23
- package/dist/chunk-E3XJK7MY.js.map +1 -0
- package/dist/{chunk-6UDDZQDK.js → chunk-EDSZI227.js} +3 -3
- package/dist/chunk-EDSZI227.js.map +1 -0
- package/dist/{chunk-3OSL2HMN.js → chunk-FFCIY7NM.js} +9 -6
- package/dist/chunk-FFCIY7NM.js.map +1 -0
- package/dist/{chunk-4AJPS5AU.js → chunk-FJRHZA3C.js} +16 -6
- package/dist/chunk-FJRHZA3C.js.map +1 -0
- package/dist/{chunk-JPEWRJSQ.js → chunk-GQDUHZE3.js} +3 -3
- package/dist/chunk-HYPPG4NF.js +553 -0
- package/dist/chunk-HYPPG4NF.js.map +1 -0
- package/dist/chunk-J4JULXUG.js +249 -0
- package/dist/chunk-J4JULXUG.js.map +1 -0
- package/dist/{chunk-CFGLOYWW.js → chunk-KFD4O7VA.js} +4 -2
- package/dist/chunk-KFD4O7VA.js.map +1 -0
- package/dist/{chunk-LLRJU7XE.js → chunk-MVEFM5QI.js} +6 -6
- package/dist/chunk-MVEFM5QI.js.map +1 -0
- package/dist/{chunk-6GKI67P7.js → chunk-NCASAXQT.js} +7 -3
- package/dist/chunk-NCASAXQT.js.map +1 -0
- package/dist/{chunk-H6L3FSQY.js → chunk-NKTMMJYD.js} +7 -6
- package/dist/chunk-NKTMMJYD.js.map +1 -0
- package/dist/{chunk-QELX47AP.js → chunk-OB7WULFK.js} +50 -27
- package/dist/chunk-OB7WULFK.js.map +1 -0
- package/dist/chunk-OHDPGIJ3.js +428 -0
- package/dist/chunk-OHDPGIJ3.js.map +1 -0
- package/dist/{chunk-TZD7IVVQ.js → chunk-OLLZFNO6.js} +13 -5
- package/dist/chunk-OLLZFNO6.js.map +1 -0
- package/dist/{chunk-5RVMMKMO.js → chunk-OMJMUFOW.js} +3 -3
- package/dist/{chunk-U2S7OESF.js → chunk-QB2KMV6S.js} +56 -15
- package/dist/chunk-QB2KMV6S.js.map +1 -0
- package/dist/{chunk-QH46SOPJ.js → chunk-R67PDFKE.js} +54 -11
- package/dist/chunk-R67PDFKE.js.map +1 -0
- package/dist/chunk-RZSZQMSE.js +236 -0
- package/dist/chunk-RZSZQMSE.js.map +1 -0
- package/dist/{chunk-6MLXFFH4.js → chunk-TGT7J4EG.js} +3 -3
- package/dist/chunk-TGT7J4EG.js.map +1 -0
- package/dist/{chunk-S3EQO33M.js → chunk-UCHJCUYI.js} +6 -4
- package/dist/chunk-UCHJCUYI.js.map +1 -0
- package/dist/chunk-UHLRXI6J.js +453 -0
- package/dist/chunk-UHLRXI6J.js.map +1 -0
- package/dist/chunk-UNVL3CNM.js +725 -0
- package/dist/chunk-UNVL3CNM.js.map +1 -0
- package/dist/{chunk-2RBYVWZT.js → chunk-WDDWWCHN.js} +5 -3
- package/dist/chunk-WDDWWCHN.js.map +1 -0
- package/dist/chunk-WFKSOM6O.js +498 -0
- package/dist/chunk-WFKSOM6O.js.map +1 -0
- package/dist/{chunk-HWNY6U5F.js → chunk-XEJMFFIM.js} +4 -3
- package/dist/chunk-XEJMFFIM.js.map +1 -0
- package/dist/{chunk-ZDYTNFQI.js → chunk-XJXCTGDR.js} +16 -6
- package/dist/chunk-XJXCTGDR.js.map +1 -0
- package/dist/{chunk-G6UVYMA6.js → chunk-YD6IZ2C5.js} +2 -2
- package/dist/chunk-YK5QI57J.js +396 -0
- package/dist/chunk-YK5QI57J.js.map +1 -0
- package/dist/components/accordion.js +2 -2
- package/dist/components/alert.js +2 -2
- package/dist/components/app-ui.d.ts +421 -0
- package/dist/components/app-ui.js +27 -0
- package/dist/components/app-ui.js.map +1 -0
- package/dist/components/blocks.d.ts +2 -2
- package/dist/components/blocks.js +3 -3
- package/dist/components/button.d.ts +14 -0
- package/dist/components/button.js +3 -3
- package/dist/components/changelog.d.ts +386 -0
- package/dist/components/changelog.js +25 -0
- package/dist/components/changelog.js.map +1 -0
- package/dist/components/checkbox-group.js +3 -3
- package/dist/components/checkbox.js +3 -3
- package/dist/components/date-input.js +3 -3
- package/dist/components/dialog.js +2 -2
- package/dist/components/estimator.d.ts +246 -0
- package/dist/components/estimator.js +16 -0
- package/dist/components/estimator.js.map +1 -0
- package/dist/components/fieldset.js +2 -2
- package/dist/components/grid.d.ts +2 -2
- package/dist/components/grid.js +2 -2
- package/dist/components/help.js +2 -2
- package/dist/components/icon.d.ts +2 -0
- package/dist/components/icon.js +2 -2
- package/dist/components/journey.d.ts +433 -0
- package/dist/components/journey.js +22 -0
- package/dist/components/journey.js.map +1 -0
- package/dist/components/layout.d.ts +34 -5
- package/dist/components/layout.js +2 -2
- package/dist/components/link.js +3 -3
- package/dist/components/list.d.ts +50 -0
- package/dist/components/list.js +8 -0
- package/dist/components/list.js.map +1 -0
- package/dist/components/marketing.d.ts +119 -6
- package/dist/components/marketing.js +7 -3
- package/dist/components/media.d.ts +10 -0
- package/dist/components/media.js +2 -2
- package/dist/components/navigation.d.ts +25 -2
- package/dist/components/navigation.js +3 -3
- package/dist/components/organisms.d.ts +559 -0
- package/dist/components/organisms.js +25 -0
- package/dist/components/organisms.js.map +1 -0
- package/dist/components/page.d.ts +14 -3
- package/dist/components/page.js +2 -2
- package/dist/components/price.d.ts +6 -1
- package/dist/components/price.js +3 -2
- package/dist/components/progress.js +2 -2
- package/dist/components/property.d.ts +389 -0
- package/dist/components/property.js +20 -0
- package/dist/components/property.js.map +1 -0
- package/dist/components/radio-group.js +3 -3
- package/dist/components/scene.d.ts +138 -0
- package/dist/components/scene.js +8 -0
- package/dist/components/scene.js.map +1 -0
- package/dist/components/scrubber.d.ts +86 -0
- package/dist/components/scrubber.js +8 -0
- package/dist/components/scrubber.js.map +1 -0
- package/dist/components/select.js +3 -3
- package/dist/components/selling.d.ts +407 -0
- package/dist/components/selling.js +25 -0
- package/dist/components/selling.js.map +1 -0
- package/dist/components/site.d.ts +283 -0
- package/dist/components/site.js +20 -0
- package/dist/components/site.js.map +1 -0
- package/dist/components/summary-list.js +2 -2
- package/dist/components/table.js +2 -2
- package/dist/components/text-input.js +3 -3
- package/dist/components/textarea.d.ts +13 -0
- package/dist/components/textarea.js +3 -3
- package/dist/index.d.ts +13 -2
- package/dist/index.js +180 -47
- package/package.json +11 -4
- package/dist/chunk-2RBYVWZT.js.map +0 -1
- package/dist/chunk-3OSL2HMN.js.map +0 -1
- package/dist/chunk-4AJPS5AU.js.map +0 -1
- package/dist/chunk-4JKUAA6K.js.map +0 -1
- package/dist/chunk-57P4WO4Y.js.map +0 -1
- package/dist/chunk-5NUF7ZQA.js.map +0 -1
- package/dist/chunk-6GKI67P7.js.map +0 -1
- package/dist/chunk-6MLXFFH4.js.map +0 -1
- package/dist/chunk-6UDDZQDK.js.map +0 -1
- package/dist/chunk-AXQ5YBN2.js.map +0 -1
- package/dist/chunk-CFGLOYWW.js.map +0 -1
- package/dist/chunk-H6L3FSQY.js.map +0 -1
- package/dist/chunk-HWNY6U5F.js.map +0 -1
- package/dist/chunk-LLRJU7XE.js.map +0 -1
- package/dist/chunk-OFAVRPRK.js.map +0 -1
- package/dist/chunk-QELX47AP.js.map +0 -1
- package/dist/chunk-QH46SOPJ.js.map +0 -1
- package/dist/chunk-S3EQO33M.js.map +0 -1
- package/dist/chunk-TZD7IVVQ.js.map +0 -1
- package/dist/chunk-U2S7OESF.js.map +0 -1
- package/dist/chunk-ZDYTNFQI.js.map +0 -1
- /package/dist/{chunk-KWURASAB.js.map → chunk-26O27BQS.js.map} +0 -0
- /package/dist/{chunk-DR3SJ7ZV.js.map → chunk-3IQ73WNW.js.map} +0 -0
- /package/dist/{chunk-DI2CJ3MZ.js.map → chunk-7AJN2TIS.js.map} +0 -0
- /package/dist/{chunk-IBTOZOGI.js.map → chunk-7OXTZJR4.js.map} +0 -0
- /package/dist/{chunk-JPEWRJSQ.js.map → chunk-GQDUHZE3.js.map} +0 -0
- /package/dist/{chunk-5RVMMKMO.js.map → chunk-OMJMUFOW.js.map} +0 -0
- /package/dist/{chunk-G6UVYMA6.js.map → chunk-YD6IZ2C5.js.map} +0 -0
|
@@ -12,6 +12,7 @@ import { ImpktElement } from '../base/ImpktElement';
|
|
|
12
12
|
* @icon hero
|
|
13
13
|
* @role heading
|
|
14
14
|
* @slot actions - The page's main buttons and links.
|
|
15
|
+
* @slot search - A search bar across the bottom of a full-picture hero.
|
|
15
16
|
*/
|
|
16
17
|
export declare class ImpktHero extends ImpktElement {
|
|
17
18
|
static properties: {
|
|
@@ -36,6 +37,18 @@ export declare class ImpktHero extends ImpktElement {
|
|
|
36
37
|
type: StringConstructor;
|
|
37
38
|
attribute: string;
|
|
38
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
|
+
};
|
|
39
52
|
align: {
|
|
40
53
|
type: StringConstructor;
|
|
41
54
|
reflect: boolean;
|
|
@@ -61,10 +74,16 @@ export declare class ImpktHero extends ImpktElement {
|
|
|
61
74
|
imageSrc: string;
|
|
62
75
|
/** What the picture shows. Leave empty only when it is decoration. */
|
|
63
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';
|
|
64
83
|
/** Where the words sit. Centred heroes have no picture beside them. */
|
|
65
84
|
align: 'start' | 'center';
|
|
66
|
-
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
67
|
-
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
85
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
86
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
68
87
|
constructor();
|
|
69
88
|
static styles: import("lit").CSSResult[];
|
|
70
89
|
render(): TemplateResult;
|
|
@@ -120,8 +139,8 @@ export declare class ImpktFeatureList extends ImpktElement {
|
|
|
120
139
|
headingLevel: 2 | 3 | 4;
|
|
121
140
|
/** Icons above the words, or beside them. */
|
|
122
141
|
layout: 'stacked' | 'inline';
|
|
123
|
-
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
124
|
-
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
142
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
143
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
125
144
|
constructor();
|
|
126
145
|
static styles: import("lit").CSSResult[];
|
|
127
146
|
render(): TemplateResult;
|
|
@@ -179,8 +198,8 @@ export declare class ImpktQuote extends ImpktElement {
|
|
|
179
198
|
imageSrc: string;
|
|
180
199
|
size: 'md' | 'lg';
|
|
181
200
|
align: 'start' | 'center';
|
|
182
|
-
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
183
|
-
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
201
|
+
spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
202
|
+
spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
184
203
|
constructor();
|
|
185
204
|
static styles: import("lit").CSSResult[];
|
|
186
205
|
render(): TemplateResult;
|
|
@@ -203,11 +222,17 @@ export declare class ImpktStat extends ImpktElement {
|
|
|
203
222
|
note: {
|
|
204
223
|
type: StringConstructor;
|
|
205
224
|
};
|
|
225
|
+
size: {
|
|
226
|
+
type: StringConstructor;
|
|
227
|
+
reflect: boolean;
|
|
228
|
+
};
|
|
206
229
|
align: {
|
|
207
230
|
type: StringConstructor;
|
|
208
231
|
reflect: boolean;
|
|
209
232
|
};
|
|
210
233
|
};
|
|
234
|
+
/** How large the number is drawn. */
|
|
235
|
+
size: 'md' | 'lg' | 'xl';
|
|
211
236
|
/** The number, written as it should appear, such as "36" or "£280k". */
|
|
212
237
|
figure: string;
|
|
213
238
|
/** What the number counts. */
|
|
@@ -246,6 +271,94 @@ export declare class ImpktBadge extends ImpktElement {
|
|
|
246
271
|
static styles: import("lit").CSSResult[];
|
|
247
272
|
render(): TemplateResult;
|
|
248
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
|
+
}
|
|
249
362
|
declare global {
|
|
250
363
|
interface HTMLElementTagNameMap {
|
|
251
364
|
'impkt-hero': ImpktHero;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ImpktAnnouncement,
|
|
2
3
|
ImpktBadge,
|
|
3
4
|
ImpktFeatureList,
|
|
4
5
|
ImpktHero,
|
|
5
6
|
ImpktQuote,
|
|
7
|
+
ImpktSearchBar,
|
|
6
8
|
ImpktStat
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-4X723QBD.js";
|
|
10
|
+
import "../chunk-KFD4O7VA.js";
|
|
11
|
+
import "../chunk-D6C7XEY4.js";
|
|
10
12
|
export {
|
|
13
|
+
ImpktAnnouncement,
|
|
11
14
|
ImpktBadge,
|
|
12
15
|
ImpktFeatureList,
|
|
13
16
|
ImpktHero,
|
|
14
17
|
ImpktQuote,
|
|
18
|
+
ImpktSearchBar,
|
|
15
19
|
ImpktStat
|
|
16
20
|
};
|
|
17
21
|
//# sourceMappingURL=marketing.js.map
|
|
@@ -56,7 +56,17 @@ export declare class ImpktImage extends ImpktElement {
|
|
|
56
56
|
type: StringConstructor;
|
|
57
57
|
reflect: boolean;
|
|
58
58
|
};
|
|
59
|
+
hideOn: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
reflect: boolean;
|
|
62
|
+
attribute: string;
|
|
63
|
+
};
|
|
59
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* Leave it out on a phone, or on anything wider, for a picture drawn twice:
|
|
67
|
+
* once for a wide screen and once for a narrow one. Never both.
|
|
68
|
+
*/
|
|
69
|
+
hideOn: 'never' | 'phone' | 'wide';
|
|
60
70
|
src: string;
|
|
61
71
|
alt: string;
|
|
62
72
|
/**
|
package/dist/components/media.js
CHANGED
|
@@ -6,8 +6,8 @@ export interface NavLink {
|
|
|
6
6
|
href: string;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* The site's main navigation: a row of links that folds into a Menu button
|
|
10
|
-
*
|
|
9
|
+
* The site's main navigation: a row of links that folds into a Menu button
|
|
10
|
+
* when there is not room for all of them, whatever the screen.
|
|
11
11
|
*
|
|
12
12
|
* **The page you are on is marked in words as well as colour.** Its link
|
|
13
13
|
* carries `aria-current="page"`, which a screen reader announces, and an
|
|
@@ -32,6 +32,15 @@ export declare class ImpktNav extends ImpktElement {
|
|
|
32
32
|
type: StringConstructor;
|
|
33
33
|
attribute: string;
|
|
34
34
|
};
|
|
35
|
+
menuLook: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
reflect: boolean;
|
|
38
|
+
attribute: string;
|
|
39
|
+
};
|
|
40
|
+
size: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
reflect: boolean;
|
|
43
|
+
};
|
|
35
44
|
align: {
|
|
36
45
|
type: StringConstructor;
|
|
37
46
|
reflect: boolean;
|
|
@@ -43,6 +52,13 @@ export declare class ImpktNav extends ImpktElement {
|
|
|
43
52
|
label: string;
|
|
44
53
|
/** The words on the button that opens the links on a narrow screen. */
|
|
45
54
|
menuText: string;
|
|
55
|
+
/**
|
|
56
|
+
* The Menu button: `button` with its words, or `icon`, a round button with
|
|
57
|
+
* only the icon, the words kept as its name for screen readers.
|
|
58
|
+
*/
|
|
59
|
+
menuLook: 'button' | 'icon';
|
|
60
|
+
/** `sm` sets the links a step smaller and closer, as a site header's are. */
|
|
61
|
+
size: 'md' | 'sm';
|
|
46
62
|
/** Where the links sit along the row. */
|
|
47
63
|
align: 'start' | 'center' | 'end';
|
|
48
64
|
/** Whether the menu is open on a narrow screen. Not a setting: it is the visitor's. */
|
|
@@ -51,6 +67,13 @@ export declare class ImpktNav extends ImpktElement {
|
|
|
51
67
|
private set open(value);
|
|
52
68
|
constructor();
|
|
53
69
|
static styles: import("lit").CSSResult[];
|
|
70
|
+
/** The width the links need in one row. Measured once for each set of links, and again while folded it cannot be read. */
|
|
71
|
+
private needs;
|
|
72
|
+
private resize?;
|
|
73
|
+
private fit;
|
|
74
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
75
|
+
connectedCallback(): void;
|
|
76
|
+
disconnectedCallback(): void;
|
|
54
77
|
private toggle;
|
|
55
78
|
private onKey;
|
|
56
79
|
render(): TemplateResult;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImpktBreadcrumbs,
|
|
3
3
|
ImpktNav
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-QB2KMV6S.js";
|
|
5
|
+
import "../chunk-KFD4O7VA.js";
|
|
6
|
+
import "../chunk-D6C7XEY4.js";
|
|
7
7
|
export {
|
|
8
8
|
ImpktBreadcrumbs,
|
|
9
9
|
ImpktNav
|