@atomic-ui/ui 0.1.4 → 0.1.7

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 (141) hide show
  1. package/README.md +30 -6
  2. package/dist/base/FieldElement.d.ts +7 -0
  3. package/dist/base/tokens.d.ts +23 -1
  4. package/dist/chunk-2YQA3VBY.js +85 -0
  5. package/dist/chunk-2YQA3VBY.js.map +1 -0
  6. package/dist/{chunk-LFOWTFMR.js → chunk-4HU4Y23Q.js} +3 -3
  7. package/dist/chunk-5EA4IDUD.js +177 -0
  8. package/dist/chunk-5EA4IDUD.js.map +1 -0
  9. package/dist/{chunk-3OSL2HMN.js → chunk-6ICOJPMD.js} +7 -5
  10. package/dist/chunk-6ICOJPMD.js.map +1 -0
  11. package/dist/{chunk-ZXCSQ6MK.js → chunk-7BIQ3K6H.js} +10 -2
  12. package/dist/chunk-7BIQ3K6H.js.map +1 -0
  13. package/dist/chunk-7Y6UCSUS.js +361 -0
  14. package/dist/chunk-7Y6UCSUS.js.map +1 -0
  15. package/dist/chunk-BTGCUONV.js +56 -0
  16. package/dist/chunk-BTGCUONV.js.map +1 -0
  17. package/dist/{chunk-QYHWR6C5.js → chunk-C36CZRHK.js} +20 -7
  18. package/dist/chunk-C36CZRHK.js.map +1 -0
  19. package/dist/{chunk-MAMBT7BZ.js → chunk-CMAU4DSB.js} +21 -7
  20. package/dist/chunk-CMAU4DSB.js.map +1 -0
  21. package/dist/{chunk-HWNY6U5F.js → chunk-G6OVKNL7.js} +2 -2
  22. package/dist/{chunk-6UDDZQDK.js → chunk-GO2IBRFP.js} +3 -3
  23. package/dist/chunk-GO2IBRFP.js.map +1 -0
  24. package/dist/{chunk-PDXOPY22.js → chunk-GSCVG2ER.js} +3 -3
  25. package/dist/{chunk-IBTOZOGI.js → chunk-HWWA27DN.js} +2 -2
  26. package/dist/chunk-MLVUMCQ2.js +167 -0
  27. package/dist/chunk-MLVUMCQ2.js.map +1 -0
  28. package/dist/{chunk-A4CJ2F3J.js → chunk-MOEMFL4K.js} +21 -7
  29. package/dist/chunk-MOEMFL4K.js.map +1 -0
  30. package/dist/{chunk-OBCSDZHP.js → chunk-NQKYHILD.js} +3 -3
  31. package/dist/{chunk-5NUF7ZQA.js → chunk-NTNXHLTM.js} +24 -3
  32. package/dist/chunk-NTNXHLTM.js.map +1 -0
  33. package/dist/{chunk-4Y3HJBJY.js → chunk-OB7LC6NJ.js} +3 -2
  34. package/dist/chunk-OB7LC6NJ.js.map +1 -0
  35. package/dist/chunk-QCNT7D5V.js +549 -0
  36. package/dist/chunk-QCNT7D5V.js.map +1 -0
  37. package/dist/{chunk-CGMDIZPO.js → chunk-QDNI54ON.js} +3 -3
  38. package/dist/chunk-T6L3USBZ.js +245 -0
  39. package/dist/chunk-T6L3USBZ.js.map +1 -0
  40. package/dist/{chunk-TZD7IVVQ.js → chunk-TPF4MOMF.js} +8 -3
  41. package/dist/chunk-TPF4MOMF.js.map +1 -0
  42. package/dist/{chunk-S3EQO33M.js → chunk-VTFCTWSX.js} +6 -4
  43. package/dist/chunk-VTFCTWSX.js.map +1 -0
  44. package/dist/{chunk-2RBYVWZT.js → chunk-VWNBB7FW.js} +5 -3
  45. package/dist/chunk-VWNBB7FW.js.map +1 -0
  46. package/dist/{chunk-DIZCGSJA.js → chunk-WECSVHIM.js} +15 -3
  47. package/dist/chunk-WECSVHIM.js.map +1 -0
  48. package/dist/chunk-X7IPZPTG.js +710 -0
  49. package/dist/chunk-X7IPZPTG.js.map +1 -0
  50. package/dist/{chunk-TIKX5POO.js → chunk-XJP45LFA.js} +55 -28
  51. package/dist/chunk-XJP45LFA.js.map +1 -0
  52. package/dist/{chunk-6MLXFFH4.js → chunk-XVKEM5JY.js} +3 -3
  53. package/dist/chunk-XVKEM5JY.js.map +1 -0
  54. package/dist/chunk-ZBLTU67D.js +424 -0
  55. package/dist/chunk-ZBLTU67D.js.map +1 -0
  56. package/dist/{chunk-4KFHQBH2.js → chunk-ZGAOMRYD.js} +17 -4
  57. package/dist/chunk-ZGAOMRYD.js.map +1 -0
  58. package/dist/chunk-ZQJD4YEJ.js +195 -0
  59. package/dist/chunk-ZQJD4YEJ.js.map +1 -0
  60. package/dist/components/accordion.js +2 -2
  61. package/dist/components/alert.js +2 -2
  62. package/dist/components/app-ui.d.ts +421 -0
  63. package/dist/components/app-ui.js +26 -0
  64. package/dist/components/app-ui.js.map +1 -0
  65. package/dist/components/blocks.d.ts +174 -0
  66. package/dist/components/blocks.js +17 -0
  67. package/dist/components/blocks.js.map +1 -0
  68. package/dist/components/button.d.ts +33 -0
  69. package/dist/components/button.js +3 -2
  70. package/dist/components/checkbox-group.js +3 -3
  71. package/dist/components/checkbox.js +3 -3
  72. package/dist/components/date-input.js +3 -3
  73. package/dist/components/dialog.js +2 -2
  74. package/dist/components/fieldset.d.ts +49 -0
  75. package/dist/components/fieldset.js +8 -0
  76. package/dist/components/fieldset.js.map +1 -0
  77. package/dist/components/grid.d.ts +3 -3
  78. package/dist/components/grid.js +2 -2
  79. package/dist/components/help.js +2 -2
  80. package/dist/components/icon.d.ts +89 -0
  81. package/dist/components/icon.js +14 -0
  82. package/dist/components/icon.js.map +1 -0
  83. package/dist/components/layout.d.ts +75 -7
  84. package/dist/components/layout.js +2 -2
  85. package/dist/components/link.d.ts +11 -0
  86. package/dist/components/link.js +3 -2
  87. package/dist/components/marketing.d.ts +370 -0
  88. package/dist/components/marketing.js +21 -0
  89. package/dist/components/marketing.js.map +1 -0
  90. package/dist/components/media.d.ts +12 -0
  91. package/dist/components/media.js +2 -2
  92. package/dist/components/navigation.d.ts +98 -0
  93. package/dist/components/navigation.js +11 -0
  94. package/dist/components/navigation.js.map +1 -0
  95. package/dist/components/organisms.d.ts +547 -0
  96. package/dist/components/organisms.js +25 -0
  97. package/dist/components/organisms.js.map +1 -0
  98. package/dist/components/page.d.ts +130 -0
  99. package/dist/components/page.js +10 -0
  100. package/dist/components/page.js.map +1 -0
  101. package/dist/components/price.d.ts +5 -0
  102. package/dist/components/price.js +2 -2
  103. package/dist/components/progress.js +2 -2
  104. package/dist/components/property.d.ts +389 -0
  105. package/dist/components/property.js +19 -0
  106. package/dist/components/property.js.map +1 -0
  107. package/dist/components/radio-group.js +3 -3
  108. package/dist/components/select.d.ts +6 -0
  109. package/dist/components/select.js +3 -3
  110. package/dist/components/summary-list.js +2 -2
  111. package/dist/components/table.js +2 -2
  112. package/dist/components/text-input.d.ts +6 -0
  113. package/dist/components/text-input.js +3 -3
  114. package/dist/components/textarea.d.ts +6 -0
  115. package/dist/components/textarea.js +3 -3
  116. package/dist/index.d.ts +9 -0
  117. package/dist/index.js +140 -36
  118. package/package.json +2 -2
  119. package/dist/chunk-2RBYVWZT.js.map +0 -1
  120. package/dist/chunk-3OSL2HMN.js.map +0 -1
  121. package/dist/chunk-4KFHQBH2.js.map +0 -1
  122. package/dist/chunk-4Y3HJBJY.js.map +0 -1
  123. package/dist/chunk-5NUF7ZQA.js.map +0 -1
  124. package/dist/chunk-6MLXFFH4.js.map +0 -1
  125. package/dist/chunk-6UDDZQDK.js.map +0 -1
  126. package/dist/chunk-A4CJ2F3J.js.map +0 -1
  127. package/dist/chunk-DIZCGSJA.js.map +0 -1
  128. package/dist/chunk-GGODB3GY.js +0 -172
  129. package/dist/chunk-GGODB3GY.js.map +0 -1
  130. package/dist/chunk-MAMBT7BZ.js.map +0 -1
  131. package/dist/chunk-QYHWR6C5.js.map +0 -1
  132. package/dist/chunk-S3EQO33M.js.map +0 -1
  133. package/dist/chunk-TIKX5POO.js.map +0 -1
  134. package/dist/chunk-TZD7IVVQ.js.map +0 -1
  135. package/dist/chunk-ZXCSQ6MK.js.map +0 -1
  136. /package/dist/{chunk-LFOWTFMR.js.map → chunk-4HU4Y23Q.js.map} +0 -0
  137. /package/dist/{chunk-HWNY6U5F.js.map → chunk-G6OVKNL7.js.map} +0 -0
  138. /package/dist/{chunk-PDXOPY22.js.map → chunk-GSCVG2ER.js.map} +0 -0
  139. /package/dist/{chunk-IBTOZOGI.js.map → chunk-HWWA27DN.js.map} +0 -0
  140. /package/dist/{chunk-OBCSDZHP.js.map → chunk-NQKYHILD.js.map} +0 -0
  141. /package/dist/{chunk-CGMDIZPO.js.map → chunk-QDNI54ON.js.map} +0 -0
@@ -0,0 +1,26 @@
1
+ import {
2
+ ImpktAvatar,
3
+ ImpktAvatarGroup,
4
+ ImpktDrawer,
5
+ ImpktEmptyState,
6
+ ImpktMenu,
7
+ ImpktPagination,
8
+ ImpktSlotPicker,
9
+ ImpktToast,
10
+ pageWindow
11
+ } from "../chunk-QCNT7D5V.js";
12
+ import "../chunk-2YQA3VBY.js";
13
+ import "../chunk-7BIQ3K6H.js";
14
+ import "../chunk-NTNXHLTM.js";
15
+ export {
16
+ ImpktAvatar,
17
+ ImpktAvatarGroup,
18
+ ImpktDrawer,
19
+ ImpktEmptyState,
20
+ ImpktMenu,
21
+ ImpktPagination,
22
+ ImpktSlotPicker,
23
+ ImpktToast,
24
+ pageWindow
25
+ };
26
+ //# sourceMappingURL=app-ui.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,174 @@
1
+ import { type TemplateResult } from 'lit';
2
+ import { ImpktElement } from '../base/ImpktElement';
3
+ /**
4
+ * A line between two parts of a page.
5
+ *
6
+ * It is decoration, so a screen reader passes over it. Where the change of
7
+ * subject matters, a heading says so better.
8
+ *
9
+ * @category layout
10
+ * @icon divider
11
+ */
12
+ export declare class ImpktDivider extends ImpktElement {
13
+ static properties: {
14
+ spacing: {
15
+ type: StringConstructor;
16
+ reflect: boolean;
17
+ };
18
+ tone: {
19
+ type: StringConstructor;
20
+ reflect: boolean;
21
+ };
22
+ };
23
+ /** Space above and below the line. */
24
+ spacing: 'sm' | 'md' | 'lg' | 'xl';
25
+ tone: 'subtle' | 'strong';
26
+ constructor();
27
+ static styles: import("lit").CSSResult[];
28
+ render(): TemplateResult;
29
+ }
30
+ /**
31
+ * Empty space, from the spacing scale, for the rare place where the gaps of the
32
+ * containers around it are not enough.
33
+ *
34
+ * @category layout
35
+ * @icon spacer
36
+ */
37
+ export declare class ImpktSpacer extends ImpktElement {
38
+ static properties: {
39
+ size: {
40
+ type: StringConstructor;
41
+ reflect: boolean;
42
+ };
43
+ };
44
+ size: 'sm' | 'md' | 'lg' | 'xl' | '2xl';
45
+ constructor();
46
+ static styles: import("lit").CSSResult[];
47
+ render(): TemplateResult;
48
+ }
49
+ /**
50
+ * Words a screen reader says that are not shown: "(opens a map)" after a link
51
+ * whose purpose is clear on screen from where it sits.
52
+ *
53
+ * @category typography
54
+ * @icon hidden
55
+ * @slot - The words to say.
56
+ */
57
+ export declare class ImpktVisuallyHidden extends ImpktElement {
58
+ static styles: import("lit").CSSResult[];
59
+ render(): TemplateResult;
60
+ }
61
+ /** One tab and what it shows. */
62
+ export interface TabItem {
63
+ id: string;
64
+ label: string;
65
+ body: string;
66
+ }
67
+ /**
68
+ * Panels of content behind a row of tabs, one shown at a time: the floor plans
69
+ * of three house types, or what is included and what costs extra.
70
+ *
71
+ * It follows the ARIA tabs pattern. The tabs are one stop in the tab order,
72
+ * the arrow keys, Home and End move between them, and each panel is labelled
73
+ * by its tab. Use an accordion instead when someone may want to compare panels.
74
+ *
75
+ * @category content
76
+ * @icon tabs
77
+ * @fires impkt-change - When another tab is chosen.
78
+ */
79
+ export declare class ImpktTabs extends ImpktElement {
80
+ static properties: {
81
+ items: {
82
+ type: ArrayConstructor;
83
+ };
84
+ selected: {
85
+ type: StringConstructor;
86
+ reflect: boolean;
87
+ };
88
+ label: {
89
+ type: StringConstructor;
90
+ };
91
+ };
92
+ items: TabItem[];
93
+ /** The id of the tab shown first. The first tab when it is empty. */
94
+ selected: string;
95
+ /** What the set of tabs is about, for a screen reader. */
96
+ label: string;
97
+ constructor();
98
+ static styles: import("lit").CSSResult[];
99
+ private current;
100
+ private choose;
101
+ private onKey;
102
+ render(): TemplateResult;
103
+ }
104
+ /** One card in a row of them. */
105
+ export interface CardItem {
106
+ id?: string;
107
+ heading: string;
108
+ text?: string;
109
+ imageSrc?: string;
110
+ imageAlt?: string;
111
+ href?: string;
112
+ badge?: string;
113
+ }
114
+ /**
115
+ * A row of cards, each a picture, a heading, a line of text and a link: the
116
+ * developments on a developments page, or the house types at one of them.
117
+ *
118
+ * **The whole card is the link's target, and the heading is its name.** The
119
+ * link is on the heading, so a screen reader hears "Larkfield Meadows, link"
120
+ * once rather than the whole card read out as one long link, and a pointer
121
+ * can still press anywhere on the card.
122
+ *
123
+ * @category content
124
+ * @icon cards
125
+ */
126
+ export declare class ImpktCardGrid extends ImpktElement {
127
+ static properties: {
128
+ items: {
129
+ type: ArrayConstructor;
130
+ };
131
+ columns: {
132
+ type: StringConstructor;
133
+ reflect: boolean;
134
+ };
135
+ headingLevel: {
136
+ type: NumberConstructor;
137
+ attribute: string;
138
+ };
139
+ ratio: {
140
+ type: StringConstructor;
141
+ reflect: boolean;
142
+ };
143
+ spaceAbove: {
144
+ type: StringConstructor;
145
+ reflect: boolean;
146
+ attribute: string;
147
+ };
148
+ spaceBelow: {
149
+ type: StringConstructor;
150
+ reflect: boolean;
151
+ attribute: string;
152
+ };
153
+ };
154
+ items: CardItem[];
155
+ columns: 'two' | 'three' | 'four';
156
+ /** The level of each card's heading. One below the heading above the cards. */
157
+ headingLevel: 2 | 3 | 4;
158
+ /** The shape of each card's picture. */
159
+ ratio: '16:9' | '4:3' | '3:2' | '1:1';
160
+ spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
161
+ spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
162
+ constructor();
163
+ static styles: import("lit").CSSResult[];
164
+ render(): TemplateResult;
165
+ }
166
+ declare global {
167
+ interface HTMLElementTagNameMap {
168
+ 'impkt-divider': ImpktDivider;
169
+ 'impkt-spacer': ImpktSpacer;
170
+ 'impkt-visually-hidden': ImpktVisuallyHidden;
171
+ 'impkt-tabs': ImpktTabs;
172
+ 'impkt-card-grid': ImpktCardGrid;
173
+ }
174
+ }
@@ -0,0 +1,17 @@
1
+ import {
2
+ ImpktCardGrid,
3
+ ImpktDivider,
4
+ ImpktSpacer,
5
+ ImpktTabs,
6
+ ImpktVisuallyHidden
7
+ } from "../chunk-ZQJD4YEJ.js";
8
+ import "../chunk-2YQA3VBY.js";
9
+ import "../chunk-NTNXHLTM.js";
10
+ export {
11
+ ImpktCardGrid,
12
+ ImpktDivider,
13
+ ImpktSpacer,
14
+ ImpktTabs,
15
+ ImpktVisuallyHidden
16
+ };
17
+ //# sourceMappingURL=blocks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -18,6 +18,10 @@ import { ImpktElement } from '../base/ImpktElement';
18
18
  * submit a form. The native element already has all of that, correctly, in
19
19
  * every browser and every assistive technology.
20
20
 
21
+ *
22
+ * **A button that goes somewhere is a link.** With `href` set it renders an
23
+ * `<a>` styled as a button, so it opens in a new tab, shows its address and is
24
+ * announced as a link, which is what it is.
21
25
  *
22
26
  * @category action
23
27
  * @icon button
@@ -27,6 +31,11 @@ import { ImpktElement } from '../base/ImpktElement';
27
31
  export declare class ImpktButton extends ImpktElement {
28
32
  static formAssociated: boolean;
29
33
  static properties: {
34
+ hideOn: {
35
+ type: StringConstructor;
36
+ reflect: boolean;
37
+ attribute: string;
38
+ };
30
39
  variant: {
31
40
  type: StringConstructor;
32
41
  reflect: boolean;
@@ -50,7 +59,24 @@ export declare class ImpktButton extends ImpktElement {
50
59
  type: BooleanConstructor;
51
60
  reflect: boolean;
52
61
  };
62
+ size: {
63
+ type: StringConstructor;
64
+ reflect: boolean;
65
+ };
66
+ iconBefore: {
67
+ type: StringConstructor;
68
+ attribute: string;
69
+ };
70
+ iconAfter: {
71
+ type: StringConstructor;
72
+ attribute: string;
73
+ };
74
+ href: {
75
+ type: StringConstructor;
76
+ };
53
77
  };
78
+ /** Leave it out on a phone, where a header has no room for it. */
79
+ hideOn: 'never' | 'phone';
54
80
  variant: 'primary' | 'secondary' | 'ghost';
55
81
  type: 'button' | 'submit' | 'reset';
56
82
  disabled: boolean;
@@ -58,6 +84,13 @@ export declare class ImpktButton extends ImpktElement {
58
84
  /** Announced when the button becomes busy. Says what is happening, not that something is. */
59
85
  busyLabel: string;
60
86
  full: boolean;
87
+ size: 'sm' | 'md' | 'lg';
88
+ /** An icon before the words, such as phone or calendar. */
89
+ iconBefore: 'none' | 'arrow-right' | 'arrow-left' | 'chevron-right' | 'chevron-down' | 'check' | 'close' | 'menu' | 'plus' | 'minus' | 'search' | 'external' | 'download' | 'home' | 'phone' | 'mail' | 'map-pin' | 'calendar' | 'clock' | 'user' | 'star' | 'heart' | 'shield' | 'leaf' | 'sun' | 'bolt' | 'key' | 'info' | 'warning' | 'document' | 'pound' | 'chat';
90
+ /** An icon after the words, such as arrow-right. */
91
+ iconAfter: 'none' | 'arrow-right' | 'arrow-left' | 'chevron-right' | 'chevron-down' | 'check' | 'close' | 'menu' | 'plus' | 'minus' | 'search' | 'external' | 'download' | 'home' | 'phone' | 'mail' | 'map-pin' | 'calendar' | 'clock' | 'user' | 'star' | 'heart' | 'shield' | 'leaf' | 'sun' | 'bolt' | 'key' | 'info' | 'warning' | 'document' | 'pound' | 'chat';
92
+ /** Where the button goes, when it opens a page rather than doing something here. */
93
+ href: string;
61
94
  private internals;
62
95
  constructor();
63
96
  static styles: import("lit").CSSResult[];
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  ImpktButton
3
- } from "../chunk-TIKX5POO.js";
4
- import "../chunk-5NUF7ZQA.js";
3
+ } from "../chunk-XJP45LFA.js";
4
+ import "../chunk-2YQA3VBY.js";
5
+ import "../chunk-NTNXHLTM.js";
5
6
  export {
6
7
  ImpktButton
7
8
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpktCheckboxGroup
3
- } from "../chunk-PDXOPY22.js";
4
- import "../chunk-ZXCSQ6MK.js";
5
- import "../chunk-5NUF7ZQA.js";
3
+ } from "../chunk-GSCVG2ER.js";
4
+ import "../chunk-7BIQ3K6H.js";
5
+ import "../chunk-NTNXHLTM.js";
6
6
  export {
7
7
  ImpktCheckboxGroup
8
8
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpktCheckbox
3
- } from "../chunk-LFOWTFMR.js";
4
- import "../chunk-ZXCSQ6MK.js";
5
- import "../chunk-5NUF7ZQA.js";
3
+ } from "../chunk-4HU4Y23Q.js";
4
+ import "../chunk-7BIQ3K6H.js";
5
+ import "../chunk-NTNXHLTM.js";
6
6
  export {
7
7
  ImpktCheckbox
8
8
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpktDateInput
3
- } from "../chunk-CGMDIZPO.js";
4
- import "../chunk-ZXCSQ6MK.js";
5
- import "../chunk-5NUF7ZQA.js";
3
+ } from "../chunk-QDNI54ON.js";
4
+ import "../chunk-7BIQ3K6H.js";
5
+ import "../chunk-NTNXHLTM.js";
6
6
  export {
7
7
  ImpktDateInput
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpktDialog
3
- } from "../chunk-S3EQO33M.js";
4
- import "../chunk-5NUF7ZQA.js";
3
+ } from "../chunk-VTFCTWSX.js";
4
+ import "../chunk-NTNXHLTM.js";
5
5
  export {
6
6
  ImpktDialog
7
7
  };
@@ -0,0 +1,49 @@
1
+ import { type TemplateResult } from 'lit';
2
+ import { ImpktElement } from '../base/ImpktElement';
3
+ /**
4
+ * Fields that belong together under one question: the lines of an address,
5
+ * or a name in two parts.
6
+ *
7
+ * **The question is the group's name.** It is a `fieldset` with a `legend`, so
8
+ * a screen reader says "Your address, group" on the way in, and each field
9
+ * inside is heard as part of it (1.3.1, 3.3.2). An error for the group as a
10
+ * whole, such as "Enter a full address", is tied to it the same way.
11
+ *
12
+ * @category form
13
+ * @icon fieldset
14
+ * @slot - The fields in the group.
15
+ */
16
+ export declare class ImpktFieldset extends ImpktElement {
17
+ static properties: {
18
+ legend: {
19
+ type: StringConstructor;
20
+ };
21
+ description: {
22
+ type: StringConstructor;
23
+ };
24
+ error: {
25
+ type: StringConstructor;
26
+ reflect: boolean;
27
+ };
28
+ size: {
29
+ type: StringConstructor;
30
+ reflect: boolean;
31
+ };
32
+ };
33
+ /** The question the fields answer together. */
34
+ legend: string;
35
+ /** A hint for the whole group, under the question. */
36
+ description: string;
37
+ /** What is wrong with the group as a whole. */
38
+ error: string;
39
+ /** How large the question is. A page that asks only this question makes it the page's heading size. */
40
+ size: 'md' | 'lg' | 'xl';
41
+ constructor();
42
+ static styles: import("lit").CSSResult[];
43
+ render(): TemplateResult;
44
+ }
45
+ declare global {
46
+ interface HTMLElementTagNameMap {
47
+ 'impkt-fieldset': ImpktFieldset;
48
+ }
49
+ }
@@ -0,0 +1,8 @@
1
+ import {
2
+ ImpktFieldset
3
+ } from "../chunk-BTGCUONV.js";
4
+ import "../chunk-NTNXHLTM.js";
5
+ export {
6
+ ImpktFieldset
7
+ };
8
+ //# sourceMappingURL=fieldset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -52,15 +52,15 @@ export declare class ImpktGrid extends ImpktElement {
52
52
  /** How wide each column is against the others. Applies when it has as many parts as there are columns. */
53
53
  widths: 'equal' | '2:1' | '1:2' | '3:1' | '1:3' | '1:2:1' | '2:1:1' | '1:1:2';
54
54
  /** The space between columns, from the brand's gutters. */
55
- gap: 'none' | 'sm' | 'md' | 'lg';
55
+ gap: 'none' | 'sm' | 'md' | 'lg' | 'xl';
56
56
  /** The screens on which the columns stack, one above another, in column order. */
57
57
  stackOn: 'phone' | 'tablet' | 'never';
58
58
  /** How columns of different heights line up. */
59
59
  align: 'stretch' | 'start' | 'center' | 'end';
60
60
  /** Space before the grid, from the spacing scale. */
61
- spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl';
61
+ spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
62
62
  /** Space after the grid, from the spacing scale. */
63
- spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl';
63
+ spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
64
64
  constructor();
65
65
  static styles: import("lit").CSSResult[];
66
66
  render(): import("lit").TemplateResult<1>;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpktGrid
3
- } from "../chunk-4Y3HJBJY.js";
4
- import "../chunk-5NUF7ZQA.js";
3
+ } from "../chunk-OB7LC6NJ.js";
4
+ import "../chunk-NTNXHLTM.js";
5
5
  export {
6
6
  ImpktGrid
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpktHelp
3
- } from "../chunk-IBTOZOGI.js";
4
- import "../chunk-5NUF7ZQA.js";
3
+ } from "../chunk-HWWA27DN.js";
4
+ import "../chunk-NTNXHLTM.js";
5
5
  export {
6
6
  ImpktHelp
7
7
  };
@@ -0,0 +1,89 @@
1
+ import { nothing, type TemplateResult } from 'lit';
2
+ import { ImpktElement } from '../base/ImpktElement';
3
+ /**
4
+ * The icons the library draws, each on a 24 by 24 grid in strokes of the
5
+ * current text colour. Kept to a set the components need and editors reach
6
+ * for, so an icon always matches the line weight of the ones beside it.
7
+ */
8
+ export declare const ICONS: {
9
+ readonly 'arrow-right': TemplateResult<2>;
10
+ readonly 'arrow-left': TemplateResult<2>;
11
+ readonly 'chevron-right': TemplateResult<2>;
12
+ readonly 'chevron-down': TemplateResult<2>;
13
+ readonly check: TemplateResult<2>;
14
+ readonly close: TemplateResult<2>;
15
+ readonly menu: TemplateResult<2>;
16
+ readonly plus: TemplateResult<2>;
17
+ readonly minus: TemplateResult<2>;
18
+ readonly search: TemplateResult<2>;
19
+ readonly external: TemplateResult<2>;
20
+ readonly download: TemplateResult<2>;
21
+ readonly home: TemplateResult<2>;
22
+ readonly phone: TemplateResult<2>;
23
+ readonly mail: TemplateResult<2>;
24
+ readonly 'map-pin': TemplateResult<2>;
25
+ readonly calendar: TemplateResult<2>;
26
+ readonly clock: TemplateResult<2>;
27
+ readonly user: TemplateResult<2>;
28
+ readonly star: TemplateResult<2>;
29
+ readonly heart: TemplateResult<2>;
30
+ readonly shield: TemplateResult<2>;
31
+ readonly leaf: TemplateResult<2>;
32
+ readonly sun: TemplateResult<2>;
33
+ readonly bolt: TemplateResult<2>;
34
+ readonly key: TemplateResult<2>;
35
+ readonly info: TemplateResult<2>;
36
+ readonly warning: TemplateResult<2>;
37
+ readonly document: TemplateResult<2>;
38
+ readonly pound: TemplateResult<2>;
39
+ readonly chat: TemplateResult<2>;
40
+ };
41
+ export type IconName = keyof typeof ICONS;
42
+ export declare const ICON_NAMES: IconName[];
43
+ /** An icon as markup, for components that draw one beside their own words. Always decorative. */
44
+ export declare function iconSvg(name: string | undefined, size?: string): TemplateResult | typeof nothing;
45
+ /**
46
+ * A small picture that stands for something: a phone beside a number, a tick
47
+ * beside a benefit.
48
+ *
49
+ * **An icon is decorative unless it is labelled.** With no `label` it is
50
+ * hidden from screen readers, because the words beside it already say what it
51
+ * means. Give it a label only when it stands alone and carries meaning (1.1.1).
52
+ *
53
+ * @category media
54
+ * @icon star
55
+ */
56
+ export declare class ImpktIcon extends ImpktElement {
57
+ static properties: {
58
+ name: {
59
+ type: StringConstructor;
60
+ reflect: boolean;
61
+ };
62
+ label: {
63
+ type: StringConstructor;
64
+ };
65
+ size: {
66
+ type: StringConstructor;
67
+ reflect: boolean;
68
+ };
69
+ tone: {
70
+ type: StringConstructor;
71
+ reflect: boolean;
72
+ };
73
+ };
74
+ /** Which icon. */
75
+ name: 'arrow-right' | 'arrow-left' | 'chevron-right' | 'chevron-down' | 'check' | 'close' | 'menu' | 'plus' | 'minus' | 'search' | 'external' | 'download' | 'home' | 'phone' | 'mail' | 'map-pin' | 'calendar' | 'clock' | 'user' | 'star' | 'heart' | 'shield' | 'leaf' | 'sun' | 'bolt' | 'key' | 'info' | 'warning' | 'document' | 'pound' | 'chat';
76
+ /** What the icon means, when it stands alone. Leave empty when words beside it say the same. */
77
+ label: string;
78
+ size: 'sm' | 'md' | 'lg' | 'xl';
79
+ /** The icon's colour. */
80
+ tone: 'inherit' | 'brand' | 'muted';
81
+ constructor();
82
+ static styles: import("lit").CSSResult[];
83
+ render(): TemplateResult;
84
+ }
85
+ declare global {
86
+ interface HTMLElementTagNameMap {
87
+ 'impkt-icon': ImpktIcon;
88
+ }
89
+ }
@@ -0,0 +1,14 @@
1
+ import {
2
+ ICONS,
3
+ ICON_NAMES,
4
+ ImpktIcon,
5
+ iconSvg
6
+ } from "../chunk-2YQA3VBY.js";
7
+ import "../chunk-NTNXHLTM.js";
8
+ export {
9
+ ICONS,
10
+ ICON_NAMES,
11
+ ImpktIcon,
12
+ iconSvg
13
+ };
14
+ //# sourceMappingURL=icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}