@nnc-digital/nnc-design-system 1.0.0-alpha8 → 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 +597 -191
  4. package/build/index.js.map +1 -1
  5. package/build/index.mjs.js +597 -191
  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
package/build/index.js CHANGED
@@ -6690,10 +6690,14 @@ var MapMarker = function (options) {
6690
6690
  anchor: new google.maps.Point(40, 60),
6691
6691
  labelOrigin: new google.maps.Point(21, 25),
6692
6692
  };
6693
- var mergedOptions = __assign$2(__assign$2({}, options), { anchorPoint: new google.maps.Point(-5, -40), icon: icon, label: {
6694
- text: typeof options.label === 'string' ? options.label : options.label.text,
6695
- color: 'white',
6696
- }, position: options.position, title: options.title });
6693
+ var mergedOptions = __assign$2(__assign$2({}, options), { anchorPoint: new google.maps.Point(-5, -40), icon: icon, position: options.position, title: options.title, label: options.label ?
6694
+ (typeof options.label === 'string' ?
6695
+ { text: options.label, color: '#FFFFFF' } : __assign$2(__assign$2({}, options.label), { color: '#FFFFFF' })) : undefined });
6696
+ for (var key in options) {
6697
+ if (key !== 'label' && Object.prototype.hasOwnProperty.call(options, key)) {
6698
+ mergedOptions[key] = options[key];
6699
+ }
6700
+ }
6697
6701
  React__default.default.useEffect(function () {
6698
6702
  if (!marker) {
6699
6703
  setMarker(new google.maps.Marker());
@@ -7963,6 +7967,8 @@ const Container$_ = styled__default.default.div`
7963
7967
  width: 100%;
7964
7968
  display: block;
7965
7969
  box-sizing: border-box;
7970
+ position: sticky;
7971
+ z-index: 1;
7966
7972
  `;
7967
7973
 
7968
7974
  const CookieHide = styled__default.default.button`
@@ -8156,7 +8162,7 @@ var CookieBanner = function (_a) {
8156
8162
  // on page load - look for a cookie
8157
8163
  React.useEffect(function () {
8158
8164
  checkCookie();
8159
- });
8165
+ }, []);
8160
8166
  var _d = React.useState(false), showCookieBanner = _d[0], setShowCookieBanner = _d[1];
8161
8167
  var _e = React.useState(false), showCookiesRejectedBanner = _e[0], setShowCookiesRejectedBanner = _e[1];
8162
8168
  var _f = React.useState(false), showCookiesAcceptedBanner = _f[0], setShowCookiesAcceptedBanner = _f[1];
@@ -22891,7 +22897,7 @@ const InnerContainer$2 = styled__default.default.div`
22891
22897
  */
22892
22898
  var AlertBannerService = function (_a) {
22893
22899
  var title = _a.title, _b = _a.hasTopSpacing, hasTopSpacing = _b === void 0 ? false : _b, _c = _a.alertType, alertType = _c === void 0 ? 'alert' : _c, children = _a.children;
22894
- return (React__default.default.createElement(Container$L, { "$alertType": alertType, "data-testid": "AlertBannerService", hasTopSpacing: hasTopSpacing },
22900
+ return (React__default.default.createElement(Container$L, { "$alertType": alertType, "data-testid": "AlertBannerService", "$hasTopSpacing": hasTopSpacing },
22895
22901
  React__default.default.createElement(InnerContainer$2, { "data-testid": "AlertBannerServiceInner" },
22896
22902
  (title === null || title === void 0 ? void 0 : title.trim()) && React__default.default.createElement(Heading, { text: title }),
22897
22903
  children)));
@@ -23653,8 +23659,46 @@ var ImageAndText = function (_a) {
23653
23659
  React__default.default.createElement(Content$5, { dangerouslySetInnerHTML: { __html: sanitizeHtml$1(textContent) } }))))));
23654
23660
  };
23655
23661
 
23662
+ var CaseAppointmentType;
23663
+ (function (CaseAppointmentType) {
23664
+ CaseAppointmentType["Hearing"] = "hearing";
23665
+ CaseAppointmentType["Opening"] = "opening";
23666
+ CaseAppointmentType["Writing"] = "writing";
23667
+ })(CaseAppointmentType || (CaseAppointmentType = {}));
23668
+
23656
23669
  const Container$I = styled__default.default.div`
23657
23670
  display: block;
23671
+ box-sizing: border-box;
23672
+ `;
23673
+
23674
+ const GroupContainer = styled__default.default.div`
23675
+ display: flex;
23676
+ flex-direction: column;
23677
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.large};
23678
+ `;
23679
+
23680
+ const InquestContainer = styled__default.default.div`
23681
+ display: flex;
23682
+ flex-direction: row;
23683
+ align-items: flex-start;
23684
+ justify-content: flex-start;
23685
+ flex-wrap: wrap;
23686
+
23687
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
23688
+ flex-wrap: nowrap;
23689
+ }
23690
+ `;
23691
+
23692
+ const InquestTime = styled__default.default.div`
23693
+ flex-grow: 0;
23694
+ flex-shrink: 0;
23695
+ `;
23696
+
23697
+ const InquestDetails = styled__default.default.div`
23698
+ flex-grow: 1;
23699
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
23700
+ padding-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
23701
+ }
23658
23702
  `;
23659
23703
 
23660
23704
  /**
@@ -23662,32 +23706,100 @@ const Container$I = styled__default.default.div`
23662
23706
  */
23663
23707
  var InquestSchedule = function (_a) {
23664
23708
  var caseAppointments = _a.caseAppointments, title = _a.title, _b = _a.error, error = _b === void 0 ? false : _b;
23709
+ var hearings = caseAppointments.filter(function (appointment) {
23710
+ return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Hearing);
23711
+ });
23712
+ var openings = caseAppointments.filter(function (appointment) {
23713
+ return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Opening);
23714
+ });
23715
+ var writings = caseAppointments.filter(function (appointment) {
23716
+ return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Writing);
23717
+ });
23718
+ var groupHearingsByDay = function (appointments) {
23719
+ return appointments.reduce(function (acc, inquest) {
23720
+ var inquestDate = new Date(inquest.startDateTime);
23721
+ var inquestISODay = inquestDate.toISOString().substring(0, 10);
23722
+ if (!acc[inquestISODay]) {
23723
+ acc[inquestISODay] = [];
23724
+ }
23725
+ acc[inquestISODay].push(inquest);
23726
+ return acc;
23727
+ }, {});
23728
+ };
23729
+ var hearingDayGrouped = groupHearingsByDay(hearings);
23730
+ var openingDayGrouped = groupHearingsByDay(openings);
23731
+ var writingDayGrouped = groupHearingsByDay(writings);
23732
+ var formatDate = function (inquestDay) {
23733
+ return inquestDay
23734
+ .toLocaleDateString('en-GB', {
23735
+ weekday: 'long',
23736
+ day: 'numeric',
23737
+ month: 'long',
23738
+ year: 'numeric',
23739
+ })
23740
+ .replace(',', '');
23741
+ };
23742
+ var formatTime = function (inquestDate) {
23743
+ return inquestDate.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
23744
+ };
23745
+ var transformToSections = function (groupedData) {
23746
+ return Object.keys(groupedData).map(function (day) {
23747
+ var inquestDayDate = new Date(day);
23748
+ return {
23749
+ title: formatDate(inquestDayDate),
23750
+ content: (React__default.default.createElement(Row$1, null, groupedData[day]
23751
+ .sort(function (a, b) {
23752
+ return new Date(a.startDateTime).getTime() - new Date(b.startDateTime).getTime();
23753
+ })
23754
+ .map(function (inquest, key) {
23755
+ var startDateTime = new Date(inquest.startDateTime);
23756
+ var timeOfDeath = new Date(inquest.dateTimeOfDeath);
23757
+ return (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", key: key },
23758
+ React__default.default.createElement(InquestContainer, null,
23759
+ React__default.default.createElement(InquestTime, null,
23760
+ React__default.default.createElement("strong", null, formatTime(startDateTime))),
23761
+ React__default.default.createElement(InquestDetails, null,
23762
+ React__default.default.createElement("strong", null, "Name:"),
23763
+ " ",
23764
+ inquest.fullName,
23765
+ ".",
23766
+ React__default.default.createElement("br", null),
23767
+ React__default.default.createElement("strong", null, "Died:"),
23768
+ " ",
23769
+ formatDate(timeOfDeath),
23770
+ " at ",
23771
+ inquest.placeOfDeath,
23772
+ ". Aged ",
23773
+ inquest.age,
23774
+ ' ',
23775
+ "years.",
23776
+ React__default.default.createElement("br", null),
23777
+ React__default.default.createElement("strong", null, "Court location:"),
23778
+ " ",
23779
+ inquest.courtroomFullAddress,
23780
+ ".",
23781
+ React__default.default.createElement("br", null),
23782
+ React__default.default.createElement("strong", null, "Coroner:"),
23783
+ " ",
23784
+ inquest.coroner,
23785
+ "."))));
23786
+ }))),
23787
+ };
23788
+ });
23789
+ };
23665
23790
  return (React__default.default.createElement(Container$I, { "data-testid": "InquestSchedule" },
23666
- React__default.default.createElement("div", { className: "table-container" },
23667
- React__default.default.createElement("table", null,
23668
- React__default.default.createElement("caption", null, title),
23669
- React__default.default.createElement("thead", null,
23670
- React__default.default.createElement("tr", null,
23671
- React__default.default.createElement("th", { scope: "col" }, "Name"),
23672
- React__default.default.createElement("th", { scope: "col" }, "Age"),
23673
- React__default.default.createElement("th", { scope: "col" }, "Place of death"),
23674
- React__default.default.createElement("th", { scope: "col" }, "Date of death"),
23675
- React__default.default.createElement("th", { scope: "col" }, "Name of coroner"),
23676
- React__default.default.createElement("th", { scope: "col" }, "Location"),
23677
- React__default.default.createElement("th", { scope: "col" }, "Date and time"))),
23678
- React__default.default.createElement("tbody", null,
23679
- caseAppointments.map(function (item, index) { return (React__default.default.createElement("tr", { key: index },
23680
- React__default.default.createElement("td", null, item.fullName),
23681
- React__default.default.createElement("td", null, item.age),
23682
- React__default.default.createElement("td", null, item.placeOfDeath),
23683
- React__default.default.createElement("td", null, new Date(item.dateTimeOfDeath).toLocaleString('en-GB')),
23684
- React__default.default.createElement("td", null, item.coroner),
23685
- React__default.default.createElement("td", null, item.courtroomFullAddress),
23686
- React__default.default.createElement("td", null, new Date(item.startDateTime).toLocaleString('en-GB')))); }),
23687
- caseAppointments.length === 0 && (React__default.default.createElement("tr", null,
23688
- React__default.default.createElement("td", { colSpan: 7 },
23689
- React__default.default.createElement("p", null, "We can't find any results at the moment."),
23690
- error ? (React__default.default.createElement("p", null, " The information is currently unavailable.")) : (React__default.default.createElement("p", null, "There are no inquests scheduled for next month."))))))))));
23791
+ Object.keys(hearingDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
23792
+ React__default.default.createElement(Heading, { level: 2, text: title }),
23793
+ React__default.default.createElement(Accordion$1, { sections: transformToSections(hearingDayGrouped) }))),
23794
+ Object.keys(openingDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
23795
+ React__default.default.createElement(Heading, { level: 2, text: "Inquest Openings" }),
23796
+ React__default.default.createElement(Accordion$1, { sections: transformToSections(openingDayGrouped) }))),
23797
+ Object.keys(writingDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
23798
+ React__default.default.createElement(Heading, { level: 2, text: "Inquests in Writing" }),
23799
+ React__default.default.createElement(Accordion$1, { sections: transformToSections(writingDayGrouped) }))),
23800
+ caseAppointments.length === 0 && (React__default.default.createElement("div", null,
23801
+ React__default.default.createElement("p", null, "We can't find any results at the moment."),
23802
+ error ? (React__default.default.createElement("p", null, " The information is currently unavailable.")) : (React__default.default.createElement("p", null, "There are no inquests scheduled for next month."))))));
23691
23803
  };
23692
23804
 
23693
23805
  const Container$H = styled__default.default.div`
@@ -24149,7 +24261,7 @@ var VideoProvider;
24149
24261
  VideoProvider["Vimeo"] = "Vimeo";
24150
24262
  })(VideoProvider || (VideoProvider = {}));
24151
24263
 
24152
- const VideoContainer = styled__default.default.figure`
24264
+ const VideoContainer$1 = styled__default.default.figure`
24153
24265
  display: block;
24154
24266
  padding-top: 56.25%;
24155
24267
  position: relative;
@@ -24209,7 +24321,7 @@ var Video = function (_a) {
24209
24321
  React.useEffect(function () {
24210
24322
  setNotServer(true);
24211
24323
  }, []);
24212
- return (React__default.default.createElement(React__default.default.Fragment, null, cookiesAccepted && notServer ? (React__default.default.createElement(VideoContainer, { "data-testid": "Video" },
24324
+ return (React__default.default.createElement(React__default.default.Fragment, null, cookiesAccepted && notServer ? (React__default.default.createElement(VideoContainer$1, { "data-testid": "Video" },
24213
24325
  React__default.default.createElement("iframe", { src: embedLink, title: description, allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen;", "data-testid": "VideoIframe" }))) : (React__default.default.createElement(VideoLink, { href: watchLink, title: description, "data-testid": "VideoLink" }, description))));
24214
24326
  };
24215
24327
 
@@ -25078,6 +25190,17 @@ const FooterLink = styled__default.default.a`
25078
25190
  -webkit-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25079
25191
  -moz-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25080
25192
  }
25193
+ &:focus:not(:focus-visible) {
25194
+ box-shadow: none;
25195
+ -webkit-box-shadow: none;
25196
+ -moz-box-shadow: none;
25197
+ }
25198
+ &:focus-visible {
25199
+ ${(props) => props.theme.linkStylesFocus}
25200
+ box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25201
+ -webkit-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25202
+ -moz-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25203
+ }
25081
25204
  &:active {
25082
25205
  ${(props) => props.theme.linkStylesActive}
25083
25206
  box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
@@ -25240,6 +25363,8 @@ const headerThemeStyles = (props) => {
25240
25363
  const Container$w = styled__default.default.header`
25241
25364
  font-family: ${(props) => props.theme.theme_vars.fontstack};
25242
25365
  padding: 3px 0;
25366
+ position: sticky;
25367
+ z-index: 1;
25243
25368
  ${headerThemeStyles}
25244
25369
  `;
25245
25370
 
@@ -25632,9 +25757,19 @@ var Header = function (_a) {
25632
25757
  * Optimised for an image in 16:5 ratio on all but small width screens
25633
25758
  */
25634
25759
  const Container$u = styled__default.default.div`
25635
- background-image: ${(props) =>
25636
- !props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)),` : ``}
25637
- url('${(props) => props.$image}');
25760
+ background-image: ${(props) => {
25761
+ const gradient = !props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75))` : '';
25762
+ const imageUrl = props.$image && props.$image.trim() ? `url('${props.$image}')` : '';
25763
+ if (gradient && imageUrl) {
25764
+ return `${gradient}, ${imageUrl}`;
25765
+ } else if (gradient) {
25766
+ return gradient;
25767
+ } else if (imageUrl) {
25768
+ return imageUrl;
25769
+ } else {
25770
+ return 'none';
25771
+ }
25772
+ }};
25638
25773
 
25639
25774
  padding-bottom: 10px;
25640
25775
  background-position: center;
@@ -25665,6 +25800,7 @@ const InnerContainer = styled__default.default.div`
25665
25800
  margin-right: auto;
25666
25801
  margin-left: auto;
25667
25802
  flex-grow: 1;
25803
+ z-index: 1;
25668
25804
 
25669
25805
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25670
25806
  max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
@@ -25786,16 +25922,95 @@ const Search = styled__default.default.div`
25786
25922
  margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
25787
25923
  `;
25788
25924
 
25925
+ const VideoContainer = styled__default.default.div`
25926
+ position: absolute;
25927
+ width: 100%;
25928
+ @media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
25929
+ height: 580px;
25930
+ }
25931
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25932
+ height: 410px;
25933
+ }
25934
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25935
+ height: 560px;
25936
+ }
25937
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
25938
+ height: 636px;
25939
+ }
25940
+ `;
25941
+
25942
+ const VideoBackground = styled__default.default.video`
25943
+ position: absolute;
25944
+ width: 100%;
25945
+ height: 575px;
25946
+ object-fit: cover;
25947
+ @media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
25948
+ height: 590px;
25949
+ }
25950
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25951
+ height: 420px;
25952
+ }
25953
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25954
+ height: 568px;
25955
+ }
25956
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
25957
+ height: 645px;
25958
+ }
25959
+ `;
25960
+
25961
+ const PlayPauseButton = styled__default.default.button`
25962
+ position: absolute;
25963
+ display: none;
25964
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25965
+ bottom: 20px;
25966
+ right: 20px;
25967
+ display: flex;
25968
+ align-items: center;
25969
+ justify-content: center;
25970
+ z-index: 1;
25971
+ background: rgba(0, 0, 0, 0.5);
25972
+ border: 1px solid white;
25973
+ color: white;
25974
+ font-size: 32px;
25975
+ border-radius: 50%;
25976
+ width: 50px;
25977
+ height: 50px;
25978
+ cursor: pointer;
25979
+ &:hover {
25980
+ background: rgba(0, 0, 0, 0.7);
25981
+ }
25982
+ }
25983
+ `;
25984
+
25789
25985
  /**
25790
25986
  * Hero image banner with optional text and call to action with varying presentation of text area.
25791
25987
  * For optional use at the top of a service landing page, if set in the CMS.
25792
25988
  */
25793
25989
  var HeroImage = function (_a) {
25794
- var headline = _a.headline, content = _a.content, callToActionText = _a.callToActionText, callToActionURL = _a.callToActionURL, _b = _a.callToActionIsPrimary, callToActionIsPrimary = _b === void 0 ? true : _b, _c = _a.backgroundBox, backgroundBox = _c === void 0 ? true : _c, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText, breadcrumb = _a.breadcrumb, customSearch = _a.customSearch;
25990
+ 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;
25991
+ var _d = React.useState(true), isPlaying = _d[0], setIsPlaying = _d[1];
25992
+ var videoRef = React.useRef(null);
25993
+ var togglePlay = function () {
25994
+ if (videoRef.current) {
25995
+ if (isPlaying) {
25996
+ videoRef.current.pause();
25997
+ }
25998
+ else {
25999
+ videoRef.current.play();
26000
+ }
26001
+ setIsPlaying(!isPlaying);
26002
+ }
26003
+ };
25795
26004
  return (React__default.default.createElement(React__default.default.Fragment, null,
25796
26005
  React__default.default.createElement(LazyImage, { src: imageLarge, placeholder: imageSmall, visibilitySensorProps: {
25797
26006
  partialVisibility: true,
25798
26007
  } }, function (src) { return (React__default.default.createElement(Container$u, { "$image": src, "$backgroundBox": backgroundBox, "data-testid": "HeroImage" },
26008
+ heroVideoUrl && (React__default.default.createElement(React__default.default.Fragment, null,
26009
+ React__default.default.createElement(VideoContainer, null,
26010
+ React__default.default.createElement(VideoBackground, { ref: videoRef, autoPlay: true, loop: true, muted: true },
26011
+ React__default.default.createElement("source", { src: heroVideoUrl, type: "video/mp4" }),
26012
+ "Your browser doesn't support this video."),
26013
+ React__default.default.createElement(PlayPauseButton, { onClick: togglePlay }, isPlaying ? '⏸' : '▶')))),
25799
26014
  React__default.default.createElement(InnerContainer, null,
25800
26015
  React__default.default.createElement(Overlay, { "$backgroundBox": backgroundBox, "data-testid": "HeroImageOverlay" },
25801
26016
  breadcrumb && (React__default.default.createElement(BreadcrumbLink, { href: breadcrumb.url, "$backgroundBox": backgroundBox }, breadcrumb.title)),
@@ -27001,9 +27216,18 @@ const Container$l = styled__default.default.main`
27001
27216
  padding: 10px;
27002
27217
  text-align: left;
27003
27218
  }
27004
- td > a {
27005
- padding: 5px 10px;
27219
+
27220
+ td > a:only-child {
27221
+ padding: 12px 20px;
27222
+ display: inline-block;
27223
+ min-height: 44px;
27224
+ min-width: 44px;
27225
+ }
27226
+
27227
+ td > a:not(:only-child) {
27228
+ padding: 0;
27006
27229
  }
27230
+
27007
27231
  th {
27008
27232
  font-weight: bold;
27009
27233
  }
@@ -27883,10 +28107,12 @@ const ListItem = styled__default.default.li`
27883
28107
  background-color: ${(props) => props.theme.theme_vars.colours.action_light};
27884
28108
  color: ${(props) => props.theme.theme_vars.colours.black};
27885
28109
  border-bottom-color: transparent;
27886
-
27887
28110
  &:focus {
27888
28111
  ${focusListItem}
27889
28112
  }
28113
+ &:focus-visible {
28114
+ ${focusListItem}
28115
+ }
27890
28116
  }
27891
28117
  }
27892
28118
  `;
@@ -27902,10 +28128,12 @@ const ListItemLink = styled__default.default.a`
27902
28128
  transition: background-color 0.3s ease 0s;
27903
28129
  background-color: ${(props) => props.theme.theme_vars.colours.action_light}80;
27904
28130
  }
27905
-
27906
28131
  &:focus {
27907
28132
  ${focusListItem}
27908
28133
  }
28134
+ &:focus-visible {
28135
+ ${focusListItem}
28136
+ }
27909
28137
  &:active {
27910
28138
  transform: translateY(1px);
27911
28139
  box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
@@ -30075,7 +30303,7 @@ var PhoneIcon = function (_a) {
30075
30303
  };
30076
30304
 
30077
30305
  var ServiceContact = function (_a) {
30078
- var website = _a.website, email = _a.email, contacts = _a.contacts;
30306
+ var website = _a.website, email = _a.email, contacts = _a.contacts, websiteTitle = _a.websiteTitle;
30079
30307
  var themeContext = React.useContext(styled.ThemeContext);
30080
30308
  return (React__default.default.createElement(Container$6, { "data-testid": "ServiceContact" },
30081
30309
  React__default.default.createElement(Row$1, { hasWrap: false },
@@ -30083,7 +30311,7 @@ var ServiceContact = function (_a) {
30083
30311
  React__default.default.createElement(IconContainer$1, null,
30084
30312
  React__default.default.createElement(WebsiteIcon, { colourFill: themeContext.theme_vars.colours.black })),
30085
30313
  React__default.default.createElement(Content$1, null,
30086
- React__default.default.createElement(WebLink$1, { href: website }, website)))),
30314
+ React__default.default.createElement(WebLink$1, { href: website }, websiteTitle ? "".concat(websiteTitle) : website)))),
30087
30315
  email && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "auto", classes: "striped-contacts" },
30088
30316
  React__default.default.createElement(IconContainer$1, null,
30089
30317
  React__default.default.createElement(EmailIcon, { colourFill: themeContext.theme_vars.colours.black })),
@@ -30273,10 +30501,15 @@ var transformDescriptionDetails = function (accreditations, fees, service_areas,
30273
30501
  };
30274
30502
  var transformSnippet = function (description, extractLength) {
30275
30503
  if (extractLength === void 0) { extractLength = 190; }
30276
- return (sanitizeHtml$1(description, {
30504
+ var sanitized = sanitizeHtml$1(description, {
30277
30505
  allowedTags: [],
30278
30506
  allowedAttributes: {},
30279
- }).substr(0, extractLength) + String.fromCharCode(8230));
30507
+ }).trim();
30508
+ if (!sanitized) {
30509
+ return '';
30510
+ }
30511
+ var snippet = sanitized.substr(0, extractLength);
30512
+ return sanitized.length > extractLength ? snippet + String.fromCharCode(8230) : snippet;
30280
30513
  };
30281
30514
  var transformTaxonomies = function (service_taxonomys, taxonomiesToShow) {
30282
30515
  if (taxonomiesToShow === void 0) { taxonomiesToShow = []; }
@@ -30309,11 +30542,14 @@ var transformTaxonomies = function (service_taxonomys, taxonomiesToShow) {
30309
30542
  var transformAge = function (age, ageInMonths) {
30310
30543
  if (ageInMonths === void 0) { ageInMonths = false; }
30311
30544
  if (age === 0) {
30312
- return age;
30545
+ return age.toString();
30313
30546
  }
30314
30547
  if (ageInMonths) {
30315
30548
  if (age > 36) {
30316
- return Math.ceil(age / 12) + ' years';
30549
+ if (age % 12 === 0) {
30550
+ return Math.ceil(age / 12) + ' years';
30551
+ }
30552
+ return Math.floor(age / 12) + ' years and ' + (age % 12) + (age % 12 === 1 ? ' month' : ' months');
30317
30553
  }
30318
30554
  return "".concat(age, " months");
30319
30555
  }
@@ -30326,7 +30562,7 @@ const Container$5 = styled__default.default.div`
30326
30562
 
30327
30563
  var DirectoryMap = function (_a) {
30328
30564
  var _b, _c;
30329
- var allowCookies = _a.allowCookies, mapProps = _a.mapProps;
30565
+ var _d = _a.allowCookies, allowCookies = _d === void 0 ? true : _d, mapProps = _a.mapProps;
30330
30566
  var cookiesAccepted = wereCookiesAccepted(allowCookies);
30331
30567
  var apiKey = (_b = process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY) !== null && _b !== void 0 ? _b : '';
30332
30568
  var latLong = mapProps.centre.split(',');
@@ -30430,11 +30666,11 @@ var HeartIcon = function (_a) {
30430
30666
  };
30431
30667
 
30432
30668
  var DirectoryAddToShortList = function (_a) {
30433
- var id = _a.id, name = _a.name, snippet = _a.snippet, email = _a.email, website = _a.website, phone = _a.phone;
30669
+ 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;
30434
30670
  var _b = useDirectoryShortListContext(), toggleFavourites = _b.toggleFavourites, isFavourite = _b.isFavourite;
30435
30671
  var themeContext = React.useContext(styled.ThemeContext);
30436
30672
  var favourite = isFavourite(id);
30437
- return (React__default.default.createElement(AddToShortlist, { onClick: function (e) { return toggleFavourites(id, name, snippet, email, website, phone); }, "data-testid": "DirectoryAddToShortList", "$favourite": favourite },
30673
+ return (React__default.default.createElement(AddToShortlist, { onClick: function (e) { return toggleFavourites(id, name, snippet, email, website, phone, addresses, fees); }, "data-testid": "DirectoryAddToShortList", "$favourite": favourite },
30438
30674
  favourite ? (React__default.default.createElement(IconDownload$1, { colourFill: themeContext.theme_vars.colours.negative })) : (React__default.default.createElement(HeartIcon, { colourFill: themeContext.theme_vars.colours.action })),
30439
30675
  favourite ? React__default.default.createElement(React__default.default.Fragment, null, "Remove from shortlist") : React__default.default.createElement(React__default.default.Fragment, null, "Add to shortlist")));
30440
30676
  };
@@ -30503,7 +30739,7 @@ var getIcon = function (profile) {
30503
30739
 
30504
30740
  var DirectoryService = function (_a) {
30505
30741
  var _b, _c, _d, _e;
30506
- 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;
30742
+ 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;
30507
30743
  var labelLetters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L'];
30508
30744
  var _g = React.useState(false), notServer = _g[0], setNotServer = _g[1];
30509
30745
  var themeContext = React.useContext(styled.ThemeContext);
@@ -30527,7 +30763,9 @@ var DirectoryService = function (_a) {
30527
30763
  " Shortlist (",
30528
30764
  favourites.length,
30529
30765
  ")")),
30530
- React__default.default.createElement(DirectoryAddToShortList, { id: id, name: name, snippet: transformSnippet(description, 350), email: email, website: url, phone: (_c = (_b = contacts === null || contacts === void 0 ? void 0 : contacts[0]) === null || _b === void 0 ? void 0 : _b.phones) === null || _c === void 0 ? void 0 : _c.flatMap(function (phone) { return phone.number; }).join(', ') })))))),
30766
+ React__default.default.createElement(DirectoryAddToShortList, { id: id, name: name, snippet: transformSnippet(description, 350), email: email, website: url, phone: (_c = (_b = contacts === null || contacts === void 0 ? void 0 : contacts[0]) === null || _b === void 0 ? void 0 : _b.phones) === null || _c === void 0 ? void 0 : _c.flatMap(function (phone) { return phone.number; }).join(', '), addresses: service_at_locations.flatMap(function (location) {
30767
+ return location.physical_addresses;
30768
+ }), fees: fees })))))),
30531
30769
  service_at_locations.filter(function (location) {
30532
30770
  return location.is_visitable != false;
30533
30771
  }).length > 0 && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
@@ -30542,7 +30780,7 @@ var DirectoryService = function (_a) {
30542
30780
  .filter(function (item) { return item !== '' && item !== address.id; })
30543
30781
  .join(' <br />'),
30544
30782
  } }),
30545
- React__default.default.createElement(Button$4, { url: "https://google.com/maps/dir//".concat(location.latitude, ",").concat(location.longitude), text: "Get directions" }))); }),
30783
+ location.latitude && location.longitude && (React__default.default.createElement(Button$4, { url: "https://google.com/maps/dir//".concat(location.latitude, ",").concat(location.longitude), text: "Get directions" })))); }),
30546
30784
  (location === null || location === void 0 ? void 0 : location.accessibility_for_disabilities.length) > 0 && (React__default.default.createElement(React__default.default.Fragment, null,
30547
30785
  React__default.default.createElement(Heading, { level: 3, text: "Other facilities on site" }),
30548
30786
  React__default.default.createElement("ul", null, location.accessibility_for_disabilities.map(function (accessibility) { return (React__default.default.createElement("li", { key: accessibility.id }, accessibility.accessibility)); })))))); })),
@@ -30574,7 +30812,7 @@ var DirectoryService = function (_a) {
30574
30812
  React__default.default.createElement(MapLink, { href: "https://www.google.com/maps/search/?api=1&query=".concat(service_at_locations[0].latitude, "%2C").concat(service_at_locations[0].longitude) }, "View in Google Maps"))))))),
30575
30813
  (email || url || (contacts === null || contacts === void 0 ? void 0 : contacts.length) > 0) && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
30576
30814
  React__default.default.createElement(Heading, { level: 2, text: "How to contact this service" }),
30577
- React__default.default.createElement(ServiceContact, { email: email, website: url, contacts: contacts }))),
30815
+ React__default.default.createElement(ServiceContact, { email: email, website: url, websiteTitle: websiteUrlTitle, contacts: contacts }))),
30578
30816
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
30579
30817
  React__default.default.createElement(Heading, { level: 2, text: "Description" }),
30580
30818
  React__default.default.createElement("div", null,
@@ -30587,7 +30825,7 @@ var DirectoryService = function (_a) {
30587
30825
  React__default.default.createElement("table", null,
30588
30826
  React__default.default.createElement("thead", null,
30589
30827
  React__default.default.createElement("tr", null,
30590
- React__default.default.createElement("th", { scope: "col" }, "Weekday"),
30828
+ React__default.default.createElement("th", { scope: "col" }, "Opening days"),
30591
30829
  React__default.default.createElement("th", { scope: "col" }, "Opens"),
30592
30830
  React__default.default.createElement("th", { scope: "col" }, "Closes"))),
30593
30831
  React__default.default.createElement("tbody", null, regular_schedules === null || regular_schedules === void 0 ? void 0 : regular_schedules.map(function (schedule, scheduleIndex) { return (React__default.default.createElement("tr", { key: scheduleIndex },
@@ -30653,7 +30891,7 @@ styled__default.default.div`
30653
30891
  color: ${(props) => props.theme.theme_vars.colours.grey_dark};
30654
30892
  `;
30655
30893
 
30656
- const ButtonContainer$1 = styled__default.default.div`
30894
+ const ButtonContainer$2 = styled__default.default.div`
30657
30895
  display: flex;
30658
30896
  align-items: end;
30659
30897
  padding-bottom: 0;
@@ -30661,23 +30899,49 @@ const ButtonContainer$1 = styled__default.default.div`
30661
30899
  `;
30662
30900
 
30663
30901
  const Button$1 = styled__default.default.button`
30664
- border: 1px solid ${(props) => props.theme.theme_vars.colours.white};
30665
- background: ${(props) => props.theme.theme_vars.colours.action};
30666
- color: ${(props) => props.theme.theme_vars.colours.white};
30667
- padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
30668
- cursor: pointer;
30669
- border-radius: ${(props) => props.theme.theme_vars.border_radius};
30670
- min-height: 42px;
30671
- margin-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
30902
+ border: ${(props) => (props.$isWarning ? `3px` : `1px`)} solid
30903
+ ${(props) => (props.$isWarning ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.white)};
30904
+ background: ${(props) =>
30905
+ props.$isWarning ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.action};
30906
+ color: ${(props) =>
30907
+ props.$isWarning ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.white};
30908
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
30909
+ cursor: pointer;
30910
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
30911
+ min-height: 42px;
30912
+ margin-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
30913
+ font-weight: bold;
30672
30914
 
30673
- &:hover {
30674
- background: ${(props) => props.theme.theme_vars.colours.action_dark};
30675
- }
30915
+ &:hover {
30916
+ background: ${(props) =>
30917
+ props.$isWarning ? props.theme.theme_vars.colours.action_light : props.theme.theme_vars.colours.action_dark};
30918
+ color: ${(props) =>
30919
+ props.$isWarning ? props.theme.theme_vars.colours.action_dark : props.theme.theme_vars.colours.white};
30920
+ text-decoration: underline;
30921
+ text-decoration-style: dotted;
30922
+ }
30676
30923
 
30677
- &:focus {
30678
- outline: none;
30679
- background: ${(props) => props.theme.theme_vars.colours.focus};
30680
- }
30924
+ &:focus {
30925
+ ${(props) => props.theme.linkStylesFocus}
30926
+ }
30927
+
30928
+ &:active {
30929
+ ${(props) => props.theme.linkStylesActive}
30930
+ }
30931
+
30932
+ ${(props) => {
30933
+ if (props.size === 'large') {
30934
+ return `
30935
+ font-size: 16px;
30936
+ padding: 14px 24px;
30937
+ `;
30938
+ }
30939
+ }}
30940
+
30941
+ ${(props) =>
30942
+ props.$isWarning && props.size === 'large' && `
30943
+ padding: 12px 24px;
30944
+ `}
30681
30945
  `;
30682
30946
 
30683
30947
  const ButtonText$1 = styled__default.default.span`
@@ -30757,28 +31021,29 @@ const Legend$1 = styled__default.default.legend`
30757
31021
  `;
30758
31022
 
30759
31023
  const LegendButton = styled__default.default.button`
30760
- position: relative;
30761
- background: none;
30762
- border: none;
30763
- color: ${(props) => props.theme.theme_vars.colours.action};
30764
- width: 100%;
30765
- white-space: normal;
30766
- cursor: pointer;
30767
- text-align: left;
30768
- padding-right: 30px;
30769
- padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
30770
- padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
30771
- ${(props) => props.theme.theme_vars.h4}
30772
- ${(props) => props.theme.linkStyles}
30773
- &:hover {
30774
- ${(props) => props.theme.linkStylesHover}
30775
- }
30776
- &:focus {
30777
- ${(props) => props.theme.linkStylesFocus}
30778
- }
30779
- &:active {
30780
- ${(props) => props.theme.linkStylesActive}
30781
- }
31024
+ position: relative;
31025
+ background: none;
31026
+ border: none;
31027
+ color: ${(props) => props.theme.theme_vars.colours.action};
31028
+ width: 100%;
31029
+ white-space: normal;
31030
+ cursor: pointer;
31031
+ text-align: left;
31032
+ padding-right: 30px;
31033
+ padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
31034
+ padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
31035
+ ${(props) => props.theme.theme_vars.h4}
31036
+ ${(props) => props.theme.linkStyles}
31037
+ &:hover {
31038
+ ${(props) => props.theme.linkStylesHover}
31039
+ }
31040
+ &:focus {
31041
+ ${(props) => props.theme.linkStylesFocus}
31042
+ }
31043
+ &:active {
31044
+ ${(props) => props.theme.linkStylesActive}
31045
+ }
31046
+ margin: 0;
30782
31047
  `;
30783
31048
 
30784
31049
  const AccordionIcon = styled__default.default.span`
@@ -30887,6 +31152,14 @@ const MapToggle = styled__default.default.button`
30887
31152
  &:active {
30888
31153
  ${(props) => props.theme.linkStylesActive}
30889
31154
  }
31155
+ ${(props) => {
31156
+ if (props.size === 'large') {
31157
+ return `
31158
+ font-size: 16px;
31159
+ padding: 14px 24px;
31160
+ `;
31161
+ }
31162
+ }}
30890
31163
  `;
30891
31164
 
30892
31165
  const Favourites = styled__default.default.a`
@@ -31092,24 +31365,24 @@ var RadioCheckboxInput = function (_a) {
31092
31365
  };
31093
31366
 
31094
31367
  var DirectoryServiceList = function (_a) {
31095
- 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;
31096
- var _r = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion"), []), accordions = _r[0], setAccordions = _r[1];
31097
- var _s = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion-all"), true), openAll = _s[0], setOpenAll = _s[1];
31098
- var _t = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-show-map"), false), showMap = _t[0], setShowMap = _t[1];
31099
- var _u = React.useState(false), showFilters = _u[0], setShowFilters = _u[1];
31100
- var _v = useDirectoryShortListContext(), _w = _v.favourites, favourites = _w.favourites; _w.setFavourites; _v.toggleFavourites; _v.isFavourite;
31101
- var _x = React.useState(false), notServer = _x[0], setNotServer = _x[1];
31102
- var _y = React.useState(search), searchTerm = _y[0], setSearchTerm = _y[1];
31103
- var _z = React.useState(postcode), postcodeSearch = _z[0], setPostcodeSearch = _z[1];
31368
+ 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;
31369
+ var _u = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion"), []), accordions = _u[0], setAccordions = _u[1];
31370
+ var _v = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion-all"), true), openAll = _v[0], setOpenAll = _v[1];
31371
+ var _w = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-show-map"), false), showMap = _w[0], setShowMap = _w[1];
31372
+ var _x = React.useState(false), showFilters = _x[0], setShowFilters = _x[1];
31373
+ var _y = useDirectoryShortListContext(), _z = _y.favourites, favourites = _z.favourites; _z.setFavourites; _y.toggleFavourites; _y.isFavourite;
31374
+ var _0 = React.useState(false), notServer = _0[0], setNotServer = _0[1];
31375
+ var _1 = React.useState(search), searchTerm = _1[0], setSearchTerm = _1[1];
31376
+ var _2 = React.useState(postcode), postcodeSearch = _2[0], setPostcodeSearch = _2[1];
31104
31377
  var themeContext = React.useContext(styled.ThemeContext);
31105
- var _0 = React.useState(false), filtersActive = _0[0], setFiltersActive = _0[1];
31378
+ var _3 = React.useState(false), filtersActive = _3[0], setFiltersActive = _3[1];
31106
31379
  React.useEffect(function () {
31107
31380
  setNotServer(true);
31108
31381
  setFiltersActive(hasActiveFilters());
31109
31382
  }, []);
31110
31383
  React.useEffect(function () {
31111
31384
  setFiltersActive(hasActiveFilters());
31112
- }, [minimumAge, maximumAge, categories]);
31385
+ }, [minimumAge, maximumAge, categories, search, postcode]);
31113
31386
  if (accordions.length === 0) {
31114
31387
  var tempAccordions_1 = [];
31115
31388
  categories === null || categories === void 0 ? void 0 : categories.forEach(function () {
@@ -31187,7 +31460,7 @@ var DirectoryServiceList = function (_a) {
31187
31460
  lat: parseFloat((_a = service.service_at_locations[0]) === null || _a === void 0 ? void 0 : _a.latitude),
31188
31461
  lng: parseFloat((_b = service.service_at_locations[0]) === null || _b === void 0 ? void 0 : _b.longitude),
31189
31462
  label: labelLetters[index],
31190
- title: "<a href=\"".concat(directoryPath, "/").concat(service.id, "\">").concat(service.name, "</a>"),
31463
+ title: "<a href=".concat(service.id, ">").concat(service.name, "</a>"),
31191
31464
  };
31192
31465
  }),
31193
31466
  };
@@ -31204,7 +31477,9 @@ var DirectoryServiceList = function (_a) {
31204
31477
  }
31205
31478
  };
31206
31479
  var hasActiveFilters = function () {
31207
- return (maximumAge !== '' ||
31480
+ return (search !== '' ||
31481
+ postcode !== '' ||
31482
+ maximumAge !== '' ||
31208
31483
  minimumAge !== '' ||
31209
31484
  categories.some(function (category) {
31210
31485
  return category.options.some(function (option) {
@@ -31220,21 +31495,23 @@ var DirectoryServiceList = function (_a) {
31220
31495
  React__default.default.createElement(Row$1, null,
31221
31496
  React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31222
31497
  React__default.default.createElement(Label$1, { htmlFor: "directorySearch" }, "What are you looking for?"),
31223
- React__default.default.createElement(HintText, { text: "Enter a search word or phrase" }),
31498
+ React__default.default.createElement(HintText, { text: "Enter the name of a specific organisation" }),
31224
31499
  React__default.default.createElement(Input, { name: "directorySearch", type: "text", defaultValue: searchTerm, id: "directorySearch", onChange: function (e) {
31225
31500
  setSearchTerm(e.target.value);
31226
31501
  } })),
31227
- React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31502
+ showPostcodeSearch && (React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31228
31503
  React__default.default.createElement(Label$1, { htmlFor: "postcode" }, "Postcode (optional)"),
31229
- React__default.default.createElement(HintText, { text: "Enter a postcode" }),
31230
- React__default.default.createElement(Input, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); }, autocomplete: "postal-code" })),
31504
+ React__default.default.createElement(HintText, { text: "Enter a postcode to see results within ".concat(proximity, " miles") }),
31505
+ React__default.default.createElement(Input, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); }, autocomplete: "postal-code" }))),
31231
31506
  React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31232
- React__default.default.createElement(ButtonContainer$1, null,
31233
- React__default.default.createElement(Button$1, { onClick: submitSearch, type: "submit" },
31507
+ React__default.default.createElement(ButtonContainer$2, null,
31508
+ React__default.default.createElement(Button$1, { size: "large", onClick: submitSearch, type: "submit" },
31234
31509
  React__default.default.createElement(ButtonText$1, null, "Search"),
31235
- React__default.default.createElement(IconDownload, { colourFill: "#fff" })))),
31510
+ React__default.default.createElement(IconDownload, { colourFill: "#fff" })),
31511
+ filtersActive && (React__default.default.createElement(Button$1, { size: "large", onClick: clearSearch, type: "button", "$isWarning": true },
31512
+ React__default.default.createElement(ButtonText$1, null, "Clear search"))))),
31236
31513
  hasDocuments && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
31237
- React__default.default.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false }))))))),
31514
+ React__default.default.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false, size: "large" }))))))),
31238
31515
  React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
31239
31516
  React__default.default.createElement(FilterToggle, { type: "button", onClick: function (e) { return setShowFilters(!showFilters); } }, showFilters ? "Hide Filters" : "Show Filters"),
31240
31517
  React__default.default.createElement(FilterContainer, { "$showFilters": showFilters },
@@ -31270,14 +31547,16 @@ var DirectoryServiceList = function (_a) {
31270
31547
  React__default.default.createElement(Legend$1, null,
31271
31548
  React__default.default.createElement(LegendButton, { onClick: function (e) { return toggleAccordion(categoryIndex + 1); }, type: "button" },
31272
31549
  category.label,
31273
- React__default.default.createElement(AccordionIcon, { isOpen: accordions[categoryIndex + 1] }))),
31550
+ React__default.default.createElement(AccordionIcon, { "$isOpen": accordions[categoryIndex + 1] }))),
31274
31551
  React__default.default.createElement(Accordion, { "$isOpen": accordions[categoryIndex + 1] },
31275
31552
  React__default.default.createElement(ClearFilter$1, null,
31276
31553
  React__default.default.createElement(TextLink$1, { onClick: function (e) { return clearCategory(categoryIndex); } }, "Clear filter")),
31277
31554
  category.options.map(function (taxonomy) { return (React__default.default.createElement(Category$2, { key: taxonomy.id },
31278
31555
  React__default.default.createElement(RadioCheckboxInput, { name: taxonomy.vocabulary, value: taxonomy.id, label: taxonomy.name, singleSelection: category.singleSelection, checked: taxonomy.checked, onChange: function (e) { return optionChecked(e, categoryIndex, category.singleSelection); } }))); }))))); })))))),
31279
31556
  React__default.default.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
31280
- React__default.default.createElement(Row$1, null, isLoading ? (React__default.default.createElement(LoadingContainer$1, null,
31557
+ React__default.default.createElement(Row$1, null, isError ? (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
31558
+ React__default.default.createElement(AlertBannerService, null,
31559
+ React__default.default.createElement("p", null, "Sorry, there was a problem fetching results. Please try again later.")))) : isLoading ? (React__default.default.createElement(LoadingContainer$1, null,
31281
31560
  React__default.default.createElement(LoadingSpinner, null),
31282
31561
  React__default.default.createElement("p", null, "Loading"))) : (React__default.default.createElement(React__default.default.Fragment, null,
31283
31562
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
@@ -31289,7 +31568,7 @@ var DirectoryServiceList = function (_a) {
31289
31568
  " out of ",
31290
31569
  totalResults.toLocaleString())) : (React__default.default.createElement(ResultInfo$1, null, "No results found")),
31291
31570
  React__default.default.createElement(FavouritesContainer, null,
31292
- (services === null || services === void 0 ? void 0 : services.length) > 0 && (React__default.default.createElement(MapToggle, { type: "button", onClick: function (e) { return setShowMap(!showMap); } }, showMap ? "Hide Map" : "Show Map")),
31571
+ (services === null || services === void 0 ? void 0 : services.length) > 0 && (React__default.default.createElement(MapToggle, { type: "button", size: "large", onClick: function (e) { return setShowMap(!showMap); } }, showMap ? "Hide Map" : "Show Map")),
31293
31572
  React__default.default.createElement(Favourites, { href: shortListPath },
31294
31573
  React__default.default.createElement(HeartIcon, { colourFill: themeContext.theme_vars.colours.action }),
31295
31574
  " Shortlist (",
@@ -31299,14 +31578,14 @@ var DirectoryServiceList = function (_a) {
31299
31578
  React__default.default.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber })),
31300
31579
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" }, notServer && React__default.default.createElement(React__default.default.Fragment, null, (services === null || services === void 0 ? void 0 : services.length) > 0 && showMap && React__default.default.createElement(DirectoryMap, { mapProps: mapProps }))),
31301
31580
  services.map(function (service, index) {
31302
- var _a, _b, _c, _d, _e, _f;
31581
+ var _a, _b, _c, _d, _e, _f, _g;
31303
31582
  var snippet = transformSnippet(service.description, extractLength);
31304
31583
  return (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", key: service.id },
31305
31584
  React__default.default.createElement(ServiceContainer, { "$resultNumber": index },
31306
31585
  React__default.default.createElement(Row$1, null,
31307
31586
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
31308
31587
  React__default.default.createElement(ServiceHeader, null,
31309
- React__default.default.createElement(ServiceLink$1, { href: "".concat(directoryPath, "/").concat(service.id) }, service.name),
31588
+ React__default.default.createElement(ServiceLink$1, { href: "".concat(service.id) }, service.name),
31310
31589
  showMap && (React__default.default.createElement(MarkerContainer, null,
31311
31590
  React__default.default.createElement("span", null, labelLetters[index]),
31312
31591
  React__default.default.createElement(PinIcon, { colourFill: themeContext.theme_vars.colours.action_dark }))))),
@@ -31322,7 +31601,9 @@ var DirectoryServiceList = function (_a) {
31322
31601
  ' ',
31323
31602
  transformAge(eligibility.maximum_age, ageInMonths))); })))),
31324
31603
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
31325
- React__default.default.createElement(DirectoryAddToShortList, { id: service.id, name: service.name, snippet: snippet, email: service.email, website: service.url, phone: (_f = (_e = (_d = service.contacts) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.phones) === null || _f === void 0 ? void 0 : _f.flatMap(function (phone) { return phone.number; }).join(', ') }))))));
31604
+ React__default.default.createElement(DirectoryAddToShortList, { id: service.id, name: service.name, snippet: snippet, email: service.email, website: service.url, phone: (_f = (_e = (_d = service.contacts) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.phones) === null || _f === void 0 ? void 0 : _f.flatMap(function (phone) { return phone.number; }).join(', '), addresses: (_g = service.service_at_locations) === null || _g === void 0 ? void 0 : _g.flatMap(function (location) {
31605
+ return location.physical_addresses;
31606
+ }), fees: service.fees }))))));
31326
31607
  }),
31327
31608
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
31328
31609
  React__default.default.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber })))))))));
@@ -31330,71 +31611,96 @@ var DirectoryServiceList = function (_a) {
31330
31611
 
31331
31612
  const Container$1 = styled__default.default.div`
31332
31613
  display: block;
31614
+
31615
+ @media print {
31616
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small} !important;
31617
+ [data-testid='Column'] {
31618
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.extra_small} !important;
31619
+ }
31620
+
31621
+ .favourite-outer:nth-of-type(2n + 1) {
31622
+ page-break-after: always;
31623
+ }
31624
+
31625
+ .favourite-outer:last-of-type {
31626
+ page-break-after: avoid !important;
31627
+ }
31628
+ }
31333
31629
  `;
31334
31630
 
31335
31631
  const ServiceLink = styled__default.default.a`
31336
- display: block;
31337
- margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
31338
- ${(props) => props.theme.theme_vars.h4}
31339
- ${(props) => props.theme.linkStyles}
31340
- &:hover {
31341
- ${(props) => props.theme.linkStylesHover}
31342
- }
31343
- &:focus {
31344
- ${(props) => props.theme.linkStylesFocus}
31345
- }
31346
- &:active {
31347
- ${(props) => props.theme.linkStylesActive}
31348
- }
31632
+ display: block;
31633
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
31634
+ ${(props) => props.theme.theme_vars.h4}
31635
+ ${(props) => props.theme.linkStyles}
31636
+ &:hover {
31637
+ ${(props) => props.theme.linkStylesHover}
31638
+ }
31639
+ &:focus {
31640
+ ${(props) => props.theme.linkStylesFocus}
31641
+ }
31642
+ &:active {
31643
+ ${(props) => props.theme.linkStylesActive}
31644
+ }
31349
31645
 
31350
- @media print {
31351
- color: ${(props) => props.theme.theme_vars.colours.black} !important;
31352
- text-decoration: none !important;
31353
- }
31646
+ @media print {
31647
+ color: ${(props) => props.theme.theme_vars.colours.black} !important;
31648
+ text-decoration: none !important;
31649
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
31650
+ margin-bottom: 0;
31651
+ }
31354
31652
  `;
31355
31653
 
31356
31654
  const PrintLink = styled__default.default.div`
31357
- p {
31358
- display: none;
31359
- }
31360
-
31361
- @media print {
31362
31655
  p {
31363
- display: block;
31656
+ display: none;
31657
+ }
31658
+
31659
+ @media print {
31660
+ p {
31661
+ display: none;
31662
+ margin-bottom: 0 !important;
31663
+ }
31364
31664
  }
31665
+ `;
31666
+
31667
+ const SnippetContainer = styled__default.default.div`
31668
+ @media print {
31669
+ display: flex;
31670
+ flex-wrap: nowrap;
31365
31671
  }
31366
31672
  `;
31367
31673
 
31368
31674
  const QRCodeContainer = styled__default.default.div`
31369
- max-width: 80px;
31370
- margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
31371
- display: none;
31372
- float: right;
31675
+ max-width: 80px;
31676
+ display: none;
31373
31677
 
31374
- @media print {
31375
- display: block;
31376
- }
31678
+ @media print {
31679
+ display: block;
31680
+ margin-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
31681
+ }
31377
31682
  `;
31378
31683
 
31379
31684
  const FavouriteContainer = styled__default.default.div`
31380
- background: ${(props) =>
31381
- props.theme.cardinal_name === 'north'
31382
- ? props.theme.theme_vars.colours.white
31383
- : props.theme.theme_vars.colours.grey_light};
31384
- box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
31385
- transition: box-shadow 0.3s ease;
31386
- border-bottom: 5px solid ${(props) => props.theme.theme_vars.colours.action};
31387
- border-radius: ${(props) => props.theme.theme_vars.border_radius};
31388
- padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31685
+ background: ${(props) =>
31686
+ props.theme.cardinal_name === 'north'
31687
+ ? props.theme.theme_vars.colours.white
31688
+ : props.theme.theme_vars.colours.grey_light};
31689
+ box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
31690
+ transition: box-shadow 0.3s ease;
31691
+ border-bottom: 5px solid ${(props) => props.theme.theme_vars.colours.action};
31692
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
31693
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31389
31694
 
31390
- @media print {
31391
- box-shadow: none;
31392
- border: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
31393
- background: none;
31394
- }
31695
+ @media print {
31696
+ box-shadow: none;
31697
+ border: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
31698
+ background: none;
31699
+ padding: 0 ${(props) => props.theme.theme_vars.spacingSizes.small};
31700
+ }
31395
31701
  `;
31396
31702
 
31397
- const PrintContainer = styled__default.default.div`
31703
+ const ButtonContainer$1 = styled__default.default.div`
31398
31704
  display: flex;
31399
31705
  justify-content: flex-end;
31400
31706
 
@@ -31403,7 +31709,7 @@ const PrintContainer = styled__default.default.div`
31403
31709
  }
31404
31710
  `;
31405
31711
 
31406
- const PrintButton = styled__default.default.button`
31712
+ const ActionButton = styled__default.default.button`
31407
31713
  border: 2px solid ${(props) => props.theme.theme_vars.colours.action};
31408
31714
  border-radius: ${(props) => props.theme.theme_vars.border_radius};
31409
31715
  background: ${(props) => props.theme.theme_vars.colours.action};
@@ -31415,6 +31721,7 @@ const PrintButton = styled__default.default.button`
31415
31721
  flex-direction: row;
31416
31722
  justify-content: flex-start;
31417
31723
  align-items: center;
31724
+ margin-left: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31418
31725
  &:hover {
31419
31726
  ${(props) => props.theme.linkStylesHover}
31420
31727
  color: ${(props) => props.theme.theme_vars.colours.white};
@@ -31437,6 +31744,53 @@ const AddContainer = styled__default.default.div`
31437
31744
  }
31438
31745
  `;
31439
31746
 
31747
+ const SubTitle = styled__default.default.p`
31748
+ font-weight: bold;
31749
+ margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31750
+ `;
31751
+
31752
+ const ClearShortlistButton = styled__default.default.button`
31753
+ border: 1px solid ${(props) => props.theme.theme_vars.colours.negative};
31754
+ background: ${(props) => props.theme.theme_vars.colours.white};
31755
+ color: ${(props) => props.theme.theme_vars.colours.negative};
31756
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
31757
+ cursor: pointer;
31758
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
31759
+ min-height: 42px;
31760
+ font-weight: bold;
31761
+
31762
+ &:hover {
31763
+ background: ${(props) => props.theme.theme_vars.colours.action_light};
31764
+ color: ${(props) => props.theme.theme_vars.colours.action_dark};
31765
+ text-decoration: underline;
31766
+ text-decoration-style: dotted;
31767
+ }
31768
+
31769
+ &:focus {
31770
+ ${(props) => props.theme.linkStylesFocus}
31771
+ }
31772
+
31773
+ &:active {
31774
+ ${(props) => props.theme.linkStylesActive}
31775
+ }
31776
+ `;
31777
+
31778
+ const AddressContainer = styled__default.default.div`
31779
+ display: block;
31780
+
31781
+ @media print {
31782
+ display: none;
31783
+ }
31784
+ `;
31785
+
31786
+ const PrintAddress = styled__default.default.div`
31787
+ display: none;
31788
+
31789
+ @media print {
31790
+ display: block;
31791
+ }
31792
+ `;
31793
+
31440
31794
  var lib = {};
31441
31795
 
31442
31796
  var mode$1 = {
@@ -32796,32 +33150,82 @@ QRCode.defaultProps = defaultProps;
32796
33150
  var _default = lib.default = QRCode;
32797
33151
 
32798
33152
  var DirectoryShortList = function (_a) {
32799
- var directoryPath = _a.directoryPath;
32800
- var favourites = useDirectoryShortListContext().favourites.favourites;
32801
- var _b = React.useState(false), notServer = _b[0], setNotServer = _b[1];
33153
+ _a.directoryPath;
33154
+ var _b = useDirectoryShortListContext(), favourites = _b.favourites.favourites, clearShortlist = _b.clearShortlist;
33155
+ var _c = React.useState(false), notServer = _c[0], setNotServer = _c[1];
32802
33156
  React.useEffect(function () {
32803
33157
  setNotServer(true);
32804
33158
  }, []);
33159
+ var confirmClear = function () {
33160
+ if (window.confirm('Are you sure you want to clear your shortlist?')) {
33161
+ clearShortlist();
33162
+ }
33163
+ };
33164
+ var formatAddress = function (address) {
33165
+ return Object.values(address)
33166
+ .filter(function (item) { return item !== '' && item !== address.id && item !== address.country; })
33167
+ .join(', ');
33168
+ };
33169
+ var copyToClipboard = function () { return __awaiter(void 0, void 0, void 0, function () {
33170
+ var data;
33171
+ return __generator(this, function (_b) {
33172
+ switch (_b.label) {
33173
+ case 0:
33174
+ data = favourites.map(function (favourite) {
33175
+ var _a, _b, _c, _d;
33176
+ var address = favourite.addresses.length > 0 ? formatAddress(favourite.addresses[0]) : '';
33177
+ 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 ");
33178
+ });
33179
+ _b.label = 1;
33180
+ case 1:
33181
+ _b.trys.push([1, 3, , 4]);
33182
+ return [4 /*yield*/, navigator.clipboard.writeText(data.join('')).then(function () {
33183
+ window.alert('Copied to clipboard');
33184
+ })];
33185
+ case 2:
33186
+ _b.sent();
33187
+ return [3 /*break*/, 4];
33188
+ case 3:
33189
+ _b.sent();
33190
+ window.alert('Unable to copy');
33191
+ return [3 /*break*/, 4];
33192
+ case 4: return [2 /*return*/];
33193
+ }
33194
+ });
33195
+ }); };
32805
33196
  return (React__default.default.createElement(Container$1, { "data-testid": "DirectoryShortList" }, notServer && (React__default.default.createElement(Row$1, null, favourites.length > 0 ? (React__default.default.createElement(React__default.default.Fragment, null,
32806
33197
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
32807
- React__default.default.createElement(PrintContainer, null,
32808
- React__default.default.createElement(PrintButton, { onClick: function () { return window.print(); } }, "Print Shortlist"))),
32809
- favourites.map(function (favourite) { return (React__default.default.createElement(Column, { key: favourite.id, small: "full", medium: "full", large: "full" },
32810
- React__default.default.createElement(FavouriteContainer, null,
32811
- React__default.default.createElement(Row$1, null,
32812
- React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
32813
- React__default.default.createElement(QRCodeContainer, null,
32814
- React__default.default.createElement(_default, { value: "".concat(directoryPath, "/").concat(favourite.id), size: 256, style: { height: 'auto', maxWidth: '100%', width: '100%' }, viewBox: "0 0 256 256" })),
32815
- React__default.default.createElement(ServiceLink, { href: "".concat(directoryPath, "/").concat(favourite.id) }, favourite.name),
32816
- React__default.default.createElement(PrintLink, null,
32817
- React__default.default.createElement("p", null, "".concat(directoryPath, "/").concat(favourite.id)))),
32818
- React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-half" },
32819
- React__default.default.createElement("div", null, favourite.snippet)),
32820
- React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-half" },
32821
- React__default.default.createElement(SummaryList, { terms: transformService(favourite.email, favourite.website, favourite.phone), hasMargin: false })),
32822
- React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
32823
- React__default.default.createElement(AddContainer, null,
32824
- React__default.default.createElement(DirectoryAddToShortList, { id: favourite.id, name: favourite.name, snippet: favourite.snippet, email: favourite.email, website: favourite.website, phone: favourite.phone }))))))); }))) : (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
33198
+ React__default.default.createElement(ButtonContainer$1, null,
33199
+ React__default.default.createElement(ClearShortlistButton, { onClick: confirmClear }, "Clear Shortlist"),
33200
+ React__default.default.createElement(ActionButton, { onClick: copyToClipboard }, "Copy To Clipboard"),
33201
+ React__default.default.createElement(ActionButton, { onClick: function () { return window.print(); } }, "Print Shortlist"))),
33202
+ favourites.map(function (favourite) {
33203
+ var _a, _b;
33204
+ return (React__default.default.createElement(Column, { key: favourite.id, small: "full", medium: "full", large: "full", classes: "favourite-outer" },
33205
+ React__default.default.createElement(FavouriteContainer, null,
33206
+ React__default.default.createElement(Row$1, null,
33207
+ React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
33208
+ React__default.default.createElement(ServiceLink, { href: "".concat(favourite.id) }, favourite.name),
33209
+ React__default.default.createElement(PrintLink, null,
33210
+ React__default.default.createElement("p", null, "".concat(favourite.id)))),
33211
+ React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-half" },
33212
+ React__default.default.createElement(SnippetContainer, null,
33213
+ React__default.default.createElement("div", null, favourite.snippet),
33214
+ React__default.default.createElement(QRCodeContainer, null,
33215
+ React__default.default.createElement(_default, { value: "".concat(favourite.id), size: 256, style: { height: 'auto', maxWidth: '100%', width: '100%' }, viewBox: "0 0 256 256" }))),
33216
+ ((_a = favourite.addresses) === null || _a === void 0 ? void 0 : _a.length) > 0 && (React__default.default.createElement(React__default.default.Fragment, null,
33217
+ React__default.default.createElement(AddressContainer, null,
33218
+ React__default.default.createElement(SubTitle, null, "Address"),
33219
+ ((_b = favourite.addresses) === null || _b === void 0 ? void 0 : _b.length) === 1 ? (React__default.default.createElement("p", null, formatAddress(favourite.addresses[0]))) : (React__default.default.createElement("ul", null, favourite.addresses.map(function (address) { return (React__default.default.createElement("li", { key: address.id }, formatAddress(address))); })))),
33220
+ React__default.default.createElement(PrintAddress, null,
33221
+ React__default.default.createElement(SummaryList, { terms: [{ term: 'Address', detail: formatAddress(favourite.addresses[0]) }], hasMargin: false }))))),
33222
+ React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-half" },
33223
+ React__default.default.createElement(SummaryList, { terms: transformService(favourite.email, favourite.website, favourite.phone), hasMargin: false }),
33224
+ favourite.fees && (React__default.default.createElement(SummaryList, { terms: [{ term: 'Cost', detail: favourite.fees }], hasMargin: false }))),
33225
+ React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
33226
+ React__default.default.createElement(AddContainer, null,
33227
+ React__default.default.createElement(DirectoryAddToShortList, { id: favourite.id, name: favourite.name, snippet: favourite.snippet, email: favourite.email, website: favourite.website, phone: favourite.phone, addresses: favourite.addresses })))))));
33228
+ }))) : (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
32825
33229
  React__default.default.createElement(FavouriteContainer, null,
32826
33230
  React__default.default.createElement("p", null, "No items in the shortlist"))))))));
32827
33231
  };
@@ -32956,8 +33360,8 @@ const LoadingContainer = styled__default.default.div`
32956
33360
  `;
32957
33361
 
32958
33362
  var DirectoryDocumentList = function (_a) {
32959
- 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;
32960
- var _g = React.useState(search), searchTerm = _g[0], setSearchTerm = _g[1];
33363
+ 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;
33364
+ var _h = React.useState(search), searchTerm = _h[0], setSearchTerm = _h[1];
32961
33365
  var submitSearch = function (e) {
32962
33366
  e.preventDefault();
32963
33367
  setSearch(searchTerm);
@@ -32996,7 +33400,7 @@ var DirectoryDocumentList = function (_a) {
32996
33400
  React__default.default.createElement(Row$1, null,
32997
33401
  React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
32998
33402
  React__default.default.createElement(Label, { htmlFor: "directorySearch" }, "What are you looking for?"),
32999
- React__default.default.createElement(HintText, { text: "Enter a search word or phrase" }),
33403
+ React__default.default.createElement(HintText, { text: "Enter the name of a specific organisation" }),
33000
33404
  React__default.default.createElement(Input, { name: "directorySearch", type: "text", defaultValue: searchTerm, id: "directorySearch", onChange: function (e) {
33001
33405
  setSearchTerm(e.target.value);
33002
33406
  } })),
@@ -33020,7 +33424,9 @@ var DirectoryDocumentList = function (_a) {
33020
33424
  React__default.default.createElement(RadioCheckboxInput, { name: taxonomy.vocabulary, value: taxonomy.id, label: taxonomy.name, singleSelection: category.singleSelection, checked: taxonomy.checked, onChange: function (e) { return optionChecked(e, categoryIndex, category.singleSelection); } }))); })))); }))),
33021
33425
  React__default.default.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
33022
33426
  React__default.default.createElement(Row$1, null,
33023
- isLoading ? (React__default.default.createElement(LoadingContainer, null,
33427
+ isError ? (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
33428
+ React__default.default.createElement(AlertBannerService, null,
33429
+ React__default.default.createElement("p", null, "Sorry, there was a problem fetching results. Please try again later.")))) : isLoading ? (React__default.default.createElement(LoadingContainer, null,
33024
33430
  React__default.default.createElement(LoadingSpinner, null),
33025
33431
  React__default.default.createElement("p", null, "Loading"))) : (React__default.default.createElement(React__default.default.Fragment, null,
33026
33432
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" }, (documents === null || documents === void 0 ? void 0 : documents.length) > 0 ? (React__default.default.createElement(ResultInfo, null,