@atomic-ui/ui 0.10.1 → 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
@@ -0,0 +1,66 @@
1
+ /**
2
+ * The status pill of the AI tools: a word, with a dot that supports it.
3
+ */
4
+ import { type TemplateResult } from 'lit';
5
+ import { ImpaktElement } from '../base/ImpaktElement';
6
+ export type StatusTone = 'ok' | 'bad' | 'warn' | 'info' | 'neutral' | 'solid';
7
+ /**
8
+ * A short status, such as "Done", "Failed", "Check" or "Waiting".
9
+ *
10
+ * **The word carries the status; the dot only supports it.** Green is done, red
11
+ * has failed, yellow needs your attention, ink is information, and a pill with
12
+ * no dot is waiting or neutral. The dot is hidden from assistive technology, so
13
+ * a screen reader hears the word and nothing else, and a person who cannot tell
14
+ * the colours apart reads the same word everyone else does.
15
+ *
16
+ * It is not a live region. A status that changes while someone is on the page,
17
+ * such as a check that finishes, sets `live`, which gives it `role="status"` so
18
+ * the new word is announced.
19
+ *
20
+ * `size="marketing"` is the badge on the marketing site: uppercase, 11px and
21
+ * tracked out. Inside a tool, pills stay in sentence case.
22
+ *
23
+ * Figma: kit `33:419`; on every tool screen, such as `36:430`, `37:590` and `39:460`.
24
+ *
25
+ * @category feedback
26
+ * @icon badge
27
+ * @slot - The word. Overrides `label`.
28
+ * @csspart pill - The pill.
29
+ * @csspart dot - The dot.
30
+ */
31
+ export declare class ImpaktStatus extends ImpaktElement {
32
+ static properties: {
33
+ tone: {
34
+ type: StringConstructor;
35
+ reflect: boolean;
36
+ };
37
+ label: {
38
+ type: StringConstructor;
39
+ };
40
+ size: {
41
+ type: StringConstructor;
42
+ reflect: boolean;
43
+ };
44
+ live: {
45
+ type: BooleanConstructor;
46
+ reflect: boolean;
47
+ };
48
+ };
49
+ /** `ok` done, `bad` failed, `warn` needs attention, `info`, `neutral` (no dot) or `solid` (an ink pill, no dot). */
50
+ tone: StatusTone;
51
+ /** The word, when it is not given in the slot. */
52
+ label: string;
53
+ /** `tool` is sentence case at 14px; `marketing` is the uppercase 11px badge. */
54
+ size: 'tool' | 'marketing';
55
+ /** Announce a change of word, for a status that updates while someone is on the page. */
56
+ live: boolean;
57
+ constructor();
58
+ static styles: import("lit").CSSResult[];
59
+ private get hasDot();
60
+ render(): TemplateResult;
61
+ }
62
+ declare global {
63
+ interface HTMLElementTagNameMap {
64
+ 'impakt-status': ImpaktStatus;
65
+ }
66
+ }
@@ -0,0 +1,10 @@
1
+ import {
2
+ ImpaktStatus
3
+ } from "../chunk-ZUQ3DOG2.js";
4
+ import "../chunk-XX6JZW5N.js";
5
+ import "../chunk-72WNCCDC.js";
6
+ import "../chunk-JTCTQBAX.js";
7
+ export {
8
+ ImpaktStatus
9
+ };
10
+ //# sourceMappingURL=status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  ImpaktSummaryList
3
- } from "../chunk-FU3CEHBS.js";
4
- import "../chunk-V7EB7Q2M.js";
3
+ } from "../chunk-R6PBY3YN.js";
4
+ import "../chunk-72WNCCDC.js";
5
+ import "../chunk-JTCTQBAX.js";
5
6
  export {
6
7
  ImpaktSummaryList
7
8
  };
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  ImpaktSegmentedControl,
3
3
  ImpaktSwitch
4
- } from "../chunk-3T7J66Z2.js";
5
- import "../chunk-ONED3PUB.js";
6
- import "../chunk-V7EB7Q2M.js";
4
+ } from "../chunk-3KAFK24X.js";
5
+ import "../chunk-HSXLSJVG.js";
6
+ import "../chunk-72WNCCDC.js";
7
+ import "../chunk-JTCTQBAX.js";
7
8
  export {
8
9
  ImpaktSegmentedControl,
9
10
  ImpaktSwitch
@@ -6,6 +6,8 @@ export interface TableColumn {
6
6
  numeric?: boolean;
7
7
  /** Let the rows be sorted by this column. Its heading becomes a button. */
8
8
  sortable?: boolean;
9
+ /** Set the column's cells in the mono face, for codes such as "H1". */
10
+ mono?: boolean;
9
11
  }
10
12
  /** Which way a sorted column runs, in the words `aria-sort` uses. */
11
13
  export type SortDirection = 'ascending' | 'descending';
@@ -54,6 +56,11 @@ export declare class ImpaktTable extends ImpaktElement {
54
56
  caption: {
55
57
  type: StringConstructor;
56
58
  };
59
+ captionHidden: {
60
+ type: BooleanConstructor;
61
+ reflect: boolean;
62
+ attribute: string;
63
+ };
57
64
  columns: {
58
65
  type: ArrayConstructor;
59
66
  };
@@ -101,8 +108,14 @@ export declare class ImpaktTable extends ImpaktElement {
101
108
  type: StringConstructor;
102
109
  attribute: string;
103
110
  };
111
+ look: {
112
+ type: StringConstructor;
113
+ reflect: boolean;
114
+ };
104
115
  };
105
116
  caption: string;
117
+ /** Hides the caption from sight; it still names the table for a screen reader. */
118
+ captionHidden: boolean;
106
119
  columns: TableColumn[];
107
120
  rows: Array<Record<string, string>>;
108
121
  /** The key of the column the rows are sorted by. Empty leaves them in the order given. */
@@ -124,6 +137,12 @@ export declare class ImpaktTable extends ImpaktElement {
124
137
  selectAllText: string;
125
138
  /** The name of each row's checkbox, with `{row}` for the row's first cell. */
126
139
  selectRowText: string;
140
+ /**
141
+ * `plain` is the table on the page. `boxed` is the G2 table in a tool: a
142
+ * white panel with a 1px ink border, headings in capitals in the code face at
143
+ * 11px, and an ink rule under them (frame 21:1527).
144
+ */
145
+ look: 'plain' | 'boxed';
127
146
  constructor();
128
147
  static styles: import("lit").CSSResult[];
129
148
  private keyOf;
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  ImpaktTable
3
- } from "../chunk-DN5YZFSG.js";
3
+ } from "../chunk-KE6WCXQP.js";
4
4
  import "../chunk-UNGAG44M.js";
5
- import "../chunk-AL4IUSML.js";
6
- import "../chunk-V7EB7Q2M.js";
5
+ import "../chunk-5OYQZWP2.js";
6
+ import "../chunk-72WNCCDC.js";
7
+ import "../chunk-JTCTQBAX.js";
7
8
  export {
8
9
  ImpaktTable
9
10
  };
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  ImpaktTextInput
3
- } from "../chunk-A4M3A4SZ.js";
4
- import "../chunk-AL4IUSML.js";
5
- import "../chunk-ONED3PUB.js";
6
- import "../chunk-V7EB7Q2M.js";
3
+ } from "../chunk-UYTIJCCW.js";
4
+ import "../chunk-HSXLSJVG.js";
5
+ import "../chunk-5OYQZWP2.js";
6
+ import "../chunk-72WNCCDC.js";
7
+ import "../chunk-JTCTQBAX.js";
7
8
  export {
8
9
  ImpaktTextInput
9
10
  };
@@ -21,6 +21,9 @@ export declare class ImpaktTextarea extends FieldElement {
21
21
  type: StringConstructor;
22
22
  attribute: string;
23
23
  };
24
+ placeholder: {
25
+ type: StringConstructor;
26
+ };
24
27
  label: {
25
28
  type: StringConstructor;
26
29
  };
@@ -57,6 +60,8 @@ export declare class ImpaktTextarea extends FieldElement {
57
60
  maxlength: number | undefined;
58
61
  /** `estimate` starts an empty box with the estimate a cost estimator sent on, so the visitor can edit it. */
59
62
  fillFrom: 'none' | 'estimate';
63
+ /** An example of what to write. The label is still the field's name; a placeholder never replaces it. */
64
+ placeholder: string;
60
65
  /** How wide the box is, to suit the answer. Full width on a phone whatever this says. */
61
66
  width: 'full' | 'lg' | 'md' | 'sm' | 'xs';
62
67
  constructor();
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  ImpaktTextarea
3
- } from "../chunk-UFPI4I2Y.js";
4
- import "../chunk-ONED3PUB.js";
5
- import "../chunk-V7EB7Q2M.js";
3
+ } from "../chunk-CQT3VPYK.js";
4
+ import "../chunk-HSXLSJVG.js";
5
+ import "../chunk-72WNCCDC.js";
6
+ import "../chunk-JTCTQBAX.js";
6
7
  export {
7
8
  ImpaktTextarea
8
9
  };
@@ -0,0 +1,107 @@
1
+ /**
2
+ * A tool on the account home: its name, what it does, where it stands, and the way in.
3
+ */
4
+ import { type TemplateResult } from 'lit';
5
+ import { ImpaktElement } from '../base/ImpaktElement';
6
+ import type { StatusTone } from './status';
7
+ import './status';
8
+ /**
9
+ * One tool on the account home: a large name, one line on what it does, a
10
+ * status pill, and a full-width button into it.
11
+ *
12
+ * A tool the organisation has bought (`owned`) has the primary ink button and
13
+ * a status such as "Monitoring · 1 site". One it has not bought has the
14
+ * outline button, a neutral "Nothing bought yet" pill and a price line such as
15
+ * "From £59 a dispute". A tool that is not open yet (`state="coming-soon"`) is
16
+ * drawn on the soft surface with a muted name, a "Coming soon" pill and "Not
17
+ * open yet.", and has no link at all, so there is nothing to press that leads
18
+ * nowhere.
19
+ *
20
+ * The name is a heading; set `heading-level` to fit the page round it.
21
+ *
22
+ * Figma: Account home `53:708`.
23
+ *
24
+ * @category content
25
+ * @icon card
26
+ * @csspart card - The card.
27
+ * @csspart action - The button into the tool.
28
+ */
29
+ export declare class ImpaktToolCard extends ImpaktElement {
30
+ static properties: {
31
+ name: {
32
+ type: StringConstructor;
33
+ };
34
+ description: {
35
+ type: StringConstructor;
36
+ };
37
+ status: {
38
+ type: StringConstructor;
39
+ };
40
+ statusTone: {
41
+ type: StringConstructor;
42
+ attribute: string;
43
+ };
44
+ note: {
45
+ type: StringConstructor;
46
+ };
47
+ href: {
48
+ type: StringConstructor;
49
+ };
50
+ actionLabel: {
51
+ type: StringConstructor;
52
+ attribute: string;
53
+ };
54
+ owned: {
55
+ type: BooleanConstructor;
56
+ reflect: boolean;
57
+ };
58
+ state: {
59
+ type: StringConstructor;
60
+ reflect: boolean;
61
+ };
62
+ headingLevel: {
63
+ type: NumberConstructor;
64
+ attribute: string;
65
+ };
66
+ comingSoonText: {
67
+ type: StringConstructor;
68
+ attribute: string;
69
+ };
70
+ notOpenText: {
71
+ type: StringConstructor;
72
+ attribute: string;
73
+ };
74
+ };
75
+ /** The tool's name, such as "Accessibility". */
76
+ name: string;
77
+ /** One line on what it does. */
78
+ description: string;
79
+ /** The words of the status pill: "Monitoring · 1 site", "Nothing bought yet". */
80
+ status: string;
81
+ /** The pill's tone. `ok` for a tool in use, `neutral` for one not bought. */
82
+ statusTone: StatusTone;
83
+ /** A mono line after the pill, such as a price: "From £59 a dispute". */
84
+ note: string;
85
+ /** Where the tool opens. */
86
+ href: string;
87
+ /** The button's words. "Open" and the tool's name when empty. */
88
+ actionLabel: string;
89
+ /** The organisation has this tool: the button is the primary ink one. */
90
+ owned: boolean;
91
+ /** `open`, or `coming-soon` for a tool with no way in yet. */
92
+ state: 'open' | 'coming-soon';
93
+ headingLevel: 2 | 3 | 4 | 5 | 6;
94
+ /** The pill on a tool that is not open yet. */
95
+ comingSoonText: string;
96
+ /** The line under that pill. */
97
+ notOpenText: string;
98
+ constructor();
99
+ static styles: import("lit").CSSResult[];
100
+ private renderStatus;
101
+ render(): TemplateResult;
102
+ }
103
+ declare global {
104
+ interface HTMLElementTagNameMap {
105
+ 'impakt-tool-card': ImpaktToolCard;
106
+ }
107
+ }
@@ -0,0 +1,11 @@
1
+ import {
2
+ ImpaktToolCard
3
+ } from "../chunk-5PRB7P7N.js";
4
+ import "../chunk-ZUQ3DOG2.js";
5
+ import "../chunk-XX6JZW5N.js";
6
+ import "../chunk-72WNCCDC.js";
7
+ import "../chunk-JTCTQBAX.js";
8
+ export {
9
+ ImpaktToolCard
10
+ };
11
+ //# sourceMappingURL=tool-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,25 @@
1
+ export declare const kit: {
2
+ /** The soft rule: a meter's track, the segmented nav's border. */
3
+ readonly lineSoft: import("lit").CSSResult;
4
+ /** Done. The same green in both themes: it is a mark, never text. */
5
+ readonly ok: import("lit").CSSResult;
6
+ /** Failed. */
7
+ readonly bad: import("lit").CSSResult;
8
+ /** Needs your attention. Only ever a fill with an ink edge, never text. */
9
+ readonly accent: import("lit").CSSResult;
10
+ /** The tick on a "checked by code" mark. */
11
+ readonly onOk: import("lit").CSSResult;
12
+ /** A block of code is ink in both themes, so its colours are fixed. */
13
+ readonly codeSurface: import("lit").CSSResult;
14
+ readonly codeText: import("lit").CSSResult;
15
+ readonly codeMuted: import("lit").CSSResult;
16
+ /** An ink fill in light is a paper fill in dark: the text colour, turned over. */
17
+ readonly inverse: import("lit").CSSResult;
18
+ readonly onInverse: import("lit").CSSResult;
19
+ /** 14px, the smallest step on the ramp: pills, chips and labels. */
20
+ readonly small: import("lit").CSSResult;
21
+ /** 11px, for marketing badges only, which are uppercase and tracked out. */
22
+ readonly tiny: import("lit").CSSResult;
23
+ readonly medium: import("lit").CSSResult;
24
+ readonly regular: import("lit").CSSResult;
25
+ };
@@ -0,0 +1,8 @@
1
+ import {
2
+ kit
3
+ } from "../chunk-XX6JZW5N.js";
4
+ import "../chunk-JTCTQBAX.js";
5
+ export {
6
+ kit
7
+ };
8
+ //# sourceMappingURL=tool-kit-tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/dist/index.d.ts CHANGED
@@ -56,3 +56,14 @@ export { say } from './base/say';
56
56
  export { pageLocale } from './base/locale';
57
57
  export { lockScroll, unlockScroll } from './base/scroll-lock';
58
58
  export { toneOf, TONE, CYCLE, type Tone, type NamedTone } from './base/tone';
59
+ /** The AI tools kit (G2 Noire): the parts every tool shares. */
60
+ export { ImpaktStatus, type StatusTone as ToolStatusTone } from './components/status';
61
+ export { ImpaktSource } from './components/source';
62
+ export { ImpaktChecked } from './components/checked';
63
+ export { ImpaktAppBar, type AppBarLink, type AppBarMenuItem } from './components/app-bar';
64
+ export { ImpaktLanguageSwitch, type LanguageItem } from './components/language-switch';
65
+ export { ImpaktMeter, ImpaktScoreBars, type ScoreItem } from './components/meter';
66
+ export { ImpaktCodeDiff, type DiffLine } from './components/code-diff';
67
+ export { ImpaktChipGroup, type ChipOption } from './components/chip-group';
68
+ export { ImpaktRedaction } from './components/redaction';
69
+ export { ImpaktToolCard } from './components/tool-card';