@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.
Files changed (113) hide show
  1. package/README.md +134 -2
  2. package/dist/base/FieldElement.d.ts +95 -0
  3. package/dist/base/ImpktElement.d.ts +21 -0
  4. package/dist/base/styles.d.ts +42 -0
  5. package/dist/base/tokens.d.ts +68 -0
  6. package/dist/chunk-4YAA7EML.js +43 -0
  7. package/dist/chunk-4YAA7EML.js.map +1 -0
  8. package/dist/chunk-6HZA6A3L.js +162 -0
  9. package/dist/chunk-6HZA6A3L.js.map +1 -0
  10. package/dist/chunk-7T34CRBF.js +75 -0
  11. package/dist/chunk-7T34CRBF.js.map +1 -0
  12. package/dist/chunk-AC6G7X3G.js +84 -0
  13. package/dist/chunk-AC6G7X3G.js.map +1 -0
  14. package/dist/chunk-BBWMRF5N.js +157 -0
  15. package/dist/chunk-BBWMRF5N.js.map +1 -0
  16. package/dist/chunk-BOLZMDAS.js +95 -0
  17. package/dist/chunk-BOLZMDAS.js.map +1 -0
  18. package/dist/chunk-BUWE6XGX.js +152 -0
  19. package/dist/chunk-BUWE6XGX.js.map +1 -0
  20. package/dist/chunk-GEBLDC2J.js +136 -0
  21. package/dist/chunk-GEBLDC2J.js.map +1 -0
  22. package/dist/chunk-GU4UQKJP.js +120 -0
  23. package/dist/chunk-GU4UQKJP.js.map +1 -0
  24. package/dist/chunk-HJ2V635J.js +88 -0
  25. package/dist/chunk-HJ2V635J.js.map +1 -0
  26. package/dist/chunk-IHEEUM3M.js +162 -0
  27. package/dist/chunk-IHEEUM3M.js.map +1 -0
  28. package/dist/chunk-J5KAMJ2N.js +138 -0
  29. package/dist/chunk-J5KAMJ2N.js.map +1 -0
  30. package/dist/chunk-KAU3V65B.js +65 -0
  31. package/dist/chunk-KAU3V65B.js.map +1 -0
  32. package/dist/chunk-KC6RKWO6.js +81 -0
  33. package/dist/chunk-KC6RKWO6.js.map +1 -0
  34. package/dist/chunk-NEWN44LO.js +92 -0
  35. package/dist/chunk-NEWN44LO.js.map +1 -0
  36. package/dist/chunk-SSNCGJ5W.js +105 -0
  37. package/dist/chunk-SSNCGJ5W.js.map +1 -0
  38. package/dist/chunk-T4HSPWA7.js +122 -0
  39. package/dist/chunk-T4HSPWA7.js.map +1 -0
  40. package/dist/chunk-T63FI4ET.js +139 -0
  41. package/dist/chunk-T63FI4ET.js.map +1 -0
  42. package/dist/chunk-TOTVL3YH.js +130 -0
  43. package/dist/chunk-TOTVL3YH.js.map +1 -0
  44. package/dist/chunk-TRLEYGGH.js +102 -0
  45. package/dist/chunk-TRLEYGGH.js.map +1 -0
  46. package/dist/chunk-XEN5NV55.js +79 -0
  47. package/dist/chunk-XEN5NV55.js.map +1 -0
  48. package/dist/chunk-Z4KZG2E3.js +131 -0
  49. package/dist/chunk-Z4KZG2E3.js.map +1 -0
  50. package/dist/components/accordion.d.ts +66 -0
  51. package/dist/components/accordion.js +8 -0
  52. package/dist/components/accordion.js.map +1 -0
  53. package/dist/components/alert.d.ts +49 -0
  54. package/dist/components/alert.js +8 -0
  55. package/dist/components/alert.js.map +1 -0
  56. package/dist/components/button.d.ts +70 -0
  57. package/dist/components/button.js +8 -0
  58. package/dist/components/button.js.map +1 -0
  59. package/dist/components/checkbox-group.d.ts +79 -0
  60. package/dist/components/checkbox-group.js +9 -0
  61. package/dist/components/checkbox-group.js.map +1 -0
  62. package/dist/components/checkbox.d.ts +64 -0
  63. package/dist/components/checkbox.js +9 -0
  64. package/dist/components/checkbox.js.map +1 -0
  65. package/dist/components/date-input.d.ts +95 -0
  66. package/dist/components/date-input.js +9 -0
  67. package/dist/components/date-input.js.map +1 -0
  68. package/dist/components/dialog.d.ts +61 -0
  69. package/dist/components/dialog.js +8 -0
  70. package/dist/components/dialog.js.map +1 -0
  71. package/dist/components/grid.d.ts +34 -0
  72. package/dist/components/grid.js +8 -0
  73. package/dist/components/grid.js.map +1 -0
  74. package/dist/components/help.d.ts +103 -0
  75. package/dist/components/help.js +8 -0
  76. package/dist/components/help.js.map +1 -0
  77. package/dist/components/layout.d.ts +100 -0
  78. package/dist/components/layout.js +14 -0
  79. package/dist/components/layout.js.map +1 -0
  80. package/dist/components/link.d.ts +46 -0
  81. package/dist/components/link.js +8 -0
  82. package/dist/components/link.js.map +1 -0
  83. package/dist/components/media.d.ts +164 -0
  84. package/dist/components/media.js +12 -0
  85. package/dist/components/media.js.map +1 -0
  86. package/dist/components/price.d.ts +67 -0
  87. package/dist/components/price.js +8 -0
  88. package/dist/components/price.js.map +1 -0
  89. package/dist/components/progress.d.ts +50 -0
  90. package/dist/components/progress.js +8 -0
  91. package/dist/components/progress.js.map +1 -0
  92. package/dist/components/radio-group.d.ts +82 -0
  93. package/dist/components/radio-group.js +9 -0
  94. package/dist/components/radio-group.js.map +1 -0
  95. package/dist/components/select.d.ts +74 -0
  96. package/dist/components/select.js +9 -0
  97. package/dist/components/select.js.map +1 -0
  98. package/dist/components/summary-list.d.ts +47 -0
  99. package/dist/components/summary-list.js +8 -0
  100. package/dist/components/summary-list.js.map +1 -0
  101. package/dist/components/table.d.ts +49 -0
  102. package/dist/components/table.js +8 -0
  103. package/dist/components/table.js.map +1 -0
  104. package/dist/components/text-input.d.ts +80 -0
  105. package/dist/components/text-input.js +9 -0
  106. package/dist/components/text-input.js.map +1 -0
  107. package/dist/components/textarea.d.ts +59 -0
  108. package/dist/components/textarea.js +9 -0
  109. package/dist/components/textarea.js.map +1 -0
  110. package/dist/index.d.ts +31 -0
  111. package/dist/index.js +113 -0
  112. package/dist/index.js.map +1 -0
  113. package/package.json +45 -4
@@ -0,0 +1,103 @@
1
+ import { nothing, type TemplateResult } from 'lit';
2
+ import { ImpktElement } from '../base/ImpktElement';
3
+ /**
4
+ * What form a help mechanism takes.
5
+ *
6
+ * `link` goes somewhere: a help page, a contact form, a chat. The other four
7
+ * are the "human contact details" that 3.2.6 Consistent Help names, shown as
8
+ * text so a reader can see them without following anything.
9
+ */
10
+ export type HelpKind = 'link' | 'phone' | 'email' | 'address' | 'hours';
11
+ /**
12
+ * A help link, or contact details shown as text.
13
+ *
14
+ * **Its identity is `mechanismId`, not its wording or destination.** 3.2.6
15
+ * Consistent Help asks that help offered on several pages appears in the same
16
+ * relative order on each. Strata checks that at publish by comparing these ids
17
+ * across pages, so the label can be reworded and the number can change
18
+ * without the check treating it as a different mechanism. It is literal and
19
+ * cannot be bound, because an id that a data response could change is one the
20
+ * check cannot compare.
21
+ *
22
+ * **Contact details are text, not a link to a page that has them.** The
23
+ * criterion lists a phone number, an email address and a postal address as
24
+ * help in their own right, and a reader who has to follow a link to find the
25
+ * number has been given a link rather than the number. A phone number renders
26
+ * as a `tel:` link and an email address as a `mailto:` link, each with the
27
+ * detail itself as the visible text. The link target is derived from the
28
+ * visible detail rather than authored separately, so the number a reader sees
29
+ * and the number their phone dials cannot drift apart. An address or opening
30
+ * hours render as plain text and keep the line breaks they were written with.
31
+ *
32
+ * **Contact links are named by their caption and their detail.** A phone
33
+ * link's accessible name is "Call us 0800 123 456" rather than the bare
34
+ * number, because a reader moving through a list of links hears each one out
35
+ * of context (2.4.4 Link Purpose). The visible text stays inside the name, so
36
+ * 2.5.3 Label in Name holds for a reader who speaks it.
37
+ *
38
+ * **Nothing unnamed or empty is ever rendered.** Runtime bindings may be
39
+ * absent while data loads, or resolve to blank text. A link with no label, or
40
+ * contact details with no detail, render nothing rather than a focusable link
41
+ * with no name or a caption with nothing under it. Contact details whose
42
+ * caption is blank still show the detail, because a phone number or an
43
+ * address names itself. For that reason the caption is optional for contact
44
+ * details, and publishing requires a label only on a link. Publishing does
45
+ * require what each kind cannot do without: a link's label and address, and
46
+ * contact details' detail, so the empty states are only reached at runtime.
47
+ *
48
+ * **Every link meets the minimum target size.** Links here are at least the
49
+ * locked `target.min` token in both directions (2.5.8 Target Size), because a
50
+ * help link usually stands on its own line, where the criterion's inline
51
+ * exemption does not apply.
52
+ *
53
+ * @category action
54
+ * @icon help
55
+ * @role help
56
+ */
57
+ export declare class ImpktHelp extends ImpktElement {
58
+ static properties: {
59
+ mechanismId: {
60
+ type: StringConstructor;
61
+ attribute: string;
62
+ };
63
+ kind: {
64
+ type: StringConstructor;
65
+ reflect: boolean;
66
+ };
67
+ href: {
68
+ type: StringConstructor;
69
+ };
70
+ label: {
71
+ type: StringConstructor;
72
+ };
73
+ detail: {
74
+ type: StringConstructor;
75
+ };
76
+ };
77
+ /** Stable identity across pages, independent of wording and destination. */
78
+ mechanismId: string;
79
+ /** Whether this is a link to help, or contact details shown as text. */
80
+ kind: 'link' | 'phone' | 'email' | 'address' | 'hours';
81
+ /** Where a link goes. Phone and email links are built from the detail instead. */
82
+ href: string;
83
+ /**
84
+ * The visible name. For a link it is the link text. For contact details it
85
+ * is the caption shown above them, such as "Call us".
86
+ */
87
+ label: string;
88
+ /**
89
+ * The contact detail itself: a phone number, an email address, a postal
90
+ * address or opening hours. Line breaks are kept. Unused by a link.
91
+ */
92
+ detail: string;
93
+ constructor();
94
+ static styles: import("lit").CSSResult[];
95
+ render(): TemplateResult | typeof nothing;
96
+ private renderLink;
97
+ private renderContact;
98
+ }
99
+ declare global {
100
+ interface HTMLElementTagNameMap {
101
+ 'impkt-help': ImpktHelp;
102
+ }
103
+ }
@@ -0,0 +1,8 @@
1
+ import {
2
+ ImpktHelp
3
+ } from "../chunk-AC6G7X3G.js";
4
+ import "../chunk-J5KAMJ2N.js";
5
+ export {
6
+ ImpktHelp
7
+ };
8
+ //# sourceMappingURL=help.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,100 @@
1
+ import { type TemplateResult } from 'lit';
2
+ import { ImpktElement } from '../base/ImpktElement';
3
+ /**
4
+ * Layout and typography primitives.
5
+ *
6
+ * These are the components a composition is mostly made of, and they are
7
+ * deliberately dull. Their one job is that spacing, type and colour come from
8
+ * tokens, so that a page built in the CMS cannot contain a hard-coded 13px.
9
+ */
10
+ /** Vertical rhythm. Every gap is a spacing token, never a number.
11
+ *
12
+ * @category layout
13
+ * @icon stack
14
+ * @slot - The things being stacked.
15
+ */
16
+ export declare class ImpktStack extends ImpktElement {
17
+ static properties: {
18
+ gap: {
19
+ type: StringConstructor;
20
+ reflect: boolean;
21
+ };
22
+ };
23
+ gap: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
24
+ constructor();
25
+ static styles: import("lit").CSSResult[];
26
+ render(): TemplateResult;
27
+ }
28
+ /** A surface. What text is read against, and what contrast is measured from.
29
+ *
30
+ * @category layout
31
+ * @icon card
32
+ * @slot - What sits on the card.
33
+ */
34
+ export declare class ImpktCard extends ImpktElement {
35
+ static styles: import("lit").CSSResult[];
36
+ render(): TemplateResult;
37
+ }
38
+ /**
39
+ * A heading.
40
+ *
41
+ * `level` is required and renders the matching `<h1>`–`<h6>`, because heading
42
+ * level is document structure rather than appearance: a screen-reader user
43
+ * navigates by it, and a page whose levels skip is a page they cannot skim.
44
+ * Size is a separate property, so a visually small `<h2>` needs no lie about
45
+ * its level — which is the usual reason levels end up wrong.
46
+
47
+ *
48
+ * @category typography
49
+ * @icon heading
50
+ * @role heading
51
+ * @slot - The heading text.
52
+ */
53
+ export declare class ImpktHeading extends ImpktElement {
54
+ static properties: {
55
+ level: {
56
+ type: NumberConstructor;
57
+ reflect: boolean;
58
+ };
59
+ size: {
60
+ type: StringConstructor;
61
+ reflect: boolean;
62
+ };
63
+ };
64
+ level: 1 | 2 | 3 | 4 | 5 | 6;
65
+ size: '3xl' | '2xl' | 'xl' | 'lg' | 'md';
66
+ constructor();
67
+ static styles: import("lit").CSSResult[];
68
+ render(): TemplateResult;
69
+ }
70
+ /** A paragraph.
71
+ *
72
+ * @category typography
73
+ * @icon text
74
+ * @slot - The paragraph text.
75
+ */
76
+ export declare class ImpktText extends ImpktElement {
77
+ static properties: {
78
+ size: {
79
+ type: StringConstructor;
80
+ reflect: boolean;
81
+ };
82
+ tone: {
83
+ type: StringConstructor;
84
+ reflect: boolean;
85
+ };
86
+ };
87
+ size: 'sm' | 'md' | 'lg';
88
+ tone: 'default' | 'muted';
89
+ constructor();
90
+ static styles: import("lit").CSSResult[];
91
+ render(): TemplateResult;
92
+ }
93
+ declare global {
94
+ interface HTMLElementTagNameMap {
95
+ 'impkt-stack': ImpktStack;
96
+ 'impkt-card': ImpktCard;
97
+ 'impkt-heading': ImpktHeading;
98
+ 'impkt-text': ImpktText;
99
+ }
100
+ }
@@ -0,0 +1,14 @@
1
+ import {
2
+ ImpktCard,
3
+ ImpktHeading,
4
+ ImpktStack,
5
+ ImpktText
6
+ } from "../chunk-BUWE6XGX.js";
7
+ import "../chunk-J5KAMJ2N.js";
8
+ export {
9
+ ImpktCard,
10
+ ImpktHeading,
11
+ ImpktStack,
12
+ ImpktText
13
+ };
14
+ //# sourceMappingURL=layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,46 @@
1
+ import { type TemplateResult } from 'lit';
2
+ import { ImpktElement } from '../base/ImpktElement';
3
+ /**
4
+ * A link.
5
+ *
6
+ * **A new tab is always announced.** When `external` is set, the accessible
7
+ * name gains "opens in a new tab" — not as a tooltip, which no screen reader
8
+ * reads, and not as an icon alone, which carries no text. An unannounced new
9
+ * tab breaks the back button for someone who cannot see that the window
10
+ * changed, and that is what 3.2.5 is about.
11
+ *
12
+ * **It is underlined.** 1.4.1 Use of Colour: a link distinguished from body
13
+ * text only by being a different colour is not distinguished at all for a
14
+ * reader who cannot tell the two colours apart.
15
+
16
+ *
17
+ * @category action
18
+ * @icon link
19
+ * @slot - The link text.
20
+ */
21
+ export declare class ImpktLink extends ImpktElement {
22
+ static properties: {
23
+ href: {
24
+ type: StringConstructor;
25
+ };
26
+ external: {
27
+ type: BooleanConstructor;
28
+ reflect: boolean;
29
+ };
30
+ externalText: {
31
+ type: StringConstructor;
32
+ attribute: string;
33
+ };
34
+ };
35
+ href: string;
36
+ external: boolean;
37
+ externalText: string;
38
+ constructor();
39
+ static styles: import("lit").CSSResult[];
40
+ render(): TemplateResult;
41
+ }
42
+ declare global {
43
+ interface HTMLElementTagNameMap {
44
+ 'impkt-link': ImpktLink;
45
+ }
46
+ }
@@ -0,0 +1,8 @@
1
+ import {
2
+ ImpktLink
3
+ } from "../chunk-KAU3V65B.js";
4
+ import "../chunk-J5KAMJ2N.js";
5
+ export {
6
+ ImpktLink
7
+ };
8
+ //# sourceMappingURL=link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,164 @@
1
+ import { type TemplateResult } from 'lit';
2
+ import { ImpktElement } from '../base/ImpktElement';
3
+ /**
4
+ * An image.
5
+ *
6
+ * `alt` is required and may be the empty string, which is a decision rather
7
+ * than laxity: an empty alt is the correct and only way to mark an image as
8
+ * decorative, and a missing alt is a different thing entirely — it leaves a
9
+ * screen reader to read the file name. Making the property required forces the
10
+ * author to say which they meant.
11
+ *
12
+ * `width` and `height` are the intrinsic pixel size. Without them the browser
13
+ * cannot reserve space and the page jumps as each image loads, which is a
14
+ * usability problem for everyone and a serious one for anyone using a screen
15
+ * magnifier, who loses their place entirely.
16
+
17
+ *
18
+ * @category media
19
+ * @icon image
20
+ * @role image
21
+ */
22
+ export declare class ImpktImage extends ImpktElement {
23
+ static properties: {
24
+ src: {
25
+ type: StringConstructor;
26
+ };
27
+ alt: {
28
+ type: StringConstructor;
29
+ };
30
+ decorative: {
31
+ type: BooleanConstructor;
32
+ reflect: boolean;
33
+ };
34
+ width: {
35
+ type: NumberConstructor;
36
+ };
37
+ height: {
38
+ type: NumberConstructor;
39
+ };
40
+ focalX: {
41
+ type: NumberConstructor;
42
+ attribute: string;
43
+ };
44
+ focalY: {
45
+ type: NumberConstructor;
46
+ attribute: string;
47
+ };
48
+ loading: {
49
+ type: StringConstructor;
50
+ };
51
+ };
52
+ src: string;
53
+ alt: string;
54
+ /**
55
+ * This image says nothing a reader needs.
56
+ *
57
+ * An empty `alt` is the correct way to mark a decorative image AND what a
58
+ * missing one looks like, so the two are indistinguishable to anything
59
+ * downstream — which is why the commonest accessibility failure on the web
60
+ * survives every automated check. Only the author knows which they meant,
61
+ * so this is where they say it, and the publish gate holds them to it.
62
+ */
63
+ decorative: boolean;
64
+ width: number | undefined;
65
+ height: number | undefined;
66
+ /** The fraction of the image that must survive a crop. */
67
+ focalX: number;
68
+ focalY: number;
69
+ loading: 'lazy' | 'eager';
70
+ constructor();
71
+ static styles: import("lit").CSSResult[];
72
+ render(): TemplateResult;
73
+ }
74
+ /**
75
+ * The partner's logo.
76
+ *
77
+ * Separate from `impkt-image` for one reason: it is the most prominent image on
78
+ * every page and its alt text is the brand name, so it should not be possible
79
+ * to ship it with an empty alt by copying a decorative image. `src` and `alt`
80
+ * come from the brand's assets.
81
+ *
82
+ * `on-dark` picks the dark-surface variant where the brand supplies one. A
83
+ * logo that disappears into a dark footer is not a styling problem, it is a
84
+ * missing piece of information.
85
+
86
+ *
87
+ * @category media
88
+ * @icon logo
89
+ */
90
+ export declare class ImpktLogo extends ImpktElement {
91
+ static properties: {
92
+ src: {
93
+ type: StringConstructor;
94
+ };
95
+ srcDark: {
96
+ type: StringConstructor;
97
+ attribute: string;
98
+ };
99
+ alt: {
100
+ type: StringConstructor;
101
+ };
102
+ onDark: {
103
+ type: BooleanConstructor;
104
+ attribute: string;
105
+ reflect: boolean;
106
+ };
107
+ height: {
108
+ type: NumberConstructor;
109
+ };
110
+ };
111
+ src: string;
112
+ srcDark: string;
113
+ alt: string;
114
+ onDark: boolean;
115
+ height: number;
116
+ constructor();
117
+ static styles: import("lit").CSSResult[];
118
+ render(): TemplateResult;
119
+ }
120
+ /**
121
+ * A downloadable document — terms of service, a product sheet, a price list.
122
+ *
123
+ * The file type and size are part of the accessible name, not decoration
124
+ * beside it. A list of links all named "Download" fails 2.4.4 Link Purpose,
125
+ * and a reader tabbing between them cannot tell which document they are on.
126
+
127
+ *
128
+ * @category media
129
+ * @icon document
130
+ */
131
+ export declare class ImpktDocumentLink extends ImpktElement {
132
+ static properties: {
133
+ href: {
134
+ type: StringConstructor;
135
+ };
136
+ label: {
137
+ type: StringConstructor;
138
+ };
139
+ fileType: {
140
+ type: StringConstructor;
141
+ attribute: string;
142
+ };
143
+ byteSize: {
144
+ type: NumberConstructor;
145
+ attribute: string;
146
+ };
147
+ };
148
+ href: string;
149
+ label: string;
150
+ fileType: string;
151
+ byteSize: number | undefined;
152
+ constructor();
153
+ static styles: import("lit").CSSResult[];
154
+ /** "240 KB". Rounded, because the exact byte count helps nobody. */
155
+ private get size();
156
+ render(): TemplateResult;
157
+ }
158
+ declare global {
159
+ interface HTMLElementTagNameMap {
160
+ 'impkt-image': ImpktImage;
161
+ 'impkt-logo': ImpktLogo;
162
+ 'impkt-document-link': ImpktDocumentLink;
163
+ }
164
+ }
@@ -0,0 +1,12 @@
1
+ import {
2
+ ImpktDocumentLink,
3
+ ImpktImage,
4
+ ImpktLogo
5
+ } from "../chunk-IHEEUM3M.js";
6
+ import "../chunk-J5KAMJ2N.js";
7
+ export {
8
+ ImpktDocumentLink,
9
+ ImpktImage,
10
+ ImpktLogo
11
+ };
12
+ //# sourceMappingURL=media.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,67 @@
1
+ import { type TemplateResult } from 'lit';
2
+ import { ImpktElement } from '../base/ImpktElement';
3
+ /**
4
+ * A money amount.
5
+ *
6
+ * This component exists because of a decision taken in the content model: a
7
+ * binding names a source and cannot compute
8
+ * ([ADR 0003](../../../../docs/decisions/0003-binding-expressions.md)). The
9
+ * consequence is that formatting lives here, where the locale and the currency
10
+ * are known, rather than in authored content — so there is one place that
11
+ * decides what "£24.99" looks like, and nobody writes a format string into a
12
+ * CMS field.
13
+ *
14
+ * **The amount is one text node.** Splitting the pounds and the pence into
15
+ * separate elements for typographic effect makes some screen readers read them
16
+ * as two numbers, and "twenty-four ninety-nine" becomes "twenty four, ninety
17
+ * nine". The visual emphasis is done with CSS over one node instead.
18
+ *
19
+ * **Minor units in, major units out.** `amount` is in pence, because a price
20
+ * that arrives from a pricing API as a float has already lost money to binary
21
+ * rounding before it reaches the screen.
22
+
23
+ *
24
+ * @category content
25
+ * @icon price
26
+ */
27
+ export declare class ImpktPrice extends ImpktElement {
28
+ static properties: {
29
+ amount: {
30
+ type: NumberConstructor;
31
+ };
32
+ currency: {
33
+ type: StringConstructor;
34
+ };
35
+ locale: {
36
+ type: StringConstructor;
37
+ };
38
+ period: {
39
+ type: StringConstructor;
40
+ };
41
+ size: {
42
+ type: StringConstructor;
43
+ reflect: boolean;
44
+ };
45
+ pending: {
46
+ type: StringConstructor;
47
+ };
48
+ };
49
+ /** In minor units — pence, cents. */
50
+ amount: number | undefined;
51
+ currency: string;
52
+ locale: string;
53
+ /** "a month", "a year". Read after the amount. */
54
+ period: string;
55
+ size: 'md' | 'lg' | 'xl';
56
+ /** Shown while there is no amount yet. A price takes seconds to arrive. */
57
+ pending: string;
58
+ constructor();
59
+ static styles: import("lit").CSSResult[];
60
+ private get formatted();
61
+ render(): TemplateResult;
62
+ }
63
+ declare global {
64
+ interface HTMLElementTagNameMap {
65
+ 'impkt-price': ImpktPrice;
66
+ }
67
+ }
@@ -0,0 +1,8 @@
1
+ import {
2
+ ImpktPrice
3
+ } from "../chunk-KC6RKWO6.js";
4
+ import "../chunk-J5KAMJ2N.js";
5
+ export {
6
+ ImpktPrice
7
+ };
8
+ //# sourceMappingURL=price.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,50 @@
1
+ import { type TemplateResult } from 'lit';
2
+ import { ImpktElement } from '../base/ImpktElement';
3
+ export interface ProgressStep {
4
+ id: string;
5
+ label: string;
6
+ }
7
+ /**
8
+ * Where the customer is in a journey.
9
+ *
10
+ * **It is not a `progressbar`.** That role is for a task completing — a file
11
+ * uploading, a price calculating — and it carries `aria-valuenow`. A journey
12
+ * indicator is navigation: an ordered list of named steps with
13
+ * `aria-current="step"` on the one you are on. Using `progressbar` here
14
+ * announces a percentage and loses the step names, which are the only useful
15
+ * part.
16
+ *
17
+ * **The position is said in words.** "Step 2 of 5" is visually hidden and read
18
+ * aloud, because the visual design communicates position through colour and a
19
+ * filled bar, and neither is available to a screen-reader user — nor to anyone
20
+ * who cannot distinguish the filled colour from the empty one, which is 1.4.1.
21
+
22
+ *
23
+ * @category content
24
+ * @icon progress
25
+ */
26
+ export declare class ImpktProgress extends ImpktElement {
27
+ static properties: {
28
+ steps: {
29
+ type: ArrayConstructor;
30
+ };
31
+ current: {
32
+ type: StringConstructor;
33
+ };
34
+ label: {
35
+ type: StringConstructor;
36
+ };
37
+ };
38
+ steps: ProgressStep[];
39
+ /** The id of the step being shown. */
40
+ current: string;
41
+ label: string;
42
+ constructor();
43
+ static styles: import("lit").CSSResult[];
44
+ render(): TemplateResult;
45
+ }
46
+ declare global {
47
+ interface HTMLElementTagNameMap {
48
+ 'impkt-progress': ImpktProgress;
49
+ }
50
+ }
@@ -0,0 +1,8 @@
1
+ import {
2
+ ImpktProgress
3
+ } from "../chunk-BOLZMDAS.js";
4
+ import "../chunk-J5KAMJ2N.js";
5
+ export {
6
+ ImpktProgress
7
+ };
8
+ //# sourceMappingURL=progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}