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

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 (552) hide show
  1. package/build/ThemeVars.types.d.ts +60 -0
  2. package/build/index.d.ts +42 -42
  3. package/build/index.js +590 -190
  4. package/build/index.js.map +1 -1
  5. package/build/index.mjs.js +590 -190
  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/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.types.d.ts +9 -0
  537. package/build/src/library/directory/DirectoryDocumentList/DirectoryDocumentList.types.d.ts +4 -0
  538. package/build/src/library/directory/DirectoryService/DirectoryService.storydata.d.ts +1 -0
  539. package/build/src/library/directory/DirectoryService/DirectoryService.types.d.ts +4 -0
  540. package/build/src/library/directory/DirectoryService/DirectoryServiceTransform.d.ts +1 -1
  541. package/build/src/library/directory/DirectoryService/DirectoryServiceTransform.test.d.ts +1 -0
  542. package/build/src/library/directory/DirectoryServiceList/DirectoryServiceList.types.d.ts +12 -0
  543. package/build/src/library/directory/ServiceContact/ServiceContact.types.d.ts +4 -0
  544. package/build/src/library/slices/InquestSchedule/InquestSchedule.storydata.d.ts +1 -0
  545. package/build/src/library/slices/InquestSchedule/InquestSchedule.types.d.ts +5 -0
  546. package/build/src/library/slices/RoadworksList/RoadworksList.d.ts +7 -0
  547. package/build/src/library/slices/RoadworksList/RoadworksList.storydata.d.ts +4 -0
  548. package/build/src/library/slices/RoadworksList/RoadworksList.test.d.ts +1 -0
  549. package/build/src/library/slices/RoadworksList/RoadworksList.types.d.ts +48 -0
  550. package/build/src/library/structure/HeroImage/HeroImage.types.d.ts +6 -2
  551. package/build/themes/ThemeVars.types.d.ts +60 -0
  552. package/package.json +1 -1
@@ -6677,10 +6677,14 @@ var MapMarker = function (options) {
6677
6677
  anchor: new google.maps.Point(40, 60),
6678
6678
  labelOrigin: new google.maps.Point(21, 25),
6679
6679
  };
6680
- var mergedOptions = __assign$2(__assign$2({}, options), { anchorPoint: new google.maps.Point(-5, -40), icon: icon, label: {
6681
- text: typeof options.label === 'string' ? options.label : options.label.text,
6682
- color: 'white',
6683
- }, position: options.position, title: options.title });
6680
+ 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 ?
6681
+ (typeof options.label === 'string' ?
6682
+ { text: options.label, color: '#FFFFFF' } : __assign$2(__assign$2({}, options.label), { color: '#FFFFFF' })) : undefined });
6683
+ for (var key in options) {
6684
+ if (key !== 'label' && Object.prototype.hasOwnProperty.call(options, key)) {
6685
+ mergedOptions[key] = options[key];
6686
+ }
6687
+ }
6684
6688
  React.useEffect(function () {
6685
6689
  if (!marker) {
6686
6690
  setMarker(new google.maps.Marker());
@@ -7950,6 +7954,8 @@ const Container$_ = styled.div`
7950
7954
  width: 100%;
7951
7955
  display: block;
7952
7956
  box-sizing: border-box;
7957
+ position: sticky;
7958
+ z-index: 1;
7953
7959
  `;
7954
7960
 
7955
7961
  const CookieHide = styled.button`
@@ -8143,7 +8149,7 @@ var CookieBanner = function (_a) {
8143
8149
  // on page load - look for a cookie
8144
8150
  useEffect(function () {
8145
8151
  checkCookie();
8146
- });
8152
+ }, []);
8147
8153
  var _d = useState(false), showCookieBanner = _d[0], setShowCookieBanner = _d[1];
8148
8154
  var _e = useState(false), showCookiesRejectedBanner = _e[0], setShowCookiesRejectedBanner = _e[1];
8149
8155
  var _f = useState(false), showCookiesAcceptedBanner = _f[0], setShowCookiesAcceptedBanner = _f[1];
@@ -22878,7 +22884,7 @@ const InnerContainer$2 = styled.div`
22878
22884
  */
22879
22885
  var AlertBannerService = function (_a) {
22880
22886
  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;
22881
- return (React.createElement(Container$L, { "$alertType": alertType, "data-testid": "AlertBannerService", hasTopSpacing: hasTopSpacing },
22887
+ return (React.createElement(Container$L, { "$alertType": alertType, "data-testid": "AlertBannerService", "$hasTopSpacing": hasTopSpacing },
22882
22888
  React.createElement(InnerContainer$2, { "data-testid": "AlertBannerServiceInner" },
22883
22889
  (title === null || title === void 0 ? void 0 : title.trim()) && React.createElement(Heading, { text: title }),
22884
22890
  children)));
@@ -23640,8 +23646,46 @@ var ImageAndText = function (_a) {
23640
23646
  React.createElement(Content$5, { dangerouslySetInnerHTML: { __html: sanitizeHtml$1(textContent) } }))))));
23641
23647
  };
23642
23648
 
23649
+ var CaseAppointmentType;
23650
+ (function (CaseAppointmentType) {
23651
+ CaseAppointmentType["Hearing"] = "hearing";
23652
+ CaseAppointmentType["Opening"] = "opening";
23653
+ CaseAppointmentType["Writing"] = "writing";
23654
+ })(CaseAppointmentType || (CaseAppointmentType = {}));
23655
+
23643
23656
  const Container$I = styled.div`
23644
23657
  display: block;
23658
+ box-sizing: border-box;
23659
+ `;
23660
+
23661
+ const GroupContainer = styled.div`
23662
+ display: flex;
23663
+ flex-direction: column;
23664
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.large};
23665
+ `;
23666
+
23667
+ const InquestContainer = styled.div`
23668
+ display: flex;
23669
+ flex-direction: row;
23670
+ align-items: flex-start;
23671
+ justify-content: flex-start;
23672
+ flex-wrap: wrap;
23673
+
23674
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
23675
+ flex-wrap: nowrap;
23676
+ }
23677
+ `;
23678
+
23679
+ const InquestTime = styled.div`
23680
+ flex-grow: 0;
23681
+ flex-shrink: 0;
23682
+ `;
23683
+
23684
+ const InquestDetails = styled.div`
23685
+ flex-grow: 1;
23686
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
23687
+ padding-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
23688
+ }
23645
23689
  `;
23646
23690
 
23647
23691
  /**
@@ -23649,32 +23693,100 @@ const Container$I = styled.div`
23649
23693
  */
23650
23694
  var InquestSchedule = function (_a) {
23651
23695
  var caseAppointments = _a.caseAppointments, title = _a.title, _b = _a.error, error = _b === void 0 ? false : _b;
23696
+ var hearings = caseAppointments.filter(function (appointment) {
23697
+ return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Hearing);
23698
+ });
23699
+ var openings = caseAppointments.filter(function (appointment) {
23700
+ return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Opening);
23701
+ });
23702
+ var writings = caseAppointments.filter(function (appointment) {
23703
+ return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Writing);
23704
+ });
23705
+ var groupHearingsByDay = function (appointments) {
23706
+ return appointments.reduce(function (acc, inquest) {
23707
+ var inquestDate = new Date(inquest.startDateTime);
23708
+ var inquestISODay = inquestDate.toISOString().substring(0, 10);
23709
+ if (!acc[inquestISODay]) {
23710
+ acc[inquestISODay] = [];
23711
+ }
23712
+ acc[inquestISODay].push(inquest);
23713
+ return acc;
23714
+ }, {});
23715
+ };
23716
+ var hearingDayGrouped = groupHearingsByDay(hearings);
23717
+ var openingDayGrouped = groupHearingsByDay(openings);
23718
+ var writingDayGrouped = groupHearingsByDay(writings);
23719
+ var formatDate = function (inquestDay) {
23720
+ return inquestDay
23721
+ .toLocaleDateString('en-GB', {
23722
+ weekday: 'long',
23723
+ day: 'numeric',
23724
+ month: 'long',
23725
+ year: 'numeric',
23726
+ })
23727
+ .replace(',', '');
23728
+ };
23729
+ var formatTime = function (inquestDate) {
23730
+ return inquestDate.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
23731
+ };
23732
+ var transformToSections = function (groupedData) {
23733
+ return Object.keys(groupedData).map(function (day) {
23734
+ var inquestDayDate = new Date(day);
23735
+ return {
23736
+ title: formatDate(inquestDayDate),
23737
+ content: (React.createElement(Row$1, null, groupedData[day]
23738
+ .sort(function (a, b) {
23739
+ return new Date(a.startDateTime).getTime() - new Date(b.startDateTime).getTime();
23740
+ })
23741
+ .map(function (inquest, key) {
23742
+ var startDateTime = new Date(inquest.startDateTime);
23743
+ var timeOfDeath = new Date(inquest.dateTimeOfDeath);
23744
+ return (React.createElement(Column, { small: "full", medium: "full", large: "full", key: key },
23745
+ React.createElement(InquestContainer, null,
23746
+ React.createElement(InquestTime, null,
23747
+ React.createElement("strong", null, formatTime(startDateTime))),
23748
+ React.createElement(InquestDetails, null,
23749
+ React.createElement("strong", null, "Name:"),
23750
+ " ",
23751
+ inquest.fullName,
23752
+ ".",
23753
+ React.createElement("br", null),
23754
+ React.createElement("strong", null, "Died:"),
23755
+ " ",
23756
+ formatDate(timeOfDeath),
23757
+ " at ",
23758
+ inquest.placeOfDeath,
23759
+ ". Aged ",
23760
+ inquest.age,
23761
+ ' ',
23762
+ "years.",
23763
+ React.createElement("br", null),
23764
+ React.createElement("strong", null, "Court location:"),
23765
+ " ",
23766
+ inquest.courtroomFullAddress,
23767
+ ".",
23768
+ React.createElement("br", null),
23769
+ React.createElement("strong", null, "Coroner:"),
23770
+ " ",
23771
+ inquest.coroner,
23772
+ "."))));
23773
+ }))),
23774
+ };
23775
+ });
23776
+ };
23652
23777
  return (React.createElement(Container$I, { "data-testid": "InquestSchedule" },
23653
- React.createElement("div", { className: "table-container" },
23654
- React.createElement("table", null,
23655
- React.createElement("caption", null, title),
23656
- React.createElement("thead", null,
23657
- React.createElement("tr", null,
23658
- React.createElement("th", { scope: "col" }, "Name"),
23659
- React.createElement("th", { scope: "col" }, "Age"),
23660
- React.createElement("th", { scope: "col" }, "Place of death"),
23661
- React.createElement("th", { scope: "col" }, "Date of death"),
23662
- React.createElement("th", { scope: "col" }, "Name of coroner"),
23663
- React.createElement("th", { scope: "col" }, "Location"),
23664
- React.createElement("th", { scope: "col" }, "Date and time"))),
23665
- React.createElement("tbody", null,
23666
- caseAppointments.map(function (item, index) { return (React.createElement("tr", { key: index },
23667
- React.createElement("td", null, item.fullName),
23668
- React.createElement("td", null, item.age),
23669
- React.createElement("td", null, item.placeOfDeath),
23670
- React.createElement("td", null, new Date(item.dateTimeOfDeath).toLocaleString('en-GB')),
23671
- React.createElement("td", null, item.coroner),
23672
- React.createElement("td", null, item.courtroomFullAddress),
23673
- React.createElement("td", null, new Date(item.startDateTime).toLocaleString('en-GB')))); }),
23674
- caseAppointments.length === 0 && (React.createElement("tr", null,
23675
- React.createElement("td", { colSpan: 7 },
23676
- React.createElement("p", null, "We can't find any results at the moment."),
23677
- error ? (React.createElement("p", null, " The information is currently unavailable.")) : (React.createElement("p", null, "There are no inquests scheduled for next month."))))))))));
23778
+ Object.keys(hearingDayGrouped).length > 0 && (React.createElement(GroupContainer, null,
23779
+ React.createElement(Heading, { level: 2, text: title }),
23780
+ React.createElement(Accordion$1, { sections: transformToSections(hearingDayGrouped) }))),
23781
+ Object.keys(openingDayGrouped).length > 0 && (React.createElement(GroupContainer, null,
23782
+ React.createElement(Heading, { level: 2, text: "Inquest Openings" }),
23783
+ React.createElement(Accordion$1, { sections: transformToSections(openingDayGrouped) }))),
23784
+ Object.keys(writingDayGrouped).length > 0 && (React.createElement(GroupContainer, null,
23785
+ React.createElement(Heading, { level: 2, text: "Inquests in Writing" }),
23786
+ React.createElement(Accordion$1, { sections: transformToSections(writingDayGrouped) }))),
23787
+ caseAppointments.length === 0 && (React.createElement("div", null,
23788
+ React.createElement("p", null, "We can't find any results at the moment."),
23789
+ error ? (React.createElement("p", null, " The information is currently unavailable.")) : (React.createElement("p", null, "There are no inquests scheduled for next month."))))));
23678
23790
  };
23679
23791
 
23680
23792
  const Container$H = styled.div`
@@ -24136,7 +24248,7 @@ var VideoProvider;
24136
24248
  VideoProvider["Vimeo"] = "Vimeo";
24137
24249
  })(VideoProvider || (VideoProvider = {}));
24138
24250
 
24139
- const VideoContainer = styled.figure`
24251
+ const VideoContainer$1 = styled.figure`
24140
24252
  display: block;
24141
24253
  padding-top: 56.25%;
24142
24254
  position: relative;
@@ -24196,7 +24308,7 @@ var Video = function (_a) {
24196
24308
  useEffect(function () {
24197
24309
  setNotServer(true);
24198
24310
  }, []);
24199
- return (React.createElement(React.Fragment, null, cookiesAccepted && notServer ? (React.createElement(VideoContainer, { "data-testid": "Video" },
24311
+ return (React.createElement(React.Fragment, null, cookiesAccepted && notServer ? (React.createElement(VideoContainer$1, { "data-testid": "Video" },
24200
24312
  React.createElement("iframe", { src: embedLink, title: description, allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen;", "data-testid": "VideoIframe" }))) : (React.createElement(VideoLink, { href: watchLink, title: description, "data-testid": "VideoLink" }, description))));
24201
24313
  };
24202
24314
 
@@ -25065,6 +25177,17 @@ const FooterLink = styled.a`
25065
25177
  -webkit-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25066
25178
  -moz-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25067
25179
  }
25180
+ &:focus:not(:focus-visible) {
25181
+ box-shadow: none;
25182
+ -webkit-box-shadow: none;
25183
+ -moz-box-shadow: none;
25184
+ }
25185
+ &:focus-visible {
25186
+ ${(props) => props.theme.linkStylesFocus}
25187
+ box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25188
+ -webkit-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25189
+ -moz-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25190
+ }
25068
25191
  &:active {
25069
25192
  ${(props) => props.theme.linkStylesActive}
25070
25193
  box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
@@ -25227,6 +25350,8 @@ const headerThemeStyles = (props) => {
25227
25350
  const Container$w = styled.header`
25228
25351
  font-family: ${(props) => props.theme.theme_vars.fontstack};
25229
25352
  padding: 3px 0;
25353
+ position: sticky;
25354
+ z-index: 1;
25230
25355
  ${headerThemeStyles}
25231
25356
  `;
25232
25357
 
@@ -25619,9 +25744,19 @@ var Header = function (_a) {
25619
25744
  * Optimised for an image in 16:5 ratio on all but small width screens
25620
25745
  */
25621
25746
  const Container$u = styled.div`
25622
- background-image: ${(props) =>
25623
- !props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)),` : ``}
25624
- url('${(props) => props.$image}');
25747
+ background-image: ${(props) => {
25748
+ const gradient = !props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75))` : '';
25749
+ const imageUrl = props.$image && props.$image.trim() ? `url('${props.$image}')` : '';
25750
+ if (gradient && imageUrl) {
25751
+ return `${gradient}, ${imageUrl}`;
25752
+ } else if (gradient) {
25753
+ return gradient;
25754
+ } else if (imageUrl) {
25755
+ return imageUrl;
25756
+ } else {
25757
+ return 'none';
25758
+ }
25759
+ }};
25625
25760
 
25626
25761
  padding-bottom: 10px;
25627
25762
  background-position: center;
@@ -25652,6 +25787,7 @@ const InnerContainer = styled.div`
25652
25787
  margin-right: auto;
25653
25788
  margin-left: auto;
25654
25789
  flex-grow: 1;
25790
+ z-index: 1;
25655
25791
 
25656
25792
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25657
25793
  max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
@@ -25773,16 +25909,95 @@ const Search = styled.div`
25773
25909
  margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
25774
25910
  `;
25775
25911
 
25912
+ const VideoContainer = styled.div`
25913
+ position: absolute;
25914
+ width: 100%;
25915
+ @media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
25916
+ height: 580px;
25917
+ }
25918
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25919
+ height: 410px;
25920
+ }
25921
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25922
+ height: 560px;
25923
+ }
25924
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
25925
+ height: 636px;
25926
+ }
25927
+ `;
25928
+
25929
+ const VideoBackground = styled.video`
25930
+ position: absolute;
25931
+ width: 100%;
25932
+ height: 575px;
25933
+ object-fit: cover;
25934
+ @media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
25935
+ height: 590px;
25936
+ }
25937
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25938
+ height: 420px;
25939
+ }
25940
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25941
+ height: 568px;
25942
+ }
25943
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
25944
+ height: 645px;
25945
+ }
25946
+ `;
25947
+
25948
+ const PlayPauseButton = styled.button`
25949
+ position: absolute;
25950
+ display: none;
25951
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25952
+ bottom: 20px;
25953
+ right: 20px;
25954
+ display: flex;
25955
+ align-items: center;
25956
+ justify-content: center;
25957
+ z-index: 1;
25958
+ background: rgba(0, 0, 0, 0.5);
25959
+ border: 1px solid white;
25960
+ color: white;
25961
+ font-size: 32px;
25962
+ border-radius: 50%;
25963
+ width: 50px;
25964
+ height: 50px;
25965
+ cursor: pointer;
25966
+ &:hover {
25967
+ background: rgba(0, 0, 0, 0.7);
25968
+ }
25969
+ }
25970
+ `;
25971
+
25776
25972
  /**
25777
25973
  * Hero image banner with optional text and call to action with varying presentation of text area.
25778
25974
  * For optional use at the top of a service landing page, if set in the CMS.
25779
25975
  */
25780
25976
  var HeroImage = function (_a) {
25781
- 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;
25977
+ 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;
25978
+ var _d = useState(true), isPlaying = _d[0], setIsPlaying = _d[1];
25979
+ var videoRef = useRef(null);
25980
+ var togglePlay = function () {
25981
+ if (videoRef.current) {
25982
+ if (isPlaying) {
25983
+ videoRef.current.pause();
25984
+ }
25985
+ else {
25986
+ videoRef.current.play();
25987
+ }
25988
+ setIsPlaying(!isPlaying);
25989
+ }
25990
+ };
25782
25991
  return (React.createElement(React.Fragment, null,
25783
25992
  React.createElement(LazyImage, { src: imageLarge, placeholder: imageSmall, visibilitySensorProps: {
25784
25993
  partialVisibility: true,
25785
25994
  } }, function (src) { return (React.createElement(Container$u, { "$image": src, "$backgroundBox": backgroundBox, "data-testid": "HeroImage" },
25995
+ heroVideoUrl && (React.createElement(React.Fragment, null,
25996
+ React.createElement(VideoContainer, null,
25997
+ React.createElement(VideoBackground, { ref: videoRef, autoPlay: true, loop: true, muted: true },
25998
+ React.createElement("source", { src: heroVideoUrl, type: "video/mp4" }),
25999
+ "Your browser doesn't support this video."),
26000
+ React.createElement(PlayPauseButton, { onClick: togglePlay }, isPlaying ? '⏸' : '▶')))),
25786
26001
  React.createElement(InnerContainer, null,
25787
26002
  React.createElement(Overlay, { "$backgroundBox": backgroundBox, "data-testid": "HeroImageOverlay" },
25788
26003
  breadcrumb && (React.createElement(BreadcrumbLink, { href: breadcrumb.url, "$backgroundBox": backgroundBox }, breadcrumb.title)),
@@ -26990,7 +27205,10 @@ const Container$l = styled.main`
26990
27205
  }
26991
27206
 
26992
27207
  td > a:only-child {
26993
- padding: 5px 10px;
27208
+ padding: 12px 20px;
27209
+ display: inline-block;
27210
+ min-height: 44px;
27211
+ min-width: 44px;
26994
27212
  }
26995
27213
 
26996
27214
  td > a:not(:only-child) {
@@ -27876,10 +28094,12 @@ const ListItem = styled.li`
27876
28094
  background-color: ${(props) => props.theme.theme_vars.colours.action_light};
27877
28095
  color: ${(props) => props.theme.theme_vars.colours.black};
27878
28096
  border-bottom-color: transparent;
27879
-
27880
28097
  &:focus {
27881
28098
  ${focusListItem}
27882
28099
  }
28100
+ &:focus-visible {
28101
+ ${focusListItem}
28102
+ }
27883
28103
  }
27884
28104
  }
27885
28105
  `;
@@ -27895,10 +28115,12 @@ const ListItemLink = styled.a`
27895
28115
  transition: background-color 0.3s ease 0s;
27896
28116
  background-color: ${(props) => props.theme.theme_vars.colours.action_light}80;
27897
28117
  }
27898
-
27899
28118
  &:focus {
27900
28119
  ${focusListItem}
27901
28120
  }
28121
+ &:focus-visible {
28122
+ ${focusListItem}
28123
+ }
27902
28124
  &:active {
27903
28125
  transform: translateY(1px);
27904
28126
  box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
@@ -30068,7 +30290,7 @@ var PhoneIcon = function (_a) {
30068
30290
  };
30069
30291
 
30070
30292
  var ServiceContact = function (_a) {
30071
- var website = _a.website, email = _a.email, contacts = _a.contacts;
30293
+ var website = _a.website, email = _a.email, contacts = _a.contacts, websiteTitle = _a.websiteTitle;
30072
30294
  var themeContext = useContext(ThemeContext);
30073
30295
  return (React.createElement(Container$6, { "data-testid": "ServiceContact" },
30074
30296
  React.createElement(Row$1, { hasWrap: false },
@@ -30076,7 +30298,7 @@ var ServiceContact = function (_a) {
30076
30298
  React.createElement(IconContainer$1, null,
30077
30299
  React.createElement(WebsiteIcon, { colourFill: themeContext.theme_vars.colours.black })),
30078
30300
  React.createElement(Content$1, null,
30079
- React.createElement(WebLink$1, { href: website }, website)))),
30301
+ React.createElement(WebLink$1, { href: website }, websiteTitle ? "".concat(websiteTitle) : website)))),
30080
30302
  email && (React.createElement(Column, { small: "full", medium: "full", large: "auto", classes: "striped-contacts" },
30081
30303
  React.createElement(IconContainer$1, null,
30082
30304
  React.createElement(EmailIcon, { colourFill: themeContext.theme_vars.colours.black })),
@@ -30266,10 +30488,15 @@ var transformDescriptionDetails = function (accreditations, fees, service_areas,
30266
30488
  };
30267
30489
  var transformSnippet = function (description, extractLength) {
30268
30490
  if (extractLength === void 0) { extractLength = 190; }
30269
- return (sanitizeHtml$1(description, {
30491
+ var sanitized = sanitizeHtml$1(description, {
30270
30492
  allowedTags: [],
30271
30493
  allowedAttributes: {},
30272
- }).substr(0, extractLength) + String.fromCharCode(8230));
30494
+ }).trim();
30495
+ if (!sanitized) {
30496
+ return '';
30497
+ }
30498
+ var snippet = sanitized.substr(0, extractLength);
30499
+ return sanitized.length > extractLength ? snippet + String.fromCharCode(8230) : snippet;
30273
30500
  };
30274
30501
  var transformTaxonomies = function (service_taxonomys, taxonomiesToShow) {
30275
30502
  if (taxonomiesToShow === void 0) { taxonomiesToShow = []; }
@@ -30302,11 +30529,14 @@ var transformTaxonomies = function (service_taxonomys, taxonomiesToShow) {
30302
30529
  var transformAge = function (age, ageInMonths) {
30303
30530
  if (ageInMonths === void 0) { ageInMonths = false; }
30304
30531
  if (age === 0) {
30305
- return age;
30532
+ return age.toString();
30306
30533
  }
30307
30534
  if (ageInMonths) {
30308
30535
  if (age > 36) {
30309
- return Math.ceil(age / 12) + ' years';
30536
+ if (age % 12 === 0) {
30537
+ return Math.ceil(age / 12) + ' years';
30538
+ }
30539
+ return Math.floor(age / 12) + ' years and ' + (age % 12) + (age % 12 === 1 ? ' month' : ' months');
30310
30540
  }
30311
30541
  return "".concat(age, " months");
30312
30542
  }
@@ -30319,7 +30549,7 @@ const Container$5 = styled.div`
30319
30549
 
30320
30550
  var DirectoryMap = function (_a) {
30321
30551
  var _b, _c;
30322
- var allowCookies = _a.allowCookies, mapProps = _a.mapProps;
30552
+ var _d = _a.allowCookies, allowCookies = _d === void 0 ? true : _d, mapProps = _a.mapProps;
30323
30553
  var cookiesAccepted = wereCookiesAccepted(allowCookies);
30324
30554
  var apiKey = (_b = process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY) !== null && _b !== void 0 ? _b : '';
30325
30555
  var latLong = mapProps.centre.split(',');
@@ -30423,11 +30653,11 @@ var HeartIcon = function (_a) {
30423
30653
  };
30424
30654
 
30425
30655
  var DirectoryAddToShortList = function (_a) {
30426
- var id = _a.id, name = _a.name, snippet = _a.snippet, email = _a.email, website = _a.website, phone = _a.phone;
30656
+ 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;
30427
30657
  var _b = useDirectoryShortListContext(), toggleFavourites = _b.toggleFavourites, isFavourite = _b.isFavourite;
30428
30658
  var themeContext = useContext(ThemeContext);
30429
30659
  var favourite = isFavourite(id);
30430
- return (React.createElement(AddToShortlist, { onClick: function (e) { return toggleFavourites(id, name, snippet, email, website, phone); }, "data-testid": "DirectoryAddToShortList", "$favourite": favourite },
30660
+ return (React.createElement(AddToShortlist, { onClick: function (e) { return toggleFavourites(id, name, snippet, email, website, phone, addresses, fees); }, "data-testid": "DirectoryAddToShortList", "$favourite": favourite },
30431
30661
  favourite ? (React.createElement(IconDownload$1, { colourFill: themeContext.theme_vars.colours.negative })) : (React.createElement(HeartIcon, { colourFill: themeContext.theme_vars.colours.action })),
30432
30662
  favourite ? React.createElement(React.Fragment, null, "Remove from shortlist") : React.createElement(React.Fragment, null, "Add to shortlist")));
30433
30663
  };
@@ -30496,7 +30726,7 @@ var getIcon = function (profile) {
30496
30726
 
30497
30727
  var DirectoryService = function (_a) {
30498
30728
  var _b, _c, _d, _e;
30499
- 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;
30729
+ 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;
30500
30730
  var labelLetters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L'];
30501
30731
  var _g = useState(false), notServer = _g[0], setNotServer = _g[1];
30502
30732
  var themeContext = useContext(ThemeContext);
@@ -30520,7 +30750,9 @@ var DirectoryService = function (_a) {
30520
30750
  " Shortlist (",
30521
30751
  favourites.length,
30522
30752
  ")")),
30523
- React.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(', ') })))))),
30753
+ React.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) {
30754
+ return location.physical_addresses;
30755
+ }), fees: fees })))))),
30524
30756
  service_at_locations.filter(function (location) {
30525
30757
  return location.is_visitable != false;
30526
30758
  }).length > 0 && (React.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
@@ -30535,7 +30767,7 @@ var DirectoryService = function (_a) {
30535
30767
  .filter(function (item) { return item !== '' && item !== address.id; })
30536
30768
  .join(' <br />'),
30537
30769
  } }),
30538
- React.createElement(Button$4, { url: "https://google.com/maps/dir//".concat(location.latitude, ",").concat(location.longitude), text: "Get directions" }))); }),
30770
+ location.latitude && location.longitude && (React.createElement(Button$4, { url: "https://google.com/maps/dir//".concat(location.latitude, ",").concat(location.longitude), text: "Get directions" })))); }),
30539
30771
  (location === null || location === void 0 ? void 0 : location.accessibility_for_disabilities.length) > 0 && (React.createElement(React.Fragment, null,
30540
30772
  React.createElement(Heading, { level: 3, text: "Other facilities on site" }),
30541
30773
  React.createElement("ul", null, location.accessibility_for_disabilities.map(function (accessibility) { return (React.createElement("li", { key: accessibility.id }, accessibility.accessibility)); })))))); })),
@@ -30567,7 +30799,7 @@ var DirectoryService = function (_a) {
30567
30799
  React.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"))))))),
30568
30800
  (email || url || (contacts === null || contacts === void 0 ? void 0 : contacts.length) > 0) && (React.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
30569
30801
  React.createElement(Heading, { level: 2, text: "How to contact this service" }),
30570
- React.createElement(ServiceContact, { email: email, website: url, contacts: contacts }))),
30802
+ React.createElement(ServiceContact, { email: email, website: url, websiteTitle: websiteUrlTitle, contacts: contacts }))),
30571
30803
  React.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
30572
30804
  React.createElement(Heading, { level: 2, text: "Description" }),
30573
30805
  React.createElement("div", null,
@@ -30580,7 +30812,7 @@ var DirectoryService = function (_a) {
30580
30812
  React.createElement("table", null,
30581
30813
  React.createElement("thead", null,
30582
30814
  React.createElement("tr", null,
30583
- React.createElement("th", { scope: "col" }, "Weekday"),
30815
+ React.createElement("th", { scope: "col" }, "Opening days"),
30584
30816
  React.createElement("th", { scope: "col" }, "Opens"),
30585
30817
  React.createElement("th", { scope: "col" }, "Closes"))),
30586
30818
  React.createElement("tbody", null, regular_schedules === null || regular_schedules === void 0 ? void 0 : regular_schedules.map(function (schedule, scheduleIndex) { return (React.createElement("tr", { key: scheduleIndex },
@@ -30646,7 +30878,7 @@ styled.div`
30646
30878
  color: ${(props) => props.theme.theme_vars.colours.grey_dark};
30647
30879
  `;
30648
30880
 
30649
- const ButtonContainer$1 = styled.div`
30881
+ const ButtonContainer$2 = styled.div`
30650
30882
  display: flex;
30651
30883
  align-items: end;
30652
30884
  padding-bottom: 0;
@@ -30654,23 +30886,49 @@ const ButtonContainer$1 = styled.div`
30654
30886
  `;
30655
30887
 
30656
30888
  const Button$1 = styled.button`
30657
- border: 1px solid ${(props) => props.theme.theme_vars.colours.white};
30658
- background: ${(props) => props.theme.theme_vars.colours.action};
30659
- color: ${(props) => props.theme.theme_vars.colours.white};
30660
- padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
30661
- cursor: pointer;
30662
- border-radius: ${(props) => props.theme.theme_vars.border_radius};
30663
- min-height: 42px;
30664
- margin-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
30889
+ border: ${(props) => (props.$isWarning ? `3px` : `1px`)} solid
30890
+ ${(props) => (props.$isWarning ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.white)};
30891
+ background: ${(props) =>
30892
+ props.$isWarning ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.action};
30893
+ color: ${(props) =>
30894
+ props.$isWarning ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.white};
30895
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
30896
+ cursor: pointer;
30897
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
30898
+ min-height: 42px;
30899
+ margin-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
30900
+ font-weight: bold;
30665
30901
 
30666
- &:hover {
30667
- background: ${(props) => props.theme.theme_vars.colours.action_dark};
30668
- }
30902
+ &:hover {
30903
+ background: ${(props) =>
30904
+ props.$isWarning ? props.theme.theme_vars.colours.action_light : props.theme.theme_vars.colours.action_dark};
30905
+ color: ${(props) =>
30906
+ props.$isWarning ? props.theme.theme_vars.colours.action_dark : props.theme.theme_vars.colours.white};
30907
+ text-decoration: underline;
30908
+ text-decoration-style: dotted;
30909
+ }
30669
30910
 
30670
- &:focus {
30671
- outline: none;
30672
- background: ${(props) => props.theme.theme_vars.colours.focus};
30673
- }
30911
+ &:focus {
30912
+ ${(props) => props.theme.linkStylesFocus}
30913
+ }
30914
+
30915
+ &:active {
30916
+ ${(props) => props.theme.linkStylesActive}
30917
+ }
30918
+
30919
+ ${(props) => {
30920
+ if (props.size === 'large') {
30921
+ return `
30922
+ font-size: 16px;
30923
+ padding: 14px 24px;
30924
+ `;
30925
+ }
30926
+ }}
30927
+
30928
+ ${(props) =>
30929
+ props.$isWarning && props.size === 'large' && `
30930
+ padding: 12px 24px;
30931
+ `}
30674
30932
  `;
30675
30933
 
30676
30934
  const ButtonText$1 = styled.span`
@@ -30750,28 +31008,29 @@ const Legend$1 = styled.legend`
30750
31008
  `;
30751
31009
 
30752
31010
  const LegendButton = styled.button`
30753
- position: relative;
30754
- background: none;
30755
- border: none;
30756
- color: ${(props) => props.theme.theme_vars.colours.action};
30757
- width: 100%;
30758
- white-space: normal;
30759
- cursor: pointer;
30760
- text-align: left;
30761
- padding-right: 30px;
30762
- padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
30763
- padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
30764
- ${(props) => props.theme.theme_vars.h4}
30765
- ${(props) => props.theme.linkStyles}
30766
- &:hover {
30767
- ${(props) => props.theme.linkStylesHover}
30768
- }
30769
- &:focus {
30770
- ${(props) => props.theme.linkStylesFocus}
30771
- }
30772
- &:active {
30773
- ${(props) => props.theme.linkStylesActive}
30774
- }
31011
+ position: relative;
31012
+ background: none;
31013
+ border: none;
31014
+ color: ${(props) => props.theme.theme_vars.colours.action};
31015
+ width: 100%;
31016
+ white-space: normal;
31017
+ cursor: pointer;
31018
+ text-align: left;
31019
+ padding-right: 30px;
31020
+ padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
31021
+ padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
31022
+ ${(props) => props.theme.theme_vars.h4}
31023
+ ${(props) => props.theme.linkStyles}
31024
+ &:hover {
31025
+ ${(props) => props.theme.linkStylesHover}
31026
+ }
31027
+ &:focus {
31028
+ ${(props) => props.theme.linkStylesFocus}
31029
+ }
31030
+ &:active {
31031
+ ${(props) => props.theme.linkStylesActive}
31032
+ }
31033
+ margin: 0;
30775
31034
  `;
30776
31035
 
30777
31036
  const AccordionIcon = styled.span`
@@ -30880,6 +31139,14 @@ const MapToggle = styled.button`
30880
31139
  &:active {
30881
31140
  ${(props) => props.theme.linkStylesActive}
30882
31141
  }
31142
+ ${(props) => {
31143
+ if (props.size === 'large') {
31144
+ return `
31145
+ font-size: 16px;
31146
+ padding: 14px 24px;
31147
+ `;
31148
+ }
31149
+ }}
30883
31150
  `;
30884
31151
 
30885
31152
  const Favourites = styled.a`
@@ -31085,24 +31352,24 @@ var RadioCheckboxInput = function (_a) {
31085
31352
  };
31086
31353
 
31087
31354
  var DirectoryServiceList = function (_a) {
31088
- 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;
31089
- var _r = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion"), []), accordions = _r[0], setAccordions = _r[1];
31090
- var _s = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion-all"), true), openAll = _s[0], setOpenAll = _s[1];
31091
- var _t = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-show-map"), false), showMap = _t[0], setShowMap = _t[1];
31092
- var _u = useState(false), showFilters = _u[0], setShowFilters = _u[1];
31093
- var _v = useDirectoryShortListContext(), _w = _v.favourites, favourites = _w.favourites; _w.setFavourites; _v.toggleFavourites; _v.isFavourite;
31094
- var _x = useState(false), notServer = _x[0], setNotServer = _x[1];
31095
- var _y = useState(search), searchTerm = _y[0], setSearchTerm = _y[1];
31096
- var _z = useState(postcode), postcodeSearch = _z[0], setPostcodeSearch = _z[1];
31355
+ 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;
31356
+ var _u = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion"), []), accordions = _u[0], setAccordions = _u[1];
31357
+ var _v = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion-all"), true), openAll = _v[0], setOpenAll = _v[1];
31358
+ var _w = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-show-map"), false), showMap = _w[0], setShowMap = _w[1];
31359
+ var _x = useState(false), showFilters = _x[0], setShowFilters = _x[1];
31360
+ var _y = useDirectoryShortListContext(), _z = _y.favourites, favourites = _z.favourites; _z.setFavourites; _y.toggleFavourites; _y.isFavourite;
31361
+ var _0 = useState(false), notServer = _0[0], setNotServer = _0[1];
31362
+ var _1 = useState(search), searchTerm = _1[0], setSearchTerm = _1[1];
31363
+ var _2 = useState(postcode), postcodeSearch = _2[0], setPostcodeSearch = _2[1];
31097
31364
  var themeContext = useContext(ThemeContext);
31098
- var _0 = useState(false), filtersActive = _0[0], setFiltersActive = _0[1];
31365
+ var _3 = useState(false), filtersActive = _3[0], setFiltersActive = _3[1];
31099
31366
  useEffect(function () {
31100
31367
  setNotServer(true);
31101
31368
  setFiltersActive(hasActiveFilters());
31102
31369
  }, []);
31103
31370
  useEffect(function () {
31104
31371
  setFiltersActive(hasActiveFilters());
31105
- }, [minimumAge, maximumAge, categories]);
31372
+ }, [minimumAge, maximumAge, categories, search, postcode]);
31106
31373
  if (accordions.length === 0) {
31107
31374
  var tempAccordions_1 = [];
31108
31375
  categories === null || categories === void 0 ? void 0 : categories.forEach(function () {
@@ -31180,7 +31447,7 @@ var DirectoryServiceList = function (_a) {
31180
31447
  lat: parseFloat((_a = service.service_at_locations[0]) === null || _a === void 0 ? void 0 : _a.latitude),
31181
31448
  lng: parseFloat((_b = service.service_at_locations[0]) === null || _b === void 0 ? void 0 : _b.longitude),
31182
31449
  label: labelLetters[index],
31183
- title: "<a href=\"".concat(directoryPath, "/").concat(service.id, "\">").concat(service.name, "</a>"),
31450
+ title: "<a href=".concat(service.id, ">").concat(service.name, "</a>"),
31184
31451
  };
31185
31452
  }),
31186
31453
  };
@@ -31197,7 +31464,9 @@ var DirectoryServiceList = function (_a) {
31197
31464
  }
31198
31465
  };
31199
31466
  var hasActiveFilters = function () {
31200
- return (maximumAge !== '' ||
31467
+ return (search !== '' ||
31468
+ postcode !== '' ||
31469
+ maximumAge !== '' ||
31201
31470
  minimumAge !== '' ||
31202
31471
  categories.some(function (category) {
31203
31472
  return category.options.some(function (option) {
@@ -31213,21 +31482,23 @@ var DirectoryServiceList = function (_a) {
31213
31482
  React.createElement(Row$1, null,
31214
31483
  React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31215
31484
  React.createElement(Label$1, { htmlFor: "directorySearch" }, "What are you looking for?"),
31216
- React.createElement(HintText, { text: "Enter a search word or phrase" }),
31485
+ React.createElement(HintText, { text: "Enter the name of a specific organisation" }),
31217
31486
  React.createElement(Input, { name: "directorySearch", type: "text", defaultValue: searchTerm, id: "directorySearch", onChange: function (e) {
31218
31487
  setSearchTerm(e.target.value);
31219
31488
  } })),
31220
- React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31489
+ showPostcodeSearch && (React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31221
31490
  React.createElement(Label$1, { htmlFor: "postcode" }, "Postcode (optional)"),
31222
- React.createElement(HintText, { text: "Enter a postcode" }),
31223
- React.createElement(Input, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); }, autocomplete: "postal-code" })),
31491
+ React.createElement(HintText, { text: "Enter a postcode to see results within ".concat(proximity, " miles") }),
31492
+ React.createElement(Input, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); }, autocomplete: "postal-code" }))),
31224
31493
  React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31225
- React.createElement(ButtonContainer$1, null,
31226
- React.createElement(Button$1, { onClick: submitSearch, type: "submit" },
31494
+ React.createElement(ButtonContainer$2, null,
31495
+ React.createElement(Button$1, { size: "large", onClick: submitSearch, type: "submit" },
31227
31496
  React.createElement(ButtonText$1, null, "Search"),
31228
- React.createElement(IconDownload, { colourFill: "#fff" })))),
31497
+ React.createElement(IconDownload, { colourFill: "#fff" })),
31498
+ filtersActive && (React.createElement(Button$1, { size: "large", onClick: clearSearch, type: "button", "$isWarning": true },
31499
+ React.createElement(ButtonText$1, null, "Clear search"))))),
31229
31500
  hasDocuments && (React.createElement(Column, { small: "full", medium: "full", large: "full" },
31230
- React.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false }))))))),
31501
+ React.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false, size: "large" }))))))),
31231
31502
  React.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
31232
31503
  React.createElement(FilterToggle, { type: "button", onClick: function (e) { return setShowFilters(!showFilters); } }, showFilters ? "Hide Filters" : "Show Filters"),
31233
31504
  React.createElement(FilterContainer, { "$showFilters": showFilters },
@@ -31263,14 +31534,16 @@ var DirectoryServiceList = function (_a) {
31263
31534
  React.createElement(Legend$1, null,
31264
31535
  React.createElement(LegendButton, { onClick: function (e) { return toggleAccordion(categoryIndex + 1); }, type: "button" },
31265
31536
  category.label,
31266
- React.createElement(AccordionIcon, { isOpen: accordions[categoryIndex + 1] }))),
31537
+ React.createElement(AccordionIcon, { "$isOpen": accordions[categoryIndex + 1] }))),
31267
31538
  React.createElement(Accordion, { "$isOpen": accordions[categoryIndex + 1] },
31268
31539
  React.createElement(ClearFilter$1, null,
31269
31540
  React.createElement(TextLink$1, { onClick: function (e) { return clearCategory(categoryIndex); } }, "Clear filter")),
31270
31541
  category.options.map(function (taxonomy) { return (React.createElement(Category$2, { key: taxonomy.id },
31271
31542
  React.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); } }))); }))))); })))))),
31272
31543
  React.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
31273
- React.createElement(Row$1, null, isLoading ? (React.createElement(LoadingContainer$1, null,
31544
+ React.createElement(Row$1, null, isError ? (React.createElement(Column, { small: "full", medium: "full", large: "full" },
31545
+ React.createElement(AlertBannerService, null,
31546
+ React.createElement("p", null, "Sorry, there was a problem fetching results. Please try again later.")))) : isLoading ? (React.createElement(LoadingContainer$1, null,
31274
31547
  React.createElement(LoadingSpinner, null),
31275
31548
  React.createElement("p", null, "Loading"))) : (React.createElement(React.Fragment, null,
31276
31549
  React.createElement(Column, { small: "full", medium: "full", large: "full" },
@@ -31282,7 +31555,7 @@ var DirectoryServiceList = function (_a) {
31282
31555
  " out of ",
31283
31556
  totalResults.toLocaleString())) : (React.createElement(ResultInfo$1, null, "No results found")),
31284
31557
  React.createElement(FavouritesContainer, null,
31285
- (services === null || services === void 0 ? void 0 : services.length) > 0 && (React.createElement(MapToggle, { type: "button", onClick: function (e) { return setShowMap(!showMap); } }, showMap ? "Hide Map" : "Show Map")),
31558
+ (services === null || services === void 0 ? void 0 : services.length) > 0 && (React.createElement(MapToggle, { type: "button", size: "large", onClick: function (e) { return setShowMap(!showMap); } }, showMap ? "Hide Map" : "Show Map")),
31286
31559
  React.createElement(Favourites, { href: shortListPath },
31287
31560
  React.createElement(HeartIcon, { colourFill: themeContext.theme_vars.colours.action }),
31288
31561
  " Shortlist (",
@@ -31292,14 +31565,14 @@ var DirectoryServiceList = function (_a) {
31292
31565
  React.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber })),
31293
31566
  React.createElement(Column, { small: "full", medium: "full", large: "full" }, notServer && React.createElement(React.Fragment, null, (services === null || services === void 0 ? void 0 : services.length) > 0 && showMap && React.createElement(DirectoryMap, { mapProps: mapProps }))),
31294
31567
  services.map(function (service, index) {
31295
- var _a, _b, _c, _d, _e, _f;
31568
+ var _a, _b, _c, _d, _e, _f, _g;
31296
31569
  var snippet = transformSnippet(service.description, extractLength);
31297
31570
  return (React.createElement(Column, { small: "full", medium: "full", large: "full", key: service.id },
31298
31571
  React.createElement(ServiceContainer, { "$resultNumber": index },
31299
31572
  React.createElement(Row$1, null,
31300
31573
  React.createElement(Column, { small: "full", medium: "full", large: "full" },
31301
31574
  React.createElement(ServiceHeader, null,
31302
- React.createElement(ServiceLink$1, { href: "".concat(directoryPath, "/").concat(service.id) }, service.name),
31575
+ React.createElement(ServiceLink$1, { href: "".concat(service.id) }, service.name),
31303
31576
  showMap && (React.createElement(MarkerContainer, null,
31304
31577
  React.createElement("span", null, labelLetters[index]),
31305
31578
  React.createElement(PinIcon, { colourFill: themeContext.theme_vars.colours.action_dark }))))),
@@ -31315,7 +31588,9 @@ var DirectoryServiceList = function (_a) {
31315
31588
  ' ',
31316
31589
  transformAge(eligibility.maximum_age, ageInMonths))); })))),
31317
31590
  React.createElement(Column, { small: "full", medium: "full", large: "full" },
31318
- React.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(', ') }))))));
31591
+ React.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) {
31592
+ return location.physical_addresses;
31593
+ }), fees: service.fees }))))));
31319
31594
  }),
31320
31595
  React.createElement(Column, { small: "full", medium: "full", large: "full" },
31321
31596
  React.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber })))))))));
@@ -31323,71 +31598,96 @@ var DirectoryServiceList = function (_a) {
31323
31598
 
31324
31599
  const Container$1 = styled.div`
31325
31600
  display: block;
31601
+
31602
+ @media print {
31603
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small} !important;
31604
+ [data-testid='Column'] {
31605
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.extra_small} !important;
31606
+ }
31607
+
31608
+ .favourite-outer:nth-of-type(2n + 1) {
31609
+ page-break-after: always;
31610
+ }
31611
+
31612
+ .favourite-outer:last-of-type {
31613
+ page-break-after: avoid !important;
31614
+ }
31615
+ }
31326
31616
  `;
31327
31617
 
31328
31618
  const ServiceLink = styled.a`
31329
- display: block;
31330
- margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
31331
- ${(props) => props.theme.theme_vars.h4}
31332
- ${(props) => props.theme.linkStyles}
31333
- &:hover {
31334
- ${(props) => props.theme.linkStylesHover}
31335
- }
31336
- &:focus {
31337
- ${(props) => props.theme.linkStylesFocus}
31338
- }
31339
- &:active {
31340
- ${(props) => props.theme.linkStylesActive}
31341
- }
31619
+ display: block;
31620
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
31621
+ ${(props) => props.theme.theme_vars.h4}
31622
+ ${(props) => props.theme.linkStyles}
31623
+ &:hover {
31624
+ ${(props) => props.theme.linkStylesHover}
31625
+ }
31626
+ &:focus {
31627
+ ${(props) => props.theme.linkStylesFocus}
31628
+ }
31629
+ &:active {
31630
+ ${(props) => props.theme.linkStylesActive}
31631
+ }
31342
31632
 
31343
- @media print {
31344
- color: ${(props) => props.theme.theme_vars.colours.black} !important;
31345
- text-decoration: none !important;
31346
- }
31633
+ @media print {
31634
+ color: ${(props) => props.theme.theme_vars.colours.black} !important;
31635
+ text-decoration: none !important;
31636
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
31637
+ margin-bottom: 0;
31638
+ }
31347
31639
  `;
31348
31640
 
31349
31641
  const PrintLink = styled.div`
31350
- p {
31351
- display: none;
31352
- }
31353
-
31354
- @media print {
31355
31642
  p {
31356
- display: block;
31643
+ display: none;
31644
+ }
31645
+
31646
+ @media print {
31647
+ p {
31648
+ display: none;
31649
+ margin-bottom: 0 !important;
31650
+ }
31357
31651
  }
31652
+ `;
31653
+
31654
+ const SnippetContainer = styled.div`
31655
+ @media print {
31656
+ display: flex;
31657
+ flex-wrap: nowrap;
31358
31658
  }
31359
31659
  `;
31360
31660
 
31361
31661
  const QRCodeContainer = styled.div`
31362
- max-width: 80px;
31363
- margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
31364
- display: none;
31365
- float: right;
31662
+ max-width: 80px;
31663
+ display: none;
31366
31664
 
31367
- @media print {
31368
- display: block;
31369
- }
31665
+ @media print {
31666
+ display: block;
31667
+ margin-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
31668
+ }
31370
31669
  `;
31371
31670
 
31372
31671
  const FavouriteContainer = styled.div`
31373
- background: ${(props) =>
31374
- props.theme.cardinal_name === 'north'
31375
- ? props.theme.theme_vars.colours.white
31376
- : props.theme.theme_vars.colours.grey_light};
31377
- box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
31378
- transition: box-shadow 0.3s ease;
31379
- border-bottom: 5px solid ${(props) => props.theme.theme_vars.colours.action};
31380
- border-radius: ${(props) => props.theme.theme_vars.border_radius};
31381
- padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31672
+ background: ${(props) =>
31673
+ props.theme.cardinal_name === 'north'
31674
+ ? props.theme.theme_vars.colours.white
31675
+ : props.theme.theme_vars.colours.grey_light};
31676
+ box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
31677
+ transition: box-shadow 0.3s ease;
31678
+ border-bottom: 5px solid ${(props) => props.theme.theme_vars.colours.action};
31679
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
31680
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31382
31681
 
31383
- @media print {
31384
- box-shadow: none;
31385
- border: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
31386
- background: none;
31387
- }
31682
+ @media print {
31683
+ box-shadow: none;
31684
+ border: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
31685
+ background: none;
31686
+ padding: 0 ${(props) => props.theme.theme_vars.spacingSizes.small};
31687
+ }
31388
31688
  `;
31389
31689
 
31390
- const PrintContainer = styled.div`
31690
+ const ButtonContainer$1 = styled.div`
31391
31691
  display: flex;
31392
31692
  justify-content: flex-end;
31393
31693
 
@@ -31396,7 +31696,7 @@ const PrintContainer = styled.div`
31396
31696
  }
31397
31697
  `;
31398
31698
 
31399
- const PrintButton = styled.button`
31699
+ const ActionButton = styled.button`
31400
31700
  border: 2px solid ${(props) => props.theme.theme_vars.colours.action};
31401
31701
  border-radius: ${(props) => props.theme.theme_vars.border_radius};
31402
31702
  background: ${(props) => props.theme.theme_vars.colours.action};
@@ -31408,6 +31708,7 @@ const PrintButton = styled.button`
31408
31708
  flex-direction: row;
31409
31709
  justify-content: flex-start;
31410
31710
  align-items: center;
31711
+ margin-left: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31411
31712
  &:hover {
31412
31713
  ${(props) => props.theme.linkStylesHover}
31413
31714
  color: ${(props) => props.theme.theme_vars.colours.white};
@@ -31430,6 +31731,53 @@ const AddContainer = styled.div`
31430
31731
  }
31431
31732
  `;
31432
31733
 
31734
+ const SubTitle = styled.p`
31735
+ font-weight: bold;
31736
+ margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31737
+ `;
31738
+
31739
+ const ClearShortlistButton = styled.button`
31740
+ border: 1px solid ${(props) => props.theme.theme_vars.colours.negative};
31741
+ background: ${(props) => props.theme.theme_vars.colours.white};
31742
+ color: ${(props) => props.theme.theme_vars.colours.negative};
31743
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
31744
+ cursor: pointer;
31745
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
31746
+ min-height: 42px;
31747
+ font-weight: bold;
31748
+
31749
+ &:hover {
31750
+ background: ${(props) => props.theme.theme_vars.colours.action_light};
31751
+ color: ${(props) => props.theme.theme_vars.colours.action_dark};
31752
+ text-decoration: underline;
31753
+ text-decoration-style: dotted;
31754
+ }
31755
+
31756
+ &:focus {
31757
+ ${(props) => props.theme.linkStylesFocus}
31758
+ }
31759
+
31760
+ &:active {
31761
+ ${(props) => props.theme.linkStylesActive}
31762
+ }
31763
+ `;
31764
+
31765
+ const AddressContainer = styled.div`
31766
+ display: block;
31767
+
31768
+ @media print {
31769
+ display: none;
31770
+ }
31771
+ `;
31772
+
31773
+ const PrintAddress = styled.div`
31774
+ display: none;
31775
+
31776
+ @media print {
31777
+ display: block;
31778
+ }
31779
+ `;
31780
+
31433
31781
  var lib = {};
31434
31782
 
31435
31783
  var mode$1 = {
@@ -32789,32 +33137,82 @@ QRCode.defaultProps = defaultProps;
32789
33137
  var _default = lib.default = QRCode;
32790
33138
 
32791
33139
  var DirectoryShortList = function (_a) {
32792
- var directoryPath = _a.directoryPath;
32793
- var favourites = useDirectoryShortListContext().favourites.favourites;
32794
- var _b = useState(false), notServer = _b[0], setNotServer = _b[1];
33140
+ _a.directoryPath;
33141
+ var _b = useDirectoryShortListContext(), favourites = _b.favourites.favourites, clearShortlist = _b.clearShortlist;
33142
+ var _c = useState(false), notServer = _c[0], setNotServer = _c[1];
32795
33143
  useEffect(function () {
32796
33144
  setNotServer(true);
32797
33145
  }, []);
33146
+ var confirmClear = function () {
33147
+ if (window.confirm('Are you sure you want to clear your shortlist?')) {
33148
+ clearShortlist();
33149
+ }
33150
+ };
33151
+ var formatAddress = function (address) {
33152
+ return Object.values(address)
33153
+ .filter(function (item) { return item !== '' && item !== address.id && item !== address.country; })
33154
+ .join(', ');
33155
+ };
33156
+ var copyToClipboard = function () { return __awaiter(void 0, void 0, void 0, function () {
33157
+ var data;
33158
+ return __generator(this, function (_b) {
33159
+ switch (_b.label) {
33160
+ case 0:
33161
+ data = favourites.map(function (favourite) {
33162
+ var _a, _b, _c, _d;
33163
+ var address = favourite.addresses.length > 0 ? formatAddress(favourite.addresses[0]) : '';
33164
+ 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 ");
33165
+ });
33166
+ _b.label = 1;
33167
+ case 1:
33168
+ _b.trys.push([1, 3, , 4]);
33169
+ return [4 /*yield*/, navigator.clipboard.writeText(data.join('')).then(function () {
33170
+ window.alert('Copied to clipboard');
33171
+ })];
33172
+ case 2:
33173
+ _b.sent();
33174
+ return [3 /*break*/, 4];
33175
+ case 3:
33176
+ _b.sent();
33177
+ window.alert('Unable to copy');
33178
+ return [3 /*break*/, 4];
33179
+ case 4: return [2 /*return*/];
33180
+ }
33181
+ });
33182
+ }); };
32798
33183
  return (React.createElement(Container$1, { "data-testid": "DirectoryShortList" }, notServer && (React.createElement(Row$1, null, favourites.length > 0 ? (React.createElement(React.Fragment, null,
32799
33184
  React.createElement(Column, { small: "full", medium: "full", large: "full" },
32800
- React.createElement(PrintContainer, null,
32801
- React.createElement(PrintButton, { onClick: function () { return window.print(); } }, "Print Shortlist"))),
32802
- favourites.map(function (favourite) { return (React.createElement(Column, { key: favourite.id, small: "full", medium: "full", large: "full" },
32803
- React.createElement(FavouriteContainer, null,
32804
- React.createElement(Row$1, null,
32805
- React.createElement(Column, { small: "full", medium: "full", large: "full" },
32806
- React.createElement(QRCodeContainer, null,
32807
- React.createElement(_default, { value: "".concat(directoryPath, "/").concat(favourite.id), size: 256, style: { height: 'auto', maxWidth: '100%', width: '100%' }, viewBox: "0 0 256 256" })),
32808
- React.createElement(ServiceLink, { href: "".concat(directoryPath, "/").concat(favourite.id) }, favourite.name),
32809
- React.createElement(PrintLink, null,
32810
- React.createElement("p", null, "".concat(directoryPath, "/").concat(favourite.id)))),
32811
- React.createElement(Column, { small: "full", medium: "full", large: "one-half" },
32812
- React.createElement("div", null, favourite.snippet)),
32813
- React.createElement(Column, { small: "full", medium: "full", large: "one-half" },
32814
- React.createElement(SummaryList, { terms: transformService(favourite.email, favourite.website, favourite.phone), hasMargin: false })),
32815
- React.createElement(Column, { small: "full", medium: "full", large: "full" },
32816
- React.createElement(AddContainer, null,
32817
- React.createElement(DirectoryAddToShortList, { id: favourite.id, name: favourite.name, snippet: favourite.snippet, email: favourite.email, website: favourite.website, phone: favourite.phone }))))))); }))) : (React.createElement(Column, { small: "full", medium: "full", large: "full" },
33185
+ React.createElement(ButtonContainer$1, null,
33186
+ React.createElement(ClearShortlistButton, { onClick: confirmClear }, "Clear Shortlist"),
33187
+ React.createElement(ActionButton, { onClick: copyToClipboard }, "Copy To Clipboard"),
33188
+ React.createElement(ActionButton, { onClick: function () { return window.print(); } }, "Print Shortlist"))),
33189
+ favourites.map(function (favourite) {
33190
+ var _a, _b;
33191
+ return (React.createElement(Column, { key: favourite.id, small: "full", medium: "full", large: "full", classes: "favourite-outer" },
33192
+ React.createElement(FavouriteContainer, null,
33193
+ React.createElement(Row$1, null,
33194
+ React.createElement(Column, { small: "full", medium: "full", large: "full" },
33195
+ React.createElement(ServiceLink, { href: "".concat(favourite.id) }, favourite.name),
33196
+ React.createElement(PrintLink, null,
33197
+ React.createElement("p", null, "".concat(favourite.id)))),
33198
+ React.createElement(Column, { small: "full", medium: "full", large: "one-half" },
33199
+ React.createElement(SnippetContainer, null,
33200
+ React.createElement("div", null, favourite.snippet),
33201
+ React.createElement(QRCodeContainer, null,
33202
+ React.createElement(_default, { value: "".concat(favourite.id), size: 256, style: { height: 'auto', maxWidth: '100%', width: '100%' }, viewBox: "0 0 256 256" }))),
33203
+ ((_a = favourite.addresses) === null || _a === void 0 ? void 0 : _a.length) > 0 && (React.createElement(React.Fragment, null,
33204
+ React.createElement(AddressContainer, null,
33205
+ React.createElement(SubTitle, null, "Address"),
33206
+ ((_b = favourite.addresses) === null || _b === void 0 ? void 0 : _b.length) === 1 ? (React.createElement("p", null, formatAddress(favourite.addresses[0]))) : (React.createElement("ul", null, favourite.addresses.map(function (address) { return (React.createElement("li", { key: address.id }, formatAddress(address))); })))),
33207
+ React.createElement(PrintAddress, null,
33208
+ React.createElement(SummaryList, { terms: [{ term: 'Address', detail: formatAddress(favourite.addresses[0]) }], hasMargin: false }))))),
33209
+ React.createElement(Column, { small: "full", medium: "full", large: "one-half" },
33210
+ React.createElement(SummaryList, { terms: transformService(favourite.email, favourite.website, favourite.phone), hasMargin: false }),
33211
+ favourite.fees && (React.createElement(SummaryList, { terms: [{ term: 'Cost', detail: favourite.fees }], hasMargin: false }))),
33212
+ React.createElement(Column, { small: "full", medium: "full", large: "full" },
33213
+ React.createElement(AddContainer, null,
33214
+ React.createElement(DirectoryAddToShortList, { id: favourite.id, name: favourite.name, snippet: favourite.snippet, email: favourite.email, website: favourite.website, phone: favourite.phone, addresses: favourite.addresses })))))));
33215
+ }))) : (React.createElement(Column, { small: "full", medium: "full", large: "full" },
32818
33216
  React.createElement(FavouriteContainer, null,
32819
33217
  React.createElement("p", null, "No items in the shortlist"))))))));
32820
33218
  };
@@ -32949,8 +33347,8 @@ const LoadingContainer = styled.div`
32949
33347
  `;
32950
33348
 
32951
33349
  var DirectoryDocumentList = function (_a) {
32952
- 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;
32953
- var _g = useState(search), searchTerm = _g[0], setSearchTerm = _g[1];
33350
+ 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;
33351
+ var _h = useState(search), searchTerm = _h[0], setSearchTerm = _h[1];
32954
33352
  var submitSearch = function (e) {
32955
33353
  e.preventDefault();
32956
33354
  setSearch(searchTerm);
@@ -32989,7 +33387,7 @@ var DirectoryDocumentList = function (_a) {
32989
33387
  React.createElement(Row$1, null,
32990
33388
  React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
32991
33389
  React.createElement(Label, { htmlFor: "directorySearch" }, "What are you looking for?"),
32992
- React.createElement(HintText, { text: "Enter a search word or phrase" }),
33390
+ React.createElement(HintText, { text: "Enter the name of a specific organisation" }),
32993
33391
  React.createElement(Input, { name: "directorySearch", type: "text", defaultValue: searchTerm, id: "directorySearch", onChange: function (e) {
32994
33392
  setSearchTerm(e.target.value);
32995
33393
  } })),
@@ -33013,7 +33411,9 @@ var DirectoryDocumentList = function (_a) {
33013
33411
  React.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); } }))); })))); }))),
33014
33412
  React.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
33015
33413
  React.createElement(Row$1, null,
33016
- isLoading ? (React.createElement(LoadingContainer, null,
33414
+ isError ? (React.createElement(Column, { small: "full", medium: "full", large: "full" },
33415
+ React.createElement(AlertBannerService, null,
33416
+ React.createElement("p", null, "Sorry, there was a problem fetching results. Please try again later.")))) : isLoading ? (React.createElement(LoadingContainer, null,
33017
33417
  React.createElement(LoadingSpinner, null),
33018
33418
  React.createElement("p", null, "Loading"))) : (React.createElement(React.Fragment, null,
33019
33419
  React.createElement(Column, { small: "full", medium: "full", large: "full" }, (documents === null || documents === void 0 ? void 0 : documents.length) > 0 ? (React.createElement(ResultInfo, null,