@atomic-ui/ui 0.3.0 → 0.6.0

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 (213) hide show
  1. package/README.md +31 -33
  2. package/custom-elements.json +5986 -15880
  3. package/dist/base/FieldElement.d.ts +4 -4
  4. package/dist/base/{ImpktElement.d.ts → ImpaktElement.d.ts} +2 -2
  5. package/dist/base/styles.d.ts +7 -0
  6. package/dist/base/tokens.d.ts +1 -1
  7. package/dist/base/tone.d.ts +20 -0
  8. package/dist/{chunk-3RE4H2XO.js → chunk-3EF4T242.js} +7 -7
  9. package/dist/chunk-3EF4T242.js.map +1 -0
  10. package/dist/chunk-4ZQTXTPA.js +76 -0
  11. package/dist/chunk-4ZQTXTPA.js.map +1 -0
  12. package/dist/{chunk-NKMVICB5.js → chunk-5Y3HYRCU.js} +7 -7
  13. package/dist/chunk-5Y3HYRCU.js.map +1 -0
  14. package/dist/{chunk-ZOTAAYO5.js → chunk-5ZQVL3V2.js} +19 -12
  15. package/dist/chunk-5ZQVL3V2.js.map +1 -0
  16. package/dist/{chunk-4OYHT4BN.js → chunk-A7YBFS4H.js} +15 -15
  17. package/dist/chunk-A7YBFS4H.js.map +1 -0
  18. package/dist/{chunk-DAH7RLW3.js → chunk-DE3INTHZ.js} +6 -6
  19. package/dist/chunk-DE3INTHZ.js.map +1 -0
  20. package/dist/{chunk-HXINWP3V.js → chunk-EJD6LT7E.js} +20 -83
  21. package/dist/chunk-EJD6LT7E.js.map +1 -0
  22. package/dist/{chunk-P6GDMZK4.js → chunk-EJSX4WCD.js} +9 -9
  23. package/dist/chunk-EJSX4WCD.js.map +1 -0
  24. package/dist/{chunk-46BYUQ5A.js → chunk-FWR6SEIA.js} +33 -33
  25. package/dist/chunk-FWR6SEIA.js.map +1 -0
  26. package/dist/{chunk-CUUBAETM.js → chunk-GJPHQLLN.js} +8 -8
  27. package/dist/chunk-GJPHQLLN.js.map +1 -0
  28. package/dist/{chunk-R7FKGFW6.js → chunk-HNBG2POR.js} +7 -7
  29. package/dist/chunk-HNBG2POR.js.map +1 -0
  30. package/dist/{chunk-DKZ425AM.js → chunk-HNZQ7LM4.js} +11 -11
  31. package/dist/chunk-HNZQ7LM4.js.map +1 -0
  32. package/dist/{chunk-55DK75QF.js → chunk-I54DOEZB.js} +6 -6
  33. package/dist/chunk-I54DOEZB.js.map +1 -0
  34. package/dist/{chunk-WGPB3QQU.js → chunk-KFAGXPIK.js} +10 -10
  35. package/dist/chunk-KFAGXPIK.js.map +1 -0
  36. package/dist/{chunk-J2FACXYI.js → chunk-PANH23MF.js} +12 -12
  37. package/dist/chunk-PANH23MF.js.map +1 -0
  38. package/dist/{chunk-KKJEEKL2.js → chunk-PYVUQNFQ.js} +8 -8
  39. package/dist/chunk-PYVUQNFQ.js.map +1 -0
  40. package/dist/{chunk-RWWRTURA.js → chunk-Q54FX3SY.js} +8 -8
  41. package/dist/chunk-Q54FX3SY.js.map +1 -0
  42. package/dist/{chunk-AUVIOU5G.js → chunk-QBORJTS4.js} +36 -36
  43. package/dist/chunk-QBORJTS4.js.map +1 -0
  44. package/dist/{chunk-5QSTXIPG.js → chunk-RXX4CN5J.js} +7 -7
  45. package/dist/chunk-RXX4CN5J.js.map +1 -0
  46. package/dist/{chunk-XPCU4KUY.js → chunk-SV77SN6P.js} +7 -7
  47. package/dist/chunk-SV77SN6P.js.map +1 -0
  48. package/dist/{chunk-FVCM4WHD.js → chunk-TAZZLOUY.js} +10 -10
  49. package/dist/chunk-TAZZLOUY.js.map +1 -0
  50. package/dist/{chunk-KMCGX76Y.js → chunk-TRZO5CHU.js} +7 -7
  51. package/dist/chunk-TRZO5CHU.js.map +1 -0
  52. package/dist/{chunk-F4YQWKK2.js → chunk-UPOTBKKK.js} +7 -7
  53. package/dist/chunk-UPOTBKKK.js.map +1 -0
  54. package/dist/{chunk-APJ5JGRW.js → chunk-WP5WJ4V5.js} +6 -6
  55. package/dist/chunk-WP5WJ4V5.js.map +1 -0
  56. package/dist/{chunk-TCXKZDMR.js → chunk-WS5AUJ35.js} +7 -7
  57. package/dist/chunk-WS5AUJ35.js.map +1 -0
  58. package/dist/{chunk-7P4Z4CLK.js → chunk-WWYYNR3Z.js} +50 -49
  59. package/dist/chunk-WWYYNR3Z.js.map +1 -0
  60. package/dist/{chunk-RYBY35QE.js → chunk-XU2XODVH.js} +6 -6
  61. package/dist/chunk-XU2XODVH.js.map +1 -0
  62. package/dist/{chunk-3KO55PZK.js → chunk-YR6T73GY.js} +18 -11
  63. package/dist/chunk-YR6T73GY.js.map +1 -0
  64. package/dist/{chunk-IOBSIAHB.js → chunk-YYYQPKQ7.js} +24 -24
  65. package/dist/chunk-YYYQPKQ7.js.map +1 -0
  66. package/dist/{chunk-PO6FCAIS.js → chunk-Z45LY6BT.js} +9 -9
  67. package/dist/chunk-Z45LY6BT.js.map +1 -0
  68. package/dist/{chunk-DJEZW7AC.js → chunk-ZQBEFP2O.js} +7 -7
  69. package/dist/chunk-ZQBEFP2O.js.map +1 -0
  70. package/dist/chunk-ZS7RPXCT.js +47 -0
  71. package/dist/chunk-ZS7RPXCT.js.map +1 -0
  72. package/dist/components/accordion.d.ts +3 -3
  73. package/dist/components/accordion.js +4 -4
  74. package/dist/components/alert.d.ts +3 -3
  75. package/dist/components/alert.js +4 -4
  76. package/dist/components/app-ui.d.ts +25 -25
  77. package/dist/components/app-ui.js +21 -21
  78. package/dist/components/badge.d.ts +37 -0
  79. package/dist/components/badge.js +9 -0
  80. package/dist/components/blocks.d.ts +10 -73
  81. package/dist/components/blocks.js +10 -13
  82. package/dist/components/button.d.ts +3 -3
  83. package/dist/components/button.js +5 -5
  84. package/dist/components/checkbox-group.d.ts +2 -2
  85. package/dist/components/checkbox-group.js +5 -5
  86. package/dist/components/checkbox.d.ts +2 -2
  87. package/dist/components/checkbox.js +5 -5
  88. package/dist/components/chip.d.ts +58 -0
  89. package/dist/components/chip.js +8 -0
  90. package/dist/components/date-input.d.ts +2 -2
  91. package/dist/components/date-input.js +5 -5
  92. package/dist/components/dialog.d.ts +4 -4
  93. package/dist/components/dialog.js +4 -4
  94. package/dist/components/fieldset.d.ts +3 -3
  95. package/dist/components/fieldset.js +4 -4
  96. package/dist/components/grid.d.ts +3 -3
  97. package/dist/components/grid.js +4 -4
  98. package/dist/components/help.d.ts +3 -3
  99. package/dist/components/help.js +4 -4
  100. package/dist/components/icon.d.ts +3 -3
  101. package/dist/components/icon.js +4 -4
  102. package/dist/components/journey.d.ts +18 -18
  103. package/dist/components/journey.js +15 -15
  104. package/dist/components/layout.d.ts +9 -9
  105. package/dist/components/layout.js +10 -10
  106. package/dist/components/link.d.ts +3 -3
  107. package/dist/components/link.js +5 -5
  108. package/dist/components/list.d.ts +3 -3
  109. package/dist/components/list.js +4 -4
  110. package/dist/components/media.d.ts +8 -8
  111. package/dist/components/media.js +8 -8
  112. package/dist/components/navigation.d.ts +5 -5
  113. package/dist/components/navigation.js +7 -7
  114. package/dist/components/page.d.ts +5 -5
  115. package/dist/components/page.js +6 -6
  116. package/dist/components/price.d.ts +3 -3
  117. package/dist/components/price.js +4 -4
  118. package/dist/components/progress.d.ts +3 -3
  119. package/dist/components/progress.js +4 -4
  120. package/dist/components/radio-group.d.ts +2 -2
  121. package/dist/components/radio-group.js +5 -5
  122. package/dist/components/select.d.ts +2 -2
  123. package/dist/components/select.js +5 -5
  124. package/dist/components/summary-list.d.ts +3 -3
  125. package/dist/components/summary-list.js +4 -4
  126. package/dist/components/table.d.ts +6 -6
  127. package/dist/components/table.js +5 -5
  128. package/dist/components/text-input.d.ts +2 -2
  129. package/dist/components/text-input.js +5 -5
  130. package/dist/components/textarea.d.ts +2 -2
  131. package/dist/components/textarea.js +5 -5
  132. package/dist/index.d.ts +47 -40
  133. package/dist/index.js +206 -270
  134. package/dist/standalone/atomic-ui.js +796 -2002
  135. package/dist/standalone/atomic-ui.js.map +4 -4
  136. package/dist/standalone/index.html +51 -52
  137. package/package.json +4 -4
  138. package/specimen/index.html +51 -52
  139. package/dist/chunk-37PA72FC.js +0 -725
  140. package/dist/chunk-37PA72FC.js.map +0 -1
  141. package/dist/chunk-3KO55PZK.js.map +0 -1
  142. package/dist/chunk-3RE4H2XO.js.map +0 -1
  143. package/dist/chunk-46BYUQ5A.js.map +0 -1
  144. package/dist/chunk-4OYHT4BN.js.map +0 -1
  145. package/dist/chunk-55DK75QF.js.map +0 -1
  146. package/dist/chunk-5QSTXIPG.js.map +0 -1
  147. package/dist/chunk-7P4Z4CLK.js.map +0 -1
  148. package/dist/chunk-APJ5JGRW.js.map +0 -1
  149. package/dist/chunk-AUVIOU5G.js.map +0 -1
  150. package/dist/chunk-CUUBAETM.js.map +0 -1
  151. package/dist/chunk-DAH7RLW3.js.map +0 -1
  152. package/dist/chunk-DJEZW7AC.js.map +0 -1
  153. package/dist/chunk-DKZ425AM.js.map +0 -1
  154. package/dist/chunk-F4YQWKK2.js.map +0 -1
  155. package/dist/chunk-FVCM4WHD.js.map +0 -1
  156. package/dist/chunk-GBRML4RF.js +0 -264
  157. package/dist/chunk-GBRML4RF.js.map +0 -1
  158. package/dist/chunk-HXINWP3V.js.map +0 -1
  159. package/dist/chunk-IOBSIAHB.js.map +0 -1
  160. package/dist/chunk-IZOTGWWI.js +0 -361
  161. package/dist/chunk-IZOTGWWI.js.map +0 -1
  162. package/dist/chunk-J2FACXYI.js.map +0 -1
  163. package/dist/chunk-KKJEEKL2.js.map +0 -1
  164. package/dist/chunk-KMCGX76Y.js.map +0 -1
  165. package/dist/chunk-NKMVICB5.js.map +0 -1
  166. package/dist/chunk-OFLMG6RN.js +0 -428
  167. package/dist/chunk-OFLMG6RN.js.map +0 -1
  168. package/dist/chunk-P6GDMZK4.js.map +0 -1
  169. package/dist/chunk-PO6FCAIS.js.map +0 -1
  170. package/dist/chunk-PWLZFGS3.js +0 -494
  171. package/dist/chunk-PWLZFGS3.js.map +0 -1
  172. package/dist/chunk-QJIB36DM.js +0 -249
  173. package/dist/chunk-QJIB36DM.js.map +0 -1
  174. package/dist/chunk-R7FKGFW6.js.map +0 -1
  175. package/dist/chunk-RWWRTURA.js.map +0 -1
  176. package/dist/chunk-RYBY35QE.js.map +0 -1
  177. package/dist/chunk-S7F5VKWU.js +0 -453
  178. package/dist/chunk-S7F5VKWU.js.map +0 -1
  179. package/dist/chunk-T5W3FDSF.js +0 -396
  180. package/dist/chunk-T5W3FDSF.js.map +0 -1
  181. package/dist/chunk-TCXKZDMR.js.map +0 -1
  182. package/dist/chunk-WGPB3QQU.js.map +0 -1
  183. package/dist/chunk-XPCU4KUY.js.map +0 -1
  184. package/dist/chunk-YRYZUYY7.js +0 -236
  185. package/dist/chunk-YRYZUYY7.js.map +0 -1
  186. package/dist/chunk-ZOTAAYO5.js.map +0 -1
  187. package/dist/components/changelog.d.ts +0 -386
  188. package/dist/components/changelog.js +0 -25
  189. package/dist/components/estimator.d.ts +0 -246
  190. package/dist/components/estimator.js +0 -16
  191. package/dist/components/marketing.d.ts +0 -370
  192. package/dist/components/marketing.js +0 -21
  193. package/dist/components/marketing.js.map +0 -1
  194. package/dist/components/organisms.d.ts +0 -559
  195. package/dist/components/organisms.js +0 -25
  196. package/dist/components/organisms.js.map +0 -1
  197. package/dist/components/property.d.ts +0 -389
  198. package/dist/components/property.js +0 -20
  199. package/dist/components/property.js.map +0 -1
  200. package/dist/components/scene.d.ts +0 -138
  201. package/dist/components/scene.js +0 -8
  202. package/dist/components/scene.js.map +0 -1
  203. package/dist/components/scrubber.d.ts +0 -86
  204. package/dist/components/scrubber.js +0 -8
  205. package/dist/components/scrubber.js.map +0 -1
  206. package/dist/components/selling.d.ts +0 -409
  207. package/dist/components/selling.js +0 -25
  208. package/dist/components/selling.js.map +0 -1
  209. package/dist/components/site.d.ts +0 -283
  210. package/dist/components/site.js +0 -20
  211. package/dist/components/site.js.map +0 -1
  212. /package/dist/components/{changelog.js.map → badge.js.map} +0 -0
  213. /package/dist/components/{estimator.js.map → chip.js.map} +0 -0
@@ -1,409 +0,0 @@
1
- import { type TemplateResult } from 'lit';
2
- import { ImpktElement } from '../base/ImpktElement';
3
- type Space = 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
4
- /** One plan in a comparison. */
5
- export interface PlanItem {
6
- id: string;
7
- name: string;
8
- /** The price as shown, such as £12. */
9
- price: string;
10
- /** What the price is for, such as `a month`. */
11
- period?: string;
12
- note?: string;
13
- /** The rows this plan has, by their words, separated by commas. */
14
- includes: string;
15
- href?: string;
16
- /** A label such as `Most popular`, which also makes the plan stand out. */
17
- badge?: string;
18
- }
19
- /** One line a comparison checks every plan against. */
20
- export interface PlanRow {
21
- id: string;
22
- label: string;
23
- }
24
- /**
25
- * Cover levels side by side, with a tick or a cross for each thing they
26
- * include and a button under each.
27
- *
28
- * A tick is never colour alone: each one says "Included" or "Not included" to
29
- * a screen reader. On a narrow screen the plans stack, each with its own list.
30
- *
31
- * @fires {CustomEvent<{ plan: PlanItem }>} impkt-select - When a plan is chosen. Cancel it to stay on the page.
32
- * @category content
33
- * @icon table
34
- */
35
- export declare class ImpktPlanComparison extends ImpktElement {
36
- static properties: {
37
- heading: {
38
- type: StringConstructor;
39
- };
40
- plans: {
41
- type: ArrayConstructor;
42
- };
43
- rows: {
44
- type: ArrayConstructor;
45
- };
46
- buttonText: {
47
- type: StringConstructor;
48
- attribute: string;
49
- };
50
- headingLevel: {
51
- type: NumberConstructor;
52
- attribute: string;
53
- };
54
- spaceAbove: {
55
- type: StringConstructor;
56
- reflect: boolean;
57
- attribute: string;
58
- };
59
- spaceBelow: {
60
- type: StringConstructor;
61
- reflect: boolean;
62
- attribute: string;
63
- };
64
- };
65
- heading: string;
66
- plans: PlanItem[];
67
- rows: PlanRow[];
68
- buttonText: string;
69
- headingLevel: 2 | 3;
70
- spaceAbove: Space;
71
- spaceBelow: Space;
72
- constructor();
73
- static styles: import("lit").CSSResult[];
74
- private has;
75
- private choose;
76
- render(): TemplateResult;
77
- }
78
- /** A YouTube or Vimeo address as its privacy-friendly embed, or null for a plain video file. */
79
- export declare function embedOf(src: string, locale?: string): string | null;
80
- /**
81
- * A video, with its title, captions and a transcript link.
82
- *
83
- * A YouTube or Vimeo video shows its poster and a Play button first, and only
84
- * loads the player when pressed, so the page stays fast and nothing is sent to
85
- * the video site until someone chooses to watch. A video file plays in the
86
- * browser's own player, with captions from `captions-src`.
87
- *
88
- * @category media
89
- * @icon play
90
- */
91
- export declare class ImpktVideo extends ImpktElement {
92
- static properties: {
93
- videoSrc: {
94
- type: StringConstructor;
95
- attribute: string;
96
- };
97
- label: {
98
- type: StringConstructor;
99
- };
100
- posterSrc: {
101
- type: StringConstructor;
102
- attribute: string;
103
- };
104
- captionsSrc: {
105
- type: StringConstructor;
106
- attribute: string;
107
- };
108
- transcriptHref: {
109
- type: StringConstructor;
110
- attribute: string;
111
- };
112
- playText: {
113
- type: StringConstructor;
114
- attribute: string;
115
- };
116
- ratio: {
117
- type: StringConstructor;
118
- reflect: boolean;
119
- };
120
- spaceAbove: {
121
- type: StringConstructor;
122
- reflect: boolean;
123
- attribute: string;
124
- };
125
- spaceBelow: {
126
- type: StringConstructor;
127
- reflect: boolean;
128
- attribute: string;
129
- };
130
- };
131
- /** A YouTube or Vimeo address, or a video file such as an .mp4. */
132
- videoSrc: string;
133
- /** What the video is, read out before it plays. */
134
- label: string;
135
- posterSrc: string;
136
- /** A captions file in WebVTT, for a video file. */
137
- captionsSrc: string;
138
- transcriptHref: string;
139
- playText: string;
140
- ratio: '16:9' | '4:3' | '1:1' | '9:16';
141
- playing: boolean;
142
- spaceAbove: Space;
143
- spaceBelow: Space;
144
- constructor();
145
- static styles: import("lit").CSSResult[];
146
- render(): TemplateResult;
147
- }
148
- /**
149
- * The warning and the regulator wording a financial page must carry, as a
150
- * block of its own so it is never left off.
151
- *
152
- * Pick the kind to start from the usual words, or `custom` to write your own.
153
- * Whatever it says, check it with whoever signs off your financial promotions.
154
- *
155
- * @category feedback
156
- * @icon shield
157
- */
158
- export declare class ImpktRegulatoryNotice extends ImpktElement {
159
- static properties: {
160
- kind: {
161
- type: StringConstructor;
162
- reflect: boolean;
163
- };
164
- heading: {
165
- type: StringConstructor;
166
- };
167
- text: {
168
- type: StringConstructor;
169
- };
170
- firm: {
171
- type: StringConstructor;
172
- };
173
- spaceAbove: {
174
- type: StringConstructor;
175
- reflect: boolean;
176
- attribute: string;
177
- };
178
- spaceBelow: {
179
- type: StringConstructor;
180
- reflect: boolean;
181
- attribute: string;
182
- };
183
- };
184
- kind: 'mortgage' | 'secured-loan' | 'investment' | 'insurance' | 'custom';
185
- /** Leave empty to use the usual heading for the kind. */
186
- heading: string;
187
- /** Leave empty to use the usual warning for the kind. */
188
- text: string;
189
- /** Who you are and who regulates you, such as "Acme Ltd is authorised and regulated by the Financial Conduct Authority (FRN 123456)." */
190
- firm: string;
191
- spaceAbove: Space;
192
- spaceBelow: Space;
193
- constructor();
194
- static styles: import("lit").CSSResult[];
195
- render(): TemplateResult;
196
- }
197
- /** One band of a tax: everything above `from` and up to the next band's `from` is charged at `rate`. */
198
- interface Band {
199
- from: number;
200
- rate: number;
201
- }
202
- /**
203
- * Stamp Duty Land Tax for England and Northern Ireland, from 1 April 2025.
204
- * Exported so the numbers can be checked, and changed in one place.
205
- */
206
- export declare const SDLT: {
207
- standard: Band[];
208
- firstTime: Band[];
209
- firstTimeLimit: number;
210
- additionalSurcharge: number;
211
- };
212
- /** The stamp duty on a home, for a mover, a first-time buyer or a second home. */
213
- export declare function stampDuty(price: number, buyer: 'mover' | 'first-time' | 'additional'): number;
214
- /**
215
- * How much stamp duty a home would cost, for a home mover, a first-time buyer
216
- * or a second home, worked out as the price is typed.
217
- *
218
- * The rates are England and Northern Ireland's from 1 April 2025. Scotland and
219
- * Wales have their own taxes, and rates change, so the small print says which
220
- * rates these are and points to GOV.UK.
221
- *
222
- * @category form
223
- * @icon pound
224
- */
225
- export declare class ImpktStampDutyCalculator extends ImpktElement {
226
- static properties: {
227
- heading: {
228
- type: StringConstructor;
229
- };
230
- price: {
231
- type: NumberConstructor;
232
- };
233
- buyer: {
234
- type: StringConstructor;
235
- };
236
- smallPrint: {
237
- type: StringConstructor;
238
- attribute: string;
239
- };
240
- headingLevel: {
241
- type: NumberConstructor;
242
- attribute: string;
243
- };
244
- spaceAbove: {
245
- type: StringConstructor;
246
- reflect: boolean;
247
- attribute: string;
248
- };
249
- spaceBelow: {
250
- type: StringConstructor;
251
- reflect: boolean;
252
- attribute: string;
253
- };
254
- };
255
- heading: string;
256
- price: number;
257
- buyer: 'mover' | 'first-time' | 'additional';
258
- smallPrint: string;
259
- headingLevel: 2 | 3;
260
- spaceAbove: Space;
261
- spaceBelow: Space;
262
- constructor();
263
- static styles: import("lit").CSSResult[];
264
- render(): TemplateResult;
265
- }
266
- /**
267
- * Roughly how much someone could borrow, from what they earn, and the price
268
- * of home that buys with their deposit.
269
- *
270
- * Lenders usually lend four to four and a half times income; the multiple is
271
- * a setting. It is a guide, not an offer, and the small print says so.
272
- *
273
- * @category form
274
- * @icon pound
275
- */
276
- export declare class ImpktAffordabilityCalculator extends ImpktElement {
277
- static properties: {
278
- heading: {
279
- type: StringConstructor;
280
- };
281
- income: {
282
- type: NumberConstructor;
283
- };
284
- secondIncome: {
285
- type: NumberConstructor;
286
- attribute: string;
287
- };
288
- deposit: {
289
- type: NumberConstructor;
290
- };
291
- timesIncome: {
292
- type: NumberConstructor;
293
- attribute: string;
294
- };
295
- smallPrint: {
296
- type: StringConstructor;
297
- attribute: string;
298
- };
299
- headingLevel: {
300
- type: NumberConstructor;
301
- attribute: string;
302
- };
303
- spaceAbove: {
304
- type: StringConstructor;
305
- reflect: boolean;
306
- attribute: string;
307
- };
308
- spaceBelow: {
309
- type: StringConstructor;
310
- reflect: boolean;
311
- attribute: string;
312
- };
313
- };
314
- heading: string;
315
- income: number;
316
- secondIncome: number;
317
- deposit: number;
318
- /** How many times income a lender would lend, such as 4.5. */
319
- timesIncome: number;
320
- smallPrint: string;
321
- headingLevel: 2 | 3;
322
- spaceAbove: Space;
323
- spaceBelow: Space;
324
- constructor();
325
- static styles: import("lit").CSSResult[];
326
- private field;
327
- render(): TemplateResult;
328
- }
329
- /**
330
- * How to get in touch: a phone number, opening hours, an email address, and a
331
- * short form to ask for a call back.
332
- *
333
- * The form fires `impkt-submit` with the name, phone number and best time; the
334
- * app sends it on. Then the block thanks them in place.
335
- *
336
- * @fires {CustomEvent<{ name: string; phone: string; when: string }>} impkt-submit - When the form is sent.
337
- * @category content
338
- * @icon phone
339
- */
340
- export declare class ImpktContactBlock extends ImpktElement {
341
- static properties: {
342
- heading: {
343
- type: StringConstructor;
344
- };
345
- phone: {
346
- type: StringConstructor;
347
- };
348
- hours: {
349
- type: StringConstructor;
350
- };
351
- email: {
352
- type: StringConstructor;
353
- };
354
- callbackHeading: {
355
- type: StringConstructor;
356
- attribute: string;
357
- };
358
- buttonText: {
359
- type: StringConstructor;
360
- attribute: string;
361
- };
362
- doneText: {
363
- type: StringConstructor;
364
- attribute: string;
365
- };
366
- headingLevel: {
367
- type: NumberConstructor;
368
- attribute: string;
369
- };
370
- spaceAbove: {
371
- type: StringConstructor;
372
- reflect: boolean;
373
- attribute: string;
374
- };
375
- spaceBelow: {
376
- type: StringConstructor;
377
- reflect: boolean;
378
- attribute: string;
379
- };
380
- };
381
- heading: string;
382
- phone: string;
383
- /** One line a day or range, such as "Monday to Friday, 9am to 6pm". */
384
- hours: string;
385
- email: string;
386
- /** Leave empty to show no call back form. */
387
- callbackHeading: string;
388
- buttonText: string;
389
- doneText: string;
390
- headingLevel: 2 | 3;
391
- sent: boolean;
392
- spaceAbove: Space;
393
- spaceBelow: Space;
394
- constructor();
395
- static styles: import("lit").CSSResult[];
396
- private submit;
397
- render(): TemplateResult;
398
- }
399
- declare global {
400
- interface HTMLElementTagNameMap {
401
- 'impkt-plan-comparison': ImpktPlanComparison;
402
- 'impkt-video': ImpktVideo;
403
- 'impkt-regulatory-notice': ImpktRegulatoryNotice;
404
- 'impkt-stamp-duty-calculator': ImpktStampDutyCalculator;
405
- 'impkt-affordability-calculator': ImpktAffordabilityCalculator;
406
- 'impkt-contact-block': ImpktContactBlock;
407
- }
408
- }
409
- export {};
@@ -1,25 +0,0 @@
1
- import {
2
- ImpktAffordabilityCalculator,
3
- ImpktContactBlock,
4
- ImpktPlanComparison,
5
- ImpktRegulatoryNotice,
6
- ImpktStampDutyCalculator,
7
- ImpktVideo,
8
- SDLT,
9
- embedOf,
10
- stampDuty
11
- } from "../chunk-S7F5VKWU.js";
12
- import "../chunk-3IGNZTJU.js";
13
- import "../chunk-3KO55PZK.js";
14
- export {
15
- ImpktAffordabilityCalculator,
16
- ImpktContactBlock,
17
- ImpktPlanComparison,
18
- ImpktRegulatoryNotice,
19
- ImpktStampDutyCalculator,
20
- ImpktVideo,
21
- SDLT,
22
- embedOf,
23
- stampDuty
24
- };
25
- //# sourceMappingURL=selling.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,283 +0,0 @@
1
- /**
2
- * A site's own header and footer, drawn as one piece each, for the layout's
3
- * header and footer slots.
4
- *
5
- * The page frame (`impkt-page`) gives them their landmarks, so neither draws a
6
- * `<header>` or `<footer>` of its own: a second banner would be one a screen
7
- * reader announces twice.
8
- */
9
- import { type TemplateResult } from 'lit';
10
- import { ImpktElement } from '../base/ImpktElement';
11
- import { type Tone } from './changelog';
12
- import type { NavLink } from './navigation';
13
- import './navigation';
14
- import './button';
15
- /**
16
- * The site header: the brand, the main links and one call to action, with an
17
- * optional chip beside the brand and a status before the action.
18
- *
19
- * The links fold behind a Menu button when they do not fit, as `impkt-nav`
20
- * does. The chip and the status are labels, not controls, and they are left
21
- * out on a phone so the brand, the menu and the action keep the row.
22
- *
23
- * **Build your own.** Place components in its three slots, start, middle and
24
- * end, and each slot that holds something replaces what the props draw there:
25
- * a wordmark and chips at the start, a nav in the middle, a status and a
26
- * button at the end, in any order. Give a component `hideOn: 'phone'` to leave
27
- * it out on a phone, so the phone's header is built from the same pieces.
28
- *
29
- * @category layout
30
- * @icon header
31
- * @slot start - The brand: a wordmark or logo, and any chips beside it.
32
- * @slot middle - The links, usually one nav.
33
- * @slot end - A status and the call to action.
34
- * @fires {CustomEvent<null>} impkt-action - When the call to action is pressed.
35
- */
36
- export declare class ImpktSiteHeader extends ImpktElement {
37
- static properties: {
38
- brand: {
39
- type: StringConstructor;
40
- };
41
- logoSrc: {
42
- type: StringConstructor;
43
- attribute: string;
44
- };
45
- logoAlt: {
46
- type: StringConstructor;
47
- attribute: string;
48
- };
49
- home: {
50
- type: StringConstructor;
51
- };
52
- badge: {
53
- type: StringConstructor;
54
- };
55
- meta: {
56
- type: StringConstructor;
57
- };
58
- links: {
59
- type: ArrayConstructor;
60
- };
61
- label: {
62
- type: StringConstructor;
63
- };
64
- menuText: {
65
- type: StringConstructor;
66
- attribute: string;
67
- };
68
- status: {
69
- type: StringConstructor;
70
- };
71
- statusMeta: {
72
- type: StringConstructor;
73
- attribute: string;
74
- };
75
- statusTone: {
76
- type: StringConstructor;
77
- attribute: string;
78
- };
79
- actionText: {
80
- type: StringConstructor;
81
- attribute: string;
82
- };
83
- actionHref: {
84
- type: StringConstructor;
85
- attribute: string;
86
- };
87
- };
88
- /** The site's name, set as a wordmark when there is no logo picture. */
89
- brand: string;
90
- /** A logo picture, used instead of the wordmark. */
91
- logoSrc: string;
92
- /** What the logo says. Leave empty to use the brand name. */
93
- logoAlt: string;
94
- /** Where the brand links to. */
95
- home: string;
96
- /** A short chip beside the brand, such as "main". */
97
- badge: string;
98
- /** A code-like line after the chip, such as a commit hash. */
99
- meta: string;
100
- links: NavLink[];
101
- /** The name of the links' landmark. */
102
- label: string;
103
- /** The words on the button that opens the links on a narrow screen. */
104
- menuText: string;
105
- /** A status before the action, such as the stage the site is at. */
106
- status: string;
107
- /** A code-like line in the status, such as a hash. */
108
- statusMeta: string;
109
- statusTone: Tone;
110
- actionText: string;
111
- actionHref: string;
112
- constructor();
113
- static styles: import("lit").CSSResult[];
114
- private act;
115
- render(): TemplateResult;
116
- }
117
- /**
118
- * The site's name as a wordmark, or its logo, linking home: the start of a
119
- * site header.
120
- *
121
- * @category layout
122
- * @icon logo
123
- */
124
- export declare class ImpktWordmark extends ImpktElement {
125
- static properties: {
126
- text: {
127
- type: StringConstructor;
128
- };
129
- src: {
130
- type: StringConstructor;
131
- };
132
- alt: {
133
- type: StringConstructor;
134
- };
135
- href: {
136
- type: StringConstructor;
137
- };
138
- size: {
139
- type: StringConstructor;
140
- reflect: boolean;
141
- };
142
- hideOn: {
143
- type: StringConstructor;
144
- reflect: boolean;
145
- attribute: string;
146
- };
147
- };
148
- /** The name, set in the heading face. */
149
- text: string;
150
- /** A logo picture, used instead of the name. */
151
- src: string;
152
- /** What the logo says. Leave empty to use the name. */
153
- alt: string;
154
- href: string;
155
- /** Larger on a wide header, smaller on a phone's. */
156
- size: 'sm' | 'md' | 'lg';
157
- hideOn: 'never' | 'phone' | 'wide';
158
- constructor();
159
- static styles: import("lit").CSSResult[];
160
- render(): TemplateResult;
161
- }
162
- /**
163
- * A short label: a branch name with its icon, a status with its dot, or a
164
- * code such as a commit hash. It says something; it does nothing.
165
- *
166
- * @category content
167
- * @icon badge
168
- */
169
- export declare class ImpktChip extends ImpktElement {
170
- static properties: {
171
- label: {
172
- type: StringConstructor;
173
- };
174
- meta: {
175
- type: StringConstructor;
176
- };
177
- icon: {
178
- type: StringConstructor;
179
- reflect: boolean;
180
- };
181
- tone: {
182
- type: StringConstructor;
183
- };
184
- look: {
185
- type: StringConstructor;
186
- reflect: boolean;
187
- };
188
- hideOn: {
189
- type: StringConstructor;
190
- reflect: boolean;
191
- attribute: string;
192
- };
193
- };
194
- label: string;
195
- /** A code after the label, quieter, such as a hash. */
196
- meta: string;
197
- /** A coloured dot, a branch, or nothing before the label. */
198
- icon: 'none' | 'dot' | 'branch';
199
- /** The dot's colour: a named tone, or 1 to 5 for the brand's chart colours. */
200
- tone: Tone;
201
- /** `outlined` on the card colour, `filled` with a faint wash, or `plain` words in the code face. */
202
- look: 'outlined' | 'filled' | 'plain';
203
- hideOn: 'never' | 'phone' | 'wide';
204
- constructor();
205
- static styles: import("lit").CSSResult[];
206
- render(): TemplateResult;
207
- }
208
- /** One line of a footer's log: a code, what it says, and the colour of its dot. */
209
- export interface FooterLogLine {
210
- meta?: string;
211
- text: string;
212
- tone?: Tone;
213
- }
214
- /** A column of footer links under a short heading. */
215
- export interface FooterColumn {
216
- heading: string;
217
- links: NavLink[];
218
- }
219
- /**
220
- * The site footer: the footer band with the brand set large, an optional log of
221
- * lines beside it, columns of links, a legal line and a stripe of the brand's
222
- * colours along the foot.
223
- *
224
- * Each column is a list under its own heading, so a screen reader can move
225
- * from one to the next. The log is a list too; its dots are decoration.
226
- *
227
- * @category layout
228
- * @icon footer
229
- */
230
- export declare class ImpktSiteFooter extends ImpktElement {
231
- static properties: {
232
- brand: {
233
- type: StringConstructor;
234
- };
235
- log: {
236
- type: ArrayConstructor;
237
- };
238
- columns: {
239
- type: ArrayConstructor;
240
- };
241
- columnsOnPhone: {
242
- type: StringConstructor;
243
- attribute: string;
244
- reflect: boolean;
245
- };
246
- legal: {
247
- type: StringConstructor;
248
- };
249
- stripe: {
250
- type: BooleanConstructor;
251
- reflect: boolean;
252
- };
253
- headingLevel: {
254
- type: NumberConstructor;
255
- attribute: string;
256
- };
257
- };
258
- /** The site's name, set large. */
259
- brand: string;
260
- /** Lines set in code type under the brand, newest first. The first is bright. */
261
- log: FooterLogLine[];
262
- columns: FooterColumn[];
263
- /** `hidden` leaves the link columns out on a phone, so the footer there is the name, the lines and the legal line. */
264
- columnsOnPhone: 'shown' | 'hidden';
265
- /** The line at the foot, such as the copyright. */
266
- legal: string;
267
- /** A stripe of the brand's colours along the bottom edge. */
268
- stripe: boolean;
269
- /** The level of each column's heading. */
270
- headingLevel: 2 | 3 | 4;
271
- constructor();
272
- static styles: import("lit").CSSResult[];
273
- private heading;
274
- render(): TemplateResult;
275
- }
276
- declare global {
277
- interface HTMLElementTagNameMap {
278
- 'impkt-site-header': ImpktSiteHeader;
279
- 'impkt-wordmark': ImpktWordmark;
280
- 'impkt-chip': ImpktChip;
281
- 'impkt-site-footer': ImpktSiteFooter;
282
- }
283
- }