@atomic-ui/ui 0.0.0-stage → 0.1.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/README.md +134 -2
- package/dist/base/FieldElement.d.ts +95 -0
- package/dist/base/ImpktElement.d.ts +21 -0
- package/dist/base/styles.d.ts +42 -0
- package/dist/base/tokens.d.ts +68 -0
- package/dist/chunk-4YAA7EML.js +43 -0
- package/dist/chunk-4YAA7EML.js.map +1 -0
- package/dist/chunk-6HZA6A3L.js +162 -0
- package/dist/chunk-6HZA6A3L.js.map +1 -0
- package/dist/chunk-7T34CRBF.js +75 -0
- package/dist/chunk-7T34CRBF.js.map +1 -0
- package/dist/chunk-AC6G7X3G.js +84 -0
- package/dist/chunk-AC6G7X3G.js.map +1 -0
- package/dist/chunk-BBWMRF5N.js +157 -0
- package/dist/chunk-BBWMRF5N.js.map +1 -0
- package/dist/chunk-BOLZMDAS.js +95 -0
- package/dist/chunk-BOLZMDAS.js.map +1 -0
- package/dist/chunk-BUWE6XGX.js +152 -0
- package/dist/chunk-BUWE6XGX.js.map +1 -0
- package/dist/chunk-GEBLDC2J.js +136 -0
- package/dist/chunk-GEBLDC2J.js.map +1 -0
- package/dist/chunk-GU4UQKJP.js +120 -0
- package/dist/chunk-GU4UQKJP.js.map +1 -0
- package/dist/chunk-HJ2V635J.js +88 -0
- package/dist/chunk-HJ2V635J.js.map +1 -0
- package/dist/chunk-IHEEUM3M.js +162 -0
- package/dist/chunk-IHEEUM3M.js.map +1 -0
- package/dist/chunk-J5KAMJ2N.js +138 -0
- package/dist/chunk-J5KAMJ2N.js.map +1 -0
- package/dist/chunk-KAU3V65B.js +65 -0
- package/dist/chunk-KAU3V65B.js.map +1 -0
- package/dist/chunk-KC6RKWO6.js +81 -0
- package/dist/chunk-KC6RKWO6.js.map +1 -0
- package/dist/chunk-NEWN44LO.js +92 -0
- package/dist/chunk-NEWN44LO.js.map +1 -0
- package/dist/chunk-SSNCGJ5W.js +105 -0
- package/dist/chunk-SSNCGJ5W.js.map +1 -0
- package/dist/chunk-T4HSPWA7.js +122 -0
- package/dist/chunk-T4HSPWA7.js.map +1 -0
- package/dist/chunk-T63FI4ET.js +139 -0
- package/dist/chunk-T63FI4ET.js.map +1 -0
- package/dist/chunk-TOTVL3YH.js +130 -0
- package/dist/chunk-TOTVL3YH.js.map +1 -0
- package/dist/chunk-TRLEYGGH.js +102 -0
- package/dist/chunk-TRLEYGGH.js.map +1 -0
- package/dist/chunk-XEN5NV55.js +79 -0
- package/dist/chunk-XEN5NV55.js.map +1 -0
- package/dist/chunk-Z4KZG2E3.js +131 -0
- package/dist/chunk-Z4KZG2E3.js.map +1 -0
- package/dist/components/accordion.d.ts +66 -0
- package/dist/components/accordion.js +8 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/alert.d.ts +49 -0
- package/dist/components/alert.js +8 -0
- package/dist/components/alert.js.map +1 -0
- package/dist/components/button.d.ts +70 -0
- package/dist/components/button.js +8 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/checkbox-group.d.ts +79 -0
- package/dist/components/checkbox-group.js +9 -0
- package/dist/components/checkbox-group.js.map +1 -0
- package/dist/components/checkbox.d.ts +64 -0
- package/dist/components/checkbox.js +9 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/date-input.d.ts +95 -0
- package/dist/components/date-input.js +9 -0
- package/dist/components/date-input.js.map +1 -0
- package/dist/components/dialog.d.ts +61 -0
- package/dist/components/dialog.js +8 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/grid.d.ts +34 -0
- package/dist/components/grid.js +8 -0
- package/dist/components/grid.js.map +1 -0
- package/dist/components/help.d.ts +103 -0
- package/dist/components/help.js +8 -0
- package/dist/components/help.js.map +1 -0
- package/dist/components/layout.d.ts +100 -0
- package/dist/components/layout.js +14 -0
- package/dist/components/layout.js.map +1 -0
- package/dist/components/link.d.ts +46 -0
- package/dist/components/link.js +8 -0
- package/dist/components/link.js.map +1 -0
- package/dist/components/media.d.ts +164 -0
- package/dist/components/media.js +12 -0
- package/dist/components/media.js.map +1 -0
- package/dist/components/price.d.ts +67 -0
- package/dist/components/price.js +8 -0
- package/dist/components/price.js.map +1 -0
- package/dist/components/progress.d.ts +50 -0
- package/dist/components/progress.js +8 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/radio-group.d.ts +82 -0
- package/dist/components/radio-group.js +9 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/select.d.ts +74 -0
- package/dist/components/select.js +9 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/summary-list.d.ts +47 -0
- package/dist/components/summary-list.js +8 -0
- package/dist/components/summary-list.js.map +1 -0
- package/dist/components/table.d.ts +49 -0
- package/dist/components/table.js +8 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/text-input.d.ts +80 -0
- package/dist/components/text-input.js +9 -0
- package/dist/components/text-input.js.map +1 -0
- package/dist/components/textarea.d.ts +59 -0
- package/dist/components/textarea.js +9 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +113 -0
- package/dist/index.js.map +1 -0
- package/package.json +45 -4
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { FieldElement } from '../base/FieldElement';
|
|
3
|
+
export interface RadioOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A choose-one group.
|
|
10
|
+
*
|
|
11
|
+
* **It renders native radios, and that is the whole design.** A group of
|
|
12
|
+
* `<input type="radio">` sharing a name already has roving tabindex, arrow-key
|
|
13
|
+
* navigation that wraps, Home and End, selection-follows-focus, and the right
|
|
14
|
+
* announcement in every screen reader — all of it, correctly, with no
|
|
15
|
+
* JavaScript. Hand-rolling that is the single most commonly attempted and most
|
|
16
|
+
* commonly botched widget in any design system, and every version of it is a
|
|
17
|
+
* worse version of what the platform ships.
|
|
18
|
+
*
|
|
19
|
+
* Because the radios share one shadow root, their `name` scopes to this
|
|
20
|
+
* component and cannot collide with another group on the page.
|
|
21
|
+
*
|
|
22
|
+
* The label is a `<legend>` inside a `<fieldset>`, not a `<label for>`:
|
|
23
|
+
* `for` names one control, and the question here is asked of the set.
|
|
24
|
+
|
|
25
|
+
*
|
|
26
|
+
* @category form
|
|
27
|
+
* @icon radio
|
|
28
|
+
*/
|
|
29
|
+
export declare class ImpktRadioGroup extends FieldElement {
|
|
30
|
+
static properties: {
|
|
31
|
+
options: {
|
|
32
|
+
type: ArrayConstructor;
|
|
33
|
+
};
|
|
34
|
+
label: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
};
|
|
37
|
+
name: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
};
|
|
40
|
+
value: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
};
|
|
43
|
+
description: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
};
|
|
46
|
+
error: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
};
|
|
49
|
+
required: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
reflect: boolean;
|
|
52
|
+
};
|
|
53
|
+
disabled: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
reflect: boolean;
|
|
56
|
+
};
|
|
57
|
+
readonly: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
reflect: boolean;
|
|
60
|
+
};
|
|
61
|
+
requiredText: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
attribute: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
options: RadioOption[];
|
|
67
|
+
constructor();
|
|
68
|
+
static styles: import("lit").CSSResult[];
|
|
69
|
+
protected renderLabel(): TemplateResult;
|
|
70
|
+
protected renderControl(): TemplateResult;
|
|
71
|
+
/**
|
|
72
|
+
* The fieldset wraps everything, so the whole field is rebuilt here rather
|
|
73
|
+
* than relying on the base class's flat order.
|
|
74
|
+
*/
|
|
75
|
+
render(): TemplateResult;
|
|
76
|
+
updated(changed: Map<string, unknown>): void;
|
|
77
|
+
}
|
|
78
|
+
declare global {
|
|
79
|
+
interface HTMLElementTagNameMap {
|
|
80
|
+
'impkt-radio-group': ImpktRadioGroup;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { FieldElement } from '../base/FieldElement';
|
|
3
|
+
export interface SelectOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A dropdown.
|
|
9
|
+
*
|
|
10
|
+
* A native `<select>`, because the alternative is a listbox widget that has to
|
|
11
|
+
* reimplement type-ahead, keyboard selection, and the platform's own picker on
|
|
12
|
+
* touch — and whose main advantage is that the arrow can be restyled. On a
|
|
13
|
+
* phone, native wins outright: it opens the system control that the user
|
|
14
|
+
* already knows how to drive.
|
|
15
|
+
*
|
|
16
|
+
* The empty first option carries a real label rather than being blank, so a
|
|
17
|
+
* screen reader announces a choice to make rather than silence.
|
|
18
|
+
|
|
19
|
+
*
|
|
20
|
+
* @category form
|
|
21
|
+
* @icon select
|
|
22
|
+
*/
|
|
23
|
+
export declare class ImpktSelect extends FieldElement {
|
|
24
|
+
static properties: {
|
|
25
|
+
options: {
|
|
26
|
+
type: ArrayConstructor;
|
|
27
|
+
};
|
|
28
|
+
placeholder: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
};
|
|
31
|
+
label: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
};
|
|
34
|
+
name: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
};
|
|
37
|
+
value: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
};
|
|
40
|
+
description: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
};
|
|
43
|
+
error: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
};
|
|
46
|
+
required: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
reflect: boolean;
|
|
49
|
+
};
|
|
50
|
+
disabled: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
reflect: boolean;
|
|
53
|
+
};
|
|
54
|
+
readonly: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
reflect: boolean;
|
|
57
|
+
};
|
|
58
|
+
requiredText: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
attribute: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
options: SelectOption[];
|
|
64
|
+
placeholder: string;
|
|
65
|
+
constructor();
|
|
66
|
+
static styles: import("lit").CSSResult[];
|
|
67
|
+
protected renderControl(): TemplateResult;
|
|
68
|
+
updated(changed: Map<string, unknown>): void;
|
|
69
|
+
}
|
|
70
|
+
declare global {
|
|
71
|
+
interface HTMLElementTagNameMap {
|
|
72
|
+
'impkt-select': ImpktSelect;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { ImpktElement } from '../base/ImpktElement';
|
|
3
|
+
export interface SummaryRow {
|
|
4
|
+
key: string;
|
|
5
|
+
value: string;
|
|
6
|
+
/** Where "Change" goes. Omitted rows show no action. */
|
|
7
|
+
changeHref?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Key and value pairs — an order summary, a confirmation, a check-your-answers
|
|
11
|
+
* screen.
|
|
12
|
+
*
|
|
13
|
+
* **It is a description list.** `<dl>` with `<dt>` and `<dd>` says these are
|
|
14
|
+
* pairs; a stack of divs says nothing, and a table claims a grid that a
|
|
15
|
+
* two-column list does not have.
|
|
16
|
+
*
|
|
17
|
+
* **Every "Change" names what it changes.** The visible text stays short, and
|
|
18
|
+
* the accessible name is completed with visually hidden words, so a reader
|
|
19
|
+
* tabbing through hears "Change date of birth" rather than six links all called
|
|
20
|
+
* "Change". This is 2.4.4 Link Purpose, and it is the single most common
|
|
21
|
+
* failure on a check-your-answers page.
|
|
22
|
+
|
|
23
|
+
*
|
|
24
|
+
* @category content
|
|
25
|
+
* @icon list
|
|
26
|
+
*/
|
|
27
|
+
export declare class ImpktSummaryList extends ImpktElement {
|
|
28
|
+
static properties: {
|
|
29
|
+
rows: {
|
|
30
|
+
type: ArrayConstructor;
|
|
31
|
+
};
|
|
32
|
+
changeText: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
attribute: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
rows: SummaryRow[];
|
|
38
|
+
changeText: string;
|
|
39
|
+
constructor();
|
|
40
|
+
static styles: import("lit").CSSResult[];
|
|
41
|
+
render(): TemplateResult;
|
|
42
|
+
}
|
|
43
|
+
declare global {
|
|
44
|
+
interface HTMLElementTagNameMap {
|
|
45
|
+
'impkt-summary-list': ImpktSummaryList;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { ImpktElement } from '../base/ImpktElement';
|
|
3
|
+
export interface TableColumn {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
numeric?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A data table — a plan comparison, a payment schedule.
|
|
10
|
+
*
|
|
11
|
+
* **The caption is required.** It is the table's name, and a page with three
|
|
12
|
+
* unnamed tables is a page a screen-reader user has to read in full to tell
|
|
13
|
+
* apart. Visually it can be the heading they would have written anyway.
|
|
14
|
+
*
|
|
15
|
+
* **It scrolls, and the scroller is focusable.** A wide table cannot reflow to
|
|
16
|
+
* 320px without becoming unreadable, so it scrolls horizontally — and a region
|
|
17
|
+
* that scrolls must be reachable by keyboard, or a keyboard user simply cannot
|
|
18
|
+
* see the right-hand columns. `tabindex="0"` with a role and a name is the
|
|
19
|
+
* established fix, and the name is why the role is there: a bare focusable div
|
|
20
|
+
* announces nothing.
|
|
21
|
+
|
|
22
|
+
*
|
|
23
|
+
* @category content
|
|
24
|
+
* @icon table
|
|
25
|
+
*/
|
|
26
|
+
export declare class ImpktTable extends ImpktElement {
|
|
27
|
+
static properties: {
|
|
28
|
+
caption: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
};
|
|
31
|
+
columns: {
|
|
32
|
+
type: ArrayConstructor;
|
|
33
|
+
};
|
|
34
|
+
rows: {
|
|
35
|
+
type: ArrayConstructor;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
caption: string;
|
|
39
|
+
columns: TableColumn[];
|
|
40
|
+
rows: Array<Record<string, string>>;
|
|
41
|
+
constructor();
|
|
42
|
+
static styles: import("lit").CSSResult[];
|
|
43
|
+
render(): TemplateResult;
|
|
44
|
+
}
|
|
45
|
+
declare global {
|
|
46
|
+
interface HTMLElementTagNameMap {
|
|
47
|
+
'impkt-table': ImpktTable;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { FieldElement } from '../base/FieldElement';
|
|
3
|
+
/**
|
|
4
|
+
* A single-line text field.
|
|
5
|
+
*
|
|
6
|
+
* `inputmode` and `autocomplete` are first-class properties rather than
|
|
7
|
+
* afterthoughts. 1.3.5 Identify Input Purpose is a Level AA criterion that
|
|
8
|
+
* autofill satisfies directly, and it is the single cheapest accessibility win
|
|
9
|
+
* in a checkout journey — a form that fills itself is a form that someone with a
|
|
10
|
+
* motor impairment can actually finish.
|
|
11
|
+
|
|
12
|
+
*
|
|
13
|
+
* @category form
|
|
14
|
+
* @icon field
|
|
15
|
+
*/
|
|
16
|
+
export declare class ImpktTextInput extends FieldElement {
|
|
17
|
+
static properties: {
|
|
18
|
+
type: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
};
|
|
21
|
+
placeholder: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
};
|
|
24
|
+
autocomplete: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
};
|
|
27
|
+
inputmode: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
};
|
|
30
|
+
maxlength: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
};
|
|
33
|
+
label: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
};
|
|
36
|
+
name: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
};
|
|
39
|
+
value: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
};
|
|
42
|
+
description: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
};
|
|
45
|
+
error: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
};
|
|
48
|
+
required: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
reflect: boolean;
|
|
51
|
+
};
|
|
52
|
+
disabled: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
reflect: boolean;
|
|
55
|
+
};
|
|
56
|
+
readonly: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
reflect: boolean;
|
|
59
|
+
};
|
|
60
|
+
requiredText: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
attribute: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
type: 'text' | 'email' | 'tel' | 'number' | 'password' | 'date';
|
|
66
|
+
placeholder: string;
|
|
67
|
+
/** A token from the HTML autofill list — `given-name`, `postal-code`, `tel`. */
|
|
68
|
+
autocomplete: string;
|
|
69
|
+
inputmode: string;
|
|
70
|
+
maxlength: number | undefined;
|
|
71
|
+
constructor();
|
|
72
|
+
static styles: import("lit").CSSResult[];
|
|
73
|
+
protected renderControl(): TemplateResult;
|
|
74
|
+
updated(changed: Map<string, unknown>): void;
|
|
75
|
+
}
|
|
76
|
+
declare global {
|
|
77
|
+
interface HTMLElementTagNameMap {
|
|
78
|
+
'impkt-text-input': ImpktTextInput;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { FieldElement } from '../base/FieldElement';
|
|
3
|
+
/** Several lines of text — a delivery instruction, an additional note.
|
|
4
|
+
*
|
|
5
|
+
* @category form
|
|
6
|
+
* @icon field
|
|
7
|
+
*/
|
|
8
|
+
export declare class ImpktTextarea extends FieldElement {
|
|
9
|
+
static properties: {
|
|
10
|
+
rows: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
};
|
|
13
|
+
maxlength: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
};
|
|
16
|
+
label: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
};
|
|
19
|
+
name: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
};
|
|
22
|
+
value: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
};
|
|
25
|
+
description: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
};
|
|
28
|
+
error: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
};
|
|
31
|
+
required: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
reflect: boolean;
|
|
34
|
+
};
|
|
35
|
+
disabled: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
reflect: boolean;
|
|
38
|
+
};
|
|
39
|
+
readonly: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
reflect: boolean;
|
|
42
|
+
};
|
|
43
|
+
requiredText: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
attribute: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
rows: number;
|
|
49
|
+
maxlength: number | undefined;
|
|
50
|
+
constructor();
|
|
51
|
+
static styles: import("lit").CSSResult[];
|
|
52
|
+
protected renderControl(): TemplateResult;
|
|
53
|
+
updated(changed: Map<string, unknown>): void;
|
|
54
|
+
}
|
|
55
|
+
declare global {
|
|
56
|
+
interface HTMLElementTagNameMap {
|
|
57
|
+
'impkt-textarea': ImpktTextarea;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @impkt/ui — standard custom elements, styled only from design tokens,
|
|
3
|
+
* built to WCAG 2.2 AA.
|
|
4
|
+
*
|
|
5
|
+
* Importing this module defines every element. There is no registry to
|
|
6
|
+
* populate and no provider to mount, which is what lets the same build serve
|
|
7
|
+
* React, Vue, Angular and the CMS preview without four integrations.
|
|
8
|
+
*/
|
|
9
|
+
export { ImpktButton } from './components/button';
|
|
10
|
+
export { ImpktTextInput } from './components/text-input';
|
|
11
|
+
export { ImpktSelect, type SelectOption } from './components/select';
|
|
12
|
+
export { ImpktCheckbox } from './components/checkbox';
|
|
13
|
+
export { ImpktRadioGroup, type RadioOption } from './components/radio-group';
|
|
14
|
+
export { ImpktAlert, type AlertTone } from './components/alert';
|
|
15
|
+
export { ImpktStack, ImpktCard, ImpktHeading, ImpktText } from './components/layout';
|
|
16
|
+
export { ImpktLink } from './components/link';
|
|
17
|
+
export { ImpktImage, ImpktLogo, ImpktDocumentLink } from './components/media';
|
|
18
|
+
export { ImpktPrice } from './components/price';
|
|
19
|
+
export { ImpktSummaryList, type SummaryRow } from './components/summary-list';
|
|
20
|
+
export { ImpktTable, type TableColumn } from './components/table';
|
|
21
|
+
export { ImpktAccordion, type AccordionItem } from './components/accordion';
|
|
22
|
+
export { ImpktProgress, type ProgressStep } from './components/progress';
|
|
23
|
+
export { ImpktTextarea } from './components/textarea';
|
|
24
|
+
export { ImpktCheckboxGroup, type CheckboxOption } from './components/checkbox-group';
|
|
25
|
+
export { ImpktDateInput } from './components/date-input';
|
|
26
|
+
export { ImpktDialog } from './components/dialog';
|
|
27
|
+
export { ImpktElement } from './base/ImpktElement';
|
|
28
|
+
export { FieldElement } from './base/FieldElement';
|
|
29
|
+
export { token, space, fontSize, lineHeight, fontWeight, t } from './base/tokens';
|
|
30
|
+
export { ImpktGrid } from './components/grid';
|
|
31
|
+
export { ImpktHelp, type HelpKind } from './components/help';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ImpktSelect
|
|
3
|
+
} from "./chunk-XEN5NV55.js";
|
|
4
|
+
import {
|
|
5
|
+
ImpktSummaryList
|
|
6
|
+
} from "./chunk-GU4UQKJP.js";
|
|
7
|
+
import {
|
|
8
|
+
ImpktTable
|
|
9
|
+
} from "./chunk-TRLEYGGH.js";
|
|
10
|
+
import {
|
|
11
|
+
ImpktTextInput
|
|
12
|
+
} from "./chunk-NEWN44LO.js";
|
|
13
|
+
import {
|
|
14
|
+
ImpktTextarea
|
|
15
|
+
} from "./chunk-7T34CRBF.js";
|
|
16
|
+
import {
|
|
17
|
+
ImpktGrid
|
|
18
|
+
} from "./chunk-4YAA7EML.js";
|
|
19
|
+
import {
|
|
20
|
+
ImpktHelp
|
|
21
|
+
} from "./chunk-AC6G7X3G.js";
|
|
22
|
+
import {
|
|
23
|
+
ImpktCard,
|
|
24
|
+
ImpktHeading,
|
|
25
|
+
ImpktStack,
|
|
26
|
+
ImpktText
|
|
27
|
+
} from "./chunk-BUWE6XGX.js";
|
|
28
|
+
import {
|
|
29
|
+
ImpktLink
|
|
30
|
+
} from "./chunk-KAU3V65B.js";
|
|
31
|
+
import {
|
|
32
|
+
ImpktDocumentLink,
|
|
33
|
+
ImpktImage,
|
|
34
|
+
ImpktLogo
|
|
35
|
+
} from "./chunk-IHEEUM3M.js";
|
|
36
|
+
import {
|
|
37
|
+
ImpktPrice
|
|
38
|
+
} from "./chunk-KC6RKWO6.js";
|
|
39
|
+
import {
|
|
40
|
+
ImpktProgress
|
|
41
|
+
} from "./chunk-BOLZMDAS.js";
|
|
42
|
+
import {
|
|
43
|
+
ImpktRadioGroup
|
|
44
|
+
} from "./chunk-T63FI4ET.js";
|
|
45
|
+
import {
|
|
46
|
+
ImpktAccordion
|
|
47
|
+
} from "./chunk-T4HSPWA7.js";
|
|
48
|
+
import {
|
|
49
|
+
ImpktAlert
|
|
50
|
+
} from "./chunk-SSNCGJ5W.js";
|
|
51
|
+
import {
|
|
52
|
+
ImpktButton
|
|
53
|
+
} from "./chunk-BBWMRF5N.js";
|
|
54
|
+
import {
|
|
55
|
+
ImpktCheckboxGroup
|
|
56
|
+
} from "./chunk-Z4KZG2E3.js";
|
|
57
|
+
import {
|
|
58
|
+
ImpktCheckbox
|
|
59
|
+
} from "./chunk-HJ2V635J.js";
|
|
60
|
+
import {
|
|
61
|
+
ImpktDateInput
|
|
62
|
+
} from "./chunk-GEBLDC2J.js";
|
|
63
|
+
import {
|
|
64
|
+
FieldElement
|
|
65
|
+
} from "./chunk-6HZA6A3L.js";
|
|
66
|
+
import {
|
|
67
|
+
ImpktDialog
|
|
68
|
+
} from "./chunk-TOTVL3YH.js";
|
|
69
|
+
import {
|
|
70
|
+
ImpktElement,
|
|
71
|
+
fontSize,
|
|
72
|
+
fontWeight,
|
|
73
|
+
lineHeight,
|
|
74
|
+
space,
|
|
75
|
+
t,
|
|
76
|
+
token
|
|
77
|
+
} from "./chunk-J5KAMJ2N.js";
|
|
78
|
+
export {
|
|
79
|
+
FieldElement,
|
|
80
|
+
ImpktAccordion,
|
|
81
|
+
ImpktAlert,
|
|
82
|
+
ImpktButton,
|
|
83
|
+
ImpktCard,
|
|
84
|
+
ImpktCheckbox,
|
|
85
|
+
ImpktCheckboxGroup,
|
|
86
|
+
ImpktDateInput,
|
|
87
|
+
ImpktDialog,
|
|
88
|
+
ImpktDocumentLink,
|
|
89
|
+
ImpktElement,
|
|
90
|
+
ImpktGrid,
|
|
91
|
+
ImpktHeading,
|
|
92
|
+
ImpktHelp,
|
|
93
|
+
ImpktImage,
|
|
94
|
+
ImpktLink,
|
|
95
|
+
ImpktLogo,
|
|
96
|
+
ImpktPrice,
|
|
97
|
+
ImpktProgress,
|
|
98
|
+
ImpktRadioGroup,
|
|
99
|
+
ImpktSelect,
|
|
100
|
+
ImpktStack,
|
|
101
|
+
ImpktSummaryList,
|
|
102
|
+
ImpktTable,
|
|
103
|
+
ImpktText,
|
|
104
|
+
ImpktTextInput,
|
|
105
|
+
ImpktTextarea,
|
|
106
|
+
fontSize,
|
|
107
|
+
fontWeight,
|
|
108
|
+
lineHeight,
|
|
109
|
+
space,
|
|
110
|
+
t,
|
|
111
|
+
token
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomic-ui/ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "The Impkt component library: standard custom elements, styled only from design tokens, built to WCAG 2.2 AA.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./components/*": {
|
|
14
|
+
"types": "./dist/components/*.d.ts",
|
|
15
|
+
"import": "./dist/components/*.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"lit": "^3.3.3",
|
|
20
|
+
"@atomic-ui/design-tokens": "0.1.1"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/node": "^20.14.0",
|
|
24
|
+
"axe-core": "^4.14.0",
|
|
25
|
+
"happy-dom": "^21.0.4",
|
|
26
|
+
"typescript": "^5.5.0",
|
|
27
|
+
"vitest": "^2.0.0",
|
|
28
|
+
"@playwright/test": "^1.46.0",
|
|
29
|
+
"esbuild": "^0.21.5",
|
|
30
|
+
"@custom-elements-manifest/analyzer": "^0.11.0"
|
|
31
|
+
},
|
|
32
|
+
"customElements": "custom-elements.json",
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"README.md"
|
|
36
|
+
],
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "tsc -p tsconfig.json",
|
|
42
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
43
|
+
"test": "vitest run",
|
|
44
|
+
"test:browser": "playwright test",
|
|
45
|
+
"manifest": "custom-elements-manifest analyze"
|
|
46
|
+
}
|
|
47
|
+
}
|