@atomic-ui/ui 0.2.0 → 0.5.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.
Files changed (219) hide show
  1. package/README.md +88 -105
  2. package/custom-elements.json +6370 -15469
  3. package/dist/base/FieldElement.d.ts +14 -3
  4. package/dist/base/{ImpktElement.d.ts → ImpaktElement.d.ts} +2 -2
  5. package/dist/base/scroll-lock.d.ts +2 -0
  6. package/dist/base/styles.d.ts +31 -5
  7. package/dist/base/tokens.d.ts +1 -1
  8. package/dist/base/tone.d.ts +20 -0
  9. package/dist/chunk-2YRTFWW2.js +26 -0
  10. package/dist/chunk-2YRTFWW2.js.map +1 -0
  11. package/dist/{chunk-7BSZPUE3.js → chunk-3EF4T242.js} +7 -7
  12. package/dist/chunk-3EF4T242.js.map +1 -0
  13. package/dist/{chunk-KFD4O7VA.js → chunk-5Y3HYRCU.js} +7 -7
  14. package/dist/chunk-5Y3HYRCU.js.map +1 -0
  15. package/dist/{chunk-7AJN2TIS.js → chunk-5ZQVL3V2.js} +29 -12
  16. package/dist/chunk-5ZQVL3V2.js.map +1 -0
  17. package/dist/{chunk-NCASAXQT.js → chunk-A7YBFS4H.js} +15 -15
  18. package/dist/chunk-A7YBFS4H.js.map +1 -0
  19. package/dist/{chunk-E2VBUWJ4.js → chunk-ACQ4KYPR.js} +9 -9
  20. package/dist/chunk-ACQ4KYPR.js.map +1 -0
  21. package/dist/{chunk-OMJMUFOW.js → chunk-DE3INTHZ.js} +6 -6
  22. package/dist/chunk-DE3INTHZ.js.map +1 -0
  23. package/dist/chunk-EJD6LT7E.js +161 -0
  24. package/dist/chunk-EJD6LT7E.js.map +1 -0
  25. package/dist/{chunk-XJXCTGDR.js → chunk-EJSX4WCD.js} +9 -9
  26. package/dist/chunk-EJSX4WCD.js.map +1 -0
  27. package/dist/chunk-FMSC7J7J.js +76 -0
  28. package/dist/chunk-FMSC7J7J.js.map +1 -0
  29. package/dist/{chunk-R67PDFKE.js → chunk-FWR6SEIA.js} +33 -33
  30. package/dist/chunk-FWR6SEIA.js.map +1 -0
  31. package/dist/{chunk-FFCIY7NM.js → chunk-GJPHQLLN.js} +8 -8
  32. package/dist/chunk-GJPHQLLN.js.map +1 -0
  33. package/dist/{chunk-OLLZFNO6.js → chunk-HNBG2POR.js} +7 -7
  34. package/dist/chunk-HNBG2POR.js.map +1 -0
  35. package/dist/{chunk-E3XJK7MY.js → chunk-HNZQ7LM4.js} +13 -11
  36. package/dist/chunk-HNZQ7LM4.js.map +1 -0
  37. package/dist/{chunk-3IQ73WNW.js → chunk-I54DOEZB.js} +9 -7
  38. package/dist/chunk-I54DOEZB.js.map +1 -0
  39. package/dist/{chunk-QB2KMV6S.js → chunk-PANH23MF.js} +12 -12
  40. package/dist/chunk-PANH23MF.js.map +1 -0
  41. package/dist/{chunk-UCHJCUYI.js → chunk-PYVUQNFQ.js} +39 -13
  42. package/dist/chunk-PYVUQNFQ.js.map +1 -0
  43. package/dist/{chunk-GQDUHZE3.js → chunk-Q54FX3SY.js} +8 -8
  44. package/dist/chunk-Q54FX3SY.js.map +1 -0
  45. package/dist/{chunk-WFKSOM6O.js → chunk-QBORJTS4.js} +68 -44
  46. package/dist/chunk-QBORJTS4.js.map +1 -0
  47. package/dist/{chunk-TGT7J4EG.js → chunk-RXX4CN5J.js} +7 -7
  48. package/dist/chunk-RXX4CN5J.js.map +1 -0
  49. package/dist/{chunk-XEJMFFIM.js → chunk-SV77SN6P.js} +8 -8
  50. package/dist/chunk-SV77SN6P.js.map +1 -0
  51. package/dist/chunk-TAZZLOUY.js +328 -0
  52. package/dist/chunk-TAZZLOUY.js.map +1 -0
  53. package/dist/{chunk-7OXTZJR4.js → chunk-TRZO5CHU.js} +7 -7
  54. package/dist/chunk-TRZO5CHU.js.map +1 -0
  55. package/dist/{chunk-EDSZI227.js → chunk-UPOTBKKK.js} +12 -9
  56. package/dist/chunk-UPOTBKKK.js.map +1 -0
  57. package/dist/{chunk-26O27BQS.js → chunk-WP5WJ4V5.js} +6 -6
  58. package/dist/chunk-WP5WJ4V5.js.map +1 -0
  59. package/dist/{chunk-YD6IZ2C5.js → chunk-WS5AUJ35.js} +7 -7
  60. package/dist/chunk-WS5AUJ35.js.map +1 -0
  61. package/dist/{chunk-HYPPG4NF.js → chunk-WWYYNR3Z.js} +93 -53
  62. package/dist/chunk-WWYYNR3Z.js.map +1 -0
  63. package/dist/{chunk-NKTMMJYD.js → chunk-XU2XODVH.js} +9 -8
  64. package/dist/chunk-XU2XODVH.js.map +1 -0
  65. package/dist/{chunk-D6C7XEY4.js → chunk-YR6T73GY.js} +24 -12
  66. package/dist/chunk-YR6T73GY.js.map +1 -0
  67. package/dist/{chunk-OB7WULFK.js → chunk-YYYQPKQ7.js} +24 -24
  68. package/dist/chunk-YYYQPKQ7.js.map +1 -0
  69. package/dist/{chunk-FJRHZA3C.js → chunk-Z45LY6BT.js} +9 -9
  70. package/dist/chunk-Z45LY6BT.js.map +1 -0
  71. package/dist/{chunk-6YYAOKNI.js → chunk-ZQBEFP2O.js} +7 -7
  72. package/dist/chunk-ZQBEFP2O.js.map +1 -0
  73. package/dist/chunk-ZS7RPXCT.js +47 -0
  74. package/dist/chunk-ZS7RPXCT.js.map +1 -0
  75. package/dist/components/accordion.d.ts +3 -3
  76. package/dist/components/accordion.js +4 -4
  77. package/dist/components/alert.d.ts +3 -3
  78. package/dist/components/alert.js +4 -4
  79. package/dist/components/app-ui.d.ts +47 -31
  80. package/dist/components/app-ui.js +21 -20
  81. package/dist/components/badge.d.ts +37 -0
  82. package/dist/components/badge.js +9 -0
  83. package/dist/components/blocks.d.ts +37 -74
  84. package/dist/components/blocks.js +10 -13
  85. package/dist/components/button.d.ts +3 -3
  86. package/dist/components/button.js +5 -5
  87. package/dist/components/checkbox-group.d.ts +2 -2
  88. package/dist/components/checkbox-group.js +5 -5
  89. package/dist/components/checkbox.d.ts +2 -2
  90. package/dist/components/checkbox.js +5 -5
  91. package/dist/components/chip.d.ts +58 -0
  92. package/dist/components/chip.js +8 -0
  93. package/dist/components/date-input.d.ts +2 -2
  94. package/dist/components/date-input.js +5 -5
  95. package/dist/components/dialog.d.ts +18 -3
  96. package/dist/components/dialog.js +5 -4
  97. package/dist/components/fieldset.d.ts +3 -3
  98. package/dist/components/fieldset.js +4 -4
  99. package/dist/components/grid.d.ts +3 -3
  100. package/dist/components/grid.js +4 -4
  101. package/dist/components/help.d.ts +3 -3
  102. package/dist/components/help.js +4 -4
  103. package/dist/components/icon.d.ts +3 -3
  104. package/dist/components/icon.js +4 -4
  105. package/dist/components/journey.d.ts +30 -16
  106. package/dist/components/journey.js +15 -15
  107. package/dist/components/layout.d.ts +9 -9
  108. package/dist/components/layout.js +10 -10
  109. package/dist/components/link.d.ts +3 -3
  110. package/dist/components/link.js +5 -5
  111. package/dist/components/list.d.ts +3 -3
  112. package/dist/components/list.js +4 -4
  113. package/dist/components/media.d.ts +8 -8
  114. package/dist/components/media.js +8 -8
  115. package/dist/components/navigation.d.ts +5 -5
  116. package/dist/components/navigation.js +7 -7
  117. package/dist/components/page.d.ts +5 -5
  118. package/dist/components/page.js +6 -6
  119. package/dist/components/price.d.ts +3 -3
  120. package/dist/components/price.js +4 -4
  121. package/dist/components/progress.d.ts +3 -3
  122. package/dist/components/progress.js +4 -4
  123. package/dist/components/radio-group.d.ts +2 -2
  124. package/dist/components/radio-group.js +5 -5
  125. package/dist/components/select.d.ts +2 -2
  126. package/dist/components/select.js +5 -5
  127. package/dist/components/summary-list.d.ts +3 -3
  128. package/dist/components/summary-list.js +4 -4
  129. package/dist/components/table.d.ts +97 -5
  130. package/dist/components/table.js +6 -4
  131. package/dist/components/text-input.d.ts +2 -2
  132. package/dist/components/text-input.js +5 -5
  133. package/dist/components/textarea.d.ts +2 -2
  134. package/dist/components/textarea.js +5 -5
  135. package/dist/index.d.ts +47 -40
  136. package/dist/index.js +206 -269
  137. package/dist/standalone/atomic-ui.js +1928 -0
  138. package/dist/standalone/atomic-ui.js.map +7 -0
  139. package/dist/standalone/index.html +173 -0
  140. package/package.json +19 -7
  141. package/scripts/copy-to-product.mjs +52 -0
  142. package/specimen/index.html +173 -0
  143. package/dist/chunk-26O27BQS.js.map +0 -1
  144. package/dist/chunk-2CFVV2NZ.js +0 -494
  145. package/dist/chunk-2CFVV2NZ.js.map +0 -1
  146. package/dist/chunk-3IQ73WNW.js.map +0 -1
  147. package/dist/chunk-4X723QBD.js +0 -361
  148. package/dist/chunk-4X723QBD.js.map +0 -1
  149. package/dist/chunk-6YYAOKNI.js.map +0 -1
  150. package/dist/chunk-7AJN2TIS.js.map +0 -1
  151. package/dist/chunk-7BSZPUE3.js.map +0 -1
  152. package/dist/chunk-7OXTZJR4.js.map +0 -1
  153. package/dist/chunk-7XEPNEVQ.js +0 -264
  154. package/dist/chunk-7XEPNEVQ.js.map +0 -1
  155. package/dist/chunk-D6C7XEY4.js.map +0 -1
  156. package/dist/chunk-E2VBUWJ4.js.map +0 -1
  157. package/dist/chunk-E3XJK7MY.js.map +0 -1
  158. package/dist/chunk-EDSZI227.js.map +0 -1
  159. package/dist/chunk-FFCIY7NM.js.map +0 -1
  160. package/dist/chunk-FJRHZA3C.js.map +0 -1
  161. package/dist/chunk-GQDUHZE3.js.map +0 -1
  162. package/dist/chunk-HYPPG4NF.js.map +0 -1
  163. package/dist/chunk-J4JULXUG.js +0 -249
  164. package/dist/chunk-J4JULXUG.js.map +0 -1
  165. package/dist/chunk-KFD4O7VA.js.map +0 -1
  166. package/dist/chunk-MVEFM5QI.js +0 -195
  167. package/dist/chunk-MVEFM5QI.js.map +0 -1
  168. package/dist/chunk-NCASAXQT.js.map +0 -1
  169. package/dist/chunk-NKTMMJYD.js.map +0 -1
  170. package/dist/chunk-OB7WULFK.js.map +0 -1
  171. package/dist/chunk-OHDPGIJ3.js +0 -428
  172. package/dist/chunk-OHDPGIJ3.js.map +0 -1
  173. package/dist/chunk-OLLZFNO6.js.map +0 -1
  174. package/dist/chunk-OMJMUFOW.js.map +0 -1
  175. package/dist/chunk-QB2KMV6S.js.map +0 -1
  176. package/dist/chunk-R67PDFKE.js.map +0 -1
  177. package/dist/chunk-RZSZQMSE.js +0 -236
  178. package/dist/chunk-RZSZQMSE.js.map +0 -1
  179. package/dist/chunk-TGT7J4EG.js.map +0 -1
  180. package/dist/chunk-UCHJCUYI.js.map +0 -1
  181. package/dist/chunk-UHLRXI6J.js +0 -453
  182. package/dist/chunk-UHLRXI6J.js.map +0 -1
  183. package/dist/chunk-UNVL3CNM.js +0 -725
  184. package/dist/chunk-UNVL3CNM.js.map +0 -1
  185. package/dist/chunk-WDDWWCHN.js +0 -104
  186. package/dist/chunk-WDDWWCHN.js.map +0 -1
  187. package/dist/chunk-WFKSOM6O.js.map +0 -1
  188. package/dist/chunk-XEJMFFIM.js.map +0 -1
  189. package/dist/chunk-XJXCTGDR.js.map +0 -1
  190. package/dist/chunk-YD6IZ2C5.js.map +0 -1
  191. package/dist/chunk-YK5QI57J.js +0 -396
  192. package/dist/chunk-YK5QI57J.js.map +0 -1
  193. package/dist/components/changelog.d.ts +0 -386
  194. package/dist/components/changelog.js +0 -25
  195. package/dist/components/estimator.d.ts +0 -246
  196. package/dist/components/estimator.js +0 -16
  197. package/dist/components/marketing.d.ts +0 -370
  198. package/dist/components/marketing.js +0 -21
  199. package/dist/components/marketing.js.map +0 -1
  200. package/dist/components/organisms.d.ts +0 -559
  201. package/dist/components/organisms.js +0 -25
  202. package/dist/components/organisms.js.map +0 -1
  203. package/dist/components/property.d.ts +0 -389
  204. package/dist/components/property.js +0 -20
  205. package/dist/components/property.js.map +0 -1
  206. package/dist/components/scene.d.ts +0 -138
  207. package/dist/components/scene.js +0 -8
  208. package/dist/components/scene.js.map +0 -1
  209. package/dist/components/scrubber.d.ts +0 -86
  210. package/dist/components/scrubber.js +0 -8
  211. package/dist/components/scrubber.js.map +0 -1
  212. package/dist/components/selling.d.ts +0 -407
  213. package/dist/components/selling.js +0 -25
  214. package/dist/components/selling.js.map +0 -1
  215. package/dist/components/site.d.ts +0 -283
  216. package/dist/components/site.js +0 -20
  217. package/dist/components/site.js.map +0 -1
  218. /package/dist/components/{changelog.js.map → badge.js.map} +0 -0
  219. /package/dist/components/{estimator.js.map → chip.js.map} +0 -0
@@ -1,21 +1,22 @@
1
1
  import { type TemplateResult } from 'lit';
2
2
  import { FieldElement } from '../base/FieldElement';
3
- import { ImpktElement } from '../base/ImpktElement';
3
+ import { ImpaktElement } from '../base/ImpaktElement';
4
4
  /**
5
5
  * A panel that slides in from the side: a basket, filters, a plot's details.
6
6
  *
7
7
  * It is a native `<dialog>` opened with `showModal()`, like the dialog, so the
8
8
  * focus trap, Escape, the inert page behind it and the return of focus all come
9
- * from the browser. The slide is a decoration and stops for anyone who has
10
- * asked for reduced motion.
9
+ * from the browser. The page behind it does not scroll while it is open. The
10
+ * slide is a decoration and stops for anyone who has asked for reduced motion.
11
+ * On a phone it fills the screen.
11
12
  *
12
13
  * @category feedback
13
14
  * @icon drawer
14
15
  * @slot - The body of the panel.
15
16
  * @slot footer - Buttons pinned to the bottom of the panel.
16
- * @fires impkt-close - When the panel is closed.
17
+ * @fires {CustomEvent<null>} impakt-close - When the panel is closed.
17
18
  */
18
- export declare class ImpktDrawer extends ImpktElement {
19
+ export declare class ImpaktDrawer extends ImpaktElement {
19
20
  static properties: {
20
21
  open: {
21
22
  type: BooleanConstructor;
@@ -42,6 +43,7 @@ export declare class ImpktDrawer extends ImpktElement {
42
43
  private hasFooter;
43
44
  private get dialog();
44
45
  updated(changed: Map<string, unknown>): void;
46
+ disconnectedCallback(): void;
45
47
  private close;
46
48
  private footerChanged;
47
49
  render(): TemplateResult;
@@ -49,16 +51,26 @@ export declare class ImpktDrawer extends ImpktElement {
49
51
  /**
50
52
  * A short message in the corner that goes away: "Viewing booked", "Saved".
51
53
  *
52
- * It says itself to a screen reader through a live region, and its timer stops
53
- * while it is pointed at or focused. Set `duration` to 0 to keep it up until it
54
- * is closed. Anything a person must act on belongs in an alert on the page.
54
+ * It says itself to a screen reader through a live region that is on the page
55
+ * before the message is, and its timer stops while it is pointed at or focused.
56
+ * Set `duration` to 0 to keep it up until it is closed. A message with a button,
57
+ * such as Undo, stays until it is closed whatever the duration, because a
58
+ * button that disappears on a timer cannot be pressed by someone who needs
59
+ * longer (2.2.1). Escape closes it while focus is inside it. Anything a person
60
+ * must act on belongs in an alert on the page.
61
+ *
62
+ * It never takes the page's clicks: only the message itself can be pressed, so
63
+ * the page beside and behind the corner it sits in still works. On a phone it
64
+ * spans the screen above the bottom edge, clear of the home bar and of a bottom
65
+ * bar that sets `--impakt-bottom-bar`, and it rises without moving for anyone who
66
+ * has asked for reduced motion.
55
67
  *
56
68
  * @category feedback
57
69
  * @icon toast
58
- * @fires impkt-close - When the message goes away.
59
- * @fires impkt-action - When its button is pressed.
70
+ * @fires {CustomEvent<null>} impakt-close - When the message goes away.
71
+ * @fires {CustomEvent<null>} impakt-action - When its button is pressed.
60
72
  */
61
- export declare class ImpktToast extends ImpktElement {
73
+ export declare class ImpaktToast extends ImpaktElement {
62
74
  static properties: {
63
75
  open: {
64
76
  type: BooleanConstructor;
@@ -104,7 +116,7 @@ export declare class ImpktToast extends ImpktElement {
104
116
  export interface MenuItem {
105
117
  id?: string;
106
118
  text: string;
107
- /** Where it goes. Without one it fires impkt-select with its value. */
119
+ /** Where it goes. Without one it fires impakt-select with its value. */
108
120
  href?: string;
109
121
  value?: string;
110
122
  icon?: string;
@@ -114,14 +126,16 @@ export interface MenuItem {
114
126
  * A button that opens a short list of actions or links.
115
127
  *
116
128
  * It follows the ARIA menu button pattern: the arrow keys, Home and End move
117
- * through it, Escape closes it and puts focus back on the button, and a click
118
- * anywhere else closes it.
129
+ * through it, a letter moves to the next item that starts with it, Escape
130
+ * closes it and puts focus back on the button, and a click anywhere else closes
131
+ * it. A list that would run off the side of the screen opens towards the other
132
+ * edge instead, so it never makes a phone scroll sideways.
119
133
  *
120
134
  * @category navigation
121
135
  * @icon menu
122
- * @fires impkt-select - When an item without an address is chosen. The value is in detail.value.
136
+ * @fires {CustomEvent<{ value: string }>} impakt-select - When an item without an address is chosen. The value is in detail.value.
123
137
  */
124
- export declare class ImpktMenu extends ImpktElement {
138
+ export declare class ImpaktMenu extends ImpaktElement {
125
139
  static properties: {
126
140
  label: {
127
141
  type: StringConstructor;
@@ -154,6 +168,8 @@ export declare class ImpktMenu extends ImpktElement {
154
168
  private get entries();
155
169
  private get trigger();
156
170
  private toggle;
171
+ /** Open towards the other edge when the list would run off the screen. */
172
+ private keepOnScreen;
157
173
  private triggerKey;
158
174
  private listKey;
159
175
  private choose;
@@ -166,13 +182,13 @@ export declare function pageWindow(page: number, pages: number): Array<number |
166
182
  *
167
183
  * Give it `href-pattern` and every number is a real link, with `{page}` swapped
168
184
  * for the number. Without one the numbers are buttons and it fires
169
- * `impkt-page`. On a narrow screen the numbers fold to "Page 2 of 9".
185
+ * `impakt-page`. On a narrow screen the numbers fold to "Page 2 of 9".
170
186
  *
171
187
  * @category navigation
172
188
  * @icon pagination
173
- * @fires impkt-page - When a page is chosen. The number is in detail.page.
189
+ * @fires {CustomEvent<{ page: number }>} impakt-page - When a page is chosen. The number is in detail.page.
174
190
  */
175
- export declare class ImpktPagination extends ImpktElement {
191
+ export declare class ImpaktPagination extends ImpaktElement {
176
192
  static properties: {
177
193
  page: {
178
194
  type: NumberConstructor;
@@ -215,7 +231,7 @@ export declare class ImpktPagination extends ImpktElement {
215
231
  * @category content
216
232
  * @icon avatar
217
233
  */
218
- export declare class ImpktAvatar extends ImpktElement {
234
+ export declare class ImpaktAvatar extends ImpaktElement {
219
235
  static properties: {
220
236
  fullName: {
221
237
  type: StringConstructor;
@@ -250,7 +266,7 @@ export interface AvatarItem {
250
266
  * @category content
251
267
  * @icon avatars
252
268
  */
253
- export declare class ImpktAvatarGroup extends ImpktElement {
269
+ export declare class ImpaktAvatarGroup extends ImpaktElement {
254
270
  static properties: {
255
271
  items: {
256
272
  type: ArrayConstructor;
@@ -284,7 +300,7 @@ export declare class ImpktAvatarGroup extends ImpktElement {
284
300
  * @role heading
285
301
  * @slot actions - The next thing to do, usually one button.
286
302
  */
287
- export declare class ImpktEmptyState extends ImpktElement {
303
+ export declare class ImpaktEmptyState extends ImpaktElement {
288
304
  static properties: {
289
305
  icon: {
290
306
  type: StringConstructor;
@@ -343,7 +359,7 @@ export interface SlotDay {
343
359
  * @category form
344
360
  * @icon calendar
345
361
  */
346
- export declare class ImpktSlotPicker extends FieldElement {
362
+ export declare class ImpaktSlotPicker extends FieldElement {
347
363
  static properties: {
348
364
  days: {
349
365
  type: ArrayConstructor;
@@ -409,13 +425,13 @@ export declare class ImpktSlotPicker extends FieldElement {
409
425
  }
410
426
  declare global {
411
427
  interface HTMLElementTagNameMap {
412
- 'impkt-drawer': ImpktDrawer;
413
- 'impkt-toast': ImpktToast;
414
- 'impkt-menu': ImpktMenu;
415
- 'impkt-pagination': ImpktPagination;
416
- 'impkt-avatar': ImpktAvatar;
417
- 'impkt-avatar-group': ImpktAvatarGroup;
418
- 'impkt-empty-state': ImpktEmptyState;
419
- 'impkt-slot-picker': ImpktSlotPicker;
428
+ 'impakt-drawer': ImpaktDrawer;
429
+ 'impakt-toast': ImpaktToast;
430
+ 'impakt-menu': ImpaktMenu;
431
+ 'impakt-pagination': ImpaktPagination;
432
+ 'impakt-avatar': ImpaktAvatar;
433
+ 'impakt-avatar-group': ImpaktAvatarGroup;
434
+ 'impakt-empty-state': ImpaktEmptyState;
435
+ 'impakt-slot-picker': ImpaktSlotPicker;
420
436
  }
421
437
  }
@@ -1,27 +1,28 @@
1
1
  import {
2
- ImpktAvatar,
3
- ImpktAvatarGroup,
4
- ImpktDrawer,
5
- ImpktEmptyState,
6
- ImpktMenu,
7
- ImpktPagination,
8
- ImpktSlotPicker,
9
- ImpktToast,
2
+ ImpaktAvatar,
3
+ ImpaktAvatarGroup,
4
+ ImpaktDrawer,
5
+ ImpaktEmptyState,
6
+ ImpaktMenu,
7
+ ImpaktPagination,
8
+ ImpaktSlotPicker,
9
+ ImpaktToast,
10
10
  pageWindow
11
- } from "../chunk-HYPPG4NF.js";
11
+ } from "../chunk-WWYYNR3Z.js";
12
12
  import "../chunk-3IGNZTJU.js";
13
- import "../chunk-KFD4O7VA.js";
14
- import "../chunk-7AJN2TIS.js";
15
- import "../chunk-D6C7XEY4.js";
13
+ import "../chunk-2YRTFWW2.js";
14
+ import "../chunk-5Y3HYRCU.js";
15
+ import "../chunk-5ZQVL3V2.js";
16
+ import "../chunk-YR6T73GY.js";
16
17
  export {
17
- ImpktAvatar,
18
- ImpktAvatarGroup,
19
- ImpktDrawer,
20
- ImpktEmptyState,
21
- ImpktMenu,
22
- ImpktPagination,
23
- ImpktSlotPicker,
24
- ImpktToast,
18
+ ImpaktAvatar,
19
+ ImpaktAvatarGroup,
20
+ ImpaktDrawer,
21
+ ImpaktEmptyState,
22
+ ImpaktMenu,
23
+ ImpaktPagination,
24
+ ImpaktSlotPicker,
25
+ ImpaktToast,
25
26
  pageWindow
26
27
  };
27
28
  //# sourceMappingURL=app-ui.js.map
@@ -0,0 +1,37 @@
1
+ /**
2
+ * A short label on something, coloured by its tone.
3
+ */
4
+ import { type TemplateResult } from 'lit';
5
+ import { ImpaktElement } from '../base/ImpaktElement';
6
+ /**
7
+ * A short label on something: "New", "Selling fast", "2 left".
8
+ *
9
+ * The tone colours it, and the words carry the meaning, so it reads the same
10
+ * without the colour (1.4.1).
11
+ *
12
+ * @category feedback
13
+ * @icon badge
14
+ * @slot - The badge's words.
15
+ */
16
+ export declare class ImpaktBadge extends ImpaktElement {
17
+ static properties: {
18
+ tone: {
19
+ type: StringConstructor;
20
+ reflect: boolean;
21
+ };
22
+ icon: {
23
+ type: StringConstructor;
24
+ };
25
+ };
26
+ tone: 'neutral' | 'brand' | 'success' | 'warning' | 'danger' | 'info';
27
+ /** An icon before the words. */
28
+ 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';
29
+ constructor();
30
+ static styles: import("lit").CSSResult[];
31
+ render(): TemplateResult;
32
+ }
33
+ declare global {
34
+ interface HTMLElementTagNameMap {
35
+ 'impakt-badge': ImpaktBadge;
36
+ }
37
+ }
@@ -0,0 +1,9 @@
1
+ import {
2
+ ImpaktBadge
3
+ } from "../chunk-ZS7RPXCT.js";
4
+ import "../chunk-5Y3HYRCU.js";
5
+ import "../chunk-YR6T73GY.js";
6
+ export {
7
+ ImpaktBadge
8
+ };
9
+ //# sourceMappingURL=badge.js.map
@@ -1,5 +1,5 @@
1
1
  import { type TemplateResult } from 'lit';
2
- import { ImpktElement } from '../base/ImpktElement';
2
+ import { ImpaktElement } from '../base/ImpaktElement';
3
3
  /**
4
4
  * A line between two parts of a page.
5
5
  *
@@ -9,7 +9,7 @@ import { ImpktElement } from '../base/ImpktElement';
9
9
  * @category layout
10
10
  * @icon divider
11
11
  */
12
- export declare class ImpktDivider extends ImpktElement {
12
+ export declare class ImpaktDivider extends ImpaktElement {
13
13
  static properties: {
14
14
  spacing: {
15
15
  type: StringConstructor;
@@ -34,7 +34,7 @@ export declare class ImpktDivider extends ImpktElement {
34
34
  * @category layout
35
35
  * @icon spacer
36
36
  */
37
- export declare class ImpktSpacer extends ImpktElement {
37
+ export declare class ImpaktSpacer extends ImpaktElement {
38
38
  static properties: {
39
39
  size: {
40
40
  type: StringConstructor;
@@ -54,7 +54,7 @@ export declare class ImpktSpacer extends ImpktElement {
54
54
  * @icon hidden
55
55
  * @slot - The words to say.
56
56
  */
57
- export declare class ImpktVisuallyHidden extends ImpktElement {
57
+ export declare class ImpaktVisuallyHidden extends ImpaktElement {
58
58
  static styles: import("lit").CSSResult[];
59
59
  render(): TemplateResult;
60
60
  }
@@ -62,21 +62,33 @@ export declare class ImpktVisuallyHidden extends ImpktElement {
62
62
  export interface TabItem {
63
63
  id: string;
64
64
  label: string;
65
+ /** The panel's words. A child with `slot` set to the tab's id is shown instead, for anything richer. */
65
66
  body: string;
66
67
  }
67
68
  /**
68
69
  * Panels of content behind a row of tabs, one shown at a time: the floor plans
69
- * of three house types, or what is included and what costs extra.
70
+ * of three house types, or a case's summary, tasks and files.
70
71
  *
71
72
  * It follows the ARIA tabs pattern. The tabs are one stop in the tab order,
72
73
  * the arrow keys, Home and End move between them, and each panel is labelled
73
74
  * by its tab. Use an accordion instead when someone may want to compare panels.
74
75
  *
76
+ * **The tabs stay on one row** and scroll sideways when they do not fit, as the
77
+ * design guide sets, and the chosen tab is scrolled into view, so on a phone it
78
+ * is never hidden off the edge. With `two-rows`, a set of more than four tabs is
79
+ * laid out in two rows on a narrow screen instead, so every tab can be seen.
80
+ *
81
+ * **The chosen tab is kept** when the tabs are given again, as a React or Vue app
82
+ * does on every render, so long as a tab with that id is still there.
83
+ *
84
+ * A panel shows its item's `body`, or a child whose `slot` is the item's id.
85
+ *
75
86
  * @category content
76
87
  * @icon tabs
77
- * @fires impkt-change - When another tab is chosen.
88
+ * @slot - A child with `slot` set to a tab's id is that tab's panel.
89
+ * @fires {CustomEvent<{ value: string }>} impakt-change - When another tab is chosen.
78
90
  */
79
- export declare class ImpktTabs extends ImpktElement {
91
+ export declare class ImpaktTabs extends ImpaktElement {
80
92
  static properties: {
81
93
  items: {
82
94
  type: ArrayConstructor;
@@ -88,87 +100,38 @@ export declare class ImpktTabs extends ImpktElement {
88
100
  label: {
89
101
  type: StringConstructor;
90
102
  };
103
+ twoRows: {
104
+ type: BooleanConstructor;
105
+ reflect: boolean;
106
+ attribute: string;
107
+ };
91
108
  };
92
109
  items: TabItem[];
93
110
  /** The id of the tab shown first. The first tab when it is empty. */
94
111
  selected: string;
95
112
  /** What the set of tabs is about, for a screen reader. */
96
113
  label: string;
114
+ /** On a narrow screen, lay more than four tabs out in two rows rather than scroll them. */
115
+ twoRows: boolean;
97
116
  constructor();
98
117
  static styles: import("lit").CSSResult[];
99
118
  private current;
100
119
  private choose;
101
120
  private onKey;
102
- render(): TemplateResult;
103
- }
104
- /** One card in a row of them. */
105
- export interface CardItem {
106
- id?: string;
107
- heading: string;
108
- text?: string;
109
- imageSrc?: string;
110
- imageAlt?: string;
111
- href?: string;
112
- badge?: string;
113
- }
114
- /**
115
- * A row of cards, each a picture, a heading, a line of text and a link: the
116
- * developments on a developments page, or the house types at one of them.
117
- *
118
- * **The whole card is the link's target, and the heading is its name.** The
119
- * link is on the heading, so a screen reader hears "Larkfield Meadows, link"
120
- * once rather than the whole card read out as one long link, and a pointer
121
- * can still press anywhere on the card.
122
- *
123
- * @category content
124
- * @icon cards
125
- */
126
- export declare class ImpktCardGrid extends ImpktElement {
127
- static properties: {
128
- items: {
129
- type: ArrayConstructor;
130
- };
131
- columns: {
132
- type: StringConstructor;
133
- reflect: boolean;
134
- };
135
- headingLevel: {
136
- type: NumberConstructor;
137
- attribute: string;
138
- };
139
- ratio: {
140
- type: StringConstructor;
141
- reflect: boolean;
142
- };
143
- spaceAbove: {
144
- type: StringConstructor;
145
- reflect: boolean;
146
- attribute: string;
147
- };
148
- spaceBelow: {
149
- type: StringConstructor;
150
- reflect: boolean;
151
- attribute: string;
152
- };
153
- };
154
- items: CardItem[];
155
- columns: 'two' | 'three' | 'four';
156
- /** The level of each card's heading. One below the heading above the cards. */
157
- headingLevel: 2 | 3 | 4;
158
- /** The shape of each card's picture. */
159
- ratio: '16:9' | '4:3' | '3:2' | '1:1';
160
- spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
161
- spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
162
- constructor();
163
- static styles: import("lit").CSSResult[];
121
+ /**
122
+ * Bring the chosen tab into view inside the row of tabs. Only the row scrolls:
123
+ * `scrollIntoView` would scroll the page too, and move someone who is reading
124
+ * further down.
125
+ */
126
+ private reveal;
127
+ updated(changed: Map<string, unknown>): void;
164
128
  render(): TemplateResult;
165
129
  }
166
130
  declare global {
167
131
  interface HTMLElementTagNameMap {
168
- 'impkt-divider': ImpktDivider;
169
- 'impkt-spacer': ImpktSpacer;
170
- 'impkt-visually-hidden': ImpktVisuallyHidden;
171
- 'impkt-tabs': ImpktTabs;
172
- 'impkt-card-grid': ImpktCardGrid;
132
+ 'impakt-divider': ImpaktDivider;
133
+ 'impakt-spacer': ImpaktSpacer;
134
+ 'impakt-visually-hidden': ImpaktVisuallyHidden;
135
+ 'impakt-tabs': ImpaktTabs;
173
136
  }
174
137
  }
@@ -1,17 +1,14 @@
1
1
  import {
2
- ImpktCardGrid,
3
- ImpktDivider,
4
- ImpktSpacer,
5
- ImpktTabs,
6
- ImpktVisuallyHidden
7
- } from "../chunk-MVEFM5QI.js";
8
- import "../chunk-KFD4O7VA.js";
9
- import "../chunk-D6C7XEY4.js";
2
+ ImpaktDivider,
3
+ ImpaktSpacer,
4
+ ImpaktTabs,
5
+ ImpaktVisuallyHidden
6
+ } from "../chunk-EJD6LT7E.js";
7
+ import "../chunk-YR6T73GY.js";
10
8
  export {
11
- ImpktCardGrid,
12
- ImpktDivider,
13
- ImpktSpacer,
14
- ImpktTabs,
15
- ImpktVisuallyHidden
9
+ ImpaktDivider,
10
+ ImpaktSpacer,
11
+ ImpaktTabs,
12
+ ImpaktVisuallyHidden
16
13
  };
17
14
  //# sourceMappingURL=blocks.js.map
@@ -1,5 +1,5 @@
1
1
  import { type TemplateResult } from 'lit';
2
- import { ImpktElement } from '../base/ImpktElement';
2
+ import { ImpaktElement } from '../base/ImpaktElement';
3
3
  /**
4
4
  * A button.
5
5
  *
@@ -28,7 +28,7 @@ import { ImpktElement } from '../base/ImpktElement';
28
28
  * @slot - The button label.
29
29
  * @fires click - When the button is pressed. Not while it is busy or disabled.
30
30
  */
31
- export declare class ImpktButton extends ImpktElement {
31
+ export declare class ImpaktButton extends ImpaktElement {
32
32
  static formAssociated: boolean;
33
33
  static properties: {
34
34
  hideOn: {
@@ -106,6 +106,6 @@ export declare class ImpktButton extends ImpktElement {
106
106
  }
107
107
  declare global {
108
108
  interface HTMLElementTagNameMap {
109
- 'impkt-button': ImpktButton;
109
+ 'impakt-button': ImpaktButton;
110
110
  }
111
111
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
- ImpktButton
3
- } from "../chunk-E3XJK7MY.js";
4
- import "../chunk-KFD4O7VA.js";
5
- import "../chunk-D6C7XEY4.js";
2
+ ImpaktButton
3
+ } from "../chunk-HNZQ7LM4.js";
4
+ import "../chunk-5Y3HYRCU.js";
5
+ import "../chunk-YR6T73GY.js";
6
6
  export {
7
- ImpktButton
7
+ ImpaktButton
8
8
  };
9
9
  //# sourceMappingURL=button.js.map
@@ -22,7 +22,7 @@ export interface CheckboxOption {
22
22
  * @category form
23
23
  * @icon checkbox
24
24
  */
25
- export declare class ImpktCheckboxGroup extends FieldElement {
25
+ export declare class ImpaktCheckboxGroup extends FieldElement {
26
26
  static properties: {
27
27
  options: {
28
28
  type: ArrayConstructor;
@@ -74,6 +74,6 @@ export declare class ImpktCheckboxGroup extends FieldElement {
74
74
  }
75
75
  declare global {
76
76
  interface HTMLElementTagNameMap {
77
- 'impkt-checkbox-group': ImpktCheckboxGroup;
77
+ 'impakt-checkbox-group': ImpaktCheckboxGroup;
78
78
  }
79
79
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
- ImpktCheckboxGroup
3
- } from "../chunk-26O27BQS.js";
4
- import "../chunk-7AJN2TIS.js";
5
- import "../chunk-D6C7XEY4.js";
2
+ ImpaktCheckboxGroup
3
+ } from "../chunk-WP5WJ4V5.js";
4
+ import "../chunk-5ZQVL3V2.js";
5
+ import "../chunk-YR6T73GY.js";
6
6
  export {
7
- ImpktCheckboxGroup
7
+ ImpaktCheckboxGroup
8
8
  };
9
9
  //# sourceMappingURL=checkbox-group.js.map
@@ -11,7 +11,7 @@ import { FieldElement } from '../base/FieldElement';
11
11
  * @category form
12
12
  * @icon checkbox
13
13
  */
14
- export declare class ImpktCheckbox extends FieldElement {
14
+ export declare class ImpaktCheckbox extends FieldElement {
15
15
  static properties: {
16
16
  checked: {
17
17
  type: BooleanConstructor;
@@ -59,6 +59,6 @@ export declare class ImpktCheckbox extends FieldElement {
59
59
  }
60
60
  declare global {
61
61
  interface HTMLElementTagNameMap {
62
- 'impkt-checkbox': ImpktCheckbox;
62
+ 'impakt-checkbox': ImpaktCheckbox;
63
63
  }
64
64
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
- ImpktCheckbox
3
- } from "../chunk-3IQ73WNW.js";
4
- import "../chunk-7AJN2TIS.js";
5
- import "../chunk-D6C7XEY4.js";
2
+ ImpaktCheckbox
3
+ } from "../chunk-I54DOEZB.js";
4
+ import "../chunk-5ZQVL3V2.js";
5
+ import "../chunk-YR6T73GY.js";
6
6
  export {
7
- ImpktCheckbox
7
+ ImpaktCheckbox
8
8
  };
9
9
  //# sourceMappingURL=checkbox.js.map
@@ -0,0 +1,58 @@
1
+ /**
2
+ * A short label: a branch, a status with its dot, or a code such as a commit
3
+ * hash.
4
+ */
5
+ import { type TemplateResult } from 'lit';
6
+ import { ImpaktElement } from '../base/ImpaktElement';
7
+ import { type Tone } from '../base/tone';
8
+ /**
9
+ * A short label: a branch name with its icon, a status with its dot, or a
10
+ * code such as a commit hash. It says something; it does nothing.
11
+ *
12
+ * @category content
13
+ * @icon badge
14
+ */
15
+ export declare class ImpaktChip extends ImpaktElement {
16
+ static properties: {
17
+ label: {
18
+ type: StringConstructor;
19
+ };
20
+ meta: {
21
+ type: StringConstructor;
22
+ };
23
+ icon: {
24
+ type: StringConstructor;
25
+ reflect: boolean;
26
+ };
27
+ tone: {
28
+ type: StringConstructor;
29
+ };
30
+ look: {
31
+ type: StringConstructor;
32
+ reflect: boolean;
33
+ };
34
+ hideOn: {
35
+ type: StringConstructor;
36
+ reflect: boolean;
37
+ attribute: string;
38
+ };
39
+ };
40
+ label: string;
41
+ /** A code after the label, quieter, such as a hash. */
42
+ meta: string;
43
+ /** A coloured dot, a branch, or nothing before the label. */
44
+ icon: 'none' | 'dot' | 'branch';
45
+ /** The dot's colour: a named tone, or 1 to 5 for the brand's chart colours. */
46
+ tone: Tone;
47
+ /** `outlined` on the card colour, `filled` with a faint wash, or `plain` words in the code face. */
48
+ look: 'outlined' | 'filled' | 'plain';
49
+ hideOn: 'never' | 'phone' | 'wide';
50
+ constructor();
51
+ static styles: import("lit").CSSResult[];
52
+ render(): TemplateResult;
53
+ }
54
+ declare global {
55
+ interface HTMLElementTagNameMap {
56
+ 'impakt-chip': ImpaktChip;
57
+ }
58
+ }
@@ -0,0 +1,8 @@
1
+ import {
2
+ ImpaktChip
3
+ } from "../chunk-FMSC7J7J.js";
4
+ import "../chunk-YR6T73GY.js";
5
+ export {
6
+ ImpaktChip
7
+ };
8
+ //# sourceMappingURL=chip.js.map