@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.
- package/custom-elements.json +9839 -6255
- package/dist/base/FieldElement.d.ts +10 -3
- package/dist/{chunk-YWP2Z3JN.js → chunk-2TNF7O43.js} +7 -5
- package/dist/{chunk-YWP2Z3JN.js.map → chunk-2TNF7O43.js.map} +1 -1
- package/dist/{chunk-FKUBEVCU.js → chunk-2WHOBIOY.js} +11 -9
- package/dist/{chunk-FKUBEVCU.js.map → chunk-2WHOBIOY.js.map} +1 -1
- package/dist/{chunk-26BO3W56.js → chunk-3BWCD5U5.js} +5 -3
- package/dist/{chunk-26BO3W56.js.map → chunk-3BWCD5U5.js.map} +1 -1
- package/dist/chunk-3GPGDERO.js +201 -0
- package/dist/chunk-3GPGDERO.js.map +1 -0
- package/dist/{chunk-3T7J66Z2.js → chunk-3KAFK24X.js} +13 -11
- package/dist/chunk-3KAFK24X.js.map +1 -0
- package/dist/{chunk-5OJAJA3U.js → chunk-5HCWL2YD.js} +6 -4
- package/dist/{chunk-5OJAJA3U.js.map → chunk-5HCWL2YD.js.map} +1 -1
- package/dist/{chunk-AG4EP3OY.js → chunk-5IGBH4GL.js} +8 -6
- package/dist/{chunk-AG4EP3OY.js.map → chunk-5IGBH4GL.js.map} +1 -1
- package/dist/{chunk-AL4IUSML.js → chunk-5OYQZWP2.js} +5 -3
- package/dist/{chunk-AL4IUSML.js.map → chunk-5OYQZWP2.js.map} +1 -1
- package/dist/chunk-5PRB7P7N.js +167 -0
- package/dist/chunk-5PRB7P7N.js.map +1 -0
- package/dist/chunk-6CDQSHVW.js +21 -0
- package/dist/chunk-6CDQSHVW.js.map +1 -0
- package/dist/{chunk-MLKNZL5J.js → chunk-6J22I7F6.js} +14 -12
- package/dist/chunk-6J22I7F6.js.map +1 -0
- package/dist/chunk-72WNCCDC.js +136 -0
- package/dist/chunk-72WNCCDC.js.map +1 -0
- package/dist/chunk-7UI3OBXL.js +104 -0
- package/dist/chunk-7UI3OBXL.js.map +1 -0
- package/dist/{chunk-D6NET2VB.js → chunk-ALFE35FS.js} +30 -3
- package/dist/chunk-ALFE35FS.js.map +1 -0
- package/dist/chunk-AYINRYNC.js +184 -0
- package/dist/chunk-AYINRYNC.js.map +1 -0
- package/dist/{chunk-2D2IMQII.js → chunk-BAITBJUC.js} +51 -29
- package/dist/chunk-BAITBJUC.js.map +1 -0
- package/dist/{chunk-2EP3IV3G.js → chunk-BGHAANTP.js} +22 -8
- package/dist/chunk-BGHAANTP.js.map +1 -0
- package/dist/{chunk-OJO62KRX.js → chunk-CFCFKLTN.js} +85 -10
- package/dist/chunk-CFCFKLTN.js.map +1 -0
- package/dist/{chunk-UFPI4I2Y.js → chunk-CQT3VPYK.js} +8 -29
- package/dist/chunk-CQT3VPYK.js.map +1 -0
- package/dist/{chunk-AURT72IC.js → chunk-DXLEYNID.js} +13 -7
- package/dist/chunk-DXLEYNID.js.map +1 -0
- package/dist/{chunk-L4CIBOGK.js → chunk-EKPTMRBG.js} +5 -3
- package/dist/{chunk-L4CIBOGK.js.map → chunk-EKPTMRBG.js.map} +1 -1
- package/dist/{chunk-7UWJXPR3.js → chunk-F3NHPQU5.js} +17 -36
- package/dist/chunk-F3NHPQU5.js.map +1 -0
- package/dist/{chunk-Z2EWQMTR.js → chunk-F4IXELLK.js} +5 -3
- package/dist/{chunk-Z2EWQMTR.js.map → chunk-F4IXELLK.js.map} +1 -1
- package/dist/{chunk-APQEXM4I.js → chunk-FJHPGOGS.js} +5 -3
- package/dist/{chunk-APQEXM4I.js.map → chunk-FJHPGOGS.js.map} +1 -1
- package/dist/chunk-FLAUZU7Y.js +345 -0
- package/dist/chunk-FLAUZU7Y.js.map +1 -0
- package/dist/{chunk-3NEWOO2P.js → chunk-FZWUQC42.js} +7 -5
- package/dist/{chunk-3NEWOO2P.js.map → chunk-FZWUQC42.js.map} +1 -1
- package/dist/{chunk-ONED3PUB.js → chunk-HSXLSJVG.js} +54 -8
- package/dist/chunk-HSXLSJVG.js.map +1 -0
- package/dist/{chunk-V7EB7Q2M.js → chunk-JTCTQBAX.js} +2 -131
- package/dist/chunk-JTCTQBAX.js.map +1 -0
- package/dist/{chunk-ZL3JFUIE.js → chunk-K5QFVLCI.js} +7 -5
- package/dist/{chunk-ZL3JFUIE.js.map → chunk-K5QFVLCI.js.map} +1 -1
- package/dist/{chunk-DN5YZFSG.js → chunk-KE6WCXQP.js} +55 -9
- package/dist/chunk-KE6WCXQP.js.map +1 -0
- package/dist/chunk-LBHTXY7K.js +75 -0
- package/dist/chunk-LBHTXY7K.js.map +1 -0
- package/dist/{chunk-OZGKK3N5.js → chunk-LP4RTYTL.js} +88 -9
- package/dist/chunk-LP4RTYTL.js.map +1 -0
- package/dist/{chunk-MOO63SHZ.js → chunk-LXVPWTSY.js} +80 -23
- package/dist/chunk-LXVPWTSY.js.map +1 -0
- package/dist/{chunk-JNLKM3JT.js → chunk-N6EEW2GF.js} +6 -4
- package/dist/{chunk-JNLKM3JT.js.map → chunk-N6EEW2GF.js.map} +1 -1
- package/dist/chunk-NHEU5FT6.js +115 -0
- package/dist/chunk-NHEU5FT6.js.map +1 -0
- package/dist/chunk-P3BPW446.js +294 -0
- package/dist/chunk-P3BPW446.js.map +1 -0
- package/dist/chunk-QPOM7W3D.js +104 -0
- package/dist/chunk-QPOM7W3D.js.map +1 -0
- package/dist/{chunk-FU3CEHBS.js → chunk-R6PBY3YN.js} +6 -4
- package/dist/{chunk-FU3CEHBS.js.map → chunk-R6PBY3YN.js.map} +1 -1
- package/dist/{chunk-TJOYBDKS.js → chunk-R6YMSJR7.js} +65 -36
- package/dist/chunk-R6YMSJR7.js.map +1 -0
- package/dist/{chunk-ZEIV5X3U.js → chunk-SOYKSPPX.js} +73 -23
- package/dist/chunk-SOYKSPPX.js.map +1 -0
- package/dist/{chunk-NKMJMVZP.js → chunk-T52CUOCJ.js} +5 -3
- package/dist/{chunk-NKMJMVZP.js.map → chunk-T52CUOCJ.js.map} +1 -1
- package/dist/chunk-UFENSIWD.js +135 -0
- package/dist/chunk-UFENSIWD.js.map +1 -0
- package/dist/{chunk-A4M3A4SZ.js → chunk-UYTIJCCW.js} +10 -42
- package/dist/chunk-UYTIJCCW.js.map +1 -0
- package/dist/chunk-XX6JZW5N.js +36 -0
- package/dist/chunk-XX6JZW5N.js.map +1 -0
- package/dist/{chunk-2ZF3J7OO.js → chunk-XXSZL5CY.js} +17 -5
- package/dist/chunk-XXSZL5CY.js.map +1 -0
- package/dist/{chunk-6PMA6NHE.js → chunk-Y55FNQHS.js} +5 -3
- package/dist/{chunk-6PMA6NHE.js.map → chunk-Y55FNQHS.js.map} +1 -1
- package/dist/chunk-ZAWGJC4I.js +176 -0
- package/dist/chunk-ZAWGJC4I.js.map +1 -0
- package/dist/chunk-ZUQ3DOG2.js +110 -0
- package/dist/chunk-ZUQ3DOG2.js.map +1 -0
- package/dist/components/accordion.d.ts +22 -0
- package/dist/components/accordion.js +6 -2
- package/dist/components/alert.d.ts +22 -1
- package/dist/components/alert.js +3 -2
- package/dist/components/app-bar.d.ts +153 -0
- package/dist/components/app-bar.js +15 -0
- package/dist/components/app-bar.js.map +1 -0
- package/dist/components/app-ui.d.ts +29 -2
- package/dist/components/app-ui.js +5 -4
- package/dist/components/badge.d.ts +17 -1
- package/dist/components/badge.js +4 -3
- package/dist/components/blocks.js +5 -4
- package/dist/components/button.d.ts +18 -2
- package/dist/components/button.js +4 -3
- package/dist/components/checkbox-group.js +4 -3
- package/dist/components/checkbox.js +4 -3
- package/dist/components/checked.d.ts +77 -0
- package/dist/components/checked.js +10 -0
- package/dist/components/checked.js.map +1 -0
- package/dist/components/chip-group.d.ts +113 -0
- package/dist/components/chip-group.js +11 -0
- package/dist/components/chip-group.js.map +1 -0
- package/dist/components/chip.d.ts +11 -0
- package/dist/components/chip.js +3 -2
- package/dist/components/code-diff.d.ts +77 -0
- package/dist/components/code-diff.js +10 -0
- package/dist/components/code-diff.js.map +1 -0
- package/dist/components/date-input.js +4 -3
- package/dist/components/dialog.d.ts +15 -0
- package/dist/components/dialog.js +3 -2
- package/dist/components/fieldset.js +3 -2
- package/dist/components/grid.js +3 -2
- package/dist/components/help.js +3 -2
- package/dist/components/icon.js +3 -2
- package/dist/components/journey.js +4 -3
- package/dist/components/language-switch.d.ts +59 -0
- package/dist/components/language-switch.js +10 -0
- package/dist/components/language-switch.js.map +1 -0
- package/dist/components/layout.d.ts +8 -2
- package/dist/components/layout.js +3 -2
- package/dist/components/link.js +4 -3
- package/dist/components/list.js +3 -2
- package/dist/components/media.js +3 -2
- package/dist/components/meter.d.ts +112 -0
- package/dist/components/meter.js +13 -0
- package/dist/components/meter.js.map +1 -0
- package/dist/components/navigation.d.ts +52 -0
- package/dist/components/navigation.js +4 -3
- package/dist/components/page.d.ts +13 -8
- package/dist/components/page.js +3 -2
- package/dist/components/price.js +3 -2
- package/dist/components/progress.d.ts +16 -2
- package/dist/components/progress.js +3 -2
- package/dist/components/radio-group.js +4 -3
- package/dist/components/redaction.d.ts +51 -0
- package/dist/components/redaction.js +10 -0
- package/dist/components/redaction.js.map +1 -0
- package/dist/components/rows.d.ts +28 -0
- package/dist/components/rows.js +7 -3
- package/dist/components/select.js +4 -3
- package/dist/components/shell.js +4 -3
- package/dist/components/source.d.ts +68 -0
- package/dist/components/source.js +10 -0
- package/dist/components/source.js.map +1 -0
- package/dist/components/status-pill-style.d.ts +16 -0
- package/dist/components/status-pill-style.js +15 -0
- package/dist/components/status-pill-style.js.map +1 -0
- package/dist/components/status.d.ts +66 -0
- package/dist/components/status.js +10 -0
- package/dist/components/status.js.map +1 -0
- package/dist/components/summary-list.js +3 -2
- package/dist/components/switch.js +4 -3
- package/dist/components/table.d.ts +19 -0
- package/dist/components/table.js +4 -3
- package/dist/components/text-input.js +5 -4
- package/dist/components/textarea.d.ts +5 -0
- package/dist/components/textarea.js +4 -3
- package/dist/components/tool-card.d.ts +107 -0
- package/dist/components/tool-card.js +11 -0
- package/dist/components/tool-card.js.map +1 -0
- package/dist/components/tool-kit-tokens.d.ts +25 -0
- package/dist/components/tool-kit-tokens.js +8 -0
- package/dist/components/tool-kit-tokens.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +116 -70
- package/dist/standalone/atomic-ui.js +2047 -733
- package/dist/standalone/atomic-ui.js.map +4 -4
- package/package.json +2 -2
- package/dist/chunk-2D2IMQII.js.map +0 -1
- package/dist/chunk-2EP3IV3G.js.map +0 -1
- package/dist/chunk-2ZF3J7OO.js.map +0 -1
- package/dist/chunk-3T7J66Z2.js.map +0 -1
- package/dist/chunk-7UWJXPR3.js.map +0 -1
- package/dist/chunk-A4M3A4SZ.js.map +0 -1
- package/dist/chunk-AURT72IC.js.map +0 -1
- package/dist/chunk-AYKYHZGQ.js +0 -108
- package/dist/chunk-AYKYHZGQ.js.map +0 -1
- package/dist/chunk-D6NET2VB.js.map +0 -1
- package/dist/chunk-DN5YZFSG.js.map +0 -1
- package/dist/chunk-MLKNZL5J.js.map +0 -1
- package/dist/chunk-MOO63SHZ.js.map +0 -1
- package/dist/chunk-OJO62KRX.js.map +0 -1
- package/dist/chunk-ONED3PUB.js.map +0 -1
- package/dist/chunk-OZGKK3N5.js.map +0 -1
- package/dist/chunk-QU3U2CS2.js +0 -144
- package/dist/chunk-QU3U2CS2.js.map +0 -1
- package/dist/chunk-TJOYBDKS.js.map +0 -1
- package/dist/chunk-UFPI4I2Y.js.map +0 -1
- package/dist/chunk-V7EB7Q2M.js.map +0 -1
- 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 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImpaktSegmentedControl,
|
|
3
3
|
ImpaktSwitch
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
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;
|
package/dist/components/table.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImpaktTable
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-KE6WCXQP.js";
|
|
4
4
|
import "../chunk-UNGAG44M.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
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-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
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-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
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 @@
|
|
|
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';
|