govuk-react 1.0.0-alpha.0 → 1.0.0-alpha.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 (479) hide show
  1. package/dist/components/accordion/index.d.ts +68 -0
  2. package/dist/components/accordion/index.js +104 -0
  3. package/dist/components/accordion/index.js.map +1 -0
  4. package/dist/components/back-link/index.d.ts +1 -0
  5. package/dist/components/back-link/index.js +2 -0
  6. package/dist/components/back-link/index.js.map +1 -0
  7. package/dist/components/body/index.d.ts +1 -0
  8. package/dist/components/body/index.js +2 -0
  9. package/dist/components/body/index.js.map +1 -0
  10. package/dist/components/breadcrumbs/index.js +2 -0
  11. package/dist/components/breadcrumbs/index.js.map +1 -0
  12. package/dist/components/button/index.d.ts +24 -0
  13. package/dist/components/button/index.js +17 -0
  14. package/dist/components/button/index.js.map +1 -0
  15. package/dist/components/caption/index.d.ts +1 -0
  16. package/dist/components/caption/index.js +2 -0
  17. package/dist/components/caption/index.js.map +1 -0
  18. package/dist/components/character-count/index.d.ts +36 -0
  19. package/dist/components/character-count/index.js +82 -0
  20. package/dist/components/character-count/index.js.map +1 -0
  21. package/dist/components/checkboxes/index.d.ts +49 -0
  22. package/dist/components/checkboxes/index.js +73 -0
  23. package/dist/components/checkboxes/index.js.map +1 -0
  24. package/dist/components/cookie-banner/index.js +2 -0
  25. package/dist/components/cookie-banner/index.js.map +1 -0
  26. package/dist/components/date-input/index.js +2 -0
  27. package/dist/components/date-input/index.js.map +1 -0
  28. package/dist/components/details/index.js +2 -0
  29. package/dist/components/details/index.js.map +1 -0
  30. package/dist/components/document-footer-metadata/index.d.ts +35 -0
  31. package/dist/components/document-footer-metadata/index.js +36 -0
  32. package/dist/components/document-footer-metadata/index.js.map +1 -0
  33. package/dist/components/error-message/index.d.ts +1 -0
  34. package/dist/components/error-message/index.js +2 -0
  35. package/dist/components/error-message/index.js.map +1 -0
  36. package/dist/components/error-summary/index.d.ts +22 -0
  37. package/dist/components/error-summary/index.js +49 -0
  38. package/dist/components/error-summary/index.js.map +1 -0
  39. package/dist/components/exit-this-page/index.d.ts +33 -0
  40. package/dist/components/exit-this-page/index.js +66 -0
  41. package/dist/components/exit-this-page/index.js.map +1 -0
  42. package/dist/components/feedback/index.js +2 -0
  43. package/dist/components/feedback/index.js.map +1 -0
  44. package/dist/components/fieldset/index.js +2 -0
  45. package/dist/components/fieldset/index.js.map +1 -0
  46. package/dist/components/file-upload/control.d.ts +6 -0
  47. package/dist/components/file-upload/control.js +9 -0
  48. package/dist/components/file-upload/control.js.map +1 -0
  49. package/dist/components/file-upload/enhanced.d.ts +45 -0
  50. package/dist/components/file-upload/enhanced.js +84 -0
  51. package/dist/components/file-upload/enhanced.js.map +1 -0
  52. package/dist/components/file-upload/index.d.ts +12 -0
  53. package/dist/components/file-upload/index.js +18 -0
  54. package/dist/components/file-upload/index.js.map +1 -0
  55. package/dist/components/footer/index.js +2 -0
  56. package/dist/components/footer/index.js.map +1 -0
  57. package/dist/components/form-group/index.d.ts +1 -0
  58. package/dist/components/form-group/index.js +2 -0
  59. package/dist/components/form-group/index.js.map +1 -0
  60. package/dist/components/generic-header/index.js +2 -0
  61. package/dist/components/generic-header/index.js.map +1 -0
  62. package/dist/components/grid-column/index.d.ts +1 -0
  63. package/dist/components/grid-column/index.js +2 -0
  64. package/dist/components/grid-column/index.js.map +1 -0
  65. package/dist/components/grid-row/index.d.ts +1 -0
  66. package/dist/components/grid-row/index.js +2 -0
  67. package/dist/components/grid-row/index.js.map +1 -0
  68. package/dist/components/header/index.js +2 -0
  69. package/dist/components/header/index.js.map +1 -0
  70. package/dist/components/heading/index.d.ts +1 -0
  71. package/dist/components/heading/index.js +2 -0
  72. package/dist/components/heading/index.js.map +1 -0
  73. package/dist/components/hint/index.d.ts +1 -0
  74. package/dist/components/hint/index.js +2 -0
  75. package/dist/components/hint/index.js.map +1 -0
  76. package/dist/components/input/index.js +2 -0
  77. package/dist/components/input/index.js.map +1 -0
  78. package/dist/components/inset-text/index.d.ts +1 -0
  79. package/dist/components/inset-text/index.js +2 -0
  80. package/dist/components/inset-text/index.js.map +1 -0
  81. package/dist/components/label/index.d.ts +1 -0
  82. package/dist/components/label/index.js +2 -0
  83. package/dist/components/label/index.js.map +1 -0
  84. package/dist/components/language-navigation/index.js +2 -0
  85. package/dist/components/language-navigation/index.js.map +1 -0
  86. package/dist/components/link/index.d.ts +1 -0
  87. package/dist/components/link/index.js +2 -0
  88. package/dist/components/link/index.js.map +1 -0
  89. package/dist/components/list/index.d.ts +1 -0
  90. package/dist/components/list/index.js +2 -0
  91. package/dist/components/list/index.js.map +1 -0
  92. package/dist/components/loading-box/index.d.ts +35 -0
  93. package/dist/components/loading-box/index.js +45 -0
  94. package/dist/components/loading-box/index.js.map +1 -0
  95. package/dist/components/main-wrapper/index.d.ts +1 -0
  96. package/dist/components/main-wrapper/index.js +2 -0
  97. package/dist/components/main-wrapper/index.js.map +1 -0
  98. package/dist/components/modal/index.d.ts +33 -0
  99. package/dist/components/modal/index.js +55 -0
  100. package/dist/components/modal/index.js.map +1 -0
  101. package/dist/components/notification-banner/index.d.ts +17 -0
  102. package/dist/components/notification-banner/index.js +44 -0
  103. package/dist/components/notification-banner/index.js.map +1 -0
  104. package/dist/{page.d.ts → components/page/index.d.ts} +2 -6
  105. package/dist/components/page/index.js +22 -0
  106. package/dist/components/page/index.js.map +1 -0
  107. package/dist/components/pagination/index.js +2 -0
  108. package/dist/components/pagination/index.js.map +1 -0
  109. package/dist/components/panel/index.js +2 -0
  110. package/dist/components/panel/index.js.map +1 -0
  111. package/dist/components/password-input/index.d.ts +26 -0
  112. package/dist/components/password-input/index.js +60 -0
  113. package/dist/components/password-input/index.js.map +1 -0
  114. package/dist/components/phase-banner/index.js +2 -0
  115. package/dist/components/phase-banner/index.js.map +1 -0
  116. package/dist/components/radios/index.d.ts +33 -0
  117. package/dist/components/radios/index.js +70 -0
  118. package/dist/components/radios/index.js.map +1 -0
  119. package/dist/components/related-items/index.d.ts +33 -0
  120. package/dist/components/related-items/index.js +45 -0
  121. package/dist/components/related-items/index.js.map +1 -0
  122. package/dist/components/search-box/index.d.ts +89 -0
  123. package/dist/components/search-box/index.js +136 -0
  124. package/dist/components/search-box/index.js.map +1 -0
  125. package/dist/components/section-break/index.d.ts +1 -0
  126. package/dist/components/section-break/index.js +2 -0
  127. package/dist/components/section-break/index.js.map +1 -0
  128. package/dist/components/select/index.js +2 -0
  129. package/dist/components/select/index.js.map +1 -0
  130. package/dist/components/service-navigation/index.d.ts +64 -0
  131. package/dist/components/service-navigation/index.js +131 -0
  132. package/dist/components/service-navigation/index.js.map +1 -0
  133. package/dist/{skip-link.d.ts → components/skip-link/index.d.ts} +2 -6
  134. package/dist/components/skip-link/index.js +16 -0
  135. package/dist/components/skip-link/index.js.map +1 -0
  136. package/dist/components/summary-list/index.js +2 -0
  137. package/dist/components/summary-list/index.js.map +1 -0
  138. package/dist/components/table/index.js +2 -0
  139. package/dist/components/table/index.js.map +1 -0
  140. package/dist/components/tabs/index.d.ts +98 -0
  141. package/dist/components/tabs/index.js +105 -0
  142. package/dist/components/tabs/index.js.map +1 -0
  143. package/dist/components/tag/index.d.ts +1 -0
  144. package/dist/components/tag/index.js +2 -0
  145. package/dist/components/tag/index.js.map +1 -0
  146. package/dist/components/task-list/index.js +2 -0
  147. package/dist/components/task-list/index.js.map +1 -0
  148. package/dist/components/textarea/index.js +2 -0
  149. package/dist/components/textarea/index.js.map +1 -0
  150. package/dist/components/visually-hidden/index.d.ts +1 -0
  151. package/dist/components/visually-hidden/index.js +2 -0
  152. package/dist/components/visually-hidden/index.js.map +1 -0
  153. package/dist/components/warning-text/index.js +2 -0
  154. package/dist/components/warning-text/index.js.map +1 -0
  155. package/dist/components/width-container/index.d.ts +1 -0
  156. package/dist/components/width-container/index.js +2 -0
  157. package/dist/components/width-container/index.js.map +1 -0
  158. package/dist/index.d.ts +58 -94
  159. package/dist/index.js +59 -59
  160. package/dist/index.js.map +1 -1
  161. package/dist/utils/join-ids.d.ts +2 -0
  162. package/dist/utils/join-ids.js +6 -0
  163. package/dist/utils/join-ids.js.map +1 -0
  164. package/package.json +6 -6
  165. package/dist/accordion.d.ts +0 -4
  166. package/dist/accordion.js +0 -4
  167. package/dist/accordion.js.map +0 -1
  168. package/dist/back-link.d.ts +0 -21
  169. package/dist/back-link.js +0 -4
  170. package/dist/back-link.js.map +0 -1
  171. package/dist/body.d.ts +0 -1
  172. package/dist/body.js +0 -4
  173. package/dist/body.js.map +0 -1
  174. package/dist/breadcrumbs.js +0 -3
  175. package/dist/breadcrumbs.js.map +0 -1
  176. package/dist/button.d.ts +0 -26
  177. package/dist/button.js +0 -4
  178. package/dist/button.js.map +0 -1
  179. package/dist/caption.d.ts +0 -1
  180. package/dist/caption.js +0 -4
  181. package/dist/caption.js.map +0 -1
  182. package/dist/character-count.d.ts +0 -4
  183. package/dist/character-count.js +0 -4
  184. package/dist/character-count.js.map +0 -1
  185. package/dist/checkboxes.d.ts +0 -3
  186. package/dist/checkboxes.js +0 -4
  187. package/dist/checkboxes.js.map +0 -1
  188. package/dist/chunk-2KPHO7N2.js +0 -3
  189. package/dist/chunk-2KPHO7N2.js.map +0 -1
  190. package/dist/chunk-2W35PR6E.js +0 -3
  191. package/dist/chunk-2W35PR6E.js.map +0 -1
  192. package/dist/chunk-57K6B6V2.js +0 -38
  193. package/dist/chunk-57K6B6V2.js.map +0 -1
  194. package/dist/chunk-5RYJUAI3.js +0 -3
  195. package/dist/chunk-5RYJUAI3.js.map +0 -1
  196. package/dist/chunk-5YT2PQAF.js +0 -3
  197. package/dist/chunk-5YT2PQAF.js.map +0 -1
  198. package/dist/chunk-B33BQUXM.js +0 -8
  199. package/dist/chunk-B33BQUXM.js.map +0 -1
  200. package/dist/chunk-BAXFWXMR.js +0 -41
  201. package/dist/chunk-BAXFWXMR.js.map +0 -1
  202. package/dist/chunk-BDIDAVNV.js +0 -22
  203. package/dist/chunk-BDIDAVNV.js.map +0 -1
  204. package/dist/chunk-D6TMELAY.js +0 -3
  205. package/dist/chunk-D6TMELAY.js.map +0 -1
  206. package/dist/chunk-DHTWPFZO.js +0 -8
  207. package/dist/chunk-DHTWPFZO.js.map +0 -1
  208. package/dist/chunk-DK2FZF7U.js +0 -3
  209. package/dist/chunk-DK2FZF7U.js.map +0 -1
  210. package/dist/chunk-EMM6RZT7.js +0 -3
  211. package/dist/chunk-EMM6RZT7.js.map +0 -1
  212. package/dist/chunk-EMNBPB3L.js +0 -8
  213. package/dist/chunk-EMNBPB3L.js.map +0 -1
  214. package/dist/chunk-FE2OFAA5.js +0 -8
  215. package/dist/chunk-FE2OFAA5.js.map +0 -1
  216. package/dist/chunk-FNDQEOKW.js +0 -20
  217. package/dist/chunk-FNDQEOKW.js.map +0 -1
  218. package/dist/chunk-HHH5BEO6.js +0 -3
  219. package/dist/chunk-HHH5BEO6.js.map +0 -1
  220. package/dist/chunk-HRURRTAU.js +0 -83
  221. package/dist/chunk-HRURRTAU.js.map +0 -1
  222. package/dist/chunk-IFETUZ4S.js +0 -3
  223. package/dist/chunk-IFETUZ4S.js.map +0 -1
  224. package/dist/chunk-JLNRFYFI.js +0 -3
  225. package/dist/chunk-JLNRFYFI.js.map +0 -1
  226. package/dist/chunk-K7VSNNQD.js +0 -8
  227. package/dist/chunk-K7VSNNQD.js.map +0 -1
  228. package/dist/chunk-KFWTQTVJ.js +0 -3
  229. package/dist/chunk-KFWTQTVJ.js.map +0 -1
  230. package/dist/chunk-L4GCVMBX.js +0 -3
  231. package/dist/chunk-L4GCVMBX.js.map +0 -1
  232. package/dist/chunk-L4O7OXGY.js +0 -151
  233. package/dist/chunk-L4O7OXGY.js.map +0 -1
  234. package/dist/chunk-LG7D7X4T.js +0 -8
  235. package/dist/chunk-LG7D7X4T.js.map +0 -1
  236. package/dist/chunk-M5BQAPSC.js +0 -8
  237. package/dist/chunk-M5BQAPSC.js.map +0 -1
  238. package/dist/chunk-NN44HUS7.js +0 -64
  239. package/dist/chunk-NN44HUS7.js.map +0 -1
  240. package/dist/chunk-NV2BSK6G.js +0 -3
  241. package/dist/chunk-NV2BSK6G.js.map +0 -1
  242. package/dist/chunk-OCGJIH5X.js +0 -159
  243. package/dist/chunk-OCGJIH5X.js.map +0 -1
  244. package/dist/chunk-OQVOKH2T.js +0 -8
  245. package/dist/chunk-OQVOKH2T.js.map +0 -1
  246. package/dist/chunk-OWBD4KZC.js +0 -115
  247. package/dist/chunk-OWBD4KZC.js.map +0 -1
  248. package/dist/chunk-PM2AAFY4.js +0 -35
  249. package/dist/chunk-PM2AAFY4.js.map +0 -1
  250. package/dist/chunk-PNMADTQQ.js +0 -3
  251. package/dist/chunk-PNMADTQQ.js.map +0 -1
  252. package/dist/chunk-PZ5AY32C.js +0 -9
  253. package/dist/chunk-PZ5AY32C.js.map +0 -1
  254. package/dist/chunk-QOWZLJK4.js +0 -3
  255. package/dist/chunk-QOWZLJK4.js.map +0 -1
  256. package/dist/chunk-QV7AS734.js +0 -98
  257. package/dist/chunk-QV7AS734.js.map +0 -1
  258. package/dist/chunk-RC24GP47.js +0 -8
  259. package/dist/chunk-RC24GP47.js.map +0 -1
  260. package/dist/chunk-RIB3ADHK.js +0 -8
  261. package/dist/chunk-RIB3ADHK.js.map +0 -1
  262. package/dist/chunk-RODK5NYM.js +0 -3
  263. package/dist/chunk-RODK5NYM.js.map +0 -1
  264. package/dist/chunk-SKQVJZMM.js +0 -79
  265. package/dist/chunk-SKQVJZMM.js.map +0 -1
  266. package/dist/chunk-SMUQZFJ7.js +0 -179
  267. package/dist/chunk-SMUQZFJ7.js.map +0 -1
  268. package/dist/chunk-SVIOO5V5.js +0 -109
  269. package/dist/chunk-SVIOO5V5.js.map +0 -1
  270. package/dist/chunk-SYW45KJ5.js +0 -3
  271. package/dist/chunk-SYW45KJ5.js.map +0 -1
  272. package/dist/chunk-T56AQZA4.js +0 -3
  273. package/dist/chunk-T56AQZA4.js.map +0 -1
  274. package/dist/chunk-TK6FAARU.js +0 -12
  275. package/dist/chunk-TK6FAARU.js.map +0 -1
  276. package/dist/chunk-TQOVKJLU.js +0 -78
  277. package/dist/chunk-TQOVKJLU.js.map +0 -1
  278. package/dist/chunk-U2FEV65D.js +0 -8
  279. package/dist/chunk-U2FEV65D.js.map +0 -1
  280. package/dist/chunk-UHX5TMH6.js +0 -49
  281. package/dist/chunk-UHX5TMH6.js.map +0 -1
  282. package/dist/chunk-VB3GA2KO.js +0 -3
  283. package/dist/chunk-VB3GA2KO.js.map +0 -1
  284. package/dist/chunk-VGZUAGCQ.js +0 -8
  285. package/dist/chunk-VGZUAGCQ.js.map +0 -1
  286. package/dist/chunk-VKUBJY23.js +0 -8
  287. package/dist/chunk-VKUBJY23.js.map +0 -1
  288. package/dist/chunk-VQ4FRNV3.js +0 -8
  289. package/dist/chunk-VQ4FRNV3.js.map +0 -1
  290. package/dist/chunk-W7RN6ITL.js +0 -8
  291. package/dist/chunk-W7RN6ITL.js.map +0 -1
  292. package/dist/chunk-WFHQPUFE.js +0 -3
  293. package/dist/chunk-WFHQPUFE.js.map +0 -1
  294. package/dist/chunk-XO7OW5TM.js +0 -3
  295. package/dist/chunk-XO7OW5TM.js.map +0 -1
  296. package/dist/chunk-YOBXV2EG.js +0 -101
  297. package/dist/chunk-YOBXV2EG.js.map +0 -1
  298. package/dist/chunk-YYDYVLVS.js +0 -47
  299. package/dist/chunk-YYDYVLVS.js.map +0 -1
  300. package/dist/chunk-Z4J4DQCF.js +0 -8
  301. package/dist/chunk-Z4J4DQCF.js.map +0 -1
  302. package/dist/chunk-ZHHORZMC.js +0 -3
  303. package/dist/chunk-ZHHORZMC.js.map +0 -1
  304. package/dist/cookie-banner.js +0 -3
  305. package/dist/cookie-banner.js.map +0 -1
  306. package/dist/date-input.js +0 -3
  307. package/dist/date-input.js.map +0 -1
  308. package/dist/details.js +0 -3
  309. package/dist/details.js.map +0 -1
  310. package/dist/document-footer-metadata.d.ts +0 -2
  311. package/dist/document-footer-metadata.js +0 -4
  312. package/dist/document-footer-metadata.js.map +0 -1
  313. package/dist/error-message.d.ts +0 -1
  314. package/dist/error-message.js +0 -4
  315. package/dist/error-message.js.map +0 -1
  316. package/dist/error-summary.d.ts +0 -3
  317. package/dist/error-summary.js +0 -4
  318. package/dist/error-summary.js.map +0 -1
  319. package/dist/exit-this-page.d.ts +0 -4
  320. package/dist/exit-this-page.js +0 -4
  321. package/dist/exit-this-page.js.map +0 -1
  322. package/dist/feedback.js +0 -3
  323. package/dist/feedback.js.map +0 -1
  324. package/dist/fieldset.js +0 -3
  325. package/dist/fieldset.js.map +0 -1
  326. package/dist/file-upload.d.ts +0 -90
  327. package/dist/file-upload.js +0 -4
  328. package/dist/file-upload.js.map +0 -1
  329. package/dist/footer.js +0 -3
  330. package/dist/footer.js.map +0 -1
  331. package/dist/form-group.d.ts +0 -1
  332. package/dist/form-group.js +0 -4
  333. package/dist/form-group.js.map +0 -1
  334. package/dist/generic-header.js +0 -3
  335. package/dist/generic-header.js.map +0 -1
  336. package/dist/grid-column.d.ts +0 -1
  337. package/dist/grid-column.js +0 -4
  338. package/dist/grid-column.js.map +0 -1
  339. package/dist/grid-row.d.ts +0 -1
  340. package/dist/grid-row.js +0 -4
  341. package/dist/grid-row.js.map +0 -1
  342. package/dist/header.js +0 -3
  343. package/dist/header.js.map +0 -1
  344. package/dist/heading.d.ts +0 -1
  345. package/dist/heading.js +0 -4
  346. package/dist/heading.js.map +0 -1
  347. package/dist/hint.d.ts +0 -1
  348. package/dist/hint.js +0 -4
  349. package/dist/hint.js.map +0 -1
  350. package/dist/index-7cuUiEo3.d.ts +0 -98
  351. package/dist/index-B8fw-F9t.d.ts +0 -22
  352. package/dist/index-BBckYYWt.d.ts +0 -131
  353. package/dist/index-BOPiKua4.d.ts +0 -61
  354. package/dist/index-BOfUYry5.d.ts +0 -22
  355. package/dist/index-BP18qbj1.d.ts +0 -22
  356. package/dist/index-BQaNJq4d.d.ts +0 -22
  357. package/dist/index-BnYaP7AC.d.ts +0 -57
  358. package/dist/index-C-c5LroN.d.ts +0 -22
  359. package/dist/index-CAxOsfPr.d.ts +0 -22
  360. package/dist/index-CHKQTetM.d.ts +0 -52
  361. package/dist/index-CWRQhs3p.d.ts +0 -55
  362. package/dist/index-CidkuScr.d.ts +0 -22
  363. package/dist/index-D-5h70y_.d.ts +0 -22
  364. package/dist/index-DDvVZ8mX.d.ts +0 -22
  365. package/dist/index-DQaFKwpy.d.ts +0 -106
  366. package/dist/index-DWibEGiF.d.ts +0 -22
  367. package/dist/index-D_wOwhn9.d.ts +0 -127
  368. package/dist/index-DhPVSZNZ.d.ts +0 -40
  369. package/dist/index-DhjWVeDK.d.ts +0 -22
  370. package/dist/index-DnvlWvry.d.ts +0 -54
  371. package/dist/index-Dr0S9iUZ.d.ts +0 -22
  372. package/dist/index-Dw9RbQVO.d.ts +0 -22
  373. package/dist/index-MxQB65RM.d.ts +0 -48
  374. package/dist/index-RZtIJBvk.d.ts +0 -22
  375. package/dist/index-TgEbRgDh.d.ts +0 -22
  376. package/dist/index-a8sYZpTj.d.ts +0 -77
  377. package/dist/index-rQaOtoWF.d.ts +0 -59
  378. package/dist/index-trAlT6HP.d.ts +0 -22
  379. package/dist/index-vBukON0x.d.ts +0 -50
  380. package/dist/input.js +0 -3
  381. package/dist/input.js.map +0 -1
  382. package/dist/inset-text.d.ts +0 -1
  383. package/dist/inset-text.js +0 -4
  384. package/dist/inset-text.js.map +0 -1
  385. package/dist/label.d.ts +0 -1
  386. package/dist/label.js +0 -4
  387. package/dist/label.js.map +0 -1
  388. package/dist/language-navigation.js +0 -3
  389. package/dist/language-navigation.js.map +0 -1
  390. package/dist/link.d.ts +0 -1
  391. package/dist/link.js +0 -4
  392. package/dist/link.js.map +0 -1
  393. package/dist/list.d.ts +0 -1
  394. package/dist/list.js +0 -4
  395. package/dist/list.js.map +0 -1
  396. package/dist/loading-box.d.ts +0 -39
  397. package/dist/loading-box.js +0 -4
  398. package/dist/loading-box.js.map +0 -1
  399. package/dist/main-wrapper.d.ts +0 -1
  400. package/dist/main-wrapper.js +0 -4
  401. package/dist/main-wrapper.js.map +0 -1
  402. package/dist/modal.d.ts +0 -4
  403. package/dist/modal.js +0 -4
  404. package/dist/modal.js.map +0 -1
  405. package/dist/notification-banner.d.ts +0 -3
  406. package/dist/notification-banner.js +0 -4
  407. package/dist/notification-banner.js.map +0 -1
  408. package/dist/page.js +0 -7
  409. package/dist/page.js.map +0 -1
  410. package/dist/pagination.js +0 -3
  411. package/dist/pagination.js.map +0 -1
  412. package/dist/panel.js +0 -3
  413. package/dist/panel.js.map +0 -1
  414. package/dist/password-input.d.ts +0 -4
  415. package/dist/password-input.js +0 -4
  416. package/dist/password-input.js.map +0 -1
  417. package/dist/phase-banner.js +0 -3
  418. package/dist/phase-banner.js.map +0 -1
  419. package/dist/radios.d.ts +0 -3
  420. package/dist/radios.js +0 -4
  421. package/dist/radios.js.map +0 -1
  422. package/dist/related-items.d.ts +0 -2
  423. package/dist/related-items.js +0 -4
  424. package/dist/related-items.js.map +0 -1
  425. package/dist/search-box.d.ts +0 -3
  426. package/dist/search-box.js +0 -4
  427. package/dist/search-box.js.map +0 -1
  428. package/dist/section-break.d.ts +0 -1
  429. package/dist/section-break.js +0 -4
  430. package/dist/section-break.js.map +0 -1
  431. package/dist/select.js +0 -3
  432. package/dist/select.js.map +0 -1
  433. package/dist/service-navigation.d.ts +0 -4
  434. package/dist/service-navigation.js +0 -4
  435. package/dist/service-navigation.js.map +0 -1
  436. package/dist/skip-link.js +0 -4
  437. package/dist/skip-link.js.map +0 -1
  438. package/dist/summary-list.js +0 -3
  439. package/dist/summary-list.js.map +0 -1
  440. package/dist/table.js +0 -3
  441. package/dist/table.js.map +0 -1
  442. package/dist/tabs.d.ts +0 -3
  443. package/dist/tabs.js +0 -4
  444. package/dist/tabs.js.map +0 -1
  445. package/dist/tag.d.ts +0 -1
  446. package/dist/tag.js +0 -4
  447. package/dist/tag.js.map +0 -1
  448. package/dist/task-list.js +0 -3
  449. package/dist/task-list.js.map +0 -1
  450. package/dist/textarea.js +0 -3
  451. package/dist/textarea.js.map +0 -1
  452. package/dist/visually-hidden.d.ts +0 -1
  453. package/dist/visually-hidden.js +0 -4
  454. package/dist/visually-hidden.js.map +0 -1
  455. package/dist/warning-text.js +0 -3
  456. package/dist/warning-text.js.map +0 -1
  457. package/dist/width-container.d.ts +0 -1
  458. package/dist/width-container.js +0 -4
  459. package/dist/width-container.js.map +0 -1
  460. /package/dist/{breadcrumbs.d.ts → components/breadcrumbs/index.d.ts} +0 -0
  461. /package/dist/{cookie-banner.d.ts → components/cookie-banner/index.d.ts} +0 -0
  462. /package/dist/{date-input.d.ts → components/date-input/index.d.ts} +0 -0
  463. /package/dist/{details.d.ts → components/details/index.d.ts} +0 -0
  464. /package/dist/{feedback.d.ts → components/feedback/index.d.ts} +0 -0
  465. /package/dist/{fieldset.d.ts → components/fieldset/index.d.ts} +0 -0
  466. /package/dist/{footer.d.ts → components/footer/index.d.ts} +0 -0
  467. /package/dist/{generic-header.d.ts → components/generic-header/index.d.ts} +0 -0
  468. /package/dist/{header.d.ts → components/header/index.d.ts} +0 -0
  469. /package/dist/{input.d.ts → components/input/index.d.ts} +0 -0
  470. /package/dist/{language-navigation.d.ts → components/language-navigation/index.d.ts} +0 -0
  471. /package/dist/{pagination.d.ts → components/pagination/index.d.ts} +0 -0
  472. /package/dist/{panel.d.ts → components/panel/index.d.ts} +0 -0
  473. /package/dist/{phase-banner.d.ts → components/phase-banner/index.d.ts} +0 -0
  474. /package/dist/{select.d.ts → components/select/index.d.ts} +0 -0
  475. /package/dist/{summary-list.d.ts → components/summary-list/index.d.ts} +0 -0
  476. /package/dist/{table.d.ts → components/table/index.d.ts} +0 -0
  477. /package/dist/{task-list.d.ts → components/task-list/index.d.ts} +0 -0
  478. /package/dist/{textarea.d.ts → components/textarea/index.d.ts} +0 -0
  479. /package/dist/{warning-text.d.ts → components/warning-text/index.d.ts} +0 -0
@@ -1,22 +0,0 @@
1
- import * as panel from 'govuk-frontend-react/panel';
2
-
3
- function _mergeNamespaces(n, m) {
4
- m.forEach(function (e) {
5
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
6
- if (k !== 'default' && !(k in n)) {
7
- var d = Object.getOwnPropertyDescriptor(e, k);
8
- Object.defineProperty(n, k, d.get ? d : {
9
- enumerable: true,
10
- get: function () { return e[k]; }
11
- });
12
- }
13
- });
14
- });
15
- return Object.freeze(n);
16
- }
17
-
18
- var index = /*#__PURE__*/_mergeNamespaces({
19
- __proto__: null
20
- }, [panel]);
21
-
22
- export { index as i };
@@ -1,22 +0,0 @@
1
- import * as dateInput from 'govuk-frontend-react/date-input';
2
-
3
- function _mergeNamespaces(n, m) {
4
- m.forEach(function (e) {
5
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
6
- if (k !== 'default' && !(k in n)) {
7
- var d = Object.getOwnPropertyDescriptor(e, k);
8
- Object.defineProperty(n, k, d.get ? d : {
9
- enumerable: true,
10
- get: function () { return e[k]; }
11
- });
12
- }
13
- });
14
- });
15
- return Object.freeze(n);
16
- }
17
-
18
- var index = /*#__PURE__*/_mergeNamespaces({
19
- __proto__: null
20
- }, [dateInput]);
21
-
22
- export { index as i };
@@ -1,52 +0,0 @@
1
- import * as React from 'react';
2
- import * as Markup from 'govuk-frontend-react/exit-this-page';
3
- import { SkipLinkProps as SkipLinkProps$1 } from 'govuk-frontend-react/skip-link';
4
-
5
- type RootProps = Markup.RootProps;
6
- /**
7
- * Give users a way to quickly and safely exit a service, website or application.
8
- *
9
- * Once JavaScript runs, the button, a `SkipLink`, or pressing Shift 3 times hides the page and
10
- * goes to the button's `href`, as in govuk-frontend.
11
- *
12
- * @see https://design-system.service.gov.uk/components/exit-this-page/
13
- */
14
- declare function Root({ children, ...props }: RootProps): React.JSX.Element;
15
- type ButtonProps = Markup.ButtonProps;
16
- /** The link to a safe page. Shows how many times Shift has been pressed. */
17
- declare function Button({ children, ...props }: ButtonProps): React.JSX.Element;
18
- /** Shows how many times Shift has been pressed. Button renders it. */
19
- declare function Indicator(): React.JSX.Element;
20
- /** Tells screen readers how many more presses are needed. Root renders it. */
21
- declare function Status(): React.JSX.Element;
22
- type SkipLinkProps = SkipLinkProps$1;
23
- /** A skip link that exits the page too, for the top of the page. */
24
- declare function SkipLink({ href, className, ...props }: SkipLinkProps): React.JSX.Element;
25
- type CompositeProps = Markup.CompositeProps;
26
- /**
27
- * Give users a way to quickly and safely exit a service, website or application.
28
- *
29
- * Once JavaScript runs, the button, a `SkipLink`, or pressing Shift 3 times hides the page and
30
- * goes to the button's `href`, as in govuk-frontend.
31
- *
32
- * @see https://design-system.service.gov.uk/components/exit-this-page/
33
- */
34
- declare function Composite({ href, children, ...props }: CompositeProps): React.JSX.Element;
35
-
36
- declare const index_Button: typeof Button;
37
- type index_ButtonProps = ButtonProps;
38
- declare const index_Composite: typeof Composite;
39
- type index_CompositeProps = CompositeProps;
40
- declare const index_Indicator: typeof Indicator;
41
- declare const index_Root: typeof Root;
42
- type index_RootProps = RootProps;
43
- declare const index_SkipLink: typeof SkipLink;
44
- type index_SkipLinkProps = SkipLinkProps;
45
- declare const index_Status: typeof Status;
46
- declare namespace index {
47
- export { index_Button as Button, index_Composite as Composite, index_Indicator as Indicator, index_Root as Root, index_SkipLink as SkipLink, index_Status as Status };
48
- export type { index_ButtonProps as ButtonProps, index_CompositeProps as CompositeProps, index_RootProps as RootProps, index_SkipLinkProps as SkipLinkProps };
49
- }
50
-
51
- export { Button as B, Composite as C, Indicator as I, Root as R, SkipLink as S, Status as e, index as i };
52
- export type { ButtonProps as a, CompositeProps as b, RootProps as c, SkipLinkProps as d };
@@ -1,55 +0,0 @@
1
- import * as React from 'react';
2
- import { ReactNode } from 'react';
3
- import * as Primitives from '@govuk-react/primitives/modal';
4
- import { ButtonProps } from 'govuk-frontend-react/button';
5
-
6
- /** Styles govuk-frontend has no class for, hoisted and deduplicated by React. */
7
- declare const modalCss = "\n.govuk-react-modal{box-sizing:border-box;width:calc(100% - 30px);max-width:640px;max-height:calc(100% - 30px);padding:30px;border:5px solid var(--govuk-text-colour,#0b0c0c);background:var(--govuk-body-background-colour,#fff);color:var(--govuk-text-colour,#0b0c0c)}\n.govuk-react-modal:focus{outline:3px solid var(--govuk-focus-colour,#fd0);outline-offset:0}\n.govuk-react-modal::backdrop{background:rgb(11 12 12 / .8)}\n.govuk-react-modal>:last-child{margin-bottom:0}\n@media (max-width:40.0525em){.govuk-react-modal{padding:15px}}\n";
8
- type RootProps = Primitives.RootProps;
9
- /** Holds the modal and the buttons that open and close it. */
10
- declare function Root({ children, ...props }: RootProps): React.JSX.Element;
11
- type TriggerProps = Omit<ButtonProps, 'as' | 'href' | 'type'> & Pick<Primitives.TriggerProps, 'dialogId'>;
12
- /** A button that opens the modal. */
13
- declare function Trigger({ dialogId, ...props }: TriggerProps): React.JSX.Element;
14
- type CloseProps = TriggerProps;
15
- /** A button that closes the modal. A secondary button, unless you pass another `variant`, or `undefined` for a primary one. */
16
- declare function Close({ dialogId, ...props }: CloseProps): React.JSX.Element;
17
- type ContentProps = Omit<Primitives.ContentProps, 'asChild'>;
18
- /** The modal dialog. Give it a Title. */
19
- declare function Content({ className, ...props }: ContentProps): React.JSX.Element;
20
- type TitleProps = Omit<Primitives.TitleProps, 'asChild'>;
21
- /** The modal's heading, which names it. */
22
- declare function Title({ className, ...props }: TitleProps): React.JSX.Element;
23
- type CompositeProps = Omit<RootProps, 'title'> & {
24
- /** The text of the button that opens the modal. */
25
- triggerText: ReactNode;
26
- /** The modal's heading. */
27
- title: ReactNode;
28
- /** The text of the button that closes the modal. Defaults to "Cancel". */
29
- closeText?: ReactNode;
30
- /** Other actions, such as a button that confirms, shown before the close button. */
31
- actions?: ReactNode;
32
- };
33
- /** A button that opens a modal with a title, content and actions. */
34
- declare function Composite({ triggerText, title, closeText, actions, children, ...props }: CompositeProps): React.JSX.Element;
35
-
36
- declare const index_Close: typeof Close;
37
- type index_CloseProps = CloseProps;
38
- declare const index_Composite: typeof Composite;
39
- type index_CompositeProps = CompositeProps;
40
- declare const index_Content: typeof Content;
41
- type index_ContentProps = ContentProps;
42
- declare const index_Root: typeof Root;
43
- type index_RootProps = RootProps;
44
- declare const index_Title: typeof Title;
45
- type index_TitleProps = TitleProps;
46
- declare const index_Trigger: typeof Trigger;
47
- type index_TriggerProps = TriggerProps;
48
- declare const index_modalCss: typeof modalCss;
49
- declare namespace index {
50
- export { index_Close as Close, index_Composite as Composite, index_Content as Content, index_Root as Root, index_Title as Title, index_Trigger as Trigger, index_modalCss as modalCss };
51
- export type { index_CloseProps as CloseProps, index_CompositeProps as CompositeProps, index_ContentProps as ContentProps, index_RootProps as RootProps, index_TitleProps as TitleProps, index_TriggerProps as TriggerProps };
52
- }
53
-
54
- export { Close as C, Root as R, Title as T, Composite as b, Content as d, Trigger as h, index as i, modalCss as m };
55
- export type { CloseProps as a, CompositeProps as c, ContentProps as e, RootProps as f, TitleProps as g, TriggerProps as j };
@@ -1,22 +0,0 @@
1
- import * as summaryList from 'govuk-frontend-react/summary-list';
2
-
3
- function _mergeNamespaces(n, m) {
4
- m.forEach(function (e) {
5
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
6
- if (k !== 'default' && !(k in n)) {
7
- var d = Object.getOwnPropertyDescriptor(e, k);
8
- Object.defineProperty(n, k, d.get ? d : {
9
- enumerable: true,
10
- get: function () { return e[k]; }
11
- });
12
- }
13
- });
14
- });
15
- return Object.freeze(n);
16
- }
17
-
18
- var index = /*#__PURE__*/_mergeNamespaces({
19
- __proto__: null
20
- }, [summaryList]);
21
-
22
- export { index as i };
@@ -1,22 +0,0 @@
1
- import * as breadcrumbs from 'govuk-frontend-react/breadcrumbs';
2
-
3
- function _mergeNamespaces(n, m) {
4
- m.forEach(function (e) {
5
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
6
- if (k !== 'default' && !(k in n)) {
7
- var d = Object.getOwnPropertyDescriptor(e, k);
8
- Object.defineProperty(n, k, d.get ? d : {
9
- enumerable: true,
10
- get: function () { return e[k]; }
11
- });
12
- }
13
- });
14
- });
15
- return Object.freeze(n);
16
- }
17
-
18
- var index = /*#__PURE__*/_mergeNamespaces({
19
- __proto__: null
20
- }, [breadcrumbs]);
21
-
22
- export { index as i };
@@ -1,22 +0,0 @@
1
- import * as taskList from 'govuk-frontend-react/task-list';
2
-
3
- function _mergeNamespaces(n, m) {
4
- m.forEach(function (e) {
5
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
6
- if (k !== 'default' && !(k in n)) {
7
- var d = Object.getOwnPropertyDescriptor(e, k);
8
- Object.defineProperty(n, k, d.get ? d : {
9
- enumerable: true,
10
- get: function () { return e[k]; }
11
- });
12
- }
13
- });
14
- });
15
- return Object.freeze(n);
16
- }
17
-
18
- var index = /*#__PURE__*/_mergeNamespaces({
19
- __proto__: null
20
- }, [taskList]);
21
-
22
- export { index as i };
@@ -1,106 +0,0 @@
1
- import * as React from 'react';
2
- import { ComponentProps } from 'react';
3
- import * as Primitives from '@govuk-react/primitives/disclosure';
4
- import * as Markup from 'govuk-frontend-react/service-navigation';
5
- import { ActiveFallback, ActiveFallbackProps, Container, ContainerProps, Item, ItemComposite, ItemCompositeProps, ItemProps, Link, LinkProps, Root, RootProps, ServiceName, ServiceNameProps, Text, TextProps, WidthContainer, WidthContainerProps, Wrapper, WrapperProps } from 'govuk-frontend-react/service-navigation';
6
-
7
- type MenuState = {
8
- /** Whether the menu is open below tablet width, to control it once hydrated, such as to close it after navigating. */
9
- open?: boolean;
10
- /** Called when the user opens or closes the menu. */
11
- onOpenChange?: (open: boolean) => void;
12
- };
13
- type MenuProps = Omit<Primitives.RootProps, 'media' | 'defaultOpen'> & MenuState;
14
- /**
15
- * govuk-frontend's menu: inside `Wrapper`, around `Toggle` and `List`. Below tablet width the
16
- * button shows and hides the list once JavaScript runs. Without JavaScript the list is always
17
- * shown and the button hidden.
18
- */
19
- declare function Menu({ style, ...props }: MenuProps): React.JSX.Element;
20
- type ToggleProps = Markup.ToggleProps;
21
- /** The menu button, inside `Menu`. Hidden from tablet width up, and without JavaScript. */
22
- declare function Toggle(props: ToggleProps): React.JSX.Element;
23
- /** Styles govuk-frontend has no class for, hoisted and deduplicated by React. */
24
- declare const detailsCss = "\n.govuk-react-service-navigation__details>summary{list-style:none}\n.govuk-react-service-navigation__details>summary::-webkit-details-marker{display:none}\n.govuk-react-service-navigation__details[open]>summary::after{transform:rotate(180deg)}\n@supports selector(::details-content){@media (min-width: 40.0625em){.govuk-react-service-navigation__details>summary{display:none}.govuk-react-service-navigation__details::details-content{content-visibility:visible;display:contents}}}\n";
25
- type DetailsMenuProps = Omit<ComponentProps<'details'>, 'open'> & MenuState;
26
- /**
27
- * A menu that works without JavaScript: a native `details`, inside `Wrapper`, around `Summary`
28
- * and `List`. Below tablet width the summary shows and hides the list. From tablet width the list
29
- * shows where the browser supports `::details-content` (Chrome and Edge 131, Safari 18.4,
30
- * Firefox 143), and stays behind the menu where it doesn't.
31
- *
32
- * Check it with your users' assistive technology before choosing it over `Menu`. GOV.UK's audits
33
- * of the Details component found VoiceOver doesn't convey a `summary`'s state on iOS before 17,
34
- * and Dragon voice control can have trouble opening one.
35
- *
36
- * @see https://github.com/alphagov/govuk-design-system/issues/4030
37
- * @see https://github.com/alphagov/govuk-frontend/issues/5310
38
- */
39
- declare function DetailsMenu({ open, onOpenChange, onToggle, className, children, ...props }: DetailsMenuProps): React.JSX.Element;
40
- type SummaryProps = ComponentProps<'summary'>;
41
- /** The menu button of `DetailsMenu`. Hidden from tablet width up, where the browser can show the list. */
42
- declare function Summary({ className, children, ...props }: SummaryProps): React.JSX.Element;
43
- type ListProps = Markup.ListProps;
44
- /** The navigation list, inside `Menu` or `DetailsMenu`, or straight inside `Wrapper` with no menu. */
45
- declare function List(props: ListProps): React.JSX.Element;
46
- type CompositeProps = Markup.CompositeProps & MenuState;
47
- /**
48
- * Service navigation helps users understand that they’re using your service and lets them navigate around your service.
49
- *
50
- * Children are `ItemComposite`s. The menu is govuk-frontend's: without JavaScript the
51
- * navigation is always shown.
52
- *
53
- * @see https://design-system.service.gov.uk/components/service-navigation/
54
- */
55
- declare function Composite(props: CompositeProps): React.JSX.Element;
56
- /**
57
- * Service navigation helps users understand that they’re using your service and lets them navigate around your service.
58
- *
59
- * Children are `ItemComposite`s. The menu is a `DetailsMenu`, which works without JavaScript but
60
- * has screen reader and voice control caveats: see `DetailsMenu`.
61
- *
62
- * @see https://design-system.service.gov.uk/components/service-navigation/
63
- */
64
- declare function DetailsComposite(props: CompositeProps): React.JSX.Element;
65
-
66
- declare const index_ActiveFallback: typeof ActiveFallback;
67
- declare const index_ActiveFallbackProps: typeof ActiveFallbackProps;
68
- declare const index_Composite: typeof Composite;
69
- type index_CompositeProps = CompositeProps;
70
- declare const index_Container: typeof Container;
71
- declare const index_ContainerProps: typeof ContainerProps;
72
- declare const index_DetailsComposite: typeof DetailsComposite;
73
- declare const index_DetailsMenu: typeof DetailsMenu;
74
- type index_DetailsMenuProps = DetailsMenuProps;
75
- declare const index_Item: typeof Item;
76
- declare const index_ItemComposite: typeof ItemComposite;
77
- declare const index_ItemCompositeProps: typeof ItemCompositeProps;
78
- declare const index_ItemProps: typeof ItemProps;
79
- declare const index_Link: typeof Link;
80
- declare const index_LinkProps: typeof LinkProps;
81
- declare const index_List: typeof List;
82
- type index_ListProps = ListProps;
83
- declare const index_Menu: typeof Menu;
84
- type index_MenuProps = MenuProps;
85
- declare const index_Root: typeof Root;
86
- declare const index_RootProps: typeof RootProps;
87
- declare const index_ServiceName: typeof ServiceName;
88
- declare const index_ServiceNameProps: typeof ServiceNameProps;
89
- declare const index_Summary: typeof Summary;
90
- type index_SummaryProps = SummaryProps;
91
- declare const index_Text: typeof Text;
92
- declare const index_TextProps: typeof TextProps;
93
- declare const index_Toggle: typeof Toggle;
94
- type index_ToggleProps = ToggleProps;
95
- declare const index_WidthContainer: typeof WidthContainer;
96
- declare const index_WidthContainerProps: typeof WidthContainerProps;
97
- declare const index_Wrapper: typeof Wrapper;
98
- declare const index_WrapperProps: typeof WrapperProps;
99
- declare const index_detailsCss: typeof detailsCss;
100
- declare namespace index {
101
- export { index_ActiveFallback as ActiveFallback, index_ActiveFallbackProps as ActiveFallbackProps, index_Composite as Composite, index_Container as Container, index_ContainerProps as ContainerProps, index_DetailsComposite as DetailsComposite, index_DetailsMenu as DetailsMenu, index_Item as Item, index_ItemComposite as ItemComposite, index_ItemCompositeProps as ItemCompositeProps, index_ItemProps as ItemProps, index_Link as Link, index_LinkProps as LinkProps, index_List as List, index_Menu as Menu, index_Root as Root, index_RootProps as RootProps, index_ServiceName as ServiceName, index_ServiceNameProps as ServiceNameProps, index_Summary as Summary, index_Text as Text, index_TextProps as TextProps, index_Toggle as Toggle, index_WidthContainer as WidthContainer, index_WidthContainerProps as WidthContainerProps, index_Wrapper as Wrapper, index_WrapperProps as WrapperProps, index_detailsCss as detailsCss };
102
- export type { index_CompositeProps as CompositeProps, index_DetailsMenuProps as DetailsMenuProps, index_ListProps as ListProps, index_MenuProps as MenuProps, index_SummaryProps as SummaryProps, index_ToggleProps as ToggleProps };
103
- }
104
-
105
- export { Composite as C, DetailsComposite as D, List as L, Menu as M, Summary as S, Toggle as T, DetailsMenu as b, detailsCss as h, index as i };
106
- export type { CompositeProps as a, DetailsMenuProps as c, ListProps as d, MenuProps as e, SummaryProps as f, ToggleProps as g };
@@ -1,22 +0,0 @@
1
- import * as table from 'govuk-frontend-react/table';
2
-
3
- function _mergeNamespaces(n, m) {
4
- m.forEach(function (e) {
5
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
6
- if (k !== 'default' && !(k in n)) {
7
- var d = Object.getOwnPropertyDescriptor(e, k);
8
- Object.defineProperty(n, k, d.get ? d : {
9
- enumerable: true,
10
- get: function () { return e[k]; }
11
- });
12
- }
13
- });
14
- });
15
- return Object.freeze(n);
16
- }
17
-
18
- var index = /*#__PURE__*/_mergeNamespaces({
19
- __proto__: null
20
- }, [table]);
21
-
22
- export { index as i };
@@ -1,127 +0,0 @@
1
- import * as React from 'react';
2
- import { ComponentProps, ReactNode } from 'react';
3
- import * as Primitives from '@govuk-react/primitives/autocomplete';
4
-
5
- /** Styles govuk-frontend has no class for, hoisted and deduplicated by React. Based on GOV.UK’s search component. */
6
- declare const searchBoxCss = "\n.govuk-react-search-box__wrapper{display:flex;background-color:#fff}\n.govuk-react-search-box__input{margin:0;-webkit-appearance:none;appearance:none}\n.govuk-react-search-box__input:focus{z-index:1}\n.govuk-react-search-box__button{position:relative;flex:0 0 auto;width:2.5rem;height:2.5rem;margin:0;padding:0;border:0;border-radius:0;outline:2px solid transparent;outline-offset:0;cursor:pointer;background-color:var(--govuk-brand-colour,#1d70b8);color:#fff}\n.govuk-react-search-box__button:hover{background-color:color-mix(in srgb,var(--govuk-brand-colour,#1d70b8) 75%,#000)}\n.govuk-react-search-box__button:focus{z-index:1;outline:3px solid var(--govuk-focus-colour,#fd0);box-shadow:inset 0 0 0 4px #0b0c0c}\n.govuk-react-search-box__icon{position:absolute;inset:0;width:100%;height:100%;transform:scale(.5);pointer-events:none}\n.govuk-react-search-box:not(.govuk-react-search-box--inverse) .govuk-react-search-box__input{border-right-width:0}\n.govuk-react-search-box:not(.govuk-react-search-box--inverse) .govuk-react-search-box__input:focus{border-right-width:2px}\n.govuk-react-search-box--inverse .govuk-react-search-box__label{color:#fff}\n.govuk-react-search-box--inverse .govuk-react-search-box__input{border-width:0}\n.govuk-react-search-box--inverse .govuk-react-search-box__button{background-color:color-mix(in srgb,var(--govuk-brand-colour,#1d70b8) 20%,#fff);color:var(--govuk-brand-colour,#1d70b8)}\n.govuk-react-search-box--inverse .govuk-react-search-box__button:hover{background-color:color-mix(in srgb,var(--govuk-brand-colour,#1d70b8) 5%,#fff)}\n.govuk-react-search-box--large .govuk-react-search-box__input{height:3.125rem}\n.govuk-react-search-box--large .govuk-react-search-box__button{width:3.125rem;height:3.125rem}\n.govuk-react-search-box--large .govuk-react-search-box__icon{transform:scale(.4)}\n.govuk-react-search-box__autocomplete{display:block;position:relative}\n.govuk-react-search-box__menu{position:absolute;z-index:100;top:100%;left:0;right:0;margin:0;padding:0;list-style:none;overflow-x:hidden;background-color:#fff;border:1px solid #b1b4b6;border-top:0}\n.govuk-react-search-box--inverse .govuk-react-search-box__menu{border-top:1px solid #b1b4b6}\n.govuk-react-search-box__option{cursor:pointer;font-family:\"GDS Transport\",arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:1rem;line-height:1.25;color:#0b0c0c}\n@media (min-width:40.0625em){.govuk-react-search-box__option{font-size:1.1875rem;line-height:1.3157894737}}\n.govuk-react-search-box__option>*{pointer-events:none}\n.govuk-react-search-box__option[data-focused],.govuk-react-search-box__option:hover,.govuk-react-search-box__option:focus-visible{background-color:#f3f3f3;outline:none;text-decoration:underline;text-decoration-thickness:max(3px,.1875rem,.12em);text-underline-offset:.1578em}\n.govuk-react-search-box__option:focus-visible .govuk-react-search-box__suggestion-text{background-color:var(--govuk-focus-colour,#fd0)}\n.govuk-react-search-box__option[hidden]{display:none}\n.govuk-react-search-box__option-wrapper{display:flex;align-items:center;margin:0 15px;padding:5px 0}\n.govuk-react-search-box__option:not([hidden])~.govuk-react-search-box__option:not([hidden]) .govuk-react-search-box__option-wrapper{border-top:1px solid #b1b4b6}\n.govuk-react-search-box__suggestion-icon{flex:none;width:20px;height:2.5rem;margin-right:10px;background-color:#505a5f;-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 27'%3E%3Ccircle cx='12' cy='11' r='8.5' fill='none' stroke='%23000' stroke-width='3'/%3E%3Cpath d='m17.9 17.4 8.5 8.5' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E\") center/contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 27'%3E%3Ccircle cx='12' cy='11' r='8.5' fill='none' stroke='%23000' stroke-width='3'/%3E%3Cpath d='m17.9 17.4 8.5 8.5' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E\") center/contain no-repeat}\n.govuk-react-search-box__option[data-focused] .govuk-react-search-box__suggestion-icon,.govuk-react-search-box__option:hover .govuk-react-search-box__suggestion-icon,.govuk-react-search-box__option:focus-visible .govuk-react-search-box__suggestion-icon{background-color:#0b0c0c}\n.govuk-react-search-box__suggestion-text{font-weight:700}\n.govuk-react-search-box__suggestion-highlight{font-weight:400;background:none;color:inherit}\n.govuk-react-search-box--large .govuk-react-search-box__option{min-height:3.125rem}\n@media (forced-colors:active){.govuk-react-search-box__menu{border-color:FieldText}.govuk-react-search-box__option[data-focused],.govuk-react-search-box__option:hover{forced-color-adjust:none;background-color:Highlight;color:HighlightText}.govuk-react-search-box__suggestion-icon{background-color:currentcolor}}\n";
7
- type RootProps = ComponentProps<'div'> & {
8
- /** For use on dark backgrounds, such as a GOV.UK blue homepage banner. */
9
- inverse?: boolean;
10
- /** A larger input and button. */
11
- large?: boolean;
12
- };
13
- /** Wraps the search label, input and submit button. */
14
- declare function Root({ inverse, large, className, children, ...props }: RootProps): React.JSX.Element;
15
- type LabelProps = ComponentProps<'label'> & {
16
- /** The label size, from govuk-frontend’s label sizes. */
17
- size?: 's' | 'm' | 'l' | 'xl';
18
- /** Hide the label visually. It’s still read by screen readers. */
19
- visuallyHidden?: boolean;
20
- };
21
- declare function Label({ size, visuallyHidden, className, children, ...props }: LabelProps): React.JSX.Element;
22
- type WrapperProps = ComponentProps<'div'>;
23
- /** Lays out the input and submit button side by side. */
24
- declare function Wrapper({ className, ...props }: WrapperProps): React.JSX.Element;
25
- type InputProps = ComponentProps<'input'>;
26
- declare function Input({ className, type, ...props }: InputProps): React.JSX.Element;
27
- type ButtonProps = ComponentProps<'button'>;
28
- /** The submit button, with a search icon. Children are its accessible name, “Search” by default. */
29
- declare function Button({ className, children, ...props }: ButtonProps): React.JSX.Element;
30
- type CompositeProps = Omit<InputProps, 'id'> & Pick<RootProps, 'inverse' | 'large'> & {
31
- /** The input’s id, which the label points to. */
32
- id: string;
33
- /** The label text. */
34
- label?: ReactNode;
35
- /** The label size, from govuk-frontend’s label sizes. */
36
- labelSize?: LabelProps['size'];
37
- /** Hide the label visually. It’s still read by screen readers. */
38
- labelVisuallyHidden?: boolean;
39
- /** The submit button’s visually hidden text. */
40
- buttonText?: ReactNode;
41
- };
42
- /**
43
- * A search input with a label and an attached submit button, based on GOV.UK’s search component. Put it in your own `form`. Other props go on the input.
44
- *
45
- * @see https://components.publishing.service.gov.uk/component-guide/search
46
- */
47
- declare function Composite({ id, label, labelSize, labelVisuallyHidden, buttonText, inverse, large, ...props }: CompositeProps): React.JSX.Element;
48
- type AutocompleteProps = Primitives.RootProps;
49
- /**
50
- * Suggests searches as the user types, around `Wrapper`, `Listbox`, `Status` and `AssistiveHint`.
51
- * Without JavaScript the search box works as usual. Based on GOV.UK’s search with autocomplete,
52
- * with behaviour from accessible-autocomplete.
53
- */
54
- declare function Autocomplete({ className, ...props }: AutocompleteProps): React.JSX.Element;
55
- type AutocompleteInputProps = InputProps;
56
- /** `Input`, as the autocomplete’s combobox. */
57
- declare function AutocompleteInput(props: AutocompleteInputProps): React.JSX.Element;
58
- type ListboxProps = Primitives.ListboxProps;
59
- /** The menu of suggestions, under the search box. Hidden until there are suggestions to show. */
60
- declare function Listbox({ className, ...props }: ListboxProps): React.JSX.Element;
61
- type OptionProps = Primitives.OptionProps;
62
- /** A suggestion, in `Listbox`. Children are its text, which can hold `Match`. */
63
- declare function Option({ className, children, ...props }: OptionProps): React.JSX.Element;
64
- type MatchProps = ComponentProps<'mark'>;
65
- /** The part of a suggestion that matches the query, in `Option`. */
66
- declare function Match({ className, ...props }: MatchProps): React.JSX.Element;
67
- type StatusProps = Primitives.StatusProps;
68
- /** What screen readers hear about the suggestions. Visually hidden. */
69
- declare function Status(props: StatusProps): React.JSX.Element;
70
- type AssistiveHintProps = Primitives.AssistiveHintProps;
71
- /** How to use the suggestions, for screen readers. Never shown. */
72
- declare function AssistiveHint({ children, ...props }: AssistiveHintProps): React.JSX.Element;
73
- type AutocompleteCompositeProps = CompositeProps & Pick<AutocompleteProps, 'minLength' | 'filter' | 'onQueryChange' | 'onConfirm'> & {
74
- /**
75
- * The suggestions for the query, such as from `onQueryChange`. Only those containing the query
76
- * show, unless `filter` is "none", such as for suggestions a server has already matched.
77
- * Children are an alternative.
78
- */
79
- suggestions?: string[];
80
- /** `Option`s, rather than `suggestions`, such as to highlight the query with `Match`. */
81
- children?: ReactNode;
82
- };
83
- /**
84
- * A search box that suggests searches as the user types, based on GOV.UK’s search with
85
- * autocomplete. Choosing a suggestion submits the form. Put it in your own `form`. Other props go
86
- * on the input. Without JavaScript it’s `Composite`.
87
- *
88
- * @see https://components.publishing.service.gov.uk/component-guide/search_with_autocomplete
89
- */
90
- declare function AutocompleteComposite({ id, label, labelSize, labelVisuallyHidden, buttonText, inverse, large, minLength, filter, onQueryChange, onConfirm, suggestions, children, ...props }: AutocompleteCompositeProps): React.JSX.Element;
91
-
92
- declare const index_AssistiveHint: typeof AssistiveHint;
93
- type index_AssistiveHintProps = AssistiveHintProps;
94
- declare const index_Autocomplete: typeof Autocomplete;
95
- declare const index_AutocompleteComposite: typeof AutocompleteComposite;
96
- type index_AutocompleteCompositeProps = AutocompleteCompositeProps;
97
- declare const index_AutocompleteInput: typeof AutocompleteInput;
98
- type index_AutocompleteInputProps = AutocompleteInputProps;
99
- type index_AutocompleteProps = AutocompleteProps;
100
- declare const index_Button: typeof Button;
101
- type index_ButtonProps = ButtonProps;
102
- declare const index_Composite: typeof Composite;
103
- type index_CompositeProps = CompositeProps;
104
- declare const index_Input: typeof Input;
105
- type index_InputProps = InputProps;
106
- declare const index_Label: typeof Label;
107
- type index_LabelProps = LabelProps;
108
- declare const index_Listbox: typeof Listbox;
109
- type index_ListboxProps = ListboxProps;
110
- declare const index_Match: typeof Match;
111
- type index_MatchProps = MatchProps;
112
- declare const index_Option: typeof Option;
113
- type index_OptionProps = OptionProps;
114
- declare const index_Root: typeof Root;
115
- type index_RootProps = RootProps;
116
- declare const index_Status: typeof Status;
117
- type index_StatusProps = StatusProps;
118
- declare const index_Wrapper: typeof Wrapper;
119
- type index_WrapperProps = WrapperProps;
120
- declare const index_searchBoxCss: typeof searchBoxCss;
121
- declare namespace index {
122
- export { index_AssistiveHint as AssistiveHint, index_Autocomplete as Autocomplete, index_AutocompleteComposite as AutocompleteComposite, index_AutocompleteInput as AutocompleteInput, index_Button as Button, index_Composite as Composite, index_Input as Input, index_Label as Label, index_Listbox as Listbox, index_Match as Match, index_Option as Option, index_Root as Root, index_Status as Status, index_Wrapper as Wrapper, index_searchBoxCss as searchBoxCss };
123
- export type { index_AssistiveHintProps as AssistiveHintProps, index_AutocompleteCompositeProps as AutocompleteCompositeProps, index_AutocompleteInputProps as AutocompleteInputProps, index_AutocompleteProps as AutocompleteProps, index_ButtonProps as ButtonProps, index_CompositeProps as CompositeProps, index_InputProps as InputProps, index_LabelProps as LabelProps, index_ListboxProps as ListboxProps, index_MatchProps as MatchProps, index_OptionProps as OptionProps, index_RootProps as RootProps, index_StatusProps as StatusProps, index_WrapperProps as WrapperProps };
124
- }
125
-
126
- export { AssistiveHint as A, Button as B, Composite as C, Input as I, Label as L, Match as M, Option as O, Root as R, Status as S, Wrapper as W, Autocomplete as b, AutocompleteComposite as c, AutocompleteInput as e, index as i, Listbox as m, searchBoxCss as t };
127
- export type { AssistiveHintProps as a, AutocompleteCompositeProps as d, AutocompleteInputProps as f, AutocompleteProps as g, ButtonProps as h, CompositeProps as j, InputProps as k, LabelProps as l, ListboxProps as n, MatchProps as o, OptionProps as p, RootProps as q, StatusProps as r, WrapperProps as s };
@@ -1,40 +0,0 @@
1
- import * as React from 'react';
2
- import * as Markup from 'govuk-frontend-react/notification-banner';
3
- import { Content, ContentProps, Header, HeaderProps, Heading, HeadingProps, Link, LinkProps, Title, TitleProps } from 'govuk-frontend-react/notification-banner';
4
-
5
- type RootProps = Markup.RootProps;
6
- /**
7
- * Use a notification banner to tell the user about something they need to know about, but that’s not directly related to the page content.
8
- *
9
- * @see https://design-system.service.gov.uk/components/notification-banner/
10
- */
11
- declare function Root({ disableAutoFocus, ...props }: RootProps): React.JSX.Element;
12
- type CompositeProps = Markup.CompositeProps;
13
- /**
14
- * Use a notification banner to tell the user about something they need to know about, but that’s not directly related to the page content.
15
- *
16
- * @see https://design-system.service.gov.uk/components/notification-banner/
17
- */
18
- declare function Composite({ title, titleId, titleHeadingLevel, heading, success, children, ...props }: CompositeProps): React.JSX.Element;
19
-
20
- declare const index_Composite: typeof Composite;
21
- type index_CompositeProps = CompositeProps;
22
- declare const index_Content: typeof Content;
23
- declare const index_ContentProps: typeof ContentProps;
24
- declare const index_Header: typeof Header;
25
- declare const index_HeaderProps: typeof HeaderProps;
26
- declare const index_Heading: typeof Heading;
27
- declare const index_HeadingProps: typeof HeadingProps;
28
- declare const index_Link: typeof Link;
29
- declare const index_LinkProps: typeof LinkProps;
30
- declare const index_Root: typeof Root;
31
- type index_RootProps = RootProps;
32
- declare const index_Title: typeof Title;
33
- declare const index_TitleProps: typeof TitleProps;
34
- declare namespace index {
35
- export { index_Composite as Composite, index_Content as Content, index_ContentProps as ContentProps, index_Header as Header, index_HeaderProps as HeaderProps, index_Heading as Heading, index_HeadingProps as HeadingProps, index_Link as Link, index_LinkProps as LinkProps, index_Root as Root, index_Title as Title, index_TitleProps as TitleProps };
36
- export type { index_CompositeProps as CompositeProps, index_RootProps as RootProps };
37
- }
38
-
39
- export { Composite as C, Root as R, index as i };
40
- export type { CompositeProps as a, RootProps as b };
@@ -1,22 +0,0 @@
1
- import * as header from 'govuk-frontend-react/header';
2
-
3
- function _mergeNamespaces(n, m) {
4
- m.forEach(function (e) {
5
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
6
- if (k !== 'default' && !(k in n)) {
7
- var d = Object.getOwnPropertyDescriptor(e, k);
8
- Object.defineProperty(n, k, d.get ? d : {
9
- enumerable: true,
10
- get: function () { return e[k]; }
11
- });
12
- }
13
- });
14
- });
15
- return Object.freeze(n);
16
- }
17
-
18
- var index = /*#__PURE__*/_mergeNamespaces({
19
- __proto__: null
20
- }, [header]);
21
-
22
- export { index as i };
@@ -1,54 +0,0 @@
1
- import * as React from 'react';
2
- import { ComponentProps, ReactNode } from 'react';
3
-
4
- type RootProps = ComponentProps<'dl'>;
5
- /** A list of metadata about a document, such as who it’s from and what it’s part of. */
6
- declare function Root({ className, ...props }: RootProps): React.JSX.Element;
7
- type TermProps = ComponentProps<'dt'>;
8
- declare function Term({ className, ...props }: TermProps): React.JSX.Element;
9
- type DefinitionProps = ComponentProps<'dd'>;
10
- declare function Definition({ className, ...props }: DefinitionProps): React.JSX.Element;
11
- type ItemCompositeProps = {
12
- /** The label, such as “From”. A colon is added after it. */
13
- term: ReactNode;
14
- /** The values. Each renders as its own definition. */
15
- definitions: ReactNode[];
16
- };
17
- /** A term and its values. */
18
- declare function ItemComposite({ term, definitions }: ItemCompositeProps): React.JSX.Element;
19
- type CompositeProps = RootProps & {
20
- /** Values for “From”, such as organisation links. */
21
- from?: ReactNode[];
22
- /** Values for “Part of”, such as topic links. */
23
- partOf?: ReactNode[];
24
- /** Other items. Prefer `ItemComposite` children. */
25
- other?: {
26
- id?: string | number;
27
- title: ReactNode;
28
- content: ReactNode;
29
- }[];
30
- };
31
- /**
32
- * Metadata about a document. Children are `ItemComposite`s, rendered after `from`, `partOf` and `other`.
33
- *
34
- * @see https://components.publishing.service.gov.uk/component-guide/metadata
35
- */
36
- declare function Composite({ from, partOf, other, children, ...props }: CompositeProps): React.JSX.Element;
37
-
38
- declare const index_Composite: typeof Composite;
39
- type index_CompositeProps = CompositeProps;
40
- declare const index_Definition: typeof Definition;
41
- type index_DefinitionProps = DefinitionProps;
42
- declare const index_ItemComposite: typeof ItemComposite;
43
- type index_ItemCompositeProps = ItemCompositeProps;
44
- declare const index_Root: typeof Root;
45
- type index_RootProps = RootProps;
46
- declare const index_Term: typeof Term;
47
- type index_TermProps = TermProps;
48
- declare namespace index {
49
- export { index_Composite as Composite, index_Definition as Definition, index_ItemComposite as ItemComposite, index_Root as Root, index_Term as Term };
50
- export type { index_CompositeProps as CompositeProps, index_DefinitionProps as DefinitionProps, index_ItemCompositeProps as ItemCompositeProps, index_RootProps as RootProps, index_TermProps as TermProps };
51
- }
52
-
53
- export { Composite as C, Definition as D, ItemComposite as I, Root as R, Term as T, index as i };
54
- export type { CompositeProps as a, DefinitionProps as b, ItemCompositeProps as c, RootProps as d, TermProps as e };
@@ -1,22 +0,0 @@
1
- import * as feedback from 'govuk-frontend-react/feedback';
2
-
3
- function _mergeNamespaces(n, m) {
4
- m.forEach(function (e) {
5
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
6
- if (k !== 'default' && !(k in n)) {
7
- var d = Object.getOwnPropertyDescriptor(e, k);
8
- Object.defineProperty(n, k, d.get ? d : {
9
- enumerable: true,
10
- get: function () { return e[k]; }
11
- });
12
- }
13
- });
14
- });
15
- return Object.freeze(n);
16
- }
17
-
18
- var index = /*#__PURE__*/_mergeNamespaces({
19
- __proto__: null
20
- }, [feedback]);
21
-
22
- export { index as i };