@nnc-digital/nnc-design-system 1.0.0-alpha5 → 1.0.0-alpha51

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 (540) hide show
  1. package/build/ThemeVars.types.d.ts +60 -0
  2. package/build/index.js +445 -155
  3. package/build/index.js.map +1 -1
  4. package/build/index.mjs.js +445 -155
  5. package/build/index.mjs.js.map +1 -1
  6. package/build/library/components/AlphabeticalDirectory/AlphabeticalDirectory.d.ts +4 -4
  7. package/build/library/components/AlphabeticalDirectory/AlphabeticalDirectory.types.d.ts +26 -26
  8. package/build/library/components/Autocomplete/Autocomplete.d.ts +9 -9
  9. package/build/library/components/Autocomplete/Autocomplete.storydata.d.ts +47 -47
  10. package/build/library/components/Autocomplete/Autocomplete.test.d.ts +1 -0
  11. package/build/library/components/Autocomplete/Autocomplete.types.d.ts +78 -78
  12. package/build/library/components/BackToTop/BackToTop.d.ts +4 -4
  13. package/build/library/components/BackToTop/BackToTop.test.d.ts +1 -0
  14. package/build/library/components/BackToTop/BackToTop.types.d.ts +6 -6
  15. package/build/library/components/BinCollection/BinCollection.d.ts +7 -7
  16. package/build/library/components/BinCollection/BinCollection.styles.d.ts +2937 -15
  17. package/build/library/components/BinCollection/BinCollection.test.d.ts +1 -0
  18. package/build/library/components/BinCollection/BinCollection.testdata.d.ts +34 -34
  19. package/build/library/components/BinCollection/BinCollection.types.d.ts +68 -69
  20. package/build/library/components/Button/Button.d.ts +7 -7
  21. package/build/library/components/Button/Button.types.d.ts +43 -43
  22. package/build/library/components/Card/Card.d.ts +7 -7
  23. package/build/library/components/Card/Card.test.d.ts +1 -0
  24. package/build/library/components/Card/Card.types.d.ts +36 -36
  25. package/build/library/components/CheckboxListFilter/CheckboxListFilter.d.ts +4 -4
  26. package/build/library/components/CheckboxListFilter/CheckboxListFilter.test.d.ts +1 -0
  27. package/build/library/components/CheckboxListFilter/CheckboxListFilter.types.d.ts +36 -36
  28. package/build/library/components/Column/Column.d.ts +4 -4
  29. package/build/library/components/Column/Column.test.d.ts +1 -0
  30. package/build/library/components/Column/Column.types.d.ts +35 -36
  31. package/build/library/components/CustomSearch/CustomSearch.d.ts +4 -4
  32. package/build/library/components/CustomSearch/CustomSearch.storydata.d.ts +2 -2
  33. package/build/library/components/CustomSearch/CustomSearch.test.d.ts +1 -0
  34. package/build/library/components/CustomSearch/CustomSearch.types.d.ts +34 -34
  35. package/build/library/components/DropDownFilter/DropDownFilter.d.ts +4 -4
  36. package/build/library/components/DropDownFilter/DropDownFilter.types.d.ts +32 -32
  37. package/build/library/components/DropDownSelect/DropDownSelect.d.ts +4 -4
  38. package/build/library/components/DropDownSelect/DropDownSelect.types.d.ts +36 -36
  39. package/build/library/components/DynamicIcon/DynamicIcon.d.ts +7 -7
  40. package/build/library/components/DynamicIcon/DynamicIcon.test.d.ts +1 -0
  41. package/build/library/components/DynamicIcon/DynamicIcon.types.d.ts +10 -10
  42. package/build/library/components/FileDownload/FileDownload.d.ts +7 -7
  43. package/build/library/components/FileDownload/FileDownload.test.d.ts +1 -0
  44. package/build/library/components/FileDownload/FileDownload.types.d.ts +22 -22
  45. package/build/library/components/FormButton/FormButton.d.ts +7 -7
  46. package/build/library/components/FormButton/FormButton.types.d.ts +26 -27
  47. package/build/library/components/FormWithLine/FormWithLine.d.ts +7 -7
  48. package/build/library/components/FormWithLine/FormWithLine.types.d.ts +39 -39
  49. package/build/library/components/Heading/Heading.d.ts +7 -7
  50. package/build/library/components/Heading/Heading.types.d.ts +10 -10
  51. package/build/library/components/HeadingWithIcon/HeadingWithIcon.d.ts +7 -7
  52. package/build/library/components/HeadingWithIcon/HeadingWithIcon.test.d.ts +1 -0
  53. package/build/library/components/HeadingWithIcon/HeadingWithIcon.types.d.ts +18 -18
  54. package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.d.ts +4 -4
  55. package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.test.d.ts +1 -0
  56. package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.types.d.ts +14 -14
  57. package/build/library/components/HintText/HintText.d.ts +7 -7
  58. package/build/library/components/HintText/HintText.types.d.ts +6 -6
  59. package/build/library/components/Input/Input.d.ts +8 -8
  60. package/build/library/components/Input/Input.types.d.ts +52 -45
  61. package/build/library/components/LoadingSpinner/LoadingSpinner.d.ts +4 -4
  62. package/build/library/components/LoadingSpinner/LoadingSpinner.types.d.ts +2 -2
  63. package/build/library/components/Map/Map.d.ts +7 -7
  64. package/build/library/components/Map/Map.types.d.ts +15 -16
  65. package/build/library/components/MapMarker/MapMarker.d.ts +6 -7
  66. package/build/library/components/Pagination/Pagination.d.ts +4 -4
  67. package/build/library/components/Pagination/Pagination.test.d.ts +1 -0
  68. package/build/library/components/Pagination/Pagination.types.d.ts +23 -23
  69. package/build/library/components/PostCodeAddressDropdown/PostCodeAddressDropdown.d.ts +7 -7
  70. package/build/library/components/PostCodeAddressDropdown/PostCodeAddressDropdown.types.d.ts +2 -2
  71. package/build/library/components/PostCodeAddressSearch/PostCodeAddressSearch.d.ts +7 -7
  72. package/build/library/components/PostCodeAddressSearch/PostCodeAddressSearch.types.d.ts +23 -23
  73. package/build/library/components/PostCodeAddressTable/PostCodeAddressTable.d.ts +4 -4
  74. package/build/library/components/PostCodeAddressTable/PostCodeAddressTable.types.d.ts +2 -2
  75. package/build/library/components/PostCodeSearch/PostCodeSearch.d.ts +7 -7
  76. package/build/library/components/PostCodeSearch/PostCodeSearch.test.d.ts +1 -0
  77. package/build/library/components/PostCodeSearch/PostCodeSearch.types.d.ts +52 -52
  78. package/build/library/components/PromotedLinks/PromotedLinks.d.ts +4 -4
  79. package/build/library/components/PromotedLinks/PromotedLinks.test.d.ts +1 -0
  80. package/build/library/components/PromotedLinks/PromotedLinks.types.d.ts +20 -20
  81. package/build/library/components/RadioCheckboxInput/RadioCheckboxInput.d.ts +4 -4
  82. package/build/library/components/RadioCheckboxInput/RadioCheckboxInput.test.d.ts +1 -0
  83. package/build/library/components/RadioCheckboxInput/RadioCheckboxInput.types.d.ts +26 -27
  84. package/build/library/components/RemovableTag/RemovableTag.d.ts +4 -4
  85. package/build/library/components/RemovableTag/RemovableTag.types.d.ts +8 -8
  86. package/build/library/components/RemoveAllFilters/RemoveAllFilters.d.ts +4 -4
  87. package/build/library/components/RemoveAllFilters/RemoveAllFilters.types.d.ts +3 -3
  88. package/build/library/components/Row/Row.d.ts +4 -4
  89. package/build/library/components/Row/Row.test.d.ts +1 -0
  90. package/build/library/components/Row/Row.types.d.ts +20 -20
  91. package/build/library/components/SignpostLinksList/SignpostLinksList.d.ts +4 -4
  92. package/build/library/components/SignpostLinksList/SignpostLinksList.types.d.ts +24 -24
  93. package/build/library/components/SortBy/SortBy.d.ts +4 -4
  94. package/build/library/components/SortBy/SortBy.types.d.ts +20 -20
  95. package/build/library/components/StaticMap/StaticMap.d.ts +7 -7
  96. package/build/library/components/StaticMap/StaticMap.test.d.ts +1 -0
  97. package/build/library/components/StaticMap/StaticMap.types.d.ts +52 -52
  98. package/build/library/components/SummaryList/SummaryList.d.ts +4 -4
  99. package/build/library/components/SummaryList/SummaryList.test.d.ts +1 -0
  100. package/build/library/components/SummaryList/SummaryList.types.d.ts +21 -21
  101. package/build/library/components/TextInput/TextInput.d.ts +7 -7
  102. package/build/library/components/TextInput/TextInput.types.d.ts +38 -38
  103. package/build/library/components/icons/ChevronIcon/ChevronIcon.d.ts +4 -4
  104. package/build/library/components/icons/ChevronIcon/ChevronIcon.types.d.ts +10 -10
  105. package/build/library/components/icons/CloseIcon/CloseIcon.d.ts +4 -4
  106. package/build/library/components/icons/CloseIcon/CloseIcon.types.d.ts +6 -6
  107. package/build/library/components/icons/DownloadFileIcon/DownloadFileIcon.d.ts +4 -4
  108. package/build/library/components/icons/DownloadFileIcon/DownloadFileIcon.types.d.ts +6 -6
  109. package/build/library/components/icons/EmailIcon/EmailIcon.d.ts +4 -4
  110. package/build/library/components/icons/EmailIcon/EmailIcon.types.d.ts +6 -6
  111. package/build/library/components/icons/FacebookIcon/Icon.d.ts +4 -4
  112. package/build/library/components/icons/HeartIcon/HeartIcon.d.ts +7 -7
  113. package/build/library/components/icons/HeartIcon/HeartIcon.types.d.ts +6 -6
  114. package/build/library/components/icons/InstagramIcon/Icon.d.ts +4 -4
  115. package/build/library/components/icons/LinkIcon/LinkIcon.d.ts +4 -4
  116. package/build/library/components/icons/LinkIcon/LinkIcon.types.d.ts +6 -6
  117. package/build/library/components/icons/LinkedInIcon/Icon.d.ts +4 -4
  118. package/build/library/components/icons/PhoneIcon/PhoneIcon.d.ts +4 -4
  119. package/build/library/components/icons/PhoneIcon/PhoneIcon.types.d.ts +6 -6
  120. package/build/library/components/icons/PinIcon/PinIcon.d.ts +7 -7
  121. package/build/library/components/icons/PinIcon/PinIcon.types.d.ts +6 -6
  122. package/build/library/components/icons/SearchIcon/SearchIcon.d.ts +4 -4
  123. package/build/library/components/icons/SearchIcon/SearchIcon.types.d.ts +6 -6
  124. package/build/library/components/icons/TwitterIcon/Icon.d.ts +4 -4
  125. package/build/library/components/icons/WebsiteIcon/WebsiteIcon.d.ts +4 -4
  126. package/build/library/components/icons/WebsiteIcon/WebsiteIcon.types.d.ts +6 -6
  127. package/build/library/components/icons/YouTubeIcon/Icon.d.ts +4 -4
  128. package/build/library/components/icons/services/AccessibleParking/Icon.d.ts +4 -4
  129. package/build/library/components/icons/services/AccessibleParking/IconHover.d.ts +4 -4
  130. package/build/library/components/icons/services/Address/Icon.d.ts +4 -4
  131. package/build/library/components/icons/services/Address/IconHover.d.ts +4 -4
  132. package/build/library/components/icons/services/AddressChange/Icon.d.ts +4 -4
  133. package/build/library/components/icons/services/AddressChange/IconHover.d.ts +4 -4
  134. package/build/library/components/icons/services/Adults/Icon.d.ts +4 -4
  135. package/build/library/components/icons/services/Adults/IconHover.d.ts +4 -4
  136. package/build/library/components/icons/services/AssistiveTechnology/Icon.d.ts +4 -4
  137. package/build/library/components/icons/services/AssistiveTechnology/IconHover.d.ts +4 -4
  138. package/build/library/components/icons/services/Benefits/Icon.d.ts +4 -4
  139. package/build/library/components/icons/services/Benefits/IconHover.d.ts +4 -4
  140. package/build/library/components/icons/services/BinDay/Icon.d.ts +4 -4
  141. package/build/library/components/icons/services/BinDay/IconHover.d.ts +4 -4
  142. package/build/library/components/icons/services/Bins/Icon.d.ts +4 -4
  143. package/build/library/components/icons/services/Bins/IconHover.d.ts +4 -4
  144. package/build/library/components/icons/services/BirthCertificate/Icon.d.ts +4 -4
  145. package/build/library/components/icons/services/BirthCertificate/IconHover.d.ts +4 -4
  146. package/build/library/components/icons/services/Births/Icon.d.ts +4 -4
  147. package/build/library/components/icons/services/Births/IconHover.d.ts +4 -4
  148. package/build/library/components/icons/services/Bollard/Icon.d.ts +4 -4
  149. package/build/library/components/icons/services/Bollard/IconHover.d.ts +4 -4
  150. package/build/library/components/icons/services/BulkWaste/Icon.d.ts +4 -4
  151. package/build/library/components/icons/services/BulkWaste/IconHover.d.ts +4 -4
  152. package/build/library/components/icons/services/Bus/Icon.d.ts +4 -4
  153. package/build/library/components/icons/services/Bus/IconHover.d.ts +4 -4
  154. package/build/library/components/icons/services/BusPass/Icon.d.ts +4 -4
  155. package/build/library/components/icons/services/BusPass/IconHover.d.ts +4 -4
  156. package/build/library/components/icons/services/Business/Icon.d.ts +4 -4
  157. package/build/library/components/icons/services/Business/IconHover.d.ts +4 -4
  158. package/build/library/components/icons/services/Careers/Icon.d.ts +4 -4
  159. package/build/library/components/icons/services/Careers/IconHover.d.ts +4 -4
  160. package/build/library/components/icons/services/Cash/Icon.d.ts +4 -4
  161. package/build/library/components/icons/services/Cash/IconHover.d.ts +4 -4
  162. package/build/library/components/icons/services/Catalogue/Icon.d.ts +4 -4
  163. package/build/library/components/icons/services/Catalogue/IconHover.d.ts +4 -4
  164. package/build/library/components/icons/services/Ceremony/Icon.d.ts +4 -4
  165. package/build/library/components/icons/services/Ceremony/IconHover.d.ts +4 -4
  166. package/build/library/components/icons/services/Charity/Icon.d.ts +4 -4
  167. package/build/library/components/icons/services/Charity/IconHover.d.ts +4 -4
  168. package/build/library/components/icons/services/Children/Icon.d.ts +4 -4
  169. package/build/library/components/icons/services/Children/IconHover.d.ts +4 -4
  170. package/build/library/components/icons/services/Computer/Icon.d.ts +4 -4
  171. package/build/library/components/icons/services/Computer/IconHover.d.ts +4 -4
  172. package/build/library/components/icons/services/CondolenceBook/Icon.d.ts +4 -4
  173. package/build/library/components/icons/services/CondolenceBook/IconHover.d.ts +4 -4
  174. package/build/library/components/icons/services/Cooking/Icon.d.ts +4 -4
  175. package/build/library/components/icons/services/Cooking/IconHover.d.ts +4 -4
  176. package/build/library/components/icons/services/Council/Icon.d.ts +4 -4
  177. package/build/library/components/icons/services/Council/IconHover.d.ts +4 -4
  178. package/build/library/components/icons/services/CouncilTax/Icon.d.ts +4 -4
  179. package/build/library/components/icons/services/CouncilTax/IconHover.d.ts +4 -4
  180. package/build/library/components/icons/services/Covid/Icon.d.ts +4 -4
  181. package/build/library/components/icons/services/Covid/IconHover.d.ts +4 -4
  182. package/build/library/components/icons/services/Culture/Icon.d.ts +4 -4
  183. package/build/library/components/icons/services/Culture/IconHover.d.ts +4 -4
  184. package/build/library/components/icons/services/CultureNorth/Icon.d.ts +4 -4
  185. package/build/library/components/icons/services/CultureNorth/IconHover.d.ts +4 -4
  186. package/build/library/components/icons/services/CultureWest/Icon.d.ts +4 -4
  187. package/build/library/components/icons/services/CultureWest/IconHover.d.ts +4 -4
  188. package/build/library/components/icons/services/DOLS/Icon.d.ts +4 -4
  189. package/build/library/components/icons/services/DOLS/IconHover.d.ts +4 -4
  190. package/build/library/components/icons/services/DeathCertificate/Icon.d.ts +4 -4
  191. package/build/library/components/icons/services/DeathCertificate/IconHover.d.ts +4 -4
  192. package/build/library/components/icons/services/Democracy/Icon.d.ts +4 -4
  193. package/build/library/components/icons/services/Democracy/IconHover.d.ts +4 -4
  194. package/build/library/components/icons/services/DogFouling/Icon.d.ts +4 -4
  195. package/build/library/components/icons/services/DogFouling/IconHover.d.ts +4 -4
  196. package/build/library/components/icons/services/Ebook/Icon.d.ts +4 -4
  197. package/build/library/components/icons/services/Ebook/IconHover.d.ts +4 -4
  198. package/build/library/components/icons/services/Edit/Icon.d.ts +4 -4
  199. package/build/library/components/icons/services/Edit/IconHover.d.ts +4 -4
  200. package/build/library/components/icons/services/Environment/Icon.d.ts +4 -4
  201. package/build/library/components/icons/services/Environment/IconHover.d.ts +4 -4
  202. package/build/library/components/icons/services/Events/Icon.d.ts +4 -4
  203. package/build/library/components/icons/services/Events/IconHover.d.ts +4 -4
  204. package/build/library/components/icons/services/Finance/Icon.d.ts +4 -4
  205. package/build/library/components/icons/services/Finance/IconHover.d.ts +4 -4
  206. package/build/library/components/icons/services/Flower/Icon.d.ts +4 -4
  207. package/build/library/components/icons/services/Flower/IconHover.d.ts +4 -4
  208. package/build/library/components/icons/services/FlyTip/Icon.d.ts +4 -4
  209. package/build/library/components/icons/services/FlyTip/IconHover.d.ts +4 -4
  210. package/build/library/components/icons/services/FoodWaste/Icon.d.ts +4 -4
  211. package/build/library/components/icons/services/FoodWaste/IconHover.d.ts +4 -4
  212. package/build/library/components/icons/services/GiveNotice/Icon.d.ts +4 -4
  213. package/build/library/components/icons/services/GiveNotice/IconHover.d.ts +4 -4
  214. package/build/library/components/icons/services/GovUK/Icon.d.ts +4 -4
  215. package/build/library/components/icons/services/GovUK/IconHover.d.ts +4 -4
  216. package/build/library/components/icons/services/Graffiti/Icon.d.ts +4 -4
  217. package/build/library/components/icons/services/Graffiti/IconHover.d.ts +4 -4
  218. package/build/library/components/icons/services/Highway/Icon.d.ts +4 -4
  219. package/build/library/components/icons/services/Highway/IconHover.d.ts +4 -4
  220. package/build/library/components/icons/services/HouseMoney/Icon.d.ts +4 -4
  221. package/build/library/components/icons/services/HouseMoney/IconHover.d.ts +4 -4
  222. package/build/library/components/icons/services/Housing/Icon.d.ts +4 -4
  223. package/build/library/components/icons/services/Housing/IconHover.d.ts +4 -4
  224. package/build/library/components/icons/services/Icon.types.d.ts +6 -6
  225. package/build/library/components/icons/services/Independence/Icon.d.ts +4 -4
  226. package/build/library/components/icons/services/Independence/IconHover.d.ts +4 -4
  227. package/build/library/components/icons/services/KeepingHealthy/Icon.d.ts +4 -4
  228. package/build/library/components/icons/services/KeepingHealthy/IconHover.d.ts +4 -4
  229. package/build/library/components/icons/services/Libraries/Icon.d.ts +4 -4
  230. package/build/library/components/icons/services/Libraries/IconHover.d.ts +4 -4
  231. package/build/library/components/icons/services/Litter/Icon.d.ts +4 -4
  232. package/build/library/components/icons/services/Litter/IconHover.d.ts +4 -4
  233. package/build/library/components/icons/services/LookingAfterYourself/Icon.d.ts +4 -4
  234. package/build/library/components/icons/services/LookingAfterYourself/IconHover.d.ts +4 -4
  235. package/build/library/components/icons/services/MapPin/Icon.d.ts +4 -4
  236. package/build/library/components/icons/services/MapPin/IconHover.d.ts +4 -4
  237. package/build/library/components/icons/services/Member/Icon.d.ts +4 -4
  238. package/build/library/components/icons/services/Member/IconHover.d.ts +4 -4
  239. package/build/library/components/icons/services/MentalHealth/Icon.d.ts +4 -4
  240. package/build/library/components/icons/services/MentalHealth/IconHover.d.ts +4 -4
  241. package/build/library/components/icons/services/MissedBin/Icon.d.ts +4 -4
  242. package/build/library/components/icons/services/MissedBin/IconHover.d.ts +4 -4
  243. package/build/library/components/icons/services/New/Icon.d.ts +4 -4
  244. package/build/library/components/icons/services/New/IconHover.d.ts +4 -4
  245. package/build/library/components/icons/services/OccupationalTherapy/Icon.d.ts +4 -4
  246. package/build/library/components/icons/services/OccupationalTherapy/IconHover.d.ts +4 -4
  247. package/build/library/components/icons/services/ParkEvent/Icon.d.ts +4 -4
  248. package/build/library/components/icons/services/ParkEvent/IconHover.d.ts +4 -4
  249. package/build/library/components/icons/services/Parking/Icon.d.ts +4 -4
  250. package/build/library/components/icons/services/Parking/IconHover.d.ts +4 -4
  251. package/build/library/components/icons/services/ParkingTicket/Icon.d.ts +4 -4
  252. package/build/library/components/icons/services/ParkingTicket/IconHover.d.ts +4 -4
  253. package/build/library/components/icons/services/Pay/Icon.d.ts +4 -4
  254. package/build/library/components/icons/services/Pay/IconHover.d.ts +4 -4
  255. package/build/library/components/icons/services/PhonePay/Icon.d.ts +4 -4
  256. package/build/library/components/icons/services/PhonePay/IconHover.d.ts +4 -4
  257. package/build/library/components/icons/services/Planning/Icon.d.ts +4 -4
  258. package/build/library/components/icons/services/Planning/IconHover.d.ts +4 -4
  259. package/build/library/components/icons/services/Pothole/Icon.d.ts +4 -4
  260. package/build/library/components/icons/services/Pothole/IconHover.d.ts +4 -4
  261. package/build/library/components/icons/services/PreventingFalls/Icon.d.ts +4 -4
  262. package/build/library/components/icons/services/PreventingFalls/IconHover.d.ts +4 -4
  263. package/build/library/components/icons/services/Protect/Icon.d.ts +4 -4
  264. package/build/library/components/icons/services/Protect/IconHover.d.ts +4 -4
  265. package/build/library/components/icons/services/RatePay/Icon.d.ts +4 -4
  266. package/build/library/components/icons/services/RatePay/IconHover.d.ts +4 -4
  267. package/build/library/components/icons/services/RegisterBirth/Icon.d.ts +4 -4
  268. package/build/library/components/icons/services/RegisterBirth/IconHover.d.ts +4 -4
  269. package/build/library/components/icons/services/RegisterDeath/Icon.d.ts +4 -4
  270. package/build/library/components/icons/services/RegisterDeath/IconHover.d.ts +4 -4
  271. package/build/library/components/icons/services/Report/Icon.d.ts +4 -4
  272. package/build/library/components/icons/services/Report/IconHover.d.ts +4 -4
  273. package/build/library/components/icons/services/Restrict/Icon.d.ts +4 -4
  274. package/build/library/components/icons/services/Restrict/IconHover.d.ts +4 -4
  275. package/build/library/components/icons/services/RoadWorks/Icon.d.ts +4 -4
  276. package/build/library/components/icons/services/RoadWorks/IconHover.d.ts +4 -4
  277. package/build/library/components/icons/services/Roads/Icon.d.ts +4 -4
  278. package/build/library/components/icons/services/Roads/IconHover.d.ts +4 -4
  279. package/build/library/components/icons/services/RoyalWebsite/Icon.d.ts +4 -4
  280. package/build/library/components/icons/services/RoyalWebsite/IconHover.d.ts +4 -4
  281. package/build/library/components/icons/services/SEND/Icon.d.ts +4 -4
  282. package/build/library/components/icons/services/SEND/IconHover.d.ts +4 -4
  283. package/build/library/components/icons/services/Safety/Icon.d.ts +4 -4
  284. package/build/library/components/icons/services/Safety/IconHover.d.ts +4 -4
  285. package/build/library/components/icons/services/SchoolAdmissions/Icon.d.ts +4 -4
  286. package/build/library/components/icons/services/SchoolAdmissions/IconHover.d.ts +4 -4
  287. package/build/library/components/icons/services/Schools/Icon.d.ts +4 -4
  288. package/build/library/components/icons/services/Schools/IconHover.d.ts +4 -4
  289. package/build/library/components/icons/services/ServicesIcons.d.ts +173 -174
  290. package/build/library/components/icons/services/SinglePerson/Icon.d.ts +4 -4
  291. package/build/library/components/icons/services/SinglePerson/IconHover.d.ts +4 -4
  292. package/build/library/components/icons/services/Sports/Icon.d.ts +4 -4
  293. package/build/library/components/icons/services/Sports/IconHover.d.ts +4 -4
  294. package/build/library/components/icons/services/Valuation/Icon.d.ts +4 -4
  295. package/build/library/components/icons/services/Valuation/IconHover.d.ts +4 -4
  296. package/build/library/components/icons/services/Venue/Icon.d.ts +4 -4
  297. package/build/library/components/icons/services/Venue/IconHover.d.ts +4 -4
  298. package/build/library/components/icons/services/WasteChecklist/Icon.d.ts +4 -4
  299. package/build/library/components/icons/services/WasteChecklist/IconHover.d.ts +4 -4
  300. package/build/library/components/icons/services/WasteSorting/Icon.d.ts +4 -4
  301. package/build/library/components/icons/services/WasteSorting/IconHover.d.ts +4 -4
  302. package/build/library/components/logos/GDSLogo/logo.d.ts +4 -4
  303. package/build/library/components/logos/GDSLogo/logo.types.d.ts +2 -2
  304. package/build/library/components/logos/NorthColouredLogo/logo.d.ts +4 -4
  305. package/build/library/components/logos/NorthColouredLogo/logo.types.d.ts +2 -2
  306. package/build/library/components/logos/NorthWhiteLogo/logo.d.ts +4 -4
  307. package/build/library/components/logos/NorthWhiteLogo/logo.types.d.ts +2 -2
  308. package/build/library/components/logos/WestColouredLogo/logo.d.ts +4 -4
  309. package/build/library/components/logos/WestColouredLogo/logo.types.d.ts +2 -2
  310. package/build/library/components/logos/WestWhiteLogo/logo.d.ts +4 -4
  311. package/build/library/components/logos/WestWhiteLogo/logo.types.d.ts +2 -2
  312. package/build/library/contexts/DirectoryShortListProvider/DirectoryShortListProvider.d.ts +4 -4
  313. package/build/library/contexts/DirectoryShortListProvider/DirectoryShortListProvider.types.d.ts +55 -41
  314. package/build/library/contexts/PostCodeAddressProvider/PostCodeAddressProvider.d.ts +6 -6
  315. package/build/library/contexts/PostCodeAddressProvider/PostCodeAddressProvider.types.d.ts +18 -18
  316. package/build/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.d.ts +4 -4
  317. package/build/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.test.d.ts +1 -0
  318. package/build/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.types.d.ts +26 -26
  319. package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.d.ts +4 -4
  320. package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.storydata.d.ts +4 -4
  321. package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.test.d.ts +1 -0
  322. package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.types.d.ts +63 -63
  323. package/build/library/directory/DirectoryMap/DirectoryMap.d.ts +4 -4
  324. package/build/library/directory/DirectoryMap/DirectoryMap.types.d.ts +11 -11
  325. package/build/library/directory/DirectoryService/DirectoryService.d.ts +4 -4
  326. package/build/library/directory/DirectoryService/DirectoryService.storydata.d.ts +4 -4
  327. package/build/library/directory/DirectoryService/DirectoryService.test.d.ts +1 -0
  328. package/build/library/directory/DirectoryService/DirectoryService.types.d.ts +278 -278
  329. package/build/library/directory/DirectoryService/DirectoryServiceTransform.d.ts +8 -8
  330. package/build/library/directory/DirectoryServiceList/DirectoryServiceList.d.ts +4 -4
  331. package/build/library/directory/DirectoryServiceList/DirectoryServiceList.storydata.d.ts +6 -6
  332. package/build/library/directory/DirectoryServiceList/DirectoryServiceList.test.d.ts +1 -0
  333. package/build/library/directory/DirectoryServiceList/DirectoryServiceList.types.d.ts +136 -136
  334. package/build/library/directory/DirectoryShortList/DirectoryShortList.d.ts +4 -4
  335. package/build/library/directory/DirectoryShortList/DirectoryShortList.test.d.ts +1 -0
  336. package/build/library/directory/DirectoryShortList/DirectoryShortList.types.d.ts +6 -6
  337. package/build/library/directory/ServiceContact/ServiceContact.d.ts +4 -4
  338. package/build/library/directory/ServiceContact/ServiceContact.test.d.ts +1 -0
  339. package/build/library/directory/ServiceContact/ServiceContact.types.d.ts +42 -42
  340. package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.d.ts +4 -4
  341. package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.storydata.d.ts +2 -2
  342. package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.test.d.ts +1 -0
  343. package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.types.d.ts +24 -24
  344. package/build/library/helpers/UseLocalStorage.d.ts +2 -2
  345. package/build/library/helpers/api-helpers.d.ts +120 -120
  346. package/build/library/pages/ContentPage/ContentPage.d.ts +4 -4
  347. package/build/library/pages/ContentPage/ContentPage.storydata.d.ts +10 -10
  348. package/build/library/pages/CouncilTaxPageExample/CouncilTaxPageExample.d.ts +5 -5
  349. package/build/library/pages/CouncilTaxParishPageExample/CouncilTaxParishPageExample.d.ts +5 -5
  350. package/build/library/pages/DirectoryServicePage/DirectoryServicePage.d.ts +2 -2
  351. package/build/library/pages/ErrorPage/ErrorPage.d.ts +6 -6
  352. package/build/library/pages/Home/HomePage.d.ts +8 -8
  353. package/build/library/pages/Home/HomePage.types.d.ts +60 -60
  354. package/build/library/pages/MemorialPage/MemorialPage.d.ts +8 -8
  355. package/build/library/pages/MemorialPage/MemorialPage.types.d.ts +59 -59
  356. package/build/library/pages/News/News.d.ts +5 -5
  357. package/build/library/pages/NewsArticle/NewsArticle.d.ts +7 -7
  358. package/build/library/pages/SearchResultsPageExample/SearchResultsPageExample.d.ts +29 -29
  359. package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.d.ts +3 -3
  360. package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.storydata.d.ts +30 -30
  361. package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.types.d.ts +52 -52
  362. package/build/library/pages/ServicePageExample/ServicePageExample.d.ts +7 -7
  363. package/build/library/pages/SignpostPageExample/SignpostPageExample.d.ts +7 -7
  364. package/build/library/pages/Templates/Templates.d.ts +8 -8
  365. package/build/library/slices/Accordion/Accordion.d.ts +4 -4
  366. package/build/library/slices/Accordion/Accordion.test.d.ts +1 -0
  367. package/build/library/slices/Accordion/Accordion.types.d.ts +52 -53
  368. package/build/library/slices/Accordion/AccordionSection.d.ts +4 -4
  369. package/build/library/slices/BlockQuote/BlockQuote.d.ts +4 -4
  370. package/build/library/slices/BlockQuote/BlockQuote.types.d.ts +10 -11
  371. package/build/library/slices/CallToAction/CallToAction.d.ts +7 -7
  372. package/build/library/slices/Cards/Cards.d.ts +7 -7
  373. package/build/library/slices/Cards/Cards.test.d.ts +1 -0
  374. package/build/library/slices/Cards/Cards.types.d.ts +7 -7
  375. package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.d.ts +7 -7
  376. package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.storydata.d.ts +4 -4
  377. package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.test.d.ts +1 -0
  378. package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.types.d.ts +81 -81
  379. package/build/library/slices/Divider/Divider.d.ts +4 -4
  380. package/build/library/slices/Divider/Divider.types.d.ts +2 -2
  381. package/build/library/slices/DownloadableFiles/DownloadableFiles.d.ts +4 -4
  382. package/build/library/slices/DownloadableFiles/DownloadableFiles.types.d.ts +7 -7
  383. package/build/library/slices/GoogleMap/GoogleMap.d.ts +7 -7
  384. package/build/library/slices/GoogleMap/GoogleMap.storydata.d.ts +44 -44
  385. package/build/library/slices/GoogleMap/GoogleMap.test.d.ts +1 -0
  386. package/build/library/slices/GoogleMap/GoogleMap.types.d.ts +28 -28
  387. package/build/library/slices/Image/Image.d.ts +8 -8
  388. package/build/library/slices/Image/Image.storydata.d.ts +2 -2
  389. package/build/library/slices/Image/Image.test.d.ts +1 -0
  390. package/build/library/slices/Image/Image.types.d.ts +26 -26
  391. package/build/library/slices/ImageAndText/ImageAndText.d.ts +7 -7
  392. package/build/library/slices/ImageAndText/ImageAndText.storydata.d.ts +2 -2
  393. package/build/library/slices/ImageAndText/ImageAndText.test.d.ts +1 -0
  394. package/build/library/slices/ImageAndText/ImageAndText.types.d.ts +15 -15
  395. package/build/library/slices/InquestSchedule/InquestSchedule.d.ts +7 -7
  396. package/build/library/slices/InquestSchedule/InquestSchedule.storydata.d.ts +2 -2
  397. package/build/library/slices/InquestSchedule/InquestSchedule.test.d.ts +1 -0
  398. package/build/library/slices/InquestSchedule/InquestSchedule.types.d.ts +24 -24
  399. package/build/library/slices/Promotions/Promotions.d.ts +7 -7
  400. package/build/library/slices/SearchBox/SearchBox.d.ts +4 -4
  401. package/build/library/slices/SearchBox/SearchBox.storydata.d.ts +2 -2
  402. package/build/library/slices/SearchBox/SearchBox.test.d.ts +1 -0
  403. package/build/library/slices/SearchBox/SearchBox.types.d.ts +41 -41
  404. package/build/library/slices/Video/Video.d.ts +7 -7
  405. package/build/library/slices/Video/Video.test.d.ts +1 -0
  406. package/build/library/slices/Video/Video.types.d.ts +22 -22
  407. package/build/library/slices/WarningText/WarningText.d.ts +7 -7
  408. package/build/library/slices/WarningText/WarningText.test.d.ts +1 -0
  409. package/build/library/slices/WarningText/WarningText.types.d.ts +14 -15
  410. package/build/library/slices/WarningTextDisclaimer/WarningTextDisclaimer.d.ts +4 -4
  411. package/build/library/slices/WarningTextDisclaimer/WarningTextDisclaimer.types.d.ts +2 -2
  412. package/build/library/structure/AccessibleLinks/AccessibleLinks.d.ts +4 -4
  413. package/build/library/structure/AccessibleLinks/AccessibleLinks.types.d.ts +22 -22
  414. package/build/library/structure/AlertBanner/AlertBanner.d.ts +7 -7
  415. package/build/library/structure/AlertBanner/AlertBanner.test.d.ts +1 -0
  416. package/build/library/structure/AlertBanner/AlertBanner.types.d.ts +18 -19
  417. package/build/library/structure/AlertBannerService/AlertBannerService.d.ts +8 -8
  418. package/build/library/structure/AlertBannerService/AlertBannerService.test.d.ts +1 -0
  419. package/build/library/structure/AlertBannerService/AlertBannerService.types.d.ts +18 -19
  420. package/build/library/structure/BackLink/BackLink.d.ts +7 -7
  421. package/build/library/structure/BackLink/BackLink.test.d.ts +1 -0
  422. package/build/library/structure/BackLink/BackLink.types.d.ts +10 -10
  423. package/build/library/structure/Breadcrumbs/Breadcrumbs.d.ts +4 -4
  424. package/build/library/structure/Breadcrumbs/Breadcrumbs.test.d.ts +1 -0
  425. package/build/library/structure/Breadcrumbs/Breadcrumbs.types.d.ts +20 -20
  426. package/build/library/structure/Contents/Contents.d.ts +4 -4
  427. package/build/library/structure/Contents/Contents.storydata.d.ts +2 -2
  428. package/build/library/structure/Contents/Contents.test.d.ts +1 -0
  429. package/build/library/structure/Contents/Contents.types.d.ts +24 -24
  430. package/build/library/structure/ContentsNavigation/ContentsNavigation.d.ts +4 -4
  431. package/build/library/structure/ContentsNavigation/ContentsNavigation.test.d.ts +1 -0
  432. package/build/library/structure/CookieBanner/CookieBanner.d.ts +6 -6
  433. package/build/library/structure/CookieBanner/CookieBanner.types.d.ts +30 -31
  434. package/build/library/structure/CookieBanner/CookieClear.d.ts +5 -5
  435. package/build/library/structure/DisplayDate/DisplayDate.d.ts +7 -7
  436. package/build/library/structure/DisplayDate/DisplayDate.types.d.ts +18 -18
  437. package/build/library/structure/Footer/Footer.d.ts +4 -4
  438. package/build/library/structure/Footer/Footer.test.d.ts +1 -0
  439. package/build/library/structure/Footer/Footer.types.d.ts +24 -24
  440. package/build/library/structure/FullWidthContainer/FullWidthContainer.d.ts +7 -7
  441. package/build/library/structure/FullWidthContainer/FullWidthContainer.test.d.ts +1 -0
  442. package/build/library/structure/FullWidthContainer/FullWidthContainer.types.d.ts +15 -15
  443. package/build/library/structure/Header/Header.d.ts +7 -7
  444. package/build/library/structure/Header/Header.test.d.ts +1 -0
  445. package/build/library/structure/Header/Header.types.d.ts +30 -31
  446. package/build/library/structure/HeroImage/HeroImage.d.ts +8 -8
  447. package/build/library/structure/HeroImage/HeroImage.storydata.d.ts +6 -6
  448. package/build/library/structure/HeroImage/HeroImage.test.d.ts +1 -0
  449. package/build/library/structure/HeroImage/HeroImage.types.d.ts +52 -48
  450. package/build/library/structure/HomeHero/HomeHero.d.ts +7 -7
  451. package/build/library/structure/HomeHero/HomeHero.storydata.d.ts +14 -14
  452. package/build/library/structure/HomeHero/HomeHero.test.d.ts +1 -0
  453. package/build/library/structure/HomeHero/HomeHero.types.d.ts +54 -54
  454. package/build/library/structure/MaxWidthContainer/MaxWidthContainer.d.ts +7 -7
  455. package/build/library/structure/MaxWidthContainer/MaxWidthContainer.types.d.ts +22 -23
  456. package/build/library/structure/MemorialHero/MemorialHero.d.ts +4 -4
  457. package/build/library/structure/MemorialHero/MemorialHero.types.d.ts +27 -27
  458. package/build/library/structure/NewsArticleDate/NewsArticleDate.d.ts +7 -7
  459. package/build/library/structure/NewsArticleDate/NewsArticleDate.types.d.ts +10 -10
  460. package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.d.ts +7 -7
  461. package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.test.d.ts +1 -0
  462. package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.types.d.ts +23 -23
  463. package/build/library/structure/NewsArticleFilterAccordion/NewsArticleFilterAccordion.d.ts +4 -4
  464. package/build/library/structure/NewsArticleFilterAccordion/NewsArticleFilterAccordion.types.d.ts +7 -7
  465. package/build/library/structure/NewsArticleImage/NewsArticleImage.d.ts +7 -7
  466. package/build/library/structure/NewsArticleImage/NewsArticleImage.types.d.ts +18 -18
  467. package/build/library/structure/NewsArticleList/NewsArticleData.d.ts +7 -7
  468. package/build/library/structure/NewsArticleList/NewsArticleList.d.ts +4 -4
  469. package/build/library/structure/NewsArticleList/NewsArticleList.test.d.ts +1 -0
  470. package/build/library/structure/NewsArticleList/NewsArticleList.types.d.ts +28 -28
  471. package/build/library/structure/NewsArticleListHeader/NewsArticleListHeader.d.ts +4 -4
  472. package/build/library/structure/NewsArticleListHeader/NewsArticleListHeader.types.d.ts +6 -6
  473. package/build/library/structure/NewsArticleOldBanner/NewsArticleOldBanner.d.ts +7 -7
  474. package/build/library/structure/NewsArticleOldBanner/NewsArticleOldBanner.types.d.ts +2 -2
  475. package/build/library/structure/PageMain/PageMain.d.ts +7 -7
  476. package/build/library/structure/PageMain/PageMain.test.d.ts +1 -0
  477. package/build/library/structure/PageMain/PageMain.types.d.ts +14 -15
  478. package/build/library/structure/PageSidebar/PageSidebar.d.ts +7 -7
  479. package/build/library/structure/PageSidebar/PageSidebar.types.d.ts +6 -7
  480. package/build/library/structure/PageStructures.d.ts +42 -42
  481. package/build/library/structure/PageTitle/PageTitle.d.ts +7 -7
  482. package/build/library/structure/PageTitle/PageTitle.types.d.ts +11 -11
  483. package/build/library/structure/PageWithSidebarContainer/PageWithSidebarContainer.d.ts +7 -7
  484. package/build/library/structure/PageWithSidebarContainer/PageWithSidebarContainer.types.d.ts +10 -11
  485. package/build/library/structure/PageWrapper/PageWrapper.d.ts +4 -4
  486. package/build/library/structure/PageWrapper/PageWrapper.types.d.ts +11 -11
  487. package/build/library/structure/PhaseBanner/PhaseBanner.d.ts +4 -4
  488. package/build/library/structure/PhaseBanner/PhaseBanner.types.d.ts +3 -3
  489. package/build/library/structure/PromoBanner/PromoBanner.d.ts +8 -8
  490. package/build/library/structure/PromoBanner/PromoBanner.storydata.d.ts +9 -10
  491. package/build/library/structure/PromoBanner/PromoBanner.test.d.ts +1 -0
  492. package/build/library/structure/PromoBanner/PromoBanner.types.d.ts +26 -27
  493. package/build/library/structure/PromoBlock/PromoBlock.d.ts +8 -8
  494. package/build/library/structure/PromoBlock/PromoBlock.storydata.d.ts +5 -5
  495. package/build/library/structure/PromoBlock/PromoBlock.test.d.ts +1 -0
  496. package/build/library/structure/PromoBlock/PromoBlock.types.d.ts +36 -36
  497. package/build/library/structure/SearchHeader/SearchHeader.d.ts +4 -4
  498. package/build/library/structure/SearchHeader/SearchHeader.types.d.ts +2 -2
  499. package/build/library/structure/SearchResultsList/NoResultsMessage.d.ts +3 -3
  500. package/build/library/structure/SearchResultsList/SearchResultsList.d.ts +4 -4
  501. package/build/library/structure/SearchResultsList/SearchResultsList.test.d.ts +1 -0
  502. package/build/library/structure/SearchResultsList/SearchResultsList.types.d.ts +46 -46
  503. package/build/library/structure/Searchbar/Searchbar.d.ts +4 -4
  504. package/build/library/structure/Searchbar/Searchbar.test.d.ts +1 -0
  505. package/build/library/structure/Searchbar/Searchbar.types.d.ts +48 -48
  506. package/build/library/structure/SectionLinks/SectionLinks.d.ts +7 -7
  507. package/build/library/structure/SectionLinks/SectionLinks.storydata.d.ts +2 -2
  508. package/build/library/structure/SectionLinks/SectionLinks.test.d.ts +1 -0
  509. package/build/library/structure/SectionLinks/SectionLinks.types.d.ts +52 -52
  510. package/build/library/structure/SectionLinksMobileContents/SectionLinksMobileContents.d.ts +4 -4
  511. package/build/library/structure/SectionLinksMobileContents/SectionLinksMobileContents.types.d.ts +16 -16
  512. package/build/library/structure/SectionLinksSidebar/SectionLinksSidebar.d.ts +4 -4
  513. package/build/library/structure/SectionLinksSidebar/SectionLinksSidebar.test.d.ts +1 -0
  514. package/build/library/structure/SectionLinksSidebar/SectionLinksSidebar.types.d.ts +34 -34
  515. package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.d.ts +4 -4
  516. package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.storydata.d.ts +9 -9
  517. package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.test.d.ts +1 -0
  518. package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.types.d.ts +53 -53
  519. package/build/library/structure/ServicesLinksList/ServicesLinksList.d.ts +4 -4
  520. package/build/library/structure/ServicesLinksList/ServicesLinksList.test.d.ts +1 -0
  521. package/build/library/structure/ServicesLinksList/ServicesLinksList.types.d.ts +68 -68
  522. package/build/library/structure/SignpostLinks/SignpostLinks.d.ts +4 -4
  523. package/build/library/structure/SignpostLinks/SignpostLinks.types.d.ts +32 -32
  524. package/build/library/structure/SkipToMainContent/SkipToMainContent.d.ts +4 -4
  525. package/build/library/structure/SkipToMainContent/SkipToMainContent.test.d.ts +1 -0
  526. package/build/library/structure/SkipToMainContent/SkipToMainContent.types.d.ts +2 -2
  527. package/build/library/structure/Summary/Summary.d.ts +4 -4
  528. package/build/library/structure/Summary/Summary.test.d.ts +1 -0
  529. package/build/library/structure/Summary/Summary.types.d.ts +15 -15
  530. package/build/src/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.types.d.ts +9 -0
  531. package/build/src/library/directory/DirectoryDocumentList/DirectoryDocumentList.types.d.ts +4 -0
  532. package/build/src/library/directory/DirectoryService/DirectoryService.storydata.d.ts +1 -0
  533. package/build/src/library/directory/DirectoryService/DirectoryService.types.d.ts +4 -0
  534. package/build/src/library/directory/DirectoryService/DirectoryServiceTransform.d.ts +1 -1
  535. package/build/src/library/directory/DirectoryService/DirectoryServiceTransform.test.d.ts +1 -0
  536. package/build/src/library/directory/DirectoryServiceList/DirectoryServiceList.types.d.ts +12 -0
  537. package/build/src/library/directory/ServiceContact/ServiceContact.types.d.ts +4 -0
  538. package/build/src/library/structure/HeroImage/HeroImage.types.d.ts +6 -2
  539. package/build/themes/ThemeVars.types.d.ts +60 -0
  540. package/package.json +1 -1
@@ -7950,6 +7950,8 @@ const Container$_ = styled.div`
7950
7950
  width: 100%;
7951
7951
  display: block;
7952
7952
  box-sizing: border-box;
7953
+ position: sticky;
7954
+ z-index: 1;
7953
7955
  `;
7954
7956
 
7955
7957
  const CookieHide = styled.button`
@@ -8143,7 +8145,7 @@ var CookieBanner = function (_a) {
8143
8145
  // on page load - look for a cookie
8144
8146
  useEffect(function () {
8145
8147
  checkCookie();
8146
- });
8148
+ }, []);
8147
8149
  var _d = useState(false), showCookieBanner = _d[0], setShowCookieBanner = _d[1];
8148
8150
  var _e = useState(false), showCookiesRejectedBanner = _e[0], setShowCookiesRejectedBanner = _e[1];
8149
8151
  var _f = useState(false), showCookiesAcceptedBanner = _f[0], setShowCookiesAcceptedBanner = _f[1];
@@ -22878,7 +22880,7 @@ const InnerContainer$2 = styled.div`
22878
22880
  */
22879
22881
  var AlertBannerService = function (_a) {
22880
22882
  var title = _a.title, _b = _a.hasTopSpacing, hasTopSpacing = _b === void 0 ? false : _b, _c = _a.alertType, alertType = _c === void 0 ? 'alert' : _c, children = _a.children;
22881
- return (React.createElement(Container$L, { "$alertType": alertType, "data-testid": "AlertBannerService", hasTopSpacing: hasTopSpacing },
22883
+ return (React.createElement(Container$L, { "$alertType": alertType, "data-testid": "AlertBannerService", "$hasTopSpacing": hasTopSpacing },
22882
22884
  React.createElement(InnerContainer$2, { "data-testid": "AlertBannerServiceInner" },
22883
22885
  (title === null || title === void 0 ? void 0 : title.trim()) && React.createElement(Heading, { text: title }),
22884
22886
  children)));
@@ -23792,6 +23794,7 @@ const PromoTile = styled.a`
23792
23794
  display: block;
23793
23795
  width: 100%;
23794
23796
  height: 100%;
23797
+ padding: 5px 10px;
23795
23798
  background: ${(props) =>
23796
23799
  props.theme.cardinal_name === 'north'
23797
23800
  ? props.theme.theme_vars.colours.white
@@ -24135,7 +24138,7 @@ var VideoProvider;
24135
24138
  VideoProvider["Vimeo"] = "Vimeo";
24136
24139
  })(VideoProvider || (VideoProvider = {}));
24137
24140
 
24138
- const VideoContainer = styled.figure`
24141
+ const VideoContainer$1 = styled.figure`
24139
24142
  display: block;
24140
24143
  padding-top: 56.25%;
24141
24144
  position: relative;
@@ -24195,7 +24198,7 @@ var Video = function (_a) {
24195
24198
  useEffect(function () {
24196
24199
  setNotServer(true);
24197
24200
  }, []);
24198
- return (React.createElement(React.Fragment, null, cookiesAccepted && notServer ? (React.createElement(VideoContainer, { "data-testid": "Video" },
24201
+ return (React.createElement(React.Fragment, null, cookiesAccepted && notServer ? (React.createElement(VideoContainer$1, { "data-testid": "Video" },
24199
24202
  React.createElement("iframe", { src: embedLink, title: description, allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen;", "data-testid": "VideoIframe" }))) : (React.createElement(VideoLink, { href: watchLink, title: description, "data-testid": "VideoLink" }, description))));
24200
24203
  };
24201
24204
 
@@ -25064,6 +25067,17 @@ const FooterLink = styled.a`
25064
25067
  -webkit-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25065
25068
  -moz-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25066
25069
  }
25070
+ &:focus:not(:focus-visible) {
25071
+ box-shadow: none;
25072
+ -webkit-box-shadow: none;
25073
+ -moz-box-shadow: none;
25074
+ }
25075
+ &:focus-visible {
25076
+ ${(props) => props.theme.linkStylesFocus}
25077
+ box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25078
+ -webkit-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25079
+ -moz-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
25080
+ }
25067
25081
  &:active {
25068
25082
  ${(props) => props.theme.linkStylesActive}
25069
25083
  box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
@@ -25226,6 +25240,8 @@ const headerThemeStyles = (props) => {
25226
25240
  const Container$w = styled.header`
25227
25241
  font-family: ${(props) => props.theme.theme_vars.fontstack};
25228
25242
  padding: 3px 0;
25243
+ position: sticky;
25244
+ z-index: 1;
25229
25245
  ${headerThemeStyles}
25230
25246
  `;
25231
25247
 
@@ -25651,6 +25667,7 @@ const InnerContainer = styled.div`
25651
25667
  margin-right: auto;
25652
25668
  margin-left: auto;
25653
25669
  flex-grow: 1;
25670
+ z-index: 1;
25654
25671
 
25655
25672
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25656
25673
  max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
@@ -25772,16 +25789,95 @@ const Search = styled.div`
25772
25789
  margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
25773
25790
  `;
25774
25791
 
25792
+ const VideoContainer = styled.div`
25793
+ position: absolute;
25794
+ width: 100%;
25795
+ @media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
25796
+ height: 580px;
25797
+ }
25798
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25799
+ height: 410px;
25800
+ }
25801
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25802
+ height: 560px;
25803
+ }
25804
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
25805
+ height: 636px;
25806
+ }
25807
+ `;
25808
+
25809
+ const VideoBackground = styled.video`
25810
+ position: absolute;
25811
+ width: 100%;
25812
+ height: 575px;
25813
+ object-fit: cover;
25814
+ @media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
25815
+ height: 590px;
25816
+ }
25817
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25818
+ height: 420px;
25819
+ }
25820
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25821
+ height: 568px;
25822
+ }
25823
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
25824
+ height: 645px;
25825
+ }
25826
+ `;
25827
+
25828
+ const PlayPauseButton = styled.button`
25829
+ position: absolute;
25830
+ display: none;
25831
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
25832
+ bottom: 20px;
25833
+ right: 20px;
25834
+ display: flex;
25835
+ align-items: center;
25836
+ justify-content: center;
25837
+ z-index: 1;
25838
+ background: rgba(0, 0, 0, 0.5);
25839
+ border: 1px solid white;
25840
+ color: white;
25841
+ font-size: 32px;
25842
+ border-radius: 50%;
25843
+ width: 50px;
25844
+ height: 50px;
25845
+ cursor: pointer;
25846
+ &:hover {
25847
+ background: rgba(0, 0, 0, 0.7);
25848
+ }
25849
+ }
25850
+ `;
25851
+
25775
25852
  /**
25776
25853
  * Hero image banner with optional text and call to action with varying presentation of text area.
25777
25854
  * For optional use at the top of a service landing page, if set in the CMS.
25778
25855
  */
25779
25856
  var HeroImage = function (_a) {
25780
- 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;
25857
+ 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;
25858
+ var _d = useState(true), isPlaying = _d[0], setIsPlaying = _d[1];
25859
+ var videoRef = useRef(null);
25860
+ var togglePlay = function () {
25861
+ if (videoRef.current) {
25862
+ if (isPlaying) {
25863
+ videoRef.current.pause();
25864
+ }
25865
+ else {
25866
+ videoRef.current.play();
25867
+ }
25868
+ setIsPlaying(!isPlaying);
25869
+ }
25870
+ };
25781
25871
  return (React.createElement(React.Fragment, null,
25782
25872
  React.createElement(LazyImage, { src: imageLarge, placeholder: imageSmall, visibilitySensorProps: {
25783
25873
  partialVisibility: true,
25784
25874
  } }, function (src) { return (React.createElement(Container$u, { "$image": src, "$backgroundBox": backgroundBox, "data-testid": "HeroImage" },
25875
+ heroVideoUrl && (React.createElement(React.Fragment, null,
25876
+ React.createElement(VideoContainer, null,
25877
+ React.createElement(VideoBackground, { ref: videoRef, autoPlay: true, loop: true, muted: true },
25878
+ React.createElement("source", { src: heroVideoUrl, type: "video/mp4" }),
25879
+ "Your browser doesn't support this video."),
25880
+ React.createElement(PlayPauseButton, { onClick: togglePlay }, isPlaying ? '⏸' : '▶')))),
25785
25881
  React.createElement(InnerContainer, null,
25786
25882
  React.createElement(Overlay, { "$backgroundBox": backgroundBox, "data-testid": "HeroImageOverlay" },
25787
25883
  breadcrumb && (React.createElement(BreadcrumbLink, { href: breadcrumb.url, "$backgroundBox": backgroundBox }, breadcrumb.title)),
@@ -26987,6 +27083,18 @@ const Container$l = styled.main`
26987
27083
  padding: 10px;
26988
27084
  text-align: left;
26989
27085
  }
27086
+
27087
+ td > a:only-child {
27088
+ padding: 12px 20px;
27089
+ display: inline-block;
27090
+ min-height: 44px;
27091
+ min-width: 44px;
27092
+ }
27093
+
27094
+ td > a:not(:only-child) {
27095
+ padding: 0;
27096
+ }
27097
+
26990
27098
  th {
26991
27099
  font-weight: bold;
26992
27100
  }
@@ -27866,10 +27974,12 @@ const ListItem = styled.li`
27866
27974
  background-color: ${(props) => props.theme.theme_vars.colours.action_light};
27867
27975
  color: ${(props) => props.theme.theme_vars.colours.black};
27868
27976
  border-bottom-color: transparent;
27869
-
27870
27977
  &:focus {
27871
27978
  ${focusListItem}
27872
27979
  }
27980
+ &:focus-visible {
27981
+ ${focusListItem}
27982
+ }
27873
27983
  }
27874
27984
  }
27875
27985
  `;
@@ -27885,10 +27995,12 @@ const ListItemLink = styled.a`
27885
27995
  transition: background-color 0.3s ease 0s;
27886
27996
  background-color: ${(props) => props.theme.theme_vars.colours.action_light}80;
27887
27997
  }
27888
-
27889
27998
  &:focus {
27890
27999
  ${focusListItem}
27891
28000
  }
28001
+ &:focus-visible {
28002
+ ${focusListItem}
28003
+ }
27892
28004
  &:active {
27893
28005
  transform: translateY(1px);
27894
28006
  box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
@@ -28273,7 +28385,6 @@ const QuicklinkList = styled.ul`
28273
28385
  const QuicklinkItem = styled.li`
28274
28386
  margin-bottom: 10px;
28275
28387
  padding: 0 !important;
28276
- padding-left: 25px;
28277
28388
  position: relative;
28278
28389
  left: 0;
28279
28390
 
@@ -28298,6 +28409,7 @@ const Quicklink = styled.a`
28298
28409
  ${(props) => props.theme.linkStyles}
28299
28410
  font-weight: 400 !important;
28300
28411
  text-decoration: none !important;
28412
+ padding: 5px 10px;
28301
28413
 
28302
28414
  &:hover {
28303
28415
  ${(props) => props.theme.linkStylesHover}
@@ -30058,7 +30170,7 @@ var PhoneIcon = function (_a) {
30058
30170
  };
30059
30171
 
30060
30172
  var ServiceContact = function (_a) {
30061
- var website = _a.website, email = _a.email, contacts = _a.contacts;
30173
+ var website = _a.website, email = _a.email, contacts = _a.contacts, websiteTitle = _a.websiteTitle;
30062
30174
  var themeContext = useContext(ThemeContext);
30063
30175
  return (React.createElement(Container$6, { "data-testid": "ServiceContact" },
30064
30176
  React.createElement(Row$1, { hasWrap: false },
@@ -30066,7 +30178,7 @@ var ServiceContact = function (_a) {
30066
30178
  React.createElement(IconContainer$1, null,
30067
30179
  React.createElement(WebsiteIcon, { colourFill: themeContext.theme_vars.colours.black })),
30068
30180
  React.createElement(Content$1, null,
30069
- React.createElement(WebLink$1, { href: website }, website)))),
30181
+ React.createElement(WebLink$1, { href: website }, websiteTitle ? "".concat(websiteTitle) : website)))),
30070
30182
  email && (React.createElement(Column, { small: "full", medium: "full", large: "auto", classes: "striped-contacts" },
30071
30183
  React.createElement(IconContainer$1, null,
30072
30184
  React.createElement(EmailIcon, { colourFill: themeContext.theme_vars.colours.black })),
@@ -30256,10 +30368,15 @@ var transformDescriptionDetails = function (accreditations, fees, service_areas,
30256
30368
  };
30257
30369
  var transformSnippet = function (description, extractLength) {
30258
30370
  if (extractLength === void 0) { extractLength = 190; }
30259
- return (sanitizeHtml$1(description, {
30371
+ var sanitized = sanitizeHtml$1(description, {
30260
30372
  allowedTags: [],
30261
30373
  allowedAttributes: {},
30262
- }).substr(0, extractLength) + String.fromCharCode(8230));
30374
+ }).trim();
30375
+ if (!sanitized) {
30376
+ return '';
30377
+ }
30378
+ var snippet = sanitized.substr(0, extractLength);
30379
+ return sanitized.length > extractLength ? snippet + String.fromCharCode(8230) : snippet;
30263
30380
  };
30264
30381
  var transformTaxonomies = function (service_taxonomys, taxonomiesToShow) {
30265
30382
  if (taxonomiesToShow === void 0) { taxonomiesToShow = []; }
@@ -30292,11 +30409,14 @@ var transformTaxonomies = function (service_taxonomys, taxonomiesToShow) {
30292
30409
  var transformAge = function (age, ageInMonths) {
30293
30410
  if (ageInMonths === void 0) { ageInMonths = false; }
30294
30411
  if (age === 0) {
30295
- return age;
30412
+ return age.toString();
30296
30413
  }
30297
30414
  if (ageInMonths) {
30298
30415
  if (age > 36) {
30299
- return Math.ceil(age / 12) + ' years';
30416
+ if (age % 12 === 0) {
30417
+ return Math.ceil(age / 12) + ' years';
30418
+ }
30419
+ return Math.floor(age / 12) + ' years and ' + (age % 12) + (age % 12 === 1 ? ' month' : ' months');
30300
30420
  }
30301
30421
  return "".concat(age, " months");
30302
30422
  }
@@ -30413,11 +30533,11 @@ var HeartIcon = function (_a) {
30413
30533
  };
30414
30534
 
30415
30535
  var DirectoryAddToShortList = function (_a) {
30416
- var id = _a.id, name = _a.name, snippet = _a.snippet, email = _a.email, website = _a.website, phone = _a.phone;
30536
+ 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;
30417
30537
  var _b = useDirectoryShortListContext(), toggleFavourites = _b.toggleFavourites, isFavourite = _b.isFavourite;
30418
30538
  var themeContext = useContext(ThemeContext);
30419
30539
  var favourite = isFavourite(id);
30420
- return (React.createElement(AddToShortlist, { onClick: function (e) { return toggleFavourites(id, name, snippet, email, website, phone); }, "data-testid": "DirectoryAddToShortList", "$favourite": favourite },
30540
+ return (React.createElement(AddToShortlist, { onClick: function (e) { return toggleFavourites(id, name, snippet, email, website, phone, addresses, fees); }, "data-testid": "DirectoryAddToShortList", "$favourite": favourite },
30421
30541
  favourite ? (React.createElement(IconDownload$1, { colourFill: themeContext.theme_vars.colours.negative })) : (React.createElement(HeartIcon, { colourFill: themeContext.theme_vars.colours.action })),
30422
30542
  favourite ? React.createElement(React.Fragment, null, "Remove from shortlist") : React.createElement(React.Fragment, null, "Add to shortlist")));
30423
30543
  };
@@ -30486,7 +30606,7 @@ var getIcon = function (profile) {
30486
30606
 
30487
30607
  var DirectoryService = function (_a) {
30488
30608
  var _b, _c, _d, _e;
30489
- 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;
30609
+ 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;
30490
30610
  var labelLetters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L'];
30491
30611
  var _g = useState(false), notServer = _g[0], setNotServer = _g[1];
30492
30612
  var themeContext = useContext(ThemeContext);
@@ -30510,7 +30630,9 @@ var DirectoryService = function (_a) {
30510
30630
  " Shortlist (",
30511
30631
  favourites.length,
30512
30632
  ")")),
30513
- React.createElement(DirectoryAddToShortList, { id: id, name: name, snippet: transformSnippet(description, 350), email: email, website: url, phone: (_c = (_b = contacts === null || contacts === void 0 ? void 0 : contacts[0]) === null || _b === void 0 ? void 0 : _b.phones) === null || _c === void 0 ? void 0 : _c.flatMap(function (phone) { return phone.number; }).join(', ') })))))),
30633
+ React.createElement(DirectoryAddToShortList, { id: id, name: name, snippet: transformSnippet(description, 350), email: email, website: url, phone: (_c = (_b = contacts === null || contacts === void 0 ? void 0 : contacts[0]) === null || _b === void 0 ? void 0 : _b.phones) === null || _c === void 0 ? void 0 : _c.flatMap(function (phone) { return phone.number; }).join(', '), addresses: service_at_locations.flatMap(function (location) {
30634
+ return location.physical_addresses;
30635
+ }), fees: fees })))))),
30514
30636
  service_at_locations.filter(function (location) {
30515
30637
  return location.is_visitable != false;
30516
30638
  }).length > 0 && (React.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
@@ -30525,7 +30647,7 @@ var DirectoryService = function (_a) {
30525
30647
  .filter(function (item) { return item !== '' && item !== address.id; })
30526
30648
  .join(' <br />'),
30527
30649
  } }),
30528
- React.createElement(Button$4, { url: "https://google.com/maps/dir//".concat(location.latitude, ",").concat(location.longitude), text: "Get directions" }))); }),
30650
+ location.latitude && location.longitude && (React.createElement(Button$4, { url: "https://google.com/maps/dir//".concat(location.latitude, ",").concat(location.longitude), text: "Get directions" })))); }),
30529
30651
  (location === null || location === void 0 ? void 0 : location.accessibility_for_disabilities.length) > 0 && (React.createElement(React.Fragment, null,
30530
30652
  React.createElement(Heading, { level: 3, text: "Other facilities on site" }),
30531
30653
  React.createElement("ul", null, location.accessibility_for_disabilities.map(function (accessibility) { return (React.createElement("li", { key: accessibility.id }, accessibility.accessibility)); })))))); })),
@@ -30557,7 +30679,7 @@ var DirectoryService = function (_a) {
30557
30679
  React.createElement(MapLink, { href: "https://www.google.com/maps/search/?api=1&query=".concat(service_at_locations[0].latitude, "%2C").concat(service_at_locations[0].longitude) }, "View in Google Maps"))))))),
30558
30680
  (email || url || (contacts === null || contacts === void 0 ? void 0 : contacts.length) > 0) && (React.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
30559
30681
  React.createElement(Heading, { level: 2, text: "How to contact this service" }),
30560
- React.createElement(ServiceContact, { email: email, website: url, contacts: contacts }))),
30682
+ React.createElement(ServiceContact, { email: email, website: url, websiteTitle: websiteUrlTitle, contacts: contacts }))),
30561
30683
  React.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
30562
30684
  React.createElement(Heading, { level: 2, text: "Description" }),
30563
30685
  React.createElement("div", null,
@@ -30570,7 +30692,7 @@ var DirectoryService = function (_a) {
30570
30692
  React.createElement("table", null,
30571
30693
  React.createElement("thead", null,
30572
30694
  React.createElement("tr", null,
30573
- React.createElement("th", { scope: "col" }, "Weekday"),
30695
+ React.createElement("th", { scope: "col" }, "Opening days"),
30574
30696
  React.createElement("th", { scope: "col" }, "Opens"),
30575
30697
  React.createElement("th", { scope: "col" }, "Closes"))),
30576
30698
  React.createElement("tbody", null, regular_schedules === null || regular_schedules === void 0 ? void 0 : regular_schedules.map(function (schedule, scheduleIndex) { return (React.createElement("tr", { key: scheduleIndex },
@@ -30636,7 +30758,7 @@ styled.div`
30636
30758
  color: ${(props) => props.theme.theme_vars.colours.grey_dark};
30637
30759
  `;
30638
30760
 
30639
- const ButtonContainer$1 = styled.div`
30761
+ const ButtonContainer$2 = styled.div`
30640
30762
  display: flex;
30641
30763
  align-items: end;
30642
30764
  padding-bottom: 0;
@@ -30644,23 +30766,49 @@ const ButtonContainer$1 = styled.div`
30644
30766
  `;
30645
30767
 
30646
30768
  const Button$1 = styled.button`
30647
- border: 1px solid ${(props) => props.theme.theme_vars.colours.white};
30648
- background: ${(props) => props.theme.theme_vars.colours.action};
30649
- color: ${(props) => props.theme.theme_vars.colours.white};
30650
- padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
30651
- cursor: pointer;
30652
- border-radius: ${(props) => props.theme.theme_vars.border_radius};
30653
- min-height: 42px;
30654
- margin-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
30769
+ border: ${(props) => (props.$isWarning ? `3px` : `1px`)} solid
30770
+ ${(props) => (props.$isWarning ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.white)};
30771
+ background: ${(props) =>
30772
+ props.$isWarning ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.action};
30773
+ color: ${(props) =>
30774
+ props.$isWarning ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.white};
30775
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
30776
+ cursor: pointer;
30777
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
30778
+ min-height: 42px;
30779
+ margin-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
30780
+ font-weight: bold;
30655
30781
 
30656
- &:hover {
30657
- background: ${(props) => props.theme.theme_vars.colours.action_dark};
30658
- }
30782
+ &:hover {
30783
+ background: ${(props) =>
30784
+ props.$isWarning ? props.theme.theme_vars.colours.action_light : props.theme.theme_vars.colours.action_dark};
30785
+ color: ${(props) =>
30786
+ props.$isWarning ? props.theme.theme_vars.colours.action_dark : props.theme.theme_vars.colours.white};
30787
+ text-decoration: underline;
30788
+ text-decoration-style: dotted;
30789
+ }
30659
30790
 
30660
- &:focus {
30661
- outline: none;
30662
- background: ${(props) => props.theme.theme_vars.colours.focus};
30663
- }
30791
+ &:focus {
30792
+ ${(props) => props.theme.linkStylesFocus}
30793
+ }
30794
+
30795
+ &:active {
30796
+ ${(props) => props.theme.linkStylesActive}
30797
+ }
30798
+
30799
+ ${(props) => {
30800
+ if (props.size === 'large') {
30801
+ return `
30802
+ font-size: 16px;
30803
+ padding: 14px 24px;
30804
+ `;
30805
+ }
30806
+ }}
30807
+
30808
+ ${(props) =>
30809
+ props.$isWarning && props.size === 'large' && `
30810
+ padding: 12px 24px;
30811
+ `}
30664
30812
  `;
30665
30813
 
30666
30814
  const ButtonText$1 = styled.span`
@@ -30740,28 +30888,29 @@ const Legend$1 = styled.legend`
30740
30888
  `;
30741
30889
 
30742
30890
  const LegendButton = styled.button`
30743
- position: relative;
30744
- background: none;
30745
- border: none;
30746
- color: ${(props) => props.theme.theme_vars.colours.action};
30747
- width: 100%;
30748
- white-space: normal;
30749
- cursor: pointer;
30750
- text-align: left;
30751
- padding-right: 30px;
30752
- padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
30753
- padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
30754
- ${(props) => props.theme.theme_vars.h4}
30755
- ${(props) => props.theme.linkStyles}
30756
- &:hover {
30757
- ${(props) => props.theme.linkStylesHover}
30758
- }
30759
- &:focus {
30760
- ${(props) => props.theme.linkStylesFocus}
30761
- }
30762
- &:active {
30763
- ${(props) => props.theme.linkStylesActive}
30764
- }
30891
+ position: relative;
30892
+ background: none;
30893
+ border: none;
30894
+ color: ${(props) => props.theme.theme_vars.colours.action};
30895
+ width: 100%;
30896
+ white-space: normal;
30897
+ cursor: pointer;
30898
+ text-align: left;
30899
+ padding-right: 30px;
30900
+ padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
30901
+ padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
30902
+ ${(props) => props.theme.theme_vars.h4}
30903
+ ${(props) => props.theme.linkStyles}
30904
+ &:hover {
30905
+ ${(props) => props.theme.linkStylesHover}
30906
+ }
30907
+ &:focus {
30908
+ ${(props) => props.theme.linkStylesFocus}
30909
+ }
30910
+ &:active {
30911
+ ${(props) => props.theme.linkStylesActive}
30912
+ }
30913
+ margin: 0;
30765
30914
  `;
30766
30915
 
30767
30916
  const AccordionIcon = styled.span`
@@ -30870,6 +31019,14 @@ const MapToggle = styled.button`
30870
31019
  &:active {
30871
31020
  ${(props) => props.theme.linkStylesActive}
30872
31021
  }
31022
+ ${(props) => {
31023
+ if (props.size === 'large') {
31024
+ return `
31025
+ font-size: 16px;
31026
+ padding: 14px 24px;
31027
+ `;
31028
+ }
31029
+ }}
30873
31030
  `;
30874
31031
 
30875
31032
  const Favourites = styled.a`
@@ -31075,24 +31232,24 @@ var RadioCheckboxInput = function (_a) {
31075
31232
  };
31076
31233
 
31077
31234
  var DirectoryServiceList = function (_a) {
31078
- 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;
31079
- var _r = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion"), []), accordions = _r[0], setAccordions = _r[1];
31080
- var _s = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion-all"), true), openAll = _s[0], setOpenAll = _s[1];
31081
- var _t = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-show-map"), false), showMap = _t[0], setShowMap = _t[1];
31082
- var _u = useState(false), showFilters = _u[0], setShowFilters = _u[1];
31083
- var _v = useDirectoryShortListContext(), _w = _v.favourites, favourites = _w.favourites; _w.setFavourites; _v.toggleFavourites; _v.isFavourite;
31084
- var _x = useState(false), notServer = _x[0], setNotServer = _x[1];
31085
- var _y = useState(search), searchTerm = _y[0], setSearchTerm = _y[1];
31086
- var _z = useState(postcode), postcodeSearch = _z[0], setPostcodeSearch = _z[1];
31235
+ 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.23555414368587,-0.8957390701320571' : _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;
31236
+ var _u = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion"), []), accordions = _u[0], setAccordions = _u[1];
31237
+ var _v = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion-all"), true), openAll = _v[0], setOpenAll = _v[1];
31238
+ var _w = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-show-map"), false), showMap = _w[0], setShowMap = _w[1];
31239
+ var _x = useState(false), showFilters = _x[0], setShowFilters = _x[1];
31240
+ var _y = useDirectoryShortListContext(), _z = _y.favourites, favourites = _z.favourites; _z.setFavourites; _y.toggleFavourites; _y.isFavourite;
31241
+ var _0 = useState(false), notServer = _0[0], setNotServer = _0[1];
31242
+ var _1 = useState(search), searchTerm = _1[0], setSearchTerm = _1[1];
31243
+ var _2 = useState(postcode), postcodeSearch = _2[0], setPostcodeSearch = _2[1];
31087
31244
  var themeContext = useContext(ThemeContext);
31088
- var _0 = useState(false), filtersActive = _0[0], setFiltersActive = _0[1];
31245
+ var _3 = useState(false), filtersActive = _3[0], setFiltersActive = _3[1];
31089
31246
  useEffect(function () {
31090
31247
  setNotServer(true);
31091
31248
  setFiltersActive(hasActiveFilters());
31092
31249
  }, []);
31093
31250
  useEffect(function () {
31094
31251
  setFiltersActive(hasActiveFilters());
31095
- }, [minimumAge, maximumAge, categories]);
31252
+ }, [minimumAge, maximumAge, categories, search, postcode]);
31096
31253
  if (accordions.length === 0) {
31097
31254
  var tempAccordions_1 = [];
31098
31255
  categories === null || categories === void 0 ? void 0 : categories.forEach(function () {
@@ -31170,7 +31327,7 @@ var DirectoryServiceList = function (_a) {
31170
31327
  lat: parseFloat((_a = service.service_at_locations[0]) === null || _a === void 0 ? void 0 : _a.latitude),
31171
31328
  lng: parseFloat((_b = service.service_at_locations[0]) === null || _b === void 0 ? void 0 : _b.longitude),
31172
31329
  label: labelLetters[index],
31173
- title: "<a href=\"".concat(directoryPath, "/").concat(service.id, "\">").concat(service.name, "</a>"),
31330
+ title: "<a href=".concat(service.id, ">").concat(service.name, "</a>"),
31174
31331
  };
31175
31332
  }),
31176
31333
  };
@@ -31187,7 +31344,9 @@ var DirectoryServiceList = function (_a) {
31187
31344
  }
31188
31345
  };
31189
31346
  var hasActiveFilters = function () {
31190
- return (maximumAge !== '' ||
31347
+ return (search !== '' ||
31348
+ postcode !== '' ||
31349
+ maximumAge !== '' ||
31191
31350
  minimumAge !== '' ||
31192
31351
  categories.some(function (category) {
31193
31352
  return category.options.some(function (option) {
@@ -31207,17 +31366,19 @@ var DirectoryServiceList = function (_a) {
31207
31366
  React.createElement(Input, { name: "directorySearch", type: "text", defaultValue: searchTerm, id: "directorySearch", onChange: function (e) {
31208
31367
  setSearchTerm(e.target.value);
31209
31368
  } })),
31210
- React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31369
+ showPostcodeSearch && (React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31211
31370
  React.createElement(Label$1, { htmlFor: "postcode" }, "Postcode (optional)"),
31212
- React.createElement(HintText, { text: "Enter a postcode" }),
31213
- React.createElement(Input, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); }, autocomplete: "postal-code" })),
31371
+ React.createElement(HintText, { text: "Enter a postcode to see results within ".concat(proximity, " miles") }),
31372
+ React.createElement(Input, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); }, autocomplete: "postal-code" }))),
31214
31373
  React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31215
- React.createElement(ButtonContainer$1, null,
31216
- React.createElement(Button$1, { onClick: submitSearch, type: "submit" },
31374
+ React.createElement(ButtonContainer$2, null,
31375
+ React.createElement(Button$1, { size: "large", onClick: submitSearch, type: "submit" },
31217
31376
  React.createElement(ButtonText$1, null, "Search"),
31218
- React.createElement(IconDownload, { colourFill: "#fff" })))),
31377
+ React.createElement(IconDownload, { colourFill: "#fff" })),
31378
+ filtersActive && (React.createElement(Button$1, { size: "large", onClick: clearSearch, type: "button", "$isWarning": true },
31379
+ React.createElement(ButtonText$1, null, "Clear search"))))),
31219
31380
  hasDocuments && (React.createElement(Column, { small: "full", medium: "full", large: "full" },
31220
- React.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false }))))))),
31381
+ React.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false, size: "large" }))))))),
31221
31382
  React.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
31222
31383
  React.createElement(FilterToggle, { type: "button", onClick: function (e) { return setShowFilters(!showFilters); } }, showFilters ? "Hide Filters" : "Show Filters"),
31223
31384
  React.createElement(FilterContainer, { "$showFilters": showFilters },
@@ -31253,14 +31414,16 @@ var DirectoryServiceList = function (_a) {
31253
31414
  React.createElement(Legend$1, null,
31254
31415
  React.createElement(LegendButton, { onClick: function (e) { return toggleAccordion(categoryIndex + 1); }, type: "button" },
31255
31416
  category.label,
31256
- React.createElement(AccordionIcon, { isOpen: accordions[categoryIndex + 1] }))),
31417
+ React.createElement(AccordionIcon, { "$isOpen": accordions[categoryIndex + 1] }))),
31257
31418
  React.createElement(Accordion, { "$isOpen": accordions[categoryIndex + 1] },
31258
31419
  React.createElement(ClearFilter$1, null,
31259
31420
  React.createElement(TextLink$1, { onClick: function (e) { return clearCategory(categoryIndex); } }, "Clear filter")),
31260
31421
  category.options.map(function (taxonomy) { return (React.createElement(Category$2, { key: taxonomy.id },
31261
31422
  React.createElement(RadioCheckboxInput, { name: taxonomy.vocabulary, value: taxonomy.id, label: taxonomy.name, singleSelection: category.singleSelection, checked: taxonomy.checked, onChange: function (e) { return optionChecked(e, categoryIndex, category.singleSelection); } }))); }))))); })))))),
31262
31423
  React.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
31263
- React.createElement(Row$1, null, isLoading ? (React.createElement(LoadingContainer$1, null,
31424
+ React.createElement(Row$1, null, isError ? (React.createElement(Column, { small: "full", medium: "full", large: "full" },
31425
+ React.createElement(AlertBannerService, null,
31426
+ React.createElement("p", null, "Sorry, there was a problem fetching results. Please try again later.")))) : isLoading ? (React.createElement(LoadingContainer$1, null,
31264
31427
  React.createElement(LoadingSpinner, null),
31265
31428
  React.createElement("p", null, "Loading"))) : (React.createElement(React.Fragment, null,
31266
31429
  React.createElement(Column, { small: "full", medium: "full", large: "full" },
@@ -31272,7 +31435,7 @@ var DirectoryServiceList = function (_a) {
31272
31435
  " out of ",
31273
31436
  totalResults.toLocaleString())) : (React.createElement(ResultInfo$1, null, "No results found")),
31274
31437
  React.createElement(FavouritesContainer, null,
31275
- (services === null || services === void 0 ? void 0 : services.length) > 0 && (React.createElement(MapToggle, { type: "button", onClick: function (e) { return setShowMap(!showMap); } }, showMap ? "Hide Map" : "Show Map")),
31438
+ (services === null || services === void 0 ? void 0 : services.length) > 0 && (React.createElement(MapToggle, { type: "button", size: "large", onClick: function (e) { return setShowMap(!showMap); } }, showMap ? "Hide Map" : "Show Map")),
31276
31439
  React.createElement(Favourites, { href: shortListPath },
31277
31440
  React.createElement(HeartIcon, { colourFill: themeContext.theme_vars.colours.action }),
31278
31441
  " Shortlist (",
@@ -31282,14 +31445,14 @@ var DirectoryServiceList = function (_a) {
31282
31445
  React.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber })),
31283
31446
  React.createElement(Column, { small: "full", medium: "full", large: "full" }, notServer && React.createElement(React.Fragment, null, (services === null || services === void 0 ? void 0 : services.length) > 0 && showMap && React.createElement(DirectoryMap, { mapProps: mapProps }))),
31284
31447
  services.map(function (service, index) {
31285
- var _a, _b, _c, _d, _e, _f;
31448
+ var _a, _b, _c, _d, _e, _f, _g;
31286
31449
  var snippet = transformSnippet(service.description, extractLength);
31287
31450
  return (React.createElement(Column, { small: "full", medium: "full", large: "full", key: service.id },
31288
31451
  React.createElement(ServiceContainer, { "$resultNumber": index },
31289
31452
  React.createElement(Row$1, null,
31290
31453
  React.createElement(Column, { small: "full", medium: "full", large: "full" },
31291
31454
  React.createElement(ServiceHeader, null,
31292
- React.createElement(ServiceLink$1, { href: "".concat(directoryPath, "/").concat(service.id) }, service.name),
31455
+ React.createElement(ServiceLink$1, { href: "".concat(service.id) }, service.name),
31293
31456
  showMap && (React.createElement(MarkerContainer, null,
31294
31457
  React.createElement("span", null, labelLetters[index]),
31295
31458
  React.createElement(PinIcon, { colourFill: themeContext.theme_vars.colours.action_dark }))))),
@@ -31305,7 +31468,9 @@ var DirectoryServiceList = function (_a) {
31305
31468
  ' ',
31306
31469
  transformAge(eligibility.maximum_age, ageInMonths))); })))),
31307
31470
  React.createElement(Column, { small: "full", medium: "full", large: "full" },
31308
- React.createElement(DirectoryAddToShortList, { id: service.id, name: service.name, snippet: snippet, email: service.email, website: service.url, phone: (_f = (_e = (_d = service.contacts) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.phones) === null || _f === void 0 ? void 0 : _f.flatMap(function (phone) { return phone.number; }).join(', ') }))))));
31471
+ React.createElement(DirectoryAddToShortList, { id: service.id, name: service.name, snippet: snippet, email: service.email, website: service.url, phone: (_f = (_e = (_d = service.contacts) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.phones) === null || _f === void 0 ? void 0 : _f.flatMap(function (phone) { return phone.number; }).join(', '), addresses: (_g = service.service_at_locations) === null || _g === void 0 ? void 0 : _g.flatMap(function (location) {
31472
+ return location.physical_addresses;
31473
+ }), fees: service.fees }))))));
31309
31474
  }),
31310
31475
  React.createElement(Column, { small: "full", medium: "full", large: "full" },
31311
31476
  React.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber })))))))));
@@ -31313,71 +31478,96 @@ var DirectoryServiceList = function (_a) {
31313
31478
 
31314
31479
  const Container$1 = styled.div`
31315
31480
  display: block;
31481
+
31482
+ @media print {
31483
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small} !important;
31484
+ [data-testid='Column'] {
31485
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.extra_small} !important;
31486
+ }
31487
+
31488
+ .favourite-outer:nth-of-type(2n + 1) {
31489
+ page-break-after: always;
31490
+ }
31491
+
31492
+ .favourite-outer:last-of-type {
31493
+ page-break-after: avoid !important;
31494
+ }
31495
+ }
31316
31496
  `;
31317
31497
 
31318
31498
  const ServiceLink = styled.a`
31319
- display: block;
31320
- margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
31321
- ${(props) => props.theme.theme_vars.h4}
31322
- ${(props) => props.theme.linkStyles}
31323
- &:hover {
31324
- ${(props) => props.theme.linkStylesHover}
31325
- }
31326
- &:focus {
31327
- ${(props) => props.theme.linkStylesFocus}
31328
- }
31329
- &:active {
31330
- ${(props) => props.theme.linkStylesActive}
31331
- }
31499
+ display: block;
31500
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
31501
+ ${(props) => props.theme.theme_vars.h4}
31502
+ ${(props) => props.theme.linkStyles}
31503
+ &:hover {
31504
+ ${(props) => props.theme.linkStylesHover}
31505
+ }
31506
+ &:focus {
31507
+ ${(props) => props.theme.linkStylesFocus}
31508
+ }
31509
+ &:active {
31510
+ ${(props) => props.theme.linkStylesActive}
31511
+ }
31332
31512
 
31333
- @media print {
31334
- color: ${(props) => props.theme.theme_vars.colours.black} !important;
31335
- text-decoration: none !important;
31336
- }
31513
+ @media print {
31514
+ color: ${(props) => props.theme.theme_vars.colours.black} !important;
31515
+ text-decoration: none !important;
31516
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
31517
+ margin-bottom: 0;
31518
+ }
31337
31519
  `;
31338
31520
 
31339
31521
  const PrintLink = styled.div`
31340
- p {
31341
- display: none;
31342
- }
31343
-
31344
- @media print {
31345
31522
  p {
31346
- display: block;
31523
+ display: none;
31524
+ }
31525
+
31526
+ @media print {
31527
+ p {
31528
+ display: none;
31529
+ margin-bottom: 0 !important;
31530
+ }
31347
31531
  }
31532
+ `;
31533
+
31534
+ const SnippetContainer = styled.div`
31535
+ @media print {
31536
+ display: flex;
31537
+ flex-wrap: nowrap;
31348
31538
  }
31349
31539
  `;
31350
31540
 
31351
31541
  const QRCodeContainer = styled.div`
31352
- max-width: 80px;
31353
- margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
31354
- display: none;
31355
- float: right;
31542
+ max-width: 80px;
31543
+ display: none;
31356
31544
 
31357
- @media print {
31358
- display: block;
31359
- }
31545
+ @media print {
31546
+ display: block;
31547
+ margin-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
31548
+ }
31360
31549
  `;
31361
31550
 
31362
31551
  const FavouriteContainer = styled.div`
31363
- background: ${(props) =>
31364
- props.theme.cardinal_name === 'north'
31365
- ? props.theme.theme_vars.colours.white
31366
- : props.theme.theme_vars.colours.grey_light};
31367
- box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
31368
- transition: box-shadow 0.3s ease;
31369
- border-bottom: 5px solid ${(props) => props.theme.theme_vars.colours.action};
31370
- border-radius: ${(props) => props.theme.theme_vars.border_radius};
31371
- padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31552
+ background: ${(props) =>
31553
+ props.theme.cardinal_name === 'north'
31554
+ ? props.theme.theme_vars.colours.white
31555
+ : props.theme.theme_vars.colours.grey_light};
31556
+ box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
31557
+ transition: box-shadow 0.3s ease;
31558
+ border-bottom: 5px solid ${(props) => props.theme.theme_vars.colours.action};
31559
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
31560
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31372
31561
 
31373
- @media print {
31374
- box-shadow: none;
31375
- border: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
31376
- background: none;
31377
- }
31562
+ @media print {
31563
+ box-shadow: none;
31564
+ border: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
31565
+ background: none;
31566
+ padding: 0 ${(props) => props.theme.theme_vars.spacingSizes.small};
31567
+ }
31378
31568
  `;
31379
31569
 
31380
- const PrintContainer = styled.div`
31570
+ const ButtonContainer$1 = styled.div`
31381
31571
  display: flex;
31382
31572
  justify-content: flex-end;
31383
31573
 
@@ -31386,7 +31576,7 @@ const PrintContainer = styled.div`
31386
31576
  }
31387
31577
  `;
31388
31578
 
31389
- const PrintButton = styled.button`
31579
+ const ActionButton = styled.button`
31390
31580
  border: 2px solid ${(props) => props.theme.theme_vars.colours.action};
31391
31581
  border-radius: ${(props) => props.theme.theme_vars.border_radius};
31392
31582
  background: ${(props) => props.theme.theme_vars.colours.action};
@@ -31398,6 +31588,7 @@ const PrintButton = styled.button`
31398
31588
  flex-direction: row;
31399
31589
  justify-content: flex-start;
31400
31590
  align-items: center;
31591
+ margin-left: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31401
31592
  &:hover {
31402
31593
  ${(props) => props.theme.linkStylesHover}
31403
31594
  color: ${(props) => props.theme.theme_vars.colours.white};
@@ -31420,6 +31611,53 @@ const AddContainer = styled.div`
31420
31611
  }
31421
31612
  `;
31422
31613
 
31614
+ const SubTitle = styled.p`
31615
+ font-weight: bold;
31616
+ margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31617
+ `;
31618
+
31619
+ const ClearShortlistButton = styled.button`
31620
+ border: 1px solid ${(props) => props.theme.theme_vars.colours.negative};
31621
+ background: ${(props) => props.theme.theme_vars.colours.white};
31622
+ color: ${(props) => props.theme.theme_vars.colours.negative};
31623
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
31624
+ cursor: pointer;
31625
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
31626
+ min-height: 42px;
31627
+ font-weight: bold;
31628
+
31629
+ &:hover {
31630
+ background: ${(props) => props.theme.theme_vars.colours.action_light};
31631
+ color: ${(props) => props.theme.theme_vars.colours.action_dark};
31632
+ text-decoration: underline;
31633
+ text-decoration-style: dotted;
31634
+ }
31635
+
31636
+ &:focus {
31637
+ ${(props) => props.theme.linkStylesFocus}
31638
+ }
31639
+
31640
+ &:active {
31641
+ ${(props) => props.theme.linkStylesActive}
31642
+ }
31643
+ `;
31644
+
31645
+ const AddressContainer = styled.div`
31646
+ display: block;
31647
+
31648
+ @media print {
31649
+ display: none;
31650
+ }
31651
+ `;
31652
+
31653
+ const PrintAddress = styled.div`
31654
+ display: none;
31655
+
31656
+ @media print {
31657
+ display: block;
31658
+ }
31659
+ `;
31660
+
31423
31661
  var lib = {};
31424
31662
 
31425
31663
  var mode$1 = {
@@ -32779,32 +33017,82 @@ QRCode.defaultProps = defaultProps;
32779
33017
  var _default = lib.default = QRCode;
32780
33018
 
32781
33019
  var DirectoryShortList = function (_a) {
32782
- var directoryPath = _a.directoryPath;
32783
- var favourites = useDirectoryShortListContext().favourites.favourites;
32784
- var _b = useState(false), notServer = _b[0], setNotServer = _b[1];
33020
+ _a.directoryPath;
33021
+ var _b = useDirectoryShortListContext(), favourites = _b.favourites.favourites, clearShortlist = _b.clearShortlist;
33022
+ var _c = useState(false), notServer = _c[0], setNotServer = _c[1];
32785
33023
  useEffect(function () {
32786
33024
  setNotServer(true);
32787
33025
  }, []);
33026
+ var confirmClear = function () {
33027
+ if (window.confirm('Are you sure you want to clear your shortlist?')) {
33028
+ clearShortlist();
33029
+ }
33030
+ };
33031
+ var formatAddress = function (address) {
33032
+ return Object.values(address)
33033
+ .filter(function (item) { return item !== '' && item !== address.id && item !== address.country; })
33034
+ .join(', ');
33035
+ };
33036
+ var copyToClipboard = function () { return __awaiter(void 0, void 0, void 0, function () {
33037
+ var data;
33038
+ return __generator(this, function (_b) {
33039
+ switch (_b.label) {
33040
+ case 0:
33041
+ data = favourites.map(function (favourite) {
33042
+ var _a, _b, _c, _d;
33043
+ var address = favourite.addresses.length > 0 ? formatAddress(favourite.addresses[0]) : '';
33044
+ 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 ");
33045
+ });
33046
+ _b.label = 1;
33047
+ case 1:
33048
+ _b.trys.push([1, 3, , 4]);
33049
+ return [4 /*yield*/, navigator.clipboard.writeText(data.join('')).then(function () {
33050
+ window.alert('Copied to clipboard');
33051
+ })];
33052
+ case 2:
33053
+ _b.sent();
33054
+ return [3 /*break*/, 4];
33055
+ case 3:
33056
+ _b.sent();
33057
+ window.alert('Unable to copy');
33058
+ return [3 /*break*/, 4];
33059
+ case 4: return [2 /*return*/];
33060
+ }
33061
+ });
33062
+ }); };
32788
33063
  return (React.createElement(Container$1, { "data-testid": "DirectoryShortList" }, notServer && (React.createElement(Row$1, null, favourites.length > 0 ? (React.createElement(React.Fragment, null,
32789
33064
  React.createElement(Column, { small: "full", medium: "full", large: "full" },
32790
- React.createElement(PrintContainer, null,
32791
- React.createElement(PrintButton, { onClick: function () { return window.print(); } }, "Print Shortlist"))),
32792
- favourites.map(function (favourite) { return (React.createElement(Column, { key: favourite.id, small: "full", medium: "full", large: "full" },
32793
- React.createElement(FavouriteContainer, null,
32794
- React.createElement(Row$1, null,
32795
- React.createElement(Column, { small: "full", medium: "full", large: "full" },
32796
- React.createElement(QRCodeContainer, null,
32797
- React.createElement(_default, { value: "".concat(directoryPath, "/").concat(favourite.id), size: 256, style: { height: 'auto', maxWidth: '100%', width: '100%' }, viewBox: "0 0 256 256" })),
32798
- React.createElement(ServiceLink, { href: "".concat(directoryPath, "/").concat(favourite.id) }, favourite.name),
32799
- React.createElement(PrintLink, null,
32800
- React.createElement("p", null, "".concat(directoryPath, "/").concat(favourite.id)))),
32801
- React.createElement(Column, { small: "full", medium: "full", large: "one-half" },
32802
- React.createElement("div", null, favourite.snippet)),
32803
- React.createElement(Column, { small: "full", medium: "full", large: "one-half" },
32804
- React.createElement(SummaryList, { terms: transformService(favourite.email, favourite.website, favourite.phone), hasMargin: false })),
32805
- React.createElement(Column, { small: "full", medium: "full", large: "full" },
32806
- React.createElement(AddContainer, null,
32807
- React.createElement(DirectoryAddToShortList, { id: favourite.id, name: favourite.name, snippet: favourite.snippet, email: favourite.email, website: favourite.website, phone: favourite.phone }))))))); }))) : (React.createElement(Column, { small: "full", medium: "full", large: "full" },
33065
+ React.createElement(ButtonContainer$1, null,
33066
+ React.createElement(ClearShortlistButton, { onClick: confirmClear }, "Clear Shortlist"),
33067
+ React.createElement(ActionButton, { onClick: copyToClipboard }, "Copy To Clipboard"),
33068
+ React.createElement(ActionButton, { onClick: function () { return window.print(); } }, "Print Shortlist"))),
33069
+ favourites.map(function (favourite) {
33070
+ var _a, _b;
33071
+ return (React.createElement(Column, { key: favourite.id, small: "full", medium: "full", large: "full", classes: "favourite-outer" },
33072
+ React.createElement(FavouriteContainer, null,
33073
+ React.createElement(Row$1, null,
33074
+ React.createElement(Column, { small: "full", medium: "full", large: "full" },
33075
+ React.createElement(ServiceLink, { href: "".concat(favourite.id) }, favourite.name),
33076
+ React.createElement(PrintLink, null,
33077
+ React.createElement("p", null, "".concat(favourite.id)))),
33078
+ React.createElement(Column, { small: "full", medium: "full", large: "one-half" },
33079
+ React.createElement(SnippetContainer, null,
33080
+ React.createElement("div", null, favourite.snippet),
33081
+ React.createElement(QRCodeContainer, null,
33082
+ React.createElement(_default, { value: "".concat(favourite.id), size: 256, style: { height: 'auto', maxWidth: '100%', width: '100%' }, viewBox: "0 0 256 256" }))),
33083
+ ((_a = favourite.addresses) === null || _a === void 0 ? void 0 : _a.length) > 0 && (React.createElement(React.Fragment, null,
33084
+ React.createElement(AddressContainer, null,
33085
+ React.createElement(SubTitle, null, "Address"),
33086
+ ((_b = favourite.addresses) === null || _b === void 0 ? void 0 : _b.length) === 1 ? (React.createElement("p", null, formatAddress(favourite.addresses[0]))) : (React.createElement("ul", null, favourite.addresses.map(function (address) { return (React.createElement("li", { key: address.id }, formatAddress(address))); })))),
33087
+ React.createElement(PrintAddress, null,
33088
+ React.createElement(SummaryList, { terms: [{ term: 'Address', detail: formatAddress(favourite.addresses[0]) }], hasMargin: false }))))),
33089
+ React.createElement(Column, { small: "full", medium: "full", large: "one-half" },
33090
+ React.createElement(SummaryList, { terms: transformService(favourite.email, favourite.website, favourite.phone), hasMargin: false }),
33091
+ favourite.fees && (React.createElement(SummaryList, { terms: [{ term: 'Cost', detail: favourite.fees }], hasMargin: false }))),
33092
+ React.createElement(Column, { small: "full", medium: "full", large: "full" },
33093
+ React.createElement(AddContainer, null,
33094
+ React.createElement(DirectoryAddToShortList, { id: favourite.id, name: favourite.name, snippet: favourite.snippet, email: favourite.email, website: favourite.website, phone: favourite.phone, addresses: favourite.addresses })))))));
33095
+ }))) : (React.createElement(Column, { small: "full", medium: "full", large: "full" },
32808
33096
  React.createElement(FavouriteContainer, null,
32809
33097
  React.createElement("p", null, "No items in the shortlist"))))))));
32810
33098
  };
@@ -32939,8 +33227,8 @@ const LoadingContainer = styled.div`
32939
33227
  `;
32940
33228
 
32941
33229
  var DirectoryDocumentList = function (_a) {
32942
- 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;
32943
- var _g = useState(search), searchTerm = _g[0], setSearchTerm = _g[1];
33230
+ 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;
33231
+ var _h = useState(search), searchTerm = _h[0], setSearchTerm = _h[1];
32944
33232
  var submitSearch = function (e) {
32945
33233
  e.preventDefault();
32946
33234
  setSearch(searchTerm);
@@ -33003,7 +33291,9 @@ var DirectoryDocumentList = function (_a) {
33003
33291
  React.createElement(RadioCheckboxInput, { name: taxonomy.vocabulary, value: taxonomy.id, label: taxonomy.name, singleSelection: category.singleSelection, checked: taxonomy.checked, onChange: function (e) { return optionChecked(e, categoryIndex, category.singleSelection); } }))); })))); }))),
33004
33292
  React.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
33005
33293
  React.createElement(Row$1, null,
33006
- isLoading ? (React.createElement(LoadingContainer, null,
33294
+ isError ? (React.createElement(Column, { small: "full", medium: "full", large: "full" },
33295
+ React.createElement(AlertBannerService, null,
33296
+ React.createElement("p", null, "Sorry, there was a problem fetching results. Please try again later.")))) : isLoading ? (React.createElement(LoadingContainer, null,
33007
33297
  React.createElement(LoadingSpinner, null),
33008
33298
  React.createElement("p", null, "Loading"))) : (React.createElement(React.Fragment, null,
33009
33299
  React.createElement(Column, { small: "full", medium: "full", large: "full" }, (documents === null || documents === void 0 ? void 0 : documents.length) > 0 ? (React.createElement(ResultInfo, null,