@atomic-ui/ui 0.10.1 → 0.12.1
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 +9631 -6026
- 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-4MMRBNW7.js +104 -0
- package/dist/chunk-4MMRBNW7.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-BAYSDP44.js} +52 -30
- package/dist/chunk-BAYSDP44.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-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-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-UBNCJROR.js +294 -0
- package/dist/chunk-UBNCJROR.js.map +1 -0
- 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.d.ts +6 -0
- 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 +2030 -692
- 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 +0 -97
- 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,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A meter, and a labelled list of meters with their figures.
|
|
3
|
+
*/
|
|
4
|
+
import { type TemplateResult } from 'lit';
|
|
5
|
+
import { ImpaktElement } from '../base/ImpaktElement';
|
|
6
|
+
import type { StatusTone } from './status';
|
|
7
|
+
import './status';
|
|
8
|
+
/**
|
|
9
|
+
* How full something is, such as a word count against its limit: an 8px
|
|
10
|
+
* square bar, an ink fill on a soft track.
|
|
11
|
+
*
|
|
12
|
+
* It is a `meter`, with its minimum, maximum and value, so a screen reader
|
|
13
|
+
* says how full it is. `value-text` replaces the number it reads, such as
|
|
14
|
+
* "412 of 500 words". `show-value` draws the figure beside the label too.
|
|
15
|
+
*
|
|
16
|
+
* Figma: kit `33:495`; Tender word count `36:716`.
|
|
17
|
+
*
|
|
18
|
+
* @category feedback
|
|
19
|
+
* @icon progress
|
|
20
|
+
* @csspart track - The bar.
|
|
21
|
+
* @csspart fill - How much of it is filled.
|
|
22
|
+
*/
|
|
23
|
+
export declare class ImpaktMeter extends ImpaktElement {
|
|
24
|
+
static properties: {
|
|
25
|
+
label: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
};
|
|
28
|
+
value: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
};
|
|
31
|
+
min: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
};
|
|
34
|
+
max: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
};
|
|
37
|
+
valueText: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
attribute: string;
|
|
40
|
+
};
|
|
41
|
+
showValue: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
attribute: string;
|
|
44
|
+
reflect: boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/** What is being measured. */
|
|
48
|
+
label: string;
|
|
49
|
+
value: number;
|
|
50
|
+
min: number;
|
|
51
|
+
max: number;
|
|
52
|
+
/** What a screen reader says in place of the number, and what is drawn when `show-value` is set. */
|
|
53
|
+
valueText: string;
|
|
54
|
+
/** Draw the figure beside the label. */
|
|
55
|
+
showValue: boolean;
|
|
56
|
+
constructor();
|
|
57
|
+
static styles: import("lit").CSSResult[];
|
|
58
|
+
render(): TemplateResult;
|
|
59
|
+
}
|
|
60
|
+
export interface ScoreItem {
|
|
61
|
+
label: string;
|
|
62
|
+
value: number;
|
|
63
|
+
/** Defaults to the list's `max`. */
|
|
64
|
+
max?: number;
|
|
65
|
+
/** A pill after the figure, such as "Weakest". */
|
|
66
|
+
status?: string;
|
|
67
|
+
/** The pill's tone. Defaults to `warn`, "this needs your attention". */
|
|
68
|
+
tone?: StatusTone;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* A labelled list of scores, each a meter with its figure, and a pill such as
|
|
72
|
+
* "Weakest" beside the one that needs attention.
|
|
73
|
+
*
|
|
74
|
+
* Each row is a list item holding a `meter` named by its label, so a screen
|
|
75
|
+
* reader can move from score to score and hear "Conversion, 41". The figure is
|
|
76
|
+
* drawn for the eye and the meter carries it for assistive technology. On a
|
|
77
|
+
* narrow screen the label sits above its bar.
|
|
78
|
+
*
|
|
79
|
+
* Figma: Teardown scores `39:801`.
|
|
80
|
+
*
|
|
81
|
+
* @category feedback
|
|
82
|
+
* @icon progress
|
|
83
|
+
* @csspart list - The list.
|
|
84
|
+
* @csspart row - Each score.
|
|
85
|
+
*/
|
|
86
|
+
export declare class ImpaktScoreBars extends ImpaktElement {
|
|
87
|
+
static properties: {
|
|
88
|
+
label: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
};
|
|
91
|
+
items: {
|
|
92
|
+
type: ArrayConstructor;
|
|
93
|
+
};
|
|
94
|
+
max: {
|
|
95
|
+
type: NumberConstructor;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
/** What the scores are, as the list's name: "Scores". */
|
|
99
|
+
label: string;
|
|
100
|
+
items: ScoreItem[];
|
|
101
|
+
/** The top of every scale that does not give its own. */
|
|
102
|
+
max: number;
|
|
103
|
+
constructor();
|
|
104
|
+
static styles: import("lit").CSSResult[];
|
|
105
|
+
render(): TemplateResult;
|
|
106
|
+
}
|
|
107
|
+
declare global {
|
|
108
|
+
interface HTMLElementTagNameMap {
|
|
109
|
+
'impakt-meter': ImpaktMeter;
|
|
110
|
+
'impakt-score-bars': ImpaktScoreBars;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ImpaktMeter,
|
|
3
|
+
ImpaktScoreBars
|
|
4
|
+
} from "../chunk-AYINRYNC.js";
|
|
5
|
+
import "../chunk-ZUQ3DOG2.js";
|
|
6
|
+
import "../chunk-XX6JZW5N.js";
|
|
7
|
+
import "../chunk-72WNCCDC.js";
|
|
8
|
+
import "../chunk-JTCTQBAX.js";
|
|
9
|
+
export {
|
|
10
|
+
ImpaktMeter,
|
|
11
|
+
ImpaktScoreBars
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=meter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -45,6 +45,25 @@ export declare class ImpaktNav extends ImpaktElement {
|
|
|
45
45
|
type: StringConstructor;
|
|
46
46
|
reflect: boolean;
|
|
47
47
|
};
|
|
48
|
+
fold: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
reflect: boolean;
|
|
51
|
+
};
|
|
52
|
+
actionText: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
attribute: string;
|
|
55
|
+
};
|
|
56
|
+
actionHref: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
attribute: string;
|
|
59
|
+
};
|
|
60
|
+
look: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
reflect: boolean;
|
|
63
|
+
};
|
|
64
|
+
current: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
};
|
|
48
67
|
};
|
|
49
68
|
/** The links, in order. */
|
|
50
69
|
links: NavLink[];
|
|
@@ -61,6 +80,27 @@ export declare class ImpaktNav extends ImpaktElement {
|
|
|
61
80
|
size: 'md' | 'sm';
|
|
62
81
|
/** Where the links sit along the row. */
|
|
63
82
|
align: 'start' | 'center' | 'end';
|
|
83
|
+
/**
|
|
84
|
+
* How the links fold behind the Menu button. `measure` folds them when they do not fit, which
|
|
85
|
+
* needs script. `narrow` folds them when the container around the nav is 40rem wide or less,
|
|
86
|
+
* which is decided in CSS, and the Menu button then opens a whole-screen menu with no script at
|
|
87
|
+
* all. `narrow` is for a page that may be drawn on a server and shown without script. It needs a
|
|
88
|
+
* size container around the nav, and `impakt-site-header` is one.
|
|
89
|
+
*/
|
|
90
|
+
fold: 'measure' | 'narrow';
|
|
91
|
+
/** With `fold="narrow"`: an action shown at the foot of the whole-screen menu, for a header that hides its own button on a narrow screen. */
|
|
92
|
+
actionText: string;
|
|
93
|
+
/** Where that action goes. */
|
|
94
|
+
actionHref: string;
|
|
95
|
+
/**
|
|
96
|
+
* `links` is a row of words. `tabs` is the G2 site header's file tabs: a
|
|
97
|
+
* bordered group on the soft surface, each tab 42px tall, and the page you
|
|
98
|
+
* are on a white tab with a dot before it (frame 9:264). The current tab is
|
|
99
|
+
* still `aria-current`, so it is not said by colour alone.
|
|
100
|
+
*/
|
|
101
|
+
look: 'links' | 'tabs';
|
|
102
|
+
/** The href of the link to mark as the page you are on, for when the page's address cannot say it (a preview, or `#` links). Unset, it is worked out from the address. */
|
|
103
|
+
current: string;
|
|
64
104
|
/** Whether the menu is open on a narrow screen. Not a setting: it is the visitor's. */
|
|
65
105
|
private menuOpen;
|
|
66
106
|
private get open();
|
|
@@ -76,6 +116,12 @@ export declare class ImpaktNav extends ImpaktElement {
|
|
|
76
116
|
disconnectedCallback(): void;
|
|
77
117
|
private toggle;
|
|
78
118
|
private onKey;
|
|
119
|
+
/**
|
|
120
|
+
* fold="narrow": the Menu button and the panel are tied by `popovertarget`, so the browser opens
|
|
121
|
+
* and closes the panel, moves on to it with Tab, and closes it on Escape, with no script. The
|
|
122
|
+
* browser also tells a screen reader whether it is open.
|
|
123
|
+
*/
|
|
124
|
+
private renderNarrow;
|
|
79
125
|
render(): TemplateResult;
|
|
80
126
|
}
|
|
81
127
|
/**
|
|
@@ -97,7 +143,13 @@ export declare class ImpaktBreadcrumbs extends ImpaktElement {
|
|
|
97
143
|
label: {
|
|
98
144
|
type: StringConstructor;
|
|
99
145
|
};
|
|
146
|
+
look: {
|
|
147
|
+
type: StringConstructor;
|
|
148
|
+
reflect: boolean;
|
|
149
|
+
};
|
|
100
150
|
};
|
|
151
|
+
/** `default` is the body face with links. `mono` is the code face at 14px, muted, as the G2 tools' trail is (frame 34:602). */
|
|
152
|
+
look: 'default' | 'mono';
|
|
101
153
|
/** The trail, from the top of the site down to this page. */
|
|
102
154
|
items: NavLink[];
|
|
103
155
|
/** What the trail is called for a screen reader. */
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImpaktBreadcrumbs,
|
|
3
3
|
ImpaktNav
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-CFCFKLTN.js";
|
|
5
|
+
import "../chunk-5OYQZWP2.js";
|
|
6
|
+
import "../chunk-72WNCCDC.js";
|
|
7
|
+
import "../chunk-JTCTQBAX.js";
|
|
7
8
|
export {
|
|
8
9
|
ImpaktBreadcrumbs,
|
|
9
10
|
ImpaktNav
|
|
@@ -45,8 +45,8 @@ export declare class ImpaktPage extends ImpaktElement {
|
|
|
45
45
|
attribute: string;
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
/** How wide the content runs. Standard is the brand's page width. */
|
|
49
|
-
width: 'narrow' | 'standard' | 'wide';
|
|
48
|
+
/** How wide the content runs. Standard is the brand's page width; `content` is G2's 1080px column. */
|
|
49
|
+
width: 'narrow' | 'standard' | 'content' | 'wide';
|
|
50
50
|
/** Keep the header at the top of the screen while the page scrolls. */
|
|
51
51
|
stickyHeader: boolean;
|
|
52
52
|
/** The words of the link that skips past the header to the content. */
|
|
@@ -131,12 +131,17 @@ export declare class ImpaktSection extends ImpaktElement {
|
|
|
131
131
|
attribute: string;
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
|
-
/**
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
134
|
+
/**
|
|
135
|
+
* The band's background. Text on it takes the matching colour, so it stays
|
|
136
|
+
* readable. `board` is G2's blueprint grey (#E3E2DD). On `ink` the cards are
|
|
137
|
+
* the raised ink (#1C1C1C) with a #2E2E2E rule, a primary button is the paper
|
|
138
|
+
* with ink words and an outline button has a paper border.
|
|
139
|
+
*/
|
|
140
|
+
tone: 'none' | 'subtle' | 'inset' | 'brand' | 'card' | 'ink' | 'accent' | 'board';
|
|
141
|
+
/** Space inside the band, above and below its content. `3xl` is G2's 120px on a desktop and 64px on a phone. */
|
|
142
|
+
padding: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
143
|
+
/** How wide the content inside runs. `content` is G2's 1080px column. */
|
|
144
|
+
width: 'narrow' | 'standard' | 'content' | 'wide';
|
|
140
145
|
/** Run the background to the edges of the screen. */
|
|
141
146
|
bleed: boolean;
|
|
142
147
|
/**
|
package/dist/components/page.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImpaktPage,
|
|
3
3
|
ImpaktSection
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ALFE35FS.js";
|
|
5
5
|
import "../chunk-6WVL3HOC.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-72WNCCDC.js";
|
|
7
|
+
import "../chunk-JTCTQBAX.js";
|
|
7
8
|
export {
|
|
8
9
|
ImpaktPage,
|
|
9
10
|
ImpaktSection
|
package/dist/components/price.js
CHANGED
|
@@ -2,7 +2,10 @@ import { type TemplateResult } from 'lit';
|
|
|
2
2
|
import { ImpaktElement } from '../base/ImpaktElement';
|
|
3
3
|
export interface ProgressStep {
|
|
4
4
|
id: string;
|
|
5
|
+
/** The step's name. A count may follow it, such as "Documents 3". */
|
|
5
6
|
label: string;
|
|
7
|
+
/** Where the step goes, in the `stages` look, when the stages are pages a person can move between. */
|
|
8
|
+
href?: string;
|
|
6
9
|
}
|
|
7
10
|
/**
|
|
8
11
|
* Where the customer is in a journey.
|
|
@@ -43,6 +46,10 @@ export declare class ImpaktProgress extends ImpaktElement {
|
|
|
43
46
|
attribute: string;
|
|
44
47
|
reflect: boolean;
|
|
45
48
|
};
|
|
49
|
+
doneText: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
attribute: string;
|
|
52
|
+
};
|
|
46
53
|
};
|
|
47
54
|
steps: ProgressStep[];
|
|
48
55
|
/** The id of the step being shown. */
|
|
@@ -52,9 +59,15 @@ export declare class ImpaktProgress extends ImpaktElement {
|
|
|
52
59
|
* `steps` is the full indicator. `bars` is a compact one for a card: short
|
|
53
60
|
* rounded bars, the done steps in the text colour and the current one in the
|
|
54
61
|
* brand, with small names under them. The current step is also set in a
|
|
55
|
-
* heavier weight, so it does not rest on colour alone.
|
|
62
|
+
* heavier weight, so it does not rest on colour alone. `stages` is the G2
|
|
63
|
+
* stage stepper in a tool: each stage a two-digit number in the code face and
|
|
64
|
+
* a name, the done ones marked "✓" and said "done", the current one
|
|
65
|
+
* underlined in the ink, and each a link when it has `href` (frames 33:471,
|
|
66
|
+
* 36:709, 37:456, 39:500, 39:640). It scrolls sideways when it does not fit.
|
|
56
67
|
*/
|
|
57
|
-
look: 'steps' | 'bars';
|
|
68
|
+
look: 'steps' | 'bars' | 'stages';
|
|
69
|
+
/** How a done stage is said to a screen reader in the `stages` look, after its name. */
|
|
70
|
+
doneText: string;
|
|
58
71
|
/**
|
|
59
72
|
* Draw the bars or steps alone, for a card too small for the names. The
|
|
60
73
|
* names and "Step 2 of 5" are still read aloud. Each step is also a `step`
|
|
@@ -64,6 +77,7 @@ export declare class ImpaktProgress extends ImpaktElement {
|
|
|
64
77
|
hideLabels: boolean;
|
|
65
78
|
constructor();
|
|
66
79
|
static styles: import("lit").CSSResult[];
|
|
80
|
+
private renderStages;
|
|
67
81
|
render(): TemplateResult;
|
|
68
82
|
}
|
|
69
83
|
declare global {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImpaktRadioGroup
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-2TNF7O43.js";
|
|
4
|
+
import "../chunk-HSXLSJVG.js";
|
|
5
|
+
import "../chunk-72WNCCDC.js";
|
|
6
|
+
import "../chunk-JTCTQBAX.js";
|
|
6
7
|
export {
|
|
7
8
|
ImpaktRadioGroup
|
|
8
9
|
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An inline tag that stands in for withheld text.
|
|
3
|
+
*/
|
|
4
|
+
import { type TemplateResult } from 'lit';
|
|
5
|
+
import { ImpaktElement } from '../base/ImpaktElement';
|
|
6
|
+
/**
|
|
7
|
+
* Stands in for text that has been withheld, such as a third party's name or a
|
|
8
|
+
* phone number, and says what kind of thing it was.
|
|
9
|
+
*
|
|
10
|
+
* **It never holds the original.** There is no property, attribute or slot for
|
|
11
|
+
* the withheld value, so it cannot reach the page, the accessibility tree or a
|
|
12
|
+
* copy and paste. It takes only `label`, the kind of thing removed, and a
|
|
13
|
+
* screen reader hears "Redacted: Phone number".
|
|
14
|
+
*
|
|
15
|
+
* `look="outline"` is the quieter tag for a list of redactions beside the text.
|
|
16
|
+
*
|
|
17
|
+
* Figma: Subject Access `37:656`; dark `48:756`.
|
|
18
|
+
*
|
|
19
|
+
* @category content
|
|
20
|
+
* @icon text
|
|
21
|
+
* @csspart tag - The tag.
|
|
22
|
+
*/
|
|
23
|
+
export declare class ImpaktRedaction extends ImpaktElement {
|
|
24
|
+
static properties: {
|
|
25
|
+
label: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
};
|
|
28
|
+
look: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
reflect: boolean;
|
|
31
|
+
};
|
|
32
|
+
redactedText: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
attribute: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
/** What kind of thing was withheld: "Third party name", "Phone number". */
|
|
38
|
+
label: string;
|
|
39
|
+
/** `solid` in running text, `outline` in a list. */
|
|
40
|
+
look: 'solid' | 'outline';
|
|
41
|
+
/** The word a screen reader hears first. */
|
|
42
|
+
redactedText: string;
|
|
43
|
+
constructor();
|
|
44
|
+
static styles: import("lit").CSSResult[];
|
|
45
|
+
render(): TemplateResult;
|
|
46
|
+
}
|
|
47
|
+
declare global {
|
|
48
|
+
interface HTMLElementTagNameMap {
|
|
49
|
+
'impakt-redaction': ImpaktRedaction;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type TemplateResult } from 'lit';
|
|
2
2
|
import { ImpaktElement } from '../base/ImpaktElement';
|
|
3
|
+
import { type StatusTone } from './status-pill-style';
|
|
3
4
|
/**
|
|
4
5
|
* A count with its name: "UK 4", "Active import jobs 12". A dashboard shows a
|
|
5
6
|
* row of them.
|
|
@@ -9,6 +10,12 @@ import { ImpaktElement } from '../base/ImpaktElement';
|
|
|
9
10
|
* `href` the whole tile is one link, named by the label, the value and the
|
|
10
11
|
* caption together.
|
|
11
12
|
*
|
|
13
|
+
* **It is the G2 summary tile** (frames 33:451, 36:473, 37:469, 39:770): white,
|
|
14
|
+
* a 1px ink border, the label in the code face, the figure large and tight
|
|
15
|
+
* (a word works as the figure too, such as "First audit"), the note under it,
|
|
16
|
+
* and under the note an optional status pill, such as "All proven". The
|
|
17
|
+
* status is words, so it does not rest on its dot's colour.
|
|
18
|
+
*
|
|
12
19
|
* @category content
|
|
13
20
|
* @icon badge
|
|
14
21
|
*/
|
|
@@ -34,6 +41,13 @@ export declare class ImpaktStatTile extends ImpaktElement {
|
|
|
34
41
|
type: StringConstructor;
|
|
35
42
|
reflect: boolean;
|
|
36
43
|
};
|
|
44
|
+
status: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
};
|
|
47
|
+
statusTone: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
attribute: string;
|
|
50
|
+
};
|
|
37
51
|
};
|
|
38
52
|
/** What is counted, such as "UK" or "Active import jobs". */
|
|
39
53
|
label: string;
|
|
@@ -47,6 +61,10 @@ export declare class ImpaktStatTile extends ImpaktElement {
|
|
|
47
61
|
tone: 'plain' | 'brand';
|
|
48
62
|
/** `lg` sets the figure larger, for the lead figure. */
|
|
49
63
|
size: 'md' | 'lg';
|
|
64
|
+
/** A status under the note, drawn as a pill, such as "All proven". */
|
|
65
|
+
status: string;
|
|
66
|
+
/** The status's tone. */
|
|
67
|
+
statusTone: StatusTone;
|
|
50
68
|
constructor();
|
|
51
69
|
static styles: import("lit").CSSResult[];
|
|
52
70
|
render(): TemplateResult;
|
|
@@ -121,6 +139,10 @@ export declare class ImpaktRow extends ImpaktElement {
|
|
|
121
139
|
type: BooleanConstructor;
|
|
122
140
|
reflect: boolean;
|
|
123
141
|
};
|
|
142
|
+
selected: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
reflect: boolean;
|
|
145
|
+
};
|
|
124
146
|
};
|
|
125
147
|
/** The row's title. */
|
|
126
148
|
heading: string;
|
|
@@ -132,6 +154,12 @@ export declare class ImpaktRow extends ImpaktElement {
|
|
|
132
154
|
divided: boolean;
|
|
133
155
|
/** Set the title quieter, for something finished, such as a done task. */
|
|
134
156
|
muted: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* The row being shown, such as the open case in a list beside it: an ink
|
|
159
|
+
* fill with the words turned over (the paper in dark), and `aria-current`
|
|
160
|
+
* on the row so it is not said by colour alone (frame 37:656).
|
|
161
|
+
*/
|
|
162
|
+
selected: boolean;
|
|
135
163
|
constructor();
|
|
136
164
|
static styles: import("lit").CSSResult[];
|
|
137
165
|
private filled;
|
package/dist/components/rows.js
CHANGED
|
@@ -3,10 +3,14 @@ import {
|
|
|
3
3
|
ImpaktFilterChip,
|
|
4
4
|
ImpaktRow,
|
|
5
5
|
ImpaktStatTile
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-BAYSDP44.js";
|
|
7
|
+
import "../chunk-6CDQSHVW.js";
|
|
8
|
+
import "../chunk-ZUQ3DOG2.js";
|
|
9
|
+
import "../chunk-XX6JZW5N.js";
|
|
7
10
|
import "../chunk-UNGAG44M.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-5OYQZWP2.js";
|
|
12
|
+
import "../chunk-72WNCCDC.js";
|
|
13
|
+
import "../chunk-JTCTQBAX.js";
|
|
10
14
|
export {
|
|
11
15
|
ImpaktDateTile,
|
|
12
16
|
ImpaktFilterChip,
|
|
@@ -37,6 +37,10 @@ export declare class ImpaktSelect extends FieldElement {
|
|
|
37
37
|
attribute: string;
|
|
38
38
|
reflect: boolean;
|
|
39
39
|
};
|
|
40
|
+
size: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
reflect: boolean;
|
|
43
|
+
};
|
|
40
44
|
label: {
|
|
41
45
|
type: StringConstructor;
|
|
42
46
|
};
|
|
@@ -79,6 +83,8 @@ export declare class ImpaktSelect extends FieldElement {
|
|
|
79
83
|
placeholder: string;
|
|
80
84
|
/** How wide the box is, to suit the answer. Full width on a phone whatever this says. */
|
|
81
85
|
width: 'full' | 'lg' | 'md' | 'sm' | 'xs';
|
|
86
|
+
/** `sm` is a compact 32px box for a filter in a toolbar, such as "Page: All pages" above a list. It still meets the 24px target size. */
|
|
87
|
+
size: 'md' | 'sm';
|
|
82
88
|
constructor();
|
|
83
89
|
static styles: import("lit").CSSResult[];
|
|
84
90
|
protected renderControl(): TemplateResult;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImpaktSelect
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-4MMRBNW7.js";
|
|
4
|
+
import "../chunk-HSXLSJVG.js";
|
|
5
|
+
import "../chunk-72WNCCDC.js";
|
|
6
|
+
import "../chunk-JTCTQBAX.js";
|
|
6
7
|
export {
|
|
7
8
|
ImpaktSelect
|
|
8
9
|
};
|
package/dist/components/shell.js
CHANGED
|
@@ -4,9 +4,10 @@ import {
|
|
|
4
4
|
ImpaktTabBar,
|
|
5
5
|
announceNavigate,
|
|
6
6
|
isCurrent
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-N6EEW2GF.js";
|
|
8
|
+
import "../chunk-5OYQZWP2.js";
|
|
9
|
+
import "../chunk-72WNCCDC.js";
|
|
10
|
+
import "../chunk-JTCTQBAX.js";
|
|
10
11
|
export {
|
|
11
12
|
ImpaktAppShell,
|
|
12
13
|
ImpaktSideNav,
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The source chip: where an answer came from.
|
|
3
|
+
*/
|
|
4
|
+
import { type TemplateResult } from 'lit';
|
|
5
|
+
import { ImpaktElement } from '../base/ImpaktElement';
|
|
6
|
+
/**
|
|
7
|
+
* A short code that points at where an answer came from: a page of a past bid
|
|
8
|
+
* ("P1"), an evidence file ("E4"), a moment in a call ("Dana · 12:41") or a rule.
|
|
9
|
+
*
|
|
10
|
+
* The code alone means nothing to someone who cannot see what it sits next to,
|
|
11
|
+
* so `description` spells it out ("Source P1: Past bid, Sample parks contract,
|
|
12
|
+
* page 6") and becomes the chip's accessible name. The name always holds the
|
|
13
|
+
* visible code, so a person who says what they see (2.5.3) still reaches it: a
|
|
14
|
+
* description that leaves the code out is read after it.
|
|
15
|
+
*
|
|
16
|
+
* It is a plain chip, a link when it has an `href`, or a button when `kind` is
|
|
17
|
+
* `button`, which fires `impakt-source` so the tool can open the source beside
|
|
18
|
+
* the answer. A link or a button is at least 24 by 24 pixels.
|
|
19
|
+
*
|
|
20
|
+
* `look="on-ink"` is for a chip on an ink surface: a white chip with ink words.
|
|
21
|
+
*
|
|
22
|
+
* Figma: kit `33:393`; `36:716`, `37:492`, `36:553`, `39:513`, `39:671`.
|
|
23
|
+
*
|
|
24
|
+
* @category content
|
|
25
|
+
* @icon link
|
|
26
|
+
* @fires {CustomEvent<{ label: string; description: string }>} impakt-source - When a button chip is pressed.
|
|
27
|
+
* @csspart chip - The chip, whichever element it is.
|
|
28
|
+
*/
|
|
29
|
+
export declare class ImpaktSource extends ImpaktElement {
|
|
30
|
+
static properties: {
|
|
31
|
+
label: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
};
|
|
34
|
+
description: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
};
|
|
37
|
+
href: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
};
|
|
40
|
+
kind: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
reflect: boolean;
|
|
43
|
+
};
|
|
44
|
+
look: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
reflect: boolean;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
/** The visible code, such as "P1". */
|
|
50
|
+
label: string;
|
|
51
|
+
/** What the code stands for, read in its place: "Source P1: Past bid, Sample parks contract, page 6". */
|
|
52
|
+
description: string;
|
|
53
|
+
/** Where the source is. Makes the chip a link. */
|
|
54
|
+
href: string;
|
|
55
|
+
/** `static` or `button`. A chip with an `href` is a link whatever this says. */
|
|
56
|
+
kind: 'static' | 'button';
|
|
57
|
+
/** `default` on a light surface, `on-ink` on an ink one. */
|
|
58
|
+
look: 'default' | 'on-ink';
|
|
59
|
+
constructor();
|
|
60
|
+
static styles: import("lit").CSSResult[];
|
|
61
|
+
private press;
|
|
62
|
+
render(): TemplateResult;
|
|
63
|
+
}
|
|
64
|
+
declare global {
|
|
65
|
+
interface HTMLElementTagNameMap {
|
|
66
|
+
'impakt-source': ImpaktSource;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The G2 status pill inside another element's shadow root: the summary tile
|
|
3
|
+
* and the accordion draw one with `statusPill(text, tone)`.
|
|
4
|
+
*
|
|
5
|
+
* The pill itself is `impakt-status`, so there is one drawing of it. This only
|
|
6
|
+
* places it, and says nothing when there are no words. The word carries the
|
|
7
|
+
* status, so it never rests on the dot's colour alone (1.4.1).
|
|
8
|
+
*/
|
|
9
|
+
import { nothing, type TemplateResult } from 'lit';
|
|
10
|
+
import './status';
|
|
11
|
+
import type { StatusTone } from './status';
|
|
12
|
+
export type { StatusTone };
|
|
13
|
+
export declare const STATUS_TONES: StatusTone[];
|
|
14
|
+
export declare const statusPillStyles: import("lit").CSSResult;
|
|
15
|
+
/** A status pill, or nothing when there are no words. */
|
|
16
|
+
export declare const statusPill: (text: string | undefined, tone: StatusTone | string | undefined, part?: string) => TemplateResult | typeof nothing;
|