@atomic-ui/ui 0.1.5 → 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.
Files changed (127) hide show
  1. package/README.md +13 -1
  2. package/dist/base/tokens.d.ts +23 -1
  3. package/dist/{chunk-CFGLOYWW.js → chunk-2YQA3VBY.js} +2 -2
  4. package/dist/{chunk-DR3SJ7ZV.js → chunk-4HU4Y23Q.js} +3 -3
  5. package/dist/{chunk-QH46SOPJ.js → chunk-5EA4IDUD.js} +54 -11
  6. package/dist/chunk-5EA4IDUD.js.map +1 -0
  7. package/dist/{chunk-3OSL2HMN.js → chunk-6ICOJPMD.js} +7 -5
  8. package/dist/chunk-6ICOJPMD.js.map +1 -0
  9. package/dist/{chunk-DI2CJ3MZ.js → chunk-7BIQ3K6H.js} +2 -2
  10. package/dist/{chunk-AXQ5YBN2.js → chunk-7Y6UCSUS.js} +135 -10
  11. package/dist/chunk-7Y6UCSUS.js.map +1 -0
  12. package/dist/{chunk-G6UVYMA6.js → chunk-BTGCUONV.js} +2 -2
  13. package/dist/{chunk-4JKUAA6K.js → chunk-C36CZRHK.js} +14 -5
  14. package/dist/chunk-C36CZRHK.js.map +1 -0
  15. package/dist/{chunk-ZDYTNFQI.js → chunk-CMAU4DSB.js} +15 -5
  16. package/dist/chunk-CMAU4DSB.js.map +1 -0
  17. package/dist/{chunk-HWNY6U5F.js → chunk-G6OVKNL7.js} +2 -2
  18. package/dist/{chunk-6UDDZQDK.js → chunk-GO2IBRFP.js} +3 -3
  19. package/dist/chunk-GO2IBRFP.js.map +1 -0
  20. package/dist/{chunk-KWURASAB.js → chunk-GSCVG2ER.js} +3 -3
  21. package/dist/{chunk-IBTOZOGI.js → chunk-HWWA27DN.js} +2 -2
  22. package/dist/{chunk-U2S7OESF.js → chunk-MLVUMCQ2.js} +45 -13
  23. package/dist/chunk-MLVUMCQ2.js.map +1 -0
  24. package/dist/{chunk-4AJPS5AU.js → chunk-MOEMFL4K.js} +15 -5
  25. package/dist/chunk-MOEMFL4K.js.map +1 -0
  26. package/dist/{chunk-5RVMMKMO.js → chunk-NQKYHILD.js} +3 -3
  27. package/dist/{chunk-5NUF7ZQA.js → chunk-NTNXHLTM.js} +24 -3
  28. package/dist/chunk-NTNXHLTM.js.map +1 -0
  29. package/dist/{chunk-OFAVRPRK.js → chunk-OB7LC6NJ.js} +2 -2
  30. package/dist/chunk-OB7LC6NJ.js.map +1 -0
  31. package/dist/chunk-QCNT7D5V.js +549 -0
  32. package/dist/chunk-QCNT7D5V.js.map +1 -0
  33. package/dist/{chunk-H6L3FSQY.js → chunk-QDNI54ON.js} +3 -3
  34. package/dist/{chunk-QELX47AP.js → chunk-T6L3USBZ.js} +31 -20
  35. package/dist/chunk-T6L3USBZ.js.map +1 -0
  36. package/dist/{chunk-TZD7IVVQ.js → chunk-TPF4MOMF.js} +8 -3
  37. package/dist/chunk-TPF4MOMF.js.map +1 -0
  38. package/dist/{chunk-S3EQO33M.js → chunk-VTFCTWSX.js} +6 -4
  39. package/dist/chunk-VTFCTWSX.js.map +1 -0
  40. package/dist/{chunk-2RBYVWZT.js → chunk-VWNBB7FW.js} +5 -3
  41. package/dist/chunk-VWNBB7FW.js.map +1 -0
  42. package/dist/{chunk-6GKI67P7.js → chunk-WECSVHIM.js} +2 -2
  43. package/dist/chunk-X7IPZPTG.js +710 -0
  44. package/dist/chunk-X7IPZPTG.js.map +1 -0
  45. package/dist/{chunk-57P4WO4Y.js → chunk-XJP45LFA.js} +28 -21
  46. package/dist/chunk-XJP45LFA.js.map +1 -0
  47. package/dist/{chunk-6MLXFFH4.js → chunk-XVKEM5JY.js} +3 -3
  48. package/dist/chunk-XVKEM5JY.js.map +1 -0
  49. package/dist/chunk-ZBLTU67D.js +424 -0
  50. package/dist/chunk-ZBLTU67D.js.map +1 -0
  51. package/dist/{chunk-JPEWRJSQ.js → chunk-ZGAOMRYD.js} +3 -3
  52. package/dist/{chunk-LLRJU7XE.js → chunk-ZQJD4YEJ.js} +6 -6
  53. package/dist/chunk-ZQJD4YEJ.js.map +1 -0
  54. package/dist/components/accordion.js +2 -2
  55. package/dist/components/alert.js +2 -2
  56. package/dist/components/app-ui.d.ts +421 -0
  57. package/dist/components/app-ui.js +26 -0
  58. package/dist/components/app-ui.js.map +1 -0
  59. package/dist/components/blocks.d.ts +2 -2
  60. package/dist/components/blocks.js +3 -3
  61. package/dist/components/button.d.ts +7 -0
  62. package/dist/components/button.js +3 -3
  63. package/dist/components/checkbox-group.js +3 -3
  64. package/dist/components/checkbox.js +3 -3
  65. package/dist/components/date-input.js +3 -3
  66. package/dist/components/dialog.js +2 -2
  67. package/dist/components/fieldset.js +2 -2
  68. package/dist/components/grid.d.ts +2 -2
  69. package/dist/components/grid.js +2 -2
  70. package/dist/components/help.js +2 -2
  71. package/dist/components/icon.js +2 -2
  72. package/dist/components/layout.d.ts +10 -5
  73. package/dist/components/layout.js +2 -2
  74. package/dist/components/link.js +3 -3
  75. package/dist/components/marketing.d.ts +119 -6
  76. package/dist/components/marketing.js +7 -3
  77. package/dist/components/media.js +2 -2
  78. package/dist/components/navigation.d.ts +9 -2
  79. package/dist/components/navigation.js +3 -3
  80. package/dist/components/organisms.d.ts +547 -0
  81. package/dist/components/organisms.js +25 -0
  82. package/dist/components/organisms.js.map +1 -0
  83. package/dist/components/page.d.ts +14 -3
  84. package/dist/components/page.js +2 -2
  85. package/dist/components/price.d.ts +5 -0
  86. package/dist/components/price.js +2 -2
  87. package/dist/components/progress.js +2 -2
  88. package/dist/components/property.d.ts +389 -0
  89. package/dist/components/property.js +19 -0
  90. package/dist/components/property.js.map +1 -0
  91. package/dist/components/radio-group.js +3 -3
  92. package/dist/components/select.js +3 -3
  93. package/dist/components/summary-list.js +2 -2
  94. package/dist/components/table.js +2 -2
  95. package/dist/components/text-input.js +3 -3
  96. package/dist/components/textarea.js +3 -3
  97. package/dist/index.d.ts +4 -1
  98. package/dist/index.js +94 -40
  99. package/package.json +2 -2
  100. package/dist/chunk-2RBYVWZT.js.map +0 -1
  101. package/dist/chunk-3OSL2HMN.js.map +0 -1
  102. package/dist/chunk-4AJPS5AU.js.map +0 -1
  103. package/dist/chunk-4JKUAA6K.js.map +0 -1
  104. package/dist/chunk-57P4WO4Y.js.map +0 -1
  105. package/dist/chunk-5NUF7ZQA.js.map +0 -1
  106. package/dist/chunk-6MLXFFH4.js.map +0 -1
  107. package/dist/chunk-6UDDZQDK.js.map +0 -1
  108. package/dist/chunk-AXQ5YBN2.js.map +0 -1
  109. package/dist/chunk-LLRJU7XE.js.map +0 -1
  110. package/dist/chunk-OFAVRPRK.js.map +0 -1
  111. package/dist/chunk-QELX47AP.js.map +0 -1
  112. package/dist/chunk-QH46SOPJ.js.map +0 -1
  113. package/dist/chunk-S3EQO33M.js.map +0 -1
  114. package/dist/chunk-TZD7IVVQ.js.map +0 -1
  115. package/dist/chunk-U2S7OESF.js.map +0 -1
  116. package/dist/chunk-ZDYTNFQI.js.map +0 -1
  117. /package/dist/{chunk-CFGLOYWW.js.map → chunk-2YQA3VBY.js.map} +0 -0
  118. /package/dist/{chunk-DR3SJ7ZV.js.map → chunk-4HU4Y23Q.js.map} +0 -0
  119. /package/dist/{chunk-DI2CJ3MZ.js.map → chunk-7BIQ3K6H.js.map} +0 -0
  120. /package/dist/{chunk-G6UVYMA6.js.map → chunk-BTGCUONV.js.map} +0 -0
  121. /package/dist/{chunk-HWNY6U5F.js.map → chunk-G6OVKNL7.js.map} +0 -0
  122. /package/dist/{chunk-KWURASAB.js.map → chunk-GSCVG2ER.js.map} +0 -0
  123. /package/dist/{chunk-IBTOZOGI.js.map → chunk-HWWA27DN.js.map} +0 -0
  124. /package/dist/{chunk-5RVMMKMO.js.map → chunk-NQKYHILD.js.map} +0 -0
  125. /package/dist/{chunk-H6L3FSQY.js.map → chunk-QDNI54ON.js.map} +0 -0
  126. /package/dist/{chunk-6GKI67P7.js.map → chunk-WECSVHIM.js.map} +0 -0
  127. /package/dist/{chunk-JPEWRJSQ.js.map → chunk-ZGAOMRYD.js.map} +0 -0
@@ -50,9 +50,9 @@ export declare class ImpktStack extends ImpktElement {
50
50
  /** Where the items sit along a row. */
51
51
  justify: 'start' | 'center' | 'end' | 'between';
52
52
  /** Space before the stack, from the spacing scale. */
53
- spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
53
+ spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
54
54
  /** Space after the stack, from the spacing scale. */
55
- spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
55
+ spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
56
56
  constructor();
57
57
  static styles: import("lit").CSSResult[];
58
58
  render(): TemplateResult;
@@ -85,6 +85,9 @@ export declare class ImpktCard extends ImpktElement {
85
85
  type: StringConstructor;
86
86
  reflect: boolean;
87
87
  };
88
+ badge: {
89
+ type: StringConstructor;
90
+ };
88
91
  spaceAbove: {
89
92
  type: StringConstructor;
90
93
  reflect: boolean;
@@ -104,12 +107,14 @@ export declare class ImpktCard extends ImpktElement {
104
107
  imageSrc: string;
105
108
  /** What the picture shows. Leave empty only when it is decoration. */
106
109
  imageAlt: string;
110
+ /** A short label on the picture, such as "3 left". */
111
+ badge: string;
107
112
  /** The picture's shape. */
108
113
  ratio: '16:9' | '4:3' | '3:2' | '1:1';
109
114
  /** Space before the card, from the spacing scale. */
110
- spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
115
+ spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
111
116
  /** Space after the card, from the spacing scale. */
112
- spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
117
+ spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
113
118
  constructor();
114
119
  static styles: import("lit").CSSResult[];
115
120
  render(): TemplateResult;
@@ -148,7 +153,7 @@ export declare class ImpktHeading extends ImpktElement {
148
153
  };
149
154
  };
150
155
  level: 1 | 2 | 3 | 4 | 5 | 6;
151
- size: '3xl' | '2xl' | 'xl' | 'lg' | 'md';
156
+ size: '5xl' | '4xl' | '3xl' | '2xl' | 'xl' | 'lg' | 'md' | 'sm';
152
157
  /** A short label above the heading, such as "Why Larkfield". Part of the heading, read before it. */
153
158
  eyebrow: string;
154
159
  align: 'start' | 'center';
@@ -3,8 +3,8 @@ import {
3
3
  ImpktHeading,
4
4
  ImpktStack,
5
5
  ImpktText
6
- } from "../chunk-QELX47AP.js";
7
- import "../chunk-5NUF7ZQA.js";
6
+ } from "../chunk-T6L3USBZ.js";
7
+ import "../chunk-NTNXHLTM.js";
8
8
  export {
9
9
  ImpktCard,
10
10
  ImpktHeading,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpktLink
3
- } from "../chunk-JPEWRJSQ.js";
4
- import "../chunk-CFGLOYWW.js";
5
- import "../chunk-5NUF7ZQA.js";
3
+ } from "../chunk-ZGAOMRYD.js";
4
+ import "../chunk-2YQA3VBY.js";
5
+ import "../chunk-NTNXHLTM.js";
6
6
  export {
7
7
  ImpktLink
8
8
  };
@@ -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-AXQ5YBN2.js";
8
- import "../chunk-CFGLOYWW.js";
9
- import "../chunk-5NUF7ZQA.js";
9
+ } from "../chunk-7Y6UCSUS.js";
10
+ import "../chunk-2YQA3VBY.js";
11
+ import "../chunk-NTNXHLTM.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
@@ -2,8 +2,8 @@ import {
2
2
  ImpktDocumentLink,
3
3
  ImpktImage,
4
4
  ImpktLogo
5
- } from "../chunk-6GKI67P7.js";
6
- import "../chunk-5NUF7ZQA.js";
5
+ } from "../chunk-WECSVHIM.js";
6
+ import "../chunk-NTNXHLTM.js";
7
7
  export {
8
8
  ImpktDocumentLink,
9
9
  ImpktImage,
@@ -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 on
10
- * a narrow screen.
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
@@ -51,6 +51,13 @@ export declare class ImpktNav extends ImpktElement {
51
51
  private set open(value);
52
52
  constructor();
53
53
  static styles: import("lit").CSSResult[];
54
+ /** The width the links need in one row. Measured once for each set of links, and again while folded it cannot be read. */
55
+ private needs;
56
+ private resize?;
57
+ private fit;
58
+ protected updated(changed: Map<string, unknown>): void;
59
+ connectedCallback(): void;
60
+ disconnectedCallback(): void;
54
61
  private toggle;
55
62
  private onKey;
56
63
  render(): TemplateResult;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ImpktBreadcrumbs,
3
3
  ImpktNav
4
- } from "../chunk-U2S7OESF.js";
5
- import "../chunk-CFGLOYWW.js";
6
- import "../chunk-5NUF7ZQA.js";
4
+ } from "../chunk-MLVUMCQ2.js";
5
+ import "../chunk-2YQA3VBY.js";
6
+ import "../chunk-NTNXHLTM.js";
7
7
  export {
8
8
  ImpktBreadcrumbs,
9
9
  ImpktNav