@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,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 @@
|
|
|
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[];
|
package/dist/components/chip.js
CHANGED
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImpaktDateInput
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
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
|
}
|
package/dist/components/grid.js
CHANGED
package/dist/components/help.js
CHANGED
package/dist/components/icon.js
CHANGED
|
@@ -6,10 +6,11 @@ import {
|
|
|
6
6
|
ImpaktRangeInput,
|
|
7
7
|
ImpaktTaskList,
|
|
8
8
|
groupDigits
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-2WHOBIOY.js";
|
|
10
10
|
import "../chunk-UNGAG44M.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
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 @@
|
|
|
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
|
-
/**
|
|
107
|
-
|
|
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-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-DXLEYNID.js";
|
|
7
|
+
import "../chunk-72WNCCDC.js";
|
|
8
|
+
import "../chunk-JTCTQBAX.js";
|
|
8
9
|
export {
|
|
9
10
|
ImpaktCard,
|
|
10
11
|
ImpaktHeading,
|
package/dist/components/link.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImpaktLink
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
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
|
};
|
package/dist/components/list.js
CHANGED
package/dist/components/media.js
CHANGED
|
@@ -2,8 +2,9 @@ import {
|
|
|
2
2
|
ImpaktDocumentLink,
|
|
3
3
|
ImpaktImage,
|
|
4
4
|
ImpaktLogo
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-T52CUOCJ.js";
|
|
6
|
+
import "../chunk-72WNCCDC.js";
|
|
7
|
+
import "../chunk-JTCTQBAX.js";
|
|
7
8
|
export {
|
|
8
9
|
ImpaktDocumentLink,
|
|
9
10
|
ImpaktImage,
|