@nnc-digital/nnc-design-system 1.0.0-alpha9 → 1.0.0-beta2

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 (553) hide show
  1. package/build/ThemeVars.types.d.ts +60 -0
  2. package/build/index.d.ts +42 -42
  3. package/build/index.js +822 -276
  4. package/build/index.js.map +1 -1
  5. package/build/index.mjs.js +822 -277
  6. package/build/index.mjs.js.map +1 -1
  7. package/build/library/components/AlphabeticalDirectory/AlphabeticalDirectory.d.ts +4 -4
  8. package/build/library/components/AlphabeticalDirectory/AlphabeticalDirectory.types.d.ts +26 -26
  9. package/build/library/components/Autocomplete/Autocomplete.d.ts +9 -9
  10. package/build/library/components/Autocomplete/Autocomplete.storydata.d.ts +47 -47
  11. package/build/library/components/Autocomplete/Autocomplete.test.d.ts +1 -0
  12. package/build/library/components/Autocomplete/Autocomplete.types.d.ts +78 -78
  13. package/build/library/components/BackToTop/BackToTop.d.ts +4 -4
  14. package/build/library/components/BackToTop/BackToTop.test.d.ts +1 -0
  15. package/build/library/components/BackToTop/BackToTop.types.d.ts +6 -6
  16. package/build/library/components/BinCollection/BinCollection.d.ts +7 -7
  17. package/build/library/components/BinCollection/BinCollection.styles.d.ts +2937 -15
  18. package/build/library/components/BinCollection/BinCollection.test.d.ts +1 -0
  19. package/build/library/components/BinCollection/BinCollection.testdata.d.ts +34 -34
  20. package/build/library/components/BinCollection/BinCollection.types.d.ts +68 -69
  21. package/build/library/components/Button/Button.d.ts +7 -7
  22. package/build/library/components/Button/Button.types.d.ts +43 -43
  23. package/build/library/components/Card/Card.d.ts +7 -7
  24. package/build/library/components/Card/Card.test.d.ts +1 -0
  25. package/build/library/components/Card/Card.types.d.ts +36 -36
  26. package/build/library/components/CheckboxListFilter/CheckboxListFilter.d.ts +4 -4
  27. package/build/library/components/CheckboxListFilter/CheckboxListFilter.test.d.ts +1 -0
  28. package/build/library/components/CheckboxListFilter/CheckboxListFilter.types.d.ts +36 -36
  29. package/build/library/components/Column/Column.d.ts +4 -4
  30. package/build/library/components/Column/Column.test.d.ts +1 -0
  31. package/build/library/components/Column/Column.types.d.ts +35 -36
  32. package/build/library/components/CustomSearch/CustomSearch.d.ts +4 -4
  33. package/build/library/components/CustomSearch/CustomSearch.storydata.d.ts +2 -2
  34. package/build/library/components/CustomSearch/CustomSearch.test.d.ts +1 -0
  35. package/build/library/components/CustomSearch/CustomSearch.types.d.ts +34 -34
  36. package/build/library/components/DropDownFilter/DropDownFilter.d.ts +4 -4
  37. package/build/library/components/DropDownFilter/DropDownFilter.types.d.ts +32 -32
  38. package/build/library/components/DropDownSelect/DropDownSelect.d.ts +4 -4
  39. package/build/library/components/DropDownSelect/DropDownSelect.types.d.ts +36 -36
  40. package/build/library/components/DynamicIcon/DynamicIcon.d.ts +7 -7
  41. package/build/library/components/DynamicIcon/DynamicIcon.test.d.ts +1 -0
  42. package/build/library/components/DynamicIcon/DynamicIcon.types.d.ts +10 -10
  43. package/build/library/components/FileDownload/FileDownload.d.ts +7 -7
  44. package/build/library/components/FileDownload/FileDownload.test.d.ts +1 -0
  45. package/build/library/components/FileDownload/FileDownload.types.d.ts +22 -22
  46. package/build/library/components/FormButton/FormButton.d.ts +7 -7
  47. package/build/library/components/FormButton/FormButton.types.d.ts +26 -27
  48. package/build/library/components/FormWithLine/FormWithLine.d.ts +7 -7
  49. package/build/library/components/FormWithLine/FormWithLine.types.d.ts +39 -39
  50. package/build/library/components/Heading/Heading.d.ts +7 -7
  51. package/build/library/components/Heading/Heading.types.d.ts +10 -10
  52. package/build/library/components/HeadingWithIcon/HeadingWithIcon.d.ts +7 -7
  53. package/build/library/components/HeadingWithIcon/HeadingWithIcon.test.d.ts +1 -0
  54. package/build/library/components/HeadingWithIcon/HeadingWithIcon.types.d.ts +18 -18
  55. package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.d.ts +4 -4
  56. package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.test.d.ts +1 -0
  57. package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.types.d.ts +14 -14
  58. package/build/library/components/HintText/HintText.d.ts +7 -7
  59. package/build/library/components/HintText/HintText.types.d.ts +6 -6
  60. package/build/library/components/Input/Input.d.ts +8 -8
  61. package/build/library/components/Input/Input.types.d.ts +52 -45
  62. package/build/library/components/LoadingSpinner/LoadingSpinner.d.ts +4 -4
  63. package/build/library/components/LoadingSpinner/LoadingSpinner.types.d.ts +2 -2
  64. package/build/library/components/Map/Map.d.ts +7 -7
  65. package/build/library/components/Map/Map.types.d.ts +15 -16
  66. package/build/library/components/MapMarker/MapMarker.d.ts +6 -7
  67. package/build/library/components/Pagination/Pagination.d.ts +4 -4
  68. package/build/library/components/Pagination/Pagination.test.d.ts +1 -0
  69. package/build/library/components/Pagination/Pagination.types.d.ts +23 -23
  70. package/build/library/components/PostCodeAddressDropdown/PostCodeAddressDropdown.d.ts +7 -7
  71. package/build/library/components/PostCodeAddressDropdown/PostCodeAddressDropdown.types.d.ts +2 -2
  72. package/build/library/components/PostCodeAddressSearch/PostCodeAddressSearch.d.ts +7 -7
  73. package/build/library/components/PostCodeAddressSearch/PostCodeAddressSearch.types.d.ts +23 -23
  74. package/build/library/components/PostCodeAddressTable/PostCodeAddressTable.d.ts +4 -4
  75. package/build/library/components/PostCodeAddressTable/PostCodeAddressTable.types.d.ts +2 -2
  76. package/build/library/components/PostCodeSearch/PostCodeSearch.d.ts +7 -7
  77. package/build/library/components/PostCodeSearch/PostCodeSearch.test.d.ts +1 -0
  78. package/build/library/components/PostCodeSearch/PostCodeSearch.types.d.ts +52 -52
  79. package/build/library/components/PromotedLinks/PromotedLinks.d.ts +4 -4
  80. package/build/library/components/PromotedLinks/PromotedLinks.test.d.ts +1 -0
  81. package/build/library/components/PromotedLinks/PromotedLinks.types.d.ts +20 -20
  82. package/build/library/components/RadioCheckboxInput/RadioCheckboxInput.d.ts +4 -4
  83. package/build/library/components/RadioCheckboxInput/RadioCheckboxInput.test.d.ts +1 -0
  84. package/build/library/components/RadioCheckboxInput/RadioCheckboxInput.types.d.ts +26 -27
  85. package/build/library/components/RemovableTag/RemovableTag.d.ts +4 -4
  86. package/build/library/components/RemovableTag/RemovableTag.types.d.ts +8 -8
  87. package/build/library/components/RemoveAllFilters/RemoveAllFilters.d.ts +4 -4
  88. package/build/library/components/RemoveAllFilters/RemoveAllFilters.types.d.ts +3 -3
  89. package/build/library/components/Row/Row.d.ts +4 -4
  90. package/build/library/components/Row/Row.test.d.ts +1 -0
  91. package/build/library/components/Row/Row.types.d.ts +20 -20
  92. package/build/library/components/SignpostLinksList/SignpostLinksList.d.ts +4 -4
  93. package/build/library/components/SignpostLinksList/SignpostLinksList.types.d.ts +24 -24
  94. package/build/library/components/SortBy/SortBy.d.ts +4 -4
  95. package/build/library/components/SortBy/SortBy.types.d.ts +20 -20
  96. package/build/library/components/StaticMap/StaticMap.d.ts +7 -7
  97. package/build/library/components/StaticMap/StaticMap.test.d.ts +1 -0
  98. package/build/library/components/StaticMap/StaticMap.types.d.ts +52 -52
  99. package/build/library/components/SummaryList/SummaryList.d.ts +4 -4
  100. package/build/library/components/SummaryList/SummaryList.test.d.ts +1 -0
  101. package/build/library/components/SummaryList/SummaryList.types.d.ts +21 -21
  102. package/build/library/components/TextInput/TextInput.d.ts +7 -7
  103. package/build/library/components/TextInput/TextInput.types.d.ts +38 -38
  104. package/build/library/components/icons/ChevronIcon/ChevronIcon.d.ts +4 -4
  105. package/build/library/components/icons/ChevronIcon/ChevronIcon.types.d.ts +10 -10
  106. package/build/library/components/icons/CloseIcon/CloseIcon.d.ts +4 -4
  107. package/build/library/components/icons/CloseIcon/CloseIcon.types.d.ts +6 -6
  108. package/build/library/components/icons/DownloadFileIcon/DownloadFileIcon.d.ts +4 -4
  109. package/build/library/components/icons/DownloadFileIcon/DownloadFileIcon.types.d.ts +6 -6
  110. package/build/library/components/icons/EmailIcon/EmailIcon.d.ts +4 -4
  111. package/build/library/components/icons/EmailIcon/EmailIcon.types.d.ts +6 -6
  112. package/build/library/components/icons/FacebookIcon/Icon.d.ts +4 -4
  113. package/build/library/components/icons/HeartIcon/HeartIcon.d.ts +7 -7
  114. package/build/library/components/icons/HeartIcon/HeartIcon.types.d.ts +6 -6
  115. package/build/library/components/icons/InstagramIcon/Icon.d.ts +4 -4
  116. package/build/library/components/icons/LinkIcon/LinkIcon.d.ts +4 -4
  117. package/build/library/components/icons/LinkIcon/LinkIcon.types.d.ts +6 -6
  118. package/build/library/components/icons/LinkedInIcon/Icon.d.ts +4 -4
  119. package/build/library/components/icons/PhoneIcon/PhoneIcon.d.ts +4 -4
  120. package/build/library/components/icons/PhoneIcon/PhoneIcon.types.d.ts +6 -6
  121. package/build/library/components/icons/PinIcon/PinIcon.d.ts +7 -7
  122. package/build/library/components/icons/PinIcon/PinIcon.types.d.ts +6 -6
  123. package/build/library/components/icons/SearchIcon/SearchIcon.d.ts +4 -4
  124. package/build/library/components/icons/SearchIcon/SearchIcon.types.d.ts +6 -6
  125. package/build/library/components/icons/TwitterIcon/Icon.d.ts +4 -4
  126. package/build/library/components/icons/WebsiteIcon/WebsiteIcon.d.ts +4 -4
  127. package/build/library/components/icons/WebsiteIcon/WebsiteIcon.types.d.ts +6 -6
  128. package/build/library/components/icons/YouTubeIcon/Icon.d.ts +4 -4
  129. package/build/library/components/icons/services/AccessibleParking/Icon.d.ts +4 -4
  130. package/build/library/components/icons/services/AccessibleParking/IconHover.d.ts +4 -4
  131. package/build/library/components/icons/services/Address/Icon.d.ts +4 -4
  132. package/build/library/components/icons/services/Address/IconHover.d.ts +4 -4
  133. package/build/library/components/icons/services/AddressChange/Icon.d.ts +4 -4
  134. package/build/library/components/icons/services/AddressChange/IconHover.d.ts +4 -4
  135. package/build/library/components/icons/services/Adults/Icon.d.ts +4 -4
  136. package/build/library/components/icons/services/Adults/IconHover.d.ts +4 -4
  137. package/build/library/components/icons/services/AssistiveTechnology/Icon.d.ts +4 -4
  138. package/build/library/components/icons/services/AssistiveTechnology/IconHover.d.ts +4 -4
  139. package/build/library/components/icons/services/Benefits/Icon.d.ts +4 -4
  140. package/build/library/components/icons/services/Benefits/IconHover.d.ts +4 -4
  141. package/build/library/components/icons/services/BinDay/Icon.d.ts +4 -4
  142. package/build/library/components/icons/services/BinDay/IconHover.d.ts +4 -4
  143. package/build/library/components/icons/services/Bins/Icon.d.ts +4 -4
  144. package/build/library/components/icons/services/Bins/IconHover.d.ts +4 -4
  145. package/build/library/components/icons/services/BirthCertificate/Icon.d.ts +4 -4
  146. package/build/library/components/icons/services/BirthCertificate/IconHover.d.ts +4 -4
  147. package/build/library/components/icons/services/Births/Icon.d.ts +4 -4
  148. package/build/library/components/icons/services/Births/IconHover.d.ts +4 -4
  149. package/build/library/components/icons/services/Bollard/Icon.d.ts +4 -4
  150. package/build/library/components/icons/services/Bollard/IconHover.d.ts +4 -4
  151. package/build/library/components/icons/services/BulkWaste/Icon.d.ts +4 -4
  152. package/build/library/components/icons/services/BulkWaste/IconHover.d.ts +4 -4
  153. package/build/library/components/icons/services/Bus/Icon.d.ts +4 -4
  154. package/build/library/components/icons/services/Bus/IconHover.d.ts +4 -4
  155. package/build/library/components/icons/services/BusPass/Icon.d.ts +4 -4
  156. package/build/library/components/icons/services/BusPass/IconHover.d.ts +4 -4
  157. package/build/library/components/icons/services/Business/Icon.d.ts +4 -4
  158. package/build/library/components/icons/services/Business/IconHover.d.ts +4 -4
  159. package/build/library/components/icons/services/Careers/Icon.d.ts +4 -4
  160. package/build/library/components/icons/services/Careers/IconHover.d.ts +4 -4
  161. package/build/library/components/icons/services/Cash/Icon.d.ts +4 -4
  162. package/build/library/components/icons/services/Cash/IconHover.d.ts +4 -4
  163. package/build/library/components/icons/services/Catalogue/Icon.d.ts +4 -4
  164. package/build/library/components/icons/services/Catalogue/IconHover.d.ts +4 -4
  165. package/build/library/components/icons/services/Ceremony/Icon.d.ts +4 -4
  166. package/build/library/components/icons/services/Ceremony/IconHover.d.ts +4 -4
  167. package/build/library/components/icons/services/Charity/Icon.d.ts +4 -4
  168. package/build/library/components/icons/services/Charity/IconHover.d.ts +4 -4
  169. package/build/library/components/icons/services/Children/Icon.d.ts +4 -4
  170. package/build/library/components/icons/services/Children/IconHover.d.ts +4 -4
  171. package/build/library/components/icons/services/Computer/Icon.d.ts +4 -4
  172. package/build/library/components/icons/services/Computer/IconHover.d.ts +4 -4
  173. package/build/library/components/icons/services/CondolenceBook/Icon.d.ts +4 -4
  174. package/build/library/components/icons/services/CondolenceBook/IconHover.d.ts +4 -4
  175. package/build/library/components/icons/services/Cooking/Icon.d.ts +4 -4
  176. package/build/library/components/icons/services/Cooking/IconHover.d.ts +4 -4
  177. package/build/library/components/icons/services/Council/Icon.d.ts +4 -4
  178. package/build/library/components/icons/services/Council/IconHover.d.ts +4 -4
  179. package/build/library/components/icons/services/CouncilTax/Icon.d.ts +4 -4
  180. package/build/library/components/icons/services/CouncilTax/IconHover.d.ts +4 -4
  181. package/build/library/components/icons/services/Covid/Icon.d.ts +4 -4
  182. package/build/library/components/icons/services/Covid/IconHover.d.ts +4 -4
  183. package/build/library/components/icons/services/Culture/Icon.d.ts +4 -4
  184. package/build/library/components/icons/services/Culture/IconHover.d.ts +4 -4
  185. package/build/library/components/icons/services/CultureNorth/Icon.d.ts +4 -4
  186. package/build/library/components/icons/services/CultureNorth/IconHover.d.ts +4 -4
  187. package/build/library/components/icons/services/CultureWest/Icon.d.ts +4 -4
  188. package/build/library/components/icons/services/CultureWest/IconHover.d.ts +4 -4
  189. package/build/library/components/icons/services/DOLS/Icon.d.ts +4 -4
  190. package/build/library/components/icons/services/DOLS/IconHover.d.ts +4 -4
  191. package/build/library/components/icons/services/DeathCertificate/Icon.d.ts +4 -4
  192. package/build/library/components/icons/services/DeathCertificate/IconHover.d.ts +4 -4
  193. package/build/library/components/icons/services/Democracy/Icon.d.ts +4 -4
  194. package/build/library/components/icons/services/Democracy/IconHover.d.ts +4 -4
  195. package/build/library/components/icons/services/DogFouling/Icon.d.ts +4 -4
  196. package/build/library/components/icons/services/DogFouling/IconHover.d.ts +4 -4
  197. package/build/library/components/icons/services/Ebook/Icon.d.ts +4 -4
  198. package/build/library/components/icons/services/Ebook/IconHover.d.ts +4 -4
  199. package/build/library/components/icons/services/Edit/Icon.d.ts +4 -4
  200. package/build/library/components/icons/services/Edit/IconHover.d.ts +4 -4
  201. package/build/library/components/icons/services/Environment/Icon.d.ts +4 -4
  202. package/build/library/components/icons/services/Environment/IconHover.d.ts +4 -4
  203. package/build/library/components/icons/services/Events/Icon.d.ts +4 -4
  204. package/build/library/components/icons/services/Events/IconHover.d.ts +4 -4
  205. package/build/library/components/icons/services/Finance/Icon.d.ts +4 -4
  206. package/build/library/components/icons/services/Finance/IconHover.d.ts +4 -4
  207. package/build/library/components/icons/services/Flower/Icon.d.ts +4 -4
  208. package/build/library/components/icons/services/Flower/IconHover.d.ts +4 -4
  209. package/build/library/components/icons/services/FlyTip/Icon.d.ts +4 -4
  210. package/build/library/components/icons/services/FlyTip/IconHover.d.ts +4 -4
  211. package/build/library/components/icons/services/FoodWaste/Icon.d.ts +4 -4
  212. package/build/library/components/icons/services/FoodWaste/IconHover.d.ts +4 -4
  213. package/build/library/components/icons/services/GiveNotice/Icon.d.ts +4 -4
  214. package/build/library/components/icons/services/GiveNotice/IconHover.d.ts +4 -4
  215. package/build/library/components/icons/services/GovUK/Icon.d.ts +4 -4
  216. package/build/library/components/icons/services/GovUK/IconHover.d.ts +4 -4
  217. package/build/library/components/icons/services/Graffiti/Icon.d.ts +4 -4
  218. package/build/library/components/icons/services/Graffiti/IconHover.d.ts +4 -4
  219. package/build/library/components/icons/services/Highway/Icon.d.ts +4 -4
  220. package/build/library/components/icons/services/Highway/IconHover.d.ts +4 -4
  221. package/build/library/components/icons/services/HouseMoney/Icon.d.ts +4 -4
  222. package/build/library/components/icons/services/HouseMoney/IconHover.d.ts +4 -4
  223. package/build/library/components/icons/services/Housing/Icon.d.ts +4 -4
  224. package/build/library/components/icons/services/Housing/IconHover.d.ts +4 -4
  225. package/build/library/components/icons/services/Icon.types.d.ts +6 -6
  226. package/build/library/components/icons/services/Independence/Icon.d.ts +4 -4
  227. package/build/library/components/icons/services/Independence/IconHover.d.ts +4 -4
  228. package/build/library/components/icons/services/KeepingHealthy/Icon.d.ts +4 -4
  229. package/build/library/components/icons/services/KeepingHealthy/IconHover.d.ts +4 -4
  230. package/build/library/components/icons/services/Libraries/Icon.d.ts +4 -4
  231. package/build/library/components/icons/services/Libraries/IconHover.d.ts +4 -4
  232. package/build/library/components/icons/services/Litter/Icon.d.ts +4 -4
  233. package/build/library/components/icons/services/Litter/IconHover.d.ts +4 -4
  234. package/build/library/components/icons/services/LookingAfterYourself/Icon.d.ts +4 -4
  235. package/build/library/components/icons/services/LookingAfterYourself/IconHover.d.ts +4 -4
  236. package/build/library/components/icons/services/MapPin/Icon.d.ts +4 -4
  237. package/build/library/components/icons/services/MapPin/IconHover.d.ts +4 -4
  238. package/build/library/components/icons/services/Member/Icon.d.ts +4 -4
  239. package/build/library/components/icons/services/Member/IconHover.d.ts +4 -4
  240. package/build/library/components/icons/services/MentalHealth/Icon.d.ts +4 -4
  241. package/build/library/components/icons/services/MentalHealth/IconHover.d.ts +4 -4
  242. package/build/library/components/icons/services/MissedBin/Icon.d.ts +4 -4
  243. package/build/library/components/icons/services/MissedBin/IconHover.d.ts +4 -4
  244. package/build/library/components/icons/services/New/Icon.d.ts +4 -4
  245. package/build/library/components/icons/services/New/IconHover.d.ts +4 -4
  246. package/build/library/components/icons/services/OccupationalTherapy/Icon.d.ts +4 -4
  247. package/build/library/components/icons/services/OccupationalTherapy/IconHover.d.ts +4 -4
  248. package/build/library/components/icons/services/ParkEvent/Icon.d.ts +4 -4
  249. package/build/library/components/icons/services/ParkEvent/IconHover.d.ts +4 -4
  250. package/build/library/components/icons/services/Parking/Icon.d.ts +4 -4
  251. package/build/library/components/icons/services/Parking/IconHover.d.ts +4 -4
  252. package/build/library/components/icons/services/ParkingTicket/Icon.d.ts +4 -4
  253. package/build/library/components/icons/services/ParkingTicket/IconHover.d.ts +4 -4
  254. package/build/library/components/icons/services/Pay/Icon.d.ts +4 -4
  255. package/build/library/components/icons/services/Pay/IconHover.d.ts +4 -4
  256. package/build/library/components/icons/services/PhonePay/Icon.d.ts +4 -4
  257. package/build/library/components/icons/services/PhonePay/IconHover.d.ts +4 -4
  258. package/build/library/components/icons/services/Planning/Icon.d.ts +4 -4
  259. package/build/library/components/icons/services/Planning/IconHover.d.ts +4 -4
  260. package/build/library/components/icons/services/Pothole/Icon.d.ts +4 -4
  261. package/build/library/components/icons/services/Pothole/IconHover.d.ts +4 -4
  262. package/build/library/components/icons/services/PreventingFalls/Icon.d.ts +4 -4
  263. package/build/library/components/icons/services/PreventingFalls/IconHover.d.ts +4 -4
  264. package/build/library/components/icons/services/Protect/Icon.d.ts +4 -4
  265. package/build/library/components/icons/services/Protect/IconHover.d.ts +4 -4
  266. package/build/library/components/icons/services/RatePay/Icon.d.ts +4 -4
  267. package/build/library/components/icons/services/RatePay/IconHover.d.ts +4 -4
  268. package/build/library/components/icons/services/RegisterBirth/Icon.d.ts +4 -4
  269. package/build/library/components/icons/services/RegisterBirth/IconHover.d.ts +4 -4
  270. package/build/library/components/icons/services/RegisterDeath/Icon.d.ts +4 -4
  271. package/build/library/components/icons/services/RegisterDeath/IconHover.d.ts +4 -4
  272. package/build/library/components/icons/services/Report/Icon.d.ts +4 -4
  273. package/build/library/components/icons/services/Report/IconHover.d.ts +4 -4
  274. package/build/library/components/icons/services/Restrict/Icon.d.ts +4 -4
  275. package/build/library/components/icons/services/Restrict/IconHover.d.ts +4 -4
  276. package/build/library/components/icons/services/RoadWorks/Icon.d.ts +4 -4
  277. package/build/library/components/icons/services/RoadWorks/IconHover.d.ts +4 -4
  278. package/build/library/components/icons/services/Roads/Icon.d.ts +4 -4
  279. package/build/library/components/icons/services/Roads/IconHover.d.ts +4 -4
  280. package/build/library/components/icons/services/RoyalWebsite/Icon.d.ts +4 -4
  281. package/build/library/components/icons/services/RoyalWebsite/IconHover.d.ts +4 -4
  282. package/build/library/components/icons/services/SEND/Icon.d.ts +4 -4
  283. package/build/library/components/icons/services/SEND/IconHover.d.ts +4 -4
  284. package/build/library/components/icons/services/Safety/Icon.d.ts +4 -4
  285. package/build/library/components/icons/services/Safety/IconHover.d.ts +4 -4
  286. package/build/library/components/icons/services/SchoolAdmissions/Icon.d.ts +4 -4
  287. package/build/library/components/icons/services/SchoolAdmissions/IconHover.d.ts +4 -4
  288. package/build/library/components/icons/services/Schools/Icon.d.ts +4 -4
  289. package/build/library/components/icons/services/Schools/IconHover.d.ts +4 -4
  290. package/build/library/components/icons/services/ServicesIcons.d.ts +173 -174
  291. package/build/library/components/icons/services/SinglePerson/Icon.d.ts +4 -4
  292. package/build/library/components/icons/services/SinglePerson/IconHover.d.ts +4 -4
  293. package/build/library/components/icons/services/Sports/Icon.d.ts +4 -4
  294. package/build/library/components/icons/services/Sports/IconHover.d.ts +4 -4
  295. package/build/library/components/icons/services/Valuation/Icon.d.ts +4 -4
  296. package/build/library/components/icons/services/Valuation/IconHover.d.ts +4 -4
  297. package/build/library/components/icons/services/Venue/Icon.d.ts +4 -4
  298. package/build/library/components/icons/services/Venue/IconHover.d.ts +4 -4
  299. package/build/library/components/icons/services/WasteChecklist/Icon.d.ts +4 -4
  300. package/build/library/components/icons/services/WasteChecklist/IconHover.d.ts +4 -4
  301. package/build/library/components/icons/services/WasteSorting/Icon.d.ts +4 -4
  302. package/build/library/components/icons/services/WasteSorting/IconHover.d.ts +4 -4
  303. package/build/library/components/logos/GDSLogo/logo.d.ts +4 -4
  304. package/build/library/components/logos/GDSLogo/logo.types.d.ts +2 -2
  305. package/build/library/components/logos/NorthColouredLogo/logo.d.ts +4 -4
  306. package/build/library/components/logos/NorthColouredLogo/logo.types.d.ts +2 -2
  307. package/build/library/components/logos/NorthWhiteLogo/logo.d.ts +4 -4
  308. package/build/library/components/logos/NorthWhiteLogo/logo.types.d.ts +2 -2
  309. package/build/library/components/logos/WestColouredLogo/logo.d.ts +4 -4
  310. package/build/library/components/logos/WestColouredLogo/logo.types.d.ts +2 -2
  311. package/build/library/components/logos/WestWhiteLogo/logo.d.ts +4 -4
  312. package/build/library/components/logos/WestWhiteLogo/logo.types.d.ts +2 -2
  313. package/build/library/contexts/DirectoryShortListProvider/DirectoryShortListProvider.d.ts +4 -4
  314. package/build/library/contexts/DirectoryShortListProvider/DirectoryShortListProvider.types.d.ts +55 -41
  315. package/build/library/contexts/PostCodeAddressProvider/PostCodeAddressProvider.d.ts +6 -6
  316. package/build/library/contexts/PostCodeAddressProvider/PostCodeAddressProvider.types.d.ts +18 -18
  317. package/build/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.d.ts +4 -4
  318. package/build/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.test.d.ts +1 -0
  319. package/build/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.types.d.ts +35 -26
  320. package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.d.ts +4 -4
  321. package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.storydata.d.ts +4 -4
  322. package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.test.d.ts +1 -0
  323. package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.types.d.ts +67 -63
  324. package/build/library/directory/DirectoryMap/DirectoryMap.d.ts +4 -4
  325. package/build/library/directory/DirectoryMap/DirectoryMap.types.d.ts +11 -11
  326. package/build/library/directory/DirectoryService/DirectoryService.d.ts +4 -4
  327. package/build/library/directory/DirectoryService/DirectoryService.storydata.d.ts +5 -4
  328. package/build/library/directory/DirectoryService/DirectoryService.test.d.ts +1 -0
  329. package/build/library/directory/DirectoryService/DirectoryService.types.d.ts +282 -278
  330. package/build/library/directory/DirectoryService/DirectoryServiceTransform.d.ts +8 -8
  331. package/build/library/directory/DirectoryService/DirectoryServiceTransform.test.d.ts +1 -0
  332. package/build/library/directory/DirectoryServiceList/DirectoryServiceList.d.ts +4 -4
  333. package/build/library/directory/DirectoryServiceList/DirectoryServiceList.storydata.d.ts +6 -6
  334. package/build/library/directory/DirectoryServiceList/DirectoryServiceList.test.d.ts +1 -0
  335. package/build/library/directory/DirectoryServiceList/DirectoryServiceList.types.d.ts +148 -136
  336. package/build/library/directory/DirectoryShortList/DirectoryShortList.d.ts +4 -4
  337. package/build/library/directory/DirectoryShortList/DirectoryShortList.test.d.ts +1 -0
  338. package/build/library/directory/DirectoryShortList/DirectoryShortList.types.d.ts +6 -6
  339. package/build/library/directory/ServiceContact/ServiceContact.d.ts +4 -4
  340. package/build/library/directory/ServiceContact/ServiceContact.test.d.ts +1 -0
  341. package/build/library/directory/ServiceContact/ServiceContact.types.d.ts +46 -42
  342. package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.d.ts +4 -4
  343. package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.storydata.d.ts +2 -2
  344. package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.test.d.ts +1 -0
  345. package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.types.d.ts +24 -24
  346. package/build/library/helpers/UseLocalStorage.d.ts +2 -2
  347. package/build/library/helpers/api-helpers.d.ts +120 -120
  348. package/build/library/pages/ContentPage/ContentPage.d.ts +4 -4
  349. package/build/library/pages/ContentPage/ContentPage.storydata.d.ts +10 -10
  350. package/build/library/pages/CouncilTaxPageExample/CouncilTaxPageExample.d.ts +5 -5
  351. package/build/library/pages/CouncilTaxParishPageExample/CouncilTaxParishPageExample.d.ts +5 -5
  352. package/build/library/pages/DirectoryServicePage/DirectoryServicePage.d.ts +2 -2
  353. package/build/library/pages/ErrorPage/ErrorPage.d.ts +6 -6
  354. package/build/library/pages/Home/HomePage.d.ts +8 -8
  355. package/build/library/pages/Home/HomePage.types.d.ts +60 -60
  356. package/build/library/pages/MemorialPage/MemorialPage.d.ts +8 -8
  357. package/build/library/pages/MemorialPage/MemorialPage.types.d.ts +59 -59
  358. package/build/library/pages/News/News.d.ts +5 -5
  359. package/build/library/pages/NewsArticle/NewsArticle.d.ts +7 -7
  360. package/build/library/pages/SearchResultsPageExample/SearchResultsPageExample.d.ts +29 -29
  361. package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.d.ts +3 -3
  362. package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.storydata.d.ts +30 -30
  363. package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.types.d.ts +52 -52
  364. package/build/library/pages/ServicePageExample/ServicePageExample.d.ts +7 -7
  365. package/build/library/pages/SignpostPageExample/SignpostPageExample.d.ts +7 -7
  366. package/build/library/pages/Templates/Templates.d.ts +8 -8
  367. package/build/library/slices/Accordion/Accordion.d.ts +4 -4
  368. package/build/library/slices/Accordion/Accordion.test.d.ts +1 -0
  369. package/build/library/slices/Accordion/Accordion.types.d.ts +52 -53
  370. package/build/library/slices/Accordion/AccordionSection.d.ts +4 -4
  371. package/build/library/slices/BlockQuote/BlockQuote.d.ts +4 -4
  372. package/build/library/slices/BlockQuote/BlockQuote.types.d.ts +10 -11
  373. package/build/library/slices/CallToAction/CallToAction.d.ts +7 -7
  374. package/build/library/slices/Cards/Cards.d.ts +7 -7
  375. package/build/library/slices/Cards/Cards.test.d.ts +1 -0
  376. package/build/library/slices/Cards/Cards.types.d.ts +7 -7
  377. package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.d.ts +7 -7
  378. package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.storydata.d.ts +4 -4
  379. package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.test.d.ts +1 -0
  380. package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.types.d.ts +81 -81
  381. package/build/library/slices/Divider/Divider.d.ts +4 -4
  382. package/build/library/slices/Divider/Divider.types.d.ts +2 -2
  383. package/build/library/slices/DownloadableFiles/DownloadableFiles.d.ts +4 -4
  384. package/build/library/slices/DownloadableFiles/DownloadableFiles.types.d.ts +7 -7
  385. package/build/library/slices/GoogleMap/GoogleMap.d.ts +7 -7
  386. package/build/library/slices/GoogleMap/GoogleMap.storydata.d.ts +44 -44
  387. package/build/library/slices/GoogleMap/GoogleMap.test.d.ts +1 -0
  388. package/build/library/slices/GoogleMap/GoogleMap.types.d.ts +28 -28
  389. package/build/library/slices/Image/Image.d.ts +8 -8
  390. package/build/library/slices/Image/Image.storydata.d.ts +2 -2
  391. package/build/library/slices/Image/Image.test.d.ts +1 -0
  392. package/build/library/slices/Image/Image.types.d.ts +26 -26
  393. package/build/library/slices/ImageAndText/ImageAndText.d.ts +7 -7
  394. package/build/library/slices/ImageAndText/ImageAndText.storydata.d.ts +2 -2
  395. package/build/library/slices/ImageAndText/ImageAndText.test.d.ts +1 -0
  396. package/build/library/slices/ImageAndText/ImageAndText.types.d.ts +15 -15
  397. package/build/library/slices/InquestSchedule/InquestSchedule.d.ts +7 -7
  398. package/build/library/slices/InquestSchedule/InquestSchedule.storydata.d.ts +3 -2
  399. package/build/library/slices/InquestSchedule/InquestSchedule.test.d.ts +1 -0
  400. package/build/library/slices/InquestSchedule/InquestSchedule.types.d.ts +29 -24
  401. package/build/library/slices/Promotions/Promotions.d.ts +7 -7
  402. package/build/library/slices/RoadworksList/RoadworksList.d.ts +7 -0
  403. package/build/library/slices/RoadworksList/RoadworksList.storydata.d.ts +4 -0
  404. package/build/library/slices/RoadworksList/RoadworksList.test.d.ts +1 -0
  405. package/build/library/slices/RoadworksList/RoadworksList.types.d.ts +48 -0
  406. package/build/library/slices/SearchBox/SearchBox.d.ts +4 -4
  407. package/build/library/slices/SearchBox/SearchBox.storydata.d.ts +2 -2
  408. package/build/library/slices/SearchBox/SearchBox.test.d.ts +1 -0
  409. package/build/library/slices/SearchBox/SearchBox.types.d.ts +41 -41
  410. package/build/library/slices/Video/Video.d.ts +7 -7
  411. package/build/library/slices/Video/Video.test.d.ts +1 -0
  412. package/build/library/slices/Video/Video.types.d.ts +22 -22
  413. package/build/library/slices/WarningText/WarningText.d.ts +7 -7
  414. package/build/library/slices/WarningText/WarningText.test.d.ts +1 -0
  415. package/build/library/slices/WarningText/WarningText.types.d.ts +14 -15
  416. package/build/library/slices/WarningTextDisclaimer/WarningTextDisclaimer.d.ts +4 -4
  417. package/build/library/slices/WarningTextDisclaimer/WarningTextDisclaimer.types.d.ts +2 -2
  418. package/build/library/structure/AccessibleLinks/AccessibleLinks.d.ts +4 -4
  419. package/build/library/structure/AccessibleLinks/AccessibleLinks.types.d.ts +22 -22
  420. package/build/library/structure/AlertBanner/AlertBanner.d.ts +7 -7
  421. package/build/library/structure/AlertBanner/AlertBanner.test.d.ts +1 -0
  422. package/build/library/structure/AlertBanner/AlertBanner.types.d.ts +18 -19
  423. package/build/library/structure/AlertBannerService/AlertBannerService.d.ts +8 -8
  424. package/build/library/structure/AlertBannerService/AlertBannerService.test.d.ts +1 -0
  425. package/build/library/structure/AlertBannerService/AlertBannerService.types.d.ts +18 -19
  426. package/build/library/structure/BackLink/BackLink.d.ts +7 -7
  427. package/build/library/structure/BackLink/BackLink.test.d.ts +1 -0
  428. package/build/library/structure/BackLink/BackLink.types.d.ts +10 -10
  429. package/build/library/structure/Breadcrumbs/Breadcrumbs.d.ts +4 -4
  430. package/build/library/structure/Breadcrumbs/Breadcrumbs.test.d.ts +1 -0
  431. package/build/library/structure/Breadcrumbs/Breadcrumbs.types.d.ts +20 -20
  432. package/build/library/structure/Contents/Contents.d.ts +4 -4
  433. package/build/library/structure/Contents/Contents.storydata.d.ts +2 -2
  434. package/build/library/structure/Contents/Contents.test.d.ts +1 -0
  435. package/build/library/structure/Contents/Contents.types.d.ts +24 -24
  436. package/build/library/structure/ContentsNavigation/ContentsNavigation.d.ts +4 -4
  437. package/build/library/structure/ContentsNavigation/ContentsNavigation.test.d.ts +1 -0
  438. package/build/library/structure/CookieBanner/CookieBanner.d.ts +6 -6
  439. package/build/library/structure/CookieBanner/CookieBanner.types.d.ts +30 -31
  440. package/build/library/structure/CookieBanner/CookieClear.d.ts +5 -5
  441. package/build/library/structure/DisplayDate/DisplayDate.d.ts +7 -7
  442. package/build/library/structure/DisplayDate/DisplayDate.types.d.ts +18 -18
  443. package/build/library/structure/Footer/Footer.d.ts +4 -4
  444. package/build/library/structure/Footer/Footer.test.d.ts +1 -0
  445. package/build/library/structure/Footer/Footer.types.d.ts +24 -24
  446. package/build/library/structure/FullWidthContainer/FullWidthContainer.d.ts +7 -7
  447. package/build/library/structure/FullWidthContainer/FullWidthContainer.test.d.ts +1 -0
  448. package/build/library/structure/FullWidthContainer/FullWidthContainer.types.d.ts +15 -15
  449. package/build/library/structure/Header/Header.d.ts +7 -7
  450. package/build/library/structure/Header/Header.test.d.ts +1 -0
  451. package/build/library/structure/Header/Header.types.d.ts +30 -31
  452. package/build/library/structure/HeroImage/HeroImage.d.ts +8 -8
  453. package/build/library/structure/HeroImage/HeroImage.storydata.d.ts +6 -6
  454. package/build/library/structure/HeroImage/HeroImage.test.d.ts +1 -0
  455. package/build/library/structure/HeroImage/HeroImage.types.d.ts +52 -48
  456. package/build/library/structure/HomeHero/HomeHero.d.ts +7 -7
  457. package/build/library/structure/HomeHero/HomeHero.storydata.d.ts +14 -14
  458. package/build/library/structure/HomeHero/HomeHero.test.d.ts +1 -0
  459. package/build/library/structure/HomeHero/HomeHero.types.d.ts +54 -54
  460. package/build/library/structure/MaxWidthContainer/MaxWidthContainer.d.ts +7 -7
  461. package/build/library/structure/MaxWidthContainer/MaxWidthContainer.types.d.ts +22 -23
  462. package/build/library/structure/MemorialHero/MemorialHero.d.ts +4 -4
  463. package/build/library/structure/MemorialHero/MemorialHero.types.d.ts +27 -27
  464. package/build/library/structure/NewsArticleDate/NewsArticleDate.d.ts +7 -7
  465. package/build/library/structure/NewsArticleDate/NewsArticleDate.types.d.ts +10 -10
  466. package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.d.ts +7 -7
  467. package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.test.d.ts +1 -0
  468. package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.types.d.ts +23 -23
  469. package/build/library/structure/NewsArticleFilterAccordion/NewsArticleFilterAccordion.d.ts +4 -4
  470. package/build/library/structure/NewsArticleFilterAccordion/NewsArticleFilterAccordion.types.d.ts +7 -7
  471. package/build/library/structure/NewsArticleImage/NewsArticleImage.d.ts +7 -7
  472. package/build/library/structure/NewsArticleImage/NewsArticleImage.types.d.ts +18 -18
  473. package/build/library/structure/NewsArticleList/NewsArticleData.d.ts +7 -7
  474. package/build/library/structure/NewsArticleList/NewsArticleList.d.ts +4 -4
  475. package/build/library/structure/NewsArticleList/NewsArticleList.test.d.ts +1 -0
  476. package/build/library/structure/NewsArticleList/NewsArticleList.types.d.ts +28 -28
  477. package/build/library/structure/NewsArticleListHeader/NewsArticleListHeader.d.ts +4 -4
  478. package/build/library/structure/NewsArticleListHeader/NewsArticleListHeader.types.d.ts +6 -6
  479. package/build/library/structure/NewsArticleOldBanner/NewsArticleOldBanner.d.ts +7 -7
  480. package/build/library/structure/NewsArticleOldBanner/NewsArticleOldBanner.types.d.ts +2 -2
  481. package/build/library/structure/PageMain/PageMain.d.ts +7 -7
  482. package/build/library/structure/PageMain/PageMain.test.d.ts +1 -0
  483. package/build/library/structure/PageMain/PageMain.types.d.ts +14 -15
  484. package/build/library/structure/PageSidebar/PageSidebar.d.ts +7 -7
  485. package/build/library/structure/PageSidebar/PageSidebar.types.d.ts +6 -7
  486. package/build/library/structure/PageStructures.d.ts +42 -42
  487. package/build/library/structure/PageTitle/PageTitle.d.ts +7 -7
  488. package/build/library/structure/PageTitle/PageTitle.types.d.ts +11 -11
  489. package/build/library/structure/PageWithSidebarContainer/PageWithSidebarContainer.d.ts +7 -7
  490. package/build/library/structure/PageWithSidebarContainer/PageWithSidebarContainer.types.d.ts +10 -11
  491. package/build/library/structure/PageWrapper/PageWrapper.d.ts +4 -4
  492. package/build/library/structure/PageWrapper/PageWrapper.types.d.ts +11 -11
  493. package/build/library/structure/PhaseBanner/PhaseBanner.d.ts +4 -4
  494. package/build/library/structure/PhaseBanner/PhaseBanner.types.d.ts +3 -3
  495. package/build/library/structure/PromoBanner/PromoBanner.d.ts +8 -8
  496. package/build/library/structure/PromoBanner/PromoBanner.storydata.d.ts +9 -10
  497. package/build/library/structure/PromoBanner/PromoBanner.test.d.ts +1 -0
  498. package/build/library/structure/PromoBanner/PromoBanner.types.d.ts +26 -27
  499. package/build/library/structure/PromoBlock/PromoBlock.d.ts +8 -8
  500. package/build/library/structure/PromoBlock/PromoBlock.storydata.d.ts +5 -5
  501. package/build/library/structure/PromoBlock/PromoBlock.test.d.ts +1 -0
  502. package/build/library/structure/PromoBlock/PromoBlock.types.d.ts +36 -36
  503. package/build/library/structure/SearchHeader/SearchHeader.d.ts +4 -4
  504. package/build/library/structure/SearchHeader/SearchHeader.types.d.ts +2 -2
  505. package/build/library/structure/SearchResultsList/NoResultsMessage.d.ts +3 -3
  506. package/build/library/structure/SearchResultsList/SearchResultsList.d.ts +4 -4
  507. package/build/library/structure/SearchResultsList/SearchResultsList.test.d.ts +1 -0
  508. package/build/library/structure/SearchResultsList/SearchResultsList.types.d.ts +46 -46
  509. package/build/library/structure/Searchbar/Searchbar.d.ts +4 -4
  510. package/build/library/structure/Searchbar/Searchbar.test.d.ts +1 -0
  511. package/build/library/structure/Searchbar/Searchbar.types.d.ts +48 -48
  512. package/build/library/structure/SectionLinks/SectionLinks.d.ts +7 -7
  513. package/build/library/structure/SectionLinks/SectionLinks.storydata.d.ts +2 -2
  514. package/build/library/structure/SectionLinks/SectionLinks.test.d.ts +1 -0
  515. package/build/library/structure/SectionLinks/SectionLinks.types.d.ts +52 -52
  516. package/build/library/structure/SectionLinksMobileContents/SectionLinksMobileContents.d.ts +4 -4
  517. package/build/library/structure/SectionLinksMobileContents/SectionLinksMobileContents.types.d.ts +16 -16
  518. package/build/library/structure/SectionLinksSidebar/SectionLinksSidebar.d.ts +4 -4
  519. package/build/library/structure/SectionLinksSidebar/SectionLinksSidebar.test.d.ts +1 -0
  520. package/build/library/structure/SectionLinksSidebar/SectionLinksSidebar.types.d.ts +34 -34
  521. package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.d.ts +4 -4
  522. package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.storydata.d.ts +9 -9
  523. package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.test.d.ts +1 -0
  524. package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.types.d.ts +53 -53
  525. package/build/library/structure/ServicesLinksList/ServicesLinksList.d.ts +4 -4
  526. package/build/library/structure/ServicesLinksList/ServicesLinksList.test.d.ts +1 -0
  527. package/build/library/structure/ServicesLinksList/ServicesLinksList.types.d.ts +68 -68
  528. package/build/library/structure/SignpostLinks/SignpostLinks.d.ts +4 -4
  529. package/build/library/structure/SignpostLinks/SignpostLinks.types.d.ts +32 -32
  530. package/build/library/structure/SkipToMainContent/SkipToMainContent.d.ts +4 -4
  531. package/build/library/structure/SkipToMainContent/SkipToMainContent.test.d.ts +1 -0
  532. package/build/library/structure/SkipToMainContent/SkipToMainContent.types.d.ts +2 -2
  533. package/build/library/structure/Summary/Summary.d.ts +4 -4
  534. package/build/library/structure/Summary/Summary.test.d.ts +1 -0
  535. package/build/library/structure/Summary/Summary.types.d.ts +15 -15
  536. package/build/src/index.d.ts +2 -1
  537. package/build/src/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.types.d.ts +9 -0
  538. package/build/src/library/directory/DirectoryDocumentList/DirectoryDocumentList.types.d.ts +4 -0
  539. package/build/src/library/directory/DirectoryService/DirectoryService.storydata.d.ts +1 -0
  540. package/build/src/library/directory/DirectoryService/DirectoryService.types.d.ts +4 -0
  541. package/build/src/library/directory/DirectoryService/DirectoryServiceTransform.d.ts +1 -1
  542. package/build/src/library/directory/DirectoryService/DirectoryServiceTransform.test.d.ts +1 -0
  543. package/build/src/library/directory/DirectoryServiceList/DirectoryServiceList.types.d.ts +12 -0
  544. package/build/src/library/directory/ServiceContact/ServiceContact.types.d.ts +4 -0
  545. package/build/src/library/slices/InquestSchedule/InquestSchedule.storydata.d.ts +1 -0
  546. package/build/src/library/slices/InquestSchedule/InquestSchedule.types.d.ts +5 -0
  547. package/build/src/library/slices/RoadworksList/RoadworksList.d.ts +7 -0
  548. package/build/src/library/slices/RoadworksList/RoadworksList.storydata.d.ts +4 -0
  549. package/build/src/library/slices/RoadworksList/RoadworksList.test.d.ts +1 -0
  550. package/build/src/library/slices/RoadworksList/RoadworksList.types.d.ts +48 -0
  551. package/build/src/library/structure/HeroImage/HeroImage.types.d.ts +6 -2
  552. package/build/themes/ThemeVars.types.d.ts +60 -0
  553. package/package.json +1 -1
package/build/index.js CHANGED
@@ -3887,7 +3887,7 @@ var Autocomplete = function (_a) {
3887
3887
  })));
3888
3888
  };
3889
3889
 
3890
- const Container$18 = styled__default.default.div`
3890
+ const Container$19 = styled__default.default.div`
3891
3891
  display: block;
3892
3892
  `;
3893
3893
 
@@ -3972,7 +3972,7 @@ var BackToTop = function (_a) {
3972
3972
  React.useEffect(function () {
3973
3973
  window.addEventListener('scroll', toggleVisible);
3974
3974
  });
3975
- return (React__default.default.createElement(Container$18, { "data-testid": "BackToTop" }, isActive && (React__default.default.createElement(BackToTopButton, { onClick: scrollToTop, "$visible": visible, "data-testid": "BackToTopButton", type: "button", "aria-label": "Go to the top of the page" },
3975
+ return (React__default.default.createElement(Container$19, { "data-testid": "BackToTop" }, isActive && (React__default.default.createElement(BackToTopButton, { onClick: scrollToTop, "$visible": visible, "data-testid": "BackToTopButton", type: "button", "aria-label": "Go to the top of the page" },
3976
3976
  React__default.default.createElement(ChevronIcon, { colourFill: themeContext.theme_vars.colours.white, direction: "up" })))));
3977
3977
  };
3978
3978
 
@@ -4076,9 +4076,9 @@ var Button$4 = function (_a) {
4076
4076
  return (React__default.default.createElement(StyledButton$1, __assign$2({ className: ["button--".concat(size), mode].join(' ') }, href, { title: title ? title : text, "$colourOverride": colourOverride && colourOverride }, props), text ? text : children));
4077
4077
  };
4078
4078
 
4079
- var Container$17 = styled__default.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"])));
4080
- var Label$5 = styled__default.default.label(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: block;\n margin-bottom: 15px;\n"], ["\n display: block;\n margin-bottom: 15px;\n"])));
4081
- var VisuallyHiddenLabel = styled__default.default(Label$5)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n border: 0;\n white-space: nowrap;\n"], ["\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n border: 0;\n white-space: nowrap;\n"])));
4079
+ var Container$18 = styled__default.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"])));
4080
+ var Label$6 = styled__default.default.label(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: block;\n margin-bottom: 15px;\n"], ["\n display: block;\n margin-bottom: 15px;\n"])));
4081
+ var VisuallyHiddenLabel = styled__default.default(Label$6)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n border: 0;\n white-space: nowrap;\n"], ["\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n border: 0;\n white-space: nowrap;\n"])));
4082
4082
  var BinCollectionButtonStyles = styled__default.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n button {\n margin: 10px 10px 12px 10px;\n }\n"], ["\n button {\n margin: 10px 10px 12px 10px;\n }\n"])));
4083
4083
  var FormContainer$1 = styled__default.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n ", "\n"], ["\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n ", "\n"])), function (props) {
4084
4084
  return props.$isLoading && "\n opacity: 0.5; \n pointer-events: none;\n ";
@@ -4091,7 +4091,7 @@ styled__default.default.div(templateObject_10 || (templateObject_10 = __makeTemp
4091
4091
  styled__default.default.input(templateObject_11 || (templateObject_11 = __makeTemplateObject([""], [""])));
4092
4092
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
4093
4093
 
4094
- const Container$16 = styled__default.default.div`
4094
+ const Container$17 = styled__default.default.div`
4095
4095
  display: flex;
4096
4096
  -webkit-flex-direction: row;
4097
4097
  -moz-flex-direction: row;
@@ -4128,7 +4128,7 @@ const ErrorSummary = styled__default.default.div`
4128
4128
  */
4129
4129
  var FormWithLine = function (_a) {
4130
4130
  var _b = _a.lineColour, lineColour = _b === void 0 ? '#C6C6C6' : _b, _c = _a.hideLine, hideLine = _c === void 0 ? false : _c, formRole = _a.formRole, formMethod = _a.formMethod, formURL = _a.formURL, _d = _a.isError, isError = _d === void 0 ? false : _d, errorSummary = _a.errorSummary, onSubmit = _a.onSubmit, children = _a.children;
4131
- return (React__default.default.createElement(Container$16, null,
4131
+ return (React__default.default.createElement(Container$17, null,
4132
4132
  React__default.default.createElement(Line$1, { "$lineColour": lineColour, "$hideLine": hideLine, "$isError": isError }),
4133
4133
  React__default.default.createElement(Form, { onSubmit: onSubmit, "$hideLine": hideLine, role: formRole, method: formMethod, url: formURL, "data-testid": "FormWithLine" },
4134
4134
  errorSummary && React__default.default.createElement(ErrorSummary, null, errorSummary),
@@ -4206,7 +4206,7 @@ var FormButton = function (_a) {
4206
4206
  return (React__default.default.createElement(StyledButton, __assign$2({ type: type, className: ["button--".concat(size), mode].join(' ') }, props), text));
4207
4207
  };
4208
4208
 
4209
- const Container$15 = styled__default.default.div`
4209
+ const Container$16 = styled__default.default.div`
4210
4210
  ${(props) => props.theme.fontStyles};
4211
4211
  `;
4212
4212
 
@@ -4216,7 +4216,7 @@ const hideLabel$1 = (props) => {
4216
4216
  }
4217
4217
  };
4218
4218
 
4219
- const Label$4 = styled__default.default.label`
4219
+ const Label$5 = styled__default.default.label`
4220
4220
  display: block;
4221
4221
  margin-bottom: 5px;
4222
4222
  ${hideLabel$1}
@@ -4251,8 +4251,8 @@ const Option = styled__default.default.option`
4251
4251
 
4252
4252
  var DropDownSelect = function (_a) {
4253
4253
  var id = _a.id, label = _a.label, options = _a.options, onChange = _a.onChange, selected = _a.selected, _b = _a.hideLabel, hideLabel = _b === void 0 ? false : _b;
4254
- return (React__default.default.createElement(Container$15, null,
4255
- React__default.default.createElement(Label$4, { htmlFor: id, "$hideLabel": hideLabel }, label),
4254
+ return (React__default.default.createElement(Container$16, null,
4255
+ React__default.default.createElement(Label$5, { htmlFor: id, "$hideLabel": hideLabel }, label),
4256
4256
  React__default.default.createElement(Select, { id: id, name: id, onChange: onChange && onChange, defaultValue: selected && selected }, options.map(function (option, i) { return (React__default.default.createElement(Option, { key: i, value: option.value }, option.title)); }))));
4257
4257
  };
4258
4258
 
@@ -4535,7 +4535,7 @@ var BinCollection = function (_a) {
4535
4535
  React.useEffect(function () {
4536
4536
  seenTitles.current.clear();
4537
4537
  }, [calendarEvents]);
4538
- return (React__default.default.createElement(Container$17, { "data-testid": "BinCollection" },
4538
+ return (React__default.default.createElement(Container$18, { "data-testid": "BinCollection" },
4539
4539
  React__default.default.createElement(FormWithLine, { onSubmit: handleSubmit, isError: isError, lineColour: themeContext.theme_vars.colours.$grey_dark, hideLine: true },
4540
4540
  React__default.default.createElement(FormContainer$1, { "$isLoading": isLoading },
4541
4541
  React__default.default.createElement(Heading, { level: 2, text: "Bin collection checker" }),
@@ -6642,7 +6642,7 @@ var HeadingWithIcon = function (_a) {
6642
6642
  React__default.default.createElement(Heading, { text: text, level: level })));
6643
6643
  };
6644
6644
 
6645
- const Container$14 = styled__default.default.div`
6645
+ const Container$15 = styled__default.default.div`
6646
6646
  display: flex;
6647
6647
  width: 100%;
6648
6648
  min-height: 400px;
@@ -6666,7 +6666,7 @@ var Map$1 = function (_a) {
6666
6666
  setMap(new window.google.maps.Map(ref.current, { center: center, zoom: zoom }));
6667
6667
  }
6668
6668
  }, [ref, map]);
6669
- return (React__default.default.createElement(Container$14, { "data-testid": "Map" },
6669
+ return (React__default.default.createElement(Container$15, { "data-testid": "Map" },
6670
6670
  React__default.default.createElement("div", { ref: ref }),
6671
6671
  React__default.default.Children.map(children, function (child) {
6672
6672
  if (React__default.default.isValidElement(child)) {
@@ -6690,10 +6690,14 @@ var MapMarker = function (options) {
6690
6690
  anchor: new google.maps.Point(40, 60),
6691
6691
  labelOrigin: new google.maps.Point(21, 25),
6692
6692
  };
6693
- var mergedOptions = __assign$2(__assign$2({}, options), { anchorPoint: new google.maps.Point(-5, -40), icon: icon, label: {
6694
- text: typeof options.label === 'string' ? options.label : options.label.text,
6695
- color: 'white',
6696
- }, position: options.position, title: options.title });
6693
+ var mergedOptions = __assign$2(__assign$2({}, options), { anchorPoint: new google.maps.Point(-5, -40), icon: icon, position: options.position, title: options.title, label: options.label ?
6694
+ (typeof options.label === 'string' ?
6695
+ { text: options.label, color: '#FFFFFF' } : __assign$2(__assign$2({}, options.label), { color: '#FFFFFF' })) : undefined });
6696
+ for (var key in options) {
6697
+ if (key !== 'label' && Object.prototype.hasOwnProperty.call(options, key)) {
6698
+ mergedOptions[key] = options[key];
6699
+ }
6700
+ }
6697
6701
  React__default.default.useEffect(function () {
6698
6702
  if (!marker) {
6699
6703
  setMarker(new google.maps.Marker());
@@ -6723,7 +6727,7 @@ var MapMarker = function (options) {
6723
6727
  return null;
6724
6728
  };
6725
6729
 
6726
- const Container$13 = styled__default.default.div`
6730
+ const Container$14 = styled__default.default.div`
6727
6731
  ${(props) => props.theme.fontStyles};
6728
6732
  display: block;
6729
6733
  border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
@@ -7504,7 +7508,7 @@ var Pagination = function (_a) {
7504
7508
  }
7505
7509
  };
7506
7510
  if (numbers.length > 1) {
7507
- return (React__default.default.createElement(Container$13, { "data-testid": "Pagination", role: "navigation", "aria-label": "Pagination" },
7511
+ return (React__default.default.createElement(Container$14, { "data-testid": "Pagination", role: "navigation", "aria-label": "Pagination" },
7508
7512
  currentPage > 1 && (React__default.default.createElement(Previous, { onClick: function () { return buttonClick(currentPage - 1); }, title: "Go back a page" }, "Previous")),
7509
7513
  React__default.default.createElement(NumbersContainer, null, numbers.map(function (v, i) { return (React__default.default.createElement(NumberContainer, { key: i },
7510
7514
  v === '...' && React__default.default.createElement(Ellipsis, null, "..."),
@@ -7516,7 +7520,7 @@ var Pagination = function (_a) {
7516
7520
  return null;
7517
7521
  };
7518
7522
 
7519
- const Container$12 = styled__default.default.div`
7523
+ const Container$13 = styled__default.default.div`
7520
7524
  ${(props) => props.theme.fontStyles};
7521
7525
  margin-bottom: 30px;
7522
7526
  `;
@@ -7687,7 +7691,7 @@ var CheckboxListFilter = function (_a) {
7687
7691
  handleParams('news', [{ key: NewsArticleFilterFields.articleType.queryParamKey, value: articleTypes }], ['page']);
7688
7692
  };
7689
7693
  var backupLabel = Math.random().toString(36).substring(7);
7690
- return (React__default.default.createElement(Container$12, { "data-testid": "CheckboxListFilter" },
7694
+ return (React__default.default.createElement(Container$13, { "data-testid": "CheckboxListFilter" },
7691
7695
  React__default.default.createElement(Fieldset$2, { "aria-describedby": hintId },
7692
7696
  React__default.default.createElement(Legend$2, { "$labelHidden": labelHidden, "data-testid": "CheckboxListFilterLegend" }, label),
7693
7697
  React__default.default.createElement(Hint, { id: hintId, "$hintHidden": hintHidden, "data-testid": "CheckboxListFilterHint" }, hint),
@@ -7819,7 +7823,7 @@ const PromotedLink$1 = styled__default.default.a`
7819
7823
  ${oneColStyles}
7820
7824
  `;
7821
7825
 
7822
- const Container$11 = styled__default.default.div`
7826
+ const Container$12 = styled__default.default.div`
7823
7827
  box-sizing: border-box;
7824
7828
  display: flex;
7825
7829
  flex-wrap: wrap;
@@ -7842,7 +7846,7 @@ const Container$11 = styled__default.default.div`
7842
7846
 
7843
7847
  var Row$1 = function (_a) {
7844
7848
  var _b = _a.hasBorder, hasBorder = _b === void 0 ? false : _b, _c = _a.isList, isList = _c === void 0 ? false : _c, _d = _a.hasWrap, hasWrap = _d === void 0 ? true : _d, children = _a.children;
7845
- return (React__default.default.createElement(Container$11, { "data-testid": "Row", "$hasBorder": hasBorder, "$hasWrap": hasWrap, as: isList ? 'ul' : 'div' }, children));
7849
+ return (React__default.default.createElement(Container$12, { "data-testid": "Row", "$hasBorder": hasBorder, "$hasWrap": hasWrap, as: isList ? 'ul' : 'div' }, children));
7846
7850
  };
7847
7851
 
7848
7852
  const calculateWidth = (size) => {
@@ -7892,7 +7896,7 @@ const widths = (props) => {
7892
7896
  `;
7893
7897
  };
7894
7898
 
7895
- const Container$10 = styled__default.default.div`
7899
+ const Container$11 = styled__default.default.div`
7896
7900
  box-sizing: border-box;
7897
7901
  display: block;
7898
7902
  padding: ${(props) => (props.$hasPadding ? props.theme.theme_vars.spacingSizes.small : `0`)};
@@ -7903,7 +7907,7 @@ const Container$10 = styled__default.default.div`
7903
7907
 
7904
7908
  var Column = function (_a) {
7905
7909
  var _b = _a.small, small = _b === void 0 ? 'full' : _b, _c = _a.medium, medium = _c === void 0 ? 'one-half' : _c, _d = _a.large, large = _d === void 0 ? 'one-third' : _d, _e = _a.hasPadding, hasPadding = _e === void 0 ? true : _e, _f = _a.hasBorder, hasBorder = _f === void 0 ? false : _f, _g = _a.isList, isList = _g === void 0 ? false : _g, classes = _a.classes, children = _a.children;
7906
- return (React__default.default.createElement(Container$10, { "data-testid": "Column", "$small": small, "$medium": medium, "$large": large, "$hasPadding": hasPadding, "$hasBorder": hasBorder, as: isList ? 'li' : 'div', className: classes }, children));
7910
+ return (React__default.default.createElement(Container$11, { "data-testid": "Column", "$small": small, "$medium": medium, "$large": large, "$hasPadding": hasPadding, "$hasBorder": hasBorder, as: isList ? 'li' : 'div', className: classes }, children));
7907
7911
  };
7908
7912
 
7909
7913
  var PromotedLinks = function (_a) {
@@ -7919,7 +7923,7 @@ var PromotedLinks = function (_a) {
7919
7923
  }
7920
7924
  };
7921
7925
 
7922
- const Container$$ = styled__default.default.div`
7926
+ const Container$10 = styled__default.default.div`
7923
7927
  display: block;
7924
7928
  `;
7925
7929
 
@@ -7955,7 +7959,7 @@ const Cookies = styled__default.default.button`
7955
7959
  }
7956
7960
  `;
7957
7961
 
7958
- const Container$_ = styled__default.default.div`
7962
+ const Container$$ = styled__default.default.div`
7959
7963
  ${(props) => props.theme.fontStyles}
7960
7964
  background-color: ${(props) => props.theme.theme_vars.colours.grey_light};
7961
7965
  padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
@@ -7963,6 +7967,8 @@ const Container$_ = styled__default.default.div`
7963
7967
  width: 100%;
7964
7968
  display: block;
7965
7969
  box-sizing: border-box;
7970
+ position: sticky;
7971
+ z-index: 1;
7966
7972
  `;
7967
7973
 
7968
7974
  const CookieHide = styled__default.default.button`
@@ -8156,7 +8162,7 @@ var CookieBanner = function (_a) {
8156
8162
  // on page load - look for a cookie
8157
8163
  React.useEffect(function () {
8158
8164
  checkCookie();
8159
- });
8165
+ }, []);
8160
8166
  var _d = React.useState(false), showCookieBanner = _d[0], setShowCookieBanner = _d[1];
8161
8167
  var _e = React.useState(false), showCookiesRejectedBanner = _e[0], setShowCookiesRejectedBanner = _e[1];
8162
8168
  var _f = React.useState(false), showCookiesAcceptedBanner = _f[0], setShowCookiesAcceptedBanner = _f[1];
@@ -8227,18 +8233,18 @@ var CookieBanner = function (_a) {
8227
8233
  hideCookiesAcceptedConfirmationBanner();
8228
8234
  };
8229
8235
  return (React__default.default.createElement(React__default.default.Fragment, null,
8230
- showCookieBanner && (React__default.default.createElement(Container$_, { "data-testid": "CookieBanner" },
8236
+ showCookieBanner && (React__default.default.createElement(Container$$, { "data-testid": "CookieBanner" },
8231
8237
  React__default.default.createElement(CookieMessage, null,
8232
8238
  React__default.default.createElement(CookieHeading, null, title),
8233
8239
  React__default.default.createElement(CookieParagraph, null, paragraph),
8234
8240
  React__default.default.createElement(ButtonsContainer, null,
8235
8241
  React__default.default.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: true, onClick: acceptCookies, size: "large" }),
8236
8242
  React__default.default.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: true, onClick: rejectCookies, size: "large" }))))),
8237
- showCookiesRejectedBanner && (React__default.default.createElement(Container$_, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
8243
+ showCookiesRejectedBanner && (React__default.default.createElement(Container$$, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
8238
8244
  React__default.default.createElement(CookieMessage, { isInline: true },
8239
8245
  React__default.default.createElement(CookieParagraph, null, rejectConfirmationText),
8240
8246
  React__default.default.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerRejected", "aria-hidden": "false" }, "Hide")))),
8241
- showCookiesAcceptedBanner && (React__default.default.createElement(Container$_, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
8247
+ showCookiesAcceptedBanner && (React__default.default.createElement(Container$$, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
8242
8248
  React__default.default.createElement(CookieMessage, { isInline: true },
8243
8249
  React__default.default.createElement(CookieParagraph, null, acceptConfirmationText),
8244
8250
  React__default.default.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerAccepted", "aria-hidden": "false" }, "Hide"))))));
@@ -8260,7 +8266,7 @@ var StaticMap = function (_a) {
8260
8266
  return "&markers=size:".concat(size, "%7Ccolor:").concat(colour).concat(label, "%7C").concat(mapMarker.lat, ",").concat(mapMarker.lng);
8261
8267
  })
8262
8268
  .join('');
8263
- return (React__default.default.createElement(Container$$, { "data-testid": "StaticMap" },
8269
+ return (React__default.default.createElement(Container$10, { "data-testid": "StaticMap" },
8264
8270
  React__default.default.createElement(Message, null,
8265
8271
  React__default.default.createElement("span", null,
8266
8272
  "To interact with the map, you need to ",
@@ -8281,7 +8287,7 @@ var TextInput = function (_a) {
8281
8287
 
8282
8288
  // Accordion
8283
8289
 
8284
- const Container$Z = styled__default.default.div`
8290
+ const Container$_ = styled__default.default.div`
8285
8291
  ${(props) => props.theme.fontStyles}
8286
8292
  margin-bottom: 20px;
8287
8293
  border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
@@ -8558,7 +8564,7 @@ var Accordion$1 = function (_a) {
8558
8564
  setAccordionStates(newStatus);
8559
8565
  };
8560
8566
  var accordionId = "accordion".concat(React.useId());
8561
- return (React__default.default.createElement(Container$Z, { "data-testid": "Accordion", id: accordionId },
8567
+ return (React__default.default.createElement(Container$_, { "data-testid": "Accordion", id: accordionId },
8562
8568
  showControls && sections.length > 1 && (React__default.default.createElement(AccordionControls$1, null,
8563
8569
  React__default.default.createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
8564
8570
  openAll ? 'Open all' : 'Close all',
@@ -8609,7 +8615,7 @@ var BlockQuote = function (_a) {
8609
8615
  citation && React__default.default.createElement(Citation, null, citation)));
8610
8616
  };
8611
8617
 
8612
- const Container$Y = styled__default.default.div`
8618
+ const Container$Z = styled__default.default.div`
8613
8619
  margin-bottom: 30px;
8614
8620
  display: block;
8615
8621
 
@@ -8624,11 +8630,11 @@ const Container$Y = styled__default.default.div`
8624
8630
  */
8625
8631
  var CallToAction = function (_a) {
8626
8632
  var primary = _a.primary; _a.size; var text = _a.text, url = _a.url, isExternal = _a.isExternal, isDisabled = _a.isDisabled; __rest(_a, ["primary", "size", "text", "url", "isExternal", "isDisabled"]);
8627
- return (React__default.default.createElement(Container$Y, null,
8633
+ return (React__default.default.createElement(Container$Z, null,
8628
8634
  React__default.default.createElement(Button$4, { primary: primary, size: "large", text: text, url: url, isExternal: isExternal, isDisabled: isDisabled })));
8629
8635
  };
8630
8636
 
8631
- const Container$X = styled__default.default.div`
8637
+ const Container$Y = styled__default.default.div`
8632
8638
  display: block;
8633
8639
  ${(props) => props.theme.fontStyles}
8634
8640
  `;
@@ -8804,7 +8810,7 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
8804
8810
  });
8805
8811
  return letterData;
8806
8812
  });
8807
- return (React__default.default.createElement(Container$X, { "data-testid": "AlphabeticalDirectory", ref: directoryRef },
8813
+ return (React__default.default.createElement(Container$Y, { "data-testid": "AlphabeticalDirectory", ref: directoryRef },
8808
8814
  React__default.default.createElement(React__default.default.Fragment, null,
8809
8815
  parishes.length === 0 && (React__default.default.createElement(ErrorText, null, "There was an issue fetching the parish data. Please try again later.")),
8810
8816
  parish === null ? (React__default.default.createElement(React__default.default.Fragment, null, sortedData.map(function (letter, i) { return (React__default.default.createElement(Row, { key: i },
@@ -8830,9 +8836,9 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
8830
8836
  React__default.default.createElement("td", null, Number(parish.values[band]).toLocaleString('en-GB', { style: 'currency', currency: 'GBP' })))); })))))))));
8831
8837
  };
8832
8838
 
8833
- const Container$W = styled__default.default.div``;
8839
+ const Container$X = styled__default.default.div``;
8834
8840
 
8835
- const Container$V = styled__default.default.div`
8841
+ const Container$W = styled__default.default.div`
8836
8842
  display: flex;
8837
8843
  flex-direction: column;
8838
8844
  justify-content: flex-start;
@@ -19487,7 +19493,7 @@ function markDirtyUp(node) {
19487
19493
  }
19488
19494
  }
19489
19495
 
19490
- let Container$U = class Container extends Node$1 {
19496
+ let Container$V = class Container extends Node$1 {
19491
19497
  append(...children) {
19492
19498
  for (let child of children) {
19493
19499
  let nodes = this.normalize(child, this.last);
@@ -19860,27 +19866,27 @@ let Container$U = class Container extends Node$1 {
19860
19866
  }
19861
19867
  };
19862
19868
 
19863
- Container$U.registerParse = dependant => {
19869
+ Container$V.registerParse = dependant => {
19864
19870
  parse$4 = dependant;
19865
19871
  };
19866
19872
 
19867
- Container$U.registerRule = dependant => {
19873
+ Container$V.registerRule = dependant => {
19868
19874
  Rule$4 = dependant;
19869
19875
  };
19870
19876
 
19871
- Container$U.registerAtRule = dependant => {
19877
+ Container$V.registerAtRule = dependant => {
19872
19878
  AtRule$4 = dependant;
19873
19879
  };
19874
19880
 
19875
- Container$U.registerRoot = dependant => {
19881
+ Container$V.registerRoot = dependant => {
19876
19882
  Root$6 = dependant;
19877
19883
  };
19878
19884
 
19879
- var container = Container$U;
19880
- Container$U.default = Container$U;
19885
+ var container = Container$V;
19886
+ Container$V.default = Container$V;
19881
19887
 
19882
19888
  /* c8 ignore start */
19883
- Container$U.rebuild = node => {
19889
+ Container$V.rebuild = node => {
19884
19890
  if (node.type === 'atrule') {
19885
19891
  Object.setPrototypeOf(node, AtRule$4.prototype);
19886
19892
  } else if (node.type === 'rule') {
@@ -19897,16 +19903,16 @@ Container$U.rebuild = node => {
19897
19903
 
19898
19904
  if (node.nodes) {
19899
19905
  node.nodes.forEach(child => {
19900
- Container$U.rebuild(child);
19906
+ Container$V.rebuild(child);
19901
19907
  });
19902
19908
  }
19903
19909
  };
19904
19910
 
19905
- let Container$T = container;
19911
+ let Container$U = container;
19906
19912
 
19907
19913
  let LazyResult$4, Processor$3;
19908
19914
 
19909
- let Document$3 = class Document extends Container$T {
19915
+ let Document$3 = class Document extends Container$U {
19910
19916
  constructor(defaults) {
19911
19917
  // type needs to be passed to super, otherwise child roots won't be normalized correctly
19912
19918
  super({ type: 'document', ...defaults });
@@ -20024,9 +20030,9 @@ let Result$4 = class Result {
20024
20030
  var result = Result$4;
20025
20031
  Result$4.default = Result$4;
20026
20032
 
20027
- let Container$S = container;
20033
+ let Container$T = container;
20028
20034
 
20029
- let AtRule$3 = class AtRule extends Container$S {
20035
+ let AtRule$3 = class AtRule extends Container$T {
20030
20036
  constructor(defaults) {
20031
20037
  super(defaults);
20032
20038
  this.type = 'atrule';
@@ -20046,13 +20052,13 @@ let AtRule$3 = class AtRule extends Container$S {
20046
20052
  var atRule = AtRule$3;
20047
20053
  AtRule$3.default = AtRule$3;
20048
20054
 
20049
- Container$S.registerAtRule(AtRule$3);
20055
+ Container$T.registerAtRule(AtRule$3);
20050
20056
 
20051
- let Container$R = container;
20057
+ let Container$S = container;
20052
20058
 
20053
20059
  let LazyResult$3, Processor$2;
20054
20060
 
20055
- let Root$5 = class Root extends Container$R {
20061
+ let Root$5 = class Root extends Container$S {
20056
20062
  constructor(defaults) {
20057
20063
  super(defaults);
20058
20064
  this.type = 'root';
@@ -20106,7 +20112,7 @@ Root$5.registerProcessor = dependant => {
20106
20112
  var root = Root$5;
20107
20113
  Root$5.default = Root$5;
20108
20114
 
20109
- Container$R.registerRoot(Root$5);
20115
+ Container$S.registerRoot(Root$5);
20110
20116
 
20111
20117
  let list$2 = {
20112
20118
  comma(string) {
@@ -20165,10 +20171,10 @@ let list$2 = {
20165
20171
  var list_1 = list$2;
20166
20172
  list$2.default = list$2;
20167
20173
 
20168
- let Container$Q = container;
20174
+ let Container$R = container;
20169
20175
  let list$1 = list_1;
20170
20176
 
20171
- let Rule$3 = class Rule extends Container$Q {
20177
+ let Rule$3 = class Rule extends Container$R {
20172
20178
  constructor(defaults) {
20173
20179
  super(defaults);
20174
20180
  this.type = 'rule';
@@ -20189,7 +20195,7 @@ let Rule$3 = class Rule extends Container$Q {
20189
20195
  var rule = Rule$3;
20190
20196
  Rule$3.default = Rule$3;
20191
20197
 
20192
- Container$Q.registerRule(Rule$3);
20198
+ Container$R.registerRule(Rule$3);
20193
20199
 
20194
20200
  let Declaration$2 = declaration;
20195
20201
  let tokenizer = tokenize;
@@ -20799,7 +20805,7 @@ let Parser$1 = class Parser {
20799
20805
 
20800
20806
  var parser = Parser$1;
20801
20807
 
20802
- let Container$P = container;
20808
+ let Container$Q = container;
20803
20809
  let Parser = parser;
20804
20810
  let Input$3 = input;
20805
20811
 
@@ -20838,12 +20844,12 @@ function parse$3(css, opts) {
20838
20844
  var parse_1 = parse$3;
20839
20845
  parse$3.default = parse$3;
20840
20846
 
20841
- Container$P.registerParse(parse$3);
20847
+ Container$Q.registerParse(parse$3);
20842
20848
 
20843
20849
  let { isClean, my } = symbols;
20844
20850
  let MapGenerator$1 = mapGenerator;
20845
20851
  let stringify$2 = stringify_1;
20846
- let Container$O = container;
20852
+ let Container$P = container;
20847
20853
  let Document$2 = document$1;
20848
20854
  let warnOnce$1 = warnOnce$2;
20849
20855
  let Result$3 = result;
@@ -20978,7 +20984,7 @@ let LazyResult$2 = class LazyResult {
20978
20984
 
20979
20985
  if (root && !root[my]) {
20980
20986
  /* c8 ignore next 2 */
20981
- Container$O.rebuild(root);
20987
+ Container$P.rebuild(root);
20982
20988
  }
20983
20989
  }
20984
20990
 
@@ -21648,7 +21654,7 @@ fromJSON$1.default = fromJSON$1;
21648
21654
  let CssSyntaxError = cssSyntaxError;
21649
21655
  let Declaration = declaration;
21650
21656
  let LazyResult = lazyResult;
21651
- let Container$N = container;
21657
+ let Container$O = container;
21652
21658
  let Processor = processor;
21653
21659
  let stringify = stringify_1;
21654
21660
  let fromJSON = fromJSON_1;
@@ -21728,7 +21734,7 @@ postcss.document = defaults => new Document(defaults);
21728
21734
 
21729
21735
  postcss.CssSyntaxError = CssSyntaxError;
21730
21736
  postcss.Declaration = Declaration;
21731
- postcss.Container = Container$N;
21737
+ postcss.Container = Container$O;
21732
21738
  postcss.Processor = Processor;
21733
21739
  postcss.Document = Document;
21734
21740
  postcss.Comment = Comment;
@@ -22597,7 +22603,7 @@ var sanitizeHtml$1 = sanitizeHtml_1;
22597
22603
  var Card = function (_a) {
22598
22604
  var header = _a.header, content = _a.content, footerLink = _a.footerLink, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText;
22599
22605
  var showContent = content || header;
22600
- return (React__default.default.createElement(Container$V, { "data-testid": "Card" },
22606
+ return (React__default.default.createElement(Container$W, { "data-testid": "Card" },
22601
22607
  imageLarge && imageSmall && (React__default.default.createElement(React__default.default.Fragment, null, footerLink ? (React__default.default.createElement(ImageLink$1, { href: footerLink.url },
22602
22608
  React__default.default.createElement(Image$4, { src: imageLarge, alt: imageAltText, srcSet: "".concat(imageSmall, " 400w, ").concat(imageLarge, " 800w"), sizes: "(max-width: 550px) 400px, 800px", loading: "lazy" }))) : (React__default.default.createElement(Image$4, { src: imageLarge, alt: imageAltText, srcSet: "".concat(imageSmall, " 400w, ").concat(imageLarge, " 800w"), sizes: "(max-width: 550px) 400px, 800px", loading: "lazy" })))),
22603
22609
  showContent && (React__default.default.createElement(Content$6, null,
@@ -22613,12 +22619,12 @@ var Card = function (_a) {
22613
22619
  */
22614
22620
  var Cards = function (_a) {
22615
22621
  var cards = _a.cards;
22616
- return (React__default.default.createElement(Container$W, { "data-testid": "Cards" },
22622
+ return (React__default.default.createElement(Container$X, { "data-testid": "Cards" },
22617
22623
  React__default.default.createElement(Row$1, null, cards.map(function (card, index) { return (React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
22618
22624
  React__default.default.createElement(Card, __assign$2({}, card)))); }))));
22619
22625
  };
22620
22626
 
22621
- const Container$M = styled__default.default.div`
22627
+ const Container$N = styled__default.default.div`
22622
22628
  margin: 25px 0;
22623
22629
  `;
22624
22630
 
@@ -22736,7 +22742,7 @@ var FileDownload = function (_a) {
22736
22742
 
22737
22743
  var DownloadableFiles = function (_a) {
22738
22744
  var files = _a.files;
22739
- return (React__default.default.createElement(Container$M, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
22745
+ return (React__default.default.createElement(Container$N, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
22740
22746
  files.map(function (file) { return React__default.default.createElement(FileDownload, __assign$2({ key: file.title }, file)); })
22741
22747
  :
22742
22748
  React__default.default.createElement("i", null, "No file to show")));
@@ -22837,7 +22843,7 @@ const AccessibleMapLink = styled__default.default(MapLink$1)`
22837
22843
  ${(props) => props.theme.visuallyHidden};
22838
22844
  `;
22839
22845
 
22840
- const Container$L = styled__default.default.div`
22846
+ const Container$M = styled__default.default.div`
22841
22847
  border: solid 4px;
22842
22848
  border-radius: ${(props) => props.theme.theme_vars.border_radius};
22843
22849
  border-color: ${(props) =>
@@ -22891,7 +22897,7 @@ const InnerContainer$2 = styled__default.default.div`
22891
22897
  */
22892
22898
  var AlertBannerService = function (_a) {
22893
22899
  var title = _a.title, _b = _a.hasTopSpacing, hasTopSpacing = _b === void 0 ? false : _b, _c = _a.alertType, alertType = _c === void 0 ? 'alert' : _c, children = _a.children;
22894
- return (React__default.default.createElement(Container$L, { "$alertType": alertType, "data-testid": "AlertBannerService", hasTopSpacing: hasTopSpacing },
22900
+ return (React__default.default.createElement(Container$M, { "$alertType": alertType, "data-testid": "AlertBannerService", "$hasTopSpacing": hasTopSpacing },
22895
22901
  React__default.default.createElement(InnerContainer$2, { "data-testid": "AlertBannerServiceInner" },
22896
22902
  (title === null || title === void 0 ? void 0 : title.trim()) && React__default.default.createElement(Heading, { text: title }),
22897
22903
  children)));
@@ -22944,7 +22950,7 @@ var GoogleMap = function (_a) {
22944
22950
  React__default.default.createElement(MapLink$1, { href: link_url }, link_title ? link_title : 'Google Maps link')))));
22945
22951
  };
22946
22952
 
22947
- const Container$K = styled__default.default.figure`
22953
+ const Container$L = styled__default.default.figure`
22948
22954
  display: block;
22949
22955
  background: ${(props) =>
22950
22956
  props.theme.cardinal_name === 'north'
@@ -23611,7 +23617,7 @@ var LazyImage = /*@__PURE__*/getDefaultExportFromCjs(lib$1);
23611
23617
  */
23612
23618
  var Image$2 = function (_a) {
23613
23619
  var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.ratio, ratio = _b === void 0 ? '4by3' : _b, caption = _a.caption, wrapText = _a.wrapText;
23614
- return (React__default.default.createElement(Container$K, { "data-testid": "Image", "$wrapText": wrapText },
23620
+ return (React__default.default.createElement(Container$L, { "data-testid": "Image", "$wrapText": wrapText },
23615
23621
  React__default.default.createElement(ImageContainer$4, { "data-testid": "ImageContainer", "$ratio": ratio },
23616
23622
  React__default.default.createElement(LazyImage, { placeholder: imageSmall, src: imageLarge, visibilitySensorProps: {
23617
23623
  partialVisibility: true,
@@ -23619,7 +23625,7 @@ var Image$2 = function (_a) {
23619
23625
  (caption === null || caption === void 0 ? void 0 : caption.trim()) && React__default.default.createElement(Caption, null, caption)));
23620
23626
  };
23621
23627
 
23622
- const Container$J = styled__default.default.div`
23628
+ const Container$K = styled__default.default.div`
23623
23629
  display: block;
23624
23630
  `;
23625
23631
 
@@ -23640,7 +23646,7 @@ const Content$5 = styled__default.default.div`
23640
23646
  */
23641
23647
  var ImageAndText = function (_a) {
23642
23648
  var heading = _a.heading, textContent = _a.textContent, image = _a.image;
23643
- return (React__default.default.createElement(Container$J, { "data-testid": "ImageAndText" },
23649
+ return (React__default.default.createElement(Container$K, { "data-testid": "ImageAndText" },
23644
23650
  React__default.default.createElement(Row$1, null,
23645
23651
  heading && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
23646
23652
  React__default.default.createElement(HeadingContainer, null,
@@ -23653,8 +23659,46 @@ var ImageAndText = function (_a) {
23653
23659
  React__default.default.createElement(Content$5, { dangerouslySetInnerHTML: { __html: sanitizeHtml$1(textContent) } }))))));
23654
23660
  };
23655
23661
 
23656
- const Container$I = styled__default.default.div`
23662
+ var CaseAppointmentType;
23663
+ (function (CaseAppointmentType) {
23664
+ CaseAppointmentType["Hearing"] = "hearing";
23665
+ CaseAppointmentType["Opening"] = "opening";
23666
+ CaseAppointmentType["Writing"] = "writing";
23667
+ })(CaseAppointmentType || (CaseAppointmentType = {}));
23668
+
23669
+ const Container$J = styled__default.default.div`
23657
23670
  display: block;
23671
+ box-sizing: border-box;
23672
+ `;
23673
+
23674
+ const GroupContainer = styled__default.default.div`
23675
+ display: flex;
23676
+ flex-direction: column;
23677
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.large};
23678
+ `;
23679
+
23680
+ const InquestContainer = styled__default.default.div`
23681
+ display: flex;
23682
+ flex-direction: row;
23683
+ align-items: flex-start;
23684
+ justify-content: flex-start;
23685
+ flex-wrap: wrap;
23686
+
23687
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
23688
+ flex-wrap: nowrap;
23689
+ }
23690
+ `;
23691
+
23692
+ const InquestTime = styled__default.default.div`
23693
+ flex-grow: 0;
23694
+ flex-shrink: 0;
23695
+ `;
23696
+
23697
+ const InquestDetails = styled__default.default.div`
23698
+ flex-grow: 1;
23699
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
23700
+ padding-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
23701
+ }
23658
23702
  `;
23659
23703
 
23660
23704
  /**
@@ -23662,35 +23706,103 @@ const Container$I = styled__default.default.div`
23662
23706
  */
23663
23707
  var InquestSchedule = function (_a) {
23664
23708
  var caseAppointments = _a.caseAppointments, title = _a.title, _b = _a.error, error = _b === void 0 ? false : _b;
23665
- return (React__default.default.createElement(Container$I, { "data-testid": "InquestSchedule" },
23666
- React__default.default.createElement("div", { className: "table-container" },
23667
- React__default.default.createElement("table", null,
23668
- React__default.default.createElement("caption", null, title),
23669
- React__default.default.createElement("thead", null,
23670
- React__default.default.createElement("tr", null,
23671
- React__default.default.createElement("th", { scope: "col" }, "Name"),
23672
- React__default.default.createElement("th", { scope: "col" }, "Age"),
23673
- React__default.default.createElement("th", { scope: "col" }, "Place of death"),
23674
- React__default.default.createElement("th", { scope: "col" }, "Date of death"),
23675
- React__default.default.createElement("th", { scope: "col" }, "Name of coroner"),
23676
- React__default.default.createElement("th", { scope: "col" }, "Location"),
23677
- React__default.default.createElement("th", { scope: "col" }, "Date and time"))),
23678
- React__default.default.createElement("tbody", null,
23679
- caseAppointments.map(function (item, index) { return (React__default.default.createElement("tr", { key: index },
23680
- React__default.default.createElement("td", null, item.fullName),
23681
- React__default.default.createElement("td", null, item.age),
23682
- React__default.default.createElement("td", null, item.placeOfDeath),
23683
- React__default.default.createElement("td", null, new Date(item.dateTimeOfDeath).toLocaleString('en-GB')),
23684
- React__default.default.createElement("td", null, item.coroner),
23685
- React__default.default.createElement("td", null, item.courtroomFullAddress),
23686
- React__default.default.createElement("td", null, new Date(item.startDateTime).toLocaleString('en-GB')))); }),
23687
- caseAppointments.length === 0 && (React__default.default.createElement("tr", null,
23688
- React__default.default.createElement("td", { colSpan: 7 },
23689
- React__default.default.createElement("p", null, "We can't find any results at the moment."),
23690
- error ? (React__default.default.createElement("p", null, " The information is currently unavailable.")) : (React__default.default.createElement("p", null, "There are no inquests scheduled for next month."))))))))));
23709
+ var hearings = caseAppointments.filter(function (appointment) {
23710
+ return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Hearing);
23711
+ });
23712
+ var openings = caseAppointments.filter(function (appointment) {
23713
+ return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Opening);
23714
+ });
23715
+ var writings = caseAppointments.filter(function (appointment) {
23716
+ return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Writing);
23717
+ });
23718
+ var groupHearingsByDay = function (appointments) {
23719
+ return appointments.reduce(function (acc, inquest) {
23720
+ var inquestDate = new Date(inquest.startDateTime);
23721
+ var inquestISODay = inquestDate.toISOString().substring(0, 10);
23722
+ if (!acc[inquestISODay]) {
23723
+ acc[inquestISODay] = [];
23724
+ }
23725
+ acc[inquestISODay].push(inquest);
23726
+ return acc;
23727
+ }, {});
23728
+ };
23729
+ var hearingDayGrouped = groupHearingsByDay(hearings);
23730
+ var openingDayGrouped = groupHearingsByDay(openings);
23731
+ var writingDayGrouped = groupHearingsByDay(writings);
23732
+ var formatDate = function (inquestDay) {
23733
+ return inquestDay
23734
+ .toLocaleDateString('en-GB', {
23735
+ weekday: 'long',
23736
+ day: 'numeric',
23737
+ month: 'long',
23738
+ year: 'numeric',
23739
+ })
23740
+ .replace(',', '');
23741
+ };
23742
+ var formatTime = function (inquestDate) {
23743
+ return inquestDate.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
23744
+ };
23745
+ var transformToSections = function (groupedData) {
23746
+ return Object.keys(groupedData).map(function (day) {
23747
+ var inquestDayDate = new Date(day);
23748
+ return {
23749
+ title: formatDate(inquestDayDate),
23750
+ content: (React__default.default.createElement(Row$1, null, groupedData[day]
23751
+ .sort(function (a, b) {
23752
+ return new Date(a.startDateTime).getTime() - new Date(b.startDateTime).getTime();
23753
+ })
23754
+ .map(function (inquest, key) {
23755
+ var startDateTime = new Date(inquest.startDateTime);
23756
+ var timeOfDeath = new Date(inquest.dateTimeOfDeath);
23757
+ return (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", key: key },
23758
+ React__default.default.createElement(InquestContainer, null,
23759
+ React__default.default.createElement(InquestTime, null,
23760
+ React__default.default.createElement("strong", null, formatTime(startDateTime))),
23761
+ React__default.default.createElement(InquestDetails, null,
23762
+ React__default.default.createElement("strong", null, "Name:"),
23763
+ " ",
23764
+ inquest.fullName,
23765
+ ".",
23766
+ React__default.default.createElement("br", null),
23767
+ React__default.default.createElement("strong", null, "Died:"),
23768
+ " ",
23769
+ formatDate(timeOfDeath),
23770
+ " at ",
23771
+ inquest.placeOfDeath,
23772
+ ". Aged ",
23773
+ inquest.age,
23774
+ ' ',
23775
+ "years.",
23776
+ React__default.default.createElement("br", null),
23777
+ React__default.default.createElement("strong", null, "Court location:"),
23778
+ " ",
23779
+ inquest.courtroomFullAddress,
23780
+ ".",
23781
+ React__default.default.createElement("br", null),
23782
+ React__default.default.createElement("strong", null, "Coroner:"),
23783
+ " ",
23784
+ inquest.coroner,
23785
+ "."))));
23786
+ }))),
23787
+ };
23788
+ });
23789
+ };
23790
+ return (React__default.default.createElement(Container$J, { "data-testid": "InquestSchedule" },
23791
+ Object.keys(hearingDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
23792
+ React__default.default.createElement(Heading, { level: 2, text: title }),
23793
+ React__default.default.createElement(Accordion$1, { sections: transformToSections(hearingDayGrouped) }))),
23794
+ Object.keys(openingDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
23795
+ React__default.default.createElement(Heading, { level: 2, text: "Inquest Openings" }),
23796
+ React__default.default.createElement(Accordion$1, { sections: transformToSections(openingDayGrouped) }))),
23797
+ Object.keys(writingDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
23798
+ React__default.default.createElement(Heading, { level: 2, text: "Inquests in Writing" }),
23799
+ React__default.default.createElement(Accordion$1, { sections: transformToSections(writingDayGrouped) }))),
23800
+ caseAppointments.length === 0 && (React__default.default.createElement("div", null,
23801
+ React__default.default.createElement("p", null, "We can't find any results at the moment."),
23802
+ error ? (React__default.default.createElement("p", null, " The information is currently unavailable.")) : (React__default.default.createElement("p", null, "There are no inquests scheduled for next month."))))));
23691
23803
  };
23692
23804
 
23693
- const Container$H = styled__default.default.div`
23805
+ const Container$I = styled__default.default.div`
23694
23806
  ${(props) => props.theme.fontStyles};
23695
23807
  overflow: hidden;
23696
23808
  margin: 40px auto 5px auto;
@@ -23770,7 +23882,7 @@ const CTA = styled__default.default.a`
23770
23882
  */
23771
23883
  var PromoBanner = function (_a) {
23772
23884
  var title = _a.title, image1440x810 = _a.image1440x810, image144x81 = _a.image144x81, ctaText = _a.ctaText, ctaUrl = _a.ctaUrl, children = _a.children;
23773
- return (React__default.default.createElement(Container$H, null,
23885
+ return (React__default.default.createElement(Container$I, null,
23774
23886
  React__default.default.createElement(LazyImage, { src: image1440x810, placeholder: image144x81, visibilitySensorProps: {
23775
23887
  partialVisibility: true,
23776
23888
  } }, function (src) { return React__default.default.createElement(ImageLink, { "$img": src, href: ctaUrl, title: ctaText }); }),
@@ -23982,6 +24094,162 @@ var Promotions = function (_a) {
23982
24094
  numberOfPromos > 1 && React__default.default.createElement(PromoBlock, { promos: promos.slice(1, numberOfPromos) })));
23983
24095
  };
23984
24096
 
24097
+ const Container$H = styled__default.default.div`
24098
+ display: block;
24099
+ `;
24100
+
24101
+ const Label$4 = styled__default.default.label`
24102
+ margin-bottom: 5px;
24103
+ font-weight: bold;
24104
+ `;
24105
+
24106
+ const RoadworkList = styled__default.default.ul`
24107
+ list-style: none;
24108
+ margin: 0;
24109
+ padding: 0;
24110
+ max-width: 100% !important;
24111
+ `;
24112
+
24113
+ const Roadwork = styled__default.default.li`
24114
+ display: block;
24115
+ width: 100%;
24116
+ margin-left: 0;
24117
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium} !important;
24118
+ padding: ${(props) => `${props.theme.theme_vars.spacingSizes.small} ${props.theme.theme_vars.spacingSizes.medium}`};
24119
+ left: 0;
24120
+ box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
24121
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
24122
+ background-color: ${(props) =>
24123
+ props.theme.cardinal_name === 'west'
24124
+ ? props.theme.theme_vars.colours.grey_light + '7a'
24125
+ : props.theme.theme_vars.colours.white};
24126
+
24127
+ h3 {
24128
+ margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium} !important;
24129
+ }
24130
+ `;
24131
+
24132
+ const IconContainer$2 = styled__default.default.div`
24133
+ display: flex;
24134
+ flex-wrap: nowrap;
24135
+ flex-direction: row;
24136
+ justify-content: flex-start;
24137
+ align-items: center;
24138
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
24139
+
24140
+ &:last-of-type {
24141
+ margin-bottom: 0;
24142
+ }
24143
+
24144
+ & span svg {
24145
+ vertical-align: middle;
24146
+ }
24147
+ `;
24148
+
24149
+ const IconText = styled__default.default.div`
24150
+ padding-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
24151
+ `;
24152
+
24153
+ const NoMatches = styled__default.default.p`
24154
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
24155
+ `;
24156
+
24157
+ /**
24158
+ * Primary UI component for user interaction
24159
+ * If value is set then treat as controlled component
24160
+ */
24161
+ var Input = function (_a) {
24162
+ var _b = _a.type, type = _b === void 0 ? 'text' : _b, _c = _a.placeholder, placeholder = _c === void 0 ? '' : _c, _d = _a.isErrored, isErrored = _d === void 0 ? false : _d, errorText = _a.errorText, name = _a.name, maxLength = _a.maxLength, defaultValue = _a.defaultValue, onChange = _a.onChange, id = _a.id, value = _a.value, autocomplete = _a.autocomplete, _e = _a.isFullWidth, isFullWidth = _e === void 0 ? false : _e;
24163
+ return (React__default.default.createElement(React__default.default.Fragment, null,
24164
+ errorText && React__default.default.createElement(ErrorText$1, null, errorText),
24165
+ typeof value !== 'undefined' ? (React__default.default.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, value: value, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth })) : (React__default.default.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, defaultValue: defaultValue, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth }))));
24166
+ };
24167
+
24168
+ /**
24169
+ * A filterable list of roadworks
24170
+ */
24171
+ var RoadworksList = function (_a) {
24172
+ var roadworks = _a.roadworks, title = _a.title;
24173
+ var _b = React.useState(roadworks), filteredRoadworks = _b[0], setFilteredRoadworks = _b[1];
24174
+ var handleSearch = function (e) {
24175
+ var searchTerm = e.target.value.toLowerCase();
24176
+ if (searchTerm != '') {
24177
+ var updatedRoadworks = roadworks.filter(function (roadwork) {
24178
+ return (roadwork.description.toLowerCase().includes(searchTerm) ||
24179
+ roadwork.detailedLocation.toLocaleLowerCase().includes(searchTerm) ||
24180
+ roadwork.trafficManagement.toLowerCase().includes(searchTerm));
24181
+ });
24182
+ setFilteredRoadworks(updatedRoadworks);
24183
+ }
24184
+ else {
24185
+ setFilteredRoadworks(roadworks);
24186
+ }
24187
+ };
24188
+ // Format the time to match Gov UK style guide
24189
+ // https://www.gov.uk/guidance/style-guide/a-to-z#times
24190
+ var formatTime = function (dayJsInstance) {
24191
+ if (dayJsInstance.format('HH:mm') === '00:00') {
24192
+ return 'midnight';
24193
+ }
24194
+ if (dayJsInstance.format('HH:mm') === '12:00') {
24195
+ return 'midday';
24196
+ }
24197
+ if (dayJsInstance.format('mm') === '00') {
24198
+ return dayJsInstance.format('ha');
24199
+ }
24200
+ else {
24201
+ return dayJsInstance.format('h:mma');
24202
+ }
24203
+ };
24204
+ // Format the time to match the Gov UK style guide
24205
+ // https://www.gov.uk/guidance/style-guide/a-to-z#dates
24206
+ var formatDate = function (startTime, endTime) {
24207
+ if (!endTime) {
24208
+ return dayjs(startTime).format('dddd D MMMM YYYY') + ' at ' + formatTime(dayjs(startTime));
24209
+ }
24210
+ else {
24211
+ var endDate = dayjs(endTime);
24212
+ var startDate = dayjs(startTime);
24213
+ if (startDate.format('YYYY-MM-DD') === endDate.format('YYYY-MM-DD')) {
24214
+ if (startDate.format('HH:mm') === '00:00' && endDate.format('HH:mm') === '23:59') {
24215
+ return "".concat(startDate.format('dddd D MMMM YYYY'), " - all day");
24216
+ }
24217
+ return "".concat(startDate.format('dddd D MMMM YYYY'), " at ").concat(formatTime(startDate), " to ").concat(formatTime(endDate));
24218
+ }
24219
+ else {
24220
+ return "".concat(startDate.format('dddd D MMMM YYYY'), " at ").concat(formatTime(startDate), " to ").concat(endDate.format('dddd D MMMM YYYY'), " at ").concat(formatTime(endDate));
24221
+ }
24222
+ }
24223
+ };
24224
+ return (React__default.default.createElement(Container$H, { "data-testid": "RoadworksList" },
24225
+ React__default.default.createElement(Heading, { level: 2, text: title }),
24226
+ React__default.default.createElement(Label$4, { htmlFor: "roadworksSearch" }, "Search roadworks"),
24227
+ React__default.default.createElement(Input, { id: "roadworksSearch", name: "roadworksSearch", type: "text", placeholder: "Enter a search term", maxLength: 255, onChange: handleSearch, isFullWidth: true }),
24228
+ React__default.default.createElement(RoadworkList, null, filteredRoadworks.map(function (roadwork, index) {
24229
+ var startDate = new Date(roadwork.startTime);
24230
+ var endDate = new Date(roadwork.endTime);
24231
+ return (React__default.default.createElement(Roadwork, { key: index },
24232
+ React__default.default.createElement(IconContainer$2, null,
24233
+ React__default.default.createElement(DynamicIcon, { icon: "mappin" }),
24234
+ React__default.default.createElement(IconText, null,
24235
+ React__default.default.createElement(Heading, { text: roadwork.detailedLocation, level: 3 }))),
24236
+ React__default.default.createElement(IconContainer$2, null,
24237
+ React__default.default.createElement(DynamicIcon, { icon: "events" }),
24238
+ React__default.default.createElement(IconText, null,
24239
+ React__default.default.createElement("span", null, formatDate(startDate, endDate)))),
24240
+ React__default.default.createElement(IconContainer$2, null,
24241
+ React__default.default.createElement(DynamicIcon, { icon: "roadworks" }),
24242
+ React__default.default.createElement(IconText, null,
24243
+ React__default.default.createElement("span", null, roadwork.description))),
24244
+ React__default.default.createElement(IconContainer$2, null,
24245
+ React__default.default.createElement(DynamicIcon, { icon: "bollard" }),
24246
+ React__default.default.createElement(IconText, null,
24247
+ React__default.default.createElement("span", null, roadwork.trafficManagement)))));
24248
+ })),
24249
+ roadworks.length > 0 && filteredRoadworks.length === 0 && (React__default.default.createElement(NoMatches, null, "We couldn't find any results for your search term. Please try a different search.")),
24250
+ roadworks.length == 0 && (React__default.default.createElement(NoMatches, null, "Sorry, we're not able to find any results at the moment. Please try again later."))));
24251
+ };
24252
+
23985
24253
  const Container$G = styled__default.default.div`
23986
24254
  padding: 0;
23987
24255
  margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
@@ -24100,17 +24368,6 @@ const SubmitButton = styled__default.default.input`
24100
24368
  }
24101
24369
  `;
24102
24370
 
24103
- /**
24104
- * Primary UI component for user interaction
24105
- * If value is set then treat as controlled component
24106
- */
24107
- var Input = function (_a) {
24108
- var _b = _a.type, type = _b === void 0 ? 'text' : _b, _c = _a.placeholder, placeholder = _c === void 0 ? '' : _c, _d = _a.isErrored, isErrored = _d === void 0 ? false : _d, errorText = _a.errorText, name = _a.name, maxLength = _a.maxLength, defaultValue = _a.defaultValue, onChange = _a.onChange, id = _a.id, value = _a.value, autocomplete = _a.autocomplete, _e = _a.isFullWidth, isFullWidth = _e === void 0 ? false : _e;
24109
- return (React__default.default.createElement(React__default.default.Fragment, null,
24110
- errorText && React__default.default.createElement(ErrorText$1, null, errorText),
24111
- typeof value !== 'undefined' ? (React__default.default.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, value: value, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth })) : (React__default.default.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, defaultValue: defaultValue, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth }))));
24112
- };
24113
-
24114
24371
  var CustomSearch = function (_a) {
24115
24372
  var method = _a.method, path = _a.path, label = _a.label, _b = _a.hasHiddenLabel, hasHiddenLabel = _b === void 0 ? true : _b, fieldName = _a.fieldName, placeholder = _a.placeholder, searchText = _a.searchText, id = _a.id;
24116
24373
  if (!id) {
@@ -24149,7 +24406,7 @@ var VideoProvider;
24149
24406
  VideoProvider["Vimeo"] = "Vimeo";
24150
24407
  })(VideoProvider || (VideoProvider = {}));
24151
24408
 
24152
- const VideoContainer = styled__default.default.figure`
24409
+ const VideoContainer$1 = styled__default.default.figure`
24153
24410
  display: block;
24154
24411
  padding-top: 56.25%;
24155
24412
  position: relative;
@@ -24209,7 +24466,7 @@ var Video = function (_a) {
24209
24466
  React.useEffect(function () {
24210
24467
  setNotServer(true);
24211
24468
  }, []);
24212
- return (React__default.default.createElement(React__default.default.Fragment, null, cookiesAccepted && notServer ? (React__default.default.createElement(VideoContainer, { "data-testid": "Video" },
24469
+ return (React__default.default.createElement(React__default.default.Fragment, null, cookiesAccepted && notServer ? (React__default.default.createElement(VideoContainer$1, { "data-testid": "Video" },
24213
24470
  React__default.default.createElement("iframe", { src: embedLink, title: description, allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen;", "data-testid": "VideoIframe" }))) : (React__default.default.createElement(VideoLink, { href: watchLink, title: description, "data-testid": "VideoLink" }, description))));
24214
24471
  };
24215
24472
 
@@ -25078,6 +25335,17 @@ const FooterLink = styled__default.default.a`
25078
25335
  -webkit-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25079
25336
  -moz-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25080
25337
  }
25338
+ &:focus:not(:focus-visible) {
25339
+ box-shadow: none;
25340
+ -webkit-box-shadow: none;
25341
+ -moz-box-shadow: none;
25342
+ }
25343
+ &:focus-visible {
25344
+ ${(props) => props.theme.linkStylesFocus}
25345
+ box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25346
+ -webkit-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25347
+ -moz-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25348
+ }
25081
25349
  &:active {
25082
25350
  ${(props) => props.theme.linkStylesActive}
25083
25351
  box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
@@ -25240,6 +25508,8 @@ const headerThemeStyles = (props) => {
25240
25508
  const Container$w = styled__default.default.header`
25241
25509
  font-family: ${(props) => props.theme.theme_vars.fontstack};
25242
25510
  padding: 3px 0;
25511
+ position: sticky;
25512
+ z-index: 1;
25243
25513
  ${headerThemeStyles}
25244
25514
  `;
25245
25515
 
@@ -25632,9 +25902,19 @@ var Header = function (_a) {
25632
25902
  * Optimised for an image in 16:5 ratio on all but small width screens
25633
25903
  */
25634
25904
  const Container$u = styled__default.default.div`
25635
- background-image: ${(props) =>
25636
- !props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)),` : ``}
25637
- url('${(props) => props.$image}');
25905
+ background-image: ${(props) => {
25906
+ const gradient = !props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75))` : '';
25907
+ const imageUrl = props.$image && props.$image.trim() ? `url('${props.$image}')` : '';
25908
+ if (gradient && imageUrl) {
25909
+ return `${gradient}, ${imageUrl}`;
25910
+ } else if (gradient) {
25911
+ return gradient;
25912
+ } else if (imageUrl) {
25913
+ return imageUrl;
25914
+ } else {
25915
+ return 'none';
25916
+ }
25917
+ }};
25638
25918
 
25639
25919
  padding-bottom: 10px;
25640
25920
  background-position: center;
@@ -25665,6 +25945,7 @@ const InnerContainer = styled__default.default.div`
25665
25945
  margin-right: auto;
25666
25946
  margin-left: auto;
25667
25947
  flex-grow: 1;
25948
+ z-index: 1;
25668
25949
 
25669
25950
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25670
25951
  max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
@@ -25786,16 +26067,95 @@ const Search = styled__default.default.div`
25786
26067
  margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
25787
26068
  `;
25788
26069
 
26070
+ const VideoContainer = styled__default.default.div`
26071
+ position: absolute;
26072
+ width: 100%;
26073
+ @media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
26074
+ height: 580px;
26075
+ }
26076
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26077
+ height: 410px;
26078
+ }
26079
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26080
+ height: 560px;
26081
+ }
26082
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
26083
+ height: 636px;
26084
+ }
26085
+ `;
26086
+
26087
+ const VideoBackground = styled__default.default.video`
26088
+ position: absolute;
26089
+ width: 100%;
26090
+ height: 575px;
26091
+ object-fit: cover;
26092
+ @media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
26093
+ height: 590px;
26094
+ }
26095
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26096
+ height: 420px;
26097
+ }
26098
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26099
+ height: 568px;
26100
+ }
26101
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
26102
+ height: 645px;
26103
+ }
26104
+ `;
26105
+
26106
+ const PlayPauseButton = styled__default.default.button`
26107
+ position: absolute;
26108
+ display: none;
26109
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
26110
+ bottom: 20px;
26111
+ right: 20px;
26112
+ display: flex;
26113
+ align-items: center;
26114
+ justify-content: center;
26115
+ z-index: 1;
26116
+ background: rgba(0, 0, 0, 0.5);
26117
+ border: 1px solid white;
26118
+ color: white;
26119
+ font-size: 32px;
26120
+ border-radius: 50%;
26121
+ width: 50px;
26122
+ height: 50px;
26123
+ cursor: pointer;
26124
+ &:hover {
26125
+ background: rgba(0, 0, 0, 0.7);
26126
+ }
26127
+ }
26128
+ `;
26129
+
25789
26130
  /**
25790
26131
  * Hero image banner with optional text and call to action with varying presentation of text area.
25791
26132
  * For optional use at the top of a service landing page, if set in the CMS.
25792
26133
  */
25793
26134
  var HeroImage = function (_a) {
25794
- var headline = _a.headline, content = _a.content, callToActionText = _a.callToActionText, callToActionURL = _a.callToActionURL, _b = _a.callToActionIsPrimary, callToActionIsPrimary = _b === void 0 ? true : _b, _c = _a.backgroundBox, backgroundBox = _c === void 0 ? true : _c, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText, breadcrumb = _a.breadcrumb, customSearch = _a.customSearch;
26135
+ var headline = _a.headline, content = _a.content, callToActionText = _a.callToActionText, callToActionURL = _a.callToActionURL, _b = _a.callToActionIsPrimary, callToActionIsPrimary = _b === void 0 ? true : _b, _c = _a.backgroundBox, backgroundBox = _c === void 0 ? true : _c, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText, heroVideoUrl = _a.heroVideoUrl, breadcrumb = _a.breadcrumb, customSearch = _a.customSearch;
26136
+ var _d = React.useState(true), isPlaying = _d[0], setIsPlaying = _d[1];
26137
+ var videoRef = React.useRef(null);
26138
+ var togglePlay = function () {
26139
+ if (videoRef.current) {
26140
+ if (isPlaying) {
26141
+ videoRef.current.pause();
26142
+ }
26143
+ else {
26144
+ videoRef.current.play();
26145
+ }
26146
+ setIsPlaying(!isPlaying);
26147
+ }
26148
+ };
25795
26149
  return (React__default.default.createElement(React__default.default.Fragment, null,
25796
26150
  React__default.default.createElement(LazyImage, { src: imageLarge, placeholder: imageSmall, visibilitySensorProps: {
25797
26151
  partialVisibility: true,
25798
26152
  } }, function (src) { return (React__default.default.createElement(Container$u, { "$image": src, "$backgroundBox": backgroundBox, "data-testid": "HeroImage" },
26153
+ heroVideoUrl && (React__default.default.createElement(React__default.default.Fragment, null,
26154
+ React__default.default.createElement(VideoContainer, null,
26155
+ React__default.default.createElement(VideoBackground, { ref: videoRef, autoPlay: true, loop: true, muted: true },
26156
+ React__default.default.createElement("source", { src: heroVideoUrl, type: "video/mp4" }),
26157
+ "Your browser doesn't support this video."),
26158
+ React__default.default.createElement(PlayPauseButton, { onClick: togglePlay }, isPlaying ? '⏸' : '▶')))),
25799
26159
  React__default.default.createElement(InnerContainer, null,
25800
26160
  React__default.default.createElement(Overlay, { "$backgroundBox": backgroundBox, "data-testid": "HeroImageOverlay" },
25801
26161
  breadcrumb && (React__default.default.createElement(BreadcrumbLink, { href: breadcrumb.url, "$backgroundBox": backgroundBox }, breadcrumb.title)),
@@ -27003,7 +27363,10 @@ const Container$l = styled__default.default.main`
27003
27363
  }
27004
27364
 
27005
27365
  td > a:only-child {
27006
- padding: 5px 10px;
27366
+ padding: 12px 20px;
27367
+ display: inline-block;
27368
+ min-height: 44px;
27369
+ min-width: 44px;
27007
27370
  }
27008
27371
 
27009
27372
  td > a:not(:only-child) {
@@ -27889,10 +28252,12 @@ const ListItem = styled__default.default.li`
27889
28252
  background-color: ${(props) => props.theme.theme_vars.colours.action_light};
27890
28253
  color: ${(props) => props.theme.theme_vars.colours.black};
27891
28254
  border-bottom-color: transparent;
27892
-
27893
28255
  &:focus {
27894
28256
  ${focusListItem}
27895
28257
  }
28258
+ &:focus-visible {
28259
+ ${focusListItem}
28260
+ }
27896
28261
  }
27897
28262
  }
27898
28263
  `;
@@ -27908,10 +28273,12 @@ const ListItemLink = styled__default.default.a`
27908
28273
  transition: background-color 0.3s ease 0s;
27909
28274
  background-color: ${(props) => props.theme.theme_vars.colours.action_light}80;
27910
28275
  }
27911
-
27912
28276
  &:focus {
27913
28277
  ${focusListItem}
27914
28278
  }
28279
+ &:focus-visible {
28280
+ ${focusListItem}
28281
+ }
27915
28282
  &:active {
27916
28283
  transform: translateY(1px);
27917
28284
  box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
@@ -30081,7 +30448,7 @@ var PhoneIcon = function (_a) {
30081
30448
  };
30082
30449
 
30083
30450
  var ServiceContact = function (_a) {
30084
- var website = _a.website, email = _a.email, contacts = _a.contacts;
30451
+ var website = _a.website, email = _a.email, contacts = _a.contacts, websiteTitle = _a.websiteTitle;
30085
30452
  var themeContext = React.useContext(styled.ThemeContext);
30086
30453
  return (React__default.default.createElement(Container$6, { "data-testid": "ServiceContact" },
30087
30454
  React__default.default.createElement(Row$1, { hasWrap: false },
@@ -30089,7 +30456,7 @@ var ServiceContact = function (_a) {
30089
30456
  React__default.default.createElement(IconContainer$1, null,
30090
30457
  React__default.default.createElement(WebsiteIcon, { colourFill: themeContext.theme_vars.colours.black })),
30091
30458
  React__default.default.createElement(Content$1, null,
30092
- React__default.default.createElement(WebLink$1, { href: website }, website)))),
30459
+ React__default.default.createElement(WebLink$1, { href: website }, websiteTitle ? "".concat(websiteTitle) : website)))),
30093
30460
  email && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "auto", classes: "striped-contacts" },
30094
30461
  React__default.default.createElement(IconContainer$1, null,
30095
30462
  React__default.default.createElement(EmailIcon, { colourFill: themeContext.theme_vars.colours.black })),
@@ -30279,10 +30646,15 @@ var transformDescriptionDetails = function (accreditations, fees, service_areas,
30279
30646
  };
30280
30647
  var transformSnippet = function (description, extractLength) {
30281
30648
  if (extractLength === void 0) { extractLength = 190; }
30282
- return (sanitizeHtml$1(description, {
30649
+ var sanitized = sanitizeHtml$1(description, {
30283
30650
  allowedTags: [],
30284
30651
  allowedAttributes: {},
30285
- }).substr(0, extractLength) + String.fromCharCode(8230));
30652
+ }).trim();
30653
+ if (!sanitized) {
30654
+ return '';
30655
+ }
30656
+ var snippet = sanitized.substr(0, extractLength);
30657
+ return sanitized.length > extractLength ? snippet + String.fromCharCode(8230) : snippet;
30286
30658
  };
30287
30659
  var transformTaxonomies = function (service_taxonomys, taxonomiesToShow) {
30288
30660
  if (taxonomiesToShow === void 0) { taxonomiesToShow = []; }
@@ -30315,11 +30687,14 @@ var transformTaxonomies = function (service_taxonomys, taxonomiesToShow) {
30315
30687
  var transformAge = function (age, ageInMonths) {
30316
30688
  if (ageInMonths === void 0) { ageInMonths = false; }
30317
30689
  if (age === 0) {
30318
- return age;
30690
+ return age.toString();
30319
30691
  }
30320
30692
  if (ageInMonths) {
30321
30693
  if (age > 36) {
30322
- return Math.ceil(age / 12) + ' years';
30694
+ if (age % 12 === 0) {
30695
+ return Math.ceil(age / 12) + ' years';
30696
+ }
30697
+ return Math.floor(age / 12) + ' years and ' + (age % 12) + (age % 12 === 1 ? ' month' : ' months');
30323
30698
  }
30324
30699
  return "".concat(age, " months");
30325
30700
  }
@@ -30332,7 +30707,7 @@ const Container$5 = styled__default.default.div`
30332
30707
 
30333
30708
  var DirectoryMap = function (_a) {
30334
30709
  var _b, _c;
30335
- var allowCookies = _a.allowCookies, mapProps = _a.mapProps;
30710
+ var _d = _a.allowCookies, allowCookies = _d === void 0 ? true : _d, mapProps = _a.mapProps;
30336
30711
  var cookiesAccepted = wereCookiesAccepted(allowCookies);
30337
30712
  var apiKey = (_b = process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY) !== null && _b !== void 0 ? _b : '';
30338
30713
  var latLong = mapProps.centre.split(',');
@@ -30436,11 +30811,11 @@ var HeartIcon = function (_a) {
30436
30811
  };
30437
30812
 
30438
30813
  var DirectoryAddToShortList = function (_a) {
30439
- var id = _a.id, name = _a.name, snippet = _a.snippet, email = _a.email, website = _a.website, phone = _a.phone;
30814
+ var id = _a.id, name = _a.name, snippet = _a.snippet, email = _a.email, website = _a.website, phone = _a.phone, addresses = _a.addresses, fees = _a.fees;
30440
30815
  var _b = useDirectoryShortListContext(), toggleFavourites = _b.toggleFavourites, isFavourite = _b.isFavourite;
30441
30816
  var themeContext = React.useContext(styled.ThemeContext);
30442
30817
  var favourite = isFavourite(id);
30443
- return (React__default.default.createElement(AddToShortlist, { onClick: function (e) { return toggleFavourites(id, name, snippet, email, website, phone); }, "data-testid": "DirectoryAddToShortList", "$favourite": favourite },
30818
+ return (React__default.default.createElement(AddToShortlist, { onClick: function (e) { return toggleFavourites(id, name, snippet, email, website, phone, addresses, fees); }, "data-testid": "DirectoryAddToShortList", "$favourite": favourite },
30444
30819
  favourite ? (React__default.default.createElement(IconDownload$1, { colourFill: themeContext.theme_vars.colours.negative })) : (React__default.default.createElement(HeartIcon, { colourFill: themeContext.theme_vars.colours.action })),
30445
30820
  favourite ? React__default.default.createElement(React__default.default.Fragment, null, "Remove from shortlist") : React__default.default.createElement(React__default.default.Fragment, null, "Add to shortlist")));
30446
30821
  };
@@ -30509,7 +30884,7 @@ var getIcon = function (profile) {
30509
30884
 
30510
30885
  var DirectoryService = function (_a) {
30511
30886
  var _b, _c, _d, _e;
30512
- var id = _a.id, name = _a.name, accreditations = _a.accreditations, _f = _a.ageInMonths, ageInMonths = _f === void 0 ? false : _f, description = _a.description, descriptionElement = _a.descriptionElement, eligibilitys = _a.eligibilitys, email = _a.email, fees = _a.fees, languages = _a.languages, organization = _a.organization, regular_schedules = _a.regular_schedules, contacts = _a.contacts, service_areas = _a.service_areas, service_at_locations = _a.service_at_locations, service_social_profiles = _a.service_social_profiles, service_taxonomys = _a.service_taxonomys, taxonomiesToShow = _a.taxonomiesToShow, url = _a.url, uploads = _a.uploads, shortListPath = _a.shortListPath;
30887
+ var id = _a.id, name = _a.name, accreditations = _a.accreditations, _f = _a.ageInMonths, ageInMonths = _f === void 0 ? false : _f, description = _a.description, descriptionElement = _a.descriptionElement, eligibilitys = _a.eligibilitys, email = _a.email, fees = _a.fees, languages = _a.languages, organization = _a.organization, regular_schedules = _a.regular_schedules, contacts = _a.contacts, service_areas = _a.service_areas, service_at_locations = _a.service_at_locations, service_social_profiles = _a.service_social_profiles, service_taxonomys = _a.service_taxonomys, taxonomiesToShow = _a.taxonomiesToShow, url = _a.url, websiteUrlTitle = _a.websiteUrlTitle, uploads = _a.uploads, shortListPath = _a.shortListPath;
30513
30888
  var labelLetters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L'];
30514
30889
  var _g = React.useState(false), notServer = _g[0], setNotServer = _g[1];
30515
30890
  var themeContext = React.useContext(styled.ThemeContext);
@@ -30533,7 +30908,9 @@ var DirectoryService = function (_a) {
30533
30908
  " Shortlist (",
30534
30909
  favourites.length,
30535
30910
  ")")),
30536
- React__default.default.createElement(DirectoryAddToShortList, { id: id, name: name, snippet: transformSnippet(description, 350), email: email, website: url, phone: (_c = (_b = contacts === null || contacts === void 0 ? void 0 : contacts[0]) === null || _b === void 0 ? void 0 : _b.phones) === null || _c === void 0 ? void 0 : _c.flatMap(function (phone) { return phone.number; }).join(', ') })))))),
30911
+ React__default.default.createElement(DirectoryAddToShortList, { id: id, name: name, snippet: transformSnippet(description, 350), email: email, website: url, phone: (_c = (_b = contacts === null || contacts === void 0 ? void 0 : contacts[0]) === null || _b === void 0 ? void 0 : _b.phones) === null || _c === void 0 ? void 0 : _c.flatMap(function (phone) { return phone.number; }).join(', '), addresses: service_at_locations.flatMap(function (location) {
30912
+ return location.physical_addresses;
30913
+ }), fees: fees })))))),
30537
30914
  service_at_locations.filter(function (location) {
30538
30915
  return location.is_visitable != false;
30539
30916
  }).length > 0 && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
@@ -30548,7 +30925,7 @@ var DirectoryService = function (_a) {
30548
30925
  .filter(function (item) { return item !== '' && item !== address.id; })
30549
30926
  .join(' <br />'),
30550
30927
  } }),
30551
- React__default.default.createElement(Button$4, { url: "https://google.com/maps/dir//".concat(location.latitude, ",").concat(location.longitude), text: "Get directions" }))); }),
30928
+ location.latitude && location.longitude && (React__default.default.createElement(Button$4, { url: "https://google.com/maps/dir//".concat(location.latitude, ",").concat(location.longitude), text: "Get directions" })))); }),
30552
30929
  (location === null || location === void 0 ? void 0 : location.accessibility_for_disabilities.length) > 0 && (React__default.default.createElement(React__default.default.Fragment, null,
30553
30930
  React__default.default.createElement(Heading, { level: 3, text: "Other facilities on site" }),
30554
30931
  React__default.default.createElement("ul", null, location.accessibility_for_disabilities.map(function (accessibility) { return (React__default.default.createElement("li", { key: accessibility.id }, accessibility.accessibility)); })))))); })),
@@ -30580,7 +30957,7 @@ var DirectoryService = function (_a) {
30580
30957
  React__default.default.createElement(MapLink, { href: "https://www.google.com/maps/search/?api=1&query=".concat(service_at_locations[0].latitude, "%2C").concat(service_at_locations[0].longitude) }, "View in Google Maps"))))))),
30581
30958
  (email || url || (contacts === null || contacts === void 0 ? void 0 : contacts.length) > 0) && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
30582
30959
  React__default.default.createElement(Heading, { level: 2, text: "How to contact this service" }),
30583
- React__default.default.createElement(ServiceContact, { email: email, website: url, contacts: contacts }))),
30960
+ React__default.default.createElement(ServiceContact, { email: email, website: url, websiteTitle: websiteUrlTitle, contacts: contacts }))),
30584
30961
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
30585
30962
  React__default.default.createElement(Heading, { level: 2, text: "Description" }),
30586
30963
  React__default.default.createElement("div", null,
@@ -30593,7 +30970,7 @@ var DirectoryService = function (_a) {
30593
30970
  React__default.default.createElement("table", null,
30594
30971
  React__default.default.createElement("thead", null,
30595
30972
  React__default.default.createElement("tr", null,
30596
- React__default.default.createElement("th", { scope: "col" }, "Weekday"),
30973
+ React__default.default.createElement("th", { scope: "col" }, "Opening days"),
30597
30974
  React__default.default.createElement("th", { scope: "col" }, "Opens"),
30598
30975
  React__default.default.createElement("th", { scope: "col" }, "Closes"))),
30599
30976
  React__default.default.createElement("tbody", null, regular_schedules === null || regular_schedules === void 0 ? void 0 : regular_schedules.map(function (schedule, scheduleIndex) { return (React__default.default.createElement("tr", { key: scheduleIndex },
@@ -30659,7 +31036,7 @@ styled__default.default.div`
30659
31036
  color: ${(props) => props.theme.theme_vars.colours.grey_dark};
30660
31037
  `;
30661
31038
 
30662
- const ButtonContainer$1 = styled__default.default.div`
31039
+ const ButtonContainer$2 = styled__default.default.div`
30663
31040
  display: flex;
30664
31041
  align-items: end;
30665
31042
  padding-bottom: 0;
@@ -30667,23 +31044,49 @@ const ButtonContainer$1 = styled__default.default.div`
30667
31044
  `;
30668
31045
 
30669
31046
  const Button$1 = styled__default.default.button`
30670
- border: 1px solid ${(props) => props.theme.theme_vars.colours.white};
30671
- background: ${(props) => props.theme.theme_vars.colours.action};
30672
- color: ${(props) => props.theme.theme_vars.colours.white};
30673
- padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
30674
- cursor: pointer;
30675
- border-radius: ${(props) => props.theme.theme_vars.border_radius};
30676
- min-height: 42px;
30677
- margin-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31047
+ border: ${(props) => (props.$isWarning ? `3px` : `1px`)} solid
31048
+ ${(props) => (props.$isWarning ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.white)};
31049
+ background: ${(props) =>
31050
+ props.$isWarning ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.action};
31051
+ color: ${(props) =>
31052
+ props.$isWarning ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.white};
31053
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
31054
+ cursor: pointer;
31055
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
31056
+ min-height: 42px;
31057
+ margin-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31058
+ font-weight: bold;
30678
31059
 
30679
- &:hover {
30680
- background: ${(props) => props.theme.theme_vars.colours.action_dark};
30681
- }
31060
+ &:hover {
31061
+ background: ${(props) =>
31062
+ props.$isWarning ? props.theme.theme_vars.colours.action_light : props.theme.theme_vars.colours.action_dark};
31063
+ color: ${(props) =>
31064
+ props.$isWarning ? props.theme.theme_vars.colours.action_dark : props.theme.theme_vars.colours.white};
31065
+ text-decoration: underline;
31066
+ text-decoration-style: dotted;
31067
+ }
30682
31068
 
30683
- &:focus {
30684
- outline: none;
30685
- background: ${(props) => props.theme.theme_vars.colours.focus};
30686
- }
31069
+ &:focus {
31070
+ ${(props) => props.theme.linkStylesFocus}
31071
+ }
31072
+
31073
+ &:active {
31074
+ ${(props) => props.theme.linkStylesActive}
31075
+ }
31076
+
31077
+ ${(props) => {
31078
+ if (props.size === 'large') {
31079
+ return `
31080
+ font-size: 16px;
31081
+ padding: 14px 24px;
31082
+ `;
31083
+ }
31084
+ }}
31085
+
31086
+ ${(props) =>
31087
+ props.$isWarning && props.size === 'large' && `
31088
+ padding: 12px 24px;
31089
+ `}
30687
31090
  `;
30688
31091
 
30689
31092
  const ButtonText$1 = styled__default.default.span`
@@ -30763,28 +31166,29 @@ const Legend$1 = styled__default.default.legend`
30763
31166
  `;
30764
31167
 
30765
31168
  const LegendButton = styled__default.default.button`
30766
- position: relative;
30767
- background: none;
30768
- border: none;
30769
- color: ${(props) => props.theme.theme_vars.colours.action};
30770
- width: 100%;
30771
- white-space: normal;
30772
- cursor: pointer;
30773
- text-align: left;
30774
- padding-right: 30px;
30775
- padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
30776
- padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
30777
- ${(props) => props.theme.theme_vars.h4}
30778
- ${(props) => props.theme.linkStyles}
30779
- &:hover {
30780
- ${(props) => props.theme.linkStylesHover}
30781
- }
30782
- &:focus {
30783
- ${(props) => props.theme.linkStylesFocus}
30784
- }
30785
- &:active {
30786
- ${(props) => props.theme.linkStylesActive}
30787
- }
31169
+ position: relative;
31170
+ background: none;
31171
+ border: none;
31172
+ color: ${(props) => props.theme.theme_vars.colours.action};
31173
+ width: 100%;
31174
+ white-space: normal;
31175
+ cursor: pointer;
31176
+ text-align: left;
31177
+ padding-right: 30px;
31178
+ padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
31179
+ padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
31180
+ ${(props) => props.theme.theme_vars.h4}
31181
+ ${(props) => props.theme.linkStyles}
31182
+ &:hover {
31183
+ ${(props) => props.theme.linkStylesHover}
31184
+ }
31185
+ &:focus {
31186
+ ${(props) => props.theme.linkStylesFocus}
31187
+ }
31188
+ &:active {
31189
+ ${(props) => props.theme.linkStylesActive}
31190
+ }
31191
+ margin: 0;
30788
31192
  `;
30789
31193
 
30790
31194
  const AccordionIcon = styled__default.default.span`
@@ -30893,6 +31297,14 @@ const MapToggle = styled__default.default.button`
30893
31297
  &:active {
30894
31298
  ${(props) => props.theme.linkStylesActive}
30895
31299
  }
31300
+ ${(props) => {
31301
+ if (props.size === 'large') {
31302
+ return `
31303
+ font-size: 16px;
31304
+ padding: 14px 24px;
31305
+ `;
31306
+ }
31307
+ }}
30896
31308
  `;
30897
31309
 
30898
31310
  const Favourites = styled__default.default.a`
@@ -31098,24 +31510,24 @@ var RadioCheckboxInput = function (_a) {
31098
31510
  };
31099
31511
 
31100
31512
  var DirectoryServiceList = function (_a) {
31101
- var directoryPath = _a.directoryPath, shortListPath = _a.shortListPath, services = _a.services, _b = _a.search, search = _b === void 0 ? '' : _b, setSearch = _a.setSearch, _c = _a.postcode, postcode = _c === void 0 ? '' : _c, setPostcode = _a.setPostcode, _d = _a.totalResults, totalResults = _d === void 0 ? 0 : _d, _e = _a.pageNumber, pageNumber = _e === void 0 ? 1 : _e, setPageNumber = _a.setPageNumber, _f = _a.perPage, perPage = _f === void 0 ? 5 : _f, _g = _a.extractLength, extractLength = _g === void 0 ? 300 : _g, _h = _a.categories, categories = _h === void 0 ? [] : _h, setCategories = _a.setCategories, _j = _a.minimumAge, minimumAge = _j === void 0 ? undefined : _j, setMinimumAge = _a.setMinimumAge, _k = _a.maximumAge, maximumAge = _k === void 0 ? undefined : _k, setMaximumAge = _a.setMaximumAge, _l = _a.mapCenter, mapCenter = _l === void 0 ? '52.23555414368587,-0.8957390701320571' : _l, _m = _a.mapZoom, mapZoom = _m === void 0 ? 9 : _m, _o = _a.isLoading, isLoading = _o === void 0 ? false : _o, _p = _a.ageInMonths, ageInMonths = _p === void 0 ? false : _p, _q = _a.hasDocuments, hasDocuments = _q === void 0 ? false : _q;
31102
- var _r = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion"), []), accordions = _r[0], setAccordions = _r[1];
31103
- var _s = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion-all"), true), openAll = _s[0], setOpenAll = _s[1];
31104
- var _t = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-show-map"), false), showMap = _t[0], setShowMap = _t[1];
31105
- var _u = React.useState(false), showFilters = _u[0], setShowFilters = _u[1];
31106
- var _v = useDirectoryShortListContext(), _w = _v.favourites, favourites = _w.favourites; _w.setFavourites; _v.toggleFavourites; _v.isFavourite;
31107
- var _x = React.useState(false), notServer = _x[0], setNotServer = _x[1];
31108
- var _y = React.useState(search), searchTerm = _y[0], setSearchTerm = _y[1];
31109
- var _z = React.useState(postcode), postcodeSearch = _z[0], setPostcodeSearch = _z[1];
31513
+ var directoryPath = _a.directoryPath, shortListPath = _a.shortListPath, services = _a.services, _b = _a.search, search = _b === void 0 ? '' : _b, setSearch = _a.setSearch, _c = _a.proximity, proximity = _c === void 0 ? 2 : _c, _d = _a.showPostcodeSearch, showPostcodeSearch = _d === void 0 ? true : _d, _e = _a.postcode, postcode = _e === void 0 ? '' : _e, setPostcode = _a.setPostcode, _f = _a.totalResults, totalResults = _f === void 0 ? 0 : _f, _g = _a.pageNumber, pageNumber = _g === void 0 ? 1 : _g, setPageNumber = _a.setPageNumber, _h = _a.perPage, perPage = _h === void 0 ? 5 : _h, _j = _a.extractLength, extractLength = _j === void 0 ? 300 : _j, _k = _a.categories, categories = _k === void 0 ? [] : _k, setCategories = _a.setCategories, _l = _a.minimumAge, minimumAge = _l === void 0 ? undefined : _l, setMinimumAge = _a.setMinimumAge, _m = _a.maximumAge, maximumAge = _m === void 0 ? undefined : _m, setMaximumAge = _a.setMaximumAge, _o = _a.mapCenter, mapCenter = _o === void 0 ? '52.40410666556486,-0.7237065995821512' : _o, _p = _a.mapZoom, mapZoom = _p === void 0 ? 9 : _p, _q = _a.isLoading, isLoading = _q === void 0 ? false : _q, _r = _a.ageInMonths, ageInMonths = _r === void 0 ? false : _r, _s = _a.hasDocuments, hasDocuments = _s === void 0 ? false : _s, _t = _a.isError, isError = _t === void 0 ? false : _t;
31514
+ var _u = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion"), []), accordions = _u[0], setAccordions = _u[1];
31515
+ var _v = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion-all"), true), openAll = _v[0], setOpenAll = _v[1];
31516
+ var _w = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-show-map"), false), showMap = _w[0], setShowMap = _w[1];
31517
+ var _x = React.useState(false), showFilters = _x[0], setShowFilters = _x[1];
31518
+ var _y = useDirectoryShortListContext(), _z = _y.favourites, favourites = _z.favourites; _z.setFavourites; _y.toggleFavourites; _y.isFavourite;
31519
+ var _0 = React.useState(false), notServer = _0[0], setNotServer = _0[1];
31520
+ var _1 = React.useState(search), searchTerm = _1[0], setSearchTerm = _1[1];
31521
+ var _2 = React.useState(postcode), postcodeSearch = _2[0], setPostcodeSearch = _2[1];
31110
31522
  var themeContext = React.useContext(styled.ThemeContext);
31111
- var _0 = React.useState(false), filtersActive = _0[0], setFiltersActive = _0[1];
31523
+ var _3 = React.useState(false), filtersActive = _3[0], setFiltersActive = _3[1];
31112
31524
  React.useEffect(function () {
31113
31525
  setNotServer(true);
31114
31526
  setFiltersActive(hasActiveFilters());
31115
31527
  }, []);
31116
31528
  React.useEffect(function () {
31117
31529
  setFiltersActive(hasActiveFilters());
31118
- }, [minimumAge, maximumAge, categories]);
31530
+ }, [minimumAge, maximumAge, categories, search, postcode]);
31119
31531
  if (accordions.length === 0) {
31120
31532
  var tempAccordions_1 = [];
31121
31533
  categories === null || categories === void 0 ? void 0 : categories.forEach(function () {
@@ -31193,7 +31605,7 @@ var DirectoryServiceList = function (_a) {
31193
31605
  lat: parseFloat((_a = service.service_at_locations[0]) === null || _a === void 0 ? void 0 : _a.latitude),
31194
31606
  lng: parseFloat((_b = service.service_at_locations[0]) === null || _b === void 0 ? void 0 : _b.longitude),
31195
31607
  label: labelLetters[index],
31196
- title: "<a href=\"".concat(directoryPath, "/").concat(service.id, "\">").concat(service.name, "</a>"),
31608
+ title: "<a href=".concat(service.id, ">").concat(service.name, "</a>"),
31197
31609
  };
31198
31610
  }),
31199
31611
  };
@@ -31210,7 +31622,9 @@ var DirectoryServiceList = function (_a) {
31210
31622
  }
31211
31623
  };
31212
31624
  var hasActiveFilters = function () {
31213
- return (maximumAge !== '' ||
31625
+ return (search !== '' ||
31626
+ postcode !== '' ||
31627
+ maximumAge !== '' ||
31214
31628
  minimumAge !== '' ||
31215
31629
  categories.some(function (category) {
31216
31630
  return category.options.some(function (option) {
@@ -31226,21 +31640,23 @@ var DirectoryServiceList = function (_a) {
31226
31640
  React__default.default.createElement(Row$1, null,
31227
31641
  React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31228
31642
  React__default.default.createElement(Label$1, { htmlFor: "directorySearch" }, "What are you looking for?"),
31229
- React__default.default.createElement(HintText, { text: "Enter a search word or phrase" }),
31643
+ React__default.default.createElement(HintText, { text: "Enter the name of a specific organisation" }),
31230
31644
  React__default.default.createElement(Input, { name: "directorySearch", type: "text", defaultValue: searchTerm, id: "directorySearch", onChange: function (e) {
31231
31645
  setSearchTerm(e.target.value);
31232
31646
  } })),
31233
- React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31647
+ showPostcodeSearch && (React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31234
31648
  React__default.default.createElement(Label$1, { htmlFor: "postcode" }, "Postcode (optional)"),
31235
- React__default.default.createElement(HintText, { text: "Enter a postcode" }),
31236
- React__default.default.createElement(Input, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); }, autocomplete: "postal-code" })),
31649
+ React__default.default.createElement(HintText, { text: "Enter a postcode to see results within ".concat(proximity, " miles") }),
31650
+ React__default.default.createElement(Input, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); }, autocomplete: "postal-code" }))),
31237
31651
  React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31238
- React__default.default.createElement(ButtonContainer$1, null,
31239
- React__default.default.createElement(Button$1, { onClick: submitSearch, type: "submit" },
31652
+ React__default.default.createElement(ButtonContainer$2, null,
31653
+ React__default.default.createElement(Button$1, { size: "large", onClick: submitSearch, type: "submit" },
31240
31654
  React__default.default.createElement(ButtonText$1, null, "Search"),
31241
- React__default.default.createElement(IconDownload, { colourFill: "#fff" })))),
31655
+ React__default.default.createElement(IconDownload, { colourFill: "#fff" })),
31656
+ filtersActive && (React__default.default.createElement(Button$1, { size: "large", onClick: clearSearch, type: "button", "$isWarning": true },
31657
+ React__default.default.createElement(ButtonText$1, null, "Clear search"))))),
31242
31658
  hasDocuments && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
31243
- React__default.default.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false }))))))),
31659
+ React__default.default.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false, size: "large" }))))))),
31244
31660
  React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
31245
31661
  React__default.default.createElement(FilterToggle, { type: "button", onClick: function (e) { return setShowFilters(!showFilters); } }, showFilters ? "Hide Filters" : "Show Filters"),
31246
31662
  React__default.default.createElement(FilterContainer, { "$showFilters": showFilters },
@@ -31276,14 +31692,16 @@ var DirectoryServiceList = function (_a) {
31276
31692
  React__default.default.createElement(Legend$1, null,
31277
31693
  React__default.default.createElement(LegendButton, { onClick: function (e) { return toggleAccordion(categoryIndex + 1); }, type: "button" },
31278
31694
  category.label,
31279
- React__default.default.createElement(AccordionIcon, { isOpen: accordions[categoryIndex + 1] }))),
31695
+ React__default.default.createElement(AccordionIcon, { "$isOpen": accordions[categoryIndex + 1] }))),
31280
31696
  React__default.default.createElement(Accordion, { "$isOpen": accordions[categoryIndex + 1] },
31281
31697
  React__default.default.createElement(ClearFilter$1, null,
31282
31698
  React__default.default.createElement(TextLink$1, { onClick: function (e) { return clearCategory(categoryIndex); } }, "Clear filter")),
31283
31699
  category.options.map(function (taxonomy) { return (React__default.default.createElement(Category$2, { key: taxonomy.id },
31284
31700
  React__default.default.createElement(RadioCheckboxInput, { name: taxonomy.vocabulary, value: taxonomy.id, label: taxonomy.name, singleSelection: category.singleSelection, checked: taxonomy.checked, onChange: function (e) { return optionChecked(e, categoryIndex, category.singleSelection); } }))); }))))); })))))),
31285
31701
  React__default.default.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
31286
- React__default.default.createElement(Row$1, null, isLoading ? (React__default.default.createElement(LoadingContainer$1, null,
31702
+ React__default.default.createElement(Row$1, null, isError ? (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
31703
+ React__default.default.createElement(AlertBannerService, null,
31704
+ React__default.default.createElement("p", null, "Sorry, there was a problem fetching results. Please try again later.")))) : isLoading ? (React__default.default.createElement(LoadingContainer$1, null,
31287
31705
  React__default.default.createElement(LoadingSpinner, null),
31288
31706
  React__default.default.createElement("p", null, "Loading"))) : (React__default.default.createElement(React__default.default.Fragment, null,
31289
31707
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
@@ -31295,7 +31713,7 @@ var DirectoryServiceList = function (_a) {
31295
31713
  " out of ",
31296
31714
  totalResults.toLocaleString())) : (React__default.default.createElement(ResultInfo$1, null, "No results found")),
31297
31715
  React__default.default.createElement(FavouritesContainer, null,
31298
- (services === null || services === void 0 ? void 0 : services.length) > 0 && (React__default.default.createElement(MapToggle, { type: "button", onClick: function (e) { return setShowMap(!showMap); } }, showMap ? "Hide Map" : "Show Map")),
31716
+ (services === null || services === void 0 ? void 0 : services.length) > 0 && (React__default.default.createElement(MapToggle, { type: "button", size: "large", onClick: function (e) { return setShowMap(!showMap); } }, showMap ? "Hide Map" : "Show Map")),
31299
31717
  React__default.default.createElement(Favourites, { href: shortListPath },
31300
31718
  React__default.default.createElement(HeartIcon, { colourFill: themeContext.theme_vars.colours.action }),
31301
31719
  " Shortlist (",
@@ -31305,14 +31723,14 @@ var DirectoryServiceList = function (_a) {
31305
31723
  React__default.default.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber })),
31306
31724
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" }, notServer && React__default.default.createElement(React__default.default.Fragment, null, (services === null || services === void 0 ? void 0 : services.length) > 0 && showMap && React__default.default.createElement(DirectoryMap, { mapProps: mapProps }))),
31307
31725
  services.map(function (service, index) {
31308
- var _a, _b, _c, _d, _e, _f;
31726
+ var _a, _b, _c, _d, _e, _f, _g;
31309
31727
  var snippet = transformSnippet(service.description, extractLength);
31310
31728
  return (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", key: service.id },
31311
31729
  React__default.default.createElement(ServiceContainer, { "$resultNumber": index },
31312
31730
  React__default.default.createElement(Row$1, null,
31313
31731
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
31314
31732
  React__default.default.createElement(ServiceHeader, null,
31315
- React__default.default.createElement(ServiceLink$1, { href: "".concat(directoryPath, "/").concat(service.id) }, service.name),
31733
+ React__default.default.createElement(ServiceLink$1, { href: "".concat(service.id) }, service.name),
31316
31734
  showMap && (React__default.default.createElement(MarkerContainer, null,
31317
31735
  React__default.default.createElement("span", null, labelLetters[index]),
31318
31736
  React__default.default.createElement(PinIcon, { colourFill: themeContext.theme_vars.colours.action_dark }))))),
@@ -31328,7 +31746,9 @@ var DirectoryServiceList = function (_a) {
31328
31746
  ' ',
31329
31747
  transformAge(eligibility.maximum_age, ageInMonths))); })))),
31330
31748
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
31331
- React__default.default.createElement(DirectoryAddToShortList, { id: service.id, name: service.name, snippet: snippet, email: service.email, website: service.url, phone: (_f = (_e = (_d = service.contacts) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.phones) === null || _f === void 0 ? void 0 : _f.flatMap(function (phone) { return phone.number; }).join(', ') }))))));
31749
+ React__default.default.createElement(DirectoryAddToShortList, { id: service.id, name: service.name, snippet: snippet, email: service.email, website: service.url, phone: (_f = (_e = (_d = service.contacts) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.phones) === null || _f === void 0 ? void 0 : _f.flatMap(function (phone) { return phone.number; }).join(', '), addresses: (_g = service.service_at_locations) === null || _g === void 0 ? void 0 : _g.flatMap(function (location) {
31750
+ return location.physical_addresses;
31751
+ }), fees: service.fees }))))));
31332
31752
  }),
31333
31753
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
31334
31754
  React__default.default.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber })))))))));
@@ -31336,71 +31756,96 @@ var DirectoryServiceList = function (_a) {
31336
31756
 
31337
31757
  const Container$1 = styled__default.default.div`
31338
31758
  display: block;
31759
+
31760
+ @media print {
31761
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small} !important;
31762
+ [data-testid='Column'] {
31763
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.extra_small} !important;
31764
+ }
31765
+
31766
+ .favourite-outer:nth-of-type(2n + 1) {
31767
+ page-break-after: always;
31768
+ }
31769
+
31770
+ .favourite-outer:last-of-type {
31771
+ page-break-after: avoid !important;
31772
+ }
31773
+ }
31339
31774
  `;
31340
31775
 
31341
31776
  const ServiceLink = styled__default.default.a`
31342
- display: block;
31343
- margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
31344
- ${(props) => props.theme.theme_vars.h4}
31345
- ${(props) => props.theme.linkStyles}
31346
- &:hover {
31347
- ${(props) => props.theme.linkStylesHover}
31348
- }
31349
- &:focus {
31350
- ${(props) => props.theme.linkStylesFocus}
31351
- }
31352
- &:active {
31353
- ${(props) => props.theme.linkStylesActive}
31354
- }
31777
+ display: block;
31778
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
31779
+ ${(props) => props.theme.theme_vars.h4}
31780
+ ${(props) => props.theme.linkStyles}
31781
+ &:hover {
31782
+ ${(props) => props.theme.linkStylesHover}
31783
+ }
31784
+ &:focus {
31785
+ ${(props) => props.theme.linkStylesFocus}
31786
+ }
31787
+ &:active {
31788
+ ${(props) => props.theme.linkStylesActive}
31789
+ }
31355
31790
 
31356
- @media print {
31357
- color: ${(props) => props.theme.theme_vars.colours.black} !important;
31358
- text-decoration: none !important;
31359
- }
31791
+ @media print {
31792
+ color: ${(props) => props.theme.theme_vars.colours.black} !important;
31793
+ text-decoration: none !important;
31794
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
31795
+ margin-bottom: 0;
31796
+ }
31360
31797
  `;
31361
31798
 
31362
31799
  const PrintLink = styled__default.default.div`
31363
- p {
31364
- display: none;
31365
- }
31366
-
31367
- @media print {
31368
31800
  p {
31369
- display: block;
31801
+ display: none;
31802
+ }
31803
+
31804
+ @media print {
31805
+ p {
31806
+ display: none;
31807
+ margin-bottom: 0 !important;
31808
+ }
31370
31809
  }
31810
+ `;
31811
+
31812
+ const SnippetContainer = styled__default.default.div`
31813
+ @media print {
31814
+ display: flex;
31815
+ flex-wrap: nowrap;
31371
31816
  }
31372
31817
  `;
31373
31818
 
31374
31819
  const QRCodeContainer = styled__default.default.div`
31375
- max-width: 80px;
31376
- margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
31377
- display: none;
31378
- float: right;
31820
+ max-width: 80px;
31821
+ display: none;
31379
31822
 
31380
- @media print {
31381
- display: block;
31382
- }
31823
+ @media print {
31824
+ display: block;
31825
+ margin-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
31826
+ }
31383
31827
  `;
31384
31828
 
31385
31829
  const FavouriteContainer = styled__default.default.div`
31386
- background: ${(props) =>
31387
- props.theme.cardinal_name === 'north'
31388
- ? props.theme.theme_vars.colours.white
31389
- : props.theme.theme_vars.colours.grey_light};
31390
- box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
31391
- transition: box-shadow 0.3s ease;
31392
- border-bottom: 5px solid ${(props) => props.theme.theme_vars.colours.action};
31393
- border-radius: ${(props) => props.theme.theme_vars.border_radius};
31394
- padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31830
+ background: ${(props) =>
31831
+ props.theme.cardinal_name === 'north'
31832
+ ? props.theme.theme_vars.colours.white
31833
+ : props.theme.theme_vars.colours.grey_light};
31834
+ box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
31835
+ transition: box-shadow 0.3s ease;
31836
+ border-bottom: 5px solid ${(props) => props.theme.theme_vars.colours.action};
31837
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
31838
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31395
31839
 
31396
- @media print {
31397
- box-shadow: none;
31398
- border: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
31399
- background: none;
31400
- }
31840
+ @media print {
31841
+ box-shadow: none;
31842
+ border: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
31843
+ background: none;
31844
+ padding: 0 ${(props) => props.theme.theme_vars.spacingSizes.small};
31845
+ }
31401
31846
  `;
31402
31847
 
31403
- const PrintContainer = styled__default.default.div`
31848
+ const ButtonContainer$1 = styled__default.default.div`
31404
31849
  display: flex;
31405
31850
  justify-content: flex-end;
31406
31851
 
@@ -31409,7 +31854,7 @@ const PrintContainer = styled__default.default.div`
31409
31854
  }
31410
31855
  `;
31411
31856
 
31412
- const PrintButton = styled__default.default.button`
31857
+ const ActionButton = styled__default.default.button`
31413
31858
  border: 2px solid ${(props) => props.theme.theme_vars.colours.action};
31414
31859
  border-radius: ${(props) => props.theme.theme_vars.border_radius};
31415
31860
  background: ${(props) => props.theme.theme_vars.colours.action};
@@ -31421,6 +31866,7 @@ const PrintButton = styled__default.default.button`
31421
31866
  flex-direction: row;
31422
31867
  justify-content: flex-start;
31423
31868
  align-items: center;
31869
+ margin-left: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31424
31870
  &:hover {
31425
31871
  ${(props) => props.theme.linkStylesHover}
31426
31872
  color: ${(props) => props.theme.theme_vars.colours.white};
@@ -31443,6 +31889,53 @@ const AddContainer = styled__default.default.div`
31443
31889
  }
31444
31890
  `;
31445
31891
 
31892
+ const SubTitle = styled__default.default.p`
31893
+ font-weight: bold;
31894
+ margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31895
+ `;
31896
+
31897
+ const ClearShortlistButton = styled__default.default.button`
31898
+ border: 1px solid ${(props) => props.theme.theme_vars.colours.negative};
31899
+ background: ${(props) => props.theme.theme_vars.colours.white};
31900
+ color: ${(props) => props.theme.theme_vars.colours.negative};
31901
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
31902
+ cursor: pointer;
31903
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
31904
+ min-height: 42px;
31905
+ font-weight: bold;
31906
+
31907
+ &:hover {
31908
+ background: ${(props) => props.theme.theme_vars.colours.action_light};
31909
+ color: ${(props) => props.theme.theme_vars.colours.action_dark};
31910
+ text-decoration: underline;
31911
+ text-decoration-style: dotted;
31912
+ }
31913
+
31914
+ &:focus {
31915
+ ${(props) => props.theme.linkStylesFocus}
31916
+ }
31917
+
31918
+ &:active {
31919
+ ${(props) => props.theme.linkStylesActive}
31920
+ }
31921
+ `;
31922
+
31923
+ const AddressContainer = styled__default.default.div`
31924
+ display: block;
31925
+
31926
+ @media print {
31927
+ display: none;
31928
+ }
31929
+ `;
31930
+
31931
+ const PrintAddress = styled__default.default.div`
31932
+ display: none;
31933
+
31934
+ @media print {
31935
+ display: block;
31936
+ }
31937
+ `;
31938
+
31446
31939
  var lib = {};
31447
31940
 
31448
31941
  var mode$1 = {
@@ -32802,32 +33295,82 @@ QRCode.defaultProps = defaultProps;
32802
33295
  var _default = lib.default = QRCode;
32803
33296
 
32804
33297
  var DirectoryShortList = function (_a) {
32805
- var directoryPath = _a.directoryPath;
32806
- var favourites = useDirectoryShortListContext().favourites.favourites;
32807
- var _b = React.useState(false), notServer = _b[0], setNotServer = _b[1];
33298
+ _a.directoryPath;
33299
+ var _b = useDirectoryShortListContext(), favourites = _b.favourites.favourites, clearShortlist = _b.clearShortlist;
33300
+ var _c = React.useState(false), notServer = _c[0], setNotServer = _c[1];
32808
33301
  React.useEffect(function () {
32809
33302
  setNotServer(true);
32810
33303
  }, []);
33304
+ var confirmClear = function () {
33305
+ if (window.confirm('Are you sure you want to clear your shortlist?')) {
33306
+ clearShortlist();
33307
+ }
33308
+ };
33309
+ var formatAddress = function (address) {
33310
+ return Object.values(address)
33311
+ .filter(function (item) { return item !== '' && item !== address.id && item !== address.country; })
33312
+ .join(', ');
33313
+ };
33314
+ var copyToClipboard = function () { return __awaiter(void 0, void 0, void 0, function () {
33315
+ var data;
33316
+ return __generator(this, function (_b) {
33317
+ switch (_b.label) {
33318
+ case 0:
33319
+ data = favourites.map(function (favourite) {
33320
+ var _a, _b, _c, _d;
33321
+ var address = favourite.addresses.length > 0 ? formatAddress(favourite.addresses[0]) : '';
33322
+ return "\nName: ".concat(favourite.name, "\nLink: ").concat(favourite.id, "\nAddress: ").concat(address, "\nEmail: ").concat((_a = favourite.email) !== null && _a !== void 0 ? _a : '', "\nWebsite: ").concat((_b = favourite.website) !== null && _b !== void 0 ? _b : '', "\nTelephone: ").concat((_c = favourite.phone) !== null && _c !== void 0 ? _c : '', "\nAbout: ").concat((_d = favourite.snippet.replace(/(\r\n|\n|\r)/gm, '').replace(/\s+/g, ' ')) !== null && _d !== void 0 ? _d : '', "\n\n ");
33323
+ });
33324
+ _b.label = 1;
33325
+ case 1:
33326
+ _b.trys.push([1, 3, , 4]);
33327
+ return [4 /*yield*/, navigator.clipboard.writeText(data.join('')).then(function () {
33328
+ window.alert('Copied to clipboard');
33329
+ })];
33330
+ case 2:
33331
+ _b.sent();
33332
+ return [3 /*break*/, 4];
33333
+ case 3:
33334
+ _b.sent();
33335
+ window.alert('Unable to copy');
33336
+ return [3 /*break*/, 4];
33337
+ case 4: return [2 /*return*/];
33338
+ }
33339
+ });
33340
+ }); };
32811
33341
  return (React__default.default.createElement(Container$1, { "data-testid": "DirectoryShortList" }, notServer && (React__default.default.createElement(Row$1, null, favourites.length > 0 ? (React__default.default.createElement(React__default.default.Fragment, null,
32812
33342
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
32813
- React__default.default.createElement(PrintContainer, null,
32814
- React__default.default.createElement(PrintButton, { onClick: function () { return window.print(); } }, "Print Shortlist"))),
32815
- favourites.map(function (favourite) { return (React__default.default.createElement(Column, { key: favourite.id, small: "full", medium: "full", large: "full" },
32816
- React__default.default.createElement(FavouriteContainer, null,
32817
- React__default.default.createElement(Row$1, null,
32818
- React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
32819
- React__default.default.createElement(QRCodeContainer, null,
32820
- React__default.default.createElement(_default, { value: "".concat(directoryPath, "/").concat(favourite.id), size: 256, style: { height: 'auto', maxWidth: '100%', width: '100%' }, viewBox: "0 0 256 256" })),
32821
- React__default.default.createElement(ServiceLink, { href: "".concat(directoryPath, "/").concat(favourite.id) }, favourite.name),
32822
- React__default.default.createElement(PrintLink, null,
32823
- React__default.default.createElement("p", null, "".concat(directoryPath, "/").concat(favourite.id)))),
32824
- React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-half" },
32825
- React__default.default.createElement("div", null, favourite.snippet)),
32826
- React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-half" },
32827
- React__default.default.createElement(SummaryList, { terms: transformService(favourite.email, favourite.website, favourite.phone), hasMargin: false })),
32828
- React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
32829
- React__default.default.createElement(AddContainer, null,
32830
- React__default.default.createElement(DirectoryAddToShortList, { id: favourite.id, name: favourite.name, snippet: favourite.snippet, email: favourite.email, website: favourite.website, phone: favourite.phone }))))))); }))) : (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
33343
+ React__default.default.createElement(ButtonContainer$1, null,
33344
+ React__default.default.createElement(ClearShortlistButton, { onClick: confirmClear }, "Clear Shortlist"),
33345
+ React__default.default.createElement(ActionButton, { onClick: copyToClipboard }, "Copy To Clipboard"),
33346
+ React__default.default.createElement(ActionButton, { onClick: function () { return window.print(); } }, "Print Shortlist"))),
33347
+ favourites.map(function (favourite) {
33348
+ var _a, _b;
33349
+ return (React__default.default.createElement(Column, { key: favourite.id, small: "full", medium: "full", large: "full", classes: "favourite-outer" },
33350
+ React__default.default.createElement(FavouriteContainer, null,
33351
+ React__default.default.createElement(Row$1, null,
33352
+ React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
33353
+ React__default.default.createElement(ServiceLink, { href: "".concat(favourite.id) }, favourite.name),
33354
+ React__default.default.createElement(PrintLink, null,
33355
+ React__default.default.createElement("p", null, "".concat(favourite.id)))),
33356
+ React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-half" },
33357
+ React__default.default.createElement(SnippetContainer, null,
33358
+ React__default.default.createElement("div", null, favourite.snippet),
33359
+ React__default.default.createElement(QRCodeContainer, null,
33360
+ React__default.default.createElement(_default, { value: "".concat(favourite.id), size: 256, style: { height: 'auto', maxWidth: '100%', width: '100%' }, viewBox: "0 0 256 256" }))),
33361
+ ((_a = favourite.addresses) === null || _a === void 0 ? void 0 : _a.length) > 0 && (React__default.default.createElement(React__default.default.Fragment, null,
33362
+ React__default.default.createElement(AddressContainer, null,
33363
+ React__default.default.createElement(SubTitle, null, "Address"),
33364
+ ((_b = favourite.addresses) === null || _b === void 0 ? void 0 : _b.length) === 1 ? (React__default.default.createElement("p", null, formatAddress(favourite.addresses[0]))) : (React__default.default.createElement("ul", null, favourite.addresses.map(function (address) { return (React__default.default.createElement("li", { key: address.id }, formatAddress(address))); })))),
33365
+ React__default.default.createElement(PrintAddress, null,
33366
+ React__default.default.createElement(SummaryList, { terms: [{ term: 'Address', detail: formatAddress(favourite.addresses[0]) }], hasMargin: false }))))),
33367
+ React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-half" },
33368
+ React__default.default.createElement(SummaryList, { terms: transformService(favourite.email, favourite.website, favourite.phone), hasMargin: false }),
33369
+ favourite.fees && (React__default.default.createElement(SummaryList, { terms: [{ term: 'Cost', detail: favourite.fees }], hasMargin: false }))),
33370
+ React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
33371
+ React__default.default.createElement(AddContainer, null,
33372
+ React__default.default.createElement(DirectoryAddToShortList, { id: favourite.id, name: favourite.name, snippet: favourite.snippet, email: favourite.email, website: favourite.website, phone: favourite.phone, addresses: favourite.addresses })))))));
33373
+ }))) : (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
32831
33374
  React__default.default.createElement(FavouriteContainer, null,
32832
33375
  React__default.default.createElement("p", null, "No items in the shortlist"))))))));
32833
33376
  };
@@ -32962,8 +33505,8 @@ const LoadingContainer = styled__default.default.div`
32962
33505
  `;
32963
33506
 
32964
33507
  var DirectoryDocumentList = function (_a) {
32965
- var directoryPath = _a.directoryPath, documents = _a.documents, _b = _a.search, search = _b === void 0 ? '' : _b, setSearch = _a.setSearch, _c = _a.totalResults, totalResults = _c === void 0 ? 0 : _c, _d = _a.pageNumber, pageNumber = _d === void 0 ? 1 : _d, setPageNumber = _a.setPageNumber, _e = _a.perPage, perPage = _e === void 0 ? 10 : _e, categories = _a.categories, setCategories = _a.setCategories, _f = _a.isLoading, isLoading = _f === void 0 ? false : _f;
32966
- var _g = React.useState(search), searchTerm = _g[0], setSearchTerm = _g[1];
33508
+ var directoryPath = _a.directoryPath, documents = _a.documents, _b = _a.search, search = _b === void 0 ? '' : _b, setSearch = _a.setSearch, _c = _a.totalResults, totalResults = _c === void 0 ? 0 : _c, _d = _a.pageNumber, pageNumber = _d === void 0 ? 1 : _d, setPageNumber = _a.setPageNumber, _e = _a.perPage, perPage = _e === void 0 ? 10 : _e, categories = _a.categories, setCategories = _a.setCategories, _f = _a.isLoading, isLoading = _f === void 0 ? false : _f, _g = _a.isError, isError = _g === void 0 ? false : _g;
33509
+ var _h = React.useState(search), searchTerm = _h[0], setSearchTerm = _h[1];
32967
33510
  var submitSearch = function (e) {
32968
33511
  e.preventDefault();
32969
33512
  setSearch(searchTerm);
@@ -33002,7 +33545,7 @@ var DirectoryDocumentList = function (_a) {
33002
33545
  React__default.default.createElement(Row$1, null,
33003
33546
  React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
33004
33547
  React__default.default.createElement(Label, { htmlFor: "directorySearch" }, "What are you looking for?"),
33005
- React__default.default.createElement(HintText, { text: "Enter a search word or phrase" }),
33548
+ React__default.default.createElement(HintText, { text: "Enter the name of a specific organisation" }),
33006
33549
  React__default.default.createElement(Input, { name: "directorySearch", type: "text", defaultValue: searchTerm, id: "directorySearch", onChange: function (e) {
33007
33550
  setSearchTerm(e.target.value);
33008
33551
  } })),
@@ -33026,7 +33569,9 @@ var DirectoryDocumentList = function (_a) {
33026
33569
  React__default.default.createElement(RadioCheckboxInput, { name: taxonomy.vocabulary, value: taxonomy.id, label: taxonomy.name, singleSelection: category.singleSelection, checked: taxonomy.checked, onChange: function (e) { return optionChecked(e, categoryIndex, category.singleSelection); } }))); })))); }))),
33027
33570
  React__default.default.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
33028
33571
  React__default.default.createElement(Row$1, null,
33029
- isLoading ? (React__default.default.createElement(LoadingContainer, null,
33572
+ isError ? (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
33573
+ React__default.default.createElement(AlertBannerService, null,
33574
+ React__default.default.createElement("p", null, "Sorry, there was a problem fetching results. Please try again later.")))) : isLoading ? (React__default.default.createElement(LoadingContainer, null,
33030
33575
  React__default.default.createElement(LoadingSpinner, null),
33031
33576
  React__default.default.createElement("p", null, "Loading"))) : (React__default.default.createElement(React__default.default.Fragment, null,
33032
33577
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" }, (documents === null || documents === void 0 ? void 0 : documents.length) > 0 ? (React__default.default.createElement(ResultInfo, null,
@@ -33106,6 +33651,7 @@ exports.PromoBanner = PromoBanner;
33106
33651
  exports.PromoBlock = PromoBlock;
33107
33652
  exports.PromotedLinks = PromotedLinks;
33108
33653
  exports.Promotions = Promotions;
33654
+ exports.RoadworksList = RoadworksList;
33109
33655
  exports.SearchBox = SearchBox;
33110
33656
  exports.SearchResultsList = SearchResultsList;
33111
33657
  exports.Searchbar = Searchbar;