@atomic-ui/ui 0.10.0 → 0.12.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 (208) hide show
  1. package/custom-elements.json +9839 -6255
  2. package/dist/base/FieldElement.d.ts +10 -3
  3. package/dist/{chunk-YWP2Z3JN.js → chunk-2TNF7O43.js} +7 -5
  4. package/dist/{chunk-YWP2Z3JN.js.map → chunk-2TNF7O43.js.map} +1 -1
  5. package/dist/{chunk-FKUBEVCU.js → chunk-2WHOBIOY.js} +11 -9
  6. package/dist/{chunk-FKUBEVCU.js.map → chunk-2WHOBIOY.js.map} +1 -1
  7. package/dist/{chunk-26BO3W56.js → chunk-3BWCD5U5.js} +5 -3
  8. package/dist/{chunk-26BO3W56.js.map → chunk-3BWCD5U5.js.map} +1 -1
  9. package/dist/chunk-3GPGDERO.js +201 -0
  10. package/dist/chunk-3GPGDERO.js.map +1 -0
  11. package/dist/{chunk-3T7J66Z2.js → chunk-3KAFK24X.js} +13 -11
  12. package/dist/chunk-3KAFK24X.js.map +1 -0
  13. package/dist/{chunk-5OJAJA3U.js → chunk-5HCWL2YD.js} +6 -4
  14. package/dist/{chunk-5OJAJA3U.js.map → chunk-5HCWL2YD.js.map} +1 -1
  15. package/dist/{chunk-AG4EP3OY.js → chunk-5IGBH4GL.js} +8 -6
  16. package/dist/{chunk-AG4EP3OY.js.map → chunk-5IGBH4GL.js.map} +1 -1
  17. package/dist/{chunk-AL4IUSML.js → chunk-5OYQZWP2.js} +5 -3
  18. package/dist/{chunk-AL4IUSML.js.map → chunk-5OYQZWP2.js.map} +1 -1
  19. package/dist/chunk-5PRB7P7N.js +167 -0
  20. package/dist/chunk-5PRB7P7N.js.map +1 -0
  21. package/dist/chunk-6CDQSHVW.js +21 -0
  22. package/dist/chunk-6CDQSHVW.js.map +1 -0
  23. package/dist/{chunk-MLKNZL5J.js → chunk-6J22I7F6.js} +14 -12
  24. package/dist/chunk-6J22I7F6.js.map +1 -0
  25. package/dist/chunk-72WNCCDC.js +136 -0
  26. package/dist/chunk-72WNCCDC.js.map +1 -0
  27. package/dist/chunk-7UI3OBXL.js +104 -0
  28. package/dist/chunk-7UI3OBXL.js.map +1 -0
  29. package/dist/{chunk-D6NET2VB.js → chunk-ALFE35FS.js} +30 -3
  30. package/dist/chunk-ALFE35FS.js.map +1 -0
  31. package/dist/chunk-AYINRYNC.js +184 -0
  32. package/dist/chunk-AYINRYNC.js.map +1 -0
  33. package/dist/{chunk-2D2IMQII.js → chunk-BAITBJUC.js} +51 -29
  34. package/dist/chunk-BAITBJUC.js.map +1 -0
  35. package/dist/{chunk-2EP3IV3G.js → chunk-BGHAANTP.js} +22 -8
  36. package/dist/chunk-BGHAANTP.js.map +1 -0
  37. package/dist/{chunk-OJO62KRX.js → chunk-CFCFKLTN.js} +85 -10
  38. package/dist/chunk-CFCFKLTN.js.map +1 -0
  39. package/dist/{chunk-UFPI4I2Y.js → chunk-CQT3VPYK.js} +8 -29
  40. package/dist/chunk-CQT3VPYK.js.map +1 -0
  41. package/dist/{chunk-AURT72IC.js → chunk-DXLEYNID.js} +13 -7
  42. package/dist/chunk-DXLEYNID.js.map +1 -0
  43. package/dist/{chunk-L4CIBOGK.js → chunk-EKPTMRBG.js} +5 -3
  44. package/dist/{chunk-L4CIBOGK.js.map → chunk-EKPTMRBG.js.map} +1 -1
  45. package/dist/{chunk-7UWJXPR3.js → chunk-F3NHPQU5.js} +17 -36
  46. package/dist/chunk-F3NHPQU5.js.map +1 -0
  47. package/dist/{chunk-Z2EWQMTR.js → chunk-F4IXELLK.js} +5 -3
  48. package/dist/{chunk-Z2EWQMTR.js.map → chunk-F4IXELLK.js.map} +1 -1
  49. package/dist/{chunk-APQEXM4I.js → chunk-FJHPGOGS.js} +5 -3
  50. package/dist/{chunk-APQEXM4I.js.map → chunk-FJHPGOGS.js.map} +1 -1
  51. package/dist/chunk-FLAUZU7Y.js +345 -0
  52. package/dist/chunk-FLAUZU7Y.js.map +1 -0
  53. package/dist/{chunk-3NEWOO2P.js → chunk-FZWUQC42.js} +7 -5
  54. package/dist/{chunk-3NEWOO2P.js.map → chunk-FZWUQC42.js.map} +1 -1
  55. package/dist/{chunk-ONED3PUB.js → chunk-HSXLSJVG.js} +54 -8
  56. package/dist/chunk-HSXLSJVG.js.map +1 -0
  57. package/dist/{chunk-V7EB7Q2M.js → chunk-JTCTQBAX.js} +2 -131
  58. package/dist/chunk-JTCTQBAX.js.map +1 -0
  59. package/dist/{chunk-ZL3JFUIE.js → chunk-K5QFVLCI.js} +7 -5
  60. package/dist/{chunk-ZL3JFUIE.js.map → chunk-K5QFVLCI.js.map} +1 -1
  61. package/dist/{chunk-DN5YZFSG.js → chunk-KE6WCXQP.js} +55 -9
  62. package/dist/chunk-KE6WCXQP.js.map +1 -0
  63. package/dist/chunk-LBHTXY7K.js +75 -0
  64. package/dist/chunk-LBHTXY7K.js.map +1 -0
  65. package/dist/{chunk-OZGKK3N5.js → chunk-LP4RTYTL.js} +88 -9
  66. package/dist/chunk-LP4RTYTL.js.map +1 -0
  67. package/dist/{chunk-MOO63SHZ.js → chunk-LXVPWTSY.js} +80 -23
  68. package/dist/chunk-LXVPWTSY.js.map +1 -0
  69. package/dist/{chunk-JNLKM3JT.js → chunk-N6EEW2GF.js} +6 -4
  70. package/dist/{chunk-JNLKM3JT.js.map → chunk-N6EEW2GF.js.map} +1 -1
  71. package/dist/chunk-NHEU5FT6.js +115 -0
  72. package/dist/chunk-NHEU5FT6.js.map +1 -0
  73. package/dist/chunk-P3BPW446.js +294 -0
  74. package/dist/chunk-P3BPW446.js.map +1 -0
  75. package/dist/chunk-QPOM7W3D.js +104 -0
  76. package/dist/chunk-QPOM7W3D.js.map +1 -0
  77. package/dist/{chunk-FU3CEHBS.js → chunk-R6PBY3YN.js} +6 -4
  78. package/dist/{chunk-FU3CEHBS.js.map → chunk-R6PBY3YN.js.map} +1 -1
  79. package/dist/{chunk-TJOYBDKS.js → chunk-R6YMSJR7.js} +65 -36
  80. package/dist/chunk-R6YMSJR7.js.map +1 -0
  81. package/dist/{chunk-ZEIV5X3U.js → chunk-SOYKSPPX.js} +73 -23
  82. package/dist/chunk-SOYKSPPX.js.map +1 -0
  83. package/dist/{chunk-NKMJMVZP.js → chunk-T52CUOCJ.js} +5 -3
  84. package/dist/{chunk-NKMJMVZP.js.map → chunk-T52CUOCJ.js.map} +1 -1
  85. package/dist/chunk-UFENSIWD.js +135 -0
  86. package/dist/chunk-UFENSIWD.js.map +1 -0
  87. package/dist/{chunk-A4M3A4SZ.js → chunk-UYTIJCCW.js} +10 -42
  88. package/dist/chunk-UYTIJCCW.js.map +1 -0
  89. package/dist/chunk-XX6JZW5N.js +36 -0
  90. package/dist/chunk-XX6JZW5N.js.map +1 -0
  91. package/dist/{chunk-2ZF3J7OO.js → chunk-XXSZL5CY.js} +17 -5
  92. package/dist/chunk-XXSZL5CY.js.map +1 -0
  93. package/dist/{chunk-6PMA6NHE.js → chunk-Y55FNQHS.js} +5 -3
  94. package/dist/{chunk-6PMA6NHE.js.map → chunk-Y55FNQHS.js.map} +1 -1
  95. package/dist/chunk-ZAWGJC4I.js +176 -0
  96. package/dist/chunk-ZAWGJC4I.js.map +1 -0
  97. package/dist/chunk-ZUQ3DOG2.js +110 -0
  98. package/dist/chunk-ZUQ3DOG2.js.map +1 -0
  99. package/dist/components/accordion.d.ts +22 -0
  100. package/dist/components/accordion.js +6 -2
  101. package/dist/components/alert.d.ts +22 -1
  102. package/dist/components/alert.js +3 -2
  103. package/dist/components/app-bar.d.ts +153 -0
  104. package/dist/components/app-bar.js +15 -0
  105. package/dist/components/app-bar.js.map +1 -0
  106. package/dist/components/app-ui.d.ts +29 -2
  107. package/dist/components/app-ui.js +5 -4
  108. package/dist/components/badge.d.ts +17 -1
  109. package/dist/components/badge.js +4 -3
  110. package/dist/components/blocks.js +5 -4
  111. package/dist/components/button.d.ts +18 -2
  112. package/dist/components/button.js +4 -3
  113. package/dist/components/checkbox-group.js +4 -3
  114. package/dist/components/checkbox.js +4 -3
  115. package/dist/components/checked.d.ts +77 -0
  116. package/dist/components/checked.js +10 -0
  117. package/dist/components/checked.js.map +1 -0
  118. package/dist/components/chip-group.d.ts +113 -0
  119. package/dist/components/chip-group.js +11 -0
  120. package/dist/components/chip-group.js.map +1 -0
  121. package/dist/components/chip.d.ts +11 -0
  122. package/dist/components/chip.js +3 -2
  123. package/dist/components/code-diff.d.ts +77 -0
  124. package/dist/components/code-diff.js +10 -0
  125. package/dist/components/code-diff.js.map +1 -0
  126. package/dist/components/date-input.js +4 -3
  127. package/dist/components/dialog.d.ts +15 -0
  128. package/dist/components/dialog.js +3 -2
  129. package/dist/components/fieldset.js +3 -2
  130. package/dist/components/grid.js +3 -2
  131. package/dist/components/help.js +3 -2
  132. package/dist/components/icon.js +3 -2
  133. package/dist/components/journey.js +4 -3
  134. package/dist/components/language-switch.d.ts +59 -0
  135. package/dist/components/language-switch.js +10 -0
  136. package/dist/components/language-switch.js.map +1 -0
  137. package/dist/components/layout.d.ts +8 -2
  138. package/dist/components/layout.js +3 -2
  139. package/dist/components/link.js +4 -3
  140. package/dist/components/list.js +3 -2
  141. package/dist/components/media.js +3 -2
  142. package/dist/components/meter.d.ts +112 -0
  143. package/dist/components/meter.js +13 -0
  144. package/dist/components/meter.js.map +1 -0
  145. package/dist/components/navigation.d.ts +52 -0
  146. package/dist/components/navigation.js +4 -3
  147. package/dist/components/page.d.ts +13 -8
  148. package/dist/components/page.js +3 -2
  149. package/dist/components/price.js +3 -2
  150. package/dist/components/progress.d.ts +16 -2
  151. package/dist/components/progress.js +3 -2
  152. package/dist/components/radio-group.js +4 -3
  153. package/dist/components/redaction.d.ts +51 -0
  154. package/dist/components/redaction.js +10 -0
  155. package/dist/components/redaction.js.map +1 -0
  156. package/dist/components/rows.d.ts +28 -0
  157. package/dist/components/rows.js +7 -3
  158. package/dist/components/select.js +4 -3
  159. package/dist/components/shell.js +4 -3
  160. package/dist/components/source.d.ts +68 -0
  161. package/dist/components/source.js +10 -0
  162. package/dist/components/source.js.map +1 -0
  163. package/dist/components/status-pill-style.d.ts +16 -0
  164. package/dist/components/status-pill-style.js +15 -0
  165. package/dist/components/status-pill-style.js.map +1 -0
  166. package/dist/components/status.d.ts +66 -0
  167. package/dist/components/status.js +10 -0
  168. package/dist/components/status.js.map +1 -0
  169. package/dist/components/summary-list.js +3 -2
  170. package/dist/components/switch.js +4 -3
  171. package/dist/components/table.d.ts +19 -0
  172. package/dist/components/table.js +4 -3
  173. package/dist/components/text-input.js +5 -4
  174. package/dist/components/textarea.d.ts +5 -0
  175. package/dist/components/textarea.js +4 -3
  176. package/dist/components/tool-card.d.ts +107 -0
  177. package/dist/components/tool-card.js +11 -0
  178. package/dist/components/tool-card.js.map +1 -0
  179. package/dist/components/tool-kit-tokens.d.ts +25 -0
  180. package/dist/components/tool-kit-tokens.js +8 -0
  181. package/dist/components/tool-kit-tokens.js.map +1 -0
  182. package/dist/index.d.ts +11 -0
  183. package/dist/index.js +116 -70
  184. package/dist/standalone/atomic-ui.js +2047 -733
  185. package/dist/standalone/atomic-ui.js.map +4 -4
  186. package/package.json +2 -2
  187. package/dist/chunk-2D2IMQII.js.map +0 -1
  188. package/dist/chunk-2EP3IV3G.js.map +0 -1
  189. package/dist/chunk-2ZF3J7OO.js.map +0 -1
  190. package/dist/chunk-3T7J66Z2.js.map +0 -1
  191. package/dist/chunk-7UWJXPR3.js.map +0 -1
  192. package/dist/chunk-A4M3A4SZ.js.map +0 -1
  193. package/dist/chunk-AURT72IC.js.map +0 -1
  194. package/dist/chunk-AYKYHZGQ.js +0 -108
  195. package/dist/chunk-AYKYHZGQ.js.map +0 -1
  196. package/dist/chunk-D6NET2VB.js.map +0 -1
  197. package/dist/chunk-DN5YZFSG.js.map +0 -1
  198. package/dist/chunk-MLKNZL5J.js.map +0 -1
  199. package/dist/chunk-MOO63SHZ.js.map +0 -1
  200. package/dist/chunk-OJO62KRX.js.map +0 -1
  201. package/dist/chunk-ONED3PUB.js.map +0 -1
  202. package/dist/chunk-OZGKK3N5.js.map +0 -1
  203. package/dist/chunk-QU3U2CS2.js +0 -144
  204. package/dist/chunk-QU3U2CS2.js.map +0 -1
  205. package/dist/chunk-TJOYBDKS.js.map +0 -1
  206. package/dist/chunk-UFPI4I2Y.js.map +0 -1
  207. package/dist/chunk-V7EB7Q2M.js.map +0 -1
  208. package/dist/chunk-ZEIV5X3U.js.map +0 -1
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  ImpaktButton
3
- } from "../chunk-TJOYBDKS.js";
4
- import "../chunk-AL4IUSML.js";
5
- import "../chunk-V7EB7Q2M.js";
3
+ } from "../chunk-R6YMSJR7.js";
4
+ import "../chunk-5OYQZWP2.js";
5
+ import "../chunk-72WNCCDC.js";
6
+ import "../chunk-JTCTQBAX.js";
6
7
  export {
7
8
  ImpaktButton
8
9
  };
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  ImpaktCheckboxGroup
3
- } from "../chunk-3NEWOO2P.js";
4
- import "../chunk-ONED3PUB.js";
5
- import "../chunk-V7EB7Q2M.js";
3
+ } from "../chunk-FZWUQC42.js";
4
+ import "../chunk-HSXLSJVG.js";
5
+ import "../chunk-72WNCCDC.js";
6
+ import "../chunk-JTCTQBAX.js";
6
7
  export {
7
8
  ImpaktCheckboxGroup
8
9
  };
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  ImpaktCheckbox
3
- } from "../chunk-AG4EP3OY.js";
4
- import "../chunk-ONED3PUB.js";
5
- import "../chunk-V7EB7Q2M.js";
3
+ } from "../chunk-5IGBH4GL.js";
4
+ import "../chunk-HSXLSJVG.js";
5
+ import "../chunk-72WNCCDC.js";
6
+ import "../chunk-JTCTQBAX.js";
6
7
  export {
7
8
  ImpaktCheckbox
8
9
  };
@@ -0,0 +1,77 @@
1
+ /**
2
+ * The "checked by code" mark: whether code proved a result or a person must check it.
3
+ */
4
+ import { type TemplateResult } from 'lit';
5
+ import { ImpaktElement } from '../base/ImpaktElement';
6
+ /**
7
+ * Says whether code proved a result, or could not and a person must check it.
8
+ *
9
+ * `verified` is an ink label with a green square and a white tick: code ran
10
+ * the check and it passed. `unverified` is a white label with a dashed edge and
11
+ * a crossed box: nothing proved it, so it waits for a person. It is never
12
+ * yellow, because inside a tool yellow means "this needs your attention" and
13
+ * nothing else.
14
+ *
15
+ * The mark is decoration; the words carry the meaning, so it is hidden from
16
+ * assistive technology. Put the tool's own words in the slot, such as "Fix
17
+ * verified · checked by code" or "Matched by code"; without any, it says
18
+ * "Checked by code" or "Not verified · a person must check".
19
+ *
20
+ * `look="on-ink"` is for an ink surface: a white label with ink words.
21
+ * `size="marketing"` is the uppercase 11px badge for the marketing site.
22
+ *
23
+ * Figma: kit `33:378`; `36:553`, `36:716`, `37:492`, `37:656`, `39:513`, `39:659`; marketing `34:731`.
24
+ *
25
+ * @category feedback
26
+ * @icon checkbox
27
+ * @slot - The words. Overrides the default for the state.
28
+ * @csspart mark - The square with the tick or the cross.
29
+ * @csspart label - The label round the mark and the words.
30
+ */
31
+ export declare class ImpaktChecked extends ImpaktElement {
32
+ static properties: {
33
+ state: {
34
+ type: StringConstructor;
35
+ reflect: boolean;
36
+ };
37
+ label: {
38
+ type: StringConstructor;
39
+ };
40
+ look: {
41
+ type: StringConstructor;
42
+ reflect: boolean;
43
+ };
44
+ size: {
45
+ type: StringConstructor;
46
+ reflect: boolean;
47
+ };
48
+ verifiedText: {
49
+ type: StringConstructor;
50
+ attribute: string;
51
+ };
52
+ unverifiedText: {
53
+ type: StringConstructor;
54
+ attribute: string;
55
+ };
56
+ };
57
+ /** `verified`: code proved it. `unverified`: a person must check. */
58
+ state: 'verified' | 'unverified';
59
+ /** The words, when they are not given in the slot. */
60
+ label: string;
61
+ /** `default` on a light surface, `on-ink` on an ink one. */
62
+ look: 'default' | 'on-ink';
63
+ /** `tool` at 14px, or the uppercase 11px `marketing` badge. */
64
+ size: 'tool' | 'marketing';
65
+ /** The words for a verified result when neither the slot nor `label` gives any. */
66
+ verifiedText: string;
67
+ /** The words for an unverified result when neither the slot nor `label` gives any. */
68
+ unverifiedText: string;
69
+ constructor();
70
+ static styles: import("lit").CSSResult[];
71
+ render(): TemplateResult;
72
+ }
73
+ declare global {
74
+ interface HTMLElementTagNameMap {
75
+ 'impakt-checked': ImpaktChecked;
76
+ }
77
+ }
@@ -0,0 +1,10 @@
1
+ import {
2
+ ImpaktChecked
3
+ } from "../chunk-UFENSIWD.js";
4
+ import "../chunk-XX6JZW5N.js";
5
+ import "../chunk-72WNCCDC.js";
6
+ import "../chunk-JTCTQBAX.js";
7
+ export {
8
+ ImpaktChecked
9
+ };
10
+ //# sourceMappingURL=checked.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,113 @@
1
+ /**
2
+ * A choice made with square chips: one, or several.
3
+ */
4
+ import { type TemplateResult } from 'lit';
5
+ import { FieldElement } from '../base/FieldElement';
6
+ export interface ChipOption {
7
+ value: string;
8
+ label: string;
9
+ }
10
+ /**
11
+ * A short choice drawn as a row of square chips, such as "What do you need"
12
+ * or "Budget" on a brief form, or the answers in an estimator.
13
+ *
14
+ * **Under each chip is a native control.** A single choice is a set of radios
15
+ * and several is a set of checkboxes, so a single choice has the arrow keys,
16
+ * Home and End and the right announcement without any script, and each
17
+ * checkbox is its own tab stop, as it should be. The control lies over its
18
+ * chip, invisible, so the whole chip is what is pressed and a screen reader
19
+ * exploring by touch finds it where it is drawn.
20
+ *
21
+ * The question is a `legend` in a `fieldset`, because it is asked of the set.
22
+ * `look="site"` draws it in the site's form style: mono, uppercase, 11px.
23
+ *
24
+ * It joins its form like the other fields. A single choice submits its value;
25
+ * several submit their values joined with commas, in the options' order.
26
+ * `required` with nothing chosen makes the form invalid.
27
+ *
28
+ * Figma: site brief form `20:1157`; estimator `10:547`, `10:557`; mobile `15:945`.
29
+ *
30
+ * @category form
31
+ * @icon checkbox
32
+ * @csspart chip - Each chip.
33
+ * @csspart fieldset - The fieldset.
34
+ */
35
+ export declare class ImpaktChipGroup extends FieldElement {
36
+ static properties: {
37
+ options: {
38
+ type: ArrayConstructor;
39
+ };
40
+ values: {
41
+ type: ArrayConstructor;
42
+ };
43
+ multiple: {
44
+ type: BooleanConstructor;
45
+ reflect: boolean;
46
+ };
47
+ look: {
48
+ type: StringConstructor;
49
+ reflect: boolean;
50
+ };
51
+ missingText: {
52
+ type: StringConstructor;
53
+ attribute: string;
54
+ };
55
+ label: {
56
+ type: StringConstructor;
57
+ };
58
+ name: {
59
+ type: StringConstructor;
60
+ };
61
+ value: {
62
+ type: StringConstructor;
63
+ };
64
+ description: {
65
+ type: StringConstructor;
66
+ };
67
+ error: {
68
+ type: StringConstructor;
69
+ };
70
+ required: {
71
+ type: BooleanConstructor;
72
+ reflect: boolean;
73
+ };
74
+ disabled: {
75
+ type: BooleanConstructor;
76
+ reflect: boolean;
77
+ };
78
+ readonly: {
79
+ type: BooleanConstructor;
80
+ reflect: boolean;
81
+ };
82
+ requiredText: {
83
+ type: StringConstructor;
84
+ attribute: string;
85
+ };
86
+ };
87
+ options: ChipOption[];
88
+ /** What is chosen when `multiple` is set. */
89
+ values: string[];
90
+ /** Choose several, as checkboxes, rather than one, as radios. */
91
+ multiple: boolean;
92
+ /** `default` takes the product's field label; `site` is the mono uppercase label of the site's forms. */
93
+ look: 'default' | 'site';
94
+ /** What the browser says when a required choice is missing. */
95
+ missingText: string;
96
+ constructor();
97
+ static styles: import("lit").CSSResult[];
98
+ protected renderLabel(): TemplateResult;
99
+ private chosen;
100
+ private choose;
101
+ private syncValidity;
102
+ protected renderControl(): TemplateResult;
103
+ render(): TemplateResult;
104
+ firstUpdated(): void;
105
+ updated(changed: Map<string, unknown>): void;
106
+ /** A form reset clears the choice. */
107
+ formResetCallback(): void;
108
+ }
109
+ declare global {
110
+ interface HTMLElementTagNameMap {
111
+ 'impakt-chip-group': ImpaktChipGroup;
112
+ }
113
+ }
@@ -0,0 +1,11 @@
1
+ import {
2
+ ImpaktChipGroup
3
+ } from "../chunk-3GPGDERO.js";
4
+ import "../chunk-XX6JZW5N.js";
5
+ import "../chunk-HSXLSJVG.js";
6
+ import "../chunk-72WNCCDC.js";
7
+ import "../chunk-JTCTQBAX.js";
8
+ export {
9
+ ImpaktChipGroup
10
+ };
11
+ //# sourceMappingURL=chip-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -31,6 +31,10 @@ export declare class ImpaktChip extends ImpaktElement {
31
31
  type: StringConstructor;
32
32
  reflect: boolean;
33
33
  };
34
+ size: {
35
+ type: StringConstructor;
36
+ reflect: boolean;
37
+ };
34
38
  hideOn: {
35
39
  type: StringConstructor;
36
40
  reflect: boolean;
@@ -46,6 +50,13 @@ export declare class ImpaktChip extends ImpaktElement {
46
50
  tone: Tone;
47
51
  /** `outlined` on the card colour, `filled` with a faint wash, or `plain` words in the code face. */
48
52
  look: 'outlined' | 'filled' | 'plain';
53
+ /**
54
+ * `md` is the chip in a line of text. `marketing` sets the words in
55
+ * capitals at 11px with 6% tracking, as the site's labels are. `lg` is a
56
+ * studio tool tag: a square 49px box with an ink border, the label in
57
+ * Archivo at 20px and the meta in capitals in the code face (frame 21:1152).
58
+ */
59
+ size: 'md' | 'marketing' | 'body' | 'lg';
49
60
  hideOn: 'never' | 'phone' | 'wide';
50
61
  constructor();
51
62
  static styles: import("lit").CSSResult[];
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  ImpaktChip
3
- } from "../chunk-2EP3IV3G.js";
4
- import "../chunk-V7EB7Q2M.js";
3
+ } from "../chunk-BGHAANTP.js";
4
+ import "../chunk-72WNCCDC.js";
5
+ import "../chunk-JTCTQBAX.js";
5
6
  export {
6
7
  ImpaktChip
7
8
  };
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Lines of code before and after a change.
3
+ */
4
+ import { type TemplateResult } from 'lit';
5
+ import { ImpaktElement } from '../base/ImpaktElement';
6
+ export interface DiffLine {
7
+ /** `removed`, `added`, or `context` for a line that stays. */
8
+ kind: 'removed' | 'added' | 'context';
9
+ text: string;
10
+ }
11
+ /**
12
+ * The lines a fix takes out and the lines it puts in, such as a proposed
13
+ * accessibility fix.
14
+ *
15
+ * The block is ink in both themes, so the added line keeps its contrast in
16
+ * dark. A removed line is muted with "−" and an added line is white with "+".
17
+ * The signs are drawn for the eye and hidden from assistive technology; a
18
+ * screen reader hears "Removed" and "Added" before each line instead, because a
19
+ * minus sign read aloud says nothing about a change.
20
+ *
21
+ * Give the lines either as `removed` and `added`, one line per newline, or as
22
+ * `lines`, which can also hold lines that stay. A long line scrolls sideways
23
+ * rather than wrapping, because a wrapped line of code reads as two. The block
24
+ * is then a named region that takes focus, so it can be scrolled from the keyboard.
25
+ *
26
+ * Figma: Accessibility proposed fix `36:553`; dark `48:624`.
27
+ *
28
+ * @category content
29
+ * @icon document
30
+ * @csspart block - The scrolling region.
31
+ * @csspart code - The `pre` element.
32
+ */
33
+ export declare class ImpaktCodeDiff extends ImpaktElement {
34
+ static properties: {
35
+ removed: {
36
+ type: StringConstructor;
37
+ };
38
+ added: {
39
+ type: StringConstructor;
40
+ };
41
+ lines: {
42
+ type: ArrayConstructor;
43
+ };
44
+ label: {
45
+ type: StringConstructor;
46
+ };
47
+ removedText: {
48
+ type: StringConstructor;
49
+ attribute: string;
50
+ };
51
+ addedText: {
52
+ type: StringConstructor;
53
+ attribute: string;
54
+ };
55
+ };
56
+ /** The lines taken out, one per newline. */
57
+ removed: string;
58
+ /** The lines put in, one per newline. */
59
+ added: string;
60
+ /** Every line in order, in place of `removed` and `added`. */
61
+ lines: DiffLine[];
62
+ /** The block's name, read when it takes focus. */
63
+ label: string;
64
+ /** Read before a removed line. */
65
+ removedText: string;
66
+ /** Read before an added line. */
67
+ addedText: string;
68
+ constructor();
69
+ static styles: import("lit").CSSResult[];
70
+ private get allLines();
71
+ render(): TemplateResult;
72
+ }
73
+ declare global {
74
+ interface HTMLElementTagNameMap {
75
+ 'impakt-code-diff': ImpaktCodeDiff;
76
+ }
77
+ }
@@ -0,0 +1,10 @@
1
+ import {
2
+ ImpaktCodeDiff
3
+ } from "../chunk-7UI3OBXL.js";
4
+ import "../chunk-XX6JZW5N.js";
5
+ import "../chunk-72WNCCDC.js";
6
+ import "../chunk-JTCTQBAX.js";
7
+ export {
8
+ ImpaktCodeDiff
9
+ };
10
+ //# sourceMappingURL=code-diff.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  ImpaktDateInput
3
- } from "../chunk-5OJAJA3U.js";
4
- import "../chunk-ONED3PUB.js";
5
- import "../chunk-V7EB7Q2M.js";
3
+ } from "../chunk-5HCWL2YD.js";
4
+ import "../chunk-HSXLSJVG.js";
5
+ import "../chunk-72WNCCDC.js";
6
+ import "../chunk-JTCTQBAX.js";
6
7
  export {
7
8
  ImpaktDateInput
8
9
  };
@@ -31,6 +31,8 @@ import { ImpaktElement } from '../base/ImpaktElement';
31
31
  * @icon dialog
32
32
  * @fires {CustomEvent<null>} impakt-close - When the dialog is closed.
33
33
  * @slot - The body of the dialog.
34
+ * @slot footer - The dialog's actions, set at the end of a row along its foot, such as "Cancel" and "Send".
35
+ * @slot actions - The same as `footer`, for a page that names it so.
34
36
  */
35
37
  export declare class ImpaktDialog extends ImpaktElement {
36
38
  static properties: {
@@ -53,6 +55,13 @@ export declare class ImpaktDialog extends ImpaktElement {
53
55
  reflect: boolean;
54
56
  attribute: string;
55
57
  };
58
+ size: {
59
+ type: StringConstructor;
60
+ reflect: boolean;
61
+ };
62
+ eyebrow: {
63
+ type: StringConstructor;
64
+ };
56
65
  };
57
66
  open: boolean;
58
67
  heading: string;
@@ -61,11 +70,17 @@ export declare class ImpaktDialog extends ImpaktElement {
61
70
  dismissible: boolean;
62
71
  /** Fill the screen on a phone, for a dialog that holds a form or a long text. */
63
72
  phoneFullScreen: boolean;
73
+ /** `md` is a short question, 32rem wide. `lg` is 720px, for a dialog that holds a form or a review (G2 frame 45:653). */
74
+ size: 'md' | 'lg';
75
+ /** A short line above the heading in the code face, such as "Step 2 of 3". It is read before the heading but is not part of the dialog's name. */
76
+ eyebrow: string;
64
77
  constructor();
65
78
  static styles: import("lit").CSSResult[];
66
79
  private get dialog();
67
80
  updated(changed: Map<string, unknown>): void;
68
81
  disconnectedCallback(): void;
82
+ private hasFooter;
83
+ private onFooter;
69
84
  private close;
70
85
  render(): TemplateResult;
71
86
  }
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  ImpaktDialog
3
- } from "../chunk-MOO63SHZ.js";
3
+ } from "../chunk-LXVPWTSY.js";
4
4
  import "../chunk-2YRTFWW2.js";
5
- import "../chunk-V7EB7Q2M.js";
5
+ import "../chunk-72WNCCDC.js";
6
+ import "../chunk-JTCTQBAX.js";
6
7
  export {
7
8
  ImpaktDialog
8
9
  };
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  ImpaktFieldset
3
- } from "../chunk-Z2EWQMTR.js";
4
- import "../chunk-V7EB7Q2M.js";
3
+ } from "../chunk-F4IXELLK.js";
4
+ import "../chunk-72WNCCDC.js";
5
+ import "../chunk-JTCTQBAX.js";
5
6
  export {
6
7
  ImpaktFieldset
7
8
  };
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  ImpaktGrid
3
- } from "../chunk-APQEXM4I.js";
4
- import "../chunk-V7EB7Q2M.js";
3
+ } from "../chunk-FJHPGOGS.js";
4
+ import "../chunk-72WNCCDC.js";
5
+ import "../chunk-JTCTQBAX.js";
5
6
  export {
6
7
  ImpaktGrid
7
8
  };
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  ImpaktHelp
3
- } from "../chunk-26BO3W56.js";
4
- import "../chunk-V7EB7Q2M.js";
3
+ } from "../chunk-3BWCD5U5.js";
4
+ import "../chunk-72WNCCDC.js";
5
+ import "../chunk-JTCTQBAX.js";
5
6
  export {
6
7
  ImpaktHelp
7
8
  };
@@ -3,8 +3,9 @@ import {
3
3
  ICON_NAMES,
4
4
  ImpaktIcon,
5
5
  iconSvg
6
- } from "../chunk-AL4IUSML.js";
7
- import "../chunk-V7EB7Q2M.js";
6
+ } from "../chunk-5OYQZWP2.js";
7
+ import "../chunk-72WNCCDC.js";
8
+ import "../chunk-JTCTQBAX.js";
8
9
  export {
9
10
  ICONS,
10
11
  ICON_NAMES,
@@ -6,10 +6,11 @@ import {
6
6
  ImpaktRangeInput,
7
7
  ImpaktTaskList,
8
8
  groupDigits
9
- } from "../chunk-FKUBEVCU.js";
9
+ } from "../chunk-2WHOBIOY.js";
10
10
  import "../chunk-UNGAG44M.js";
11
- import "../chunk-ONED3PUB.js";
12
- import "../chunk-V7EB7Q2M.js";
11
+ import "../chunk-HSXLSJVG.js";
12
+ import "../chunk-72WNCCDC.js";
13
+ import "../chunk-JTCTQBAX.js";
13
14
  export {
14
15
  ImpaktAddressLookup,
15
16
  ImpaktErrorSummary,
@@ -0,0 +1,59 @@
1
+ /**
2
+ * The language switch of a tool's app bar.
3
+ */
4
+ import { type TemplateResult } from 'lit';
5
+ import { ImpaktElement } from '../base/ImpaktElement';
6
+ export interface LanguageItem {
7
+ /** The language tag, such as `en` or `el`. */
8
+ lang: string;
9
+ /** What is drawn: "EN". */
10
+ label: string;
11
+ /** The language's own name, in that language, read after the label: "Ελληνικά". */
12
+ name?: string;
13
+ /** The page in that language. */
14
+ href: string;
15
+ }
16
+ /**
17
+ * Small square links to the same page in other languages, with the current
18
+ * one filled in ink.
19
+ *
20
+ * Each link says which language it leads to with `hreflang` and is written in
21
+ * that language with `lang`, so a screen reader reads "Ελληνικά" in a Greek
22
+ * voice. Each is named by its code and then the language's own name, so the
23
+ * name starts with what is drawn. The current language has `aria-current="true"`.
24
+ *
25
+ * Figma: the Short-let app bar `39:479`.
26
+ *
27
+ * @category navigation
28
+ * @icon link
29
+ * @csspart nav - The navigation landmark.
30
+ * @csspart link - Each link.
31
+ */
32
+ export declare class ImpaktLanguageSwitch extends ImpaktElement {
33
+ static properties: {
34
+ items: {
35
+ type: ArrayConstructor;
36
+ };
37
+ current: {
38
+ type: StringConstructor;
39
+ reflect: boolean;
40
+ };
41
+ label: {
42
+ type: StringConstructor;
43
+ };
44
+ };
45
+ /** The languages, in order. EN, EL and RU by default. */
46
+ items: LanguageItem[];
47
+ /** The language tag of the page that is showing. */
48
+ current: string;
49
+ /** The navigation landmark's name. */
50
+ label: string;
51
+ constructor();
52
+ static styles: import("lit").CSSResult[];
53
+ render(): TemplateResult;
54
+ }
55
+ declare global {
56
+ interface HTMLElementTagNameMap {
57
+ 'impakt-language-switch': ImpaktLanguageSwitch;
58
+ }
59
+ }
@@ -0,0 +1,10 @@
1
+ import {
2
+ ImpaktLanguageSwitch
3
+ } from "../chunk-NHEU5FT6.js";
4
+ import "../chunk-XX6JZW5N.js";
5
+ import "../chunk-72WNCCDC.js";
6
+ import "../chunk-JTCTQBAX.js";
7
+ export {
8
+ ImpaktLanguageSwitch
9
+ };
10
+ //# sourceMappingURL=language-switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -103,8 +103,14 @@ export declare class ImpaktCard extends ImpaktElement {
103
103
  attribute: string;
104
104
  };
105
105
  };
106
- /** The card's surface. Text on a brand card takes the brand's text colour. */
107
- tone: 'default' | 'subtle' | 'brand' | 'outline' | 'plain';
106
+ /**
107
+ * The card's surface. Text on a brand card takes the brand's text colour.
108
+ * The default is G2's: white, a 1px ink border and no shadow. `ink` is the
109
+ * text colour as a fill with the words turned over, and `dashed` a
110
+ * transparent card with a dashed ink border, for a slot still to be filled
111
+ * (frames 36:497, 39:513, 39:671).
112
+ */
113
+ tone: 'default' | 'subtle' | 'brand' | 'outline' | 'plain' | 'ink' | 'dashed';
108
114
  /** Space inside the card. */
109
115
  padding: 'none' | 'sm' | 'md' | 'lg';
110
116
  /** A picture across the top of the card. */
@@ -3,8 +3,9 @@ import {
3
3
  ImpaktHeading,
4
4
  ImpaktStack,
5
5
  ImpaktText
6
- } from "../chunk-AURT72IC.js";
7
- import "../chunk-V7EB7Q2M.js";
6
+ } from "../chunk-DXLEYNID.js";
7
+ import "../chunk-72WNCCDC.js";
8
+ import "../chunk-JTCTQBAX.js";
8
9
  export {
9
10
  ImpaktCard,
10
11
  ImpaktHeading,
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  ImpaktLink
3
- } from "../chunk-ZL3JFUIE.js";
4
- import "../chunk-AL4IUSML.js";
5
- import "../chunk-V7EB7Q2M.js";
3
+ } from "../chunk-K5QFVLCI.js";
4
+ import "../chunk-5OYQZWP2.js";
5
+ import "../chunk-72WNCCDC.js";
6
+ import "../chunk-JTCTQBAX.js";
6
7
  export {
7
8
  ImpaktLink
8
9
  };
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  ImpaktList
3
- } from "../chunk-6PMA6NHE.js";
4
- import "../chunk-V7EB7Q2M.js";
3
+ } from "../chunk-Y55FNQHS.js";
4
+ import "../chunk-72WNCCDC.js";
5
+ import "../chunk-JTCTQBAX.js";
5
6
  export {
6
7
  ImpaktList
7
8
  };
@@ -2,8 +2,9 @@ import {
2
2
  ImpaktDocumentLink,
3
3
  ImpaktImage,
4
4
  ImpaktLogo
5
- } from "../chunk-NKMJMVZP.js";
6
- import "../chunk-V7EB7Q2M.js";
5
+ } from "../chunk-T52CUOCJ.js";
6
+ import "../chunk-72WNCCDC.js";
7
+ import "../chunk-JTCTQBAX.js";
7
8
  export {
8
9
  ImpaktDocumentLink,
9
10
  ImpaktImage,